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