@orq-ai/node 3.2.0-rc.13 → 3.2.0-rc.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/mcp-server.js +606 -606
- package/bin/mcp-server.js.map +21 -21
- package/docs/sdks/prompts/README.md +110 -110
- package/funcs/promptsList.js +1 -1
- package/funcs/promptsList.js.map +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 +2 -2
- package/mcp-server/server.js.map +1 -1
- package/models/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createprompt.d.ts +333 -333
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +466 -469
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updateprompt.d.ts +333 -333
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +469 -468
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/sdk/prompts.d.ts +4 -4
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +6 -6
- package/sdk/prompts.js.map +1 -1
- package/src/funcs/promptsList.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -2
- package/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createprompt.ts +714 -629
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updateprompt.ts +629 -716
- package/src/sdk/prompts.ts +14 -14
|
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* The type of the model
|
|
14
14
|
*/
|
|
15
|
-
export const
|
|
15
|
+
export const ModelType = {
|
|
16
16
|
Chat: "chat",
|
|
17
17
|
Completion: "completion",
|
|
18
18
|
Embedding: "embedding",
|
|
@@ -26,12 +26,12 @@ export const UpdatePromptModelType = {
|
|
|
26
26
|
/**
|
|
27
27
|
* The type of the model
|
|
28
28
|
*/
|
|
29
|
-
export type
|
|
29
|
+
export type ModelType = ClosedEnum<typeof ModelType>;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Only supported on `image` models.
|
|
33
33
|
*/
|
|
34
|
-
export const
|
|
34
|
+
export const Format = {
|
|
35
35
|
Url: "url",
|
|
36
36
|
B64Json: "b64_json",
|
|
37
37
|
Text: "text",
|
|
@@ -40,47 +40,45 @@ export const UpdatePromptFormat = {
|
|
|
40
40
|
/**
|
|
41
41
|
* Only supported on `image` models.
|
|
42
42
|
*/
|
|
43
|
-
export type
|
|
43
|
+
export type Format = ClosedEnum<typeof Format>;
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Only supported on `image` models.
|
|
47
47
|
*/
|
|
48
|
-
export const
|
|
48
|
+
export const Quality = {
|
|
49
49
|
Standard: "standard",
|
|
50
50
|
Hd: "hd",
|
|
51
51
|
} as const;
|
|
52
52
|
/**
|
|
53
53
|
* Only supported on `image` models.
|
|
54
54
|
*/
|
|
55
|
-
export type
|
|
55
|
+
export type Quality = ClosedEnum<typeof Quality>;
|
|
56
56
|
|
|
57
|
-
export const
|
|
57
|
+
export const UpdatePromptResponseFormatType = {
|
|
58
58
|
JsonObject: "json_object",
|
|
59
59
|
} as const;
|
|
60
|
-
export type
|
|
61
|
-
typeof
|
|
60
|
+
export type UpdatePromptResponseFormatType = ClosedEnum<
|
|
61
|
+
typeof UpdatePromptResponseFormatType
|
|
62
62
|
>;
|
|
63
63
|
|
|
64
|
-
export type
|
|
65
|
-
type:
|
|
64
|
+
export type ResponseFormat2 = {
|
|
65
|
+
type: UpdatePromptResponseFormatType;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
export const
|
|
68
|
+
export const ResponseFormatType = {
|
|
69
69
|
JsonSchema: "json_schema",
|
|
70
70
|
} as const;
|
|
71
|
-
export type
|
|
72
|
-
typeof UpdatePromptResponseFormatType
|
|
73
|
-
>;
|
|
71
|
+
export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
|
|
74
72
|
|
|
75
|
-
export type
|
|
73
|
+
export type JsonSchema = {
|
|
76
74
|
name: string;
|
|
77
75
|
strict: boolean;
|
|
78
76
|
schema: { [k: string]: any };
|
|
79
77
|
};
|
|
80
78
|
|
|
81
|
-
export type
|
|
82
|
-
type:
|
|
83
|
-
jsonSchema:
|
|
79
|
+
export type ResponseFormat1 = {
|
|
80
|
+
type: ResponseFormatType;
|
|
81
|
+
jsonSchema: JsonSchema;
|
|
84
82
|
};
|
|
85
83
|
|
|
86
84
|
/**
|
|
@@ -94,42 +92,36 @@ export type UpdatePromptResponseFormat1 = {
|
|
|
94
92
|
*
|
|
95
93
|
* 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.
|
|
96
94
|
*/
|
|
97
|
-
export type
|
|
98
|
-
| UpdatePromptResponseFormat2
|
|
99
|
-
| UpdatePromptResponseFormat1;
|
|
95
|
+
export type ResponseFormat = ResponseFormat2 | ResponseFormat1;
|
|
100
96
|
|
|
101
97
|
/**
|
|
102
98
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
103
99
|
*/
|
|
104
|
-
export const
|
|
100
|
+
export const PhotoRealVersion = {
|
|
105
101
|
V1: "v1",
|
|
106
102
|
V2: "v2",
|
|
107
103
|
} as const;
|
|
108
104
|
/**
|
|
109
105
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
110
106
|
*/
|
|
111
|
-
export type
|
|
112
|
-
typeof UpdatePromptPhotoRealVersion
|
|
113
|
-
>;
|
|
107
|
+
export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
|
|
114
108
|
|
|
115
109
|
/**
|
|
116
110
|
* The format to return the embeddings
|
|
117
111
|
*/
|
|
118
|
-
export const
|
|
112
|
+
export const EncodingFormat = {
|
|
119
113
|
Float: "float",
|
|
120
114
|
Base64: "base64",
|
|
121
115
|
} as const;
|
|
122
116
|
/**
|
|
123
117
|
* The format to return the embeddings
|
|
124
118
|
*/
|
|
125
|
-
export type
|
|
126
|
-
typeof UpdatePromptEncodingFormat
|
|
127
|
-
>;
|
|
119
|
+
export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
|
|
128
120
|
|
|
129
121
|
/**
|
|
130
122
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
131
123
|
*/
|
|
132
|
-
export const
|
|
124
|
+
export const ReasoningEffort = {
|
|
133
125
|
Low: "low",
|
|
134
126
|
Medium: "medium",
|
|
135
127
|
High: "high",
|
|
@@ -137,14 +129,12 @@ export const UpdatePromptReasoningEffort = {
|
|
|
137
129
|
/**
|
|
138
130
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
139
131
|
*/
|
|
140
|
-
export type
|
|
141
|
-
typeof UpdatePromptReasoningEffort
|
|
142
|
-
>;
|
|
132
|
+
export type ReasoningEffort = ClosedEnum<typeof ReasoningEffort>;
|
|
143
133
|
|
|
144
134
|
/**
|
|
145
135
|
* Model Parameters: Not all parameters apply to every model
|
|
146
136
|
*/
|
|
147
|
-
export type
|
|
137
|
+
export type ModelParameters = {
|
|
148
138
|
/**
|
|
149
139
|
* Only supported on `chat` and `completion` models.
|
|
150
140
|
*/
|
|
@@ -180,7 +170,7 @@ export type UpdatePromptModelParameters = {
|
|
|
180
170
|
/**
|
|
181
171
|
* Only supported on `image` models.
|
|
182
172
|
*/
|
|
183
|
-
format?:
|
|
173
|
+
format?: Format | undefined;
|
|
184
174
|
/**
|
|
185
175
|
* Only supported on `image` models.
|
|
186
176
|
*/
|
|
@@ -188,7 +178,7 @@ export type UpdatePromptModelParameters = {
|
|
|
188
178
|
/**
|
|
189
179
|
* Only supported on `image` models.
|
|
190
180
|
*/
|
|
191
|
-
quality?:
|
|
181
|
+
quality?: Quality | undefined;
|
|
192
182
|
/**
|
|
193
183
|
* Only supported on `image` models.
|
|
194
184
|
*/
|
|
@@ -204,30 +194,26 @@ export type UpdatePromptModelParameters = {
|
|
|
204
194
|
*
|
|
205
195
|
* 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.
|
|
206
196
|
*/
|
|
207
|
-
responseFormat?:
|
|
208
|
-
| UpdatePromptResponseFormat2
|
|
209
|
-
| UpdatePromptResponseFormat1
|
|
210
|
-
| null
|
|
211
|
-
| undefined;
|
|
197
|
+
responseFormat?: ResponseFormat2 | ResponseFormat1 | null | undefined;
|
|
212
198
|
/**
|
|
213
199
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
214
200
|
*/
|
|
215
|
-
photoRealVersion?:
|
|
201
|
+
photoRealVersion?: PhotoRealVersion | undefined;
|
|
216
202
|
/**
|
|
217
203
|
* The format to return the embeddings
|
|
218
204
|
*/
|
|
219
|
-
encodingFormat?:
|
|
205
|
+
encodingFormat?: EncodingFormat | undefined;
|
|
220
206
|
/**
|
|
221
207
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
222
208
|
*/
|
|
223
|
-
reasoningEffort?:
|
|
209
|
+
reasoningEffort?: ReasoningEffort | undefined;
|
|
224
210
|
/**
|
|
225
211
|
* Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
|
|
226
212
|
*/
|
|
227
213
|
budgetTokens?: number | undefined;
|
|
228
214
|
};
|
|
229
215
|
|
|
230
|
-
export const
|
|
216
|
+
export const Provider = {
|
|
231
217
|
Cohere: "cohere",
|
|
232
218
|
Openai: "openai",
|
|
233
219
|
Anthropic: "anthropic",
|
|
@@ -247,7 +233,7 @@ export const UpdatePromptProvider = {
|
|
|
247
233
|
Togetherai: "togetherai",
|
|
248
234
|
Elevenlabs: "elevenlabs",
|
|
249
235
|
} as const;
|
|
250
|
-
export type
|
|
236
|
+
export type Provider = ClosedEnum<typeof Provider>;
|
|
251
237
|
|
|
252
238
|
/**
|
|
253
239
|
* The role of the prompt message
|
|
@@ -350,23 +336,23 @@ export type UpdatePromptMessages = {
|
|
|
350
336
|
/**
|
|
351
337
|
* A list of messages compatible with the openAI schema
|
|
352
338
|
*/
|
|
353
|
-
export type
|
|
339
|
+
export type PromptConfig = {
|
|
354
340
|
stream?: boolean | undefined;
|
|
355
341
|
model?: string | undefined;
|
|
356
342
|
/**
|
|
357
343
|
* The type of the model
|
|
358
344
|
*/
|
|
359
|
-
modelType?:
|
|
345
|
+
modelType?: ModelType | undefined;
|
|
360
346
|
/**
|
|
361
347
|
* Model Parameters: Not all parameters apply to every model
|
|
362
348
|
*/
|
|
363
|
-
modelParameters?:
|
|
364
|
-
provider?:
|
|
349
|
+
modelParameters?: ModelParameters | undefined;
|
|
350
|
+
provider?: Provider | undefined;
|
|
365
351
|
version?: string | undefined;
|
|
366
352
|
messages: Array<UpdatePromptMessages>;
|
|
367
353
|
};
|
|
368
354
|
|
|
369
|
-
export const
|
|
355
|
+
export const UseCases = {
|
|
370
356
|
Agents: "Agents",
|
|
371
357
|
AgentsSimulations: "Agents simulations",
|
|
372
358
|
APIInteraction: "API interaction",
|
|
@@ -384,12 +370,12 @@ export const UpdatePromptUseCases = {
|
|
|
384
370
|
Summarization: "Summarization",
|
|
385
371
|
Tagging: "Tagging",
|
|
386
372
|
} as const;
|
|
387
|
-
export type
|
|
373
|
+
export type UseCases = ClosedEnum<typeof UseCases>;
|
|
388
374
|
|
|
389
375
|
/**
|
|
390
376
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
391
377
|
*/
|
|
392
|
-
export const
|
|
378
|
+
export const Language = {
|
|
393
379
|
Chinese: "Chinese",
|
|
394
380
|
Dutch: "Dutch",
|
|
395
381
|
English: "English",
|
|
@@ -401,17 +387,17 @@ export const UpdatePromptLanguage = {
|
|
|
401
387
|
/**
|
|
402
388
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
403
389
|
*/
|
|
404
|
-
export type
|
|
390
|
+
export type Language = ClosedEnum<typeof Language>;
|
|
405
391
|
|
|
406
392
|
export type UpdatePromptMetadata = {
|
|
407
393
|
/**
|
|
408
394
|
* A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
|
|
409
395
|
*/
|
|
410
|
-
useCases?: Array<
|
|
396
|
+
useCases?: Array<UseCases> | undefined;
|
|
411
397
|
/**
|
|
412
398
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
413
399
|
*/
|
|
414
|
-
language?:
|
|
400
|
+
language?: Language | undefined;
|
|
415
401
|
};
|
|
416
402
|
|
|
417
403
|
export type UpdatePromptRequestBody = {
|
|
@@ -432,7 +418,7 @@ export type UpdatePromptRequestBody = {
|
|
|
432
418
|
/**
|
|
433
419
|
* A list of messages compatible with the openAI schema
|
|
434
420
|
*/
|
|
435
|
-
promptConfig?:
|
|
421
|
+
promptConfig?: PromptConfig | undefined;
|
|
436
422
|
metadata?: UpdatePromptMetadata | undefined;
|
|
437
423
|
};
|
|
438
424
|
|
|
@@ -454,7 +440,7 @@ export type UpdatePromptPromptsType = ClosedEnum<
|
|
|
454
440
|
/**
|
|
455
441
|
* The type of the model
|
|
456
442
|
*/
|
|
457
|
-
export const
|
|
443
|
+
export const UpdatePromptModelType = {
|
|
458
444
|
Chat: "chat",
|
|
459
445
|
Completion: "completion",
|
|
460
446
|
Embedding: "embedding",
|
|
@@ -468,14 +454,12 @@ export const UpdatePromptPromptsModelType = {
|
|
|
468
454
|
/**
|
|
469
455
|
* The type of the model
|
|
470
456
|
*/
|
|
471
|
-
export type
|
|
472
|
-
typeof UpdatePromptPromptsModelType
|
|
473
|
-
>;
|
|
457
|
+
export type UpdatePromptModelType = ClosedEnum<typeof UpdatePromptModelType>;
|
|
474
458
|
|
|
475
459
|
/**
|
|
476
460
|
* Only supported on `image` models.
|
|
477
461
|
*/
|
|
478
|
-
export const
|
|
462
|
+
export const UpdatePromptFormat = {
|
|
479
463
|
Url: "url",
|
|
480
464
|
B64Json: "b64_json",
|
|
481
465
|
Text: "text",
|
|
@@ -484,40 +468,36 @@ export const UpdatePromptPromptsFormat = {
|
|
|
484
468
|
/**
|
|
485
469
|
* Only supported on `image` models.
|
|
486
470
|
*/
|
|
487
|
-
export type
|
|
488
|
-
typeof UpdatePromptPromptsFormat
|
|
489
|
-
>;
|
|
471
|
+
export type UpdatePromptFormat = ClosedEnum<typeof UpdatePromptFormat>;
|
|
490
472
|
|
|
491
473
|
/**
|
|
492
474
|
* Only supported on `image` models.
|
|
493
475
|
*/
|
|
494
|
-
export const
|
|
476
|
+
export const UpdatePromptQuality = {
|
|
495
477
|
Standard: "standard",
|
|
496
478
|
Hd: "hd",
|
|
497
479
|
} as const;
|
|
498
480
|
/**
|
|
499
481
|
* Only supported on `image` models.
|
|
500
482
|
*/
|
|
501
|
-
export type
|
|
502
|
-
typeof UpdatePromptPromptsQuality
|
|
503
|
-
>;
|
|
483
|
+
export type UpdatePromptQuality = ClosedEnum<typeof UpdatePromptQuality>;
|
|
504
484
|
|
|
505
|
-
export const
|
|
485
|
+
export const UpdatePromptResponseFormatPromptsResponseType = {
|
|
506
486
|
JsonObject: "json_object",
|
|
507
487
|
} as const;
|
|
508
|
-
export type
|
|
509
|
-
typeof
|
|
488
|
+
export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
|
|
489
|
+
typeof UpdatePromptResponseFormatPromptsResponseType
|
|
510
490
|
>;
|
|
511
491
|
|
|
512
|
-
export type
|
|
513
|
-
type:
|
|
492
|
+
export type UpdatePromptResponseFormat2 = {
|
|
493
|
+
type: UpdatePromptResponseFormatPromptsResponseType;
|
|
514
494
|
};
|
|
515
495
|
|
|
516
|
-
export const
|
|
496
|
+
export const UpdatePromptResponseFormatPromptsType = {
|
|
517
497
|
JsonSchema: "json_schema",
|
|
518
498
|
} as const;
|
|
519
|
-
export type
|
|
520
|
-
typeof
|
|
499
|
+
export type UpdatePromptResponseFormatPromptsType = ClosedEnum<
|
|
500
|
+
typeof UpdatePromptResponseFormatPromptsType
|
|
521
501
|
>;
|
|
522
502
|
|
|
523
503
|
export type UpdatePromptResponseFormatJsonSchema = {
|
|
@@ -526,8 +506,8 @@ export type UpdatePromptResponseFormatJsonSchema = {
|
|
|
526
506
|
schema: { [k: string]: any };
|
|
527
507
|
};
|
|
528
508
|
|
|
529
|
-
export type
|
|
530
|
-
type:
|
|
509
|
+
export type UpdatePromptResponseFormat1 = {
|
|
510
|
+
type: UpdatePromptResponseFormatPromptsType;
|
|
531
511
|
jsonSchema: UpdatePromptResponseFormatJsonSchema;
|
|
532
512
|
};
|
|
533
513
|
|
|
@@ -542,42 +522,42 @@ export type UpdatePromptResponseFormatPrompts1 = {
|
|
|
542
522
|
*
|
|
543
523
|
* 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.
|
|
544
524
|
*/
|
|
545
|
-
export type
|
|
546
|
-
|
|
|
547
|
-
|
|
|
525
|
+
export type UpdatePromptResponseFormat =
|
|
526
|
+
| UpdatePromptResponseFormat2
|
|
527
|
+
| UpdatePromptResponseFormat1;
|
|
548
528
|
|
|
549
529
|
/**
|
|
550
530
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
551
531
|
*/
|
|
552
|
-
export const
|
|
532
|
+
export const UpdatePromptPhotoRealVersion = {
|
|
553
533
|
V1: "v1",
|
|
554
534
|
V2: "v2",
|
|
555
535
|
} as const;
|
|
556
536
|
/**
|
|
557
537
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
558
538
|
*/
|
|
559
|
-
export type
|
|
560
|
-
typeof
|
|
539
|
+
export type UpdatePromptPhotoRealVersion = ClosedEnum<
|
|
540
|
+
typeof UpdatePromptPhotoRealVersion
|
|
561
541
|
>;
|
|
562
542
|
|
|
563
543
|
/**
|
|
564
544
|
* The format to return the embeddings
|
|
565
545
|
*/
|
|
566
|
-
export const
|
|
546
|
+
export const UpdatePromptEncodingFormat = {
|
|
567
547
|
Float: "float",
|
|
568
548
|
Base64: "base64",
|
|
569
549
|
} as const;
|
|
570
550
|
/**
|
|
571
551
|
* The format to return the embeddings
|
|
572
552
|
*/
|
|
573
|
-
export type
|
|
574
|
-
typeof
|
|
553
|
+
export type UpdatePromptEncodingFormat = ClosedEnum<
|
|
554
|
+
typeof UpdatePromptEncodingFormat
|
|
575
555
|
>;
|
|
576
556
|
|
|
577
557
|
/**
|
|
578
558
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
579
559
|
*/
|
|
580
|
-
export const
|
|
560
|
+
export const UpdatePromptReasoningEffort = {
|
|
581
561
|
Low: "low",
|
|
582
562
|
Medium: "medium",
|
|
583
563
|
High: "high",
|
|
@@ -585,14 +565,14 @@ export const UpdatePromptPromptsReasoningEffort = {
|
|
|
585
565
|
/**
|
|
586
566
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
587
567
|
*/
|
|
588
|
-
export type
|
|
589
|
-
typeof
|
|
568
|
+
export type UpdatePromptReasoningEffort = ClosedEnum<
|
|
569
|
+
typeof UpdatePromptReasoningEffort
|
|
590
570
|
>;
|
|
591
571
|
|
|
592
572
|
/**
|
|
593
573
|
* Model Parameters: Not all parameters apply to every model
|
|
594
574
|
*/
|
|
595
|
-
export type
|
|
575
|
+
export type UpdatePromptModelParameters = {
|
|
596
576
|
/**
|
|
597
577
|
* Only supported on `chat` and `completion` models.
|
|
598
578
|
*/
|
|
@@ -628,7 +608,7 @@ export type UpdatePromptPromptsModelParameters = {
|
|
|
628
608
|
/**
|
|
629
609
|
* Only supported on `image` models.
|
|
630
610
|
*/
|
|
631
|
-
format?:
|
|
611
|
+
format?: UpdatePromptFormat | undefined;
|
|
632
612
|
/**
|
|
633
613
|
* Only supported on `image` models.
|
|
634
614
|
*/
|
|
@@ -636,7 +616,7 @@ export type UpdatePromptPromptsModelParameters = {
|
|
|
636
616
|
/**
|
|
637
617
|
* Only supported on `image` models.
|
|
638
618
|
*/
|
|
639
|
-
quality?:
|
|
619
|
+
quality?: UpdatePromptQuality | undefined;
|
|
640
620
|
/**
|
|
641
621
|
* Only supported on `image` models.
|
|
642
622
|
*/
|
|
@@ -653,29 +633,29 @@ export type UpdatePromptPromptsModelParameters = {
|
|
|
653
633
|
* 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.
|
|
654
634
|
*/
|
|
655
635
|
responseFormat?:
|
|
656
|
-
|
|
|
657
|
-
|
|
|
636
|
+
| UpdatePromptResponseFormat2
|
|
637
|
+
| UpdatePromptResponseFormat1
|
|
658
638
|
| null
|
|
659
639
|
| undefined;
|
|
660
640
|
/**
|
|
661
641
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
662
642
|
*/
|
|
663
|
-
photoRealVersion?:
|
|
643
|
+
photoRealVersion?: UpdatePromptPhotoRealVersion | undefined;
|
|
664
644
|
/**
|
|
665
645
|
* The format to return the embeddings
|
|
666
646
|
*/
|
|
667
|
-
encodingFormat?:
|
|
647
|
+
encodingFormat?: UpdatePromptEncodingFormat | undefined;
|
|
668
648
|
/**
|
|
669
649
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
670
650
|
*/
|
|
671
|
-
reasoningEffort?:
|
|
651
|
+
reasoningEffort?: UpdatePromptReasoningEffort | undefined;
|
|
672
652
|
/**
|
|
673
653
|
* Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
|
|
674
654
|
*/
|
|
675
655
|
budgetTokens?: number | undefined;
|
|
676
656
|
};
|
|
677
657
|
|
|
678
|
-
export const
|
|
658
|
+
export const UpdatePromptProvider = {
|
|
679
659
|
Cohere: "cohere",
|
|
680
660
|
Openai: "openai",
|
|
681
661
|
Anthropic: "anthropic",
|
|
@@ -695,9 +675,7 @@ export const UpdatePromptPromptsProvider = {
|
|
|
695
675
|
Togetherai: "togetherai",
|
|
696
676
|
Elevenlabs: "elevenlabs",
|
|
697
677
|
} as const;
|
|
698
|
-
export type
|
|
699
|
-
typeof UpdatePromptPromptsProvider
|
|
700
|
-
>;
|
|
678
|
+
export type UpdatePromptProvider = ClosedEnum<typeof UpdatePromptProvider>;
|
|
701
679
|
|
|
702
680
|
/**
|
|
703
681
|
* The role of the prompt message
|
|
@@ -812,7 +790,7 @@ export type UpdatePromptPromptsMessages = {
|
|
|
812
790
|
/**
|
|
813
791
|
* A list of messages compatible with the openAI schema
|
|
814
792
|
*/
|
|
815
|
-
export type
|
|
793
|
+
export type UpdatePromptPromptConfig = {
|
|
816
794
|
stream?: boolean | undefined;
|
|
817
795
|
model?: string | undefined;
|
|
818
796
|
/**
|
|
@@ -822,12 +800,12 @@ export type UpdatePromptPromptsPromptConfig = {
|
|
|
822
800
|
/**
|
|
823
801
|
* The type of the model
|
|
824
802
|
*/
|
|
825
|
-
modelType?:
|
|
803
|
+
modelType?: UpdatePromptModelType | undefined;
|
|
826
804
|
/**
|
|
827
805
|
* Model Parameters: Not all parameters apply to every model
|
|
828
806
|
*/
|
|
829
|
-
modelParameters?:
|
|
830
|
-
provider?:
|
|
807
|
+
modelParameters?: UpdatePromptModelParameters | undefined;
|
|
808
|
+
provider?: UpdatePromptProvider | undefined;
|
|
831
809
|
/**
|
|
832
810
|
* The id of the resource
|
|
833
811
|
*/
|
|
@@ -836,7 +814,7 @@ export type UpdatePromptPromptsPromptConfig = {
|
|
|
836
814
|
messages: Array<UpdatePromptPromptsMessages>;
|
|
837
815
|
};
|
|
838
816
|
|
|
839
|
-
export const
|
|
817
|
+
export const UpdatePromptUseCases = {
|
|
840
818
|
Agents: "Agents",
|
|
841
819
|
AgentsSimulations: "Agents simulations",
|
|
842
820
|
APIInteraction: "API interaction",
|
|
@@ -854,14 +832,12 @@ export const UpdatePromptPromptsUseCases = {
|
|
|
854
832
|
Summarization: "Summarization",
|
|
855
833
|
Tagging: "Tagging",
|
|
856
834
|
} as const;
|
|
857
|
-
export type
|
|
858
|
-
typeof UpdatePromptPromptsUseCases
|
|
859
|
-
>;
|
|
835
|
+
export type UpdatePromptUseCases = ClosedEnum<typeof UpdatePromptUseCases>;
|
|
860
836
|
|
|
861
837
|
/**
|
|
862
838
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
863
839
|
*/
|
|
864
|
-
export const
|
|
840
|
+
export const UpdatePromptLanguage = {
|
|
865
841
|
Chinese: "Chinese",
|
|
866
842
|
Dutch: "Dutch",
|
|
867
843
|
English: "English",
|
|
@@ -873,19 +849,17 @@ export const UpdatePromptPromptsLanguage = {
|
|
|
873
849
|
/**
|
|
874
850
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
875
851
|
*/
|
|
876
|
-
export type
|
|
877
|
-
typeof UpdatePromptPromptsLanguage
|
|
878
|
-
>;
|
|
852
|
+
export type UpdatePromptLanguage = ClosedEnum<typeof UpdatePromptLanguage>;
|
|
879
853
|
|
|
880
854
|
export type UpdatePromptPromptsMetadata = {
|
|
881
855
|
/**
|
|
882
856
|
* A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
|
|
883
857
|
*/
|
|
884
|
-
useCases?: Array<
|
|
858
|
+
useCases?: Array<UpdatePromptUseCases> | undefined;
|
|
885
859
|
/**
|
|
886
860
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
887
861
|
*/
|
|
888
|
-
language?:
|
|
862
|
+
language?: UpdatePromptLanguage | undefined;
|
|
889
863
|
};
|
|
890
864
|
|
|
891
865
|
/**
|
|
@@ -911,177 +885,164 @@ export type UpdatePromptResponseBody = {
|
|
|
911
885
|
/**
|
|
912
886
|
* A list of messages compatible with the openAI schema
|
|
913
887
|
*/
|
|
914
|
-
promptConfig:
|
|
888
|
+
promptConfig: UpdatePromptPromptConfig;
|
|
915
889
|
metadata?: UpdatePromptPromptsMetadata | undefined;
|
|
916
890
|
};
|
|
917
891
|
|
|
918
892
|
/** @internal */
|
|
919
|
-
export const
|
|
920
|
-
|
|
921
|
-
> = z.nativeEnum(UpdatePromptModelType);
|
|
893
|
+
export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
|
|
894
|
+
.nativeEnum(ModelType);
|
|
922
895
|
|
|
923
896
|
/** @internal */
|
|
924
|
-
export const
|
|
925
|
-
|
|
926
|
-
> = UpdatePromptModelType$inboundSchema;
|
|
897
|
+
export const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType> =
|
|
898
|
+
ModelType$inboundSchema;
|
|
927
899
|
|
|
928
900
|
/**
|
|
929
901
|
* @internal
|
|
930
902
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
931
903
|
*/
|
|
932
|
-
export namespace
|
|
933
|
-
/** @deprecated use `
|
|
934
|
-
export const inboundSchema =
|
|
935
|
-
/** @deprecated use `
|
|
936
|
-
export const outboundSchema =
|
|
904
|
+
export namespace ModelType$ {
|
|
905
|
+
/** @deprecated use `ModelType$inboundSchema` instead. */
|
|
906
|
+
export const inboundSchema = ModelType$inboundSchema;
|
|
907
|
+
/** @deprecated use `ModelType$outboundSchema` instead. */
|
|
908
|
+
export const outboundSchema = ModelType$outboundSchema;
|
|
937
909
|
}
|
|
938
910
|
|
|
939
911
|
/** @internal */
|
|
940
|
-
export const
|
|
941
|
-
|
|
942
|
-
> = z.nativeEnum(UpdatePromptFormat);
|
|
912
|
+
export const Format$inboundSchema: z.ZodNativeEnum<typeof Format> = z
|
|
913
|
+
.nativeEnum(Format);
|
|
943
914
|
|
|
944
915
|
/** @internal */
|
|
945
|
-
export const
|
|
946
|
-
|
|
947
|
-
> = UpdatePromptFormat$inboundSchema;
|
|
916
|
+
export const Format$outboundSchema: z.ZodNativeEnum<typeof Format> =
|
|
917
|
+
Format$inboundSchema;
|
|
948
918
|
|
|
949
919
|
/**
|
|
950
920
|
* @internal
|
|
951
921
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
952
922
|
*/
|
|
953
|
-
export namespace
|
|
954
|
-
/** @deprecated use `
|
|
955
|
-
export const inboundSchema =
|
|
956
|
-
/** @deprecated use `
|
|
957
|
-
export const outboundSchema =
|
|
923
|
+
export namespace Format$ {
|
|
924
|
+
/** @deprecated use `Format$inboundSchema` instead. */
|
|
925
|
+
export const inboundSchema = Format$inboundSchema;
|
|
926
|
+
/** @deprecated use `Format$outboundSchema` instead. */
|
|
927
|
+
export const outboundSchema = Format$outboundSchema;
|
|
958
928
|
}
|
|
959
929
|
|
|
960
930
|
/** @internal */
|
|
961
|
-
export const
|
|
962
|
-
|
|
963
|
-
> = z.nativeEnum(UpdatePromptQuality);
|
|
931
|
+
export const Quality$inboundSchema: z.ZodNativeEnum<typeof Quality> = z
|
|
932
|
+
.nativeEnum(Quality);
|
|
964
933
|
|
|
965
934
|
/** @internal */
|
|
966
|
-
export const
|
|
967
|
-
|
|
968
|
-
> = UpdatePromptQuality$inboundSchema;
|
|
935
|
+
export const Quality$outboundSchema: z.ZodNativeEnum<typeof Quality> =
|
|
936
|
+
Quality$inboundSchema;
|
|
969
937
|
|
|
970
938
|
/**
|
|
971
939
|
* @internal
|
|
972
940
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
973
941
|
*/
|
|
974
|
-
export namespace
|
|
975
|
-
/** @deprecated use `
|
|
976
|
-
export const inboundSchema =
|
|
977
|
-
/** @deprecated use `
|
|
978
|
-
export const outboundSchema =
|
|
942
|
+
export namespace Quality$ {
|
|
943
|
+
/** @deprecated use `Quality$inboundSchema` instead. */
|
|
944
|
+
export const inboundSchema = Quality$inboundSchema;
|
|
945
|
+
/** @deprecated use `Quality$outboundSchema` instead. */
|
|
946
|
+
export const outboundSchema = Quality$outboundSchema;
|
|
979
947
|
}
|
|
980
948
|
|
|
981
949
|
/** @internal */
|
|
982
|
-
export const
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
);
|
|
950
|
+
export const UpdatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
951
|
+
typeof UpdatePromptResponseFormatType
|
|
952
|
+
> = z.nativeEnum(UpdatePromptResponseFormatType);
|
|
986
953
|
|
|
987
954
|
/** @internal */
|
|
988
|
-
export const
|
|
989
|
-
|
|
990
|
-
|
|
955
|
+
export const UpdatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
956
|
+
typeof UpdatePromptResponseFormatType
|
|
957
|
+
> = UpdatePromptResponseFormatType$inboundSchema;
|
|
991
958
|
|
|
992
959
|
/**
|
|
993
960
|
* @internal
|
|
994
961
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
995
962
|
*/
|
|
996
|
-
export namespace
|
|
997
|
-
/** @deprecated use `
|
|
998
|
-
export const inboundSchema =
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
export const outboundSchema =
|
|
1002
|
-
UpdatePromptResponseFormatPromptsType$outboundSchema;
|
|
963
|
+
export namespace UpdatePromptResponseFormatType$ {
|
|
964
|
+
/** @deprecated use `UpdatePromptResponseFormatType$inboundSchema` instead. */
|
|
965
|
+
export const inboundSchema = UpdatePromptResponseFormatType$inboundSchema;
|
|
966
|
+
/** @deprecated use `UpdatePromptResponseFormatType$outboundSchema` instead. */
|
|
967
|
+
export const outboundSchema = UpdatePromptResponseFormatType$outboundSchema;
|
|
1003
968
|
}
|
|
1004
969
|
|
|
1005
970
|
/** @internal */
|
|
1006
|
-
export const
|
|
1007
|
-
|
|
971
|
+
export const ResponseFormat2$inboundSchema: z.ZodType<
|
|
972
|
+
ResponseFormat2,
|
|
1008
973
|
z.ZodTypeDef,
|
|
1009
974
|
unknown
|
|
1010
975
|
> = z.object({
|
|
1011
|
-
type:
|
|
976
|
+
type: UpdatePromptResponseFormatType$inboundSchema,
|
|
1012
977
|
});
|
|
1013
978
|
|
|
1014
979
|
/** @internal */
|
|
1015
|
-
export type
|
|
980
|
+
export type ResponseFormat2$Outbound = {
|
|
1016
981
|
type: string;
|
|
1017
982
|
};
|
|
1018
983
|
|
|
1019
984
|
/** @internal */
|
|
1020
|
-
export const
|
|
1021
|
-
|
|
985
|
+
export const ResponseFormat2$outboundSchema: z.ZodType<
|
|
986
|
+
ResponseFormat2$Outbound,
|
|
1022
987
|
z.ZodTypeDef,
|
|
1023
|
-
|
|
988
|
+
ResponseFormat2
|
|
1024
989
|
> = z.object({
|
|
1025
|
-
type:
|
|
990
|
+
type: UpdatePromptResponseFormatType$outboundSchema,
|
|
1026
991
|
});
|
|
1027
992
|
|
|
1028
993
|
/**
|
|
1029
994
|
* @internal
|
|
1030
995
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1031
996
|
*/
|
|
1032
|
-
export namespace
|
|
1033
|
-
/** @deprecated use `
|
|
1034
|
-
export const inboundSchema =
|
|
1035
|
-
/** @deprecated use `
|
|
1036
|
-
export const outboundSchema =
|
|
1037
|
-
/** @deprecated use `
|
|
1038
|
-
export type Outbound =
|
|
997
|
+
export namespace ResponseFormat2$ {
|
|
998
|
+
/** @deprecated use `ResponseFormat2$inboundSchema` instead. */
|
|
999
|
+
export const inboundSchema = ResponseFormat2$inboundSchema;
|
|
1000
|
+
/** @deprecated use `ResponseFormat2$outboundSchema` instead. */
|
|
1001
|
+
export const outboundSchema = ResponseFormat2$outboundSchema;
|
|
1002
|
+
/** @deprecated use `ResponseFormat2$Outbound` instead. */
|
|
1003
|
+
export type Outbound = ResponseFormat2$Outbound;
|
|
1039
1004
|
}
|
|
1040
1005
|
|
|
1041
|
-
export function
|
|
1042
|
-
|
|
1006
|
+
export function responseFormat2ToJSON(
|
|
1007
|
+
responseFormat2: ResponseFormat2,
|
|
1043
1008
|
): string {
|
|
1044
|
-
return JSON.stringify(
|
|
1045
|
-
UpdatePromptResponseFormat2$outboundSchema.parse(
|
|
1046
|
-
updatePromptResponseFormat2,
|
|
1047
|
-
),
|
|
1048
|
-
);
|
|
1009
|
+
return JSON.stringify(ResponseFormat2$outboundSchema.parse(responseFormat2));
|
|
1049
1010
|
}
|
|
1050
1011
|
|
|
1051
|
-
export function
|
|
1012
|
+
export function responseFormat2FromJSON(
|
|
1052
1013
|
jsonString: string,
|
|
1053
|
-
): SafeParseResult<
|
|
1014
|
+
): SafeParseResult<ResponseFormat2, SDKValidationError> {
|
|
1054
1015
|
return safeParse(
|
|
1055
1016
|
jsonString,
|
|
1056
|
-
(x) =>
|
|
1057
|
-
`Failed to parse '
|
|
1017
|
+
(x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
1018
|
+
`Failed to parse 'ResponseFormat2' from JSON`,
|
|
1058
1019
|
);
|
|
1059
1020
|
}
|
|
1060
1021
|
|
|
1061
1022
|
/** @internal */
|
|
1062
|
-
export const
|
|
1063
|
-
typeof
|
|
1064
|
-
> = z.nativeEnum(
|
|
1023
|
+
export const ResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
1024
|
+
typeof ResponseFormatType
|
|
1025
|
+
> = z.nativeEnum(ResponseFormatType);
|
|
1065
1026
|
|
|
1066
1027
|
/** @internal */
|
|
1067
|
-
export const
|
|
1068
|
-
typeof
|
|
1069
|
-
> =
|
|
1028
|
+
export const ResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
1029
|
+
typeof ResponseFormatType
|
|
1030
|
+
> = ResponseFormatType$inboundSchema;
|
|
1070
1031
|
|
|
1071
1032
|
/**
|
|
1072
1033
|
* @internal
|
|
1073
1034
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1074
1035
|
*/
|
|
1075
|
-
export namespace
|
|
1076
|
-
/** @deprecated use `
|
|
1077
|
-
export const inboundSchema =
|
|
1078
|
-
/** @deprecated use `
|
|
1079
|
-
export const outboundSchema =
|
|
1036
|
+
export namespace ResponseFormatType$ {
|
|
1037
|
+
/** @deprecated use `ResponseFormatType$inboundSchema` instead. */
|
|
1038
|
+
export const inboundSchema = ResponseFormatType$inboundSchema;
|
|
1039
|
+
/** @deprecated use `ResponseFormatType$outboundSchema` instead. */
|
|
1040
|
+
export const outboundSchema = ResponseFormatType$outboundSchema;
|
|
1080
1041
|
}
|
|
1081
1042
|
|
|
1082
1043
|
/** @internal */
|
|
1083
|
-
export const
|
|
1084
|
-
|
|
1044
|
+
export const JsonSchema$inboundSchema: z.ZodType<
|
|
1045
|
+
JsonSchema,
|
|
1085
1046
|
z.ZodTypeDef,
|
|
1086
1047
|
unknown
|
|
1087
1048
|
> = z.object({
|
|
@@ -1091,17 +1052,17 @@ export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
1091
1052
|
});
|
|
1092
1053
|
|
|
1093
1054
|
/** @internal */
|
|
1094
|
-
export type
|
|
1055
|
+
export type JsonSchema$Outbound = {
|
|
1095
1056
|
name: string;
|
|
1096
1057
|
strict: boolean;
|
|
1097
1058
|
schema: { [k: string]: any };
|
|
1098
1059
|
};
|
|
1099
1060
|
|
|
1100
1061
|
/** @internal */
|
|
1101
|
-
export const
|
|
1102
|
-
|
|
1062
|
+
export const JsonSchema$outboundSchema: z.ZodType<
|
|
1063
|
+
JsonSchema$Outbound,
|
|
1103
1064
|
z.ZodTypeDef,
|
|
1104
|
-
|
|
1065
|
+
JsonSchema
|
|
1105
1066
|
> = z.object({
|
|
1106
1067
|
name: z.string(),
|
|
1107
1068
|
strict: z.boolean(),
|
|
@@ -1112,41 +1073,37 @@ export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
1112
1073
|
* @internal
|
|
1113
1074
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1114
1075
|
*/
|
|
1115
|
-
export namespace
|
|
1116
|
-
/** @deprecated use `
|
|
1117
|
-
export const inboundSchema =
|
|
1118
|
-
/** @deprecated use `
|
|
1119
|
-
export const outboundSchema =
|
|
1120
|
-
/** @deprecated use `
|
|
1121
|
-
export type Outbound =
|
|
1076
|
+
export namespace JsonSchema$ {
|
|
1077
|
+
/** @deprecated use `JsonSchema$inboundSchema` instead. */
|
|
1078
|
+
export const inboundSchema = JsonSchema$inboundSchema;
|
|
1079
|
+
/** @deprecated use `JsonSchema$outboundSchema` instead. */
|
|
1080
|
+
export const outboundSchema = JsonSchema$outboundSchema;
|
|
1081
|
+
/** @deprecated use `JsonSchema$Outbound` instead. */
|
|
1082
|
+
export type Outbound = JsonSchema$Outbound;
|
|
1122
1083
|
}
|
|
1123
1084
|
|
|
1124
|
-
export function
|
|
1125
|
-
|
|
1126
|
-
): string {
|
|
1127
|
-
return JSON.stringify(
|
|
1128
|
-
ResponseFormatJsonSchema$outboundSchema.parse(responseFormatJsonSchema),
|
|
1129
|
-
);
|
|
1085
|
+
export function jsonSchemaToJSON(jsonSchema: JsonSchema): string {
|
|
1086
|
+
return JSON.stringify(JsonSchema$outboundSchema.parse(jsonSchema));
|
|
1130
1087
|
}
|
|
1131
1088
|
|
|
1132
|
-
export function
|
|
1089
|
+
export function jsonSchemaFromJSON(
|
|
1133
1090
|
jsonString: string,
|
|
1134
|
-
): SafeParseResult<
|
|
1091
|
+
): SafeParseResult<JsonSchema, SDKValidationError> {
|
|
1135
1092
|
return safeParse(
|
|
1136
1093
|
jsonString,
|
|
1137
|
-
(x) =>
|
|
1138
|
-
`Failed to parse '
|
|
1094
|
+
(x) => JsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1095
|
+
`Failed to parse 'JsonSchema' from JSON`,
|
|
1139
1096
|
);
|
|
1140
1097
|
}
|
|
1141
1098
|
|
|
1142
1099
|
/** @internal */
|
|
1143
|
-
export const
|
|
1144
|
-
|
|
1100
|
+
export const ResponseFormat1$inboundSchema: z.ZodType<
|
|
1101
|
+
ResponseFormat1,
|
|
1145
1102
|
z.ZodTypeDef,
|
|
1146
1103
|
unknown
|
|
1147
1104
|
> = z.object({
|
|
1148
|
-
type:
|
|
1149
|
-
json_schema: z.lazy(() =>
|
|
1105
|
+
type: ResponseFormatType$inboundSchema,
|
|
1106
|
+
json_schema: z.lazy(() => JsonSchema$inboundSchema),
|
|
1150
1107
|
}).transform((v) => {
|
|
1151
1108
|
return remap$(v, {
|
|
1152
1109
|
"json_schema": "jsonSchema",
|
|
@@ -1154,19 +1111,19 @@ export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
|
1154
1111
|
});
|
|
1155
1112
|
|
|
1156
1113
|
/** @internal */
|
|
1157
|
-
export type
|
|
1114
|
+
export type ResponseFormat1$Outbound = {
|
|
1158
1115
|
type: string;
|
|
1159
|
-
json_schema:
|
|
1116
|
+
json_schema: JsonSchema$Outbound;
|
|
1160
1117
|
};
|
|
1161
1118
|
|
|
1162
1119
|
/** @internal */
|
|
1163
|
-
export const
|
|
1164
|
-
|
|
1120
|
+
export const ResponseFormat1$outboundSchema: z.ZodType<
|
|
1121
|
+
ResponseFormat1$Outbound,
|
|
1165
1122
|
z.ZodTypeDef,
|
|
1166
|
-
|
|
1123
|
+
ResponseFormat1
|
|
1167
1124
|
> = z.object({
|
|
1168
|
-
type:
|
|
1169
|
-
jsonSchema: z.lazy(() =>
|
|
1125
|
+
type: ResponseFormatType$outboundSchema,
|
|
1126
|
+
jsonSchema: z.lazy(() => JsonSchema$outboundSchema),
|
|
1170
1127
|
}).transform((v) => {
|
|
1171
1128
|
return remap$(v, {
|
|
1172
1129
|
jsonSchema: "json_schema",
|
|
@@ -1177,157 +1134,149 @@ export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
|
1177
1134
|
* @internal
|
|
1178
1135
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1179
1136
|
*/
|
|
1180
|
-
export namespace
|
|
1181
|
-
/** @deprecated use `
|
|
1182
|
-
export const inboundSchema =
|
|
1183
|
-
/** @deprecated use `
|
|
1184
|
-
export const outboundSchema =
|
|
1185
|
-
/** @deprecated use `
|
|
1186
|
-
export type Outbound =
|
|
1137
|
+
export namespace ResponseFormat1$ {
|
|
1138
|
+
/** @deprecated use `ResponseFormat1$inboundSchema` instead. */
|
|
1139
|
+
export const inboundSchema = ResponseFormat1$inboundSchema;
|
|
1140
|
+
/** @deprecated use `ResponseFormat1$outboundSchema` instead. */
|
|
1141
|
+
export const outboundSchema = ResponseFormat1$outboundSchema;
|
|
1142
|
+
/** @deprecated use `ResponseFormat1$Outbound` instead. */
|
|
1143
|
+
export type Outbound = ResponseFormat1$Outbound;
|
|
1187
1144
|
}
|
|
1188
1145
|
|
|
1189
|
-
export function
|
|
1190
|
-
|
|
1146
|
+
export function responseFormat1ToJSON(
|
|
1147
|
+
responseFormat1: ResponseFormat1,
|
|
1191
1148
|
): string {
|
|
1192
|
-
return JSON.stringify(
|
|
1193
|
-
UpdatePromptResponseFormat1$outboundSchema.parse(
|
|
1194
|
-
updatePromptResponseFormat1,
|
|
1195
|
-
),
|
|
1196
|
-
);
|
|
1149
|
+
return JSON.stringify(ResponseFormat1$outboundSchema.parse(responseFormat1));
|
|
1197
1150
|
}
|
|
1198
1151
|
|
|
1199
|
-
export function
|
|
1152
|
+
export function responseFormat1FromJSON(
|
|
1200
1153
|
jsonString: string,
|
|
1201
|
-
): SafeParseResult<
|
|
1154
|
+
): SafeParseResult<ResponseFormat1, SDKValidationError> {
|
|
1202
1155
|
return safeParse(
|
|
1203
1156
|
jsonString,
|
|
1204
|
-
(x) =>
|
|
1205
|
-
`Failed to parse '
|
|
1157
|
+
(x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
1158
|
+
`Failed to parse 'ResponseFormat1' from JSON`,
|
|
1206
1159
|
);
|
|
1207
1160
|
}
|
|
1208
1161
|
|
|
1209
1162
|
/** @internal */
|
|
1210
|
-
export const
|
|
1211
|
-
|
|
1163
|
+
export const ResponseFormat$inboundSchema: z.ZodType<
|
|
1164
|
+
ResponseFormat,
|
|
1212
1165
|
z.ZodTypeDef,
|
|
1213
1166
|
unknown
|
|
1214
1167
|
> = z.union([
|
|
1215
|
-
z.lazy(() =>
|
|
1216
|
-
z.lazy(() =>
|
|
1168
|
+
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1169
|
+
z.lazy(() => ResponseFormat1$inboundSchema),
|
|
1217
1170
|
]);
|
|
1218
1171
|
|
|
1219
1172
|
/** @internal */
|
|
1220
|
-
export type
|
|
1221
|
-
|
|
|
1222
|
-
|
|
|
1173
|
+
export type ResponseFormat$Outbound =
|
|
1174
|
+
| ResponseFormat2$Outbound
|
|
1175
|
+
| ResponseFormat1$Outbound;
|
|
1223
1176
|
|
|
1224
1177
|
/** @internal */
|
|
1225
|
-
export const
|
|
1226
|
-
|
|
1178
|
+
export const ResponseFormat$outboundSchema: z.ZodType<
|
|
1179
|
+
ResponseFormat$Outbound,
|
|
1227
1180
|
z.ZodTypeDef,
|
|
1228
|
-
|
|
1181
|
+
ResponseFormat
|
|
1229
1182
|
> = z.union([
|
|
1230
|
-
z.lazy(() =>
|
|
1231
|
-
z.lazy(() =>
|
|
1183
|
+
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1184
|
+
z.lazy(() => ResponseFormat1$outboundSchema),
|
|
1232
1185
|
]);
|
|
1233
1186
|
|
|
1234
1187
|
/**
|
|
1235
1188
|
* @internal
|
|
1236
1189
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1237
1190
|
*/
|
|
1238
|
-
export namespace
|
|
1239
|
-
/** @deprecated use `
|
|
1240
|
-
export const inboundSchema =
|
|
1241
|
-
/** @deprecated use `
|
|
1242
|
-
export const outboundSchema =
|
|
1243
|
-
/** @deprecated use `
|
|
1244
|
-
export type Outbound =
|
|
1191
|
+
export namespace ResponseFormat$ {
|
|
1192
|
+
/** @deprecated use `ResponseFormat$inboundSchema` instead. */
|
|
1193
|
+
export const inboundSchema = ResponseFormat$inboundSchema;
|
|
1194
|
+
/** @deprecated use `ResponseFormat$outboundSchema` instead. */
|
|
1195
|
+
export const outboundSchema = ResponseFormat$outboundSchema;
|
|
1196
|
+
/** @deprecated use `ResponseFormat$Outbound` instead. */
|
|
1197
|
+
export type Outbound = ResponseFormat$Outbound;
|
|
1245
1198
|
}
|
|
1246
1199
|
|
|
1247
|
-
export function
|
|
1248
|
-
|
|
1249
|
-
): string {
|
|
1250
|
-
return JSON.stringify(
|
|
1251
|
-
UpdatePromptResponseFormat$outboundSchema.parse(updatePromptResponseFormat),
|
|
1252
|
-
);
|
|
1200
|
+
export function responseFormatToJSON(responseFormat: ResponseFormat): string {
|
|
1201
|
+
return JSON.stringify(ResponseFormat$outboundSchema.parse(responseFormat));
|
|
1253
1202
|
}
|
|
1254
1203
|
|
|
1255
|
-
export function
|
|
1204
|
+
export function responseFormatFromJSON(
|
|
1256
1205
|
jsonString: string,
|
|
1257
|
-
): SafeParseResult<
|
|
1206
|
+
): SafeParseResult<ResponseFormat, SDKValidationError> {
|
|
1258
1207
|
return safeParse(
|
|
1259
1208
|
jsonString,
|
|
1260
|
-
(x) =>
|
|
1261
|
-
`Failed to parse '
|
|
1209
|
+
(x) => ResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1210
|
+
`Failed to parse 'ResponseFormat' from JSON`,
|
|
1262
1211
|
);
|
|
1263
1212
|
}
|
|
1264
1213
|
|
|
1265
1214
|
/** @internal */
|
|
1266
|
-
export const
|
|
1267
|
-
typeof
|
|
1268
|
-
> = z.nativeEnum(
|
|
1215
|
+
export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
1216
|
+
typeof PhotoRealVersion
|
|
1217
|
+
> = z.nativeEnum(PhotoRealVersion);
|
|
1269
1218
|
|
|
1270
1219
|
/** @internal */
|
|
1271
|
-
export const
|
|
1272
|
-
typeof
|
|
1273
|
-
> =
|
|
1220
|
+
export const PhotoRealVersion$outboundSchema: z.ZodNativeEnum<
|
|
1221
|
+
typeof PhotoRealVersion
|
|
1222
|
+
> = PhotoRealVersion$inboundSchema;
|
|
1274
1223
|
|
|
1275
1224
|
/**
|
|
1276
1225
|
* @internal
|
|
1277
1226
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1278
1227
|
*/
|
|
1279
|
-
export namespace
|
|
1280
|
-
/** @deprecated use `
|
|
1281
|
-
export const inboundSchema =
|
|
1282
|
-
/** @deprecated use `
|
|
1283
|
-
export const outboundSchema =
|
|
1228
|
+
export namespace PhotoRealVersion$ {
|
|
1229
|
+
/** @deprecated use `PhotoRealVersion$inboundSchema` instead. */
|
|
1230
|
+
export const inboundSchema = PhotoRealVersion$inboundSchema;
|
|
1231
|
+
/** @deprecated use `PhotoRealVersion$outboundSchema` instead. */
|
|
1232
|
+
export const outboundSchema = PhotoRealVersion$outboundSchema;
|
|
1284
1233
|
}
|
|
1285
1234
|
|
|
1286
1235
|
/** @internal */
|
|
1287
|
-
export const
|
|
1288
|
-
typeof
|
|
1289
|
-
> = z.nativeEnum(
|
|
1236
|
+
export const EncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
1237
|
+
typeof EncodingFormat
|
|
1238
|
+
> = z.nativeEnum(EncodingFormat);
|
|
1290
1239
|
|
|
1291
1240
|
/** @internal */
|
|
1292
|
-
export const
|
|
1293
|
-
typeof
|
|
1294
|
-
> =
|
|
1241
|
+
export const EncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
1242
|
+
typeof EncodingFormat
|
|
1243
|
+
> = EncodingFormat$inboundSchema;
|
|
1295
1244
|
|
|
1296
1245
|
/**
|
|
1297
1246
|
* @internal
|
|
1298
1247
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1299
1248
|
*/
|
|
1300
|
-
export namespace
|
|
1301
|
-
/** @deprecated use `
|
|
1302
|
-
export const inboundSchema =
|
|
1303
|
-
/** @deprecated use `
|
|
1304
|
-
export const outboundSchema =
|
|
1249
|
+
export namespace EncodingFormat$ {
|
|
1250
|
+
/** @deprecated use `EncodingFormat$inboundSchema` instead. */
|
|
1251
|
+
export const inboundSchema = EncodingFormat$inboundSchema;
|
|
1252
|
+
/** @deprecated use `EncodingFormat$outboundSchema` instead. */
|
|
1253
|
+
export const outboundSchema = EncodingFormat$outboundSchema;
|
|
1305
1254
|
}
|
|
1306
1255
|
|
|
1307
1256
|
/** @internal */
|
|
1308
|
-
export const
|
|
1309
|
-
typeof
|
|
1310
|
-
> = z.nativeEnum(
|
|
1257
|
+
export const ReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1258
|
+
typeof ReasoningEffort
|
|
1259
|
+
> = z.nativeEnum(ReasoningEffort);
|
|
1311
1260
|
|
|
1312
1261
|
/** @internal */
|
|
1313
|
-
export const
|
|
1314
|
-
typeof
|
|
1315
|
-
> =
|
|
1262
|
+
export const ReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
1263
|
+
typeof ReasoningEffort
|
|
1264
|
+
> = ReasoningEffort$inboundSchema;
|
|
1316
1265
|
|
|
1317
1266
|
/**
|
|
1318
1267
|
* @internal
|
|
1319
1268
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1320
1269
|
*/
|
|
1321
|
-
export namespace
|
|
1322
|
-
/** @deprecated use `
|
|
1323
|
-
export const inboundSchema =
|
|
1324
|
-
/** @deprecated use `
|
|
1325
|
-
export const outboundSchema =
|
|
1270
|
+
export namespace ReasoningEffort$ {
|
|
1271
|
+
/** @deprecated use `ReasoningEffort$inboundSchema` instead. */
|
|
1272
|
+
export const inboundSchema = ReasoningEffort$inboundSchema;
|
|
1273
|
+
/** @deprecated use `ReasoningEffort$outboundSchema` instead. */
|
|
1274
|
+
export const outboundSchema = ReasoningEffort$outboundSchema;
|
|
1326
1275
|
}
|
|
1327
1276
|
|
|
1328
1277
|
/** @internal */
|
|
1329
|
-
export const
|
|
1330
|
-
|
|
1278
|
+
export const ModelParameters$inboundSchema: z.ZodType<
|
|
1279
|
+
ModelParameters,
|
|
1331
1280
|
z.ZodTypeDef,
|
|
1332
1281
|
unknown
|
|
1333
1282
|
> = z.object({
|
|
@@ -1339,19 +1288,19 @@ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
1339
1288
|
presencePenalty: z.number().optional(),
|
|
1340
1289
|
numImages: z.number().optional(),
|
|
1341
1290
|
seed: z.number().optional(),
|
|
1342
|
-
format:
|
|
1291
|
+
format: Format$inboundSchema.optional(),
|
|
1343
1292
|
dimensions: z.string().optional(),
|
|
1344
|
-
quality:
|
|
1293
|
+
quality: Quality$inboundSchema.optional(),
|
|
1345
1294
|
style: z.string().optional(),
|
|
1346
1295
|
responseFormat: z.nullable(
|
|
1347
1296
|
z.union([
|
|
1348
|
-
z.lazy(() =>
|
|
1349
|
-
z.lazy(() =>
|
|
1297
|
+
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1298
|
+
z.lazy(() => ResponseFormat1$inboundSchema),
|
|
1350
1299
|
]),
|
|
1351
1300
|
).optional(),
|
|
1352
|
-
photoRealVersion:
|
|
1353
|
-
encoding_format:
|
|
1354
|
-
reasoningEffort:
|
|
1301
|
+
photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
|
|
1302
|
+
encoding_format: EncodingFormat$inboundSchema.optional(),
|
|
1303
|
+
reasoningEffort: ReasoningEffort$inboundSchema.optional(),
|
|
1355
1304
|
budgetTokens: z.number().optional(),
|
|
1356
1305
|
}).transform((v) => {
|
|
1357
1306
|
return remap$(v, {
|
|
@@ -1360,7 +1309,7 @@ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
1360
1309
|
});
|
|
1361
1310
|
|
|
1362
1311
|
/** @internal */
|
|
1363
|
-
export type
|
|
1312
|
+
export type ModelParameters$Outbound = {
|
|
1364
1313
|
temperature?: number | undefined;
|
|
1365
1314
|
maxTokens?: number | undefined;
|
|
1366
1315
|
topK?: number | undefined;
|
|
@@ -1374,8 +1323,8 @@ export type UpdatePromptModelParameters$Outbound = {
|
|
|
1374
1323
|
quality?: string | undefined;
|
|
1375
1324
|
style?: string | undefined;
|
|
1376
1325
|
responseFormat?:
|
|
1377
|
-
|
|
|
1378
|
-
|
|
|
1326
|
+
| ResponseFormat2$Outbound
|
|
1327
|
+
| ResponseFormat1$Outbound
|
|
1379
1328
|
| null
|
|
1380
1329
|
| undefined;
|
|
1381
1330
|
photoRealVersion?: string | undefined;
|
|
@@ -1385,10 +1334,10 @@ export type UpdatePromptModelParameters$Outbound = {
|
|
|
1385
1334
|
};
|
|
1386
1335
|
|
|
1387
1336
|
/** @internal */
|
|
1388
|
-
export const
|
|
1389
|
-
|
|
1337
|
+
export const ModelParameters$outboundSchema: z.ZodType<
|
|
1338
|
+
ModelParameters$Outbound,
|
|
1390
1339
|
z.ZodTypeDef,
|
|
1391
|
-
|
|
1340
|
+
ModelParameters
|
|
1392
1341
|
> = z.object({
|
|
1393
1342
|
temperature: z.number().optional(),
|
|
1394
1343
|
maxTokens: z.number().optional(),
|
|
@@ -1398,19 +1347,19 @@ export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
1398
1347
|
presencePenalty: z.number().optional(),
|
|
1399
1348
|
numImages: z.number().optional(),
|
|
1400
1349
|
seed: z.number().optional(),
|
|
1401
|
-
format:
|
|
1350
|
+
format: Format$outboundSchema.optional(),
|
|
1402
1351
|
dimensions: z.string().optional(),
|
|
1403
|
-
quality:
|
|
1352
|
+
quality: Quality$outboundSchema.optional(),
|
|
1404
1353
|
style: z.string().optional(),
|
|
1405
1354
|
responseFormat: z.nullable(
|
|
1406
1355
|
z.union([
|
|
1407
|
-
z.lazy(() =>
|
|
1408
|
-
z.lazy(() =>
|
|
1356
|
+
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1357
|
+
z.lazy(() => ResponseFormat1$outboundSchema),
|
|
1409
1358
|
]),
|
|
1410
1359
|
).optional(),
|
|
1411
|
-
photoRealVersion:
|
|
1412
|
-
encodingFormat:
|
|
1413
|
-
reasoningEffort:
|
|
1360
|
+
photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
|
|
1361
|
+
encodingFormat: EncodingFormat$outboundSchema.optional(),
|
|
1362
|
+
reasoningEffort: ReasoningEffort$outboundSchema.optional(),
|
|
1414
1363
|
budgetTokens: z.number().optional(),
|
|
1415
1364
|
}).transform((v) => {
|
|
1416
1365
|
return remap$(v, {
|
|
@@ -1422,54 +1371,48 @@ export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
1422
1371
|
* @internal
|
|
1423
1372
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1424
1373
|
*/
|
|
1425
|
-
export namespace
|
|
1426
|
-
/** @deprecated use `
|
|
1427
|
-
export const inboundSchema =
|
|
1428
|
-
/** @deprecated use `
|
|
1429
|
-
export const outboundSchema =
|
|
1430
|
-
/** @deprecated use `
|
|
1431
|
-
export type Outbound =
|
|
1374
|
+
export namespace ModelParameters$ {
|
|
1375
|
+
/** @deprecated use `ModelParameters$inboundSchema` instead. */
|
|
1376
|
+
export const inboundSchema = ModelParameters$inboundSchema;
|
|
1377
|
+
/** @deprecated use `ModelParameters$outboundSchema` instead. */
|
|
1378
|
+
export const outboundSchema = ModelParameters$outboundSchema;
|
|
1379
|
+
/** @deprecated use `ModelParameters$Outbound` instead. */
|
|
1380
|
+
export type Outbound = ModelParameters$Outbound;
|
|
1432
1381
|
}
|
|
1433
1382
|
|
|
1434
|
-
export function
|
|
1435
|
-
|
|
1383
|
+
export function modelParametersToJSON(
|
|
1384
|
+
modelParameters: ModelParameters,
|
|
1436
1385
|
): string {
|
|
1437
|
-
return JSON.stringify(
|
|
1438
|
-
UpdatePromptModelParameters$outboundSchema.parse(
|
|
1439
|
-
updatePromptModelParameters,
|
|
1440
|
-
),
|
|
1441
|
-
);
|
|
1386
|
+
return JSON.stringify(ModelParameters$outboundSchema.parse(modelParameters));
|
|
1442
1387
|
}
|
|
1443
1388
|
|
|
1444
|
-
export function
|
|
1389
|
+
export function modelParametersFromJSON(
|
|
1445
1390
|
jsonString: string,
|
|
1446
|
-
): SafeParseResult<
|
|
1391
|
+
): SafeParseResult<ModelParameters, SDKValidationError> {
|
|
1447
1392
|
return safeParse(
|
|
1448
1393
|
jsonString,
|
|
1449
|
-
(x) =>
|
|
1450
|
-
`Failed to parse '
|
|
1394
|
+
(x) => ModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1395
|
+
`Failed to parse 'ModelParameters' from JSON`,
|
|
1451
1396
|
);
|
|
1452
1397
|
}
|
|
1453
1398
|
|
|
1454
1399
|
/** @internal */
|
|
1455
|
-
export const
|
|
1456
|
-
|
|
1457
|
-
> = z.nativeEnum(UpdatePromptProvider);
|
|
1400
|
+
export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
|
|
1401
|
+
.nativeEnum(Provider);
|
|
1458
1402
|
|
|
1459
1403
|
/** @internal */
|
|
1460
|
-
export const
|
|
1461
|
-
|
|
1462
|
-
> = UpdatePromptProvider$inboundSchema;
|
|
1404
|
+
export const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider> =
|
|
1405
|
+
Provider$inboundSchema;
|
|
1463
1406
|
|
|
1464
1407
|
/**
|
|
1465
1408
|
* @internal
|
|
1466
1409
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1467
1410
|
*/
|
|
1468
|
-
export namespace
|
|
1469
|
-
/** @deprecated use `
|
|
1470
|
-
export const inboundSchema =
|
|
1471
|
-
/** @deprecated use `
|
|
1472
|
-
export const outboundSchema =
|
|
1411
|
+
export namespace Provider$ {
|
|
1412
|
+
/** @deprecated use `Provider$inboundSchema` instead. */
|
|
1413
|
+
export const inboundSchema = Provider$inboundSchema;
|
|
1414
|
+
/** @deprecated use `Provider$outboundSchema` instead. */
|
|
1415
|
+
export const outboundSchema = Provider$outboundSchema;
|
|
1473
1416
|
}
|
|
1474
1417
|
|
|
1475
1418
|
/** @internal */
|
|
@@ -2048,17 +1991,16 @@ export function updatePromptMessagesFromJSON(
|
|
|
2048
1991
|
}
|
|
2049
1992
|
|
|
2050
1993
|
/** @internal */
|
|
2051
|
-
export const
|
|
2052
|
-
|
|
1994
|
+
export const PromptConfig$inboundSchema: z.ZodType<
|
|
1995
|
+
PromptConfig,
|
|
2053
1996
|
z.ZodTypeDef,
|
|
2054
1997
|
unknown
|
|
2055
1998
|
> = z.object({
|
|
2056
1999
|
stream: z.boolean().optional(),
|
|
2057
2000
|
model: z.string().optional(),
|
|
2058
|
-
model_type:
|
|
2059
|
-
model_parameters: z.lazy(() =>
|
|
2060
|
-
|
|
2061
|
-
provider: UpdatePromptProvider$inboundSchema.optional(),
|
|
2001
|
+
model_type: ModelType$inboundSchema.optional(),
|
|
2002
|
+
model_parameters: z.lazy(() => ModelParameters$inboundSchema).optional(),
|
|
2003
|
+
provider: Provider$inboundSchema.optional(),
|
|
2062
2004
|
version: z.string().optional(),
|
|
2063
2005
|
messages: z.array(z.lazy(() => UpdatePromptMessages$inboundSchema)),
|
|
2064
2006
|
}).transform((v) => {
|
|
@@ -2069,28 +2011,27 @@ export const UpdatePromptPromptConfig$inboundSchema: z.ZodType<
|
|
|
2069
2011
|
});
|
|
2070
2012
|
|
|
2071
2013
|
/** @internal */
|
|
2072
|
-
export type
|
|
2014
|
+
export type PromptConfig$Outbound = {
|
|
2073
2015
|
stream?: boolean | undefined;
|
|
2074
2016
|
model?: string | undefined;
|
|
2075
2017
|
model_type?: string | undefined;
|
|
2076
|
-
model_parameters?:
|
|
2018
|
+
model_parameters?: ModelParameters$Outbound | undefined;
|
|
2077
2019
|
provider?: string | undefined;
|
|
2078
2020
|
version?: string | undefined;
|
|
2079
2021
|
messages: Array<UpdatePromptMessages$Outbound>;
|
|
2080
2022
|
};
|
|
2081
2023
|
|
|
2082
2024
|
/** @internal */
|
|
2083
|
-
export const
|
|
2084
|
-
|
|
2025
|
+
export const PromptConfig$outboundSchema: z.ZodType<
|
|
2026
|
+
PromptConfig$Outbound,
|
|
2085
2027
|
z.ZodTypeDef,
|
|
2086
|
-
|
|
2028
|
+
PromptConfig
|
|
2087
2029
|
> = z.object({
|
|
2088
2030
|
stream: z.boolean().optional(),
|
|
2089
2031
|
model: z.string().optional(),
|
|
2090
|
-
modelType:
|
|
2091
|
-
modelParameters: z.lazy(() =>
|
|
2092
|
-
|
|
2093
|
-
provider: UpdatePromptProvider$outboundSchema.optional(),
|
|
2032
|
+
modelType: ModelType$outboundSchema.optional(),
|
|
2033
|
+
modelParameters: z.lazy(() => ModelParameters$outboundSchema).optional(),
|
|
2034
|
+
provider: Provider$outboundSchema.optional(),
|
|
2094
2035
|
version: z.string().optional(),
|
|
2095
2036
|
messages: z.array(z.lazy(() => UpdatePromptMessages$outboundSchema)),
|
|
2096
2037
|
}).transform((v) => {
|
|
@@ -2104,73 +2045,65 @@ export const UpdatePromptPromptConfig$outboundSchema: z.ZodType<
|
|
|
2104
2045
|
* @internal
|
|
2105
2046
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2106
2047
|
*/
|
|
2107
|
-
export namespace
|
|
2108
|
-
/** @deprecated use `
|
|
2109
|
-
export const inboundSchema =
|
|
2110
|
-
/** @deprecated use `
|
|
2111
|
-
export const outboundSchema =
|
|
2112
|
-
/** @deprecated use `
|
|
2113
|
-
export type Outbound =
|
|
2048
|
+
export namespace PromptConfig$ {
|
|
2049
|
+
/** @deprecated use `PromptConfig$inboundSchema` instead. */
|
|
2050
|
+
export const inboundSchema = PromptConfig$inboundSchema;
|
|
2051
|
+
/** @deprecated use `PromptConfig$outboundSchema` instead. */
|
|
2052
|
+
export const outboundSchema = PromptConfig$outboundSchema;
|
|
2053
|
+
/** @deprecated use `PromptConfig$Outbound` instead. */
|
|
2054
|
+
export type Outbound = PromptConfig$Outbound;
|
|
2114
2055
|
}
|
|
2115
2056
|
|
|
2116
|
-
export function
|
|
2117
|
-
|
|
2118
|
-
): string {
|
|
2119
|
-
return JSON.stringify(
|
|
2120
|
-
UpdatePromptPromptConfig$outboundSchema.parse(updatePromptPromptConfig),
|
|
2121
|
-
);
|
|
2057
|
+
export function promptConfigToJSON(promptConfig: PromptConfig): string {
|
|
2058
|
+
return JSON.stringify(PromptConfig$outboundSchema.parse(promptConfig));
|
|
2122
2059
|
}
|
|
2123
2060
|
|
|
2124
|
-
export function
|
|
2061
|
+
export function promptConfigFromJSON(
|
|
2125
2062
|
jsonString: string,
|
|
2126
|
-
): SafeParseResult<
|
|
2063
|
+
): SafeParseResult<PromptConfig, SDKValidationError> {
|
|
2127
2064
|
return safeParse(
|
|
2128
2065
|
jsonString,
|
|
2129
|
-
(x) =>
|
|
2130
|
-
`Failed to parse '
|
|
2066
|
+
(x) => PromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
2067
|
+
`Failed to parse 'PromptConfig' from JSON`,
|
|
2131
2068
|
);
|
|
2132
2069
|
}
|
|
2133
2070
|
|
|
2134
2071
|
/** @internal */
|
|
2135
|
-
export const
|
|
2136
|
-
|
|
2137
|
-
> = z.nativeEnum(UpdatePromptUseCases);
|
|
2072
|
+
export const UseCases$inboundSchema: z.ZodNativeEnum<typeof UseCases> = z
|
|
2073
|
+
.nativeEnum(UseCases);
|
|
2138
2074
|
|
|
2139
2075
|
/** @internal */
|
|
2140
|
-
export const
|
|
2141
|
-
|
|
2142
|
-
> = UpdatePromptUseCases$inboundSchema;
|
|
2076
|
+
export const UseCases$outboundSchema: z.ZodNativeEnum<typeof UseCases> =
|
|
2077
|
+
UseCases$inboundSchema;
|
|
2143
2078
|
|
|
2144
2079
|
/**
|
|
2145
2080
|
* @internal
|
|
2146
2081
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2147
2082
|
*/
|
|
2148
|
-
export namespace
|
|
2149
|
-
/** @deprecated use `
|
|
2150
|
-
export const inboundSchema =
|
|
2151
|
-
/** @deprecated use `
|
|
2152
|
-
export const outboundSchema =
|
|
2083
|
+
export namespace UseCases$ {
|
|
2084
|
+
/** @deprecated use `UseCases$inboundSchema` instead. */
|
|
2085
|
+
export const inboundSchema = UseCases$inboundSchema;
|
|
2086
|
+
/** @deprecated use `UseCases$outboundSchema` instead. */
|
|
2087
|
+
export const outboundSchema = UseCases$outboundSchema;
|
|
2153
2088
|
}
|
|
2154
2089
|
|
|
2155
2090
|
/** @internal */
|
|
2156
|
-
export const
|
|
2157
|
-
|
|
2158
|
-
> = z.nativeEnum(UpdatePromptLanguage);
|
|
2091
|
+
export const Language$inboundSchema: z.ZodNativeEnum<typeof Language> = z
|
|
2092
|
+
.nativeEnum(Language);
|
|
2159
2093
|
|
|
2160
2094
|
/** @internal */
|
|
2161
|
-
export const
|
|
2162
|
-
|
|
2163
|
-
> = UpdatePromptLanguage$inboundSchema;
|
|
2095
|
+
export const Language$outboundSchema: z.ZodNativeEnum<typeof Language> =
|
|
2096
|
+
Language$inboundSchema;
|
|
2164
2097
|
|
|
2165
2098
|
/**
|
|
2166
2099
|
* @internal
|
|
2167
2100
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2168
2101
|
*/
|
|
2169
|
-
export namespace
|
|
2170
|
-
/** @deprecated use `
|
|
2171
|
-
export const inboundSchema =
|
|
2172
|
-
/** @deprecated use `
|
|
2173
|
-
export const outboundSchema =
|
|
2102
|
+
export namespace Language$ {
|
|
2103
|
+
/** @deprecated use `Language$inboundSchema` instead. */
|
|
2104
|
+
export const inboundSchema = Language$inboundSchema;
|
|
2105
|
+
/** @deprecated use `Language$outboundSchema` instead. */
|
|
2106
|
+
export const outboundSchema = Language$outboundSchema;
|
|
2174
2107
|
}
|
|
2175
2108
|
|
|
2176
2109
|
/** @internal */
|
|
@@ -2179,8 +2112,8 @@ export const UpdatePromptMetadata$inboundSchema: z.ZodType<
|
|
|
2179
2112
|
z.ZodTypeDef,
|
|
2180
2113
|
unknown
|
|
2181
2114
|
> = z.object({
|
|
2182
|
-
use_cases: z.array(
|
|
2183
|
-
language:
|
|
2115
|
+
use_cases: z.array(UseCases$inboundSchema).optional(),
|
|
2116
|
+
language: Language$inboundSchema.optional(),
|
|
2184
2117
|
}).transform((v) => {
|
|
2185
2118
|
return remap$(v, {
|
|
2186
2119
|
"use_cases": "useCases",
|
|
@@ -2199,8 +2132,8 @@ export const UpdatePromptMetadata$outboundSchema: z.ZodType<
|
|
|
2199
2132
|
z.ZodTypeDef,
|
|
2200
2133
|
UpdatePromptMetadata
|
|
2201
2134
|
> = z.object({
|
|
2202
|
-
useCases: z.array(
|
|
2203
|
-
language:
|
|
2135
|
+
useCases: z.array(UseCases$outboundSchema).optional(),
|
|
2136
|
+
language: Language$outboundSchema.optional(),
|
|
2204
2137
|
}).transform((v) => {
|
|
2205
2138
|
return remap$(v, {
|
|
2206
2139
|
useCases: "use_cases",
|
|
@@ -2252,8 +2185,7 @@ export const UpdatePromptRequestBody$inboundSchema: z.ZodType<
|
|
|
2252
2185
|
updated_by_id: z.string().optional(),
|
|
2253
2186
|
display_name: z.string().optional(),
|
|
2254
2187
|
description: z.nullable(z.string()).optional(),
|
|
2255
|
-
prompt_config: z.lazy(() =>
|
|
2256
|
-
.optional(),
|
|
2188
|
+
prompt_config: z.lazy(() => PromptConfig$inboundSchema).optional(),
|
|
2257
2189
|
metadata: z.lazy(() => UpdatePromptMetadata$inboundSchema).optional(),
|
|
2258
2190
|
}).transform((v) => {
|
|
2259
2191
|
return remap$(v, {
|
|
@@ -2275,7 +2207,7 @@ export type UpdatePromptRequestBody$Outbound = {
|
|
|
2275
2207
|
updated_by_id?: string | undefined;
|
|
2276
2208
|
display_name?: string | undefined;
|
|
2277
2209
|
description?: string | null | undefined;
|
|
2278
|
-
prompt_config?:
|
|
2210
|
+
prompt_config?: PromptConfig$Outbound | undefined;
|
|
2279
2211
|
metadata?: UpdatePromptMetadata$Outbound | undefined;
|
|
2280
2212
|
};
|
|
2281
2213
|
|
|
@@ -2293,8 +2225,7 @@ export const UpdatePromptRequestBody$outboundSchema: z.ZodType<
|
|
|
2293
2225
|
updatedById: z.string().optional(),
|
|
2294
2226
|
displayName: z.string().optional(),
|
|
2295
2227
|
description: z.nullable(z.string()).optional(),
|
|
2296
|
-
promptConfig: z.lazy(() =>
|
|
2297
|
-
.optional(),
|
|
2228
|
+
promptConfig: z.lazy(() => PromptConfig$outboundSchema).optional(),
|
|
2298
2229
|
metadata: z.lazy(() => UpdatePromptMetadata$outboundSchema).optional(),
|
|
2299
2230
|
}).transform((v) => {
|
|
2300
2231
|
return remap$(v, {
|
|
@@ -2424,170 +2355,169 @@ export namespace UpdatePromptPromptsType$ {
|
|
|
2424
2355
|
}
|
|
2425
2356
|
|
|
2426
2357
|
/** @internal */
|
|
2427
|
-
export const
|
|
2428
|
-
typeof
|
|
2429
|
-
> = z.nativeEnum(
|
|
2358
|
+
export const UpdatePromptModelType$inboundSchema: z.ZodNativeEnum<
|
|
2359
|
+
typeof UpdatePromptModelType
|
|
2360
|
+
> = z.nativeEnum(UpdatePromptModelType);
|
|
2430
2361
|
|
|
2431
2362
|
/** @internal */
|
|
2432
|
-
export const
|
|
2433
|
-
typeof
|
|
2434
|
-
> =
|
|
2363
|
+
export const UpdatePromptModelType$outboundSchema: z.ZodNativeEnum<
|
|
2364
|
+
typeof UpdatePromptModelType
|
|
2365
|
+
> = UpdatePromptModelType$inboundSchema;
|
|
2435
2366
|
|
|
2436
2367
|
/**
|
|
2437
2368
|
* @internal
|
|
2438
2369
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2439
2370
|
*/
|
|
2440
|
-
export namespace
|
|
2441
|
-
/** @deprecated use `
|
|
2442
|
-
export const inboundSchema =
|
|
2443
|
-
/** @deprecated use `
|
|
2444
|
-
export const outboundSchema =
|
|
2371
|
+
export namespace UpdatePromptModelType$ {
|
|
2372
|
+
/** @deprecated use `UpdatePromptModelType$inboundSchema` instead. */
|
|
2373
|
+
export const inboundSchema = UpdatePromptModelType$inboundSchema;
|
|
2374
|
+
/** @deprecated use `UpdatePromptModelType$outboundSchema` instead. */
|
|
2375
|
+
export const outboundSchema = UpdatePromptModelType$outboundSchema;
|
|
2445
2376
|
}
|
|
2446
2377
|
|
|
2447
2378
|
/** @internal */
|
|
2448
|
-
export const
|
|
2449
|
-
typeof
|
|
2450
|
-
> = z.nativeEnum(
|
|
2379
|
+
export const UpdatePromptFormat$inboundSchema: z.ZodNativeEnum<
|
|
2380
|
+
typeof UpdatePromptFormat
|
|
2381
|
+
> = z.nativeEnum(UpdatePromptFormat);
|
|
2451
2382
|
|
|
2452
2383
|
/** @internal */
|
|
2453
|
-
export const
|
|
2454
|
-
typeof
|
|
2455
|
-
> =
|
|
2384
|
+
export const UpdatePromptFormat$outboundSchema: z.ZodNativeEnum<
|
|
2385
|
+
typeof UpdatePromptFormat
|
|
2386
|
+
> = UpdatePromptFormat$inboundSchema;
|
|
2456
2387
|
|
|
2457
2388
|
/**
|
|
2458
2389
|
* @internal
|
|
2459
2390
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2460
2391
|
*/
|
|
2461
|
-
export namespace
|
|
2462
|
-
/** @deprecated use `
|
|
2463
|
-
export const inboundSchema =
|
|
2464
|
-
/** @deprecated use `
|
|
2465
|
-
export const outboundSchema =
|
|
2392
|
+
export namespace UpdatePromptFormat$ {
|
|
2393
|
+
/** @deprecated use `UpdatePromptFormat$inboundSchema` instead. */
|
|
2394
|
+
export const inboundSchema = UpdatePromptFormat$inboundSchema;
|
|
2395
|
+
/** @deprecated use `UpdatePromptFormat$outboundSchema` instead. */
|
|
2396
|
+
export const outboundSchema = UpdatePromptFormat$outboundSchema;
|
|
2466
2397
|
}
|
|
2467
2398
|
|
|
2468
2399
|
/** @internal */
|
|
2469
|
-
export const
|
|
2470
|
-
typeof
|
|
2471
|
-
> = z.nativeEnum(
|
|
2400
|
+
export const UpdatePromptQuality$inboundSchema: z.ZodNativeEnum<
|
|
2401
|
+
typeof UpdatePromptQuality
|
|
2402
|
+
> = z.nativeEnum(UpdatePromptQuality);
|
|
2472
2403
|
|
|
2473
2404
|
/** @internal */
|
|
2474
|
-
export const
|
|
2475
|
-
typeof
|
|
2476
|
-
> =
|
|
2405
|
+
export const UpdatePromptQuality$outboundSchema: z.ZodNativeEnum<
|
|
2406
|
+
typeof UpdatePromptQuality
|
|
2407
|
+
> = UpdatePromptQuality$inboundSchema;
|
|
2477
2408
|
|
|
2478
2409
|
/**
|
|
2479
2410
|
* @internal
|
|
2480
2411
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2481
2412
|
*/
|
|
2482
|
-
export namespace
|
|
2483
|
-
/** @deprecated use `
|
|
2484
|
-
export const inboundSchema =
|
|
2485
|
-
/** @deprecated use `
|
|
2486
|
-
export const outboundSchema =
|
|
2413
|
+
export namespace UpdatePromptQuality$ {
|
|
2414
|
+
/** @deprecated use `UpdatePromptQuality$inboundSchema` instead. */
|
|
2415
|
+
export const inboundSchema = UpdatePromptQuality$inboundSchema;
|
|
2416
|
+
/** @deprecated use `UpdatePromptQuality$outboundSchema` instead. */
|
|
2417
|
+
export const outboundSchema = UpdatePromptQuality$outboundSchema;
|
|
2487
2418
|
}
|
|
2488
2419
|
|
|
2489
2420
|
/** @internal */
|
|
2490
|
-
export const
|
|
2491
|
-
z.ZodNativeEnum<typeof
|
|
2492
|
-
.nativeEnum(
|
|
2421
|
+
export const UpdatePromptResponseFormatPromptsResponseType$inboundSchema:
|
|
2422
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> = z
|
|
2423
|
+
.nativeEnum(UpdatePromptResponseFormatPromptsResponseType);
|
|
2493
2424
|
|
|
2494
2425
|
/** @internal */
|
|
2495
|
-
export const
|
|
2496
|
-
z.ZodNativeEnum<typeof
|
|
2497
|
-
|
|
2426
|
+
export const UpdatePromptResponseFormatPromptsResponseType$outboundSchema:
|
|
2427
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> =
|
|
2428
|
+
UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
2498
2429
|
|
|
2499
2430
|
/**
|
|
2500
2431
|
* @internal
|
|
2501
2432
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2502
2433
|
*/
|
|
2503
|
-
export namespace
|
|
2504
|
-
/** @deprecated use `
|
|
2434
|
+
export namespace UpdatePromptResponseFormatPromptsResponseType$ {
|
|
2435
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
2505
2436
|
export const inboundSchema =
|
|
2506
|
-
|
|
2507
|
-
/** @deprecated use `
|
|
2437
|
+
UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
2438
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
2508
2439
|
export const outboundSchema =
|
|
2509
|
-
|
|
2440
|
+
UpdatePromptResponseFormatPromptsResponseType$outboundSchema;
|
|
2510
2441
|
}
|
|
2511
2442
|
|
|
2512
2443
|
/** @internal */
|
|
2513
|
-
export const
|
|
2514
|
-
|
|
2444
|
+
export const UpdatePromptResponseFormat2$inboundSchema: z.ZodType<
|
|
2445
|
+
UpdatePromptResponseFormat2,
|
|
2515
2446
|
z.ZodTypeDef,
|
|
2516
2447
|
unknown
|
|
2517
2448
|
> = z.object({
|
|
2518
|
-
type:
|
|
2449
|
+
type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
|
|
2519
2450
|
});
|
|
2520
2451
|
|
|
2521
2452
|
/** @internal */
|
|
2522
|
-
export type
|
|
2453
|
+
export type UpdatePromptResponseFormat2$Outbound = {
|
|
2523
2454
|
type: string;
|
|
2524
2455
|
};
|
|
2525
2456
|
|
|
2526
2457
|
/** @internal */
|
|
2527
|
-
export const
|
|
2528
|
-
|
|
2458
|
+
export const UpdatePromptResponseFormat2$outboundSchema: z.ZodType<
|
|
2459
|
+
UpdatePromptResponseFormat2$Outbound,
|
|
2529
2460
|
z.ZodTypeDef,
|
|
2530
|
-
|
|
2461
|
+
UpdatePromptResponseFormat2
|
|
2531
2462
|
> = z.object({
|
|
2532
|
-
type:
|
|
2463
|
+
type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
|
|
2533
2464
|
});
|
|
2534
2465
|
|
|
2535
2466
|
/**
|
|
2536
2467
|
* @internal
|
|
2537
2468
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2538
2469
|
*/
|
|
2539
|
-
export namespace
|
|
2540
|
-
/** @deprecated use `
|
|
2541
|
-
export const inboundSchema =
|
|
2542
|
-
/** @deprecated use `
|
|
2543
|
-
export const outboundSchema =
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
export type Outbound = UpdatePromptResponseFormatPrompts2$Outbound;
|
|
2470
|
+
export namespace UpdatePromptResponseFormat2$ {
|
|
2471
|
+
/** @deprecated use `UpdatePromptResponseFormat2$inboundSchema` instead. */
|
|
2472
|
+
export const inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
|
|
2473
|
+
/** @deprecated use `UpdatePromptResponseFormat2$outboundSchema` instead. */
|
|
2474
|
+
export const outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
|
|
2475
|
+
/** @deprecated use `UpdatePromptResponseFormat2$Outbound` instead. */
|
|
2476
|
+
export type Outbound = UpdatePromptResponseFormat2$Outbound;
|
|
2547
2477
|
}
|
|
2548
2478
|
|
|
2549
|
-
export function
|
|
2550
|
-
|
|
2479
|
+
export function updatePromptResponseFormat2ToJSON(
|
|
2480
|
+
updatePromptResponseFormat2: UpdatePromptResponseFormat2,
|
|
2551
2481
|
): string {
|
|
2552
2482
|
return JSON.stringify(
|
|
2553
|
-
|
|
2554
|
-
|
|
2483
|
+
UpdatePromptResponseFormat2$outboundSchema.parse(
|
|
2484
|
+
updatePromptResponseFormat2,
|
|
2555
2485
|
),
|
|
2556
2486
|
);
|
|
2557
2487
|
}
|
|
2558
2488
|
|
|
2559
|
-
export function
|
|
2489
|
+
export function updatePromptResponseFormat2FromJSON(
|
|
2560
2490
|
jsonString: string,
|
|
2561
|
-
): SafeParseResult<
|
|
2491
|
+
): SafeParseResult<UpdatePromptResponseFormat2, SDKValidationError> {
|
|
2562
2492
|
return safeParse(
|
|
2563
2493
|
jsonString,
|
|
2564
|
-
(x) =>
|
|
2565
|
-
|
|
2566
|
-
`Failed to parse 'UpdatePromptResponseFormatPrompts2' from JSON`,
|
|
2494
|
+
(x) => UpdatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
2495
|
+
`Failed to parse 'UpdatePromptResponseFormat2' from JSON`,
|
|
2567
2496
|
);
|
|
2568
2497
|
}
|
|
2569
2498
|
|
|
2570
2499
|
/** @internal */
|
|
2571
|
-
export const
|
|
2572
|
-
z.ZodNativeEnum<typeof
|
|
2573
|
-
|
|
2500
|
+
export const UpdatePromptResponseFormatPromptsType$inboundSchema:
|
|
2501
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> = z.nativeEnum(
|
|
2502
|
+
UpdatePromptResponseFormatPromptsType,
|
|
2503
|
+
);
|
|
2574
2504
|
|
|
2575
2505
|
/** @internal */
|
|
2576
|
-
export const
|
|
2577
|
-
z.ZodNativeEnum<typeof
|
|
2578
|
-
|
|
2506
|
+
export const UpdatePromptResponseFormatPromptsType$outboundSchema:
|
|
2507
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> =
|
|
2508
|
+
UpdatePromptResponseFormatPromptsType$inboundSchema;
|
|
2579
2509
|
|
|
2580
2510
|
/**
|
|
2581
2511
|
* @internal
|
|
2582
2512
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2583
2513
|
*/
|
|
2584
|
-
export namespace
|
|
2585
|
-
/** @deprecated use `
|
|
2514
|
+
export namespace UpdatePromptResponseFormatPromptsType$ {
|
|
2515
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
2586
2516
|
export const inboundSchema =
|
|
2587
|
-
|
|
2588
|
-
/** @deprecated use `
|
|
2517
|
+
UpdatePromptResponseFormatPromptsType$inboundSchema;
|
|
2518
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
2589
2519
|
export const outboundSchema =
|
|
2590
|
-
|
|
2520
|
+
UpdatePromptResponseFormatPromptsType$outboundSchema;
|
|
2591
2521
|
}
|
|
2592
2522
|
|
|
2593
2523
|
/** @internal */
|
|
@@ -2656,12 +2586,12 @@ export function updatePromptResponseFormatJsonSchemaFromJSON(
|
|
|
2656
2586
|
}
|
|
2657
2587
|
|
|
2658
2588
|
/** @internal */
|
|
2659
|
-
export const
|
|
2660
|
-
|
|
2589
|
+
export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
2590
|
+
UpdatePromptResponseFormat1,
|
|
2661
2591
|
z.ZodTypeDef,
|
|
2662
2592
|
unknown
|
|
2663
2593
|
> = z.object({
|
|
2664
|
-
type:
|
|
2594
|
+
type: UpdatePromptResponseFormatPromptsType$inboundSchema,
|
|
2665
2595
|
json_schema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$inboundSchema),
|
|
2666
2596
|
}).transform((v) => {
|
|
2667
2597
|
return remap$(v, {
|
|
@@ -2670,18 +2600,18 @@ export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
|
|
|
2670
2600
|
});
|
|
2671
2601
|
|
|
2672
2602
|
/** @internal */
|
|
2673
|
-
export type
|
|
2603
|
+
export type UpdatePromptResponseFormat1$Outbound = {
|
|
2674
2604
|
type: string;
|
|
2675
2605
|
json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
|
|
2676
2606
|
};
|
|
2677
2607
|
|
|
2678
2608
|
/** @internal */
|
|
2679
|
-
export const
|
|
2680
|
-
|
|
2609
|
+
export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
2610
|
+
UpdatePromptResponseFormat1$Outbound,
|
|
2681
2611
|
z.ZodTypeDef,
|
|
2682
|
-
|
|
2612
|
+
UpdatePromptResponseFormat1
|
|
2683
2613
|
> = z.object({
|
|
2684
|
-
type:
|
|
2614
|
+
type: UpdatePromptResponseFormatPromptsType$outboundSchema,
|
|
2685
2615
|
jsonSchema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$outboundSchema),
|
|
2686
2616
|
}).transform((v) => {
|
|
2687
2617
|
return remap$(v, {
|
|
@@ -2693,166 +2623,157 @@ export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
|
|
|
2693
2623
|
* @internal
|
|
2694
2624
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2695
2625
|
*/
|
|
2696
|
-
export namespace
|
|
2697
|
-
/** @deprecated use `
|
|
2698
|
-
export const inboundSchema =
|
|
2699
|
-
/** @deprecated use `
|
|
2700
|
-
export const outboundSchema =
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
export type Outbound = UpdatePromptResponseFormatPrompts1$Outbound;
|
|
2626
|
+
export namespace UpdatePromptResponseFormat1$ {
|
|
2627
|
+
/** @deprecated use `UpdatePromptResponseFormat1$inboundSchema` instead. */
|
|
2628
|
+
export const inboundSchema = UpdatePromptResponseFormat1$inboundSchema;
|
|
2629
|
+
/** @deprecated use `UpdatePromptResponseFormat1$outboundSchema` instead. */
|
|
2630
|
+
export const outboundSchema = UpdatePromptResponseFormat1$outboundSchema;
|
|
2631
|
+
/** @deprecated use `UpdatePromptResponseFormat1$Outbound` instead. */
|
|
2632
|
+
export type Outbound = UpdatePromptResponseFormat1$Outbound;
|
|
2704
2633
|
}
|
|
2705
2634
|
|
|
2706
|
-
export function
|
|
2707
|
-
|
|
2635
|
+
export function updatePromptResponseFormat1ToJSON(
|
|
2636
|
+
updatePromptResponseFormat1: UpdatePromptResponseFormat1,
|
|
2708
2637
|
): string {
|
|
2709
2638
|
return JSON.stringify(
|
|
2710
|
-
|
|
2711
|
-
|
|
2639
|
+
UpdatePromptResponseFormat1$outboundSchema.parse(
|
|
2640
|
+
updatePromptResponseFormat1,
|
|
2712
2641
|
),
|
|
2713
2642
|
);
|
|
2714
2643
|
}
|
|
2715
2644
|
|
|
2716
|
-
export function
|
|
2645
|
+
export function updatePromptResponseFormat1FromJSON(
|
|
2717
2646
|
jsonString: string,
|
|
2718
|
-
): SafeParseResult<
|
|
2647
|
+
): SafeParseResult<UpdatePromptResponseFormat1, SDKValidationError> {
|
|
2719
2648
|
return safeParse(
|
|
2720
2649
|
jsonString,
|
|
2721
|
-
(x) =>
|
|
2722
|
-
|
|
2723
|
-
`Failed to parse 'UpdatePromptResponseFormatPrompts1' from JSON`,
|
|
2650
|
+
(x) => UpdatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
2651
|
+
`Failed to parse 'UpdatePromptResponseFormat1' from JSON`,
|
|
2724
2652
|
);
|
|
2725
2653
|
}
|
|
2726
2654
|
|
|
2727
2655
|
/** @internal */
|
|
2728
|
-
export const
|
|
2729
|
-
|
|
2656
|
+
export const UpdatePromptResponseFormat$inboundSchema: z.ZodType<
|
|
2657
|
+
UpdatePromptResponseFormat,
|
|
2730
2658
|
z.ZodTypeDef,
|
|
2731
2659
|
unknown
|
|
2732
2660
|
> = z.union([
|
|
2733
|
-
z.lazy(() =>
|
|
2734
|
-
z.lazy(() =>
|
|
2661
|
+
z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
|
|
2662
|
+
z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
|
|
2735
2663
|
]);
|
|
2736
2664
|
|
|
2737
2665
|
/** @internal */
|
|
2738
|
-
export type
|
|
2739
|
-
|
|
|
2740
|
-
|
|
|
2666
|
+
export type UpdatePromptResponseFormat$Outbound =
|
|
2667
|
+
| UpdatePromptResponseFormat2$Outbound
|
|
2668
|
+
| UpdatePromptResponseFormat1$Outbound;
|
|
2741
2669
|
|
|
2742
2670
|
/** @internal */
|
|
2743
|
-
export const
|
|
2744
|
-
|
|
2671
|
+
export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
2672
|
+
UpdatePromptResponseFormat$Outbound,
|
|
2745
2673
|
z.ZodTypeDef,
|
|
2746
|
-
|
|
2674
|
+
UpdatePromptResponseFormat
|
|
2747
2675
|
> = z.union([
|
|
2748
|
-
z.lazy(() =>
|
|
2749
|
-
z.lazy(() =>
|
|
2676
|
+
z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
|
|
2677
|
+
z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
|
|
2750
2678
|
]);
|
|
2751
2679
|
|
|
2752
2680
|
/**
|
|
2753
2681
|
* @internal
|
|
2754
2682
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2755
2683
|
*/
|
|
2756
|
-
export namespace
|
|
2757
|
-
/** @deprecated use `
|
|
2758
|
-
export const inboundSchema =
|
|
2759
|
-
/** @deprecated use `
|
|
2760
|
-
export const outboundSchema =
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
export type Outbound = UpdatePromptPromptsResponseFormat$Outbound;
|
|
2684
|
+
export namespace UpdatePromptResponseFormat$ {
|
|
2685
|
+
/** @deprecated use `UpdatePromptResponseFormat$inboundSchema` instead. */
|
|
2686
|
+
export const inboundSchema = UpdatePromptResponseFormat$inboundSchema;
|
|
2687
|
+
/** @deprecated use `UpdatePromptResponseFormat$outboundSchema` instead. */
|
|
2688
|
+
export const outboundSchema = UpdatePromptResponseFormat$outboundSchema;
|
|
2689
|
+
/** @deprecated use `UpdatePromptResponseFormat$Outbound` instead. */
|
|
2690
|
+
export type Outbound = UpdatePromptResponseFormat$Outbound;
|
|
2764
2691
|
}
|
|
2765
2692
|
|
|
2766
|
-
export function
|
|
2767
|
-
|
|
2693
|
+
export function updatePromptResponseFormatToJSON(
|
|
2694
|
+
updatePromptResponseFormat: UpdatePromptResponseFormat,
|
|
2768
2695
|
): string {
|
|
2769
2696
|
return JSON.stringify(
|
|
2770
|
-
|
|
2771
|
-
updatePromptPromptsResponseFormat,
|
|
2772
|
-
),
|
|
2697
|
+
UpdatePromptResponseFormat$outboundSchema.parse(updatePromptResponseFormat),
|
|
2773
2698
|
);
|
|
2774
2699
|
}
|
|
2775
2700
|
|
|
2776
|
-
export function
|
|
2701
|
+
export function updatePromptResponseFormatFromJSON(
|
|
2777
2702
|
jsonString: string,
|
|
2778
|
-
): SafeParseResult<
|
|
2703
|
+
): SafeParseResult<UpdatePromptResponseFormat, SDKValidationError> {
|
|
2779
2704
|
return safeParse(
|
|
2780
2705
|
jsonString,
|
|
2781
|
-
(x) =>
|
|
2782
|
-
`Failed to parse '
|
|
2706
|
+
(x) => UpdatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
2707
|
+
`Failed to parse 'UpdatePromptResponseFormat' from JSON`,
|
|
2783
2708
|
);
|
|
2784
2709
|
}
|
|
2785
2710
|
|
|
2786
2711
|
/** @internal */
|
|
2787
|
-
export const
|
|
2788
|
-
typeof
|
|
2789
|
-
> = z.nativeEnum(
|
|
2712
|
+
export const UpdatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
2713
|
+
typeof UpdatePromptPhotoRealVersion
|
|
2714
|
+
> = z.nativeEnum(UpdatePromptPhotoRealVersion);
|
|
2790
2715
|
|
|
2791
2716
|
/** @internal */
|
|
2792
|
-
export const
|
|
2793
|
-
|
|
2794
|
-
|
|
2717
|
+
export const UpdatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
|
|
2718
|
+
typeof UpdatePromptPhotoRealVersion
|
|
2719
|
+
> = UpdatePromptPhotoRealVersion$inboundSchema;
|
|
2795
2720
|
|
|
2796
2721
|
/**
|
|
2797
2722
|
* @internal
|
|
2798
2723
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2799
2724
|
*/
|
|
2800
|
-
export namespace
|
|
2801
|
-
/** @deprecated use `
|
|
2802
|
-
export const inboundSchema =
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
export const outboundSchema =
|
|
2806
|
-
UpdatePromptPromptsPhotoRealVersion$outboundSchema;
|
|
2725
|
+
export namespace UpdatePromptPhotoRealVersion$ {
|
|
2726
|
+
/** @deprecated use `UpdatePromptPhotoRealVersion$inboundSchema` instead. */
|
|
2727
|
+
export const inboundSchema = UpdatePromptPhotoRealVersion$inboundSchema;
|
|
2728
|
+
/** @deprecated use `UpdatePromptPhotoRealVersion$outboundSchema` instead. */
|
|
2729
|
+
export const outboundSchema = UpdatePromptPhotoRealVersion$outboundSchema;
|
|
2807
2730
|
}
|
|
2808
2731
|
|
|
2809
2732
|
/** @internal */
|
|
2810
|
-
export const
|
|
2811
|
-
typeof
|
|
2812
|
-
> = z.nativeEnum(
|
|
2733
|
+
export const UpdatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
2734
|
+
typeof UpdatePromptEncodingFormat
|
|
2735
|
+
> = z.nativeEnum(UpdatePromptEncodingFormat);
|
|
2813
2736
|
|
|
2814
2737
|
/** @internal */
|
|
2815
|
-
export const
|
|
2816
|
-
typeof
|
|
2817
|
-
> =
|
|
2738
|
+
export const UpdatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
2739
|
+
typeof UpdatePromptEncodingFormat
|
|
2740
|
+
> = UpdatePromptEncodingFormat$inboundSchema;
|
|
2818
2741
|
|
|
2819
2742
|
/**
|
|
2820
2743
|
* @internal
|
|
2821
2744
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2822
2745
|
*/
|
|
2823
|
-
export namespace
|
|
2824
|
-
/** @deprecated use `
|
|
2825
|
-
export const inboundSchema =
|
|
2826
|
-
/** @deprecated use `
|
|
2827
|
-
export const outboundSchema =
|
|
2828
|
-
UpdatePromptPromptsEncodingFormat$outboundSchema;
|
|
2746
|
+
export namespace UpdatePromptEncodingFormat$ {
|
|
2747
|
+
/** @deprecated use `UpdatePromptEncodingFormat$inboundSchema` instead. */
|
|
2748
|
+
export const inboundSchema = UpdatePromptEncodingFormat$inboundSchema;
|
|
2749
|
+
/** @deprecated use `UpdatePromptEncodingFormat$outboundSchema` instead. */
|
|
2750
|
+
export const outboundSchema = UpdatePromptEncodingFormat$outboundSchema;
|
|
2829
2751
|
}
|
|
2830
2752
|
|
|
2831
2753
|
/** @internal */
|
|
2832
|
-
export const
|
|
2833
|
-
typeof
|
|
2834
|
-
> = z.nativeEnum(
|
|
2754
|
+
export const UpdatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
2755
|
+
typeof UpdatePromptReasoningEffort
|
|
2756
|
+
> = z.nativeEnum(UpdatePromptReasoningEffort);
|
|
2835
2757
|
|
|
2836
2758
|
/** @internal */
|
|
2837
|
-
export const
|
|
2838
|
-
typeof
|
|
2839
|
-
> =
|
|
2759
|
+
export const UpdatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
2760
|
+
typeof UpdatePromptReasoningEffort
|
|
2761
|
+
> = UpdatePromptReasoningEffort$inboundSchema;
|
|
2840
2762
|
|
|
2841
2763
|
/**
|
|
2842
2764
|
* @internal
|
|
2843
2765
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2844
2766
|
*/
|
|
2845
|
-
export namespace
|
|
2846
|
-
/** @deprecated use `
|
|
2847
|
-
export const inboundSchema =
|
|
2848
|
-
/** @deprecated use `
|
|
2849
|
-
export const outboundSchema =
|
|
2850
|
-
UpdatePromptPromptsReasoningEffort$outboundSchema;
|
|
2767
|
+
export namespace UpdatePromptReasoningEffort$ {
|
|
2768
|
+
/** @deprecated use `UpdatePromptReasoningEffort$inboundSchema` instead. */
|
|
2769
|
+
export const inboundSchema = UpdatePromptReasoningEffort$inboundSchema;
|
|
2770
|
+
/** @deprecated use `UpdatePromptReasoningEffort$outboundSchema` instead. */
|
|
2771
|
+
export const outboundSchema = UpdatePromptReasoningEffort$outboundSchema;
|
|
2851
2772
|
}
|
|
2852
2773
|
|
|
2853
2774
|
/** @internal */
|
|
2854
|
-
export const
|
|
2855
|
-
|
|
2775
|
+
export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
|
|
2776
|
+
UpdatePromptModelParameters,
|
|
2856
2777
|
z.ZodTypeDef,
|
|
2857
2778
|
unknown
|
|
2858
2779
|
> = z.object({
|
|
@@ -2864,20 +2785,19 @@ export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
|
|
|
2864
2785
|
presencePenalty: z.number().optional(),
|
|
2865
2786
|
numImages: z.number().optional(),
|
|
2866
2787
|
seed: z.number().optional(),
|
|
2867
|
-
format:
|
|
2788
|
+
format: UpdatePromptFormat$inboundSchema.optional(),
|
|
2868
2789
|
dimensions: z.string().optional(),
|
|
2869
|
-
quality:
|
|
2790
|
+
quality: UpdatePromptQuality$inboundSchema.optional(),
|
|
2870
2791
|
style: z.string().optional(),
|
|
2871
2792
|
responseFormat: z.nullable(
|
|
2872
2793
|
z.union([
|
|
2873
|
-
z.lazy(() =>
|
|
2874
|
-
z.lazy(() =>
|
|
2794
|
+
z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
|
|
2795
|
+
z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
|
|
2875
2796
|
]),
|
|
2876
2797
|
).optional(),
|
|
2877
|
-
photoRealVersion:
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
reasoningEffort: UpdatePromptPromptsReasoningEffort$inboundSchema.optional(),
|
|
2798
|
+
photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
2799
|
+
encoding_format: UpdatePromptEncodingFormat$inboundSchema.optional(),
|
|
2800
|
+
reasoningEffort: UpdatePromptReasoningEffort$inboundSchema.optional(),
|
|
2881
2801
|
budgetTokens: z.number().optional(),
|
|
2882
2802
|
}).transform((v) => {
|
|
2883
2803
|
return remap$(v, {
|
|
@@ -2886,7 +2806,7 @@ export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
|
|
|
2886
2806
|
});
|
|
2887
2807
|
|
|
2888
2808
|
/** @internal */
|
|
2889
|
-
export type
|
|
2809
|
+
export type UpdatePromptModelParameters$Outbound = {
|
|
2890
2810
|
temperature?: number | undefined;
|
|
2891
2811
|
maxTokens?: number | undefined;
|
|
2892
2812
|
topK?: number | undefined;
|
|
@@ -2900,8 +2820,8 @@ export type UpdatePromptPromptsModelParameters$Outbound = {
|
|
|
2900
2820
|
quality?: string | undefined;
|
|
2901
2821
|
style?: string | undefined;
|
|
2902
2822
|
responseFormat?:
|
|
2903
|
-
|
|
|
2904
|
-
|
|
|
2823
|
+
| UpdatePromptResponseFormat2$Outbound
|
|
2824
|
+
| UpdatePromptResponseFormat1$Outbound
|
|
2905
2825
|
| null
|
|
2906
2826
|
| undefined;
|
|
2907
2827
|
photoRealVersion?: string | undefined;
|
|
@@ -2911,10 +2831,10 @@ export type UpdatePromptPromptsModelParameters$Outbound = {
|
|
|
2911
2831
|
};
|
|
2912
2832
|
|
|
2913
2833
|
/** @internal */
|
|
2914
|
-
export const
|
|
2915
|
-
|
|
2834
|
+
export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
|
|
2835
|
+
UpdatePromptModelParameters$Outbound,
|
|
2916
2836
|
z.ZodTypeDef,
|
|
2917
|
-
|
|
2837
|
+
UpdatePromptModelParameters
|
|
2918
2838
|
> = z.object({
|
|
2919
2839
|
temperature: z.number().optional(),
|
|
2920
2840
|
maxTokens: z.number().optional(),
|
|
@@ -2924,20 +2844,19 @@ export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
|
|
|
2924
2844
|
presencePenalty: z.number().optional(),
|
|
2925
2845
|
numImages: z.number().optional(),
|
|
2926
2846
|
seed: z.number().optional(),
|
|
2927
|
-
format:
|
|
2847
|
+
format: UpdatePromptFormat$outboundSchema.optional(),
|
|
2928
2848
|
dimensions: z.string().optional(),
|
|
2929
|
-
quality:
|
|
2849
|
+
quality: UpdatePromptQuality$outboundSchema.optional(),
|
|
2930
2850
|
style: z.string().optional(),
|
|
2931
2851
|
responseFormat: z.nullable(
|
|
2932
2852
|
z.union([
|
|
2933
|
-
z.lazy(() =>
|
|
2934
|
-
z.lazy(() =>
|
|
2853
|
+
z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
|
|
2854
|
+
z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
|
|
2935
2855
|
]),
|
|
2936
2856
|
).optional(),
|
|
2937
|
-
photoRealVersion:
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
reasoningEffort: UpdatePromptPromptsReasoningEffort$outboundSchema.optional(),
|
|
2857
|
+
photoRealVersion: UpdatePromptPhotoRealVersion$outboundSchema.optional(),
|
|
2858
|
+
encodingFormat: UpdatePromptEncodingFormat$outboundSchema.optional(),
|
|
2859
|
+
reasoningEffort: UpdatePromptReasoningEffort$outboundSchema.optional(),
|
|
2941
2860
|
budgetTokens: z.number().optional(),
|
|
2942
2861
|
}).transform((v) => {
|
|
2943
2862
|
return remap$(v, {
|
|
@@ -2949,56 +2868,54 @@ export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
|
|
|
2949
2868
|
* @internal
|
|
2950
2869
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2951
2870
|
*/
|
|
2952
|
-
export namespace
|
|
2953
|
-
/** @deprecated use `
|
|
2954
|
-
export const inboundSchema =
|
|
2955
|
-
/** @deprecated use `
|
|
2956
|
-
export const outboundSchema =
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
export type Outbound = UpdatePromptPromptsModelParameters$Outbound;
|
|
2871
|
+
export namespace UpdatePromptModelParameters$ {
|
|
2872
|
+
/** @deprecated use `UpdatePromptModelParameters$inboundSchema` instead. */
|
|
2873
|
+
export const inboundSchema = UpdatePromptModelParameters$inboundSchema;
|
|
2874
|
+
/** @deprecated use `UpdatePromptModelParameters$outboundSchema` instead. */
|
|
2875
|
+
export const outboundSchema = UpdatePromptModelParameters$outboundSchema;
|
|
2876
|
+
/** @deprecated use `UpdatePromptModelParameters$Outbound` instead. */
|
|
2877
|
+
export type Outbound = UpdatePromptModelParameters$Outbound;
|
|
2960
2878
|
}
|
|
2961
2879
|
|
|
2962
|
-
export function
|
|
2963
|
-
|
|
2880
|
+
export function updatePromptModelParametersToJSON(
|
|
2881
|
+
updatePromptModelParameters: UpdatePromptModelParameters,
|
|
2964
2882
|
): string {
|
|
2965
2883
|
return JSON.stringify(
|
|
2966
|
-
|
|
2967
|
-
|
|
2884
|
+
UpdatePromptModelParameters$outboundSchema.parse(
|
|
2885
|
+
updatePromptModelParameters,
|
|
2968
2886
|
),
|
|
2969
2887
|
);
|
|
2970
2888
|
}
|
|
2971
2889
|
|
|
2972
|
-
export function
|
|
2890
|
+
export function updatePromptModelParametersFromJSON(
|
|
2973
2891
|
jsonString: string,
|
|
2974
|
-
): SafeParseResult<
|
|
2892
|
+
): SafeParseResult<UpdatePromptModelParameters, SDKValidationError> {
|
|
2975
2893
|
return safeParse(
|
|
2976
2894
|
jsonString,
|
|
2977
|
-
(x) =>
|
|
2978
|
-
|
|
2979
|
-
`Failed to parse 'UpdatePromptPromptsModelParameters' from JSON`,
|
|
2895
|
+
(x) => UpdatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2896
|
+
`Failed to parse 'UpdatePromptModelParameters' from JSON`,
|
|
2980
2897
|
);
|
|
2981
2898
|
}
|
|
2982
2899
|
|
|
2983
2900
|
/** @internal */
|
|
2984
|
-
export const
|
|
2985
|
-
typeof
|
|
2986
|
-
> = z.nativeEnum(
|
|
2901
|
+
export const UpdatePromptProvider$inboundSchema: z.ZodNativeEnum<
|
|
2902
|
+
typeof UpdatePromptProvider
|
|
2903
|
+
> = z.nativeEnum(UpdatePromptProvider);
|
|
2987
2904
|
|
|
2988
2905
|
/** @internal */
|
|
2989
|
-
export const
|
|
2990
|
-
typeof
|
|
2991
|
-
> =
|
|
2906
|
+
export const UpdatePromptProvider$outboundSchema: z.ZodNativeEnum<
|
|
2907
|
+
typeof UpdatePromptProvider
|
|
2908
|
+
> = UpdatePromptProvider$inboundSchema;
|
|
2992
2909
|
|
|
2993
2910
|
/**
|
|
2994
2911
|
* @internal
|
|
2995
2912
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2996
2913
|
*/
|
|
2997
|
-
export namespace
|
|
2998
|
-
/** @deprecated use `
|
|
2999
|
-
export const inboundSchema =
|
|
3000
|
-
/** @deprecated use `
|
|
3001
|
-
export const outboundSchema =
|
|
2914
|
+
export namespace UpdatePromptProvider$ {
|
|
2915
|
+
/** @deprecated use `UpdatePromptProvider$inboundSchema` instead. */
|
|
2916
|
+
export const inboundSchema = UpdatePromptProvider$inboundSchema;
|
|
2917
|
+
/** @deprecated use `UpdatePromptProvider$outboundSchema` instead. */
|
|
2918
|
+
export const outboundSchema = UpdatePromptProvider$outboundSchema;
|
|
3002
2919
|
}
|
|
3003
2920
|
|
|
3004
2921
|
/** @internal */
|
|
@@ -3602,19 +3519,18 @@ export function updatePromptPromptsMessagesFromJSON(
|
|
|
3602
3519
|
}
|
|
3603
3520
|
|
|
3604
3521
|
/** @internal */
|
|
3605
|
-
export const
|
|
3606
|
-
|
|
3522
|
+
export const UpdatePromptPromptConfig$inboundSchema: z.ZodType<
|
|
3523
|
+
UpdatePromptPromptConfig,
|
|
3607
3524
|
z.ZodTypeDef,
|
|
3608
3525
|
unknown
|
|
3609
3526
|
> = z.object({
|
|
3610
3527
|
stream: z.boolean().optional(),
|
|
3611
3528
|
model: z.string().optional(),
|
|
3612
3529
|
model_db_id: z.string().optional(),
|
|
3613
|
-
model_type:
|
|
3614
|
-
model_parameters: z.lazy(() =>
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
provider: UpdatePromptPromptsProvider$inboundSchema.optional(),
|
|
3530
|
+
model_type: UpdatePromptModelType$inboundSchema.optional(),
|
|
3531
|
+
model_parameters: z.lazy(() => UpdatePromptModelParameters$inboundSchema)
|
|
3532
|
+
.optional(),
|
|
3533
|
+
provider: UpdatePromptProvider$inboundSchema.optional(),
|
|
3618
3534
|
integration_id: z.nullable(z.string()).optional(),
|
|
3619
3535
|
version: z.string().optional(),
|
|
3620
3536
|
messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$inboundSchema)),
|
|
@@ -3628,12 +3544,12 @@ export const UpdatePromptPromptsPromptConfig$inboundSchema: z.ZodType<
|
|
|
3628
3544
|
});
|
|
3629
3545
|
|
|
3630
3546
|
/** @internal */
|
|
3631
|
-
export type
|
|
3547
|
+
export type UpdatePromptPromptConfig$Outbound = {
|
|
3632
3548
|
stream?: boolean | undefined;
|
|
3633
3549
|
model?: string | undefined;
|
|
3634
3550
|
model_db_id?: string | undefined;
|
|
3635
3551
|
model_type?: string | undefined;
|
|
3636
|
-
model_parameters?:
|
|
3552
|
+
model_parameters?: UpdatePromptModelParameters$Outbound | undefined;
|
|
3637
3553
|
provider?: string | undefined;
|
|
3638
3554
|
integration_id?: string | null | undefined;
|
|
3639
3555
|
version?: string | undefined;
|
|
@@ -3641,19 +3557,18 @@ export type UpdatePromptPromptsPromptConfig$Outbound = {
|
|
|
3641
3557
|
};
|
|
3642
3558
|
|
|
3643
3559
|
/** @internal */
|
|
3644
|
-
export const
|
|
3645
|
-
|
|
3560
|
+
export const UpdatePromptPromptConfig$outboundSchema: z.ZodType<
|
|
3561
|
+
UpdatePromptPromptConfig$Outbound,
|
|
3646
3562
|
z.ZodTypeDef,
|
|
3647
|
-
|
|
3563
|
+
UpdatePromptPromptConfig
|
|
3648
3564
|
> = z.object({
|
|
3649
3565
|
stream: z.boolean().optional(),
|
|
3650
3566
|
model: z.string().optional(),
|
|
3651
3567
|
modelDbId: z.string().optional(),
|
|
3652
|
-
modelType:
|
|
3653
|
-
modelParameters: z.lazy(() =>
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
provider: UpdatePromptPromptsProvider$outboundSchema.optional(),
|
|
3568
|
+
modelType: UpdatePromptModelType$outboundSchema.optional(),
|
|
3569
|
+
modelParameters: z.lazy(() => UpdatePromptModelParameters$outboundSchema)
|
|
3570
|
+
.optional(),
|
|
3571
|
+
provider: UpdatePromptProvider$outboundSchema.optional(),
|
|
3657
3572
|
integrationId: z.nullable(z.string()).optional(),
|
|
3658
3573
|
version: z.string().optional(),
|
|
3659
3574
|
messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$outboundSchema)),
|
|
@@ -3670,75 +3585,73 @@ export const UpdatePromptPromptsPromptConfig$outboundSchema: z.ZodType<
|
|
|
3670
3585
|
* @internal
|
|
3671
3586
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3672
3587
|
*/
|
|
3673
|
-
export namespace
|
|
3674
|
-
/** @deprecated use `
|
|
3675
|
-
export const inboundSchema =
|
|
3676
|
-
/** @deprecated use `
|
|
3677
|
-
export const outboundSchema =
|
|
3678
|
-
/** @deprecated use `
|
|
3679
|
-
export type Outbound =
|
|
3588
|
+
export namespace UpdatePromptPromptConfig$ {
|
|
3589
|
+
/** @deprecated use `UpdatePromptPromptConfig$inboundSchema` instead. */
|
|
3590
|
+
export const inboundSchema = UpdatePromptPromptConfig$inboundSchema;
|
|
3591
|
+
/** @deprecated use `UpdatePromptPromptConfig$outboundSchema` instead. */
|
|
3592
|
+
export const outboundSchema = UpdatePromptPromptConfig$outboundSchema;
|
|
3593
|
+
/** @deprecated use `UpdatePromptPromptConfig$Outbound` instead. */
|
|
3594
|
+
export type Outbound = UpdatePromptPromptConfig$Outbound;
|
|
3680
3595
|
}
|
|
3681
3596
|
|
|
3682
|
-
export function
|
|
3683
|
-
|
|
3597
|
+
export function updatePromptPromptConfigToJSON(
|
|
3598
|
+
updatePromptPromptConfig: UpdatePromptPromptConfig,
|
|
3684
3599
|
): string {
|
|
3685
3600
|
return JSON.stringify(
|
|
3686
|
-
|
|
3687
|
-
updatePromptPromptsPromptConfig,
|
|
3688
|
-
),
|
|
3601
|
+
UpdatePromptPromptConfig$outboundSchema.parse(updatePromptPromptConfig),
|
|
3689
3602
|
);
|
|
3690
3603
|
}
|
|
3691
3604
|
|
|
3692
|
-
export function
|
|
3605
|
+
export function updatePromptPromptConfigFromJSON(
|
|
3693
3606
|
jsonString: string,
|
|
3694
|
-
): SafeParseResult<
|
|
3607
|
+
): SafeParseResult<UpdatePromptPromptConfig, SDKValidationError> {
|
|
3695
3608
|
return safeParse(
|
|
3696
3609
|
jsonString,
|
|
3697
|
-
(x) =>
|
|
3698
|
-
`Failed to parse '
|
|
3610
|
+
(x) => UpdatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
3611
|
+
`Failed to parse 'UpdatePromptPromptConfig' from JSON`,
|
|
3699
3612
|
);
|
|
3700
3613
|
}
|
|
3701
3614
|
|
|
3702
3615
|
/** @internal */
|
|
3703
|
-
export const
|
|
3704
|
-
typeof
|
|
3705
|
-
> = z.nativeEnum(
|
|
3616
|
+
export const UpdatePromptUseCases$inboundSchema: z.ZodNativeEnum<
|
|
3617
|
+
typeof UpdatePromptUseCases
|
|
3618
|
+
> = z.nativeEnum(UpdatePromptUseCases);
|
|
3706
3619
|
|
|
3707
3620
|
/** @internal */
|
|
3708
|
-
export const
|
|
3709
|
-
typeof
|
|
3710
|
-
> =
|
|
3621
|
+
export const UpdatePromptUseCases$outboundSchema: z.ZodNativeEnum<
|
|
3622
|
+
typeof UpdatePromptUseCases
|
|
3623
|
+
> = UpdatePromptUseCases$inboundSchema;
|
|
3711
3624
|
|
|
3712
3625
|
/**
|
|
3713
3626
|
* @internal
|
|
3714
3627
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3715
3628
|
*/
|
|
3716
|
-
export namespace
|
|
3717
|
-
/** @deprecated use `
|
|
3718
|
-
export const inboundSchema =
|
|
3719
|
-
/** @deprecated use `
|
|
3720
|
-
export const outboundSchema =
|
|
3629
|
+
export namespace UpdatePromptUseCases$ {
|
|
3630
|
+
/** @deprecated use `UpdatePromptUseCases$inboundSchema` instead. */
|
|
3631
|
+
export const inboundSchema = UpdatePromptUseCases$inboundSchema;
|
|
3632
|
+
/** @deprecated use `UpdatePromptUseCases$outboundSchema` instead. */
|
|
3633
|
+
export const outboundSchema = UpdatePromptUseCases$outboundSchema;
|
|
3721
3634
|
}
|
|
3722
3635
|
|
|
3723
3636
|
/** @internal */
|
|
3724
|
-
export const
|
|
3725
|
-
typeof
|
|
3726
|
-
> = z.nativeEnum(
|
|
3637
|
+
export const UpdatePromptLanguage$inboundSchema: z.ZodNativeEnum<
|
|
3638
|
+
typeof UpdatePromptLanguage
|
|
3639
|
+
> = z.nativeEnum(UpdatePromptLanguage);
|
|
3727
3640
|
|
|
3728
3641
|
/** @internal */
|
|
3729
|
-
export const
|
|
3730
|
-
typeof
|
|
3731
|
-
> =
|
|
3642
|
+
export const UpdatePromptLanguage$outboundSchema: z.ZodNativeEnum<
|
|
3643
|
+
typeof UpdatePromptLanguage
|
|
3644
|
+
> = UpdatePromptLanguage$inboundSchema;
|
|
3732
3645
|
|
|
3733
3646
|
/**
|
|
3734
3647
|
* @internal
|
|
3735
3648
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3736
3649
|
*/
|
|
3737
|
-
export namespace
|
|
3738
|
-
/** @deprecated use `
|
|
3739
|
-
export const inboundSchema =
|
|
3740
|
-
/** @deprecated use `
|
|
3741
|
-
export const outboundSchema =
|
|
3650
|
+
export namespace UpdatePromptLanguage$ {
|
|
3651
|
+
/** @deprecated use `UpdatePromptLanguage$inboundSchema` instead. */
|
|
3652
|
+
export const inboundSchema = UpdatePromptLanguage$inboundSchema;
|
|
3653
|
+
/** @deprecated use `UpdatePromptLanguage$outboundSchema` instead. */
|
|
3654
|
+
export const outboundSchema = UpdatePromptLanguage$outboundSchema;
|
|
3742
3655
|
}
|
|
3743
3656
|
|
|
3744
3657
|
/** @internal */
|
|
@@ -3747,8 +3660,8 @@ export const UpdatePromptPromptsMetadata$inboundSchema: z.ZodType<
|
|
|
3747
3660
|
z.ZodTypeDef,
|
|
3748
3661
|
unknown
|
|
3749
3662
|
> = z.object({
|
|
3750
|
-
use_cases: z.array(
|
|
3751
|
-
language:
|
|
3663
|
+
use_cases: z.array(UpdatePromptUseCases$inboundSchema).optional(),
|
|
3664
|
+
language: UpdatePromptLanguage$inboundSchema.optional(),
|
|
3752
3665
|
}).transform((v) => {
|
|
3753
3666
|
return remap$(v, {
|
|
3754
3667
|
"use_cases": "useCases",
|
|
@@ -3767,8 +3680,8 @@ export const UpdatePromptPromptsMetadata$outboundSchema: z.ZodType<
|
|
|
3767
3680
|
z.ZodTypeDef,
|
|
3768
3681
|
UpdatePromptPromptsMetadata
|
|
3769
3682
|
> = z.object({
|
|
3770
|
-
useCases: z.array(
|
|
3771
|
-
language:
|
|
3683
|
+
useCases: z.array(UpdatePromptUseCases$outboundSchema).optional(),
|
|
3684
|
+
language: UpdatePromptLanguage$outboundSchema.optional(),
|
|
3772
3685
|
}).transform((v) => {
|
|
3773
3686
|
return remap$(v, {
|
|
3774
3687
|
useCases: "use_cases",
|
|
@@ -3824,7 +3737,7 @@ export const UpdatePromptResponseBody$inboundSchema: z.ZodType<
|
|
|
3824
3737
|
updated_by_id: z.string().optional(),
|
|
3825
3738
|
display_name: z.string(),
|
|
3826
3739
|
description: z.nullable(z.string()).optional(),
|
|
3827
|
-
prompt_config: z.lazy(() =>
|
|
3740
|
+
prompt_config: z.lazy(() => UpdatePromptPromptConfig$inboundSchema),
|
|
3828
3741
|
metadata: z.lazy(() => UpdatePromptPromptsMetadata$inboundSchema).optional(),
|
|
3829
3742
|
}).transform((v) => {
|
|
3830
3743
|
return remap$(v, {
|
|
@@ -3849,7 +3762,7 @@ export type UpdatePromptResponseBody$Outbound = {
|
|
|
3849
3762
|
updated_by_id?: string | undefined;
|
|
3850
3763
|
display_name: string;
|
|
3851
3764
|
description?: string | null | undefined;
|
|
3852
|
-
prompt_config:
|
|
3765
|
+
prompt_config: UpdatePromptPromptConfig$Outbound;
|
|
3853
3766
|
metadata?: UpdatePromptPromptsMetadata$Outbound | undefined;
|
|
3854
3767
|
};
|
|
3855
3768
|
|
|
@@ -3869,7 +3782,7 @@ export const UpdatePromptResponseBody$outboundSchema: z.ZodType<
|
|
|
3869
3782
|
updatedById: z.string().optional(),
|
|
3870
3783
|
displayName: z.string(),
|
|
3871
3784
|
description: z.nullable(z.string()).optional(),
|
|
3872
|
-
promptConfig: z.lazy(() =>
|
|
3785
|
+
promptConfig: z.lazy(() => UpdatePromptPromptConfig$outboundSchema),
|
|
3873
3786
|
metadata: z.lazy(() => UpdatePromptPromptsMetadata$outboundSchema).optional(),
|
|
3874
3787
|
}).transform((v) => {
|
|
3875
3788
|
return remap$(v, {
|