@orq-ai/node 4.0.0-rc.5 → 4.0.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +7488 -544
- package/bin/mcp-server.js.map +52 -52
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createagent.d.ts +4141 -865
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +3767 -768
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/creatememorystore.d.ts +42 -42
- package/models/operations/creatememorystore.d.ts.map +1 -1
- package/models/operations/creatememorystore.js +61 -63
- package/models/operations/creatememorystore.js.map +1 -1
- package/models/operations/createprompt.d.ts +263 -263
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +345 -345
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +10 -10
- package/models/operations/deploymentgetconfig.d.ts +19 -19
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +22 -22
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +4 -4
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +4 -4
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +1614 -11
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +1475 -9
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getallprompts.d.ts +4 -4
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +4 -4
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +4 -4
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +4 -4
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +4 -4
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +4 -4
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listagents.d.ts +1614 -11
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +1481 -9
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +1614 -11
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +1479 -9
- package/models/operations/listagenttasks.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +4 -4
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +4 -4
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/runagent.d.ts +2176 -503
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +1534 -9
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +2128 -455
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +1630 -89
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +4129 -853
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +3837 -825
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updateprompt.d.ts +8 -8
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +8 -8
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +10 -10
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createagent.ts +7853 -1626
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/creatememorystore.ts +120 -103
- package/src/models/operations/createprompt.ts +742 -621
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/deploymentgetconfig.ts +60 -44
- package/src/models/operations/deployments.ts +25 -20
- package/src/models/operations/duplicatetool.ts +10 -10
- 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/getagent.ts +3274 -246
- package/src/models/operations/getallprompts.ts +30 -20
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +28 -20
- package/src/models/operations/getpromptversion.ts +30 -20
- package/src/models/operations/listagents.ts +3351 -270
- package/src/models/operations/listagenttasks.ts +3347 -180
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +30 -20
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +3799 -610
- package/src/models/operations/streamrunagent.ts +3945 -605
- package/src/models/operations/updateagent.ts +8331 -1757
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updateprompt.ts +58 -40
- package/src/models/operations/updatetool.ts +10 -10
|
@@ -164,7 +164,7 @@ export type CreatePromptContent2 =
|
|
|
164
164
|
| CreatePrompt23;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
|
-
* 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.
|
|
167
|
+
* 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. Can be null for tool messages in certain scenarios.
|
|
168
168
|
*/
|
|
169
169
|
export type CreatePromptContent =
|
|
170
170
|
| string
|
|
@@ -196,9 +196,12 @@ export type CreatePromptMessages = {
|
|
|
196
196
|
*/
|
|
197
197
|
role: CreatePromptRole;
|
|
198
198
|
/**
|
|
199
|
-
* 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.
|
|
199
|
+
* 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. Can be null for tool messages in certain scenarios.
|
|
200
200
|
*/
|
|
201
|
-
content:
|
|
201
|
+
content:
|
|
202
|
+
| string
|
|
203
|
+
| Array<CreatePrompt21 | CreatePrompt22 | CreatePrompt23>
|
|
204
|
+
| null;
|
|
202
205
|
toolCalls?: Array<CreatePromptToolCalls> | undefined;
|
|
203
206
|
toolCallId?: string | undefined;
|
|
204
207
|
};
|
|
@@ -242,43 +245,45 @@ export const ResponseFormat4 = {
|
|
|
242
245
|
} as const;
|
|
243
246
|
export type ResponseFormat4 = ClosedEnum<typeof ResponseFormat4>;
|
|
244
247
|
|
|
245
|
-
export const
|
|
248
|
+
export const CreatePromptResponseFormatPromptsRequestType = {
|
|
246
249
|
Text: "text",
|
|
247
250
|
} as const;
|
|
248
|
-
export type
|
|
249
|
-
typeof
|
|
251
|
+
export type CreatePromptResponseFormatPromptsRequestType = ClosedEnum<
|
|
252
|
+
typeof CreatePromptResponseFormatPromptsRequestType
|
|
250
253
|
>;
|
|
251
254
|
|
|
252
|
-
export type
|
|
253
|
-
type:
|
|
255
|
+
export type CreatePromptResponseFormat3 = {
|
|
256
|
+
type: CreatePromptResponseFormatPromptsRequestType;
|
|
254
257
|
};
|
|
255
258
|
|
|
256
|
-
export const
|
|
259
|
+
export const CreatePromptResponseFormatPromptsType = {
|
|
257
260
|
JsonObject: "json_object",
|
|
258
261
|
} as const;
|
|
259
|
-
export type
|
|
260
|
-
typeof
|
|
262
|
+
export type CreatePromptResponseFormatPromptsType = ClosedEnum<
|
|
263
|
+
typeof CreatePromptResponseFormatPromptsType
|
|
261
264
|
>;
|
|
262
265
|
|
|
263
|
-
export type
|
|
264
|
-
type:
|
|
266
|
+
export type CreatePromptResponseFormat2 = {
|
|
267
|
+
type: CreatePromptResponseFormatPromptsType;
|
|
265
268
|
};
|
|
266
269
|
|
|
267
|
-
export const
|
|
270
|
+
export const CreatePromptResponseFormatType = {
|
|
268
271
|
JsonSchema: "json_schema",
|
|
269
272
|
} as const;
|
|
270
|
-
export type
|
|
273
|
+
export type CreatePromptResponseFormatType = ClosedEnum<
|
|
274
|
+
typeof CreatePromptResponseFormatType
|
|
275
|
+
>;
|
|
271
276
|
|
|
272
|
-
export type
|
|
277
|
+
export type CreatePromptResponseFormatJsonSchema = {
|
|
273
278
|
name: string;
|
|
274
279
|
description?: string | undefined;
|
|
275
280
|
strict?: boolean | undefined;
|
|
276
281
|
schema: { [k: string]: any };
|
|
277
282
|
};
|
|
278
283
|
|
|
279
|
-
export type
|
|
280
|
-
type:
|
|
281
|
-
jsonSchema:
|
|
284
|
+
export type CreatePromptResponseFormat1 = {
|
|
285
|
+
type: CreatePromptResponseFormatType;
|
|
286
|
+
jsonSchema: CreatePromptResponseFormatJsonSchema;
|
|
282
287
|
};
|
|
283
288
|
|
|
284
289
|
/**
|
|
@@ -292,10 +297,10 @@ export type ResponseFormat1 = {
|
|
|
292
297
|
*
|
|
293
298
|
* 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.
|
|
294
299
|
*/
|
|
295
|
-
export type
|
|
296
|
-
|
|
|
297
|
-
|
|
|
298
|
-
|
|
|
300
|
+
export type CreatePromptResponseFormat =
|
|
301
|
+
| CreatePromptResponseFormat1
|
|
302
|
+
| CreatePromptResponseFormat2
|
|
303
|
+
| CreatePromptResponseFormat3
|
|
299
304
|
| ResponseFormat4
|
|
300
305
|
| Five
|
|
301
306
|
| Six;
|
|
@@ -416,9 +421,9 @@ export type ModelParameters = {
|
|
|
416
421
|
* 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.
|
|
417
422
|
*/
|
|
418
423
|
responseFormat?:
|
|
419
|
-
|
|
|
420
|
-
|
|
|
421
|
-
|
|
|
424
|
+
| CreatePromptResponseFormat1
|
|
425
|
+
| CreatePromptResponseFormat2
|
|
426
|
+
| CreatePromptResponseFormat3
|
|
422
427
|
| ResponseFormat4
|
|
423
428
|
| Five
|
|
424
429
|
| Six
|
|
@@ -924,15 +929,15 @@ export type CreatePromptPromptsMessages =
|
|
|
924
929
|
| CreatePromptMessagesUserMessage
|
|
925
930
|
| CreatePromptMessagesAssistantMessage;
|
|
926
931
|
|
|
927
|
-
export const
|
|
932
|
+
export const CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type = {
|
|
928
933
|
JsonSchema: "json_schema",
|
|
929
934
|
} as const;
|
|
930
|
-
export type
|
|
935
|
+
export type CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type =
|
|
931
936
|
ClosedEnum<
|
|
932
|
-
typeof
|
|
937
|
+
typeof CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type
|
|
933
938
|
>;
|
|
934
939
|
|
|
935
|
-
export type
|
|
940
|
+
export type CreatePromptResponseFormatPromptsJsonSchema = {
|
|
936
941
|
/**
|
|
937
942
|
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
938
943
|
*/
|
|
@@ -951,39 +956,40 @@ export type ResponseFormatJsonSchema = {
|
|
|
951
956
|
strict?: boolean | undefined;
|
|
952
957
|
};
|
|
953
958
|
|
|
954
|
-
export type
|
|
955
|
-
type:
|
|
956
|
-
jsonSchema:
|
|
959
|
+
export type CreatePromptResponseFormatPrompts3 = {
|
|
960
|
+
type: CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type;
|
|
961
|
+
jsonSchema: CreatePromptResponseFormatPromptsJsonSchema;
|
|
957
962
|
};
|
|
958
963
|
|
|
959
|
-
export const
|
|
964
|
+
export const CreatePromptResponseFormatPromptsRequestRequestBodyPromptType = {
|
|
960
965
|
JsonObject: "json_object",
|
|
961
966
|
} as const;
|
|
962
|
-
export type
|
|
963
|
-
ClosedEnum<
|
|
967
|
+
export type CreatePromptResponseFormatPromptsRequestRequestBodyPromptType =
|
|
968
|
+
ClosedEnum<
|
|
969
|
+
typeof CreatePromptResponseFormatPromptsRequestRequestBodyPromptType
|
|
970
|
+
>;
|
|
964
971
|
|
|
965
|
-
export type
|
|
966
|
-
type:
|
|
972
|
+
export type CreatePromptResponseFormatPrompts2 = {
|
|
973
|
+
type: CreatePromptResponseFormatPromptsRequestRequestBodyPromptType;
|
|
967
974
|
};
|
|
968
975
|
|
|
969
|
-
export const
|
|
976
|
+
export const CreatePromptResponseFormatPromptsRequestRequestBodyType = {
|
|
970
977
|
Text: "text",
|
|
971
978
|
} as const;
|
|
972
|
-
export type
|
|
973
|
-
typeof
|
|
974
|
-
>;
|
|
979
|
+
export type CreatePromptResponseFormatPromptsRequestRequestBodyType =
|
|
980
|
+
ClosedEnum<typeof CreatePromptResponseFormatPromptsRequestRequestBodyType>;
|
|
975
981
|
|
|
976
|
-
export type
|
|
977
|
-
type:
|
|
982
|
+
export type CreatePromptResponseFormatPrompts1 = {
|
|
983
|
+
type: CreatePromptResponseFormatPromptsRequestRequestBodyType;
|
|
978
984
|
};
|
|
979
985
|
|
|
980
986
|
/**
|
|
981
987
|
* An object specifying the format that the model must output
|
|
982
988
|
*/
|
|
983
|
-
export type
|
|
984
|
-
|
|
|
985
|
-
|
|
|
986
|
-
|
|
|
989
|
+
export type CreatePromptPromptsResponseFormat =
|
|
990
|
+
| CreatePromptResponseFormatPrompts3
|
|
991
|
+
| CreatePromptResponseFormatPrompts1
|
|
992
|
+
| CreatePromptResponseFormatPrompts2;
|
|
987
993
|
|
|
988
994
|
/**
|
|
989
995
|
* Prompt configuration with model and messages. Either this field or `prompt_config` must be provided.
|
|
@@ -1018,9 +1024,9 @@ export type PromptInput = {
|
|
|
1018
1024
|
* An object specifying the format that the model must output
|
|
1019
1025
|
*/
|
|
1020
1026
|
responseFormat?:
|
|
1021
|
-
|
|
|
1022
|
-
|
|
|
1023
|
-
|
|
|
1027
|
+
| CreatePromptResponseFormatPrompts3
|
|
1028
|
+
| CreatePromptResponseFormatPrompts1
|
|
1029
|
+
| CreatePromptResponseFormatPrompts2
|
|
1024
1030
|
| undefined;
|
|
1025
1031
|
};
|
|
1026
1032
|
|
|
@@ -1137,7 +1143,7 @@ export type CreatePromptResponseFormatPromptsResponse200ApplicationJSONType =
|
|
|
1137
1143
|
typeof CreatePromptResponseFormatPromptsResponse200ApplicationJSONType
|
|
1138
1144
|
>;
|
|
1139
1145
|
|
|
1140
|
-
export type
|
|
1146
|
+
export type CreatePromptResponseFormatPromptsResponse3 = {
|
|
1141
1147
|
type: CreatePromptResponseFormatPromptsResponse200ApplicationJSONType;
|
|
1142
1148
|
};
|
|
1143
1149
|
|
|
@@ -1148,7 +1154,7 @@ export type CreatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
|
|
|
1148
1154
|
typeof CreatePromptResponseFormatPromptsResponse200Type
|
|
1149
1155
|
>;
|
|
1150
1156
|
|
|
1151
|
-
export type
|
|
1157
|
+
export type CreatePromptResponseFormatPromptsResponse2 = {
|
|
1152
1158
|
type: CreatePromptResponseFormatPromptsResponse200Type;
|
|
1153
1159
|
};
|
|
1154
1160
|
|
|
@@ -1159,16 +1165,16 @@ export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<
|
|
|
1159
1165
|
typeof CreatePromptResponseFormatPromptsResponseType
|
|
1160
1166
|
>;
|
|
1161
1167
|
|
|
1162
|
-
export type
|
|
1168
|
+
export type CreatePromptResponseFormatPromptsResponseJsonSchema = {
|
|
1163
1169
|
name: string;
|
|
1164
1170
|
description?: string | undefined;
|
|
1165
1171
|
strict?: boolean | undefined;
|
|
1166
1172
|
schema: { [k: string]: any };
|
|
1167
1173
|
};
|
|
1168
1174
|
|
|
1169
|
-
export type
|
|
1175
|
+
export type CreatePromptResponseFormatPromptsResponse1 = {
|
|
1170
1176
|
type: CreatePromptResponseFormatPromptsResponseType;
|
|
1171
|
-
jsonSchema:
|
|
1177
|
+
jsonSchema: CreatePromptResponseFormatPromptsResponseJsonSchema;
|
|
1172
1178
|
};
|
|
1173
1179
|
|
|
1174
1180
|
/**
|
|
@@ -1182,10 +1188,10 @@ export type CreatePromptResponseFormatPrompts1 = {
|
|
|
1182
1188
|
*
|
|
1183
1189
|
* 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.
|
|
1184
1190
|
*/
|
|
1185
|
-
export type
|
|
1186
|
-
|
|
|
1187
|
-
|
|
|
1188
|
-
|
|
|
1191
|
+
export type CreatePromptPromptsResponseResponseFormat =
|
|
1192
|
+
| CreatePromptResponseFormatPromptsResponse1
|
|
1193
|
+
| CreatePromptResponseFormatPromptsResponse2
|
|
1194
|
+
| CreatePromptResponseFormatPromptsResponse3
|
|
1189
1195
|
| CreatePromptResponseFormat4
|
|
1190
1196
|
| CreatePromptResponseFormat5
|
|
1191
1197
|
| CreatePromptResponseFormat6;
|
|
@@ -1312,9 +1318,9 @@ export type CreatePromptModelParameters = {
|
|
|
1312
1318
|
* 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.
|
|
1313
1319
|
*/
|
|
1314
1320
|
responseFormat?:
|
|
1315
|
-
|
|
|
1316
|
-
|
|
|
1317
|
-
|
|
|
1321
|
+
| CreatePromptResponseFormatPromptsResponse1
|
|
1322
|
+
| CreatePromptResponseFormatPromptsResponse2
|
|
1323
|
+
| CreatePromptResponseFormatPromptsResponse3
|
|
1318
1324
|
| CreatePromptResponseFormat4
|
|
1319
1325
|
| CreatePromptResponseFormat5
|
|
1320
1326
|
| CreatePromptResponseFormat6
|
|
@@ -1480,7 +1486,7 @@ export type CreatePromptContentPromptsResponse2 =
|
|
|
1480
1486
|
| CreatePrompt2PromptsResponse3;
|
|
1481
1487
|
|
|
1482
1488
|
/**
|
|
1483
|
-
* 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.
|
|
1489
|
+
* 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. Can be null for tool messages in certain scenarios.
|
|
1484
1490
|
*/
|
|
1485
1491
|
export type CreatePromptPromptsContent =
|
|
1486
1492
|
| string
|
|
@@ -1518,7 +1524,7 @@ export type CreatePromptPromptsResponseMessages = {
|
|
|
1518
1524
|
*/
|
|
1519
1525
|
role: CreatePromptPromptsRole;
|
|
1520
1526
|
/**
|
|
1521
|
-
* 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.
|
|
1527
|
+
* 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. Can be null for tool messages in certain scenarios.
|
|
1522
1528
|
*/
|
|
1523
1529
|
content:
|
|
1524
1530
|
| string
|
|
@@ -1526,7 +1532,8 @@ export type CreatePromptPromptsResponseMessages = {
|
|
|
1526
1532
|
| CreatePrompt2PromptsResponse1
|
|
1527
1533
|
| CreatePrompt2PromptsResponse2
|
|
1528
1534
|
| CreatePrompt2PromptsResponse3
|
|
1529
|
-
|
|
1535
|
+
>
|
|
1536
|
+
| null;
|
|
1530
1537
|
toolCalls?: Array<CreatePromptPromptsToolCalls> | undefined;
|
|
1531
1538
|
toolCallId?: string | undefined;
|
|
1532
1539
|
};
|
|
@@ -2396,14 +2403,16 @@ export const CreatePromptMessages$inboundSchema: z.ZodType<
|
|
|
2396
2403
|
unknown
|
|
2397
2404
|
> = z.object({
|
|
2398
2405
|
role: CreatePromptRole$inboundSchema,
|
|
2399
|
-
content: z.
|
|
2400
|
-
z.
|
|
2401
|
-
|
|
2402
|
-
z.
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2406
|
+
content: z.nullable(
|
|
2407
|
+
z.union([
|
|
2408
|
+
z.string(),
|
|
2409
|
+
z.array(z.union([
|
|
2410
|
+
z.lazy(() => CreatePrompt21$inboundSchema),
|
|
2411
|
+
z.lazy(() => CreatePrompt22$inboundSchema),
|
|
2412
|
+
z.lazy(() => CreatePrompt23$inboundSchema),
|
|
2413
|
+
])),
|
|
2414
|
+
]),
|
|
2415
|
+
),
|
|
2407
2416
|
tool_calls: z.array(z.lazy(() => CreatePromptToolCalls$inboundSchema))
|
|
2408
2417
|
.optional(),
|
|
2409
2418
|
tool_call_id: z.string().optional(),
|
|
@@ -2423,7 +2432,8 @@ export type CreatePromptMessages$Outbound = {
|
|
|
2423
2432
|
| CreatePrompt21$Outbound
|
|
2424
2433
|
| CreatePrompt22$Outbound
|
|
2425
2434
|
| CreatePrompt23$Outbound
|
|
2426
|
-
|
|
2435
|
+
>
|
|
2436
|
+
| null;
|
|
2427
2437
|
tool_calls?: Array<CreatePromptToolCalls$Outbound> | undefined;
|
|
2428
2438
|
tool_call_id?: string | undefined;
|
|
2429
2439
|
};
|
|
@@ -2435,14 +2445,16 @@ export const CreatePromptMessages$outboundSchema: z.ZodType<
|
|
|
2435
2445
|
CreatePromptMessages
|
|
2436
2446
|
> = z.object({
|
|
2437
2447
|
role: CreatePromptRole$outboundSchema,
|
|
2438
|
-
content: z.
|
|
2439
|
-
z.
|
|
2440
|
-
|
|
2441
|
-
z.
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2448
|
+
content: z.nullable(
|
|
2449
|
+
z.union([
|
|
2450
|
+
z.string(),
|
|
2451
|
+
z.array(z.union([
|
|
2452
|
+
z.lazy(() => CreatePrompt21$outboundSchema),
|
|
2453
|
+
z.lazy(() => CreatePrompt22$outboundSchema),
|
|
2454
|
+
z.lazy(() => CreatePrompt23$outboundSchema),
|
|
2455
|
+
])),
|
|
2456
|
+
]),
|
|
2457
|
+
),
|
|
2446
2458
|
toolCalls: z.array(z.lazy(() => CreatePromptToolCalls$outboundSchema))
|
|
2447
2459
|
.optional(),
|
|
2448
2460
|
toolCallId: z.string().optional(),
|
|
@@ -2565,178 +2577,188 @@ export namespace ResponseFormat4$ {
|
|
|
2565
2577
|
}
|
|
2566
2578
|
|
|
2567
2579
|
/** @internal */
|
|
2568
|
-
export const
|
|
2569
|
-
z.ZodNativeEnum<typeof
|
|
2570
|
-
|
|
2571
|
-
);
|
|
2580
|
+
export const CreatePromptResponseFormatPromptsRequestType$inboundSchema:
|
|
2581
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsRequestType> = z
|
|
2582
|
+
.nativeEnum(CreatePromptResponseFormatPromptsRequestType);
|
|
2572
2583
|
|
|
2573
2584
|
/** @internal */
|
|
2574
|
-
export const
|
|
2575
|
-
z.ZodNativeEnum<typeof
|
|
2576
|
-
|
|
2585
|
+
export const CreatePromptResponseFormatPromptsRequestType$outboundSchema:
|
|
2586
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsRequestType> =
|
|
2587
|
+
CreatePromptResponseFormatPromptsRequestType$inboundSchema;
|
|
2577
2588
|
|
|
2578
2589
|
/**
|
|
2579
2590
|
* @internal
|
|
2580
2591
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2581
2592
|
*/
|
|
2582
|
-
export namespace
|
|
2583
|
-
/** @deprecated use `
|
|
2593
|
+
export namespace CreatePromptResponseFormatPromptsRequestType$ {
|
|
2594
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsRequestType$inboundSchema` instead. */
|
|
2584
2595
|
export const inboundSchema =
|
|
2585
|
-
|
|
2586
|
-
/** @deprecated use `
|
|
2596
|
+
CreatePromptResponseFormatPromptsRequestType$inboundSchema;
|
|
2597
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsRequestType$outboundSchema` instead. */
|
|
2587
2598
|
export const outboundSchema =
|
|
2588
|
-
|
|
2599
|
+
CreatePromptResponseFormatPromptsRequestType$outboundSchema;
|
|
2589
2600
|
}
|
|
2590
2601
|
|
|
2591
2602
|
/** @internal */
|
|
2592
|
-
export const
|
|
2593
|
-
|
|
2603
|
+
export const CreatePromptResponseFormat3$inboundSchema: z.ZodType<
|
|
2604
|
+
CreatePromptResponseFormat3,
|
|
2594
2605
|
z.ZodTypeDef,
|
|
2595
2606
|
unknown
|
|
2596
2607
|
> = z.object({
|
|
2597
|
-
type:
|
|
2608
|
+
type: CreatePromptResponseFormatPromptsRequestType$inboundSchema,
|
|
2598
2609
|
});
|
|
2599
2610
|
|
|
2600
2611
|
/** @internal */
|
|
2601
|
-
export type
|
|
2612
|
+
export type CreatePromptResponseFormat3$Outbound = {
|
|
2602
2613
|
type: string;
|
|
2603
2614
|
};
|
|
2604
2615
|
|
|
2605
2616
|
/** @internal */
|
|
2606
|
-
export const
|
|
2607
|
-
|
|
2617
|
+
export const CreatePromptResponseFormat3$outboundSchema: z.ZodType<
|
|
2618
|
+
CreatePromptResponseFormat3$Outbound,
|
|
2608
2619
|
z.ZodTypeDef,
|
|
2609
|
-
|
|
2620
|
+
CreatePromptResponseFormat3
|
|
2610
2621
|
> = z.object({
|
|
2611
|
-
type:
|
|
2622
|
+
type: CreatePromptResponseFormatPromptsRequestType$outboundSchema,
|
|
2612
2623
|
});
|
|
2613
2624
|
|
|
2614
2625
|
/**
|
|
2615
2626
|
* @internal
|
|
2616
2627
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2617
2628
|
*/
|
|
2618
|
-
export namespace
|
|
2619
|
-
/** @deprecated use `
|
|
2620
|
-
export const inboundSchema =
|
|
2621
|
-
/** @deprecated use `
|
|
2622
|
-
export const outboundSchema =
|
|
2623
|
-
/** @deprecated use `
|
|
2624
|
-
export type Outbound =
|
|
2629
|
+
export namespace CreatePromptResponseFormat3$ {
|
|
2630
|
+
/** @deprecated use `CreatePromptResponseFormat3$inboundSchema` instead. */
|
|
2631
|
+
export const inboundSchema = CreatePromptResponseFormat3$inboundSchema;
|
|
2632
|
+
/** @deprecated use `CreatePromptResponseFormat3$outboundSchema` instead. */
|
|
2633
|
+
export const outboundSchema = CreatePromptResponseFormat3$outboundSchema;
|
|
2634
|
+
/** @deprecated use `CreatePromptResponseFormat3$Outbound` instead. */
|
|
2635
|
+
export type Outbound = CreatePromptResponseFormat3$Outbound;
|
|
2625
2636
|
}
|
|
2626
2637
|
|
|
2627
|
-
export function
|
|
2628
|
-
|
|
2638
|
+
export function createPromptResponseFormat3ToJSON(
|
|
2639
|
+
createPromptResponseFormat3: CreatePromptResponseFormat3,
|
|
2629
2640
|
): string {
|
|
2630
|
-
return JSON.stringify(
|
|
2641
|
+
return JSON.stringify(
|
|
2642
|
+
CreatePromptResponseFormat3$outboundSchema.parse(
|
|
2643
|
+
createPromptResponseFormat3,
|
|
2644
|
+
),
|
|
2645
|
+
);
|
|
2631
2646
|
}
|
|
2632
2647
|
|
|
2633
|
-
export function
|
|
2648
|
+
export function createPromptResponseFormat3FromJSON(
|
|
2634
2649
|
jsonString: string,
|
|
2635
|
-
): SafeParseResult<
|
|
2650
|
+
): SafeParseResult<CreatePromptResponseFormat3, SDKValidationError> {
|
|
2636
2651
|
return safeParse(
|
|
2637
2652
|
jsonString,
|
|
2638
|
-
(x) =>
|
|
2639
|
-
`Failed to parse '
|
|
2653
|
+
(x) => CreatePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)),
|
|
2654
|
+
`Failed to parse 'CreatePromptResponseFormat3' from JSON`,
|
|
2640
2655
|
);
|
|
2641
2656
|
}
|
|
2642
2657
|
|
|
2643
2658
|
/** @internal */
|
|
2644
|
-
export const
|
|
2645
|
-
typeof
|
|
2646
|
-
|
|
2659
|
+
export const CreatePromptResponseFormatPromptsType$inboundSchema:
|
|
2660
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> = z.nativeEnum(
|
|
2661
|
+
CreatePromptResponseFormatPromptsType,
|
|
2662
|
+
);
|
|
2647
2663
|
|
|
2648
2664
|
/** @internal */
|
|
2649
|
-
export const
|
|
2650
|
-
typeof
|
|
2651
|
-
|
|
2665
|
+
export const CreatePromptResponseFormatPromptsType$outboundSchema:
|
|
2666
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> =
|
|
2667
|
+
CreatePromptResponseFormatPromptsType$inboundSchema;
|
|
2652
2668
|
|
|
2653
2669
|
/**
|
|
2654
2670
|
* @internal
|
|
2655
2671
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2656
2672
|
*/
|
|
2657
|
-
export namespace
|
|
2658
|
-
/** @deprecated use `
|
|
2659
|
-
export const inboundSchema =
|
|
2660
|
-
|
|
2661
|
-
|
|
2673
|
+
export namespace CreatePromptResponseFormatPromptsType$ {
|
|
2674
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
2675
|
+
export const inboundSchema =
|
|
2676
|
+
CreatePromptResponseFormatPromptsType$inboundSchema;
|
|
2677
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
2678
|
+
export const outboundSchema =
|
|
2679
|
+
CreatePromptResponseFormatPromptsType$outboundSchema;
|
|
2662
2680
|
}
|
|
2663
2681
|
|
|
2664
2682
|
/** @internal */
|
|
2665
|
-
export const
|
|
2666
|
-
|
|
2683
|
+
export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
|
|
2684
|
+
CreatePromptResponseFormat2,
|
|
2667
2685
|
z.ZodTypeDef,
|
|
2668
2686
|
unknown
|
|
2669
2687
|
> = z.object({
|
|
2670
|
-
type:
|
|
2688
|
+
type: CreatePromptResponseFormatPromptsType$inboundSchema,
|
|
2671
2689
|
});
|
|
2672
2690
|
|
|
2673
2691
|
/** @internal */
|
|
2674
|
-
export type
|
|
2692
|
+
export type CreatePromptResponseFormat2$Outbound = {
|
|
2675
2693
|
type: string;
|
|
2676
2694
|
};
|
|
2677
2695
|
|
|
2678
2696
|
/** @internal */
|
|
2679
|
-
export const
|
|
2680
|
-
|
|
2697
|
+
export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
|
|
2698
|
+
CreatePromptResponseFormat2$Outbound,
|
|
2681
2699
|
z.ZodTypeDef,
|
|
2682
|
-
|
|
2700
|
+
CreatePromptResponseFormat2
|
|
2683
2701
|
> = z.object({
|
|
2684
|
-
type:
|
|
2702
|
+
type: CreatePromptResponseFormatPromptsType$outboundSchema,
|
|
2685
2703
|
});
|
|
2686
2704
|
|
|
2687
2705
|
/**
|
|
2688
2706
|
* @internal
|
|
2689
2707
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2690
2708
|
*/
|
|
2691
|
-
export namespace
|
|
2692
|
-
/** @deprecated use `
|
|
2693
|
-
export const inboundSchema =
|
|
2694
|
-
/** @deprecated use `
|
|
2695
|
-
export const outboundSchema =
|
|
2696
|
-
/** @deprecated use `
|
|
2697
|
-
export type Outbound =
|
|
2709
|
+
export namespace CreatePromptResponseFormat2$ {
|
|
2710
|
+
/** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
|
|
2711
|
+
export const inboundSchema = CreatePromptResponseFormat2$inboundSchema;
|
|
2712
|
+
/** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
|
|
2713
|
+
export const outboundSchema = CreatePromptResponseFormat2$outboundSchema;
|
|
2714
|
+
/** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
|
|
2715
|
+
export type Outbound = CreatePromptResponseFormat2$Outbound;
|
|
2698
2716
|
}
|
|
2699
2717
|
|
|
2700
|
-
export function
|
|
2701
|
-
|
|
2718
|
+
export function createPromptResponseFormat2ToJSON(
|
|
2719
|
+
createPromptResponseFormat2: CreatePromptResponseFormat2,
|
|
2702
2720
|
): string {
|
|
2703
|
-
return JSON.stringify(
|
|
2721
|
+
return JSON.stringify(
|
|
2722
|
+
CreatePromptResponseFormat2$outboundSchema.parse(
|
|
2723
|
+
createPromptResponseFormat2,
|
|
2724
|
+
),
|
|
2725
|
+
);
|
|
2704
2726
|
}
|
|
2705
2727
|
|
|
2706
|
-
export function
|
|
2728
|
+
export function createPromptResponseFormat2FromJSON(
|
|
2707
2729
|
jsonString: string,
|
|
2708
|
-
): SafeParseResult<
|
|
2730
|
+
): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError> {
|
|
2709
2731
|
return safeParse(
|
|
2710
2732
|
jsonString,
|
|
2711
|
-
(x) =>
|
|
2712
|
-
`Failed to parse '
|
|
2733
|
+
(x) => CreatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
2734
|
+
`Failed to parse 'CreatePromptResponseFormat2' from JSON`,
|
|
2713
2735
|
);
|
|
2714
2736
|
}
|
|
2715
2737
|
|
|
2716
2738
|
/** @internal */
|
|
2717
|
-
export const
|
|
2718
|
-
typeof
|
|
2719
|
-
> = z.nativeEnum(
|
|
2739
|
+
export const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
2740
|
+
typeof CreatePromptResponseFormatType
|
|
2741
|
+
> = z.nativeEnum(CreatePromptResponseFormatType);
|
|
2720
2742
|
|
|
2721
2743
|
/** @internal */
|
|
2722
|
-
export const
|
|
2723
|
-
typeof
|
|
2724
|
-
> =
|
|
2744
|
+
export const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
2745
|
+
typeof CreatePromptResponseFormatType
|
|
2746
|
+
> = CreatePromptResponseFormatType$inboundSchema;
|
|
2725
2747
|
|
|
2726
2748
|
/**
|
|
2727
2749
|
* @internal
|
|
2728
2750
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2729
2751
|
*/
|
|
2730
|
-
export namespace
|
|
2731
|
-
/** @deprecated use `
|
|
2732
|
-
export const inboundSchema =
|
|
2733
|
-
/** @deprecated use `
|
|
2734
|
-
export const outboundSchema =
|
|
2752
|
+
export namespace CreatePromptResponseFormatType$ {
|
|
2753
|
+
/** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
|
|
2754
|
+
export const inboundSchema = CreatePromptResponseFormatType$inboundSchema;
|
|
2755
|
+
/** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
|
|
2756
|
+
export const outboundSchema = CreatePromptResponseFormatType$outboundSchema;
|
|
2735
2757
|
}
|
|
2736
2758
|
|
|
2737
2759
|
/** @internal */
|
|
2738
|
-
export const
|
|
2739
|
-
|
|
2760
|
+
export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
2761
|
+
CreatePromptResponseFormatJsonSchema,
|
|
2740
2762
|
z.ZodTypeDef,
|
|
2741
2763
|
unknown
|
|
2742
2764
|
> = z.object({
|
|
@@ -2747,7 +2769,7 @@ export const JsonSchema$inboundSchema: z.ZodType<
|
|
|
2747
2769
|
});
|
|
2748
2770
|
|
|
2749
2771
|
/** @internal */
|
|
2750
|
-
export type
|
|
2772
|
+
export type CreatePromptResponseFormatJsonSchema$Outbound = {
|
|
2751
2773
|
name: string;
|
|
2752
2774
|
description?: string | undefined;
|
|
2753
2775
|
strict?: boolean | undefined;
|
|
@@ -2755,10 +2777,10 @@ export type JsonSchema$Outbound = {
|
|
|
2755
2777
|
};
|
|
2756
2778
|
|
|
2757
2779
|
/** @internal */
|
|
2758
|
-
export const
|
|
2759
|
-
|
|
2780
|
+
export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
2781
|
+
CreatePromptResponseFormatJsonSchema$Outbound,
|
|
2760
2782
|
z.ZodTypeDef,
|
|
2761
|
-
|
|
2783
|
+
CreatePromptResponseFormatJsonSchema
|
|
2762
2784
|
> = z.object({
|
|
2763
2785
|
name: z.string(),
|
|
2764
2786
|
description: z.string().optional(),
|
|
@@ -2770,57 +2792,66 @@ export const JsonSchema$outboundSchema: z.ZodType<
|
|
|
2770
2792
|
* @internal
|
|
2771
2793
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2772
2794
|
*/
|
|
2773
|
-
export namespace
|
|
2774
|
-
/** @deprecated use `
|
|
2775
|
-
export const inboundSchema =
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2795
|
+
export namespace CreatePromptResponseFormatJsonSchema$ {
|
|
2796
|
+
/** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
|
|
2797
|
+
export const inboundSchema =
|
|
2798
|
+
CreatePromptResponseFormatJsonSchema$inboundSchema;
|
|
2799
|
+
/** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
|
|
2800
|
+
export const outboundSchema =
|
|
2801
|
+
CreatePromptResponseFormatJsonSchema$outboundSchema;
|
|
2802
|
+
/** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
|
|
2803
|
+
export type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
|
|
2780
2804
|
}
|
|
2781
2805
|
|
|
2782
|
-
export function
|
|
2783
|
-
|
|
2806
|
+
export function createPromptResponseFormatJsonSchemaToJSON(
|
|
2807
|
+
createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema,
|
|
2808
|
+
): string {
|
|
2809
|
+
return JSON.stringify(
|
|
2810
|
+
CreatePromptResponseFormatJsonSchema$outboundSchema.parse(
|
|
2811
|
+
createPromptResponseFormatJsonSchema,
|
|
2812
|
+
),
|
|
2813
|
+
);
|
|
2784
2814
|
}
|
|
2785
2815
|
|
|
2786
|
-
export function
|
|
2816
|
+
export function createPromptResponseFormatJsonSchemaFromJSON(
|
|
2787
2817
|
jsonString: string,
|
|
2788
|
-
): SafeParseResult<
|
|
2818
|
+
): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError> {
|
|
2789
2819
|
return safeParse(
|
|
2790
2820
|
jsonString,
|
|
2791
|
-
(x) =>
|
|
2792
|
-
|
|
2821
|
+
(x) =>
|
|
2822
|
+
CreatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
2823
|
+
`Failed to parse 'CreatePromptResponseFormatJsonSchema' from JSON`,
|
|
2793
2824
|
);
|
|
2794
2825
|
}
|
|
2795
2826
|
|
|
2796
2827
|
/** @internal */
|
|
2797
|
-
export const
|
|
2798
|
-
|
|
2828
|
+
export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
2829
|
+
CreatePromptResponseFormat1,
|
|
2799
2830
|
z.ZodTypeDef,
|
|
2800
2831
|
unknown
|
|
2801
2832
|
> = z.object({
|
|
2802
|
-
type:
|
|
2803
|
-
json_schema: z.lazy(() =>
|
|
2804
|
-
}).transform((v) => {
|
|
2833
|
+
type: CreatePromptResponseFormatType$inboundSchema,
|
|
2834
|
+
json_schema: z.lazy(() => CreatePromptResponseFormatJsonSchema$inboundSchema),
|
|
2835
|
+
}).transform((v) => {
|
|
2805
2836
|
return remap$(v, {
|
|
2806
2837
|
"json_schema": "jsonSchema",
|
|
2807
2838
|
});
|
|
2808
2839
|
});
|
|
2809
2840
|
|
|
2810
2841
|
/** @internal */
|
|
2811
|
-
export type
|
|
2842
|
+
export type CreatePromptResponseFormat1$Outbound = {
|
|
2812
2843
|
type: string;
|
|
2813
|
-
json_schema:
|
|
2844
|
+
json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
|
|
2814
2845
|
};
|
|
2815
2846
|
|
|
2816
2847
|
/** @internal */
|
|
2817
|
-
export const
|
|
2818
|
-
|
|
2848
|
+
export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
2849
|
+
CreatePromptResponseFormat1$Outbound,
|
|
2819
2850
|
z.ZodTypeDef,
|
|
2820
|
-
|
|
2851
|
+
CreatePromptResponseFormat1
|
|
2821
2852
|
> = z.object({
|
|
2822
|
-
type:
|
|
2823
|
-
jsonSchema: z.lazy(() =>
|
|
2853
|
+
type: CreatePromptResponseFormatType$outboundSchema,
|
|
2854
|
+
jsonSchema: z.lazy(() => CreatePromptResponseFormatJsonSchema$outboundSchema),
|
|
2824
2855
|
}).transform((v) => {
|
|
2825
2856
|
return remap$(v, {
|
|
2826
2857
|
jsonSchema: "json_schema",
|
|
@@ -2831,63 +2862,67 @@ export const ResponseFormat1$outboundSchema: z.ZodType<
|
|
|
2831
2862
|
* @internal
|
|
2832
2863
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2833
2864
|
*/
|
|
2834
|
-
export namespace
|
|
2835
|
-
/** @deprecated use `
|
|
2836
|
-
export const inboundSchema =
|
|
2837
|
-
/** @deprecated use `
|
|
2838
|
-
export const outboundSchema =
|
|
2839
|
-
/** @deprecated use `
|
|
2840
|
-
export type Outbound =
|
|
2865
|
+
export namespace CreatePromptResponseFormat1$ {
|
|
2866
|
+
/** @deprecated use `CreatePromptResponseFormat1$inboundSchema` instead. */
|
|
2867
|
+
export const inboundSchema = CreatePromptResponseFormat1$inboundSchema;
|
|
2868
|
+
/** @deprecated use `CreatePromptResponseFormat1$outboundSchema` instead. */
|
|
2869
|
+
export const outboundSchema = CreatePromptResponseFormat1$outboundSchema;
|
|
2870
|
+
/** @deprecated use `CreatePromptResponseFormat1$Outbound` instead. */
|
|
2871
|
+
export type Outbound = CreatePromptResponseFormat1$Outbound;
|
|
2841
2872
|
}
|
|
2842
2873
|
|
|
2843
|
-
export function
|
|
2844
|
-
|
|
2874
|
+
export function createPromptResponseFormat1ToJSON(
|
|
2875
|
+
createPromptResponseFormat1: CreatePromptResponseFormat1,
|
|
2845
2876
|
): string {
|
|
2846
|
-
return JSON.stringify(
|
|
2877
|
+
return JSON.stringify(
|
|
2878
|
+
CreatePromptResponseFormat1$outboundSchema.parse(
|
|
2879
|
+
createPromptResponseFormat1,
|
|
2880
|
+
),
|
|
2881
|
+
);
|
|
2847
2882
|
}
|
|
2848
2883
|
|
|
2849
|
-
export function
|
|
2884
|
+
export function createPromptResponseFormat1FromJSON(
|
|
2850
2885
|
jsonString: string,
|
|
2851
|
-
): SafeParseResult<
|
|
2886
|
+
): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError> {
|
|
2852
2887
|
return safeParse(
|
|
2853
2888
|
jsonString,
|
|
2854
|
-
(x) =>
|
|
2855
|
-
`Failed to parse '
|
|
2889
|
+
(x) => CreatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
2890
|
+
`Failed to parse 'CreatePromptResponseFormat1' from JSON`,
|
|
2856
2891
|
);
|
|
2857
2892
|
}
|
|
2858
2893
|
|
|
2859
2894
|
/** @internal */
|
|
2860
|
-
export const
|
|
2861
|
-
|
|
2895
|
+
export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
|
|
2896
|
+
CreatePromptResponseFormat,
|
|
2862
2897
|
z.ZodTypeDef,
|
|
2863
2898
|
unknown
|
|
2864
2899
|
> = z.union([
|
|
2865
|
-
z.lazy(() =>
|
|
2866
|
-
z.lazy(() =>
|
|
2867
|
-
z.lazy(() =>
|
|
2900
|
+
z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
|
|
2901
|
+
z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
|
|
2902
|
+
z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
|
|
2868
2903
|
ResponseFormat4$inboundSchema,
|
|
2869
2904
|
Five$inboundSchema,
|
|
2870
2905
|
Six$inboundSchema,
|
|
2871
2906
|
]);
|
|
2872
2907
|
|
|
2873
2908
|
/** @internal */
|
|
2874
|
-
export type
|
|
2875
|
-
|
|
|
2876
|
-
|
|
|
2877
|
-
|
|
|
2909
|
+
export type CreatePromptResponseFormat$Outbound =
|
|
2910
|
+
| CreatePromptResponseFormat1$Outbound
|
|
2911
|
+
| CreatePromptResponseFormat2$Outbound
|
|
2912
|
+
| CreatePromptResponseFormat3$Outbound
|
|
2878
2913
|
| string
|
|
2879
2914
|
| string
|
|
2880
2915
|
| string;
|
|
2881
2916
|
|
|
2882
2917
|
/** @internal */
|
|
2883
|
-
export const
|
|
2884
|
-
|
|
2918
|
+
export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
2919
|
+
CreatePromptResponseFormat$Outbound,
|
|
2885
2920
|
z.ZodTypeDef,
|
|
2886
|
-
|
|
2921
|
+
CreatePromptResponseFormat
|
|
2887
2922
|
> = z.union([
|
|
2888
|
-
z.lazy(() =>
|
|
2889
|
-
z.lazy(() =>
|
|
2890
|
-
z.lazy(() =>
|
|
2923
|
+
z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
|
|
2924
|
+
z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
|
|
2925
|
+
z.lazy(() => CreatePromptResponseFormat3$outboundSchema),
|
|
2891
2926
|
ResponseFormat4$outboundSchema,
|
|
2892
2927
|
Five$outboundSchema,
|
|
2893
2928
|
Six$outboundSchema,
|
|
@@ -2897,26 +2932,30 @@ export const ResponseFormat$outboundSchema: z.ZodType<
|
|
|
2897
2932
|
* @internal
|
|
2898
2933
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2899
2934
|
*/
|
|
2900
|
-
export namespace
|
|
2901
|
-
/** @deprecated use `
|
|
2902
|
-
export const inboundSchema =
|
|
2903
|
-
/** @deprecated use `
|
|
2904
|
-
export const outboundSchema =
|
|
2905
|
-
/** @deprecated use `
|
|
2906
|
-
export type Outbound =
|
|
2935
|
+
export namespace CreatePromptResponseFormat$ {
|
|
2936
|
+
/** @deprecated use `CreatePromptResponseFormat$inboundSchema` instead. */
|
|
2937
|
+
export const inboundSchema = CreatePromptResponseFormat$inboundSchema;
|
|
2938
|
+
/** @deprecated use `CreatePromptResponseFormat$outboundSchema` instead. */
|
|
2939
|
+
export const outboundSchema = CreatePromptResponseFormat$outboundSchema;
|
|
2940
|
+
/** @deprecated use `CreatePromptResponseFormat$Outbound` instead. */
|
|
2941
|
+
export type Outbound = CreatePromptResponseFormat$Outbound;
|
|
2907
2942
|
}
|
|
2908
2943
|
|
|
2909
|
-
export function
|
|
2910
|
-
|
|
2944
|
+
export function createPromptResponseFormatToJSON(
|
|
2945
|
+
createPromptResponseFormat: CreatePromptResponseFormat,
|
|
2946
|
+
): string {
|
|
2947
|
+
return JSON.stringify(
|
|
2948
|
+
CreatePromptResponseFormat$outboundSchema.parse(createPromptResponseFormat),
|
|
2949
|
+
);
|
|
2911
2950
|
}
|
|
2912
2951
|
|
|
2913
|
-
export function
|
|
2952
|
+
export function createPromptResponseFormatFromJSON(
|
|
2914
2953
|
jsonString: string,
|
|
2915
|
-
): SafeParseResult<
|
|
2954
|
+
): SafeParseResult<CreatePromptResponseFormat, SDKValidationError> {
|
|
2916
2955
|
return safeParse(
|
|
2917
2956
|
jsonString,
|
|
2918
|
-
(x) =>
|
|
2919
|
-
`Failed to parse '
|
|
2957
|
+
(x) => CreatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
2958
|
+
`Failed to parse 'CreatePromptResponseFormat' from JSON`,
|
|
2920
2959
|
);
|
|
2921
2960
|
}
|
|
2922
2961
|
|
|
@@ -3022,9 +3061,9 @@ export const ModelParameters$inboundSchema: z.ZodType<
|
|
|
3022
3061
|
style: z.string().optional(),
|
|
3023
3062
|
responseFormat: z.nullable(
|
|
3024
3063
|
z.union([
|
|
3025
|
-
z.lazy(() =>
|
|
3026
|
-
z.lazy(() =>
|
|
3027
|
-
z.lazy(() =>
|
|
3064
|
+
z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
|
|
3065
|
+
z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
|
|
3066
|
+
z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
|
|
3028
3067
|
ResponseFormat4$inboundSchema,
|
|
3029
3068
|
Five$inboundSchema,
|
|
3030
3069
|
Six$inboundSchema,
|
|
@@ -3056,9 +3095,9 @@ export type ModelParameters$Outbound = {
|
|
|
3056
3095
|
quality?: string | undefined;
|
|
3057
3096
|
style?: string | undefined;
|
|
3058
3097
|
responseFormat?:
|
|
3059
|
-
|
|
|
3060
|
-
|
|
|
3061
|
-
|
|
|
3098
|
+
| CreatePromptResponseFormat1$Outbound
|
|
3099
|
+
| CreatePromptResponseFormat2$Outbound
|
|
3100
|
+
| CreatePromptResponseFormat3$Outbound
|
|
3062
3101
|
| string
|
|
3063
3102
|
| string
|
|
3064
3103
|
| string
|
|
@@ -3091,9 +3130,9 @@ export const ModelParameters$outboundSchema: z.ZodType<
|
|
|
3091
3130
|
style: z.string().optional(),
|
|
3092
3131
|
responseFormat: z.nullable(
|
|
3093
3132
|
z.union([
|
|
3094
|
-
z.lazy(() =>
|
|
3095
|
-
z.lazy(() =>
|
|
3096
|
-
z.lazy(() =>
|
|
3133
|
+
z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
|
|
3134
|
+
z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
|
|
3135
|
+
z.lazy(() => CreatePromptResponseFormat3$outboundSchema),
|
|
3097
3136
|
ResponseFormat4$outboundSchema,
|
|
3098
3137
|
Five$outboundSchema,
|
|
3099
3138
|
Six$outboundSchema,
|
|
@@ -5379,47 +5418,48 @@ export function createPromptPromptsMessagesFromJSON(
|
|
|
5379
5418
|
}
|
|
5380
5419
|
|
|
5381
5420
|
/** @internal */
|
|
5382
|
-
export const
|
|
5421
|
+
export const CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$inboundSchema:
|
|
5383
5422
|
z.ZodNativeEnum<
|
|
5384
|
-
typeof
|
|
5423
|
+
typeof CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type
|
|
5385
5424
|
> = z.nativeEnum(
|
|
5386
|
-
|
|
5425
|
+
CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type,
|
|
5387
5426
|
);
|
|
5388
5427
|
|
|
5389
5428
|
/** @internal */
|
|
5390
|
-
export const
|
|
5429
|
+
export const CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$outboundSchema:
|
|
5391
5430
|
z.ZodNativeEnum<
|
|
5392
|
-
typeof
|
|
5431
|
+
typeof CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type
|
|
5393
5432
|
> =
|
|
5394
|
-
|
|
5433
|
+
CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$inboundSchema;
|
|
5395
5434
|
|
|
5396
5435
|
/**
|
|
5397
5436
|
* @internal
|
|
5398
5437
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5399
5438
|
*/
|
|
5400
|
-
export namespace
|
|
5401
|
-
/** @deprecated use `
|
|
5439
|
+
export namespace CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$ {
|
|
5440
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$inboundSchema` instead. */
|
|
5402
5441
|
export const inboundSchema =
|
|
5403
|
-
|
|
5404
|
-
/** @deprecated use `
|
|
5442
|
+
CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$inboundSchema;
|
|
5443
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$outboundSchema` instead. */
|
|
5405
5444
|
export const outboundSchema =
|
|
5406
|
-
|
|
5445
|
+
CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$outboundSchema;
|
|
5407
5446
|
}
|
|
5408
5447
|
|
|
5409
5448
|
/** @internal */
|
|
5410
|
-
export const
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5449
|
+
export const CreatePromptResponseFormatPromptsJsonSchema$inboundSchema:
|
|
5450
|
+
z.ZodType<
|
|
5451
|
+
CreatePromptResponseFormatPromptsJsonSchema,
|
|
5452
|
+
z.ZodTypeDef,
|
|
5453
|
+
unknown
|
|
5454
|
+
> = z.object({
|
|
5455
|
+
description: z.string().optional(),
|
|
5456
|
+
name: z.string(),
|
|
5457
|
+
schema: z.any().optional(),
|
|
5458
|
+
strict: z.boolean().optional(),
|
|
5459
|
+
});
|
|
5420
5460
|
|
|
5421
5461
|
/** @internal */
|
|
5422
|
-
export type
|
|
5462
|
+
export type CreatePromptResponseFormatPromptsJsonSchema$Outbound = {
|
|
5423
5463
|
description?: string | undefined;
|
|
5424
5464
|
name: string;
|
|
5425
5465
|
schema?: any | undefined;
|
|
@@ -5427,57 +5467,71 @@ export type ResponseFormatJsonSchema$Outbound = {
|
|
|
5427
5467
|
};
|
|
5428
5468
|
|
|
5429
5469
|
/** @internal */
|
|
5430
|
-
export const
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5470
|
+
export const CreatePromptResponseFormatPromptsJsonSchema$outboundSchema:
|
|
5471
|
+
z.ZodType<
|
|
5472
|
+
CreatePromptResponseFormatPromptsJsonSchema$Outbound,
|
|
5473
|
+
z.ZodTypeDef,
|
|
5474
|
+
CreatePromptResponseFormatPromptsJsonSchema
|
|
5475
|
+
> = z.object({
|
|
5476
|
+
description: z.string().optional(),
|
|
5477
|
+
name: z.string(),
|
|
5478
|
+
schema: z.any().optional(),
|
|
5479
|
+
strict: z.boolean().optional(),
|
|
5480
|
+
});
|
|
5440
5481
|
|
|
5441
5482
|
/**
|
|
5442
5483
|
* @internal
|
|
5443
5484
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5444
5485
|
*/
|
|
5445
|
-
export namespace
|
|
5446
|
-
/** @deprecated use `
|
|
5447
|
-
export const inboundSchema =
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5486
|
+
export namespace CreatePromptResponseFormatPromptsJsonSchema$ {
|
|
5487
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$inboundSchema` instead. */
|
|
5488
|
+
export const inboundSchema =
|
|
5489
|
+
CreatePromptResponseFormatPromptsJsonSchema$inboundSchema;
|
|
5490
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$outboundSchema` instead. */
|
|
5491
|
+
export const outboundSchema =
|
|
5492
|
+
CreatePromptResponseFormatPromptsJsonSchema$outboundSchema;
|
|
5493
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$Outbound` instead. */
|
|
5494
|
+
export type Outbound = CreatePromptResponseFormatPromptsJsonSchema$Outbound;
|
|
5452
5495
|
}
|
|
5453
5496
|
|
|
5454
|
-
export function
|
|
5455
|
-
|
|
5497
|
+
export function createPromptResponseFormatPromptsJsonSchemaToJSON(
|
|
5498
|
+
createPromptResponseFormatPromptsJsonSchema:
|
|
5499
|
+
CreatePromptResponseFormatPromptsJsonSchema,
|
|
5456
5500
|
): string {
|
|
5457
5501
|
return JSON.stringify(
|
|
5458
|
-
|
|
5502
|
+
CreatePromptResponseFormatPromptsJsonSchema$outboundSchema.parse(
|
|
5503
|
+
createPromptResponseFormatPromptsJsonSchema,
|
|
5504
|
+
),
|
|
5459
5505
|
);
|
|
5460
5506
|
}
|
|
5461
5507
|
|
|
5462
|
-
export function
|
|
5508
|
+
export function createPromptResponseFormatPromptsJsonSchemaFromJSON(
|
|
5463
5509
|
jsonString: string,
|
|
5464
|
-
): SafeParseResult<
|
|
5510
|
+
): SafeParseResult<
|
|
5511
|
+
CreatePromptResponseFormatPromptsJsonSchema,
|
|
5512
|
+
SDKValidationError
|
|
5513
|
+
> {
|
|
5465
5514
|
return safeParse(
|
|
5466
5515
|
jsonString,
|
|
5467
|
-
(x) =>
|
|
5468
|
-
|
|
5516
|
+
(x) =>
|
|
5517
|
+
CreatePromptResponseFormatPromptsJsonSchema$inboundSchema.parse(
|
|
5518
|
+
JSON.parse(x),
|
|
5519
|
+
),
|
|
5520
|
+
`Failed to parse 'CreatePromptResponseFormatPromptsJsonSchema' from JSON`,
|
|
5469
5521
|
);
|
|
5470
5522
|
}
|
|
5471
5523
|
|
|
5472
5524
|
/** @internal */
|
|
5473
|
-
export const
|
|
5474
|
-
|
|
5525
|
+
export const CreatePromptResponseFormatPrompts3$inboundSchema: z.ZodType<
|
|
5526
|
+
CreatePromptResponseFormatPrompts3,
|
|
5475
5527
|
z.ZodTypeDef,
|
|
5476
5528
|
unknown
|
|
5477
5529
|
> = z.object({
|
|
5478
5530
|
type:
|
|
5479
|
-
|
|
5480
|
-
json_schema: z.lazy(() =>
|
|
5531
|
+
CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$inboundSchema,
|
|
5532
|
+
json_schema: z.lazy(() =>
|
|
5533
|
+
CreatePromptResponseFormatPromptsJsonSchema$inboundSchema
|
|
5534
|
+
),
|
|
5481
5535
|
}).transform((v) => {
|
|
5482
5536
|
return remap$(v, {
|
|
5483
5537
|
"json_schema": "jsonSchema",
|
|
@@ -5485,20 +5539,22 @@ export const CreatePromptResponseFormat3$inboundSchema: z.ZodType<
|
|
|
5485
5539
|
});
|
|
5486
5540
|
|
|
5487
5541
|
/** @internal */
|
|
5488
|
-
export type
|
|
5542
|
+
export type CreatePromptResponseFormatPrompts3$Outbound = {
|
|
5489
5543
|
type: string;
|
|
5490
|
-
json_schema:
|
|
5544
|
+
json_schema: CreatePromptResponseFormatPromptsJsonSchema$Outbound;
|
|
5491
5545
|
};
|
|
5492
5546
|
|
|
5493
5547
|
/** @internal */
|
|
5494
|
-
export const
|
|
5495
|
-
|
|
5548
|
+
export const CreatePromptResponseFormatPrompts3$outboundSchema: z.ZodType<
|
|
5549
|
+
CreatePromptResponseFormatPrompts3$Outbound,
|
|
5496
5550
|
z.ZodTypeDef,
|
|
5497
|
-
|
|
5551
|
+
CreatePromptResponseFormatPrompts3
|
|
5498
5552
|
> = z.object({
|
|
5499
5553
|
type:
|
|
5500
|
-
|
|
5501
|
-
jsonSchema: z.lazy(() =>
|
|
5554
|
+
CreatePromptResponseFormatPromptsRequestRequestBodyPrompt3Type$outboundSchema,
|
|
5555
|
+
jsonSchema: z.lazy(() =>
|
|
5556
|
+
CreatePromptResponseFormatPromptsJsonSchema$outboundSchema
|
|
5557
|
+
),
|
|
5502
5558
|
}).transform((v) => {
|
|
5503
5559
|
return remap$(v, {
|
|
5504
5560
|
jsonSchema: "json_schema",
|
|
@@ -5509,251 +5565,267 @@ export const CreatePromptResponseFormat3$outboundSchema: z.ZodType<
|
|
|
5509
5565
|
* @internal
|
|
5510
5566
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5511
5567
|
*/
|
|
5512
|
-
export namespace
|
|
5513
|
-
/** @deprecated use `
|
|
5514
|
-
export const inboundSchema =
|
|
5515
|
-
/** @deprecated use `
|
|
5516
|
-
export const outboundSchema =
|
|
5517
|
-
|
|
5518
|
-
|
|
5568
|
+
export namespace CreatePromptResponseFormatPrompts3$ {
|
|
5569
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts3$inboundSchema` instead. */
|
|
5570
|
+
export const inboundSchema = CreatePromptResponseFormatPrompts3$inboundSchema;
|
|
5571
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts3$outboundSchema` instead. */
|
|
5572
|
+
export const outboundSchema =
|
|
5573
|
+
CreatePromptResponseFormatPrompts3$outboundSchema;
|
|
5574
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts3$Outbound` instead. */
|
|
5575
|
+
export type Outbound = CreatePromptResponseFormatPrompts3$Outbound;
|
|
5519
5576
|
}
|
|
5520
5577
|
|
|
5521
|
-
export function
|
|
5522
|
-
|
|
5578
|
+
export function createPromptResponseFormatPrompts3ToJSON(
|
|
5579
|
+
createPromptResponseFormatPrompts3: CreatePromptResponseFormatPrompts3,
|
|
5523
5580
|
): string {
|
|
5524
5581
|
return JSON.stringify(
|
|
5525
|
-
|
|
5526
|
-
|
|
5582
|
+
CreatePromptResponseFormatPrompts3$outboundSchema.parse(
|
|
5583
|
+
createPromptResponseFormatPrompts3,
|
|
5527
5584
|
),
|
|
5528
5585
|
);
|
|
5529
5586
|
}
|
|
5530
5587
|
|
|
5531
|
-
export function
|
|
5588
|
+
export function createPromptResponseFormatPrompts3FromJSON(
|
|
5532
5589
|
jsonString: string,
|
|
5533
|
-
): SafeParseResult<
|
|
5590
|
+
): SafeParseResult<CreatePromptResponseFormatPrompts3, SDKValidationError> {
|
|
5534
5591
|
return safeParse(
|
|
5535
5592
|
jsonString,
|
|
5536
|
-
(x) =>
|
|
5537
|
-
|
|
5593
|
+
(x) =>
|
|
5594
|
+
CreatePromptResponseFormatPrompts3$inboundSchema.parse(JSON.parse(x)),
|
|
5595
|
+
`Failed to parse 'CreatePromptResponseFormatPrompts3' from JSON`,
|
|
5538
5596
|
);
|
|
5539
5597
|
}
|
|
5540
5598
|
|
|
5541
5599
|
/** @internal */
|
|
5542
|
-
export const
|
|
5600
|
+
export const CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema:
|
|
5543
5601
|
z.ZodNativeEnum<
|
|
5544
|
-
typeof
|
|
5545
|
-
> = z.nativeEnum(
|
|
5602
|
+
typeof CreatePromptResponseFormatPromptsRequestRequestBodyPromptType
|
|
5603
|
+
> = z.nativeEnum(
|
|
5604
|
+
CreatePromptResponseFormatPromptsRequestRequestBodyPromptType,
|
|
5605
|
+
);
|
|
5546
5606
|
|
|
5547
5607
|
/** @internal */
|
|
5548
|
-
export const
|
|
5608
|
+
export const CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$outboundSchema:
|
|
5549
5609
|
z.ZodNativeEnum<
|
|
5550
|
-
typeof
|
|
5551
|
-
> =
|
|
5610
|
+
typeof CreatePromptResponseFormatPromptsRequestRequestBodyPromptType
|
|
5611
|
+
> =
|
|
5612
|
+
CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema;
|
|
5552
5613
|
|
|
5553
5614
|
/**
|
|
5554
5615
|
* @internal
|
|
5555
5616
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5556
5617
|
*/
|
|
5557
|
-
export namespace
|
|
5558
|
-
/** @deprecated use `
|
|
5618
|
+
export namespace CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$ {
|
|
5619
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema` instead. */
|
|
5559
5620
|
export const inboundSchema =
|
|
5560
|
-
|
|
5561
|
-
/** @deprecated use `
|
|
5621
|
+
CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema;
|
|
5622
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$outboundSchema` instead. */
|
|
5562
5623
|
export const outboundSchema =
|
|
5563
|
-
|
|
5624
|
+
CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$outboundSchema;
|
|
5564
5625
|
}
|
|
5565
5626
|
|
|
5566
5627
|
/** @internal */
|
|
5567
|
-
export const
|
|
5568
|
-
|
|
5628
|
+
export const CreatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<
|
|
5629
|
+
CreatePromptResponseFormatPrompts2,
|
|
5569
5630
|
z.ZodTypeDef,
|
|
5570
5631
|
unknown
|
|
5571
5632
|
> = z.object({
|
|
5572
|
-
type:
|
|
5633
|
+
type:
|
|
5634
|
+
CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$inboundSchema,
|
|
5573
5635
|
});
|
|
5574
5636
|
|
|
5575
5637
|
/** @internal */
|
|
5576
|
-
export type
|
|
5638
|
+
export type CreatePromptResponseFormatPrompts2$Outbound = {
|
|
5577
5639
|
type: string;
|
|
5578
5640
|
};
|
|
5579
5641
|
|
|
5580
5642
|
/** @internal */
|
|
5581
|
-
export const
|
|
5582
|
-
|
|
5643
|
+
export const CreatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<
|
|
5644
|
+
CreatePromptResponseFormatPrompts2$Outbound,
|
|
5583
5645
|
z.ZodTypeDef,
|
|
5584
|
-
|
|
5646
|
+
CreatePromptResponseFormatPrompts2
|
|
5585
5647
|
> = z.object({
|
|
5586
|
-
type:
|
|
5648
|
+
type:
|
|
5649
|
+
CreatePromptResponseFormatPromptsRequestRequestBodyPromptType$outboundSchema,
|
|
5587
5650
|
});
|
|
5588
5651
|
|
|
5589
5652
|
/**
|
|
5590
5653
|
* @internal
|
|
5591
5654
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5592
5655
|
*/
|
|
5593
|
-
export namespace
|
|
5594
|
-
/** @deprecated use `
|
|
5595
|
-
export const inboundSchema =
|
|
5596
|
-
/** @deprecated use `
|
|
5597
|
-
export const outboundSchema =
|
|
5598
|
-
|
|
5599
|
-
|
|
5656
|
+
export namespace CreatePromptResponseFormatPrompts2$ {
|
|
5657
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts2$inboundSchema` instead. */
|
|
5658
|
+
export const inboundSchema = CreatePromptResponseFormatPrompts2$inboundSchema;
|
|
5659
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts2$outboundSchema` instead. */
|
|
5660
|
+
export const outboundSchema =
|
|
5661
|
+
CreatePromptResponseFormatPrompts2$outboundSchema;
|
|
5662
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts2$Outbound` instead. */
|
|
5663
|
+
export type Outbound = CreatePromptResponseFormatPrompts2$Outbound;
|
|
5600
5664
|
}
|
|
5601
5665
|
|
|
5602
|
-
export function
|
|
5603
|
-
|
|
5666
|
+
export function createPromptResponseFormatPrompts2ToJSON(
|
|
5667
|
+
createPromptResponseFormatPrompts2: CreatePromptResponseFormatPrompts2,
|
|
5604
5668
|
): string {
|
|
5605
5669
|
return JSON.stringify(
|
|
5606
|
-
|
|
5607
|
-
|
|
5670
|
+
CreatePromptResponseFormatPrompts2$outboundSchema.parse(
|
|
5671
|
+
createPromptResponseFormatPrompts2,
|
|
5608
5672
|
),
|
|
5609
5673
|
);
|
|
5610
5674
|
}
|
|
5611
5675
|
|
|
5612
|
-
export function
|
|
5676
|
+
export function createPromptResponseFormatPrompts2FromJSON(
|
|
5613
5677
|
jsonString: string,
|
|
5614
|
-
): SafeParseResult<
|
|
5678
|
+
): SafeParseResult<CreatePromptResponseFormatPrompts2, SDKValidationError> {
|
|
5615
5679
|
return safeParse(
|
|
5616
5680
|
jsonString,
|
|
5617
|
-
(x) =>
|
|
5618
|
-
|
|
5681
|
+
(x) =>
|
|
5682
|
+
CreatePromptResponseFormatPrompts2$inboundSchema.parse(JSON.parse(x)),
|
|
5683
|
+
`Failed to parse 'CreatePromptResponseFormatPrompts2' from JSON`,
|
|
5619
5684
|
);
|
|
5620
5685
|
}
|
|
5621
5686
|
|
|
5622
5687
|
/** @internal */
|
|
5623
|
-
export const
|
|
5624
|
-
z.ZodNativeEnum<
|
|
5625
|
-
|
|
5688
|
+
export const CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema:
|
|
5689
|
+
z.ZodNativeEnum<
|
|
5690
|
+
typeof CreatePromptResponseFormatPromptsRequestRequestBodyType
|
|
5691
|
+
> = z.nativeEnum(CreatePromptResponseFormatPromptsRequestRequestBodyType);
|
|
5626
5692
|
|
|
5627
5693
|
/** @internal */
|
|
5628
|
-
export const
|
|
5629
|
-
z.ZodNativeEnum<
|
|
5630
|
-
|
|
5694
|
+
export const CreatePromptResponseFormatPromptsRequestRequestBodyType$outboundSchema:
|
|
5695
|
+
z.ZodNativeEnum<
|
|
5696
|
+
typeof CreatePromptResponseFormatPromptsRequestRequestBodyType
|
|
5697
|
+
> = CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema;
|
|
5631
5698
|
|
|
5632
5699
|
/**
|
|
5633
5700
|
* @internal
|
|
5634
5701
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5635
5702
|
*/
|
|
5636
|
-
export namespace
|
|
5637
|
-
/** @deprecated use `
|
|
5703
|
+
export namespace CreatePromptResponseFormatPromptsRequestRequestBodyType$ {
|
|
5704
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema` instead. */
|
|
5638
5705
|
export const inboundSchema =
|
|
5639
|
-
|
|
5640
|
-
/** @deprecated use `
|
|
5706
|
+
CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema;
|
|
5707
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsRequestRequestBodyType$outboundSchema` instead. */
|
|
5641
5708
|
export const outboundSchema =
|
|
5642
|
-
|
|
5709
|
+
CreatePromptResponseFormatPromptsRequestRequestBodyType$outboundSchema;
|
|
5643
5710
|
}
|
|
5644
5711
|
|
|
5645
5712
|
/** @internal */
|
|
5646
|
-
export const
|
|
5647
|
-
|
|
5713
|
+
export const CreatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
|
|
5714
|
+
CreatePromptResponseFormatPrompts1,
|
|
5648
5715
|
z.ZodTypeDef,
|
|
5649
5716
|
unknown
|
|
5650
5717
|
> = z.object({
|
|
5651
|
-
type:
|
|
5718
|
+
type: CreatePromptResponseFormatPromptsRequestRequestBodyType$inboundSchema,
|
|
5652
5719
|
});
|
|
5653
5720
|
|
|
5654
5721
|
/** @internal */
|
|
5655
|
-
export type
|
|
5722
|
+
export type CreatePromptResponseFormatPrompts1$Outbound = {
|
|
5656
5723
|
type: string;
|
|
5657
5724
|
};
|
|
5658
5725
|
|
|
5659
5726
|
/** @internal */
|
|
5660
|
-
export const
|
|
5661
|
-
|
|
5727
|
+
export const CreatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
|
|
5728
|
+
CreatePromptResponseFormatPrompts1$Outbound,
|
|
5662
5729
|
z.ZodTypeDef,
|
|
5663
|
-
|
|
5730
|
+
CreatePromptResponseFormatPrompts1
|
|
5664
5731
|
> = z.object({
|
|
5665
|
-
type:
|
|
5732
|
+
type: CreatePromptResponseFormatPromptsRequestRequestBodyType$outboundSchema,
|
|
5666
5733
|
});
|
|
5667
5734
|
|
|
5668
5735
|
/**
|
|
5669
5736
|
* @internal
|
|
5670
5737
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5671
5738
|
*/
|
|
5672
|
-
export namespace
|
|
5673
|
-
/** @deprecated use `
|
|
5674
|
-
export const inboundSchema =
|
|
5675
|
-
/** @deprecated use `
|
|
5676
|
-
export const outboundSchema =
|
|
5677
|
-
|
|
5678
|
-
|
|
5739
|
+
export namespace CreatePromptResponseFormatPrompts1$ {
|
|
5740
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts1$inboundSchema` instead. */
|
|
5741
|
+
export const inboundSchema = CreatePromptResponseFormatPrompts1$inboundSchema;
|
|
5742
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts1$outboundSchema` instead. */
|
|
5743
|
+
export const outboundSchema =
|
|
5744
|
+
CreatePromptResponseFormatPrompts1$outboundSchema;
|
|
5745
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts1$Outbound` instead. */
|
|
5746
|
+
export type Outbound = CreatePromptResponseFormatPrompts1$Outbound;
|
|
5679
5747
|
}
|
|
5680
5748
|
|
|
5681
|
-
export function
|
|
5682
|
-
|
|
5749
|
+
export function createPromptResponseFormatPrompts1ToJSON(
|
|
5750
|
+
createPromptResponseFormatPrompts1: CreatePromptResponseFormatPrompts1,
|
|
5683
5751
|
): string {
|
|
5684
5752
|
return JSON.stringify(
|
|
5685
|
-
|
|
5686
|
-
|
|
5753
|
+
CreatePromptResponseFormatPrompts1$outboundSchema.parse(
|
|
5754
|
+
createPromptResponseFormatPrompts1,
|
|
5687
5755
|
),
|
|
5688
5756
|
);
|
|
5689
5757
|
}
|
|
5690
5758
|
|
|
5691
|
-
export function
|
|
5759
|
+
export function createPromptResponseFormatPrompts1FromJSON(
|
|
5692
5760
|
jsonString: string,
|
|
5693
|
-
): SafeParseResult<
|
|
5761
|
+
): SafeParseResult<CreatePromptResponseFormatPrompts1, SDKValidationError> {
|
|
5694
5762
|
return safeParse(
|
|
5695
5763
|
jsonString,
|
|
5696
|
-
(x) =>
|
|
5697
|
-
|
|
5764
|
+
(x) =>
|
|
5765
|
+
CreatePromptResponseFormatPrompts1$inboundSchema.parse(JSON.parse(x)),
|
|
5766
|
+
`Failed to parse 'CreatePromptResponseFormatPrompts1' from JSON`,
|
|
5698
5767
|
);
|
|
5699
5768
|
}
|
|
5700
5769
|
|
|
5701
5770
|
/** @internal */
|
|
5702
|
-
export const
|
|
5703
|
-
|
|
5771
|
+
export const CreatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
|
|
5772
|
+
CreatePromptPromptsResponseFormat,
|
|
5704
5773
|
z.ZodTypeDef,
|
|
5705
5774
|
unknown
|
|
5706
5775
|
> = z.union([
|
|
5707
|
-
z.lazy(() =>
|
|
5708
|
-
z.lazy(() =>
|
|
5709
|
-
z.lazy(() =>
|
|
5776
|
+
z.lazy(() => CreatePromptResponseFormatPrompts3$inboundSchema),
|
|
5777
|
+
z.lazy(() => CreatePromptResponseFormatPrompts1$inboundSchema),
|
|
5778
|
+
z.lazy(() => CreatePromptResponseFormatPrompts2$inboundSchema),
|
|
5710
5779
|
]);
|
|
5711
5780
|
|
|
5712
5781
|
/** @internal */
|
|
5713
|
-
export type
|
|
5714
|
-
|
|
|
5715
|
-
|
|
|
5716
|
-
|
|
|
5782
|
+
export type CreatePromptPromptsResponseFormat$Outbound =
|
|
5783
|
+
| CreatePromptResponseFormatPrompts3$Outbound
|
|
5784
|
+
| CreatePromptResponseFormatPrompts1$Outbound
|
|
5785
|
+
| CreatePromptResponseFormatPrompts2$Outbound;
|
|
5717
5786
|
|
|
5718
5787
|
/** @internal */
|
|
5719
|
-
export const
|
|
5720
|
-
|
|
5788
|
+
export const CreatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
5789
|
+
CreatePromptPromptsResponseFormat$Outbound,
|
|
5721
5790
|
z.ZodTypeDef,
|
|
5722
|
-
|
|
5791
|
+
CreatePromptPromptsResponseFormat
|
|
5723
5792
|
> = z.union([
|
|
5724
|
-
z.lazy(() =>
|
|
5725
|
-
z.lazy(() =>
|
|
5726
|
-
z.lazy(() =>
|
|
5793
|
+
z.lazy(() => CreatePromptResponseFormatPrompts3$outboundSchema),
|
|
5794
|
+
z.lazy(() => CreatePromptResponseFormatPrompts1$outboundSchema),
|
|
5795
|
+
z.lazy(() => CreatePromptResponseFormatPrompts2$outboundSchema),
|
|
5727
5796
|
]);
|
|
5728
5797
|
|
|
5729
5798
|
/**
|
|
5730
5799
|
* @internal
|
|
5731
5800
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5732
5801
|
*/
|
|
5733
|
-
export namespace
|
|
5734
|
-
/** @deprecated use `
|
|
5735
|
-
export const inboundSchema =
|
|
5736
|
-
/** @deprecated use `
|
|
5737
|
-
export const outboundSchema =
|
|
5738
|
-
|
|
5739
|
-
|
|
5802
|
+
export namespace CreatePromptPromptsResponseFormat$ {
|
|
5803
|
+
/** @deprecated use `CreatePromptPromptsResponseFormat$inboundSchema` instead. */
|
|
5804
|
+
export const inboundSchema = CreatePromptPromptsResponseFormat$inboundSchema;
|
|
5805
|
+
/** @deprecated use `CreatePromptPromptsResponseFormat$outboundSchema` instead. */
|
|
5806
|
+
export const outboundSchema =
|
|
5807
|
+
CreatePromptPromptsResponseFormat$outboundSchema;
|
|
5808
|
+
/** @deprecated use `CreatePromptPromptsResponseFormat$Outbound` instead. */
|
|
5809
|
+
export type Outbound = CreatePromptPromptsResponseFormat$Outbound;
|
|
5740
5810
|
}
|
|
5741
5811
|
|
|
5742
|
-
export function
|
|
5743
|
-
|
|
5812
|
+
export function createPromptPromptsResponseFormatToJSON(
|
|
5813
|
+
createPromptPromptsResponseFormat: CreatePromptPromptsResponseFormat,
|
|
5744
5814
|
): string {
|
|
5745
5815
|
return JSON.stringify(
|
|
5746
|
-
|
|
5816
|
+
CreatePromptPromptsResponseFormat$outboundSchema.parse(
|
|
5817
|
+
createPromptPromptsResponseFormat,
|
|
5818
|
+
),
|
|
5747
5819
|
);
|
|
5748
5820
|
}
|
|
5749
5821
|
|
|
5750
|
-
export function
|
|
5822
|
+
export function createPromptPromptsResponseFormatFromJSON(
|
|
5751
5823
|
jsonString: string,
|
|
5752
|
-
): SafeParseResult<
|
|
5824
|
+
): SafeParseResult<CreatePromptPromptsResponseFormat, SDKValidationError> {
|
|
5753
5825
|
return safeParse(
|
|
5754
5826
|
jsonString,
|
|
5755
|
-
(x) =>
|
|
5756
|
-
`Failed to parse '
|
|
5827
|
+
(x) => CreatePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
5828
|
+
`Failed to parse 'CreatePromptPromptsResponseFormat' from JSON`,
|
|
5757
5829
|
);
|
|
5758
5830
|
}
|
|
5759
5831
|
|
|
@@ -5775,9 +5847,9 @@ export const PromptInput$inboundSchema: z.ZodType<
|
|
|
5775
5847
|
temperature: z.nullable(z.number()).optional(),
|
|
5776
5848
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
5777
5849
|
response_format: z.union([
|
|
5778
|
-
z.lazy(() =>
|
|
5779
|
-
z.lazy(() =>
|
|
5780
|
-
z.lazy(() =>
|
|
5850
|
+
z.lazy(() => CreatePromptResponseFormatPrompts3$inboundSchema),
|
|
5851
|
+
z.lazy(() => CreatePromptResponseFormatPrompts1$inboundSchema),
|
|
5852
|
+
z.lazy(() => CreatePromptResponseFormatPrompts2$inboundSchema),
|
|
5781
5853
|
]).optional(),
|
|
5782
5854
|
}).transform((v) => {
|
|
5783
5855
|
return remap$(v, {
|
|
@@ -5798,9 +5870,9 @@ export type PromptInput$Outbound = {
|
|
|
5798
5870
|
temperature?: number | null | undefined;
|
|
5799
5871
|
max_tokens?: number | null | undefined;
|
|
5800
5872
|
response_format?:
|
|
5801
|
-
|
|
|
5802
|
-
|
|
|
5803
|
-
|
|
|
5873
|
+
| CreatePromptResponseFormatPrompts3$Outbound
|
|
5874
|
+
| CreatePromptResponseFormatPrompts1$Outbound
|
|
5875
|
+
| CreatePromptResponseFormatPrompts2$Outbound
|
|
5804
5876
|
| undefined;
|
|
5805
5877
|
};
|
|
5806
5878
|
|
|
@@ -5822,9 +5894,9 @@ export const PromptInput$outboundSchema: z.ZodType<
|
|
|
5822
5894
|
temperature: z.nullable(z.number()).optional(),
|
|
5823
5895
|
maxTokens: z.nullable(z.number().int()).optional(),
|
|
5824
5896
|
responseFormat: z.union([
|
|
5825
|
-
z.lazy(() =>
|
|
5826
|
-
z.lazy(() =>
|
|
5827
|
-
z.lazy(() =>
|
|
5897
|
+
z.lazy(() => CreatePromptResponseFormatPrompts3$outboundSchema),
|
|
5898
|
+
z.lazy(() => CreatePromptResponseFormatPrompts1$outboundSchema),
|
|
5899
|
+
z.lazy(() => CreatePromptResponseFormatPrompts2$outboundSchema),
|
|
5828
5900
|
]).optional(),
|
|
5829
5901
|
}).transform((v) => {
|
|
5830
5902
|
return remap$(v, {
|
|
@@ -6094,62 +6166,68 @@ export namespace CreatePromptResponseFormatPromptsResponse200ApplicationJSONType
|
|
|
6094
6166
|
}
|
|
6095
6167
|
|
|
6096
6168
|
/** @internal */
|
|
6097
|
-
export const
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
|
|
6104
|
-
});
|
|
6169
|
+
export const CreatePromptResponseFormatPromptsResponse3$inboundSchema:
|
|
6170
|
+
z.ZodType<CreatePromptResponseFormatPromptsResponse3, z.ZodTypeDef, unknown> =
|
|
6171
|
+
z.object({
|
|
6172
|
+
type:
|
|
6173
|
+
CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
|
|
6174
|
+
});
|
|
6105
6175
|
|
|
6106
6176
|
/** @internal */
|
|
6107
|
-
export type
|
|
6177
|
+
export type CreatePromptResponseFormatPromptsResponse3$Outbound = {
|
|
6108
6178
|
type: string;
|
|
6109
6179
|
};
|
|
6110
6180
|
|
|
6111
6181
|
/** @internal */
|
|
6112
|
-
export const
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6182
|
+
export const CreatePromptResponseFormatPromptsResponse3$outboundSchema:
|
|
6183
|
+
z.ZodType<
|
|
6184
|
+
CreatePromptResponseFormatPromptsResponse3$Outbound,
|
|
6185
|
+
z.ZodTypeDef,
|
|
6186
|
+
CreatePromptResponseFormatPromptsResponse3
|
|
6187
|
+
> = z.object({
|
|
6188
|
+
type:
|
|
6189
|
+
CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema,
|
|
6190
|
+
});
|
|
6120
6191
|
|
|
6121
6192
|
/**
|
|
6122
6193
|
* @internal
|
|
6123
6194
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6124
6195
|
*/
|
|
6125
|
-
export namespace
|
|
6126
|
-
/** @deprecated use `
|
|
6127
|
-
export const inboundSchema =
|
|
6128
|
-
|
|
6196
|
+
export namespace CreatePromptResponseFormatPromptsResponse3$ {
|
|
6197
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse3$inboundSchema` instead. */
|
|
6198
|
+
export const inboundSchema =
|
|
6199
|
+
CreatePromptResponseFormatPromptsResponse3$inboundSchema;
|
|
6200
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse3$outboundSchema` instead. */
|
|
6129
6201
|
export const outboundSchema =
|
|
6130
|
-
|
|
6131
|
-
/** @deprecated use `
|
|
6132
|
-
export type Outbound =
|
|
6202
|
+
CreatePromptResponseFormatPromptsResponse3$outboundSchema;
|
|
6203
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse3$Outbound` instead. */
|
|
6204
|
+
export type Outbound = CreatePromptResponseFormatPromptsResponse3$Outbound;
|
|
6133
6205
|
}
|
|
6134
6206
|
|
|
6135
|
-
export function
|
|
6136
|
-
|
|
6207
|
+
export function createPromptResponseFormatPromptsResponse3ToJSON(
|
|
6208
|
+
createPromptResponseFormatPromptsResponse3:
|
|
6209
|
+
CreatePromptResponseFormatPromptsResponse3,
|
|
6137
6210
|
): string {
|
|
6138
6211
|
return JSON.stringify(
|
|
6139
|
-
|
|
6140
|
-
|
|
6212
|
+
CreatePromptResponseFormatPromptsResponse3$outboundSchema.parse(
|
|
6213
|
+
createPromptResponseFormatPromptsResponse3,
|
|
6141
6214
|
),
|
|
6142
6215
|
);
|
|
6143
6216
|
}
|
|
6144
6217
|
|
|
6145
|
-
export function
|
|
6218
|
+
export function createPromptResponseFormatPromptsResponse3FromJSON(
|
|
6146
6219
|
jsonString: string,
|
|
6147
|
-
): SafeParseResult<
|
|
6220
|
+
): SafeParseResult<
|
|
6221
|
+
CreatePromptResponseFormatPromptsResponse3,
|
|
6222
|
+
SDKValidationError
|
|
6223
|
+
> {
|
|
6148
6224
|
return safeParse(
|
|
6149
6225
|
jsonString,
|
|
6150
6226
|
(x) =>
|
|
6151
|
-
|
|
6152
|
-
|
|
6227
|
+
CreatePromptResponseFormatPromptsResponse3$inboundSchema.parse(
|
|
6228
|
+
JSON.parse(x),
|
|
6229
|
+
),
|
|
6230
|
+
`Failed to parse 'CreatePromptResponseFormatPromptsResponse3' from JSON`,
|
|
6153
6231
|
);
|
|
6154
6232
|
}
|
|
6155
6233
|
|
|
@@ -6177,60 +6255,66 @@ export namespace CreatePromptResponseFormatPromptsResponse200Type$ {
|
|
|
6177
6255
|
}
|
|
6178
6256
|
|
|
6179
6257
|
/** @internal */
|
|
6180
|
-
export const
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
type: CreatePromptResponseFormatPromptsResponse200Type$inboundSchema,
|
|
6186
|
-
});
|
|
6258
|
+
export const CreatePromptResponseFormatPromptsResponse2$inboundSchema:
|
|
6259
|
+
z.ZodType<CreatePromptResponseFormatPromptsResponse2, z.ZodTypeDef, unknown> =
|
|
6260
|
+
z.object({
|
|
6261
|
+
type: CreatePromptResponseFormatPromptsResponse200Type$inboundSchema,
|
|
6262
|
+
});
|
|
6187
6263
|
|
|
6188
6264
|
/** @internal */
|
|
6189
|
-
export type
|
|
6265
|
+
export type CreatePromptResponseFormatPromptsResponse2$Outbound = {
|
|
6190
6266
|
type: string;
|
|
6191
6267
|
};
|
|
6192
6268
|
|
|
6193
6269
|
/** @internal */
|
|
6194
|
-
export const
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6270
|
+
export const CreatePromptResponseFormatPromptsResponse2$outboundSchema:
|
|
6271
|
+
z.ZodType<
|
|
6272
|
+
CreatePromptResponseFormatPromptsResponse2$Outbound,
|
|
6273
|
+
z.ZodTypeDef,
|
|
6274
|
+
CreatePromptResponseFormatPromptsResponse2
|
|
6275
|
+
> = z.object({
|
|
6276
|
+
type: CreatePromptResponseFormatPromptsResponse200Type$outboundSchema,
|
|
6277
|
+
});
|
|
6201
6278
|
|
|
6202
6279
|
/**
|
|
6203
6280
|
* @internal
|
|
6204
6281
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6205
6282
|
*/
|
|
6206
|
-
export namespace
|
|
6207
|
-
/** @deprecated use `
|
|
6208
|
-
export const inboundSchema =
|
|
6209
|
-
|
|
6283
|
+
export namespace CreatePromptResponseFormatPromptsResponse2$ {
|
|
6284
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse2$inboundSchema` instead. */
|
|
6285
|
+
export const inboundSchema =
|
|
6286
|
+
CreatePromptResponseFormatPromptsResponse2$inboundSchema;
|
|
6287
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse2$outboundSchema` instead. */
|
|
6210
6288
|
export const outboundSchema =
|
|
6211
|
-
|
|
6212
|
-
/** @deprecated use `
|
|
6213
|
-
export type Outbound =
|
|
6289
|
+
CreatePromptResponseFormatPromptsResponse2$outboundSchema;
|
|
6290
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse2$Outbound` instead. */
|
|
6291
|
+
export type Outbound = CreatePromptResponseFormatPromptsResponse2$Outbound;
|
|
6214
6292
|
}
|
|
6215
6293
|
|
|
6216
|
-
export function
|
|
6217
|
-
|
|
6294
|
+
export function createPromptResponseFormatPromptsResponse2ToJSON(
|
|
6295
|
+
createPromptResponseFormatPromptsResponse2:
|
|
6296
|
+
CreatePromptResponseFormatPromptsResponse2,
|
|
6218
6297
|
): string {
|
|
6219
6298
|
return JSON.stringify(
|
|
6220
|
-
|
|
6221
|
-
|
|
6299
|
+
CreatePromptResponseFormatPromptsResponse2$outboundSchema.parse(
|
|
6300
|
+
createPromptResponseFormatPromptsResponse2,
|
|
6222
6301
|
),
|
|
6223
6302
|
);
|
|
6224
6303
|
}
|
|
6225
6304
|
|
|
6226
|
-
export function
|
|
6305
|
+
export function createPromptResponseFormatPromptsResponse2FromJSON(
|
|
6227
6306
|
jsonString: string,
|
|
6228
|
-
): SafeParseResult<
|
|
6307
|
+
): SafeParseResult<
|
|
6308
|
+
CreatePromptResponseFormatPromptsResponse2,
|
|
6309
|
+
SDKValidationError
|
|
6310
|
+
> {
|
|
6229
6311
|
return safeParse(
|
|
6230
6312
|
jsonString,
|
|
6231
6313
|
(x) =>
|
|
6232
|
-
|
|
6233
|
-
|
|
6314
|
+
CreatePromptResponseFormatPromptsResponse2$inboundSchema.parse(
|
|
6315
|
+
JSON.parse(x),
|
|
6316
|
+
),
|
|
6317
|
+
`Failed to parse 'CreatePromptResponseFormatPromptsResponse2' from JSON`,
|
|
6234
6318
|
);
|
|
6235
6319
|
}
|
|
6236
6320
|
|
|
@@ -6258,19 +6342,20 @@ export namespace CreatePromptResponseFormatPromptsResponseType$ {
|
|
|
6258
6342
|
}
|
|
6259
6343
|
|
|
6260
6344
|
/** @internal */
|
|
6261
|
-
export const
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6345
|
+
export const CreatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema:
|
|
6346
|
+
z.ZodType<
|
|
6347
|
+
CreatePromptResponseFormatPromptsResponseJsonSchema,
|
|
6348
|
+
z.ZodTypeDef,
|
|
6349
|
+
unknown
|
|
6350
|
+
> = z.object({
|
|
6351
|
+
name: z.string(),
|
|
6352
|
+
description: z.string().optional(),
|
|
6353
|
+
strict: z.boolean().optional(),
|
|
6354
|
+
schema: z.record(z.any()),
|
|
6355
|
+
});
|
|
6271
6356
|
|
|
6272
6357
|
/** @internal */
|
|
6273
|
-
export type
|
|
6358
|
+
export type CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound = {
|
|
6274
6359
|
name: string;
|
|
6275
6360
|
description?: string | undefined;
|
|
6276
6361
|
strict?: boolean | undefined;
|
|
@@ -6278,190 +6363,217 @@ export type CreatePromptResponseFormatJsonSchema$Outbound = {
|
|
|
6278
6363
|
};
|
|
6279
6364
|
|
|
6280
6365
|
/** @internal */
|
|
6281
|
-
export const
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6366
|
+
export const CreatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema:
|
|
6367
|
+
z.ZodType<
|
|
6368
|
+
CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound,
|
|
6369
|
+
z.ZodTypeDef,
|
|
6370
|
+
CreatePromptResponseFormatPromptsResponseJsonSchema
|
|
6371
|
+
> = z.object({
|
|
6372
|
+
name: z.string(),
|
|
6373
|
+
description: z.string().optional(),
|
|
6374
|
+
strict: z.boolean().optional(),
|
|
6375
|
+
schema: z.record(z.any()),
|
|
6376
|
+
});
|
|
6291
6377
|
|
|
6292
6378
|
/**
|
|
6293
6379
|
* @internal
|
|
6294
6380
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6295
6381
|
*/
|
|
6296
|
-
export namespace
|
|
6297
|
-
/** @deprecated use `
|
|
6382
|
+
export namespace CreatePromptResponseFormatPromptsResponseJsonSchema$ {
|
|
6383
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema` instead. */
|
|
6298
6384
|
export const inboundSchema =
|
|
6299
|
-
|
|
6300
|
-
/** @deprecated use `
|
|
6385
|
+
CreatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema;
|
|
6386
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema` instead. */
|
|
6301
6387
|
export const outboundSchema =
|
|
6302
|
-
|
|
6303
|
-
/** @deprecated use `
|
|
6304
|
-
export type Outbound =
|
|
6388
|
+
CreatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema;
|
|
6389
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound` instead. */
|
|
6390
|
+
export type Outbound =
|
|
6391
|
+
CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound;
|
|
6305
6392
|
}
|
|
6306
6393
|
|
|
6307
|
-
export function
|
|
6308
|
-
|
|
6394
|
+
export function createPromptResponseFormatPromptsResponseJsonSchemaToJSON(
|
|
6395
|
+
createPromptResponseFormatPromptsResponseJsonSchema:
|
|
6396
|
+
CreatePromptResponseFormatPromptsResponseJsonSchema,
|
|
6309
6397
|
): string {
|
|
6310
6398
|
return JSON.stringify(
|
|
6311
|
-
|
|
6312
|
-
|
|
6399
|
+
CreatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema.parse(
|
|
6400
|
+
createPromptResponseFormatPromptsResponseJsonSchema,
|
|
6313
6401
|
),
|
|
6314
6402
|
);
|
|
6315
6403
|
}
|
|
6316
6404
|
|
|
6317
|
-
export function
|
|
6405
|
+
export function createPromptResponseFormatPromptsResponseJsonSchemaFromJSON(
|
|
6318
6406
|
jsonString: string,
|
|
6319
|
-
): SafeParseResult<
|
|
6407
|
+
): SafeParseResult<
|
|
6408
|
+
CreatePromptResponseFormatPromptsResponseJsonSchema,
|
|
6409
|
+
SDKValidationError
|
|
6410
|
+
> {
|
|
6320
6411
|
return safeParse(
|
|
6321
6412
|
jsonString,
|
|
6322
6413
|
(x) =>
|
|
6323
|
-
|
|
6324
|
-
|
|
6414
|
+
CreatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema.parse(
|
|
6415
|
+
JSON.parse(x),
|
|
6416
|
+
),
|
|
6417
|
+
`Failed to parse 'CreatePromptResponseFormatPromptsResponseJsonSchema' from JSON`,
|
|
6325
6418
|
);
|
|
6326
6419
|
}
|
|
6327
6420
|
|
|
6328
6421
|
/** @internal */
|
|
6329
|
-
export const
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
}).transform((v) => {
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
});
|
|
6422
|
+
export const CreatePromptResponseFormatPromptsResponse1$inboundSchema:
|
|
6423
|
+
z.ZodType<CreatePromptResponseFormatPromptsResponse1, z.ZodTypeDef, unknown> =
|
|
6424
|
+
z.object({
|
|
6425
|
+
type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
|
|
6426
|
+
json_schema: z.lazy(() =>
|
|
6427
|
+
CreatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema
|
|
6428
|
+
),
|
|
6429
|
+
}).transform((v) => {
|
|
6430
|
+
return remap$(v, {
|
|
6431
|
+
"json_schema": "jsonSchema",
|
|
6432
|
+
});
|
|
6433
|
+
});
|
|
6341
6434
|
|
|
6342
6435
|
/** @internal */
|
|
6343
|
-
export type
|
|
6436
|
+
export type CreatePromptResponseFormatPromptsResponse1$Outbound = {
|
|
6344
6437
|
type: string;
|
|
6345
|
-
json_schema:
|
|
6438
|
+
json_schema: CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound;
|
|
6346
6439
|
};
|
|
6347
6440
|
|
|
6348
6441
|
/** @internal */
|
|
6349
|
-
export const
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6442
|
+
export const CreatePromptResponseFormatPromptsResponse1$outboundSchema:
|
|
6443
|
+
z.ZodType<
|
|
6444
|
+
CreatePromptResponseFormatPromptsResponse1$Outbound,
|
|
6445
|
+
z.ZodTypeDef,
|
|
6446
|
+
CreatePromptResponseFormatPromptsResponse1
|
|
6447
|
+
> = z.object({
|
|
6448
|
+
type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
|
|
6449
|
+
jsonSchema: z.lazy(() =>
|
|
6450
|
+
CreatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema
|
|
6451
|
+
),
|
|
6452
|
+
}).transform((v) => {
|
|
6453
|
+
return remap$(v, {
|
|
6454
|
+
jsonSchema: "json_schema",
|
|
6455
|
+
});
|
|
6359
6456
|
});
|
|
6360
|
-
});
|
|
6361
6457
|
|
|
6362
6458
|
/**
|
|
6363
6459
|
* @internal
|
|
6364
6460
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6365
6461
|
*/
|
|
6366
|
-
export namespace
|
|
6367
|
-
/** @deprecated use `
|
|
6368
|
-
export const inboundSchema =
|
|
6369
|
-
|
|
6462
|
+
export namespace CreatePromptResponseFormatPromptsResponse1$ {
|
|
6463
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse1$inboundSchema` instead. */
|
|
6464
|
+
export const inboundSchema =
|
|
6465
|
+
CreatePromptResponseFormatPromptsResponse1$inboundSchema;
|
|
6466
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse1$outboundSchema` instead. */
|
|
6370
6467
|
export const outboundSchema =
|
|
6371
|
-
|
|
6372
|
-
/** @deprecated use `
|
|
6373
|
-
export type Outbound =
|
|
6468
|
+
CreatePromptResponseFormatPromptsResponse1$outboundSchema;
|
|
6469
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse1$Outbound` instead. */
|
|
6470
|
+
export type Outbound = CreatePromptResponseFormatPromptsResponse1$Outbound;
|
|
6374
6471
|
}
|
|
6375
6472
|
|
|
6376
|
-
export function
|
|
6377
|
-
|
|
6473
|
+
export function createPromptResponseFormatPromptsResponse1ToJSON(
|
|
6474
|
+
createPromptResponseFormatPromptsResponse1:
|
|
6475
|
+
CreatePromptResponseFormatPromptsResponse1,
|
|
6378
6476
|
): string {
|
|
6379
6477
|
return JSON.stringify(
|
|
6380
|
-
|
|
6381
|
-
|
|
6478
|
+
CreatePromptResponseFormatPromptsResponse1$outboundSchema.parse(
|
|
6479
|
+
createPromptResponseFormatPromptsResponse1,
|
|
6382
6480
|
),
|
|
6383
6481
|
);
|
|
6384
6482
|
}
|
|
6385
6483
|
|
|
6386
|
-
export function
|
|
6484
|
+
export function createPromptResponseFormatPromptsResponse1FromJSON(
|
|
6387
6485
|
jsonString: string,
|
|
6388
|
-
): SafeParseResult<
|
|
6486
|
+
): SafeParseResult<
|
|
6487
|
+
CreatePromptResponseFormatPromptsResponse1,
|
|
6488
|
+
SDKValidationError
|
|
6489
|
+
> {
|
|
6389
6490
|
return safeParse(
|
|
6390
6491
|
jsonString,
|
|
6391
6492
|
(x) =>
|
|
6392
|
-
|
|
6393
|
-
|
|
6493
|
+
CreatePromptResponseFormatPromptsResponse1$inboundSchema.parse(
|
|
6494
|
+
JSON.parse(x),
|
|
6495
|
+
),
|
|
6496
|
+
`Failed to parse 'CreatePromptResponseFormatPromptsResponse1' from JSON`,
|
|
6394
6497
|
);
|
|
6395
6498
|
}
|
|
6396
6499
|
|
|
6397
6500
|
/** @internal */
|
|
6398
|
-
export const
|
|
6399
|
-
|
|
6501
|
+
export const CreatePromptPromptsResponseResponseFormat$inboundSchema: z.ZodType<
|
|
6502
|
+
CreatePromptPromptsResponseResponseFormat,
|
|
6400
6503
|
z.ZodTypeDef,
|
|
6401
6504
|
unknown
|
|
6402
6505
|
> = z.union([
|
|
6403
|
-
z.lazy(() =>
|
|
6404
|
-
z.lazy(() =>
|
|
6405
|
-
z.lazy(() =>
|
|
6506
|
+
z.lazy(() => CreatePromptResponseFormatPromptsResponse1$inboundSchema),
|
|
6507
|
+
z.lazy(() => CreatePromptResponseFormatPromptsResponse2$inboundSchema),
|
|
6508
|
+
z.lazy(() => CreatePromptResponseFormatPromptsResponse3$inboundSchema),
|
|
6406
6509
|
CreatePromptResponseFormat4$inboundSchema,
|
|
6407
6510
|
CreatePromptResponseFormat5$inboundSchema,
|
|
6408
6511
|
CreatePromptResponseFormat6$inboundSchema,
|
|
6409
6512
|
]);
|
|
6410
6513
|
|
|
6411
6514
|
/** @internal */
|
|
6412
|
-
export type
|
|
6413
|
-
|
|
|
6414
|
-
|
|
|
6415
|
-
|
|
|
6515
|
+
export type CreatePromptPromptsResponseResponseFormat$Outbound =
|
|
6516
|
+
| CreatePromptResponseFormatPromptsResponse1$Outbound
|
|
6517
|
+
| CreatePromptResponseFormatPromptsResponse2$Outbound
|
|
6518
|
+
| CreatePromptResponseFormatPromptsResponse3$Outbound
|
|
6416
6519
|
| string
|
|
6417
6520
|
| string
|
|
6418
6521
|
| string;
|
|
6419
6522
|
|
|
6420
6523
|
/** @internal */
|
|
6421
|
-
export const
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
z.
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6524
|
+
export const CreatePromptPromptsResponseResponseFormat$outboundSchema:
|
|
6525
|
+
z.ZodType<
|
|
6526
|
+
CreatePromptPromptsResponseResponseFormat$Outbound,
|
|
6527
|
+
z.ZodTypeDef,
|
|
6528
|
+
CreatePromptPromptsResponseResponseFormat
|
|
6529
|
+
> = z.union([
|
|
6530
|
+
z.lazy(() => CreatePromptResponseFormatPromptsResponse1$outboundSchema),
|
|
6531
|
+
z.lazy(() => CreatePromptResponseFormatPromptsResponse2$outboundSchema),
|
|
6532
|
+
z.lazy(() => CreatePromptResponseFormatPromptsResponse3$outboundSchema),
|
|
6533
|
+
CreatePromptResponseFormat4$outboundSchema,
|
|
6534
|
+
CreatePromptResponseFormat5$outboundSchema,
|
|
6535
|
+
CreatePromptResponseFormat6$outboundSchema,
|
|
6536
|
+
]);
|
|
6433
6537
|
|
|
6434
6538
|
/**
|
|
6435
6539
|
* @internal
|
|
6436
6540
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6437
6541
|
*/
|
|
6438
|
-
export namespace
|
|
6439
|
-
/** @deprecated use `
|
|
6440
|
-
export const inboundSchema =
|
|
6441
|
-
|
|
6542
|
+
export namespace CreatePromptPromptsResponseResponseFormat$ {
|
|
6543
|
+
/** @deprecated use `CreatePromptPromptsResponseResponseFormat$inboundSchema` instead. */
|
|
6544
|
+
export const inboundSchema =
|
|
6545
|
+
CreatePromptPromptsResponseResponseFormat$inboundSchema;
|
|
6546
|
+
/** @deprecated use `CreatePromptPromptsResponseResponseFormat$outboundSchema` instead. */
|
|
6442
6547
|
export const outboundSchema =
|
|
6443
|
-
|
|
6444
|
-
/** @deprecated use `
|
|
6445
|
-
export type Outbound =
|
|
6548
|
+
CreatePromptPromptsResponseResponseFormat$outboundSchema;
|
|
6549
|
+
/** @deprecated use `CreatePromptPromptsResponseResponseFormat$Outbound` instead. */
|
|
6550
|
+
export type Outbound = CreatePromptPromptsResponseResponseFormat$Outbound;
|
|
6446
6551
|
}
|
|
6447
6552
|
|
|
6448
|
-
export function
|
|
6449
|
-
|
|
6553
|
+
export function createPromptPromptsResponseResponseFormatToJSON(
|
|
6554
|
+
createPromptPromptsResponseResponseFormat:
|
|
6555
|
+
CreatePromptPromptsResponseResponseFormat,
|
|
6450
6556
|
): string {
|
|
6451
6557
|
return JSON.stringify(
|
|
6452
|
-
|
|
6453
|
-
|
|
6558
|
+
CreatePromptPromptsResponseResponseFormat$outboundSchema.parse(
|
|
6559
|
+
createPromptPromptsResponseResponseFormat,
|
|
6454
6560
|
),
|
|
6455
6561
|
);
|
|
6456
6562
|
}
|
|
6457
6563
|
|
|
6458
|
-
export function
|
|
6564
|
+
export function createPromptPromptsResponseResponseFormatFromJSON(
|
|
6459
6565
|
jsonString: string,
|
|
6460
|
-
): SafeParseResult<
|
|
6566
|
+
): SafeParseResult<
|
|
6567
|
+
CreatePromptPromptsResponseResponseFormat,
|
|
6568
|
+
SDKValidationError
|
|
6569
|
+
> {
|
|
6461
6570
|
return safeParse(
|
|
6462
6571
|
jsonString,
|
|
6463
|
-
(x) =>
|
|
6464
|
-
|
|
6572
|
+
(x) =>
|
|
6573
|
+
CreatePromptPromptsResponseResponseFormat$inboundSchema.parse(
|
|
6574
|
+
JSON.parse(x),
|
|
6575
|
+
),
|
|
6576
|
+
`Failed to parse 'CreatePromptPromptsResponseResponseFormat' from JSON`,
|
|
6465
6577
|
);
|
|
6466
6578
|
}
|
|
6467
6579
|
|
|
@@ -6569,9 +6681,9 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
6569
6681
|
style: z.string().optional(),
|
|
6570
6682
|
responseFormat: z.nullable(
|
|
6571
6683
|
z.union([
|
|
6572
|
-
z.lazy(() =>
|
|
6573
|
-
z.lazy(() =>
|
|
6574
|
-
z.lazy(() =>
|
|
6684
|
+
z.lazy(() => CreatePromptResponseFormatPromptsResponse1$inboundSchema),
|
|
6685
|
+
z.lazy(() => CreatePromptResponseFormatPromptsResponse2$inboundSchema),
|
|
6686
|
+
z.lazy(() => CreatePromptResponseFormatPromptsResponse3$inboundSchema),
|
|
6575
6687
|
CreatePromptResponseFormat4$inboundSchema,
|
|
6576
6688
|
CreatePromptResponseFormat5$inboundSchema,
|
|
6577
6689
|
CreatePromptResponseFormat6$inboundSchema,
|
|
@@ -6603,9 +6715,9 @@ export type CreatePromptModelParameters$Outbound = {
|
|
|
6603
6715
|
quality?: string | undefined;
|
|
6604
6716
|
style?: string | undefined;
|
|
6605
6717
|
responseFormat?:
|
|
6606
|
-
|
|
|
6607
|
-
|
|
|
6608
|
-
|
|
|
6718
|
+
| CreatePromptResponseFormatPromptsResponse1$Outbound
|
|
6719
|
+
| CreatePromptResponseFormatPromptsResponse2$Outbound
|
|
6720
|
+
| CreatePromptResponseFormatPromptsResponse3$Outbound
|
|
6609
6721
|
| string
|
|
6610
6722
|
| string
|
|
6611
6723
|
| string
|
|
@@ -6638,9 +6750,9 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
6638
6750
|
style: z.string().optional(),
|
|
6639
6751
|
responseFormat: z.nullable(
|
|
6640
6752
|
z.union([
|
|
6641
|
-
z.lazy(() =>
|
|
6642
|
-
z.lazy(() =>
|
|
6643
|
-
z.lazy(() =>
|
|
6753
|
+
z.lazy(() => CreatePromptResponseFormatPromptsResponse1$outboundSchema),
|
|
6754
|
+
z.lazy(() => CreatePromptResponseFormatPromptsResponse2$outboundSchema),
|
|
6755
|
+
z.lazy(() => CreatePromptResponseFormatPromptsResponse3$outboundSchema),
|
|
6644
6756
|
CreatePromptResponseFormat4$outboundSchema,
|
|
6645
6757
|
CreatePromptResponseFormat5$outboundSchema,
|
|
6646
6758
|
CreatePromptResponseFormat6$outboundSchema,
|
|
@@ -7406,14 +7518,18 @@ export const CreatePromptPromptsResponseMessages$inboundSchema: z.ZodType<
|
|
|
7406
7518
|
unknown
|
|
7407
7519
|
> = z.object({
|
|
7408
7520
|
role: CreatePromptPromptsRole$inboundSchema,
|
|
7409
|
-
content: z.
|
|
7410
|
-
z.
|
|
7411
|
-
|
|
7412
|
-
z.
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7521
|
+
content: z.nullable(
|
|
7522
|
+
z.union([
|
|
7523
|
+
z.string(),
|
|
7524
|
+
z.array(
|
|
7525
|
+
z.union([
|
|
7526
|
+
z.lazy(() => CreatePrompt2PromptsResponse1$inboundSchema),
|
|
7527
|
+
z.lazy(() => CreatePrompt2PromptsResponse2$inboundSchema),
|
|
7528
|
+
z.lazy(() => CreatePrompt2PromptsResponse3$inboundSchema),
|
|
7529
|
+
]),
|
|
7530
|
+
),
|
|
7531
|
+
]),
|
|
7532
|
+
),
|
|
7417
7533
|
tool_calls: z.array(z.lazy(() => CreatePromptPromptsToolCalls$inboundSchema))
|
|
7418
7534
|
.optional(),
|
|
7419
7535
|
tool_call_id: z.string().optional(),
|
|
@@ -7433,7 +7549,8 @@ export type CreatePromptPromptsResponseMessages$Outbound = {
|
|
|
7433
7549
|
| CreatePrompt2PromptsResponse1$Outbound
|
|
7434
7550
|
| CreatePrompt2PromptsResponse2$Outbound
|
|
7435
7551
|
| CreatePrompt2PromptsResponse3$Outbound
|
|
7436
|
-
|
|
7552
|
+
>
|
|
7553
|
+
| null;
|
|
7437
7554
|
tool_calls?: Array<CreatePromptPromptsToolCalls$Outbound> | undefined;
|
|
7438
7555
|
tool_call_id?: string | undefined;
|
|
7439
7556
|
};
|
|
@@ -7445,14 +7562,18 @@ export const CreatePromptPromptsResponseMessages$outboundSchema: z.ZodType<
|
|
|
7445
7562
|
CreatePromptPromptsResponseMessages
|
|
7446
7563
|
> = z.object({
|
|
7447
7564
|
role: CreatePromptPromptsRole$outboundSchema,
|
|
7448
|
-
content: z.
|
|
7449
|
-
z.
|
|
7450
|
-
|
|
7451
|
-
z.
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7565
|
+
content: z.nullable(
|
|
7566
|
+
z.union([
|
|
7567
|
+
z.string(),
|
|
7568
|
+
z.array(
|
|
7569
|
+
z.union([
|
|
7570
|
+
z.lazy(() => CreatePrompt2PromptsResponse1$outboundSchema),
|
|
7571
|
+
z.lazy(() => CreatePrompt2PromptsResponse2$outboundSchema),
|
|
7572
|
+
z.lazy(() => CreatePrompt2PromptsResponse3$outboundSchema),
|
|
7573
|
+
]),
|
|
7574
|
+
),
|
|
7575
|
+
]),
|
|
7576
|
+
),
|
|
7456
7577
|
toolCalls: z.array(z.lazy(() => CreatePromptPromptsToolCalls$outboundSchema))
|
|
7457
7578
|
.optional(),
|
|
7458
7579
|
toolCallId: z.string().optional(),
|