@orq-ai/node 3.1.7 → 3.2.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -38
- package/docs/sdks/deployments/README.md +0 -81
- package/jsr.json +1 -2
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +1 -4
- package/lib/matchers.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.js.map +1 -1
- package/package.json +3 -2
- package/sdk/deployments.d.ts +0 -8
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +0 -10
- package/sdk/deployments.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +1 -4
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/index.ts +0 -1
- package/src/sdk/deployments.ts +0 -19
- package/funcs/deploymentsStream.d.ts +0 -16
- package/funcs/deploymentsStream.d.ts.map +0 -1
- package/funcs/deploymentsStream.js +0 -126
- package/funcs/deploymentsStream.js.map +0 -1
- package/lib/event-streams.d.ts +0 -17
- package/lib/event-streams.d.ts.map +0 -1
- package/lib/event-streams.js +0 -220
- package/lib/event-streams.js.map +0 -1
- package/models/operations/deploymentstream.d.ts +0 -1622
- package/models/operations/deploymentstream.d.ts.map +0 -1
- package/models/operations/deploymentstream.js +0 -1571
- package/models/operations/deploymentstream.js.map +0 -1
- package/packages/orq-rc/FUNCTIONS.md +0 -106
- package/packages/orq-rc/README.md +0 -506
- package/packages/orq-rc/RUNTIMES.md +0 -48
- package/packages/orq-rc/docs/sdks/contacts/README.md +0 -84
- package/packages/orq-rc/docs/sdks/deployments/README.md +0 -235
- package/packages/orq-rc/docs/sdks/feedback/README.md +0 -92
- package/packages/orq-rc/docs/sdks/files/README.md +0 -305
- package/packages/orq-rc/docs/sdks/metrics/README.md +0 -86
- package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
- package/packages/orq-rc/docs/sdks/prompts/README.md +0 -608
- package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -80
- package/packages/orq-rc/jsr.json +0 -27
- package/packages/orq-rc/package-lock.json +0 -1861
- package/packages/orq-rc/package.json +0 -31
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -127
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -135
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -143
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -142
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -135
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -127
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -150
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -131
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -133
- package/packages/orq-rc/src/funcs/filesList.ts +0 -134
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -127
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -131
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -147
- package/packages/orq-rc/src/funcs/promptsList.ts +0 -134
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -140
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -133
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -139
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -128
- package/packages/orq-rc/src/hooks/global.ts +0 -44
- package/packages/orq-rc/src/hooks/hooks.ts +0 -132
- package/packages/orq-rc/src/hooks/index.ts +0 -6
- package/packages/orq-rc/src/hooks/registration.ts +0 -15
- package/packages/orq-rc/src/hooks/types.ts +0 -110
- package/packages/orq-rc/src/index.ts +0 -7
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -70
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/encodings.ts +0 -483
- package/packages/orq-rc/src/lib/env.ts +0 -73
- package/packages/orq-rc/src/lib/files.ts +0 -40
- package/packages/orq-rc/src/lib/http.ts +0 -323
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/packages/orq-rc/src/lib/logger.ts +0 -9
- package/packages/orq-rc/src/lib/matchers.ts +0 -322
- package/packages/orq-rc/src/lib/primitives.ts +0 -136
- package/packages/orq-rc/src/lib/retries.ts +0 -218
- package/packages/orq-rc/src/lib/schemas.ts +0 -91
- package/packages/orq-rc/src/lib/sdks.ts +0 -400
- package/packages/orq-rc/src/lib/security.ts +0 -253
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/models/components/deployments.ts +0 -1666
- package/packages/orq-rc/src/models/components/index.ts +0 -6
- package/packages/orq-rc/src/models/components/security.ts +0 -71
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -27
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -71
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -82
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -10
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -97
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -71
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -3717
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -1790
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -3527
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1144
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2148
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -222
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -336
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -322
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2116
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1982
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2012
- package/packages/orq-rc/src/models/operations/index.ts +0 -22
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2146
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -3900
- package/packages/orq-rc/src/sdk/contacts.ts +0 -27
- package/packages/orq-rc/src/sdk/deployments.ts +0 -70
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -78
- package/packages/orq-rc/src/sdk/index.ts +0 -5
- package/packages/orq-rc/src/sdk/metrics.ts +0 -27
- package/packages/orq-rc/src/sdk/prompts.ts +0 -126
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
- package/packages/orq-rc/src/sdk/sdk.ts +0 -43
- package/packages/orq-rc/src/types/blobs.ts +0 -31
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -16
- package/packages/orq-rc/src/types/fp.ts +0 -50
- package/packages/orq-rc/src/types/index.ts +0 -11
- package/packages/orq-rc/src/types/operations.ts +0 -105
- package/packages/orq-rc/src/types/rfcdate.ts +0 -54
- package/packages/orq-rc/src/types/streams.ts +0 -21
- package/packages/orq-rc/tsconfig.json +0 -41
- package/src/funcs/deploymentsStream.ts +0 -151
- package/src/lib/event-streams.ts +0 -264
- package/src/models/operations/deploymentstream.ts +0 -3062
|
@@ -1,3527 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type Inputs = string | number | boolean;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* The role of the prompt message
|
|
16
|
-
*/
|
|
17
|
-
export const Role = {
|
|
18
|
-
System: "system",
|
|
19
|
-
Assistant: "assistant",
|
|
20
|
-
User: "user",
|
|
21
|
-
Exception: "exception",
|
|
22
|
-
Tool: "tool",
|
|
23
|
-
Prompt: "prompt",
|
|
24
|
-
Correction: "correction",
|
|
25
|
-
ExpectedOutput: "expected_output",
|
|
26
|
-
} as const;
|
|
27
|
-
/**
|
|
28
|
-
* The role of the prompt message
|
|
29
|
-
*/
|
|
30
|
-
export type Role = ClosedEnum<typeof Role>;
|
|
31
|
-
|
|
32
|
-
export const TwoType = {
|
|
33
|
-
ImageUrl: "image_url",
|
|
34
|
-
} as const;
|
|
35
|
-
export type TwoType = ClosedEnum<typeof TwoType>;
|
|
36
|
-
|
|
37
|
-
export type ImageUrl = {
|
|
38
|
-
/**
|
|
39
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
40
|
-
*/
|
|
41
|
-
url: string;
|
|
42
|
-
/**
|
|
43
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
44
|
-
*/
|
|
45
|
-
detail?: string | undefined;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
50
|
-
*/
|
|
51
|
-
export type Two2 = {
|
|
52
|
-
type: TwoType;
|
|
53
|
-
imageUrl: ImageUrl;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export const Type = {
|
|
57
|
-
Text: "text",
|
|
58
|
-
} as const;
|
|
59
|
-
export type Type = ClosedEnum<typeof Type>;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Text content part of a prompt message
|
|
63
|
-
*/
|
|
64
|
-
export type One = {
|
|
65
|
-
type: Type;
|
|
66
|
-
text: string;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export type Two = One | Two2;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
73
|
-
*/
|
|
74
|
-
export type Content = string | Array<One | Two2>;
|
|
75
|
-
|
|
76
|
-
export const DeploymentGetConfigType = {
|
|
77
|
-
Function: "function",
|
|
78
|
-
} as const;
|
|
79
|
-
export type DeploymentGetConfigType = ClosedEnum<
|
|
80
|
-
typeof DeploymentGetConfigType
|
|
81
|
-
>;
|
|
82
|
-
|
|
83
|
-
export type FunctionT = {
|
|
84
|
-
name: string;
|
|
85
|
-
/**
|
|
86
|
-
* JSON string arguments for the functions
|
|
87
|
-
*/
|
|
88
|
-
arguments: string;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
export type ToolCalls = {
|
|
92
|
-
id?: string | undefined;
|
|
93
|
-
index?: number | undefined;
|
|
94
|
-
type: DeploymentGetConfigType;
|
|
95
|
-
function: FunctionT;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export type PrefixMessages = {
|
|
99
|
-
/**
|
|
100
|
-
* The role of the prompt message
|
|
101
|
-
*/
|
|
102
|
-
role: Role;
|
|
103
|
-
/**
|
|
104
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
105
|
-
*/
|
|
106
|
-
content: string | Array<One | Two2>;
|
|
107
|
-
toolCalls?: Array<ToolCalls> | undefined;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* The role of the prompt message
|
|
112
|
-
*/
|
|
113
|
-
export const DeploymentGetConfigRole = {
|
|
114
|
-
System: "system",
|
|
115
|
-
Assistant: "assistant",
|
|
116
|
-
User: "user",
|
|
117
|
-
Exception: "exception",
|
|
118
|
-
Tool: "tool",
|
|
119
|
-
Prompt: "prompt",
|
|
120
|
-
Correction: "correction",
|
|
121
|
-
ExpectedOutput: "expected_output",
|
|
122
|
-
} as const;
|
|
123
|
-
/**
|
|
124
|
-
* The role of the prompt message
|
|
125
|
-
*/
|
|
126
|
-
export type DeploymentGetConfigRole = ClosedEnum<
|
|
127
|
-
typeof DeploymentGetConfigRole
|
|
128
|
-
>;
|
|
129
|
-
|
|
130
|
-
export const DeploymentGetConfig2DeploymentsType = {
|
|
131
|
-
ImageUrl: "image_url",
|
|
132
|
-
} as const;
|
|
133
|
-
export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
|
|
134
|
-
typeof DeploymentGetConfig2DeploymentsType
|
|
135
|
-
>;
|
|
136
|
-
|
|
137
|
-
export type TwoImageUrl = {
|
|
138
|
-
/**
|
|
139
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
140
|
-
*/
|
|
141
|
-
url: string;
|
|
142
|
-
/**
|
|
143
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
144
|
-
*/
|
|
145
|
-
detail?: string | undefined;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
150
|
-
*/
|
|
151
|
-
export type DeploymentGetConfig22 = {
|
|
152
|
-
type: DeploymentGetConfig2DeploymentsType;
|
|
153
|
-
imageUrl: TwoImageUrl;
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
export const DeploymentGetConfig2Type = {
|
|
157
|
-
Text: "text",
|
|
158
|
-
} as const;
|
|
159
|
-
export type DeploymentGetConfig2Type = ClosedEnum<
|
|
160
|
-
typeof DeploymentGetConfig2Type
|
|
161
|
-
>;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Text content part of a prompt message
|
|
165
|
-
*/
|
|
166
|
-
export type Two1 = {
|
|
167
|
-
type: DeploymentGetConfig2Type;
|
|
168
|
-
text: string;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
export type Content2 = Two1 | DeploymentGetConfig22;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
175
|
-
*/
|
|
176
|
-
export type DeploymentGetConfigContent =
|
|
177
|
-
| string
|
|
178
|
-
| Array<Two1 | DeploymentGetConfig22>;
|
|
179
|
-
|
|
180
|
-
export const DeploymentGetConfigDeploymentsType = {
|
|
181
|
-
Function: "function",
|
|
182
|
-
} as const;
|
|
183
|
-
export type DeploymentGetConfigDeploymentsType = ClosedEnum<
|
|
184
|
-
typeof DeploymentGetConfigDeploymentsType
|
|
185
|
-
>;
|
|
186
|
-
|
|
187
|
-
export type DeploymentGetConfigFunction = {
|
|
188
|
-
name: string;
|
|
189
|
-
/**
|
|
190
|
-
* JSON string arguments for the functions
|
|
191
|
-
*/
|
|
192
|
-
arguments: string;
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
export type DeploymentGetConfigToolCalls = {
|
|
196
|
-
id?: string | undefined;
|
|
197
|
-
index?: number | undefined;
|
|
198
|
-
type: DeploymentGetConfigDeploymentsType;
|
|
199
|
-
function: DeploymentGetConfigFunction;
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
export type Messages = {
|
|
203
|
-
/**
|
|
204
|
-
* The role of the prompt message
|
|
205
|
-
*/
|
|
206
|
-
role: DeploymentGetConfigRole;
|
|
207
|
-
/**
|
|
208
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
209
|
-
*/
|
|
210
|
-
content: string | Array<Two1 | DeploymentGetConfig22>;
|
|
211
|
-
toolCalls?: Array<DeploymentGetConfigToolCalls> | undefined;
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Metadata about the document
|
|
216
|
-
*/
|
|
217
|
-
export type Metadata = {
|
|
218
|
-
/**
|
|
219
|
-
* Name of the file the text is from.
|
|
220
|
-
*/
|
|
221
|
-
fileName?: string | undefined;
|
|
222
|
-
/**
|
|
223
|
-
* Content type of the file the text is from.
|
|
224
|
-
*/
|
|
225
|
-
fileType?: string | undefined;
|
|
226
|
-
/**
|
|
227
|
-
* The page number the text is from.
|
|
228
|
-
*/
|
|
229
|
-
pageNumber?: number | undefined;
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
export type Documents = {
|
|
233
|
-
/**
|
|
234
|
-
* The text content of the document
|
|
235
|
-
*/
|
|
236
|
-
text: string;
|
|
237
|
-
/**
|
|
238
|
-
* Metadata about the document
|
|
239
|
-
*/
|
|
240
|
-
metadata?: Metadata | undefined;
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
export type InvokeOptions = {
|
|
244
|
-
/**
|
|
245
|
-
* Whether to include the retrieved knowledge chunks in the response.
|
|
246
|
-
*/
|
|
247
|
-
includeRetrievals?: boolean | undefined;
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
export type DeploymentGetConfigRequestBody = {
|
|
251
|
-
/**
|
|
252
|
-
* The deployment key to invoke
|
|
253
|
-
*/
|
|
254
|
-
key: string;
|
|
255
|
-
/**
|
|
256
|
-
* Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
|
|
257
|
-
*/
|
|
258
|
-
inputs?: { [k: string]: string | number | boolean } | undefined;
|
|
259
|
-
/**
|
|
260
|
-
* Key-value pairs that match your data model and fields declared in your configuration matrix. If you send multiple prompt keys, the context will be applied to the evaluation of each key.
|
|
261
|
-
*/
|
|
262
|
-
context?: { [k: string]: any } | undefined;
|
|
263
|
-
/**
|
|
264
|
-
* A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
|
|
265
|
-
*/
|
|
266
|
-
prefixMessages?: Array<PrefixMessages> | undefined;
|
|
267
|
-
/**
|
|
268
|
-
* A list of messages to send to the deployment.
|
|
269
|
-
*/
|
|
270
|
-
messages?: Array<Messages> | undefined;
|
|
271
|
-
/**
|
|
272
|
-
* A list of file IDs that are associated with the deployment request.
|
|
273
|
-
*/
|
|
274
|
-
fileIds?: Array<string> | undefined;
|
|
275
|
-
/**
|
|
276
|
-
* Key-value pairs that you want to attach to the log generated by this request.
|
|
277
|
-
*/
|
|
278
|
-
metadata?: { [k: string]: any } | undefined;
|
|
279
|
-
/**
|
|
280
|
-
* Utilized for passing additional parameters to the model provider. Exercise caution when using this feature, as the included parameters will overwrite any parameters specified in the deployment prompt configuration.
|
|
281
|
-
*/
|
|
282
|
-
extraParams?: { [k: string]: any } | undefined;
|
|
283
|
-
/**
|
|
284
|
-
* A list of relevant documents that evaluators and guardrails can cite to evaluate the user input or the model response based on your deployment settings.
|
|
285
|
-
*/
|
|
286
|
-
documents?: Array<Documents> | undefined;
|
|
287
|
-
invokeOptions?: InvokeOptions | undefined;
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* The type of the model. Current `chat`,`completion` and `image` are supported
|
|
292
|
-
*/
|
|
293
|
-
export const DeploymentGetConfigDeploymentsResponseType = {
|
|
294
|
-
Chat: "chat",
|
|
295
|
-
Completion: "completion",
|
|
296
|
-
Embedding: "embedding",
|
|
297
|
-
Vision: "vision",
|
|
298
|
-
Image: "image",
|
|
299
|
-
Tts: "tts",
|
|
300
|
-
Stt: "stt",
|
|
301
|
-
Rerank: "rerank",
|
|
302
|
-
Moderations: "moderations",
|
|
303
|
-
} as const;
|
|
304
|
-
/**
|
|
305
|
-
* The type of the model. Current `chat`,`completion` and `image` are supported
|
|
306
|
-
*/
|
|
307
|
-
export type DeploymentGetConfigDeploymentsResponseType = ClosedEnum<
|
|
308
|
-
typeof DeploymentGetConfigDeploymentsResponseType
|
|
309
|
-
>;
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* The role of the prompt message
|
|
313
|
-
*/
|
|
314
|
-
export const DeploymentGetConfigDeploymentsRole = {
|
|
315
|
-
System: "system",
|
|
316
|
-
Assistant: "assistant",
|
|
317
|
-
User: "user",
|
|
318
|
-
Exception: "exception",
|
|
319
|
-
Tool: "tool",
|
|
320
|
-
Prompt: "prompt",
|
|
321
|
-
Correction: "correction",
|
|
322
|
-
ExpectedOutput: "expected_output",
|
|
323
|
-
} as const;
|
|
324
|
-
/**
|
|
325
|
-
* The role of the prompt message
|
|
326
|
-
*/
|
|
327
|
-
export type DeploymentGetConfigDeploymentsRole = ClosedEnum<
|
|
328
|
-
typeof DeploymentGetConfigDeploymentsRole
|
|
329
|
-
>;
|
|
330
|
-
|
|
331
|
-
export const DeploymentGetConfig2DeploymentsResponse200Type = {
|
|
332
|
-
ImageUrl: "image_url",
|
|
333
|
-
} as const;
|
|
334
|
-
export type DeploymentGetConfig2DeploymentsResponse200Type = ClosedEnum<
|
|
335
|
-
typeof DeploymentGetConfig2DeploymentsResponse200Type
|
|
336
|
-
>;
|
|
337
|
-
|
|
338
|
-
export type DeploymentGetConfig2ImageUrl = {
|
|
339
|
-
/**
|
|
340
|
-
* The orq.ai id of the image
|
|
341
|
-
*/
|
|
342
|
-
id?: string | undefined;
|
|
343
|
-
/**
|
|
344
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
345
|
-
*/
|
|
346
|
-
url: string;
|
|
347
|
-
/**
|
|
348
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
349
|
-
*/
|
|
350
|
-
detail?: string | undefined;
|
|
351
|
-
};
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
355
|
-
*/
|
|
356
|
-
export type DeploymentGetConfig2Deployments2 = {
|
|
357
|
-
type: DeploymentGetConfig2DeploymentsResponse200Type;
|
|
358
|
-
imageUrl: DeploymentGetConfig2ImageUrl;
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
export const DeploymentGetConfig2DeploymentsResponseType = {
|
|
362
|
-
Text: "text",
|
|
363
|
-
} as const;
|
|
364
|
-
export type DeploymentGetConfig2DeploymentsResponseType = ClosedEnum<
|
|
365
|
-
typeof DeploymentGetConfig2DeploymentsResponseType
|
|
366
|
-
>;
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* Text content part of a prompt message
|
|
370
|
-
*/
|
|
371
|
-
export type DeploymentGetConfig21 = {
|
|
372
|
-
type: DeploymentGetConfig2DeploymentsResponseType;
|
|
373
|
-
text: string;
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
export type DeploymentGetConfigContent2 =
|
|
377
|
-
| DeploymentGetConfig21
|
|
378
|
-
| DeploymentGetConfig2Deployments2;
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
382
|
-
*/
|
|
383
|
-
export type DeploymentGetConfigDeploymentsContent =
|
|
384
|
-
| string
|
|
385
|
-
| Array<DeploymentGetConfig21 | DeploymentGetConfig2Deployments2>;
|
|
386
|
-
|
|
387
|
-
export const DeploymentGetConfigDeploymentsResponse200ApplicationJSONType = {
|
|
388
|
-
Function: "function",
|
|
389
|
-
} as const;
|
|
390
|
-
export type DeploymentGetConfigDeploymentsResponse200ApplicationJSONType =
|
|
391
|
-
ClosedEnum<
|
|
392
|
-
typeof DeploymentGetConfigDeploymentsResponse200ApplicationJSONType
|
|
393
|
-
>;
|
|
394
|
-
|
|
395
|
-
export type DeploymentGetConfigDeploymentsResponseFunction = {
|
|
396
|
-
name: string;
|
|
397
|
-
/**
|
|
398
|
-
* JSON string arguments for the functions
|
|
399
|
-
*/
|
|
400
|
-
arguments: string;
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
export type DeploymentGetConfigDeploymentsToolCalls = {
|
|
404
|
-
id?: string | undefined;
|
|
405
|
-
index?: number | undefined;
|
|
406
|
-
type: DeploymentGetConfigDeploymentsResponse200ApplicationJSONType;
|
|
407
|
-
function: DeploymentGetConfigDeploymentsResponseFunction;
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
export type DeploymentGetConfigMessages = {
|
|
411
|
-
/**
|
|
412
|
-
* The role of the prompt message
|
|
413
|
-
*/
|
|
414
|
-
role: DeploymentGetConfigDeploymentsRole;
|
|
415
|
-
/**
|
|
416
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
417
|
-
*/
|
|
418
|
-
content:
|
|
419
|
-
| string
|
|
420
|
-
| Array<DeploymentGetConfig21 | DeploymentGetConfig2Deployments2>;
|
|
421
|
-
toolCalls?: Array<DeploymentGetConfigDeploymentsToolCalls> | undefined;
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* Only supported on `image` models.
|
|
426
|
-
*/
|
|
427
|
-
export const DeploymentGetConfigFormat = {
|
|
428
|
-
Url: "url",
|
|
429
|
-
B64Json: "b64_json",
|
|
430
|
-
Text: "text",
|
|
431
|
-
JsonObject: "json_object",
|
|
432
|
-
} as const;
|
|
433
|
-
/**
|
|
434
|
-
* Only supported on `image` models.
|
|
435
|
-
*/
|
|
436
|
-
export type DeploymentGetConfigFormat = ClosedEnum<
|
|
437
|
-
typeof DeploymentGetConfigFormat
|
|
438
|
-
>;
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* Only supported on `image` models.
|
|
442
|
-
*/
|
|
443
|
-
export const DeploymentGetConfigQuality = {
|
|
444
|
-
Standard: "standard",
|
|
445
|
-
Hd: "hd",
|
|
446
|
-
} as const;
|
|
447
|
-
/**
|
|
448
|
-
* Only supported on `image` models.
|
|
449
|
-
*/
|
|
450
|
-
export type DeploymentGetConfigQuality = ClosedEnum<
|
|
451
|
-
typeof DeploymentGetConfigQuality
|
|
452
|
-
>;
|
|
453
|
-
|
|
454
|
-
export const DeploymentGetConfigResponseFormatType = {
|
|
455
|
-
JsonObject: "json_object",
|
|
456
|
-
} as const;
|
|
457
|
-
export type DeploymentGetConfigResponseFormatType = ClosedEnum<
|
|
458
|
-
typeof DeploymentGetConfigResponseFormatType
|
|
459
|
-
>;
|
|
460
|
-
|
|
461
|
-
export type DeploymentGetConfigResponseFormat2 = {
|
|
462
|
-
type: DeploymentGetConfigResponseFormatType;
|
|
463
|
-
};
|
|
464
|
-
|
|
465
|
-
export const DeploymentGetConfigResponseFormatDeploymentsType = {
|
|
466
|
-
JsonSchema: "json_schema",
|
|
467
|
-
} as const;
|
|
468
|
-
export type DeploymentGetConfigResponseFormatDeploymentsType = ClosedEnum<
|
|
469
|
-
typeof DeploymentGetConfigResponseFormatDeploymentsType
|
|
470
|
-
>;
|
|
471
|
-
|
|
472
|
-
export type DeploymentGetConfigResponseFormatJsonSchema = {
|
|
473
|
-
name: string;
|
|
474
|
-
strict: boolean;
|
|
475
|
-
schema: { [k: string]: any };
|
|
476
|
-
};
|
|
477
|
-
|
|
478
|
-
export type DeploymentGetConfigResponseFormat1 = {
|
|
479
|
-
type: DeploymentGetConfigResponseFormatDeploymentsType;
|
|
480
|
-
jsonSchema: DeploymentGetConfigResponseFormatJsonSchema;
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* An object specifying the format that the model must output.
|
|
485
|
-
*
|
|
486
|
-
* @remarks
|
|
487
|
-
*
|
|
488
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
489
|
-
*
|
|
490
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
491
|
-
*
|
|
492
|
-
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
493
|
-
*/
|
|
494
|
-
export type DeploymentGetConfigResponseFormat =
|
|
495
|
-
| DeploymentGetConfigResponseFormat2
|
|
496
|
-
| DeploymentGetConfigResponseFormat1;
|
|
497
|
-
|
|
498
|
-
/**
|
|
499
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
500
|
-
*/
|
|
501
|
-
export const DeploymentGetConfigPhotoRealVersion = {
|
|
502
|
-
V1: "v1",
|
|
503
|
-
V2: "v2",
|
|
504
|
-
} as const;
|
|
505
|
-
/**
|
|
506
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
507
|
-
*/
|
|
508
|
-
export type DeploymentGetConfigPhotoRealVersion = ClosedEnum<
|
|
509
|
-
typeof DeploymentGetConfigPhotoRealVersion
|
|
510
|
-
>;
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* The format to return the embeddings
|
|
514
|
-
*/
|
|
515
|
-
export const DeploymentGetConfigEncodingFormat = {
|
|
516
|
-
Float: "float",
|
|
517
|
-
Base64: "base64",
|
|
518
|
-
} as const;
|
|
519
|
-
/**
|
|
520
|
-
* The format to return the embeddings
|
|
521
|
-
*/
|
|
522
|
-
export type DeploymentGetConfigEncodingFormat = ClosedEnum<
|
|
523
|
-
typeof DeploymentGetConfigEncodingFormat
|
|
524
|
-
>;
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
528
|
-
*/
|
|
529
|
-
export const DeploymentGetConfigReasoningEffort = {
|
|
530
|
-
Low: "low",
|
|
531
|
-
Medium: "medium",
|
|
532
|
-
High: "high",
|
|
533
|
-
} as const;
|
|
534
|
-
/**
|
|
535
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
536
|
-
*/
|
|
537
|
-
export type DeploymentGetConfigReasoningEffort = ClosedEnum<
|
|
538
|
-
typeof DeploymentGetConfigReasoningEffort
|
|
539
|
-
>;
|
|
540
|
-
|
|
541
|
-
/**
|
|
542
|
-
* Model Parameters: Not all parameters apply to every model
|
|
543
|
-
*/
|
|
544
|
-
export type ParametersT = {
|
|
545
|
-
/**
|
|
546
|
-
* Only supported on `chat` and `completion` models.
|
|
547
|
-
*/
|
|
548
|
-
temperature?: number | undefined;
|
|
549
|
-
/**
|
|
550
|
-
* Only supported on `chat` and `completion` models.
|
|
551
|
-
*/
|
|
552
|
-
maxTokens?: number | undefined;
|
|
553
|
-
/**
|
|
554
|
-
* Only supported on `chat` and `completion` models.
|
|
555
|
-
*/
|
|
556
|
-
topK?: number | undefined;
|
|
557
|
-
/**
|
|
558
|
-
* Only supported on `chat` and `completion` models.
|
|
559
|
-
*/
|
|
560
|
-
topP?: number | undefined;
|
|
561
|
-
/**
|
|
562
|
-
* Only supported on `chat` and `completion` models.
|
|
563
|
-
*/
|
|
564
|
-
frequencyPenalty?: number | undefined;
|
|
565
|
-
/**
|
|
566
|
-
* Only supported on `chat` and `completion` models.
|
|
567
|
-
*/
|
|
568
|
-
presencePenalty?: number | undefined;
|
|
569
|
-
/**
|
|
570
|
-
* Only supported on `image` models.
|
|
571
|
-
*/
|
|
572
|
-
numImages?: number | undefined;
|
|
573
|
-
/**
|
|
574
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
575
|
-
*/
|
|
576
|
-
seed?: number | undefined;
|
|
577
|
-
/**
|
|
578
|
-
* Only supported on `image` models.
|
|
579
|
-
*/
|
|
580
|
-
format?: DeploymentGetConfigFormat | undefined;
|
|
581
|
-
/**
|
|
582
|
-
* Only supported on `image` models.
|
|
583
|
-
*/
|
|
584
|
-
dimensions?: string | undefined;
|
|
585
|
-
/**
|
|
586
|
-
* Only supported on `image` models.
|
|
587
|
-
*/
|
|
588
|
-
quality?: DeploymentGetConfigQuality | undefined;
|
|
589
|
-
/**
|
|
590
|
-
* Only supported on `image` models.
|
|
591
|
-
*/
|
|
592
|
-
style?: string | undefined;
|
|
593
|
-
/**
|
|
594
|
-
* An object specifying the format that the model must output.
|
|
595
|
-
*
|
|
596
|
-
* @remarks
|
|
597
|
-
*
|
|
598
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
599
|
-
*
|
|
600
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
601
|
-
*
|
|
602
|
-
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
603
|
-
*/
|
|
604
|
-
responseFormat?:
|
|
605
|
-
| DeploymentGetConfigResponseFormat2
|
|
606
|
-
| DeploymentGetConfigResponseFormat1
|
|
607
|
-
| null
|
|
608
|
-
| undefined;
|
|
609
|
-
/**
|
|
610
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
611
|
-
*/
|
|
612
|
-
photoRealVersion?: DeploymentGetConfigPhotoRealVersion | undefined;
|
|
613
|
-
/**
|
|
614
|
-
* The format to return the embeddings
|
|
615
|
-
*/
|
|
616
|
-
encodingFormat?: DeploymentGetConfigEncodingFormat | undefined;
|
|
617
|
-
/**
|
|
618
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
619
|
-
*/
|
|
620
|
-
reasoningEffort?: DeploymentGetConfigReasoningEffort | undefined;
|
|
621
|
-
};
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
625
|
-
*/
|
|
626
|
-
export const DeploymentGetConfigDeploymentsResponse200Type = {
|
|
627
|
-
Function: "function",
|
|
628
|
-
} as const;
|
|
629
|
-
/**
|
|
630
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
631
|
-
*/
|
|
632
|
-
export type DeploymentGetConfigDeploymentsResponse200Type = ClosedEnum<
|
|
633
|
-
typeof DeploymentGetConfigDeploymentsResponse200Type
|
|
634
|
-
>;
|
|
635
|
-
|
|
636
|
-
export type DeploymentGetConfigDeploymentsFunction = {
|
|
637
|
-
/**
|
|
638
|
-
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
639
|
-
*/
|
|
640
|
-
name: string;
|
|
641
|
-
/**
|
|
642
|
-
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
643
|
-
*/
|
|
644
|
-
description?: string | undefined;
|
|
645
|
-
/**
|
|
646
|
-
* The parameters the functions accepts, described as a JSON Schema object.
|
|
647
|
-
*
|
|
648
|
-
* @remarks
|
|
649
|
-
*
|
|
650
|
-
* Omitting `parameters` defines a function with an empty parameter list.
|
|
651
|
-
*/
|
|
652
|
-
parameters?: { [k: string]: any } | undefined;
|
|
653
|
-
};
|
|
654
|
-
|
|
655
|
-
export type Tools = {
|
|
656
|
-
/**
|
|
657
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
658
|
-
*/
|
|
659
|
-
type: DeploymentGetConfigDeploymentsResponse200Type;
|
|
660
|
-
function: DeploymentGetConfigDeploymentsFunction;
|
|
661
|
-
};
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
* The deployment configuration
|
|
665
|
-
*/
|
|
666
|
-
export type DeploymentGetConfigResponseBody = {
|
|
667
|
-
/**
|
|
668
|
-
* A unique identifier for the response. Can be used to add metrics to the transaction.
|
|
669
|
-
*/
|
|
670
|
-
id: string;
|
|
671
|
-
/**
|
|
672
|
-
* The provider of the model
|
|
673
|
-
*/
|
|
674
|
-
provider: string;
|
|
675
|
-
/**
|
|
676
|
-
* The model of the configuration
|
|
677
|
-
*/
|
|
678
|
-
model: string;
|
|
679
|
-
/**
|
|
680
|
-
* The type of the model. Current `chat`,`completion` and `image` are supported
|
|
681
|
-
*/
|
|
682
|
-
type?: DeploymentGetConfigDeploymentsResponseType | undefined;
|
|
683
|
-
/**
|
|
684
|
-
* The current version of the deployment
|
|
685
|
-
*/
|
|
686
|
-
version: string;
|
|
687
|
-
messages: Array<DeploymentGetConfigMessages>;
|
|
688
|
-
/**
|
|
689
|
-
* Model Parameters: Not all parameters apply to every model
|
|
690
|
-
*/
|
|
691
|
-
parameters: ParametersT;
|
|
692
|
-
/**
|
|
693
|
-
* A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.
|
|
694
|
-
*/
|
|
695
|
-
tools?: Array<Tools> | undefined;
|
|
696
|
-
};
|
|
697
|
-
|
|
698
|
-
/** @internal */
|
|
699
|
-
export const Inputs$inboundSchema: z.ZodType<Inputs, z.ZodTypeDef, unknown> = z
|
|
700
|
-
.union([z.string(), z.number(), z.boolean()]);
|
|
701
|
-
|
|
702
|
-
/** @internal */
|
|
703
|
-
export type Inputs$Outbound = string | number | boolean;
|
|
704
|
-
|
|
705
|
-
/** @internal */
|
|
706
|
-
export const Inputs$outboundSchema: z.ZodType<
|
|
707
|
-
Inputs$Outbound,
|
|
708
|
-
z.ZodTypeDef,
|
|
709
|
-
Inputs
|
|
710
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
711
|
-
|
|
712
|
-
/**
|
|
713
|
-
* @internal
|
|
714
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
715
|
-
*/
|
|
716
|
-
export namespace Inputs$ {
|
|
717
|
-
/** @deprecated use `Inputs$inboundSchema` instead. */
|
|
718
|
-
export const inboundSchema = Inputs$inboundSchema;
|
|
719
|
-
/** @deprecated use `Inputs$outboundSchema` instead. */
|
|
720
|
-
export const outboundSchema = Inputs$outboundSchema;
|
|
721
|
-
/** @deprecated use `Inputs$Outbound` instead. */
|
|
722
|
-
export type Outbound = Inputs$Outbound;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
export function inputsToJSON(inputs: Inputs): string {
|
|
726
|
-
return JSON.stringify(Inputs$outboundSchema.parse(inputs));
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
export function inputsFromJSON(
|
|
730
|
-
jsonString: string,
|
|
731
|
-
): SafeParseResult<Inputs, SDKValidationError> {
|
|
732
|
-
return safeParse(
|
|
733
|
-
jsonString,
|
|
734
|
-
(x) => Inputs$inboundSchema.parse(JSON.parse(x)),
|
|
735
|
-
`Failed to parse 'Inputs' from JSON`,
|
|
736
|
-
);
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
/** @internal */
|
|
740
|
-
export const Role$inboundSchema: z.ZodNativeEnum<typeof Role> = z.nativeEnum(
|
|
741
|
-
Role,
|
|
742
|
-
);
|
|
743
|
-
|
|
744
|
-
/** @internal */
|
|
745
|
-
export const Role$outboundSchema: z.ZodNativeEnum<typeof Role> =
|
|
746
|
-
Role$inboundSchema;
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* @internal
|
|
750
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
751
|
-
*/
|
|
752
|
-
export namespace Role$ {
|
|
753
|
-
/** @deprecated use `Role$inboundSchema` instead. */
|
|
754
|
-
export const inboundSchema = Role$inboundSchema;
|
|
755
|
-
/** @deprecated use `Role$outboundSchema` instead. */
|
|
756
|
-
export const outboundSchema = Role$outboundSchema;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
/** @internal */
|
|
760
|
-
export const TwoType$inboundSchema: z.ZodNativeEnum<typeof TwoType> = z
|
|
761
|
-
.nativeEnum(TwoType);
|
|
762
|
-
|
|
763
|
-
/** @internal */
|
|
764
|
-
export const TwoType$outboundSchema: z.ZodNativeEnum<typeof TwoType> =
|
|
765
|
-
TwoType$inboundSchema;
|
|
766
|
-
|
|
767
|
-
/**
|
|
768
|
-
* @internal
|
|
769
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
770
|
-
*/
|
|
771
|
-
export namespace TwoType$ {
|
|
772
|
-
/** @deprecated use `TwoType$inboundSchema` instead. */
|
|
773
|
-
export const inboundSchema = TwoType$inboundSchema;
|
|
774
|
-
/** @deprecated use `TwoType$outboundSchema` instead. */
|
|
775
|
-
export const outboundSchema = TwoType$outboundSchema;
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
/** @internal */
|
|
779
|
-
export const ImageUrl$inboundSchema: z.ZodType<
|
|
780
|
-
ImageUrl,
|
|
781
|
-
z.ZodTypeDef,
|
|
782
|
-
unknown
|
|
783
|
-
> = z.object({
|
|
784
|
-
url: z.string(),
|
|
785
|
-
detail: z.string().optional(),
|
|
786
|
-
});
|
|
787
|
-
|
|
788
|
-
/** @internal */
|
|
789
|
-
export type ImageUrl$Outbound = {
|
|
790
|
-
url: string;
|
|
791
|
-
detail?: string | undefined;
|
|
792
|
-
};
|
|
793
|
-
|
|
794
|
-
/** @internal */
|
|
795
|
-
export const ImageUrl$outboundSchema: z.ZodType<
|
|
796
|
-
ImageUrl$Outbound,
|
|
797
|
-
z.ZodTypeDef,
|
|
798
|
-
ImageUrl
|
|
799
|
-
> = z.object({
|
|
800
|
-
url: z.string(),
|
|
801
|
-
detail: z.string().optional(),
|
|
802
|
-
});
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
* @internal
|
|
806
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
807
|
-
*/
|
|
808
|
-
export namespace ImageUrl$ {
|
|
809
|
-
/** @deprecated use `ImageUrl$inboundSchema` instead. */
|
|
810
|
-
export const inboundSchema = ImageUrl$inboundSchema;
|
|
811
|
-
/** @deprecated use `ImageUrl$outboundSchema` instead. */
|
|
812
|
-
export const outboundSchema = ImageUrl$outboundSchema;
|
|
813
|
-
/** @deprecated use `ImageUrl$Outbound` instead. */
|
|
814
|
-
export type Outbound = ImageUrl$Outbound;
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
export function imageUrlToJSON(imageUrl: ImageUrl): string {
|
|
818
|
-
return JSON.stringify(ImageUrl$outboundSchema.parse(imageUrl));
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
export function imageUrlFromJSON(
|
|
822
|
-
jsonString: string,
|
|
823
|
-
): SafeParseResult<ImageUrl, SDKValidationError> {
|
|
824
|
-
return safeParse(
|
|
825
|
-
jsonString,
|
|
826
|
-
(x) => ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
827
|
-
`Failed to parse 'ImageUrl' from JSON`,
|
|
828
|
-
);
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
/** @internal */
|
|
832
|
-
export const Two2$inboundSchema: z.ZodType<Two2, z.ZodTypeDef, unknown> = z
|
|
833
|
-
.object({
|
|
834
|
-
type: TwoType$inboundSchema,
|
|
835
|
-
image_url: z.lazy(() => ImageUrl$inboundSchema),
|
|
836
|
-
}).transform((v) => {
|
|
837
|
-
return remap$(v, {
|
|
838
|
-
"image_url": "imageUrl",
|
|
839
|
-
});
|
|
840
|
-
});
|
|
841
|
-
|
|
842
|
-
/** @internal */
|
|
843
|
-
export type Two2$Outbound = {
|
|
844
|
-
type: string;
|
|
845
|
-
image_url: ImageUrl$Outbound;
|
|
846
|
-
};
|
|
847
|
-
|
|
848
|
-
/** @internal */
|
|
849
|
-
export const Two2$outboundSchema: z.ZodType<Two2$Outbound, z.ZodTypeDef, Two2> =
|
|
850
|
-
z.object({
|
|
851
|
-
type: TwoType$outboundSchema,
|
|
852
|
-
imageUrl: z.lazy(() => ImageUrl$outboundSchema),
|
|
853
|
-
}).transform((v) => {
|
|
854
|
-
return remap$(v, {
|
|
855
|
-
imageUrl: "image_url",
|
|
856
|
-
});
|
|
857
|
-
});
|
|
858
|
-
|
|
859
|
-
/**
|
|
860
|
-
* @internal
|
|
861
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
862
|
-
*/
|
|
863
|
-
export namespace Two2$ {
|
|
864
|
-
/** @deprecated use `Two2$inboundSchema` instead. */
|
|
865
|
-
export const inboundSchema = Two2$inboundSchema;
|
|
866
|
-
/** @deprecated use `Two2$outboundSchema` instead. */
|
|
867
|
-
export const outboundSchema = Two2$outboundSchema;
|
|
868
|
-
/** @deprecated use `Two2$Outbound` instead. */
|
|
869
|
-
export type Outbound = Two2$Outbound;
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
export function two2ToJSON(two2: Two2): string {
|
|
873
|
-
return JSON.stringify(Two2$outboundSchema.parse(two2));
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
export function two2FromJSON(
|
|
877
|
-
jsonString: string,
|
|
878
|
-
): SafeParseResult<Two2, SDKValidationError> {
|
|
879
|
-
return safeParse(
|
|
880
|
-
jsonString,
|
|
881
|
-
(x) => Two2$inboundSchema.parse(JSON.parse(x)),
|
|
882
|
-
`Failed to parse 'Two2' from JSON`,
|
|
883
|
-
);
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
/** @internal */
|
|
887
|
-
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
888
|
-
Type,
|
|
889
|
-
);
|
|
890
|
-
|
|
891
|
-
/** @internal */
|
|
892
|
-
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
893
|
-
Type$inboundSchema;
|
|
894
|
-
|
|
895
|
-
/**
|
|
896
|
-
* @internal
|
|
897
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
898
|
-
*/
|
|
899
|
-
export namespace Type$ {
|
|
900
|
-
/** @deprecated use `Type$inboundSchema` instead. */
|
|
901
|
-
export const inboundSchema = Type$inboundSchema;
|
|
902
|
-
/** @deprecated use `Type$outboundSchema` instead. */
|
|
903
|
-
export const outboundSchema = Type$outboundSchema;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
/** @internal */
|
|
907
|
-
export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
|
|
908
|
-
.object({
|
|
909
|
-
type: Type$inboundSchema,
|
|
910
|
-
text: z.string(),
|
|
911
|
-
});
|
|
912
|
-
|
|
913
|
-
/** @internal */
|
|
914
|
-
export type One$Outbound = {
|
|
915
|
-
type: string;
|
|
916
|
-
text: string;
|
|
917
|
-
};
|
|
918
|
-
|
|
919
|
-
/** @internal */
|
|
920
|
-
export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
|
|
921
|
-
.object({
|
|
922
|
-
type: Type$outboundSchema,
|
|
923
|
-
text: z.string(),
|
|
924
|
-
});
|
|
925
|
-
|
|
926
|
-
/**
|
|
927
|
-
* @internal
|
|
928
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
929
|
-
*/
|
|
930
|
-
export namespace One$ {
|
|
931
|
-
/** @deprecated use `One$inboundSchema` instead. */
|
|
932
|
-
export const inboundSchema = One$inboundSchema;
|
|
933
|
-
/** @deprecated use `One$outboundSchema` instead. */
|
|
934
|
-
export const outboundSchema = One$outboundSchema;
|
|
935
|
-
/** @deprecated use `One$Outbound` instead. */
|
|
936
|
-
export type Outbound = One$Outbound;
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
export function oneToJSON(one: One): string {
|
|
940
|
-
return JSON.stringify(One$outboundSchema.parse(one));
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
export function oneFromJSON(
|
|
944
|
-
jsonString: string,
|
|
945
|
-
): SafeParseResult<One, SDKValidationError> {
|
|
946
|
-
return safeParse(
|
|
947
|
-
jsonString,
|
|
948
|
-
(x) => One$inboundSchema.parse(JSON.parse(x)),
|
|
949
|
-
`Failed to parse 'One' from JSON`,
|
|
950
|
-
);
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
/** @internal */
|
|
954
|
-
export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z.union(
|
|
955
|
-
[z.lazy(() => One$inboundSchema), z.lazy(() => Two2$inboundSchema)],
|
|
956
|
-
);
|
|
957
|
-
|
|
958
|
-
/** @internal */
|
|
959
|
-
export type Two$Outbound = One$Outbound | Two2$Outbound;
|
|
960
|
-
|
|
961
|
-
/** @internal */
|
|
962
|
-
export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
963
|
-
.union([z.lazy(() => One$outboundSchema), z.lazy(() => Two2$outboundSchema)]);
|
|
964
|
-
|
|
965
|
-
/**
|
|
966
|
-
* @internal
|
|
967
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
968
|
-
*/
|
|
969
|
-
export namespace Two$ {
|
|
970
|
-
/** @deprecated use `Two$inboundSchema` instead. */
|
|
971
|
-
export const inboundSchema = Two$inboundSchema;
|
|
972
|
-
/** @deprecated use `Two$outboundSchema` instead. */
|
|
973
|
-
export const outboundSchema = Two$outboundSchema;
|
|
974
|
-
/** @deprecated use `Two$Outbound` instead. */
|
|
975
|
-
export type Outbound = Two$Outbound;
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
export function twoToJSON(two: Two): string {
|
|
979
|
-
return JSON.stringify(Two$outboundSchema.parse(two));
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
export function twoFromJSON(
|
|
983
|
-
jsonString: string,
|
|
984
|
-
): SafeParseResult<Two, SDKValidationError> {
|
|
985
|
-
return safeParse(
|
|
986
|
-
jsonString,
|
|
987
|
-
(x) => Two$inboundSchema.parse(JSON.parse(x)),
|
|
988
|
-
`Failed to parse 'Two' from JSON`,
|
|
989
|
-
);
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
/** @internal */
|
|
993
|
-
export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
|
|
994
|
-
z.union([
|
|
995
|
-
z.string(),
|
|
996
|
-
z.array(z.union([
|
|
997
|
-
z.lazy(() => One$inboundSchema),
|
|
998
|
-
z.lazy(() => Two2$inboundSchema),
|
|
999
|
-
])),
|
|
1000
|
-
]);
|
|
1001
|
-
|
|
1002
|
-
/** @internal */
|
|
1003
|
-
export type Content$Outbound = string | Array<One$Outbound | Two2$Outbound>;
|
|
1004
|
-
|
|
1005
|
-
/** @internal */
|
|
1006
|
-
export const Content$outboundSchema: z.ZodType<
|
|
1007
|
-
Content$Outbound,
|
|
1008
|
-
z.ZodTypeDef,
|
|
1009
|
-
Content
|
|
1010
|
-
> = z.union([
|
|
1011
|
-
z.string(),
|
|
1012
|
-
z.array(z.union([
|
|
1013
|
-
z.lazy(() => One$outboundSchema),
|
|
1014
|
-
z.lazy(() => Two2$outboundSchema),
|
|
1015
|
-
])),
|
|
1016
|
-
]);
|
|
1017
|
-
|
|
1018
|
-
/**
|
|
1019
|
-
* @internal
|
|
1020
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1021
|
-
*/
|
|
1022
|
-
export namespace Content$ {
|
|
1023
|
-
/** @deprecated use `Content$inboundSchema` instead. */
|
|
1024
|
-
export const inboundSchema = Content$inboundSchema;
|
|
1025
|
-
/** @deprecated use `Content$outboundSchema` instead. */
|
|
1026
|
-
export const outboundSchema = Content$outboundSchema;
|
|
1027
|
-
/** @deprecated use `Content$Outbound` instead. */
|
|
1028
|
-
export type Outbound = Content$Outbound;
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
export function contentToJSON(content: Content): string {
|
|
1032
|
-
return JSON.stringify(Content$outboundSchema.parse(content));
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
export function contentFromJSON(
|
|
1036
|
-
jsonString: string,
|
|
1037
|
-
): SafeParseResult<Content, SDKValidationError> {
|
|
1038
|
-
return safeParse(
|
|
1039
|
-
jsonString,
|
|
1040
|
-
(x) => Content$inboundSchema.parse(JSON.parse(x)),
|
|
1041
|
-
`Failed to parse 'Content' from JSON`,
|
|
1042
|
-
);
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
/** @internal */
|
|
1046
|
-
export const DeploymentGetConfigType$inboundSchema: z.ZodNativeEnum<
|
|
1047
|
-
typeof DeploymentGetConfigType
|
|
1048
|
-
> = z.nativeEnum(DeploymentGetConfigType);
|
|
1049
|
-
|
|
1050
|
-
/** @internal */
|
|
1051
|
-
export const DeploymentGetConfigType$outboundSchema: z.ZodNativeEnum<
|
|
1052
|
-
typeof DeploymentGetConfigType
|
|
1053
|
-
> = DeploymentGetConfigType$inboundSchema;
|
|
1054
|
-
|
|
1055
|
-
/**
|
|
1056
|
-
* @internal
|
|
1057
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1058
|
-
*/
|
|
1059
|
-
export namespace DeploymentGetConfigType$ {
|
|
1060
|
-
/** @deprecated use `DeploymentGetConfigType$inboundSchema` instead. */
|
|
1061
|
-
export const inboundSchema = DeploymentGetConfigType$inboundSchema;
|
|
1062
|
-
/** @deprecated use `DeploymentGetConfigType$outboundSchema` instead. */
|
|
1063
|
-
export const outboundSchema = DeploymentGetConfigType$outboundSchema;
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
/** @internal */
|
|
1067
|
-
export const FunctionT$inboundSchema: z.ZodType<
|
|
1068
|
-
FunctionT,
|
|
1069
|
-
z.ZodTypeDef,
|
|
1070
|
-
unknown
|
|
1071
|
-
> = z.object({
|
|
1072
|
-
name: z.string(),
|
|
1073
|
-
arguments: z.string(),
|
|
1074
|
-
});
|
|
1075
|
-
|
|
1076
|
-
/** @internal */
|
|
1077
|
-
export type FunctionT$Outbound = {
|
|
1078
|
-
name: string;
|
|
1079
|
-
arguments: string;
|
|
1080
|
-
};
|
|
1081
|
-
|
|
1082
|
-
/** @internal */
|
|
1083
|
-
export const FunctionT$outboundSchema: z.ZodType<
|
|
1084
|
-
FunctionT$Outbound,
|
|
1085
|
-
z.ZodTypeDef,
|
|
1086
|
-
FunctionT
|
|
1087
|
-
> = z.object({
|
|
1088
|
-
name: z.string(),
|
|
1089
|
-
arguments: z.string(),
|
|
1090
|
-
});
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
* @internal
|
|
1094
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1095
|
-
*/
|
|
1096
|
-
export namespace FunctionT$ {
|
|
1097
|
-
/** @deprecated use `FunctionT$inboundSchema` instead. */
|
|
1098
|
-
export const inboundSchema = FunctionT$inboundSchema;
|
|
1099
|
-
/** @deprecated use `FunctionT$outboundSchema` instead. */
|
|
1100
|
-
export const outboundSchema = FunctionT$outboundSchema;
|
|
1101
|
-
/** @deprecated use `FunctionT$Outbound` instead. */
|
|
1102
|
-
export type Outbound = FunctionT$Outbound;
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
export function functionToJSON(functionT: FunctionT): string {
|
|
1106
|
-
return JSON.stringify(FunctionT$outboundSchema.parse(functionT));
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
export function functionFromJSON(
|
|
1110
|
-
jsonString: string,
|
|
1111
|
-
): SafeParseResult<FunctionT, SDKValidationError> {
|
|
1112
|
-
return safeParse(
|
|
1113
|
-
jsonString,
|
|
1114
|
-
(x) => FunctionT$inboundSchema.parse(JSON.parse(x)),
|
|
1115
|
-
`Failed to parse 'FunctionT' from JSON`,
|
|
1116
|
-
);
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
/** @internal */
|
|
1120
|
-
export const ToolCalls$inboundSchema: z.ZodType<
|
|
1121
|
-
ToolCalls,
|
|
1122
|
-
z.ZodTypeDef,
|
|
1123
|
-
unknown
|
|
1124
|
-
> = z.object({
|
|
1125
|
-
id: z.string().optional(),
|
|
1126
|
-
index: z.number().optional(),
|
|
1127
|
-
type: DeploymentGetConfigType$inboundSchema,
|
|
1128
|
-
function: z.lazy(() => FunctionT$inboundSchema),
|
|
1129
|
-
});
|
|
1130
|
-
|
|
1131
|
-
/** @internal */
|
|
1132
|
-
export type ToolCalls$Outbound = {
|
|
1133
|
-
id?: string | undefined;
|
|
1134
|
-
index?: number | undefined;
|
|
1135
|
-
type: string;
|
|
1136
|
-
function: FunctionT$Outbound;
|
|
1137
|
-
};
|
|
1138
|
-
|
|
1139
|
-
/** @internal */
|
|
1140
|
-
export const ToolCalls$outboundSchema: z.ZodType<
|
|
1141
|
-
ToolCalls$Outbound,
|
|
1142
|
-
z.ZodTypeDef,
|
|
1143
|
-
ToolCalls
|
|
1144
|
-
> = z.object({
|
|
1145
|
-
id: z.string().optional(),
|
|
1146
|
-
index: z.number().optional(),
|
|
1147
|
-
type: DeploymentGetConfigType$outboundSchema,
|
|
1148
|
-
function: z.lazy(() => FunctionT$outboundSchema),
|
|
1149
|
-
});
|
|
1150
|
-
|
|
1151
|
-
/**
|
|
1152
|
-
* @internal
|
|
1153
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1154
|
-
*/
|
|
1155
|
-
export namespace ToolCalls$ {
|
|
1156
|
-
/** @deprecated use `ToolCalls$inboundSchema` instead. */
|
|
1157
|
-
export const inboundSchema = ToolCalls$inboundSchema;
|
|
1158
|
-
/** @deprecated use `ToolCalls$outboundSchema` instead. */
|
|
1159
|
-
export const outboundSchema = ToolCalls$outboundSchema;
|
|
1160
|
-
/** @deprecated use `ToolCalls$Outbound` instead. */
|
|
1161
|
-
export type Outbound = ToolCalls$Outbound;
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
export function toolCallsToJSON(toolCalls: ToolCalls): string {
|
|
1165
|
-
return JSON.stringify(ToolCalls$outboundSchema.parse(toolCalls));
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
export function toolCallsFromJSON(
|
|
1169
|
-
jsonString: string,
|
|
1170
|
-
): SafeParseResult<ToolCalls, SDKValidationError> {
|
|
1171
|
-
return safeParse(
|
|
1172
|
-
jsonString,
|
|
1173
|
-
(x) => ToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
1174
|
-
`Failed to parse 'ToolCalls' from JSON`,
|
|
1175
|
-
);
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
/** @internal */
|
|
1179
|
-
export const PrefixMessages$inboundSchema: z.ZodType<
|
|
1180
|
-
PrefixMessages,
|
|
1181
|
-
z.ZodTypeDef,
|
|
1182
|
-
unknown
|
|
1183
|
-
> = z.object({
|
|
1184
|
-
role: Role$inboundSchema,
|
|
1185
|
-
content: z.union([
|
|
1186
|
-
z.string(),
|
|
1187
|
-
z.array(z.union([
|
|
1188
|
-
z.lazy(() => One$inboundSchema),
|
|
1189
|
-
z.lazy(() => Two2$inboundSchema),
|
|
1190
|
-
])),
|
|
1191
|
-
]),
|
|
1192
|
-
tool_calls: z.array(z.lazy(() => ToolCalls$inboundSchema)).optional(),
|
|
1193
|
-
}).transform((v) => {
|
|
1194
|
-
return remap$(v, {
|
|
1195
|
-
"tool_calls": "toolCalls",
|
|
1196
|
-
});
|
|
1197
|
-
});
|
|
1198
|
-
|
|
1199
|
-
/** @internal */
|
|
1200
|
-
export type PrefixMessages$Outbound = {
|
|
1201
|
-
role: string;
|
|
1202
|
-
content: string | Array<One$Outbound | Two2$Outbound>;
|
|
1203
|
-
tool_calls?: Array<ToolCalls$Outbound> | undefined;
|
|
1204
|
-
};
|
|
1205
|
-
|
|
1206
|
-
/** @internal */
|
|
1207
|
-
export const PrefixMessages$outboundSchema: z.ZodType<
|
|
1208
|
-
PrefixMessages$Outbound,
|
|
1209
|
-
z.ZodTypeDef,
|
|
1210
|
-
PrefixMessages
|
|
1211
|
-
> = z.object({
|
|
1212
|
-
role: Role$outboundSchema,
|
|
1213
|
-
content: z.union([
|
|
1214
|
-
z.string(),
|
|
1215
|
-
z.array(z.union([
|
|
1216
|
-
z.lazy(() => One$outboundSchema),
|
|
1217
|
-
z.lazy(() => Two2$outboundSchema),
|
|
1218
|
-
])),
|
|
1219
|
-
]),
|
|
1220
|
-
toolCalls: z.array(z.lazy(() => ToolCalls$outboundSchema)).optional(),
|
|
1221
|
-
}).transform((v) => {
|
|
1222
|
-
return remap$(v, {
|
|
1223
|
-
toolCalls: "tool_calls",
|
|
1224
|
-
});
|
|
1225
|
-
});
|
|
1226
|
-
|
|
1227
|
-
/**
|
|
1228
|
-
* @internal
|
|
1229
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1230
|
-
*/
|
|
1231
|
-
export namespace PrefixMessages$ {
|
|
1232
|
-
/** @deprecated use `PrefixMessages$inboundSchema` instead. */
|
|
1233
|
-
export const inboundSchema = PrefixMessages$inboundSchema;
|
|
1234
|
-
/** @deprecated use `PrefixMessages$outboundSchema` instead. */
|
|
1235
|
-
export const outboundSchema = PrefixMessages$outboundSchema;
|
|
1236
|
-
/** @deprecated use `PrefixMessages$Outbound` instead. */
|
|
1237
|
-
export type Outbound = PrefixMessages$Outbound;
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
export function prefixMessagesToJSON(prefixMessages: PrefixMessages): string {
|
|
1241
|
-
return JSON.stringify(PrefixMessages$outboundSchema.parse(prefixMessages));
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
export function prefixMessagesFromJSON(
|
|
1245
|
-
jsonString: string,
|
|
1246
|
-
): SafeParseResult<PrefixMessages, SDKValidationError> {
|
|
1247
|
-
return safeParse(
|
|
1248
|
-
jsonString,
|
|
1249
|
-
(x) => PrefixMessages$inboundSchema.parse(JSON.parse(x)),
|
|
1250
|
-
`Failed to parse 'PrefixMessages' from JSON`,
|
|
1251
|
-
);
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
/** @internal */
|
|
1255
|
-
export const DeploymentGetConfigRole$inboundSchema: z.ZodNativeEnum<
|
|
1256
|
-
typeof DeploymentGetConfigRole
|
|
1257
|
-
> = z.nativeEnum(DeploymentGetConfigRole);
|
|
1258
|
-
|
|
1259
|
-
/** @internal */
|
|
1260
|
-
export const DeploymentGetConfigRole$outboundSchema: z.ZodNativeEnum<
|
|
1261
|
-
typeof DeploymentGetConfigRole
|
|
1262
|
-
> = DeploymentGetConfigRole$inboundSchema;
|
|
1263
|
-
|
|
1264
|
-
/**
|
|
1265
|
-
* @internal
|
|
1266
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1267
|
-
*/
|
|
1268
|
-
export namespace DeploymentGetConfigRole$ {
|
|
1269
|
-
/** @deprecated use `DeploymentGetConfigRole$inboundSchema` instead. */
|
|
1270
|
-
export const inboundSchema = DeploymentGetConfigRole$inboundSchema;
|
|
1271
|
-
/** @deprecated use `DeploymentGetConfigRole$outboundSchema` instead. */
|
|
1272
|
-
export const outboundSchema = DeploymentGetConfigRole$outboundSchema;
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
/** @internal */
|
|
1276
|
-
export const DeploymentGetConfig2DeploymentsType$inboundSchema: z.ZodNativeEnum<
|
|
1277
|
-
typeof DeploymentGetConfig2DeploymentsType
|
|
1278
|
-
> = z.nativeEnum(DeploymentGetConfig2DeploymentsType);
|
|
1279
|
-
|
|
1280
|
-
/** @internal */
|
|
1281
|
-
export const DeploymentGetConfig2DeploymentsType$outboundSchema:
|
|
1282
|
-
z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsType> =
|
|
1283
|
-
DeploymentGetConfig2DeploymentsType$inboundSchema;
|
|
1284
|
-
|
|
1285
|
-
/**
|
|
1286
|
-
* @internal
|
|
1287
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1288
|
-
*/
|
|
1289
|
-
export namespace DeploymentGetConfig2DeploymentsType$ {
|
|
1290
|
-
/** @deprecated use `DeploymentGetConfig2DeploymentsType$inboundSchema` instead. */
|
|
1291
|
-
export const inboundSchema =
|
|
1292
|
-
DeploymentGetConfig2DeploymentsType$inboundSchema;
|
|
1293
|
-
/** @deprecated use `DeploymentGetConfig2DeploymentsType$outboundSchema` instead. */
|
|
1294
|
-
export const outboundSchema =
|
|
1295
|
-
DeploymentGetConfig2DeploymentsType$outboundSchema;
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
/** @internal */
|
|
1299
|
-
export const TwoImageUrl$inboundSchema: z.ZodType<
|
|
1300
|
-
TwoImageUrl,
|
|
1301
|
-
z.ZodTypeDef,
|
|
1302
|
-
unknown
|
|
1303
|
-
> = z.object({
|
|
1304
|
-
url: z.string(),
|
|
1305
|
-
detail: z.string().optional(),
|
|
1306
|
-
});
|
|
1307
|
-
|
|
1308
|
-
/** @internal */
|
|
1309
|
-
export type TwoImageUrl$Outbound = {
|
|
1310
|
-
url: string;
|
|
1311
|
-
detail?: string | undefined;
|
|
1312
|
-
};
|
|
1313
|
-
|
|
1314
|
-
/** @internal */
|
|
1315
|
-
export const TwoImageUrl$outboundSchema: z.ZodType<
|
|
1316
|
-
TwoImageUrl$Outbound,
|
|
1317
|
-
z.ZodTypeDef,
|
|
1318
|
-
TwoImageUrl
|
|
1319
|
-
> = z.object({
|
|
1320
|
-
url: z.string(),
|
|
1321
|
-
detail: z.string().optional(),
|
|
1322
|
-
});
|
|
1323
|
-
|
|
1324
|
-
/**
|
|
1325
|
-
* @internal
|
|
1326
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1327
|
-
*/
|
|
1328
|
-
export namespace TwoImageUrl$ {
|
|
1329
|
-
/** @deprecated use `TwoImageUrl$inboundSchema` instead. */
|
|
1330
|
-
export const inboundSchema = TwoImageUrl$inboundSchema;
|
|
1331
|
-
/** @deprecated use `TwoImageUrl$outboundSchema` instead. */
|
|
1332
|
-
export const outboundSchema = TwoImageUrl$outboundSchema;
|
|
1333
|
-
/** @deprecated use `TwoImageUrl$Outbound` instead. */
|
|
1334
|
-
export type Outbound = TwoImageUrl$Outbound;
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
export function twoImageUrlToJSON(twoImageUrl: TwoImageUrl): string {
|
|
1338
|
-
return JSON.stringify(TwoImageUrl$outboundSchema.parse(twoImageUrl));
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
export function twoImageUrlFromJSON(
|
|
1342
|
-
jsonString: string,
|
|
1343
|
-
): SafeParseResult<TwoImageUrl, SDKValidationError> {
|
|
1344
|
-
return safeParse(
|
|
1345
|
-
jsonString,
|
|
1346
|
-
(x) => TwoImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1347
|
-
`Failed to parse 'TwoImageUrl' from JSON`,
|
|
1348
|
-
);
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
/** @internal */
|
|
1352
|
-
export const DeploymentGetConfig22$inboundSchema: z.ZodType<
|
|
1353
|
-
DeploymentGetConfig22,
|
|
1354
|
-
z.ZodTypeDef,
|
|
1355
|
-
unknown
|
|
1356
|
-
> = z.object({
|
|
1357
|
-
type: DeploymentGetConfig2DeploymentsType$inboundSchema,
|
|
1358
|
-
image_url: z.lazy(() => TwoImageUrl$inboundSchema),
|
|
1359
|
-
}).transform((v) => {
|
|
1360
|
-
return remap$(v, {
|
|
1361
|
-
"image_url": "imageUrl",
|
|
1362
|
-
});
|
|
1363
|
-
});
|
|
1364
|
-
|
|
1365
|
-
/** @internal */
|
|
1366
|
-
export type DeploymentGetConfig22$Outbound = {
|
|
1367
|
-
type: string;
|
|
1368
|
-
image_url: TwoImageUrl$Outbound;
|
|
1369
|
-
};
|
|
1370
|
-
|
|
1371
|
-
/** @internal */
|
|
1372
|
-
export const DeploymentGetConfig22$outboundSchema: z.ZodType<
|
|
1373
|
-
DeploymentGetConfig22$Outbound,
|
|
1374
|
-
z.ZodTypeDef,
|
|
1375
|
-
DeploymentGetConfig22
|
|
1376
|
-
> = z.object({
|
|
1377
|
-
type: DeploymentGetConfig2DeploymentsType$outboundSchema,
|
|
1378
|
-
imageUrl: z.lazy(() => TwoImageUrl$outboundSchema),
|
|
1379
|
-
}).transform((v) => {
|
|
1380
|
-
return remap$(v, {
|
|
1381
|
-
imageUrl: "image_url",
|
|
1382
|
-
});
|
|
1383
|
-
});
|
|
1384
|
-
|
|
1385
|
-
/**
|
|
1386
|
-
* @internal
|
|
1387
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1388
|
-
*/
|
|
1389
|
-
export namespace DeploymentGetConfig22$ {
|
|
1390
|
-
/** @deprecated use `DeploymentGetConfig22$inboundSchema` instead. */
|
|
1391
|
-
export const inboundSchema = DeploymentGetConfig22$inboundSchema;
|
|
1392
|
-
/** @deprecated use `DeploymentGetConfig22$outboundSchema` instead. */
|
|
1393
|
-
export const outboundSchema = DeploymentGetConfig22$outboundSchema;
|
|
1394
|
-
/** @deprecated use `DeploymentGetConfig22$Outbound` instead. */
|
|
1395
|
-
export type Outbound = DeploymentGetConfig22$Outbound;
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
export function deploymentGetConfig22ToJSON(
|
|
1399
|
-
deploymentGetConfig22: DeploymentGetConfig22,
|
|
1400
|
-
): string {
|
|
1401
|
-
return JSON.stringify(
|
|
1402
|
-
DeploymentGetConfig22$outboundSchema.parse(deploymentGetConfig22),
|
|
1403
|
-
);
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
|
-
export function deploymentGetConfig22FromJSON(
|
|
1407
|
-
jsonString: string,
|
|
1408
|
-
): SafeParseResult<DeploymentGetConfig22, SDKValidationError> {
|
|
1409
|
-
return safeParse(
|
|
1410
|
-
jsonString,
|
|
1411
|
-
(x) => DeploymentGetConfig22$inboundSchema.parse(JSON.parse(x)),
|
|
1412
|
-
`Failed to parse 'DeploymentGetConfig22' from JSON`,
|
|
1413
|
-
);
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
/** @internal */
|
|
1417
|
-
export const DeploymentGetConfig2Type$inboundSchema: z.ZodNativeEnum<
|
|
1418
|
-
typeof DeploymentGetConfig2Type
|
|
1419
|
-
> = z.nativeEnum(DeploymentGetConfig2Type);
|
|
1420
|
-
|
|
1421
|
-
/** @internal */
|
|
1422
|
-
export const DeploymentGetConfig2Type$outboundSchema: z.ZodNativeEnum<
|
|
1423
|
-
typeof DeploymentGetConfig2Type
|
|
1424
|
-
> = DeploymentGetConfig2Type$inboundSchema;
|
|
1425
|
-
|
|
1426
|
-
/**
|
|
1427
|
-
* @internal
|
|
1428
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1429
|
-
*/
|
|
1430
|
-
export namespace DeploymentGetConfig2Type$ {
|
|
1431
|
-
/** @deprecated use `DeploymentGetConfig2Type$inboundSchema` instead. */
|
|
1432
|
-
export const inboundSchema = DeploymentGetConfig2Type$inboundSchema;
|
|
1433
|
-
/** @deprecated use `DeploymentGetConfig2Type$outboundSchema` instead. */
|
|
1434
|
-
export const outboundSchema = DeploymentGetConfig2Type$outboundSchema;
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
/** @internal */
|
|
1438
|
-
export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
|
|
1439
|
-
.object({
|
|
1440
|
-
type: DeploymentGetConfig2Type$inboundSchema,
|
|
1441
|
-
text: z.string(),
|
|
1442
|
-
});
|
|
1443
|
-
|
|
1444
|
-
/** @internal */
|
|
1445
|
-
export type Two1$Outbound = {
|
|
1446
|
-
type: string;
|
|
1447
|
-
text: string;
|
|
1448
|
-
};
|
|
1449
|
-
|
|
1450
|
-
/** @internal */
|
|
1451
|
-
export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
|
|
1452
|
-
z.object({
|
|
1453
|
-
type: DeploymentGetConfig2Type$outboundSchema,
|
|
1454
|
-
text: z.string(),
|
|
1455
|
-
});
|
|
1456
|
-
|
|
1457
|
-
/**
|
|
1458
|
-
* @internal
|
|
1459
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1460
|
-
*/
|
|
1461
|
-
export namespace Two1$ {
|
|
1462
|
-
/** @deprecated use `Two1$inboundSchema` instead. */
|
|
1463
|
-
export const inboundSchema = Two1$inboundSchema;
|
|
1464
|
-
/** @deprecated use `Two1$outboundSchema` instead. */
|
|
1465
|
-
export const outboundSchema = Two1$outboundSchema;
|
|
1466
|
-
/** @deprecated use `Two1$Outbound` instead. */
|
|
1467
|
-
export type Outbound = Two1$Outbound;
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
|
-
export function two1ToJSON(two1: Two1): string {
|
|
1471
|
-
return JSON.stringify(Two1$outboundSchema.parse(two1));
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
export function two1FromJSON(
|
|
1475
|
-
jsonString: string,
|
|
1476
|
-
): SafeParseResult<Two1, SDKValidationError> {
|
|
1477
|
-
return safeParse(
|
|
1478
|
-
jsonString,
|
|
1479
|
-
(x) => Two1$inboundSchema.parse(JSON.parse(x)),
|
|
1480
|
-
`Failed to parse 'Two1' from JSON`,
|
|
1481
|
-
);
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
/** @internal */
|
|
1485
|
-
export const Content2$inboundSchema: z.ZodType<
|
|
1486
|
-
Content2,
|
|
1487
|
-
z.ZodTypeDef,
|
|
1488
|
-
unknown
|
|
1489
|
-
> = z.union([
|
|
1490
|
-
z.lazy(() => Two1$inboundSchema),
|
|
1491
|
-
z.lazy(() => DeploymentGetConfig22$inboundSchema),
|
|
1492
|
-
]);
|
|
1493
|
-
|
|
1494
|
-
/** @internal */
|
|
1495
|
-
export type Content2$Outbound = Two1$Outbound | DeploymentGetConfig22$Outbound;
|
|
1496
|
-
|
|
1497
|
-
/** @internal */
|
|
1498
|
-
export const Content2$outboundSchema: z.ZodType<
|
|
1499
|
-
Content2$Outbound,
|
|
1500
|
-
z.ZodTypeDef,
|
|
1501
|
-
Content2
|
|
1502
|
-
> = z.union([
|
|
1503
|
-
z.lazy(() => Two1$outboundSchema),
|
|
1504
|
-
z.lazy(() => DeploymentGetConfig22$outboundSchema),
|
|
1505
|
-
]);
|
|
1506
|
-
|
|
1507
|
-
/**
|
|
1508
|
-
* @internal
|
|
1509
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1510
|
-
*/
|
|
1511
|
-
export namespace Content2$ {
|
|
1512
|
-
/** @deprecated use `Content2$inboundSchema` instead. */
|
|
1513
|
-
export const inboundSchema = Content2$inboundSchema;
|
|
1514
|
-
/** @deprecated use `Content2$outboundSchema` instead. */
|
|
1515
|
-
export const outboundSchema = Content2$outboundSchema;
|
|
1516
|
-
/** @deprecated use `Content2$Outbound` instead. */
|
|
1517
|
-
export type Outbound = Content2$Outbound;
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
export function content2ToJSON(content2: Content2): string {
|
|
1521
|
-
return JSON.stringify(Content2$outboundSchema.parse(content2));
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
export function content2FromJSON(
|
|
1525
|
-
jsonString: string,
|
|
1526
|
-
): SafeParseResult<Content2, SDKValidationError> {
|
|
1527
|
-
return safeParse(
|
|
1528
|
-
jsonString,
|
|
1529
|
-
(x) => Content2$inboundSchema.parse(JSON.parse(x)),
|
|
1530
|
-
`Failed to parse 'Content2' from JSON`,
|
|
1531
|
-
);
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
/** @internal */
|
|
1535
|
-
export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
|
|
1536
|
-
DeploymentGetConfigContent,
|
|
1537
|
-
z.ZodTypeDef,
|
|
1538
|
-
unknown
|
|
1539
|
-
> = z.union([
|
|
1540
|
-
z.string(),
|
|
1541
|
-
z.array(z.union([
|
|
1542
|
-
z.lazy(() => Two1$inboundSchema),
|
|
1543
|
-
z.lazy(() => DeploymentGetConfig22$inboundSchema),
|
|
1544
|
-
])),
|
|
1545
|
-
]);
|
|
1546
|
-
|
|
1547
|
-
/** @internal */
|
|
1548
|
-
export type DeploymentGetConfigContent$Outbound =
|
|
1549
|
-
| string
|
|
1550
|
-
| Array<Two1$Outbound | DeploymentGetConfig22$Outbound>;
|
|
1551
|
-
|
|
1552
|
-
/** @internal */
|
|
1553
|
-
export const DeploymentGetConfigContent$outboundSchema: z.ZodType<
|
|
1554
|
-
DeploymentGetConfigContent$Outbound,
|
|
1555
|
-
z.ZodTypeDef,
|
|
1556
|
-
DeploymentGetConfigContent
|
|
1557
|
-
> = z.union([
|
|
1558
|
-
z.string(),
|
|
1559
|
-
z.array(z.union([
|
|
1560
|
-
z.lazy(() => Two1$outboundSchema),
|
|
1561
|
-
z.lazy(() => DeploymentGetConfig22$outboundSchema),
|
|
1562
|
-
])),
|
|
1563
|
-
]);
|
|
1564
|
-
|
|
1565
|
-
/**
|
|
1566
|
-
* @internal
|
|
1567
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1568
|
-
*/
|
|
1569
|
-
export namespace DeploymentGetConfigContent$ {
|
|
1570
|
-
/** @deprecated use `DeploymentGetConfigContent$inboundSchema` instead. */
|
|
1571
|
-
export const inboundSchema = DeploymentGetConfigContent$inboundSchema;
|
|
1572
|
-
/** @deprecated use `DeploymentGetConfigContent$outboundSchema` instead. */
|
|
1573
|
-
export const outboundSchema = DeploymentGetConfigContent$outboundSchema;
|
|
1574
|
-
/** @deprecated use `DeploymentGetConfigContent$Outbound` instead. */
|
|
1575
|
-
export type Outbound = DeploymentGetConfigContent$Outbound;
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
export function deploymentGetConfigContentToJSON(
|
|
1579
|
-
deploymentGetConfigContent: DeploymentGetConfigContent,
|
|
1580
|
-
): string {
|
|
1581
|
-
return JSON.stringify(
|
|
1582
|
-
DeploymentGetConfigContent$outboundSchema.parse(deploymentGetConfigContent),
|
|
1583
|
-
);
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
export function deploymentGetConfigContentFromJSON(
|
|
1587
|
-
jsonString: string,
|
|
1588
|
-
): SafeParseResult<DeploymentGetConfigContent, SDKValidationError> {
|
|
1589
|
-
return safeParse(
|
|
1590
|
-
jsonString,
|
|
1591
|
-
(x) => DeploymentGetConfigContent$inboundSchema.parse(JSON.parse(x)),
|
|
1592
|
-
`Failed to parse 'DeploymentGetConfigContent' from JSON`,
|
|
1593
|
-
);
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
|
-
/** @internal */
|
|
1597
|
-
export const DeploymentGetConfigDeploymentsType$inboundSchema: z.ZodNativeEnum<
|
|
1598
|
-
typeof DeploymentGetConfigDeploymentsType
|
|
1599
|
-
> = z.nativeEnum(DeploymentGetConfigDeploymentsType);
|
|
1600
|
-
|
|
1601
|
-
/** @internal */
|
|
1602
|
-
export const DeploymentGetConfigDeploymentsType$outboundSchema: z.ZodNativeEnum<
|
|
1603
|
-
typeof DeploymentGetConfigDeploymentsType
|
|
1604
|
-
> = DeploymentGetConfigDeploymentsType$inboundSchema;
|
|
1605
|
-
|
|
1606
|
-
/**
|
|
1607
|
-
* @internal
|
|
1608
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1609
|
-
*/
|
|
1610
|
-
export namespace DeploymentGetConfigDeploymentsType$ {
|
|
1611
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsType$inboundSchema` instead. */
|
|
1612
|
-
export const inboundSchema = DeploymentGetConfigDeploymentsType$inboundSchema;
|
|
1613
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsType$outboundSchema` instead. */
|
|
1614
|
-
export const outboundSchema =
|
|
1615
|
-
DeploymentGetConfigDeploymentsType$outboundSchema;
|
|
1616
|
-
}
|
|
1617
|
-
|
|
1618
|
-
/** @internal */
|
|
1619
|
-
export const DeploymentGetConfigFunction$inboundSchema: z.ZodType<
|
|
1620
|
-
DeploymentGetConfigFunction,
|
|
1621
|
-
z.ZodTypeDef,
|
|
1622
|
-
unknown
|
|
1623
|
-
> = z.object({
|
|
1624
|
-
name: z.string(),
|
|
1625
|
-
arguments: z.string(),
|
|
1626
|
-
});
|
|
1627
|
-
|
|
1628
|
-
/** @internal */
|
|
1629
|
-
export type DeploymentGetConfigFunction$Outbound = {
|
|
1630
|
-
name: string;
|
|
1631
|
-
arguments: string;
|
|
1632
|
-
};
|
|
1633
|
-
|
|
1634
|
-
/** @internal */
|
|
1635
|
-
export const DeploymentGetConfigFunction$outboundSchema: z.ZodType<
|
|
1636
|
-
DeploymentGetConfigFunction$Outbound,
|
|
1637
|
-
z.ZodTypeDef,
|
|
1638
|
-
DeploymentGetConfigFunction
|
|
1639
|
-
> = z.object({
|
|
1640
|
-
name: z.string(),
|
|
1641
|
-
arguments: z.string(),
|
|
1642
|
-
});
|
|
1643
|
-
|
|
1644
|
-
/**
|
|
1645
|
-
* @internal
|
|
1646
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1647
|
-
*/
|
|
1648
|
-
export namespace DeploymentGetConfigFunction$ {
|
|
1649
|
-
/** @deprecated use `DeploymentGetConfigFunction$inboundSchema` instead. */
|
|
1650
|
-
export const inboundSchema = DeploymentGetConfigFunction$inboundSchema;
|
|
1651
|
-
/** @deprecated use `DeploymentGetConfigFunction$outboundSchema` instead. */
|
|
1652
|
-
export const outboundSchema = DeploymentGetConfigFunction$outboundSchema;
|
|
1653
|
-
/** @deprecated use `DeploymentGetConfigFunction$Outbound` instead. */
|
|
1654
|
-
export type Outbound = DeploymentGetConfigFunction$Outbound;
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
export function deploymentGetConfigFunctionToJSON(
|
|
1658
|
-
deploymentGetConfigFunction: DeploymentGetConfigFunction,
|
|
1659
|
-
): string {
|
|
1660
|
-
return JSON.stringify(
|
|
1661
|
-
DeploymentGetConfigFunction$outboundSchema.parse(
|
|
1662
|
-
deploymentGetConfigFunction,
|
|
1663
|
-
),
|
|
1664
|
-
);
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
export function deploymentGetConfigFunctionFromJSON(
|
|
1668
|
-
jsonString: string,
|
|
1669
|
-
): SafeParseResult<DeploymentGetConfigFunction, SDKValidationError> {
|
|
1670
|
-
return safeParse(
|
|
1671
|
-
jsonString,
|
|
1672
|
-
(x) => DeploymentGetConfigFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1673
|
-
`Failed to parse 'DeploymentGetConfigFunction' from JSON`,
|
|
1674
|
-
);
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1677
|
-
/** @internal */
|
|
1678
|
-
export const DeploymentGetConfigToolCalls$inboundSchema: z.ZodType<
|
|
1679
|
-
DeploymentGetConfigToolCalls,
|
|
1680
|
-
z.ZodTypeDef,
|
|
1681
|
-
unknown
|
|
1682
|
-
> = z.object({
|
|
1683
|
-
id: z.string().optional(),
|
|
1684
|
-
index: z.number().optional(),
|
|
1685
|
-
type: DeploymentGetConfigDeploymentsType$inboundSchema,
|
|
1686
|
-
function: z.lazy(() => DeploymentGetConfigFunction$inboundSchema),
|
|
1687
|
-
});
|
|
1688
|
-
|
|
1689
|
-
/** @internal */
|
|
1690
|
-
export type DeploymentGetConfigToolCalls$Outbound = {
|
|
1691
|
-
id?: string | undefined;
|
|
1692
|
-
index?: number | undefined;
|
|
1693
|
-
type: string;
|
|
1694
|
-
function: DeploymentGetConfigFunction$Outbound;
|
|
1695
|
-
};
|
|
1696
|
-
|
|
1697
|
-
/** @internal */
|
|
1698
|
-
export const DeploymentGetConfigToolCalls$outboundSchema: z.ZodType<
|
|
1699
|
-
DeploymentGetConfigToolCalls$Outbound,
|
|
1700
|
-
z.ZodTypeDef,
|
|
1701
|
-
DeploymentGetConfigToolCalls
|
|
1702
|
-
> = z.object({
|
|
1703
|
-
id: z.string().optional(),
|
|
1704
|
-
index: z.number().optional(),
|
|
1705
|
-
type: DeploymentGetConfigDeploymentsType$outboundSchema,
|
|
1706
|
-
function: z.lazy(() => DeploymentGetConfigFunction$outboundSchema),
|
|
1707
|
-
});
|
|
1708
|
-
|
|
1709
|
-
/**
|
|
1710
|
-
* @internal
|
|
1711
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1712
|
-
*/
|
|
1713
|
-
export namespace DeploymentGetConfigToolCalls$ {
|
|
1714
|
-
/** @deprecated use `DeploymentGetConfigToolCalls$inboundSchema` instead. */
|
|
1715
|
-
export const inboundSchema = DeploymentGetConfigToolCalls$inboundSchema;
|
|
1716
|
-
/** @deprecated use `DeploymentGetConfigToolCalls$outboundSchema` instead. */
|
|
1717
|
-
export const outboundSchema = DeploymentGetConfigToolCalls$outboundSchema;
|
|
1718
|
-
/** @deprecated use `DeploymentGetConfigToolCalls$Outbound` instead. */
|
|
1719
|
-
export type Outbound = DeploymentGetConfigToolCalls$Outbound;
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
export function deploymentGetConfigToolCallsToJSON(
|
|
1723
|
-
deploymentGetConfigToolCalls: DeploymentGetConfigToolCalls,
|
|
1724
|
-
): string {
|
|
1725
|
-
return JSON.stringify(
|
|
1726
|
-
DeploymentGetConfigToolCalls$outboundSchema.parse(
|
|
1727
|
-
deploymentGetConfigToolCalls,
|
|
1728
|
-
),
|
|
1729
|
-
);
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
export function deploymentGetConfigToolCallsFromJSON(
|
|
1733
|
-
jsonString: string,
|
|
1734
|
-
): SafeParseResult<DeploymentGetConfigToolCalls, SDKValidationError> {
|
|
1735
|
-
return safeParse(
|
|
1736
|
-
jsonString,
|
|
1737
|
-
(x) => DeploymentGetConfigToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
1738
|
-
`Failed to parse 'DeploymentGetConfigToolCalls' from JSON`,
|
|
1739
|
-
);
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
/** @internal */
|
|
1743
|
-
export const Messages$inboundSchema: z.ZodType<
|
|
1744
|
-
Messages,
|
|
1745
|
-
z.ZodTypeDef,
|
|
1746
|
-
unknown
|
|
1747
|
-
> = z.object({
|
|
1748
|
-
role: DeploymentGetConfigRole$inboundSchema,
|
|
1749
|
-
content: z.union([
|
|
1750
|
-
z.string(),
|
|
1751
|
-
z.array(z.union([
|
|
1752
|
-
z.lazy(() => Two1$inboundSchema),
|
|
1753
|
-
z.lazy(() => DeploymentGetConfig22$inboundSchema),
|
|
1754
|
-
])),
|
|
1755
|
-
]),
|
|
1756
|
-
tool_calls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$inboundSchema))
|
|
1757
|
-
.optional(),
|
|
1758
|
-
}).transform((v) => {
|
|
1759
|
-
return remap$(v, {
|
|
1760
|
-
"tool_calls": "toolCalls",
|
|
1761
|
-
});
|
|
1762
|
-
});
|
|
1763
|
-
|
|
1764
|
-
/** @internal */
|
|
1765
|
-
export type Messages$Outbound = {
|
|
1766
|
-
role: string;
|
|
1767
|
-
content: string | Array<Two1$Outbound | DeploymentGetConfig22$Outbound>;
|
|
1768
|
-
tool_calls?: Array<DeploymentGetConfigToolCalls$Outbound> | undefined;
|
|
1769
|
-
};
|
|
1770
|
-
|
|
1771
|
-
/** @internal */
|
|
1772
|
-
export const Messages$outboundSchema: z.ZodType<
|
|
1773
|
-
Messages$Outbound,
|
|
1774
|
-
z.ZodTypeDef,
|
|
1775
|
-
Messages
|
|
1776
|
-
> = z.object({
|
|
1777
|
-
role: DeploymentGetConfigRole$outboundSchema,
|
|
1778
|
-
content: z.union([
|
|
1779
|
-
z.string(),
|
|
1780
|
-
z.array(z.union([
|
|
1781
|
-
z.lazy(() => Two1$outboundSchema),
|
|
1782
|
-
z.lazy(() => DeploymentGetConfig22$outboundSchema),
|
|
1783
|
-
])),
|
|
1784
|
-
]),
|
|
1785
|
-
toolCalls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$outboundSchema))
|
|
1786
|
-
.optional(),
|
|
1787
|
-
}).transform((v) => {
|
|
1788
|
-
return remap$(v, {
|
|
1789
|
-
toolCalls: "tool_calls",
|
|
1790
|
-
});
|
|
1791
|
-
});
|
|
1792
|
-
|
|
1793
|
-
/**
|
|
1794
|
-
* @internal
|
|
1795
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1796
|
-
*/
|
|
1797
|
-
export namespace Messages$ {
|
|
1798
|
-
/** @deprecated use `Messages$inboundSchema` instead. */
|
|
1799
|
-
export const inboundSchema = Messages$inboundSchema;
|
|
1800
|
-
/** @deprecated use `Messages$outboundSchema` instead. */
|
|
1801
|
-
export const outboundSchema = Messages$outboundSchema;
|
|
1802
|
-
/** @deprecated use `Messages$Outbound` instead. */
|
|
1803
|
-
export type Outbound = Messages$Outbound;
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
export function messagesToJSON(messages: Messages): string {
|
|
1807
|
-
return JSON.stringify(Messages$outboundSchema.parse(messages));
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
export function messagesFromJSON(
|
|
1811
|
-
jsonString: string,
|
|
1812
|
-
): SafeParseResult<Messages, SDKValidationError> {
|
|
1813
|
-
return safeParse(
|
|
1814
|
-
jsonString,
|
|
1815
|
-
(x) => Messages$inboundSchema.parse(JSON.parse(x)),
|
|
1816
|
-
`Failed to parse 'Messages' from JSON`,
|
|
1817
|
-
);
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
/** @internal */
|
|
1821
|
-
export const Metadata$inboundSchema: z.ZodType<
|
|
1822
|
-
Metadata,
|
|
1823
|
-
z.ZodTypeDef,
|
|
1824
|
-
unknown
|
|
1825
|
-
> = z.object({
|
|
1826
|
-
file_name: z.string().optional(),
|
|
1827
|
-
file_type: z.string().optional(),
|
|
1828
|
-
page_number: z.number().optional(),
|
|
1829
|
-
}).transform((v) => {
|
|
1830
|
-
return remap$(v, {
|
|
1831
|
-
"file_name": "fileName",
|
|
1832
|
-
"file_type": "fileType",
|
|
1833
|
-
"page_number": "pageNumber",
|
|
1834
|
-
});
|
|
1835
|
-
});
|
|
1836
|
-
|
|
1837
|
-
/** @internal */
|
|
1838
|
-
export type Metadata$Outbound = {
|
|
1839
|
-
file_name?: string | undefined;
|
|
1840
|
-
file_type?: string | undefined;
|
|
1841
|
-
page_number?: number | undefined;
|
|
1842
|
-
};
|
|
1843
|
-
|
|
1844
|
-
/** @internal */
|
|
1845
|
-
export const Metadata$outboundSchema: z.ZodType<
|
|
1846
|
-
Metadata$Outbound,
|
|
1847
|
-
z.ZodTypeDef,
|
|
1848
|
-
Metadata
|
|
1849
|
-
> = z.object({
|
|
1850
|
-
fileName: z.string().optional(),
|
|
1851
|
-
fileType: z.string().optional(),
|
|
1852
|
-
pageNumber: z.number().optional(),
|
|
1853
|
-
}).transform((v) => {
|
|
1854
|
-
return remap$(v, {
|
|
1855
|
-
fileName: "file_name",
|
|
1856
|
-
fileType: "file_type",
|
|
1857
|
-
pageNumber: "page_number",
|
|
1858
|
-
});
|
|
1859
|
-
});
|
|
1860
|
-
|
|
1861
|
-
/**
|
|
1862
|
-
* @internal
|
|
1863
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1864
|
-
*/
|
|
1865
|
-
export namespace Metadata$ {
|
|
1866
|
-
/** @deprecated use `Metadata$inboundSchema` instead. */
|
|
1867
|
-
export const inboundSchema = Metadata$inboundSchema;
|
|
1868
|
-
/** @deprecated use `Metadata$outboundSchema` instead. */
|
|
1869
|
-
export const outboundSchema = Metadata$outboundSchema;
|
|
1870
|
-
/** @deprecated use `Metadata$Outbound` instead. */
|
|
1871
|
-
export type Outbound = Metadata$Outbound;
|
|
1872
|
-
}
|
|
1873
|
-
|
|
1874
|
-
export function metadataToJSON(metadata: Metadata): string {
|
|
1875
|
-
return JSON.stringify(Metadata$outboundSchema.parse(metadata));
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
|
-
export function metadataFromJSON(
|
|
1879
|
-
jsonString: string,
|
|
1880
|
-
): SafeParseResult<Metadata, SDKValidationError> {
|
|
1881
|
-
return safeParse(
|
|
1882
|
-
jsonString,
|
|
1883
|
-
(x) => Metadata$inboundSchema.parse(JSON.parse(x)),
|
|
1884
|
-
`Failed to parse 'Metadata' from JSON`,
|
|
1885
|
-
);
|
|
1886
|
-
}
|
|
1887
|
-
|
|
1888
|
-
/** @internal */
|
|
1889
|
-
export const Documents$inboundSchema: z.ZodType<
|
|
1890
|
-
Documents,
|
|
1891
|
-
z.ZodTypeDef,
|
|
1892
|
-
unknown
|
|
1893
|
-
> = z.object({
|
|
1894
|
-
text: z.string(),
|
|
1895
|
-
metadata: z.lazy(() => Metadata$inboundSchema).optional(),
|
|
1896
|
-
});
|
|
1897
|
-
|
|
1898
|
-
/** @internal */
|
|
1899
|
-
export type Documents$Outbound = {
|
|
1900
|
-
text: string;
|
|
1901
|
-
metadata?: Metadata$Outbound | undefined;
|
|
1902
|
-
};
|
|
1903
|
-
|
|
1904
|
-
/** @internal */
|
|
1905
|
-
export const Documents$outboundSchema: z.ZodType<
|
|
1906
|
-
Documents$Outbound,
|
|
1907
|
-
z.ZodTypeDef,
|
|
1908
|
-
Documents
|
|
1909
|
-
> = z.object({
|
|
1910
|
-
text: z.string(),
|
|
1911
|
-
metadata: z.lazy(() => Metadata$outboundSchema).optional(),
|
|
1912
|
-
});
|
|
1913
|
-
|
|
1914
|
-
/**
|
|
1915
|
-
* @internal
|
|
1916
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1917
|
-
*/
|
|
1918
|
-
export namespace Documents$ {
|
|
1919
|
-
/** @deprecated use `Documents$inboundSchema` instead. */
|
|
1920
|
-
export const inboundSchema = Documents$inboundSchema;
|
|
1921
|
-
/** @deprecated use `Documents$outboundSchema` instead. */
|
|
1922
|
-
export const outboundSchema = Documents$outboundSchema;
|
|
1923
|
-
/** @deprecated use `Documents$Outbound` instead. */
|
|
1924
|
-
export type Outbound = Documents$Outbound;
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
|
-
export function documentsToJSON(documents: Documents): string {
|
|
1928
|
-
return JSON.stringify(Documents$outboundSchema.parse(documents));
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1931
|
-
export function documentsFromJSON(
|
|
1932
|
-
jsonString: string,
|
|
1933
|
-
): SafeParseResult<Documents, SDKValidationError> {
|
|
1934
|
-
return safeParse(
|
|
1935
|
-
jsonString,
|
|
1936
|
-
(x) => Documents$inboundSchema.parse(JSON.parse(x)),
|
|
1937
|
-
`Failed to parse 'Documents' from JSON`,
|
|
1938
|
-
);
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
/** @internal */
|
|
1942
|
-
export const InvokeOptions$inboundSchema: z.ZodType<
|
|
1943
|
-
InvokeOptions,
|
|
1944
|
-
z.ZodTypeDef,
|
|
1945
|
-
unknown
|
|
1946
|
-
> = z.object({
|
|
1947
|
-
include_retrievals: z.boolean().default(false),
|
|
1948
|
-
}).transform((v) => {
|
|
1949
|
-
return remap$(v, {
|
|
1950
|
-
"include_retrievals": "includeRetrievals",
|
|
1951
|
-
});
|
|
1952
|
-
});
|
|
1953
|
-
|
|
1954
|
-
/** @internal */
|
|
1955
|
-
export type InvokeOptions$Outbound = {
|
|
1956
|
-
include_retrievals: boolean;
|
|
1957
|
-
};
|
|
1958
|
-
|
|
1959
|
-
/** @internal */
|
|
1960
|
-
export const InvokeOptions$outboundSchema: z.ZodType<
|
|
1961
|
-
InvokeOptions$Outbound,
|
|
1962
|
-
z.ZodTypeDef,
|
|
1963
|
-
InvokeOptions
|
|
1964
|
-
> = z.object({
|
|
1965
|
-
includeRetrievals: z.boolean().default(false),
|
|
1966
|
-
}).transform((v) => {
|
|
1967
|
-
return remap$(v, {
|
|
1968
|
-
includeRetrievals: "include_retrievals",
|
|
1969
|
-
});
|
|
1970
|
-
});
|
|
1971
|
-
|
|
1972
|
-
/**
|
|
1973
|
-
* @internal
|
|
1974
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1975
|
-
*/
|
|
1976
|
-
export namespace InvokeOptions$ {
|
|
1977
|
-
/** @deprecated use `InvokeOptions$inboundSchema` instead. */
|
|
1978
|
-
export const inboundSchema = InvokeOptions$inboundSchema;
|
|
1979
|
-
/** @deprecated use `InvokeOptions$outboundSchema` instead. */
|
|
1980
|
-
export const outboundSchema = InvokeOptions$outboundSchema;
|
|
1981
|
-
/** @deprecated use `InvokeOptions$Outbound` instead. */
|
|
1982
|
-
export type Outbound = InvokeOptions$Outbound;
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1985
|
-
export function invokeOptionsToJSON(invokeOptions: InvokeOptions): string {
|
|
1986
|
-
return JSON.stringify(InvokeOptions$outboundSchema.parse(invokeOptions));
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
export function invokeOptionsFromJSON(
|
|
1990
|
-
jsonString: string,
|
|
1991
|
-
): SafeParseResult<InvokeOptions, SDKValidationError> {
|
|
1992
|
-
return safeParse(
|
|
1993
|
-
jsonString,
|
|
1994
|
-
(x) => InvokeOptions$inboundSchema.parse(JSON.parse(x)),
|
|
1995
|
-
`Failed to parse 'InvokeOptions' from JSON`,
|
|
1996
|
-
);
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
/** @internal */
|
|
2000
|
-
export const DeploymentGetConfigRequestBody$inboundSchema: z.ZodType<
|
|
2001
|
-
DeploymentGetConfigRequestBody,
|
|
2002
|
-
z.ZodTypeDef,
|
|
2003
|
-
unknown
|
|
2004
|
-
> = z.object({
|
|
2005
|
-
key: z.string(),
|
|
2006
|
-
inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
|
|
2007
|
-
context: z.record(z.any()).optional(),
|
|
2008
|
-
prefix_messages: z.array(z.lazy(() => PrefixMessages$inboundSchema))
|
|
2009
|
-
.optional(),
|
|
2010
|
-
messages: z.array(z.lazy(() => Messages$inboundSchema)).optional(),
|
|
2011
|
-
file_ids: z.array(z.string()).optional(),
|
|
2012
|
-
metadata: z.record(z.any()).optional(),
|
|
2013
|
-
extra_params: z.record(z.any()).optional(),
|
|
2014
|
-
documents: z.array(z.lazy(() => Documents$inboundSchema)).optional(),
|
|
2015
|
-
invoke_options: z.lazy(() => InvokeOptions$inboundSchema).optional(),
|
|
2016
|
-
}).transform((v) => {
|
|
2017
|
-
return remap$(v, {
|
|
2018
|
-
"prefix_messages": "prefixMessages",
|
|
2019
|
-
"file_ids": "fileIds",
|
|
2020
|
-
"extra_params": "extraParams",
|
|
2021
|
-
"invoke_options": "invokeOptions",
|
|
2022
|
-
});
|
|
2023
|
-
});
|
|
2024
|
-
|
|
2025
|
-
/** @internal */
|
|
2026
|
-
export type DeploymentGetConfigRequestBody$Outbound = {
|
|
2027
|
-
key: string;
|
|
2028
|
-
inputs?: { [k: string]: string | number | boolean } | undefined;
|
|
2029
|
-
context?: { [k: string]: any } | undefined;
|
|
2030
|
-
prefix_messages?: Array<PrefixMessages$Outbound> | undefined;
|
|
2031
|
-
messages?: Array<Messages$Outbound> | undefined;
|
|
2032
|
-
file_ids?: Array<string> | undefined;
|
|
2033
|
-
metadata?: { [k: string]: any } | undefined;
|
|
2034
|
-
extra_params?: { [k: string]: any } | undefined;
|
|
2035
|
-
documents?: Array<Documents$Outbound> | undefined;
|
|
2036
|
-
invoke_options?: InvokeOptions$Outbound | undefined;
|
|
2037
|
-
};
|
|
2038
|
-
|
|
2039
|
-
/** @internal */
|
|
2040
|
-
export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
|
|
2041
|
-
DeploymentGetConfigRequestBody$Outbound,
|
|
2042
|
-
z.ZodTypeDef,
|
|
2043
|
-
DeploymentGetConfigRequestBody
|
|
2044
|
-
> = z.object({
|
|
2045
|
-
key: z.string(),
|
|
2046
|
-
inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
|
|
2047
|
-
context: z.record(z.any()).optional(),
|
|
2048
|
-
prefixMessages: z.array(z.lazy(() => PrefixMessages$outboundSchema))
|
|
2049
|
-
.optional(),
|
|
2050
|
-
messages: z.array(z.lazy(() => Messages$outboundSchema)).optional(),
|
|
2051
|
-
fileIds: z.array(z.string()).optional(),
|
|
2052
|
-
metadata: z.record(z.any()).optional(),
|
|
2053
|
-
extraParams: z.record(z.any()).optional(),
|
|
2054
|
-
documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
|
|
2055
|
-
invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
|
|
2056
|
-
}).transform((v) => {
|
|
2057
|
-
return remap$(v, {
|
|
2058
|
-
prefixMessages: "prefix_messages",
|
|
2059
|
-
fileIds: "file_ids",
|
|
2060
|
-
extraParams: "extra_params",
|
|
2061
|
-
invokeOptions: "invoke_options",
|
|
2062
|
-
});
|
|
2063
|
-
});
|
|
2064
|
-
|
|
2065
|
-
/**
|
|
2066
|
-
* @internal
|
|
2067
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2068
|
-
*/
|
|
2069
|
-
export namespace DeploymentGetConfigRequestBody$ {
|
|
2070
|
-
/** @deprecated use `DeploymentGetConfigRequestBody$inboundSchema` instead. */
|
|
2071
|
-
export const inboundSchema = DeploymentGetConfigRequestBody$inboundSchema;
|
|
2072
|
-
/** @deprecated use `DeploymentGetConfigRequestBody$outboundSchema` instead. */
|
|
2073
|
-
export const outboundSchema = DeploymentGetConfigRequestBody$outboundSchema;
|
|
2074
|
-
/** @deprecated use `DeploymentGetConfigRequestBody$Outbound` instead. */
|
|
2075
|
-
export type Outbound = DeploymentGetConfigRequestBody$Outbound;
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
export function deploymentGetConfigRequestBodyToJSON(
|
|
2079
|
-
deploymentGetConfigRequestBody: DeploymentGetConfigRequestBody,
|
|
2080
|
-
): string {
|
|
2081
|
-
return JSON.stringify(
|
|
2082
|
-
DeploymentGetConfigRequestBody$outboundSchema.parse(
|
|
2083
|
-
deploymentGetConfigRequestBody,
|
|
2084
|
-
),
|
|
2085
|
-
);
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
export function deploymentGetConfigRequestBodyFromJSON(
|
|
2089
|
-
jsonString: string,
|
|
2090
|
-
): SafeParseResult<DeploymentGetConfigRequestBody, SDKValidationError> {
|
|
2091
|
-
return safeParse(
|
|
2092
|
-
jsonString,
|
|
2093
|
-
(x) => DeploymentGetConfigRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
2094
|
-
`Failed to parse 'DeploymentGetConfigRequestBody' from JSON`,
|
|
2095
|
-
);
|
|
2096
|
-
}
|
|
2097
|
-
|
|
2098
|
-
/** @internal */
|
|
2099
|
-
export const DeploymentGetConfigDeploymentsResponseType$inboundSchema:
|
|
2100
|
-
z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponseType> = z
|
|
2101
|
-
.nativeEnum(DeploymentGetConfigDeploymentsResponseType);
|
|
2102
|
-
|
|
2103
|
-
/** @internal */
|
|
2104
|
-
export const DeploymentGetConfigDeploymentsResponseType$outboundSchema:
|
|
2105
|
-
z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponseType> =
|
|
2106
|
-
DeploymentGetConfigDeploymentsResponseType$inboundSchema;
|
|
2107
|
-
|
|
2108
|
-
/**
|
|
2109
|
-
* @internal
|
|
2110
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2111
|
-
*/
|
|
2112
|
-
export namespace DeploymentGetConfigDeploymentsResponseType$ {
|
|
2113
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsResponseType$inboundSchema` instead. */
|
|
2114
|
-
export const inboundSchema =
|
|
2115
|
-
DeploymentGetConfigDeploymentsResponseType$inboundSchema;
|
|
2116
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsResponseType$outboundSchema` instead. */
|
|
2117
|
-
export const outboundSchema =
|
|
2118
|
-
DeploymentGetConfigDeploymentsResponseType$outboundSchema;
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
/** @internal */
|
|
2122
|
-
export const DeploymentGetConfigDeploymentsRole$inboundSchema: z.ZodNativeEnum<
|
|
2123
|
-
typeof DeploymentGetConfigDeploymentsRole
|
|
2124
|
-
> = z.nativeEnum(DeploymentGetConfigDeploymentsRole);
|
|
2125
|
-
|
|
2126
|
-
/** @internal */
|
|
2127
|
-
export const DeploymentGetConfigDeploymentsRole$outboundSchema: z.ZodNativeEnum<
|
|
2128
|
-
typeof DeploymentGetConfigDeploymentsRole
|
|
2129
|
-
> = DeploymentGetConfigDeploymentsRole$inboundSchema;
|
|
2130
|
-
|
|
2131
|
-
/**
|
|
2132
|
-
* @internal
|
|
2133
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2134
|
-
*/
|
|
2135
|
-
export namespace DeploymentGetConfigDeploymentsRole$ {
|
|
2136
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsRole$inboundSchema` instead. */
|
|
2137
|
-
export const inboundSchema = DeploymentGetConfigDeploymentsRole$inboundSchema;
|
|
2138
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsRole$outboundSchema` instead. */
|
|
2139
|
-
export const outboundSchema =
|
|
2140
|
-
DeploymentGetConfigDeploymentsRole$outboundSchema;
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
/** @internal */
|
|
2144
|
-
export const DeploymentGetConfig2DeploymentsResponse200Type$inboundSchema:
|
|
2145
|
-
z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsResponse200Type> = z
|
|
2146
|
-
.nativeEnum(DeploymentGetConfig2DeploymentsResponse200Type);
|
|
2147
|
-
|
|
2148
|
-
/** @internal */
|
|
2149
|
-
export const DeploymentGetConfig2DeploymentsResponse200Type$outboundSchema:
|
|
2150
|
-
z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsResponse200Type> =
|
|
2151
|
-
DeploymentGetConfig2DeploymentsResponse200Type$inboundSchema;
|
|
2152
|
-
|
|
2153
|
-
/**
|
|
2154
|
-
* @internal
|
|
2155
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2156
|
-
*/
|
|
2157
|
-
export namespace DeploymentGetConfig2DeploymentsResponse200Type$ {
|
|
2158
|
-
/** @deprecated use `DeploymentGetConfig2DeploymentsResponse200Type$inboundSchema` instead. */
|
|
2159
|
-
export const inboundSchema =
|
|
2160
|
-
DeploymentGetConfig2DeploymentsResponse200Type$inboundSchema;
|
|
2161
|
-
/** @deprecated use `DeploymentGetConfig2DeploymentsResponse200Type$outboundSchema` instead. */
|
|
2162
|
-
export const outboundSchema =
|
|
2163
|
-
DeploymentGetConfig2DeploymentsResponse200Type$outboundSchema;
|
|
2164
|
-
}
|
|
2165
|
-
|
|
2166
|
-
/** @internal */
|
|
2167
|
-
export const DeploymentGetConfig2ImageUrl$inboundSchema: z.ZodType<
|
|
2168
|
-
DeploymentGetConfig2ImageUrl,
|
|
2169
|
-
z.ZodTypeDef,
|
|
2170
|
-
unknown
|
|
2171
|
-
> = z.object({
|
|
2172
|
-
id: z.string().optional(),
|
|
2173
|
-
url: z.string(),
|
|
2174
|
-
detail: z.string().optional(),
|
|
2175
|
-
});
|
|
2176
|
-
|
|
2177
|
-
/** @internal */
|
|
2178
|
-
export type DeploymentGetConfig2ImageUrl$Outbound = {
|
|
2179
|
-
id?: string | undefined;
|
|
2180
|
-
url: string;
|
|
2181
|
-
detail?: string | undefined;
|
|
2182
|
-
};
|
|
2183
|
-
|
|
2184
|
-
/** @internal */
|
|
2185
|
-
export const DeploymentGetConfig2ImageUrl$outboundSchema: z.ZodType<
|
|
2186
|
-
DeploymentGetConfig2ImageUrl$Outbound,
|
|
2187
|
-
z.ZodTypeDef,
|
|
2188
|
-
DeploymentGetConfig2ImageUrl
|
|
2189
|
-
> = z.object({
|
|
2190
|
-
id: z.string().optional(),
|
|
2191
|
-
url: z.string(),
|
|
2192
|
-
detail: z.string().optional(),
|
|
2193
|
-
});
|
|
2194
|
-
|
|
2195
|
-
/**
|
|
2196
|
-
* @internal
|
|
2197
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2198
|
-
*/
|
|
2199
|
-
export namespace DeploymentGetConfig2ImageUrl$ {
|
|
2200
|
-
/** @deprecated use `DeploymentGetConfig2ImageUrl$inboundSchema` instead. */
|
|
2201
|
-
export const inboundSchema = DeploymentGetConfig2ImageUrl$inboundSchema;
|
|
2202
|
-
/** @deprecated use `DeploymentGetConfig2ImageUrl$outboundSchema` instead. */
|
|
2203
|
-
export const outboundSchema = DeploymentGetConfig2ImageUrl$outboundSchema;
|
|
2204
|
-
/** @deprecated use `DeploymentGetConfig2ImageUrl$Outbound` instead. */
|
|
2205
|
-
export type Outbound = DeploymentGetConfig2ImageUrl$Outbound;
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2208
|
-
export function deploymentGetConfig2ImageUrlToJSON(
|
|
2209
|
-
deploymentGetConfig2ImageUrl: DeploymentGetConfig2ImageUrl,
|
|
2210
|
-
): string {
|
|
2211
|
-
return JSON.stringify(
|
|
2212
|
-
DeploymentGetConfig2ImageUrl$outboundSchema.parse(
|
|
2213
|
-
deploymentGetConfig2ImageUrl,
|
|
2214
|
-
),
|
|
2215
|
-
);
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
export function deploymentGetConfig2ImageUrlFromJSON(
|
|
2219
|
-
jsonString: string,
|
|
2220
|
-
): SafeParseResult<DeploymentGetConfig2ImageUrl, SDKValidationError> {
|
|
2221
|
-
return safeParse(
|
|
2222
|
-
jsonString,
|
|
2223
|
-
(x) => DeploymentGetConfig2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
2224
|
-
`Failed to parse 'DeploymentGetConfig2ImageUrl' from JSON`,
|
|
2225
|
-
);
|
|
2226
|
-
}
|
|
2227
|
-
|
|
2228
|
-
/** @internal */
|
|
2229
|
-
export const DeploymentGetConfig2Deployments2$inboundSchema: z.ZodType<
|
|
2230
|
-
DeploymentGetConfig2Deployments2,
|
|
2231
|
-
z.ZodTypeDef,
|
|
2232
|
-
unknown
|
|
2233
|
-
> = z.object({
|
|
2234
|
-
type: DeploymentGetConfig2DeploymentsResponse200Type$inboundSchema,
|
|
2235
|
-
image_url: z.lazy(() => DeploymentGetConfig2ImageUrl$inboundSchema),
|
|
2236
|
-
}).transform((v) => {
|
|
2237
|
-
return remap$(v, {
|
|
2238
|
-
"image_url": "imageUrl",
|
|
2239
|
-
});
|
|
2240
|
-
});
|
|
2241
|
-
|
|
2242
|
-
/** @internal */
|
|
2243
|
-
export type DeploymentGetConfig2Deployments2$Outbound = {
|
|
2244
|
-
type: string;
|
|
2245
|
-
image_url: DeploymentGetConfig2ImageUrl$Outbound;
|
|
2246
|
-
};
|
|
2247
|
-
|
|
2248
|
-
/** @internal */
|
|
2249
|
-
export const DeploymentGetConfig2Deployments2$outboundSchema: z.ZodType<
|
|
2250
|
-
DeploymentGetConfig2Deployments2$Outbound,
|
|
2251
|
-
z.ZodTypeDef,
|
|
2252
|
-
DeploymentGetConfig2Deployments2
|
|
2253
|
-
> = z.object({
|
|
2254
|
-
type: DeploymentGetConfig2DeploymentsResponse200Type$outboundSchema,
|
|
2255
|
-
imageUrl: z.lazy(() => DeploymentGetConfig2ImageUrl$outboundSchema),
|
|
2256
|
-
}).transform((v) => {
|
|
2257
|
-
return remap$(v, {
|
|
2258
|
-
imageUrl: "image_url",
|
|
2259
|
-
});
|
|
2260
|
-
});
|
|
2261
|
-
|
|
2262
|
-
/**
|
|
2263
|
-
* @internal
|
|
2264
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2265
|
-
*/
|
|
2266
|
-
export namespace DeploymentGetConfig2Deployments2$ {
|
|
2267
|
-
/** @deprecated use `DeploymentGetConfig2Deployments2$inboundSchema` instead. */
|
|
2268
|
-
export const inboundSchema = DeploymentGetConfig2Deployments2$inboundSchema;
|
|
2269
|
-
/** @deprecated use `DeploymentGetConfig2Deployments2$outboundSchema` instead. */
|
|
2270
|
-
export const outboundSchema = DeploymentGetConfig2Deployments2$outboundSchema;
|
|
2271
|
-
/** @deprecated use `DeploymentGetConfig2Deployments2$Outbound` instead. */
|
|
2272
|
-
export type Outbound = DeploymentGetConfig2Deployments2$Outbound;
|
|
2273
|
-
}
|
|
2274
|
-
|
|
2275
|
-
export function deploymentGetConfig2Deployments2ToJSON(
|
|
2276
|
-
deploymentGetConfig2Deployments2: DeploymentGetConfig2Deployments2,
|
|
2277
|
-
): string {
|
|
2278
|
-
return JSON.stringify(
|
|
2279
|
-
DeploymentGetConfig2Deployments2$outboundSchema.parse(
|
|
2280
|
-
deploymentGetConfig2Deployments2,
|
|
2281
|
-
),
|
|
2282
|
-
);
|
|
2283
|
-
}
|
|
2284
|
-
|
|
2285
|
-
export function deploymentGetConfig2Deployments2FromJSON(
|
|
2286
|
-
jsonString: string,
|
|
2287
|
-
): SafeParseResult<DeploymentGetConfig2Deployments2, SDKValidationError> {
|
|
2288
|
-
return safeParse(
|
|
2289
|
-
jsonString,
|
|
2290
|
-
(x) => DeploymentGetConfig2Deployments2$inboundSchema.parse(JSON.parse(x)),
|
|
2291
|
-
`Failed to parse 'DeploymentGetConfig2Deployments2' from JSON`,
|
|
2292
|
-
);
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
|
-
/** @internal */
|
|
2296
|
-
export const DeploymentGetConfig2DeploymentsResponseType$inboundSchema:
|
|
2297
|
-
z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsResponseType> = z
|
|
2298
|
-
.nativeEnum(DeploymentGetConfig2DeploymentsResponseType);
|
|
2299
|
-
|
|
2300
|
-
/** @internal */
|
|
2301
|
-
export const DeploymentGetConfig2DeploymentsResponseType$outboundSchema:
|
|
2302
|
-
z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsResponseType> =
|
|
2303
|
-
DeploymentGetConfig2DeploymentsResponseType$inboundSchema;
|
|
2304
|
-
|
|
2305
|
-
/**
|
|
2306
|
-
* @internal
|
|
2307
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2308
|
-
*/
|
|
2309
|
-
export namespace DeploymentGetConfig2DeploymentsResponseType$ {
|
|
2310
|
-
/** @deprecated use `DeploymentGetConfig2DeploymentsResponseType$inboundSchema` instead. */
|
|
2311
|
-
export const inboundSchema =
|
|
2312
|
-
DeploymentGetConfig2DeploymentsResponseType$inboundSchema;
|
|
2313
|
-
/** @deprecated use `DeploymentGetConfig2DeploymentsResponseType$outboundSchema` instead. */
|
|
2314
|
-
export const outboundSchema =
|
|
2315
|
-
DeploymentGetConfig2DeploymentsResponseType$outboundSchema;
|
|
2316
|
-
}
|
|
2317
|
-
|
|
2318
|
-
/** @internal */
|
|
2319
|
-
export const DeploymentGetConfig21$inboundSchema: z.ZodType<
|
|
2320
|
-
DeploymentGetConfig21,
|
|
2321
|
-
z.ZodTypeDef,
|
|
2322
|
-
unknown
|
|
2323
|
-
> = z.object({
|
|
2324
|
-
type: DeploymentGetConfig2DeploymentsResponseType$inboundSchema,
|
|
2325
|
-
text: z.string(),
|
|
2326
|
-
});
|
|
2327
|
-
|
|
2328
|
-
/** @internal */
|
|
2329
|
-
export type DeploymentGetConfig21$Outbound = {
|
|
2330
|
-
type: string;
|
|
2331
|
-
text: string;
|
|
2332
|
-
};
|
|
2333
|
-
|
|
2334
|
-
/** @internal */
|
|
2335
|
-
export const DeploymentGetConfig21$outboundSchema: z.ZodType<
|
|
2336
|
-
DeploymentGetConfig21$Outbound,
|
|
2337
|
-
z.ZodTypeDef,
|
|
2338
|
-
DeploymentGetConfig21
|
|
2339
|
-
> = z.object({
|
|
2340
|
-
type: DeploymentGetConfig2DeploymentsResponseType$outboundSchema,
|
|
2341
|
-
text: z.string(),
|
|
2342
|
-
});
|
|
2343
|
-
|
|
2344
|
-
/**
|
|
2345
|
-
* @internal
|
|
2346
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2347
|
-
*/
|
|
2348
|
-
export namespace DeploymentGetConfig21$ {
|
|
2349
|
-
/** @deprecated use `DeploymentGetConfig21$inboundSchema` instead. */
|
|
2350
|
-
export const inboundSchema = DeploymentGetConfig21$inboundSchema;
|
|
2351
|
-
/** @deprecated use `DeploymentGetConfig21$outboundSchema` instead. */
|
|
2352
|
-
export const outboundSchema = DeploymentGetConfig21$outboundSchema;
|
|
2353
|
-
/** @deprecated use `DeploymentGetConfig21$Outbound` instead. */
|
|
2354
|
-
export type Outbound = DeploymentGetConfig21$Outbound;
|
|
2355
|
-
}
|
|
2356
|
-
|
|
2357
|
-
export function deploymentGetConfig21ToJSON(
|
|
2358
|
-
deploymentGetConfig21: DeploymentGetConfig21,
|
|
2359
|
-
): string {
|
|
2360
|
-
return JSON.stringify(
|
|
2361
|
-
DeploymentGetConfig21$outboundSchema.parse(deploymentGetConfig21),
|
|
2362
|
-
);
|
|
2363
|
-
}
|
|
2364
|
-
|
|
2365
|
-
export function deploymentGetConfig21FromJSON(
|
|
2366
|
-
jsonString: string,
|
|
2367
|
-
): SafeParseResult<DeploymentGetConfig21, SDKValidationError> {
|
|
2368
|
-
return safeParse(
|
|
2369
|
-
jsonString,
|
|
2370
|
-
(x) => DeploymentGetConfig21$inboundSchema.parse(JSON.parse(x)),
|
|
2371
|
-
`Failed to parse 'DeploymentGetConfig21' from JSON`,
|
|
2372
|
-
);
|
|
2373
|
-
}
|
|
2374
|
-
|
|
2375
|
-
/** @internal */
|
|
2376
|
-
export const DeploymentGetConfigContent2$inboundSchema: z.ZodType<
|
|
2377
|
-
DeploymentGetConfigContent2,
|
|
2378
|
-
z.ZodTypeDef,
|
|
2379
|
-
unknown
|
|
2380
|
-
> = z.union([
|
|
2381
|
-
z.lazy(() => DeploymentGetConfig21$inboundSchema),
|
|
2382
|
-
z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
|
|
2383
|
-
]);
|
|
2384
|
-
|
|
2385
|
-
/** @internal */
|
|
2386
|
-
export type DeploymentGetConfigContent2$Outbound =
|
|
2387
|
-
| DeploymentGetConfig21$Outbound
|
|
2388
|
-
| DeploymentGetConfig2Deployments2$Outbound;
|
|
2389
|
-
|
|
2390
|
-
/** @internal */
|
|
2391
|
-
export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
|
|
2392
|
-
DeploymentGetConfigContent2$Outbound,
|
|
2393
|
-
z.ZodTypeDef,
|
|
2394
|
-
DeploymentGetConfigContent2
|
|
2395
|
-
> = z.union([
|
|
2396
|
-
z.lazy(() => DeploymentGetConfig21$outboundSchema),
|
|
2397
|
-
z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
|
|
2398
|
-
]);
|
|
2399
|
-
|
|
2400
|
-
/**
|
|
2401
|
-
* @internal
|
|
2402
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2403
|
-
*/
|
|
2404
|
-
export namespace DeploymentGetConfigContent2$ {
|
|
2405
|
-
/** @deprecated use `DeploymentGetConfigContent2$inboundSchema` instead. */
|
|
2406
|
-
export const inboundSchema = DeploymentGetConfigContent2$inboundSchema;
|
|
2407
|
-
/** @deprecated use `DeploymentGetConfigContent2$outboundSchema` instead. */
|
|
2408
|
-
export const outboundSchema = DeploymentGetConfigContent2$outboundSchema;
|
|
2409
|
-
/** @deprecated use `DeploymentGetConfigContent2$Outbound` instead. */
|
|
2410
|
-
export type Outbound = DeploymentGetConfigContent2$Outbound;
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
|
-
export function deploymentGetConfigContent2ToJSON(
|
|
2414
|
-
deploymentGetConfigContent2: DeploymentGetConfigContent2,
|
|
2415
|
-
): string {
|
|
2416
|
-
return JSON.stringify(
|
|
2417
|
-
DeploymentGetConfigContent2$outboundSchema.parse(
|
|
2418
|
-
deploymentGetConfigContent2,
|
|
2419
|
-
),
|
|
2420
|
-
);
|
|
2421
|
-
}
|
|
2422
|
-
|
|
2423
|
-
export function deploymentGetConfigContent2FromJSON(
|
|
2424
|
-
jsonString: string,
|
|
2425
|
-
): SafeParseResult<DeploymentGetConfigContent2, SDKValidationError> {
|
|
2426
|
-
return safeParse(
|
|
2427
|
-
jsonString,
|
|
2428
|
-
(x) => DeploymentGetConfigContent2$inboundSchema.parse(JSON.parse(x)),
|
|
2429
|
-
`Failed to parse 'DeploymentGetConfigContent2' from JSON`,
|
|
2430
|
-
);
|
|
2431
|
-
}
|
|
2432
|
-
|
|
2433
|
-
/** @internal */
|
|
2434
|
-
export const DeploymentGetConfigDeploymentsContent$inboundSchema: z.ZodType<
|
|
2435
|
-
DeploymentGetConfigDeploymentsContent,
|
|
2436
|
-
z.ZodTypeDef,
|
|
2437
|
-
unknown
|
|
2438
|
-
> = z.union([
|
|
2439
|
-
z.string(),
|
|
2440
|
-
z.array(z.union([
|
|
2441
|
-
z.lazy(() => DeploymentGetConfig21$inboundSchema),
|
|
2442
|
-
z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
|
|
2443
|
-
])),
|
|
2444
|
-
]);
|
|
2445
|
-
|
|
2446
|
-
/** @internal */
|
|
2447
|
-
export type DeploymentGetConfigDeploymentsContent$Outbound =
|
|
2448
|
-
| string
|
|
2449
|
-
| Array<
|
|
2450
|
-
DeploymentGetConfig21$Outbound | DeploymentGetConfig2Deployments2$Outbound
|
|
2451
|
-
>;
|
|
2452
|
-
|
|
2453
|
-
/** @internal */
|
|
2454
|
-
export const DeploymentGetConfigDeploymentsContent$outboundSchema: z.ZodType<
|
|
2455
|
-
DeploymentGetConfigDeploymentsContent$Outbound,
|
|
2456
|
-
z.ZodTypeDef,
|
|
2457
|
-
DeploymentGetConfigDeploymentsContent
|
|
2458
|
-
> = z.union([
|
|
2459
|
-
z.string(),
|
|
2460
|
-
z.array(z.union([
|
|
2461
|
-
z.lazy(() => DeploymentGetConfig21$outboundSchema),
|
|
2462
|
-
z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
|
|
2463
|
-
])),
|
|
2464
|
-
]);
|
|
2465
|
-
|
|
2466
|
-
/**
|
|
2467
|
-
* @internal
|
|
2468
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2469
|
-
*/
|
|
2470
|
-
export namespace DeploymentGetConfigDeploymentsContent$ {
|
|
2471
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsContent$inboundSchema` instead. */
|
|
2472
|
-
export const inboundSchema =
|
|
2473
|
-
DeploymentGetConfigDeploymentsContent$inboundSchema;
|
|
2474
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsContent$outboundSchema` instead. */
|
|
2475
|
-
export const outboundSchema =
|
|
2476
|
-
DeploymentGetConfigDeploymentsContent$outboundSchema;
|
|
2477
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsContent$Outbound` instead. */
|
|
2478
|
-
export type Outbound = DeploymentGetConfigDeploymentsContent$Outbound;
|
|
2479
|
-
}
|
|
2480
|
-
|
|
2481
|
-
export function deploymentGetConfigDeploymentsContentToJSON(
|
|
2482
|
-
deploymentGetConfigDeploymentsContent: DeploymentGetConfigDeploymentsContent,
|
|
2483
|
-
): string {
|
|
2484
|
-
return JSON.stringify(
|
|
2485
|
-
DeploymentGetConfigDeploymentsContent$outboundSchema.parse(
|
|
2486
|
-
deploymentGetConfigDeploymentsContent,
|
|
2487
|
-
),
|
|
2488
|
-
);
|
|
2489
|
-
}
|
|
2490
|
-
|
|
2491
|
-
export function deploymentGetConfigDeploymentsContentFromJSON(
|
|
2492
|
-
jsonString: string,
|
|
2493
|
-
): SafeParseResult<DeploymentGetConfigDeploymentsContent, SDKValidationError> {
|
|
2494
|
-
return safeParse(
|
|
2495
|
-
jsonString,
|
|
2496
|
-
(x) =>
|
|
2497
|
-
DeploymentGetConfigDeploymentsContent$inboundSchema.parse(JSON.parse(x)),
|
|
2498
|
-
`Failed to parse 'DeploymentGetConfigDeploymentsContent' from JSON`,
|
|
2499
|
-
);
|
|
2500
|
-
}
|
|
2501
|
-
|
|
2502
|
-
/** @internal */
|
|
2503
|
-
export const DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$inboundSchema:
|
|
2504
|
-
z.ZodNativeEnum<
|
|
2505
|
-
typeof DeploymentGetConfigDeploymentsResponse200ApplicationJSONType
|
|
2506
|
-
> = z.nativeEnum(
|
|
2507
|
-
DeploymentGetConfigDeploymentsResponse200ApplicationJSONType,
|
|
2508
|
-
);
|
|
2509
|
-
|
|
2510
|
-
/** @internal */
|
|
2511
|
-
export const DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$outboundSchema:
|
|
2512
|
-
z.ZodNativeEnum<
|
|
2513
|
-
typeof DeploymentGetConfigDeploymentsResponse200ApplicationJSONType
|
|
2514
|
-
> =
|
|
2515
|
-
DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$inboundSchema;
|
|
2516
|
-
|
|
2517
|
-
/**
|
|
2518
|
-
* @internal
|
|
2519
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2520
|
-
*/
|
|
2521
|
-
export namespace DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$ {
|
|
2522
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$inboundSchema` instead. */
|
|
2523
|
-
export const inboundSchema =
|
|
2524
|
-
DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$inboundSchema;
|
|
2525
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$outboundSchema` instead. */
|
|
2526
|
-
export const outboundSchema =
|
|
2527
|
-
DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$outboundSchema;
|
|
2528
|
-
}
|
|
2529
|
-
|
|
2530
|
-
/** @internal */
|
|
2531
|
-
export const DeploymentGetConfigDeploymentsResponseFunction$inboundSchema:
|
|
2532
|
-
z.ZodType<
|
|
2533
|
-
DeploymentGetConfigDeploymentsResponseFunction,
|
|
2534
|
-
z.ZodTypeDef,
|
|
2535
|
-
unknown
|
|
2536
|
-
> = z.object({
|
|
2537
|
-
name: z.string(),
|
|
2538
|
-
arguments: z.string(),
|
|
2539
|
-
});
|
|
2540
|
-
|
|
2541
|
-
/** @internal */
|
|
2542
|
-
export type DeploymentGetConfigDeploymentsResponseFunction$Outbound = {
|
|
2543
|
-
name: string;
|
|
2544
|
-
arguments: string;
|
|
2545
|
-
};
|
|
2546
|
-
|
|
2547
|
-
/** @internal */
|
|
2548
|
-
export const DeploymentGetConfigDeploymentsResponseFunction$outboundSchema:
|
|
2549
|
-
z.ZodType<
|
|
2550
|
-
DeploymentGetConfigDeploymentsResponseFunction$Outbound,
|
|
2551
|
-
z.ZodTypeDef,
|
|
2552
|
-
DeploymentGetConfigDeploymentsResponseFunction
|
|
2553
|
-
> = z.object({
|
|
2554
|
-
name: z.string(),
|
|
2555
|
-
arguments: z.string(),
|
|
2556
|
-
});
|
|
2557
|
-
|
|
2558
|
-
/**
|
|
2559
|
-
* @internal
|
|
2560
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2561
|
-
*/
|
|
2562
|
-
export namespace DeploymentGetConfigDeploymentsResponseFunction$ {
|
|
2563
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsResponseFunction$inboundSchema` instead. */
|
|
2564
|
-
export const inboundSchema =
|
|
2565
|
-
DeploymentGetConfigDeploymentsResponseFunction$inboundSchema;
|
|
2566
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsResponseFunction$outboundSchema` instead. */
|
|
2567
|
-
export const outboundSchema =
|
|
2568
|
-
DeploymentGetConfigDeploymentsResponseFunction$outboundSchema;
|
|
2569
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsResponseFunction$Outbound` instead. */
|
|
2570
|
-
export type Outbound =
|
|
2571
|
-
DeploymentGetConfigDeploymentsResponseFunction$Outbound;
|
|
2572
|
-
}
|
|
2573
|
-
|
|
2574
|
-
export function deploymentGetConfigDeploymentsResponseFunctionToJSON(
|
|
2575
|
-
deploymentGetConfigDeploymentsResponseFunction:
|
|
2576
|
-
DeploymentGetConfigDeploymentsResponseFunction,
|
|
2577
|
-
): string {
|
|
2578
|
-
return JSON.stringify(
|
|
2579
|
-
DeploymentGetConfigDeploymentsResponseFunction$outboundSchema.parse(
|
|
2580
|
-
deploymentGetConfigDeploymentsResponseFunction,
|
|
2581
|
-
),
|
|
2582
|
-
);
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
export function deploymentGetConfigDeploymentsResponseFunctionFromJSON(
|
|
2586
|
-
jsonString: string,
|
|
2587
|
-
): SafeParseResult<
|
|
2588
|
-
DeploymentGetConfigDeploymentsResponseFunction,
|
|
2589
|
-
SDKValidationError
|
|
2590
|
-
> {
|
|
2591
|
-
return safeParse(
|
|
2592
|
-
jsonString,
|
|
2593
|
-
(x) =>
|
|
2594
|
-
DeploymentGetConfigDeploymentsResponseFunction$inboundSchema.parse(
|
|
2595
|
-
JSON.parse(x),
|
|
2596
|
-
),
|
|
2597
|
-
`Failed to parse 'DeploymentGetConfigDeploymentsResponseFunction' from JSON`,
|
|
2598
|
-
);
|
|
2599
|
-
}
|
|
2600
|
-
|
|
2601
|
-
/** @internal */
|
|
2602
|
-
export const DeploymentGetConfigDeploymentsToolCalls$inboundSchema: z.ZodType<
|
|
2603
|
-
DeploymentGetConfigDeploymentsToolCalls,
|
|
2604
|
-
z.ZodTypeDef,
|
|
2605
|
-
unknown
|
|
2606
|
-
> = z.object({
|
|
2607
|
-
id: z.string().optional(),
|
|
2608
|
-
index: z.number().optional(),
|
|
2609
|
-
type:
|
|
2610
|
-
DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$inboundSchema,
|
|
2611
|
-
function: z.lazy(() =>
|
|
2612
|
-
DeploymentGetConfigDeploymentsResponseFunction$inboundSchema
|
|
2613
|
-
),
|
|
2614
|
-
});
|
|
2615
|
-
|
|
2616
|
-
/** @internal */
|
|
2617
|
-
export type DeploymentGetConfigDeploymentsToolCalls$Outbound = {
|
|
2618
|
-
id?: string | undefined;
|
|
2619
|
-
index?: number | undefined;
|
|
2620
|
-
type: string;
|
|
2621
|
-
function: DeploymentGetConfigDeploymentsResponseFunction$Outbound;
|
|
2622
|
-
};
|
|
2623
|
-
|
|
2624
|
-
/** @internal */
|
|
2625
|
-
export const DeploymentGetConfigDeploymentsToolCalls$outboundSchema: z.ZodType<
|
|
2626
|
-
DeploymentGetConfigDeploymentsToolCalls$Outbound,
|
|
2627
|
-
z.ZodTypeDef,
|
|
2628
|
-
DeploymentGetConfigDeploymentsToolCalls
|
|
2629
|
-
> = z.object({
|
|
2630
|
-
id: z.string().optional(),
|
|
2631
|
-
index: z.number().optional(),
|
|
2632
|
-
type:
|
|
2633
|
-
DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$outboundSchema,
|
|
2634
|
-
function: z.lazy(() =>
|
|
2635
|
-
DeploymentGetConfigDeploymentsResponseFunction$outboundSchema
|
|
2636
|
-
),
|
|
2637
|
-
});
|
|
2638
|
-
|
|
2639
|
-
/**
|
|
2640
|
-
* @internal
|
|
2641
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2642
|
-
*/
|
|
2643
|
-
export namespace DeploymentGetConfigDeploymentsToolCalls$ {
|
|
2644
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsToolCalls$inboundSchema` instead. */
|
|
2645
|
-
export const inboundSchema =
|
|
2646
|
-
DeploymentGetConfigDeploymentsToolCalls$inboundSchema;
|
|
2647
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsToolCalls$outboundSchema` instead. */
|
|
2648
|
-
export const outboundSchema =
|
|
2649
|
-
DeploymentGetConfigDeploymentsToolCalls$outboundSchema;
|
|
2650
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsToolCalls$Outbound` instead. */
|
|
2651
|
-
export type Outbound = DeploymentGetConfigDeploymentsToolCalls$Outbound;
|
|
2652
|
-
}
|
|
2653
|
-
|
|
2654
|
-
export function deploymentGetConfigDeploymentsToolCallsToJSON(
|
|
2655
|
-
deploymentGetConfigDeploymentsToolCalls:
|
|
2656
|
-
DeploymentGetConfigDeploymentsToolCalls,
|
|
2657
|
-
): string {
|
|
2658
|
-
return JSON.stringify(
|
|
2659
|
-
DeploymentGetConfigDeploymentsToolCalls$outboundSchema.parse(
|
|
2660
|
-
deploymentGetConfigDeploymentsToolCalls,
|
|
2661
|
-
),
|
|
2662
|
-
);
|
|
2663
|
-
}
|
|
2664
|
-
|
|
2665
|
-
export function deploymentGetConfigDeploymentsToolCallsFromJSON(
|
|
2666
|
-
jsonString: string,
|
|
2667
|
-
): SafeParseResult<
|
|
2668
|
-
DeploymentGetConfigDeploymentsToolCalls,
|
|
2669
|
-
SDKValidationError
|
|
2670
|
-
> {
|
|
2671
|
-
return safeParse(
|
|
2672
|
-
jsonString,
|
|
2673
|
-
(x) =>
|
|
2674
|
-
DeploymentGetConfigDeploymentsToolCalls$inboundSchema.parse(
|
|
2675
|
-
JSON.parse(x),
|
|
2676
|
-
),
|
|
2677
|
-
`Failed to parse 'DeploymentGetConfigDeploymentsToolCalls' from JSON`,
|
|
2678
|
-
);
|
|
2679
|
-
}
|
|
2680
|
-
|
|
2681
|
-
/** @internal */
|
|
2682
|
-
export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
|
|
2683
|
-
DeploymentGetConfigMessages,
|
|
2684
|
-
z.ZodTypeDef,
|
|
2685
|
-
unknown
|
|
2686
|
-
> = z.object({
|
|
2687
|
-
role: DeploymentGetConfigDeploymentsRole$inboundSchema,
|
|
2688
|
-
content: z.union([
|
|
2689
|
-
z.string(),
|
|
2690
|
-
z.array(z.union([
|
|
2691
|
-
z.lazy(() => DeploymentGetConfig21$inboundSchema),
|
|
2692
|
-
z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
|
|
2693
|
-
])),
|
|
2694
|
-
]),
|
|
2695
|
-
tool_calls: z.array(
|
|
2696
|
-
z.lazy(() => DeploymentGetConfigDeploymentsToolCalls$inboundSchema),
|
|
2697
|
-
).optional(),
|
|
2698
|
-
}).transform((v) => {
|
|
2699
|
-
return remap$(v, {
|
|
2700
|
-
"tool_calls": "toolCalls",
|
|
2701
|
-
});
|
|
2702
|
-
});
|
|
2703
|
-
|
|
2704
|
-
/** @internal */
|
|
2705
|
-
export type DeploymentGetConfigMessages$Outbound = {
|
|
2706
|
-
role: string;
|
|
2707
|
-
content:
|
|
2708
|
-
| string
|
|
2709
|
-
| Array<
|
|
2710
|
-
DeploymentGetConfig21$Outbound | DeploymentGetConfig2Deployments2$Outbound
|
|
2711
|
-
>;
|
|
2712
|
-
tool_calls?:
|
|
2713
|
-
| Array<DeploymentGetConfigDeploymentsToolCalls$Outbound>
|
|
2714
|
-
| undefined;
|
|
2715
|
-
};
|
|
2716
|
-
|
|
2717
|
-
/** @internal */
|
|
2718
|
-
export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
|
|
2719
|
-
DeploymentGetConfigMessages$Outbound,
|
|
2720
|
-
z.ZodTypeDef,
|
|
2721
|
-
DeploymentGetConfigMessages
|
|
2722
|
-
> = z.object({
|
|
2723
|
-
role: DeploymentGetConfigDeploymentsRole$outboundSchema,
|
|
2724
|
-
content: z.union([
|
|
2725
|
-
z.string(),
|
|
2726
|
-
z.array(z.union([
|
|
2727
|
-
z.lazy(() => DeploymentGetConfig21$outboundSchema),
|
|
2728
|
-
z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
|
|
2729
|
-
])),
|
|
2730
|
-
]),
|
|
2731
|
-
toolCalls: z.array(
|
|
2732
|
-
z.lazy(() => DeploymentGetConfigDeploymentsToolCalls$outboundSchema),
|
|
2733
|
-
).optional(),
|
|
2734
|
-
}).transform((v) => {
|
|
2735
|
-
return remap$(v, {
|
|
2736
|
-
toolCalls: "tool_calls",
|
|
2737
|
-
});
|
|
2738
|
-
});
|
|
2739
|
-
|
|
2740
|
-
/**
|
|
2741
|
-
* @internal
|
|
2742
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2743
|
-
*/
|
|
2744
|
-
export namespace DeploymentGetConfigMessages$ {
|
|
2745
|
-
/** @deprecated use `DeploymentGetConfigMessages$inboundSchema` instead. */
|
|
2746
|
-
export const inboundSchema = DeploymentGetConfigMessages$inboundSchema;
|
|
2747
|
-
/** @deprecated use `DeploymentGetConfigMessages$outboundSchema` instead. */
|
|
2748
|
-
export const outboundSchema = DeploymentGetConfigMessages$outboundSchema;
|
|
2749
|
-
/** @deprecated use `DeploymentGetConfigMessages$Outbound` instead. */
|
|
2750
|
-
export type Outbound = DeploymentGetConfigMessages$Outbound;
|
|
2751
|
-
}
|
|
2752
|
-
|
|
2753
|
-
export function deploymentGetConfigMessagesToJSON(
|
|
2754
|
-
deploymentGetConfigMessages: DeploymentGetConfigMessages,
|
|
2755
|
-
): string {
|
|
2756
|
-
return JSON.stringify(
|
|
2757
|
-
DeploymentGetConfigMessages$outboundSchema.parse(
|
|
2758
|
-
deploymentGetConfigMessages,
|
|
2759
|
-
),
|
|
2760
|
-
);
|
|
2761
|
-
}
|
|
2762
|
-
|
|
2763
|
-
export function deploymentGetConfigMessagesFromJSON(
|
|
2764
|
-
jsonString: string,
|
|
2765
|
-
): SafeParseResult<DeploymentGetConfigMessages, SDKValidationError> {
|
|
2766
|
-
return safeParse(
|
|
2767
|
-
jsonString,
|
|
2768
|
-
(x) => DeploymentGetConfigMessages$inboundSchema.parse(JSON.parse(x)),
|
|
2769
|
-
`Failed to parse 'DeploymentGetConfigMessages' from JSON`,
|
|
2770
|
-
);
|
|
2771
|
-
}
|
|
2772
|
-
|
|
2773
|
-
/** @internal */
|
|
2774
|
-
export const DeploymentGetConfigFormat$inboundSchema: z.ZodNativeEnum<
|
|
2775
|
-
typeof DeploymentGetConfigFormat
|
|
2776
|
-
> = z.nativeEnum(DeploymentGetConfigFormat);
|
|
2777
|
-
|
|
2778
|
-
/** @internal */
|
|
2779
|
-
export const DeploymentGetConfigFormat$outboundSchema: z.ZodNativeEnum<
|
|
2780
|
-
typeof DeploymentGetConfigFormat
|
|
2781
|
-
> = DeploymentGetConfigFormat$inboundSchema;
|
|
2782
|
-
|
|
2783
|
-
/**
|
|
2784
|
-
* @internal
|
|
2785
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2786
|
-
*/
|
|
2787
|
-
export namespace DeploymentGetConfigFormat$ {
|
|
2788
|
-
/** @deprecated use `DeploymentGetConfigFormat$inboundSchema` instead. */
|
|
2789
|
-
export const inboundSchema = DeploymentGetConfigFormat$inboundSchema;
|
|
2790
|
-
/** @deprecated use `DeploymentGetConfigFormat$outboundSchema` instead. */
|
|
2791
|
-
export const outboundSchema = DeploymentGetConfigFormat$outboundSchema;
|
|
2792
|
-
}
|
|
2793
|
-
|
|
2794
|
-
/** @internal */
|
|
2795
|
-
export const DeploymentGetConfigQuality$inboundSchema: z.ZodNativeEnum<
|
|
2796
|
-
typeof DeploymentGetConfigQuality
|
|
2797
|
-
> = z.nativeEnum(DeploymentGetConfigQuality);
|
|
2798
|
-
|
|
2799
|
-
/** @internal */
|
|
2800
|
-
export const DeploymentGetConfigQuality$outboundSchema: z.ZodNativeEnum<
|
|
2801
|
-
typeof DeploymentGetConfigQuality
|
|
2802
|
-
> = DeploymentGetConfigQuality$inboundSchema;
|
|
2803
|
-
|
|
2804
|
-
/**
|
|
2805
|
-
* @internal
|
|
2806
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2807
|
-
*/
|
|
2808
|
-
export namespace DeploymentGetConfigQuality$ {
|
|
2809
|
-
/** @deprecated use `DeploymentGetConfigQuality$inboundSchema` instead. */
|
|
2810
|
-
export const inboundSchema = DeploymentGetConfigQuality$inboundSchema;
|
|
2811
|
-
/** @deprecated use `DeploymentGetConfigQuality$outboundSchema` instead. */
|
|
2812
|
-
export const outboundSchema = DeploymentGetConfigQuality$outboundSchema;
|
|
2813
|
-
}
|
|
2814
|
-
|
|
2815
|
-
/** @internal */
|
|
2816
|
-
export const DeploymentGetConfigResponseFormatType$inboundSchema:
|
|
2817
|
-
z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatType> = z.nativeEnum(
|
|
2818
|
-
DeploymentGetConfigResponseFormatType,
|
|
2819
|
-
);
|
|
2820
|
-
|
|
2821
|
-
/** @internal */
|
|
2822
|
-
export const DeploymentGetConfigResponseFormatType$outboundSchema:
|
|
2823
|
-
z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatType> =
|
|
2824
|
-
DeploymentGetConfigResponseFormatType$inboundSchema;
|
|
2825
|
-
|
|
2826
|
-
/**
|
|
2827
|
-
* @internal
|
|
2828
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2829
|
-
*/
|
|
2830
|
-
export namespace DeploymentGetConfigResponseFormatType$ {
|
|
2831
|
-
/** @deprecated use `DeploymentGetConfigResponseFormatType$inboundSchema` instead. */
|
|
2832
|
-
export const inboundSchema =
|
|
2833
|
-
DeploymentGetConfigResponseFormatType$inboundSchema;
|
|
2834
|
-
/** @deprecated use `DeploymentGetConfigResponseFormatType$outboundSchema` instead. */
|
|
2835
|
-
export const outboundSchema =
|
|
2836
|
-
DeploymentGetConfigResponseFormatType$outboundSchema;
|
|
2837
|
-
}
|
|
2838
|
-
|
|
2839
|
-
/** @internal */
|
|
2840
|
-
export const DeploymentGetConfigResponseFormat2$inboundSchema: z.ZodType<
|
|
2841
|
-
DeploymentGetConfigResponseFormat2,
|
|
2842
|
-
z.ZodTypeDef,
|
|
2843
|
-
unknown
|
|
2844
|
-
> = z.object({
|
|
2845
|
-
type: DeploymentGetConfigResponseFormatType$inboundSchema,
|
|
2846
|
-
});
|
|
2847
|
-
|
|
2848
|
-
/** @internal */
|
|
2849
|
-
export type DeploymentGetConfigResponseFormat2$Outbound = {
|
|
2850
|
-
type: string;
|
|
2851
|
-
};
|
|
2852
|
-
|
|
2853
|
-
/** @internal */
|
|
2854
|
-
export const DeploymentGetConfigResponseFormat2$outboundSchema: z.ZodType<
|
|
2855
|
-
DeploymentGetConfigResponseFormat2$Outbound,
|
|
2856
|
-
z.ZodTypeDef,
|
|
2857
|
-
DeploymentGetConfigResponseFormat2
|
|
2858
|
-
> = z.object({
|
|
2859
|
-
type: DeploymentGetConfigResponseFormatType$outboundSchema,
|
|
2860
|
-
});
|
|
2861
|
-
|
|
2862
|
-
/**
|
|
2863
|
-
* @internal
|
|
2864
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2865
|
-
*/
|
|
2866
|
-
export namespace DeploymentGetConfigResponseFormat2$ {
|
|
2867
|
-
/** @deprecated use `DeploymentGetConfigResponseFormat2$inboundSchema` instead. */
|
|
2868
|
-
export const inboundSchema = DeploymentGetConfigResponseFormat2$inboundSchema;
|
|
2869
|
-
/** @deprecated use `DeploymentGetConfigResponseFormat2$outboundSchema` instead. */
|
|
2870
|
-
export const outboundSchema =
|
|
2871
|
-
DeploymentGetConfigResponseFormat2$outboundSchema;
|
|
2872
|
-
/** @deprecated use `DeploymentGetConfigResponseFormat2$Outbound` instead. */
|
|
2873
|
-
export type Outbound = DeploymentGetConfigResponseFormat2$Outbound;
|
|
2874
|
-
}
|
|
2875
|
-
|
|
2876
|
-
export function deploymentGetConfigResponseFormat2ToJSON(
|
|
2877
|
-
deploymentGetConfigResponseFormat2: DeploymentGetConfigResponseFormat2,
|
|
2878
|
-
): string {
|
|
2879
|
-
return JSON.stringify(
|
|
2880
|
-
DeploymentGetConfigResponseFormat2$outboundSchema.parse(
|
|
2881
|
-
deploymentGetConfigResponseFormat2,
|
|
2882
|
-
),
|
|
2883
|
-
);
|
|
2884
|
-
}
|
|
2885
|
-
|
|
2886
|
-
export function deploymentGetConfigResponseFormat2FromJSON(
|
|
2887
|
-
jsonString: string,
|
|
2888
|
-
): SafeParseResult<DeploymentGetConfigResponseFormat2, SDKValidationError> {
|
|
2889
|
-
return safeParse(
|
|
2890
|
-
jsonString,
|
|
2891
|
-
(x) =>
|
|
2892
|
-
DeploymentGetConfigResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
2893
|
-
`Failed to parse 'DeploymentGetConfigResponseFormat2' from JSON`,
|
|
2894
|
-
);
|
|
2895
|
-
}
|
|
2896
|
-
|
|
2897
|
-
/** @internal */
|
|
2898
|
-
export const DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema:
|
|
2899
|
-
z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatDeploymentsType> = z
|
|
2900
|
-
.nativeEnum(DeploymentGetConfigResponseFormatDeploymentsType);
|
|
2901
|
-
|
|
2902
|
-
/** @internal */
|
|
2903
|
-
export const DeploymentGetConfigResponseFormatDeploymentsType$outboundSchema:
|
|
2904
|
-
z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatDeploymentsType> =
|
|
2905
|
-
DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema;
|
|
2906
|
-
|
|
2907
|
-
/**
|
|
2908
|
-
* @internal
|
|
2909
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2910
|
-
*/
|
|
2911
|
-
export namespace DeploymentGetConfigResponseFormatDeploymentsType$ {
|
|
2912
|
-
/** @deprecated use `DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema` instead. */
|
|
2913
|
-
export const inboundSchema =
|
|
2914
|
-
DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema;
|
|
2915
|
-
/** @deprecated use `DeploymentGetConfigResponseFormatDeploymentsType$outboundSchema` instead. */
|
|
2916
|
-
export const outboundSchema =
|
|
2917
|
-
DeploymentGetConfigResponseFormatDeploymentsType$outboundSchema;
|
|
2918
|
-
}
|
|
2919
|
-
|
|
2920
|
-
/** @internal */
|
|
2921
|
-
export const DeploymentGetConfigResponseFormatJsonSchema$inboundSchema:
|
|
2922
|
-
z.ZodType<
|
|
2923
|
-
DeploymentGetConfigResponseFormatJsonSchema,
|
|
2924
|
-
z.ZodTypeDef,
|
|
2925
|
-
unknown
|
|
2926
|
-
> = z.object({
|
|
2927
|
-
name: z.string(),
|
|
2928
|
-
strict: z.boolean(),
|
|
2929
|
-
schema: z.record(z.any()),
|
|
2930
|
-
});
|
|
2931
|
-
|
|
2932
|
-
/** @internal */
|
|
2933
|
-
export type DeploymentGetConfigResponseFormatJsonSchema$Outbound = {
|
|
2934
|
-
name: string;
|
|
2935
|
-
strict: boolean;
|
|
2936
|
-
schema: { [k: string]: any };
|
|
2937
|
-
};
|
|
2938
|
-
|
|
2939
|
-
/** @internal */
|
|
2940
|
-
export const DeploymentGetConfigResponseFormatJsonSchema$outboundSchema:
|
|
2941
|
-
z.ZodType<
|
|
2942
|
-
DeploymentGetConfigResponseFormatJsonSchema$Outbound,
|
|
2943
|
-
z.ZodTypeDef,
|
|
2944
|
-
DeploymentGetConfigResponseFormatJsonSchema
|
|
2945
|
-
> = z.object({
|
|
2946
|
-
name: z.string(),
|
|
2947
|
-
strict: z.boolean(),
|
|
2948
|
-
schema: z.record(z.any()),
|
|
2949
|
-
});
|
|
2950
|
-
|
|
2951
|
-
/**
|
|
2952
|
-
* @internal
|
|
2953
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2954
|
-
*/
|
|
2955
|
-
export namespace DeploymentGetConfigResponseFormatJsonSchema$ {
|
|
2956
|
-
/** @deprecated use `DeploymentGetConfigResponseFormatJsonSchema$inboundSchema` instead. */
|
|
2957
|
-
export const inboundSchema =
|
|
2958
|
-
DeploymentGetConfigResponseFormatJsonSchema$inboundSchema;
|
|
2959
|
-
/** @deprecated use `DeploymentGetConfigResponseFormatJsonSchema$outboundSchema` instead. */
|
|
2960
|
-
export const outboundSchema =
|
|
2961
|
-
DeploymentGetConfigResponseFormatJsonSchema$outboundSchema;
|
|
2962
|
-
/** @deprecated use `DeploymentGetConfigResponseFormatJsonSchema$Outbound` instead. */
|
|
2963
|
-
export type Outbound = DeploymentGetConfigResponseFormatJsonSchema$Outbound;
|
|
2964
|
-
}
|
|
2965
|
-
|
|
2966
|
-
export function deploymentGetConfigResponseFormatJsonSchemaToJSON(
|
|
2967
|
-
deploymentGetConfigResponseFormatJsonSchema:
|
|
2968
|
-
DeploymentGetConfigResponseFormatJsonSchema,
|
|
2969
|
-
): string {
|
|
2970
|
-
return JSON.stringify(
|
|
2971
|
-
DeploymentGetConfigResponseFormatJsonSchema$outboundSchema.parse(
|
|
2972
|
-
deploymentGetConfigResponseFormatJsonSchema,
|
|
2973
|
-
),
|
|
2974
|
-
);
|
|
2975
|
-
}
|
|
2976
|
-
|
|
2977
|
-
export function deploymentGetConfigResponseFormatJsonSchemaFromJSON(
|
|
2978
|
-
jsonString: string,
|
|
2979
|
-
): SafeParseResult<
|
|
2980
|
-
DeploymentGetConfigResponseFormatJsonSchema,
|
|
2981
|
-
SDKValidationError
|
|
2982
|
-
> {
|
|
2983
|
-
return safeParse(
|
|
2984
|
-
jsonString,
|
|
2985
|
-
(x) =>
|
|
2986
|
-
DeploymentGetConfigResponseFormatJsonSchema$inboundSchema.parse(
|
|
2987
|
-
JSON.parse(x),
|
|
2988
|
-
),
|
|
2989
|
-
`Failed to parse 'DeploymentGetConfigResponseFormatJsonSchema' from JSON`,
|
|
2990
|
-
);
|
|
2991
|
-
}
|
|
2992
|
-
|
|
2993
|
-
/** @internal */
|
|
2994
|
-
export const DeploymentGetConfigResponseFormat1$inboundSchema: z.ZodType<
|
|
2995
|
-
DeploymentGetConfigResponseFormat1,
|
|
2996
|
-
z.ZodTypeDef,
|
|
2997
|
-
unknown
|
|
2998
|
-
> = z.object({
|
|
2999
|
-
type: DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema,
|
|
3000
|
-
json_schema: z.lazy(() =>
|
|
3001
|
-
DeploymentGetConfigResponseFormatJsonSchema$inboundSchema
|
|
3002
|
-
),
|
|
3003
|
-
}).transform((v) => {
|
|
3004
|
-
return remap$(v, {
|
|
3005
|
-
"json_schema": "jsonSchema",
|
|
3006
|
-
});
|
|
3007
|
-
});
|
|
3008
|
-
|
|
3009
|
-
/** @internal */
|
|
3010
|
-
export type DeploymentGetConfigResponseFormat1$Outbound = {
|
|
3011
|
-
type: string;
|
|
3012
|
-
json_schema: DeploymentGetConfigResponseFormatJsonSchema$Outbound;
|
|
3013
|
-
};
|
|
3014
|
-
|
|
3015
|
-
/** @internal */
|
|
3016
|
-
export const DeploymentGetConfigResponseFormat1$outboundSchema: z.ZodType<
|
|
3017
|
-
DeploymentGetConfigResponseFormat1$Outbound,
|
|
3018
|
-
z.ZodTypeDef,
|
|
3019
|
-
DeploymentGetConfigResponseFormat1
|
|
3020
|
-
> = z.object({
|
|
3021
|
-
type: DeploymentGetConfigResponseFormatDeploymentsType$outboundSchema,
|
|
3022
|
-
jsonSchema: z.lazy(() =>
|
|
3023
|
-
DeploymentGetConfigResponseFormatJsonSchema$outboundSchema
|
|
3024
|
-
),
|
|
3025
|
-
}).transform((v) => {
|
|
3026
|
-
return remap$(v, {
|
|
3027
|
-
jsonSchema: "json_schema",
|
|
3028
|
-
});
|
|
3029
|
-
});
|
|
3030
|
-
|
|
3031
|
-
/**
|
|
3032
|
-
* @internal
|
|
3033
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3034
|
-
*/
|
|
3035
|
-
export namespace DeploymentGetConfigResponseFormat1$ {
|
|
3036
|
-
/** @deprecated use `DeploymentGetConfigResponseFormat1$inboundSchema` instead. */
|
|
3037
|
-
export const inboundSchema = DeploymentGetConfigResponseFormat1$inboundSchema;
|
|
3038
|
-
/** @deprecated use `DeploymentGetConfigResponseFormat1$outboundSchema` instead. */
|
|
3039
|
-
export const outboundSchema =
|
|
3040
|
-
DeploymentGetConfigResponseFormat1$outboundSchema;
|
|
3041
|
-
/** @deprecated use `DeploymentGetConfigResponseFormat1$Outbound` instead. */
|
|
3042
|
-
export type Outbound = DeploymentGetConfigResponseFormat1$Outbound;
|
|
3043
|
-
}
|
|
3044
|
-
|
|
3045
|
-
export function deploymentGetConfigResponseFormat1ToJSON(
|
|
3046
|
-
deploymentGetConfigResponseFormat1: DeploymentGetConfigResponseFormat1,
|
|
3047
|
-
): string {
|
|
3048
|
-
return JSON.stringify(
|
|
3049
|
-
DeploymentGetConfigResponseFormat1$outboundSchema.parse(
|
|
3050
|
-
deploymentGetConfigResponseFormat1,
|
|
3051
|
-
),
|
|
3052
|
-
);
|
|
3053
|
-
}
|
|
3054
|
-
|
|
3055
|
-
export function deploymentGetConfigResponseFormat1FromJSON(
|
|
3056
|
-
jsonString: string,
|
|
3057
|
-
): SafeParseResult<DeploymentGetConfigResponseFormat1, SDKValidationError> {
|
|
3058
|
-
return safeParse(
|
|
3059
|
-
jsonString,
|
|
3060
|
-
(x) =>
|
|
3061
|
-
DeploymentGetConfigResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
3062
|
-
`Failed to parse 'DeploymentGetConfigResponseFormat1' from JSON`,
|
|
3063
|
-
);
|
|
3064
|
-
}
|
|
3065
|
-
|
|
3066
|
-
/** @internal */
|
|
3067
|
-
export const DeploymentGetConfigResponseFormat$inboundSchema: z.ZodType<
|
|
3068
|
-
DeploymentGetConfigResponseFormat,
|
|
3069
|
-
z.ZodTypeDef,
|
|
3070
|
-
unknown
|
|
3071
|
-
> = z.union([
|
|
3072
|
-
z.lazy(() => DeploymentGetConfigResponseFormat2$inboundSchema),
|
|
3073
|
-
z.lazy(() => DeploymentGetConfigResponseFormat1$inboundSchema),
|
|
3074
|
-
]);
|
|
3075
|
-
|
|
3076
|
-
/** @internal */
|
|
3077
|
-
export type DeploymentGetConfigResponseFormat$Outbound =
|
|
3078
|
-
| DeploymentGetConfigResponseFormat2$Outbound
|
|
3079
|
-
| DeploymentGetConfigResponseFormat1$Outbound;
|
|
3080
|
-
|
|
3081
|
-
/** @internal */
|
|
3082
|
-
export const DeploymentGetConfigResponseFormat$outboundSchema: z.ZodType<
|
|
3083
|
-
DeploymentGetConfigResponseFormat$Outbound,
|
|
3084
|
-
z.ZodTypeDef,
|
|
3085
|
-
DeploymentGetConfigResponseFormat
|
|
3086
|
-
> = z.union([
|
|
3087
|
-
z.lazy(() => DeploymentGetConfigResponseFormat2$outboundSchema),
|
|
3088
|
-
z.lazy(() => DeploymentGetConfigResponseFormat1$outboundSchema),
|
|
3089
|
-
]);
|
|
3090
|
-
|
|
3091
|
-
/**
|
|
3092
|
-
* @internal
|
|
3093
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3094
|
-
*/
|
|
3095
|
-
export namespace DeploymentGetConfigResponseFormat$ {
|
|
3096
|
-
/** @deprecated use `DeploymentGetConfigResponseFormat$inboundSchema` instead. */
|
|
3097
|
-
export const inboundSchema = DeploymentGetConfigResponseFormat$inboundSchema;
|
|
3098
|
-
/** @deprecated use `DeploymentGetConfigResponseFormat$outboundSchema` instead. */
|
|
3099
|
-
export const outboundSchema =
|
|
3100
|
-
DeploymentGetConfigResponseFormat$outboundSchema;
|
|
3101
|
-
/** @deprecated use `DeploymentGetConfigResponseFormat$Outbound` instead. */
|
|
3102
|
-
export type Outbound = DeploymentGetConfigResponseFormat$Outbound;
|
|
3103
|
-
}
|
|
3104
|
-
|
|
3105
|
-
export function deploymentGetConfigResponseFormatToJSON(
|
|
3106
|
-
deploymentGetConfigResponseFormat: DeploymentGetConfigResponseFormat,
|
|
3107
|
-
): string {
|
|
3108
|
-
return JSON.stringify(
|
|
3109
|
-
DeploymentGetConfigResponseFormat$outboundSchema.parse(
|
|
3110
|
-
deploymentGetConfigResponseFormat,
|
|
3111
|
-
),
|
|
3112
|
-
);
|
|
3113
|
-
}
|
|
3114
|
-
|
|
3115
|
-
export function deploymentGetConfigResponseFormatFromJSON(
|
|
3116
|
-
jsonString: string,
|
|
3117
|
-
): SafeParseResult<DeploymentGetConfigResponseFormat, SDKValidationError> {
|
|
3118
|
-
return safeParse(
|
|
3119
|
-
jsonString,
|
|
3120
|
-
(x) => DeploymentGetConfigResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
3121
|
-
`Failed to parse 'DeploymentGetConfigResponseFormat' from JSON`,
|
|
3122
|
-
);
|
|
3123
|
-
}
|
|
3124
|
-
|
|
3125
|
-
/** @internal */
|
|
3126
|
-
export const DeploymentGetConfigPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
3127
|
-
typeof DeploymentGetConfigPhotoRealVersion
|
|
3128
|
-
> = z.nativeEnum(DeploymentGetConfigPhotoRealVersion);
|
|
3129
|
-
|
|
3130
|
-
/** @internal */
|
|
3131
|
-
export const DeploymentGetConfigPhotoRealVersion$outboundSchema:
|
|
3132
|
-
z.ZodNativeEnum<typeof DeploymentGetConfigPhotoRealVersion> =
|
|
3133
|
-
DeploymentGetConfigPhotoRealVersion$inboundSchema;
|
|
3134
|
-
|
|
3135
|
-
/**
|
|
3136
|
-
* @internal
|
|
3137
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3138
|
-
*/
|
|
3139
|
-
export namespace DeploymentGetConfigPhotoRealVersion$ {
|
|
3140
|
-
/** @deprecated use `DeploymentGetConfigPhotoRealVersion$inboundSchema` instead. */
|
|
3141
|
-
export const inboundSchema =
|
|
3142
|
-
DeploymentGetConfigPhotoRealVersion$inboundSchema;
|
|
3143
|
-
/** @deprecated use `DeploymentGetConfigPhotoRealVersion$outboundSchema` instead. */
|
|
3144
|
-
export const outboundSchema =
|
|
3145
|
-
DeploymentGetConfigPhotoRealVersion$outboundSchema;
|
|
3146
|
-
}
|
|
3147
|
-
|
|
3148
|
-
/** @internal */
|
|
3149
|
-
export const DeploymentGetConfigEncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
3150
|
-
typeof DeploymentGetConfigEncodingFormat
|
|
3151
|
-
> = z.nativeEnum(DeploymentGetConfigEncodingFormat);
|
|
3152
|
-
|
|
3153
|
-
/** @internal */
|
|
3154
|
-
export const DeploymentGetConfigEncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
3155
|
-
typeof DeploymentGetConfigEncodingFormat
|
|
3156
|
-
> = DeploymentGetConfigEncodingFormat$inboundSchema;
|
|
3157
|
-
|
|
3158
|
-
/**
|
|
3159
|
-
* @internal
|
|
3160
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3161
|
-
*/
|
|
3162
|
-
export namespace DeploymentGetConfigEncodingFormat$ {
|
|
3163
|
-
/** @deprecated use `DeploymentGetConfigEncodingFormat$inboundSchema` instead. */
|
|
3164
|
-
export const inboundSchema = DeploymentGetConfigEncodingFormat$inboundSchema;
|
|
3165
|
-
/** @deprecated use `DeploymentGetConfigEncodingFormat$outboundSchema` instead. */
|
|
3166
|
-
export const outboundSchema =
|
|
3167
|
-
DeploymentGetConfigEncodingFormat$outboundSchema;
|
|
3168
|
-
}
|
|
3169
|
-
|
|
3170
|
-
/** @internal */
|
|
3171
|
-
export const DeploymentGetConfigReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
3172
|
-
typeof DeploymentGetConfigReasoningEffort
|
|
3173
|
-
> = z.nativeEnum(DeploymentGetConfigReasoningEffort);
|
|
3174
|
-
|
|
3175
|
-
/** @internal */
|
|
3176
|
-
export const DeploymentGetConfigReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
3177
|
-
typeof DeploymentGetConfigReasoningEffort
|
|
3178
|
-
> = DeploymentGetConfigReasoningEffort$inboundSchema;
|
|
3179
|
-
|
|
3180
|
-
/**
|
|
3181
|
-
* @internal
|
|
3182
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3183
|
-
*/
|
|
3184
|
-
export namespace DeploymentGetConfigReasoningEffort$ {
|
|
3185
|
-
/** @deprecated use `DeploymentGetConfigReasoningEffort$inboundSchema` instead. */
|
|
3186
|
-
export const inboundSchema = DeploymentGetConfigReasoningEffort$inboundSchema;
|
|
3187
|
-
/** @deprecated use `DeploymentGetConfigReasoningEffort$outboundSchema` instead. */
|
|
3188
|
-
export const outboundSchema =
|
|
3189
|
-
DeploymentGetConfigReasoningEffort$outboundSchema;
|
|
3190
|
-
}
|
|
3191
|
-
|
|
3192
|
-
/** @internal */
|
|
3193
|
-
export const ParametersT$inboundSchema: z.ZodType<
|
|
3194
|
-
ParametersT,
|
|
3195
|
-
z.ZodTypeDef,
|
|
3196
|
-
unknown
|
|
3197
|
-
> = z.object({
|
|
3198
|
-
temperature: z.number().optional(),
|
|
3199
|
-
maxTokens: z.number().optional(),
|
|
3200
|
-
topK: z.number().optional(),
|
|
3201
|
-
topP: z.number().optional(),
|
|
3202
|
-
frequencyPenalty: z.number().optional(),
|
|
3203
|
-
presencePenalty: z.number().optional(),
|
|
3204
|
-
numImages: z.number().optional(),
|
|
3205
|
-
seed: z.number().optional(),
|
|
3206
|
-
format: DeploymentGetConfigFormat$inboundSchema.optional(),
|
|
3207
|
-
dimensions: z.string().optional(),
|
|
3208
|
-
quality: DeploymentGetConfigQuality$inboundSchema.optional(),
|
|
3209
|
-
style: z.string().optional(),
|
|
3210
|
-
responseFormat: z.nullable(
|
|
3211
|
-
z.union([
|
|
3212
|
-
z.lazy(() => DeploymentGetConfigResponseFormat2$inboundSchema),
|
|
3213
|
-
z.lazy(() => DeploymentGetConfigResponseFormat1$inboundSchema),
|
|
3214
|
-
]),
|
|
3215
|
-
).optional(),
|
|
3216
|
-
photoRealVersion: DeploymentGetConfigPhotoRealVersion$inboundSchema
|
|
3217
|
-
.optional(),
|
|
3218
|
-
encoding_format: DeploymentGetConfigEncodingFormat$inboundSchema.optional(),
|
|
3219
|
-
reasoningEffort: DeploymentGetConfigReasoningEffort$inboundSchema.optional(),
|
|
3220
|
-
}).transform((v) => {
|
|
3221
|
-
return remap$(v, {
|
|
3222
|
-
"encoding_format": "encodingFormat",
|
|
3223
|
-
});
|
|
3224
|
-
});
|
|
3225
|
-
|
|
3226
|
-
/** @internal */
|
|
3227
|
-
export type ParametersT$Outbound = {
|
|
3228
|
-
temperature?: number | undefined;
|
|
3229
|
-
maxTokens?: number | undefined;
|
|
3230
|
-
topK?: number | undefined;
|
|
3231
|
-
topP?: number | undefined;
|
|
3232
|
-
frequencyPenalty?: number | undefined;
|
|
3233
|
-
presencePenalty?: number | undefined;
|
|
3234
|
-
numImages?: number | undefined;
|
|
3235
|
-
seed?: number | undefined;
|
|
3236
|
-
format?: string | undefined;
|
|
3237
|
-
dimensions?: string | undefined;
|
|
3238
|
-
quality?: string | undefined;
|
|
3239
|
-
style?: string | undefined;
|
|
3240
|
-
responseFormat?:
|
|
3241
|
-
| DeploymentGetConfigResponseFormat2$Outbound
|
|
3242
|
-
| DeploymentGetConfigResponseFormat1$Outbound
|
|
3243
|
-
| null
|
|
3244
|
-
| undefined;
|
|
3245
|
-
photoRealVersion?: string | undefined;
|
|
3246
|
-
encoding_format?: string | undefined;
|
|
3247
|
-
reasoningEffort?: string | undefined;
|
|
3248
|
-
};
|
|
3249
|
-
|
|
3250
|
-
/** @internal */
|
|
3251
|
-
export const ParametersT$outboundSchema: z.ZodType<
|
|
3252
|
-
ParametersT$Outbound,
|
|
3253
|
-
z.ZodTypeDef,
|
|
3254
|
-
ParametersT
|
|
3255
|
-
> = z.object({
|
|
3256
|
-
temperature: z.number().optional(),
|
|
3257
|
-
maxTokens: z.number().optional(),
|
|
3258
|
-
topK: z.number().optional(),
|
|
3259
|
-
topP: z.number().optional(),
|
|
3260
|
-
frequencyPenalty: z.number().optional(),
|
|
3261
|
-
presencePenalty: z.number().optional(),
|
|
3262
|
-
numImages: z.number().optional(),
|
|
3263
|
-
seed: z.number().optional(),
|
|
3264
|
-
format: DeploymentGetConfigFormat$outboundSchema.optional(),
|
|
3265
|
-
dimensions: z.string().optional(),
|
|
3266
|
-
quality: DeploymentGetConfigQuality$outboundSchema.optional(),
|
|
3267
|
-
style: z.string().optional(),
|
|
3268
|
-
responseFormat: z.nullable(
|
|
3269
|
-
z.union([
|
|
3270
|
-
z.lazy(() => DeploymentGetConfigResponseFormat2$outboundSchema),
|
|
3271
|
-
z.lazy(() => DeploymentGetConfigResponseFormat1$outboundSchema),
|
|
3272
|
-
]),
|
|
3273
|
-
).optional(),
|
|
3274
|
-
photoRealVersion: DeploymentGetConfigPhotoRealVersion$outboundSchema
|
|
3275
|
-
.optional(),
|
|
3276
|
-
encodingFormat: DeploymentGetConfigEncodingFormat$outboundSchema.optional(),
|
|
3277
|
-
reasoningEffort: DeploymentGetConfigReasoningEffort$outboundSchema.optional(),
|
|
3278
|
-
}).transform((v) => {
|
|
3279
|
-
return remap$(v, {
|
|
3280
|
-
encodingFormat: "encoding_format",
|
|
3281
|
-
});
|
|
3282
|
-
});
|
|
3283
|
-
|
|
3284
|
-
/**
|
|
3285
|
-
* @internal
|
|
3286
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3287
|
-
*/
|
|
3288
|
-
export namespace ParametersT$ {
|
|
3289
|
-
/** @deprecated use `ParametersT$inboundSchema` instead. */
|
|
3290
|
-
export const inboundSchema = ParametersT$inboundSchema;
|
|
3291
|
-
/** @deprecated use `ParametersT$outboundSchema` instead. */
|
|
3292
|
-
export const outboundSchema = ParametersT$outboundSchema;
|
|
3293
|
-
/** @deprecated use `ParametersT$Outbound` instead. */
|
|
3294
|
-
export type Outbound = ParametersT$Outbound;
|
|
3295
|
-
}
|
|
3296
|
-
|
|
3297
|
-
export function parametersToJSON(parametersT: ParametersT): string {
|
|
3298
|
-
return JSON.stringify(ParametersT$outboundSchema.parse(parametersT));
|
|
3299
|
-
}
|
|
3300
|
-
|
|
3301
|
-
export function parametersFromJSON(
|
|
3302
|
-
jsonString: string,
|
|
3303
|
-
): SafeParseResult<ParametersT, SDKValidationError> {
|
|
3304
|
-
return safeParse(
|
|
3305
|
-
jsonString,
|
|
3306
|
-
(x) => ParametersT$inboundSchema.parse(JSON.parse(x)),
|
|
3307
|
-
`Failed to parse 'ParametersT' from JSON`,
|
|
3308
|
-
);
|
|
3309
|
-
}
|
|
3310
|
-
|
|
3311
|
-
/** @internal */
|
|
3312
|
-
export const DeploymentGetConfigDeploymentsResponse200Type$inboundSchema:
|
|
3313
|
-
z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponse200Type> = z
|
|
3314
|
-
.nativeEnum(DeploymentGetConfigDeploymentsResponse200Type);
|
|
3315
|
-
|
|
3316
|
-
/** @internal */
|
|
3317
|
-
export const DeploymentGetConfigDeploymentsResponse200Type$outboundSchema:
|
|
3318
|
-
z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponse200Type> =
|
|
3319
|
-
DeploymentGetConfigDeploymentsResponse200Type$inboundSchema;
|
|
3320
|
-
|
|
3321
|
-
/**
|
|
3322
|
-
* @internal
|
|
3323
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3324
|
-
*/
|
|
3325
|
-
export namespace DeploymentGetConfigDeploymentsResponse200Type$ {
|
|
3326
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsResponse200Type$inboundSchema` instead. */
|
|
3327
|
-
export const inboundSchema =
|
|
3328
|
-
DeploymentGetConfigDeploymentsResponse200Type$inboundSchema;
|
|
3329
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsResponse200Type$outboundSchema` instead. */
|
|
3330
|
-
export const outboundSchema =
|
|
3331
|
-
DeploymentGetConfigDeploymentsResponse200Type$outboundSchema;
|
|
3332
|
-
}
|
|
3333
|
-
|
|
3334
|
-
/** @internal */
|
|
3335
|
-
export const DeploymentGetConfigDeploymentsFunction$inboundSchema: z.ZodType<
|
|
3336
|
-
DeploymentGetConfigDeploymentsFunction,
|
|
3337
|
-
z.ZodTypeDef,
|
|
3338
|
-
unknown
|
|
3339
|
-
> = z.object({
|
|
3340
|
-
name: z.string(),
|
|
3341
|
-
description: z.string().optional(),
|
|
3342
|
-
parameters: z.record(z.any()).optional(),
|
|
3343
|
-
});
|
|
3344
|
-
|
|
3345
|
-
/** @internal */
|
|
3346
|
-
export type DeploymentGetConfigDeploymentsFunction$Outbound = {
|
|
3347
|
-
name: string;
|
|
3348
|
-
description?: string | undefined;
|
|
3349
|
-
parameters?: { [k: string]: any } | undefined;
|
|
3350
|
-
};
|
|
3351
|
-
|
|
3352
|
-
/** @internal */
|
|
3353
|
-
export const DeploymentGetConfigDeploymentsFunction$outboundSchema: z.ZodType<
|
|
3354
|
-
DeploymentGetConfigDeploymentsFunction$Outbound,
|
|
3355
|
-
z.ZodTypeDef,
|
|
3356
|
-
DeploymentGetConfigDeploymentsFunction
|
|
3357
|
-
> = z.object({
|
|
3358
|
-
name: z.string(),
|
|
3359
|
-
description: z.string().optional(),
|
|
3360
|
-
parameters: z.record(z.any()).optional(),
|
|
3361
|
-
});
|
|
3362
|
-
|
|
3363
|
-
/**
|
|
3364
|
-
* @internal
|
|
3365
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3366
|
-
*/
|
|
3367
|
-
export namespace DeploymentGetConfigDeploymentsFunction$ {
|
|
3368
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsFunction$inboundSchema` instead. */
|
|
3369
|
-
export const inboundSchema =
|
|
3370
|
-
DeploymentGetConfigDeploymentsFunction$inboundSchema;
|
|
3371
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsFunction$outboundSchema` instead. */
|
|
3372
|
-
export const outboundSchema =
|
|
3373
|
-
DeploymentGetConfigDeploymentsFunction$outboundSchema;
|
|
3374
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsFunction$Outbound` instead. */
|
|
3375
|
-
export type Outbound = DeploymentGetConfigDeploymentsFunction$Outbound;
|
|
3376
|
-
}
|
|
3377
|
-
|
|
3378
|
-
export function deploymentGetConfigDeploymentsFunctionToJSON(
|
|
3379
|
-
deploymentGetConfigDeploymentsFunction:
|
|
3380
|
-
DeploymentGetConfigDeploymentsFunction,
|
|
3381
|
-
): string {
|
|
3382
|
-
return JSON.stringify(
|
|
3383
|
-
DeploymentGetConfigDeploymentsFunction$outboundSchema.parse(
|
|
3384
|
-
deploymentGetConfigDeploymentsFunction,
|
|
3385
|
-
),
|
|
3386
|
-
);
|
|
3387
|
-
}
|
|
3388
|
-
|
|
3389
|
-
export function deploymentGetConfigDeploymentsFunctionFromJSON(
|
|
3390
|
-
jsonString: string,
|
|
3391
|
-
): SafeParseResult<DeploymentGetConfigDeploymentsFunction, SDKValidationError> {
|
|
3392
|
-
return safeParse(
|
|
3393
|
-
jsonString,
|
|
3394
|
-
(x) =>
|
|
3395
|
-
DeploymentGetConfigDeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
|
|
3396
|
-
`Failed to parse 'DeploymentGetConfigDeploymentsFunction' from JSON`,
|
|
3397
|
-
);
|
|
3398
|
-
}
|
|
3399
|
-
|
|
3400
|
-
/** @internal */
|
|
3401
|
-
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
3402
|
-
.object({
|
|
3403
|
-
type: DeploymentGetConfigDeploymentsResponse200Type$inboundSchema,
|
|
3404
|
-
function: z.lazy(() =>
|
|
3405
|
-
DeploymentGetConfigDeploymentsFunction$inboundSchema
|
|
3406
|
-
),
|
|
3407
|
-
});
|
|
3408
|
-
|
|
3409
|
-
/** @internal */
|
|
3410
|
-
export type Tools$Outbound = {
|
|
3411
|
-
type: string;
|
|
3412
|
-
function: DeploymentGetConfigDeploymentsFunction$Outbound;
|
|
3413
|
-
};
|
|
3414
|
-
|
|
3415
|
-
/** @internal */
|
|
3416
|
-
export const Tools$outboundSchema: z.ZodType<
|
|
3417
|
-
Tools$Outbound,
|
|
3418
|
-
z.ZodTypeDef,
|
|
3419
|
-
Tools
|
|
3420
|
-
> = z.object({
|
|
3421
|
-
type: DeploymentGetConfigDeploymentsResponse200Type$outboundSchema,
|
|
3422
|
-
function: z.lazy(() => DeploymentGetConfigDeploymentsFunction$outboundSchema),
|
|
3423
|
-
});
|
|
3424
|
-
|
|
3425
|
-
/**
|
|
3426
|
-
* @internal
|
|
3427
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3428
|
-
*/
|
|
3429
|
-
export namespace Tools$ {
|
|
3430
|
-
/** @deprecated use `Tools$inboundSchema` instead. */
|
|
3431
|
-
export const inboundSchema = Tools$inboundSchema;
|
|
3432
|
-
/** @deprecated use `Tools$outboundSchema` instead. */
|
|
3433
|
-
export const outboundSchema = Tools$outboundSchema;
|
|
3434
|
-
/** @deprecated use `Tools$Outbound` instead. */
|
|
3435
|
-
export type Outbound = Tools$Outbound;
|
|
3436
|
-
}
|
|
3437
|
-
|
|
3438
|
-
export function toolsToJSON(tools: Tools): string {
|
|
3439
|
-
return JSON.stringify(Tools$outboundSchema.parse(tools));
|
|
3440
|
-
}
|
|
3441
|
-
|
|
3442
|
-
export function toolsFromJSON(
|
|
3443
|
-
jsonString: string,
|
|
3444
|
-
): SafeParseResult<Tools, SDKValidationError> {
|
|
3445
|
-
return safeParse(
|
|
3446
|
-
jsonString,
|
|
3447
|
-
(x) => Tools$inboundSchema.parse(JSON.parse(x)),
|
|
3448
|
-
`Failed to parse 'Tools' from JSON`,
|
|
3449
|
-
);
|
|
3450
|
-
}
|
|
3451
|
-
|
|
3452
|
-
/** @internal */
|
|
3453
|
-
export const DeploymentGetConfigResponseBody$inboundSchema: z.ZodType<
|
|
3454
|
-
DeploymentGetConfigResponseBody,
|
|
3455
|
-
z.ZodTypeDef,
|
|
3456
|
-
unknown
|
|
3457
|
-
> = z.object({
|
|
3458
|
-
id: z.string(),
|
|
3459
|
-
provider: z.string(),
|
|
3460
|
-
model: z.string(),
|
|
3461
|
-
type: DeploymentGetConfigDeploymentsResponseType$inboundSchema.optional(),
|
|
3462
|
-
version: z.string(),
|
|
3463
|
-
messages: z.array(z.lazy(() => DeploymentGetConfigMessages$inboundSchema)),
|
|
3464
|
-
parameters: z.lazy(() => ParametersT$inboundSchema),
|
|
3465
|
-
tools: z.array(z.lazy(() => Tools$inboundSchema)).optional(),
|
|
3466
|
-
});
|
|
3467
|
-
|
|
3468
|
-
/** @internal */
|
|
3469
|
-
export type DeploymentGetConfigResponseBody$Outbound = {
|
|
3470
|
-
id: string;
|
|
3471
|
-
provider: string;
|
|
3472
|
-
model: string;
|
|
3473
|
-
type?: string | undefined;
|
|
3474
|
-
version: string;
|
|
3475
|
-
messages: Array<DeploymentGetConfigMessages$Outbound>;
|
|
3476
|
-
parameters: ParametersT$Outbound;
|
|
3477
|
-
tools?: Array<Tools$Outbound> | undefined;
|
|
3478
|
-
};
|
|
3479
|
-
|
|
3480
|
-
/** @internal */
|
|
3481
|
-
export const DeploymentGetConfigResponseBody$outboundSchema: z.ZodType<
|
|
3482
|
-
DeploymentGetConfigResponseBody$Outbound,
|
|
3483
|
-
z.ZodTypeDef,
|
|
3484
|
-
DeploymentGetConfigResponseBody
|
|
3485
|
-
> = z.object({
|
|
3486
|
-
id: z.string(),
|
|
3487
|
-
provider: z.string(),
|
|
3488
|
-
model: z.string(),
|
|
3489
|
-
type: DeploymentGetConfigDeploymentsResponseType$outboundSchema.optional(),
|
|
3490
|
-
version: z.string(),
|
|
3491
|
-
messages: z.array(z.lazy(() => DeploymentGetConfigMessages$outboundSchema)),
|
|
3492
|
-
parameters: z.lazy(() => ParametersT$outboundSchema),
|
|
3493
|
-
tools: z.array(z.lazy(() => Tools$outboundSchema)).optional(),
|
|
3494
|
-
});
|
|
3495
|
-
|
|
3496
|
-
/**
|
|
3497
|
-
* @internal
|
|
3498
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3499
|
-
*/
|
|
3500
|
-
export namespace DeploymentGetConfigResponseBody$ {
|
|
3501
|
-
/** @deprecated use `DeploymentGetConfigResponseBody$inboundSchema` instead. */
|
|
3502
|
-
export const inboundSchema = DeploymentGetConfigResponseBody$inboundSchema;
|
|
3503
|
-
/** @deprecated use `DeploymentGetConfigResponseBody$outboundSchema` instead. */
|
|
3504
|
-
export const outboundSchema = DeploymentGetConfigResponseBody$outboundSchema;
|
|
3505
|
-
/** @deprecated use `DeploymentGetConfigResponseBody$Outbound` instead. */
|
|
3506
|
-
export type Outbound = DeploymentGetConfigResponseBody$Outbound;
|
|
3507
|
-
}
|
|
3508
|
-
|
|
3509
|
-
export function deploymentGetConfigResponseBodyToJSON(
|
|
3510
|
-
deploymentGetConfigResponseBody: DeploymentGetConfigResponseBody,
|
|
3511
|
-
): string {
|
|
3512
|
-
return JSON.stringify(
|
|
3513
|
-
DeploymentGetConfigResponseBody$outboundSchema.parse(
|
|
3514
|
-
deploymentGetConfigResponseBody,
|
|
3515
|
-
),
|
|
3516
|
-
);
|
|
3517
|
-
}
|
|
3518
|
-
|
|
3519
|
-
export function deploymentGetConfigResponseBodyFromJSON(
|
|
3520
|
-
jsonString: string,
|
|
3521
|
-
): SafeParseResult<DeploymentGetConfigResponseBody, SDKValidationError> {
|
|
3522
|
-
return safeParse(
|
|
3523
|
-
jsonString,
|
|
3524
|
-
(x) => DeploymentGetConfigResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
3525
|
-
`Failed to parse 'DeploymentGetConfigResponseBody' from JSON`,
|
|
3526
|
-
);
|
|
3527
|
-
}
|