@orq-ai/node 3.2.5 → 3.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/mcp-server.js +569 -569
- package/bin/mcp-server.js.map +21 -21
- package/docs/sdks/prompts/README.md +110 -110
- package/funcs/promptsList.js +1 -1
- package/funcs/promptsList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +2 -2
- package/mcp-server/server.js.map +1 -1
- package/models/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createprompt.d.ts +317 -317
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +444 -442
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updateprompt.d.ts +317 -317
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +444 -444
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/sdk/prompts.d.ts +4 -4
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +6 -6
- package/sdk/prompts.js.map +1 -1
- package/src/funcs/promptsList.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -2
- package/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createprompt.ts +599 -680
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updateprompt.ts +682 -599
- package/src/sdk/prompts.ts +14 -14
|
@@ -5,7 +5,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* The type of the model
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const ModelType: {
|
|
9
9
|
readonly Chat: "chat";
|
|
10
10
|
readonly Completion: "completion";
|
|
11
11
|
readonly Embedding: "embedding";
|
|
@@ -19,7 +19,7 @@ export declare const CreatePromptModelType: {
|
|
|
19
19
|
/**
|
|
20
20
|
* The type of the model
|
|
21
21
|
*/
|
|
22
|
-
export type
|
|
22
|
+
export type ModelType = ClosedEnum<typeof ModelType>;
|
|
23
23
|
/**
|
|
24
24
|
* Only supported on `image` models.
|
|
25
25
|
*/
|
|
@@ -36,35 +36,35 @@ export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
|
|
|
36
36
|
/**
|
|
37
37
|
* Only supported on `image` models.
|
|
38
38
|
*/
|
|
39
|
-
export declare const
|
|
39
|
+
export declare const Quality: {
|
|
40
40
|
readonly Standard: "standard";
|
|
41
41
|
readonly Hd: "hd";
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* Only supported on `image` models.
|
|
45
45
|
*/
|
|
46
|
-
export type
|
|
47
|
-
export declare const
|
|
46
|
+
export type Quality = ClosedEnum<typeof Quality>;
|
|
47
|
+
export declare const CreatePromptResponseFormatType: {
|
|
48
48
|
readonly JsonObject: "json_object";
|
|
49
49
|
};
|
|
50
|
-
export type
|
|
51
|
-
export type
|
|
52
|
-
type:
|
|
50
|
+
export type CreatePromptResponseFormatType = ClosedEnum<typeof CreatePromptResponseFormatType>;
|
|
51
|
+
export type ResponseFormat2 = {
|
|
52
|
+
type: CreatePromptResponseFormatType;
|
|
53
53
|
};
|
|
54
|
-
export declare const
|
|
54
|
+
export declare const ResponseFormatType: {
|
|
55
55
|
readonly JsonSchema: "json_schema";
|
|
56
56
|
};
|
|
57
|
-
export type
|
|
58
|
-
export type
|
|
57
|
+
export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
|
|
58
|
+
export type JsonSchema = {
|
|
59
59
|
name: string;
|
|
60
60
|
strict: boolean;
|
|
61
61
|
schema: {
|
|
62
62
|
[k: string]: any;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
|
-
export type
|
|
66
|
-
type:
|
|
67
|
-
jsonSchema:
|
|
65
|
+
export type ResponseFormat1 = {
|
|
66
|
+
type: ResponseFormatType;
|
|
67
|
+
jsonSchema: JsonSchema;
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
70
|
* An object specifying the format that the model must output.
|
|
@@ -77,33 +77,33 @@ export type CreatePromptResponseFormat1 = {
|
|
|
77
77
|
*
|
|
78
78
|
* 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.
|
|
79
79
|
*/
|
|
80
|
-
export type
|
|
80
|
+
export type ResponseFormat = ResponseFormat2 | ResponseFormat1;
|
|
81
81
|
/**
|
|
82
82
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
83
83
|
*/
|
|
84
|
-
export declare const
|
|
84
|
+
export declare const PhotoRealVersion: {
|
|
85
85
|
readonly V1: "v1";
|
|
86
86
|
readonly V2: "v2";
|
|
87
87
|
};
|
|
88
88
|
/**
|
|
89
89
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
90
90
|
*/
|
|
91
|
-
export type
|
|
91
|
+
export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
|
|
92
92
|
/**
|
|
93
93
|
* The format to return the embeddings
|
|
94
94
|
*/
|
|
95
|
-
export declare const
|
|
95
|
+
export declare const EncodingFormat: {
|
|
96
96
|
readonly Float: "float";
|
|
97
97
|
readonly Base64: "base64";
|
|
98
98
|
};
|
|
99
99
|
/**
|
|
100
100
|
* The format to return the embeddings
|
|
101
101
|
*/
|
|
102
|
-
export type
|
|
102
|
+
export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
|
|
103
103
|
/**
|
|
104
104
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
105
105
|
*/
|
|
106
|
-
export declare const
|
|
106
|
+
export declare const ReasoningEffort: {
|
|
107
107
|
readonly Low: "low";
|
|
108
108
|
readonly Medium: "medium";
|
|
109
109
|
readonly High: "high";
|
|
@@ -111,11 +111,11 @@ export declare const CreatePromptReasoningEffort: {
|
|
|
111
111
|
/**
|
|
112
112
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
113
113
|
*/
|
|
114
|
-
export type
|
|
114
|
+
export type ReasoningEffort = ClosedEnum<typeof ReasoningEffort>;
|
|
115
115
|
/**
|
|
116
116
|
* Model Parameters: Not all parameters apply to every model
|
|
117
117
|
*/
|
|
118
|
-
export type
|
|
118
|
+
export type ModelParameters = {
|
|
119
119
|
/**
|
|
120
120
|
* Only supported on `chat` and `completion` models.
|
|
121
121
|
*/
|
|
@@ -159,7 +159,7 @@ export type CreatePromptModelParameters = {
|
|
|
159
159
|
/**
|
|
160
160
|
* Only supported on `image` models.
|
|
161
161
|
*/
|
|
162
|
-
quality?:
|
|
162
|
+
quality?: Quality | undefined;
|
|
163
163
|
/**
|
|
164
164
|
* Only supported on `image` models.
|
|
165
165
|
*/
|
|
@@ -175,25 +175,25 @@ export type CreatePromptModelParameters = {
|
|
|
175
175
|
*
|
|
176
176
|
* 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.
|
|
177
177
|
*/
|
|
178
|
-
responseFormat?:
|
|
178
|
+
responseFormat?: ResponseFormat2 | ResponseFormat1 | null | undefined;
|
|
179
179
|
/**
|
|
180
180
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
181
181
|
*/
|
|
182
|
-
photoRealVersion?:
|
|
182
|
+
photoRealVersion?: PhotoRealVersion | undefined;
|
|
183
183
|
/**
|
|
184
184
|
* The format to return the embeddings
|
|
185
185
|
*/
|
|
186
|
-
encodingFormat?:
|
|
186
|
+
encodingFormat?: EncodingFormat | undefined;
|
|
187
187
|
/**
|
|
188
188
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
189
189
|
*/
|
|
190
|
-
reasoningEffort?:
|
|
190
|
+
reasoningEffort?: ReasoningEffort | undefined;
|
|
191
191
|
/**
|
|
192
192
|
* 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`
|
|
193
193
|
*/
|
|
194
194
|
budgetTokens?: number | undefined;
|
|
195
195
|
};
|
|
196
|
-
export declare const
|
|
196
|
+
export declare const Provider: {
|
|
197
197
|
readonly Cohere: "cohere";
|
|
198
198
|
readonly Openai: "openai";
|
|
199
199
|
readonly Anthropic: "anthropic";
|
|
@@ -213,7 +213,7 @@ export declare const CreatePromptProvider: {
|
|
|
213
213
|
readonly Togetherai: "togetherai";
|
|
214
214
|
readonly Elevenlabs: "elevenlabs";
|
|
215
215
|
};
|
|
216
|
-
export type
|
|
216
|
+
export type Provider = ClosedEnum<typeof Provider>;
|
|
217
217
|
/**
|
|
218
218
|
* The role of the prompt message
|
|
219
219
|
*/
|
|
@@ -299,22 +299,22 @@ export type CreatePromptMessages = {
|
|
|
299
299
|
/**
|
|
300
300
|
* A list of messages compatible with the openAI schema
|
|
301
301
|
*/
|
|
302
|
-
export type
|
|
302
|
+
export type PromptConfig = {
|
|
303
303
|
stream?: boolean | undefined;
|
|
304
304
|
model?: string | undefined;
|
|
305
305
|
/**
|
|
306
306
|
* The type of the model
|
|
307
307
|
*/
|
|
308
|
-
modelType?:
|
|
308
|
+
modelType?: ModelType | undefined;
|
|
309
309
|
/**
|
|
310
310
|
* Model Parameters: Not all parameters apply to every model
|
|
311
311
|
*/
|
|
312
|
-
modelParameters?:
|
|
313
|
-
provider?:
|
|
312
|
+
modelParameters?: ModelParameters | undefined;
|
|
313
|
+
provider?: Provider | undefined;
|
|
314
314
|
version?: string | undefined;
|
|
315
315
|
messages: Array<CreatePromptMessages>;
|
|
316
316
|
};
|
|
317
|
-
export declare const
|
|
317
|
+
export declare const UseCases: {
|
|
318
318
|
readonly Agents: "Agents";
|
|
319
319
|
readonly AgentsSimulations: "Agents simulations";
|
|
320
320
|
readonly APIInteraction: "API interaction";
|
|
@@ -332,11 +332,11 @@ export declare const CreatePromptUseCases: {
|
|
|
332
332
|
readonly Summarization: "Summarization";
|
|
333
333
|
readonly Tagging: "Tagging";
|
|
334
334
|
};
|
|
335
|
-
export type
|
|
335
|
+
export type UseCases = ClosedEnum<typeof UseCases>;
|
|
336
336
|
/**
|
|
337
337
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
338
338
|
*/
|
|
339
|
-
export declare const
|
|
339
|
+
export declare const Language: {
|
|
340
340
|
readonly Chinese: "Chinese";
|
|
341
341
|
readonly Dutch: "Dutch";
|
|
342
342
|
readonly English: "English";
|
|
@@ -348,16 +348,16 @@ export declare const CreatePromptLanguage: {
|
|
|
348
348
|
/**
|
|
349
349
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
350
350
|
*/
|
|
351
|
-
export type
|
|
351
|
+
export type Language = ClosedEnum<typeof Language>;
|
|
352
352
|
export type CreatePromptMetadata = {
|
|
353
353
|
/**
|
|
354
354
|
* 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
|
|
355
355
|
*/
|
|
356
|
-
useCases?: Array<
|
|
356
|
+
useCases?: Array<UseCases> | undefined;
|
|
357
357
|
/**
|
|
358
358
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
359
359
|
*/
|
|
360
|
-
language?:
|
|
360
|
+
language?: Language | undefined;
|
|
361
361
|
};
|
|
362
362
|
export type CreatePromptRequestBody = {
|
|
363
363
|
/**
|
|
@@ -371,7 +371,7 @@ export type CreatePromptRequestBody = {
|
|
|
371
371
|
/**
|
|
372
372
|
* A list of messages compatible with the openAI schema
|
|
373
373
|
*/
|
|
374
|
-
promptConfig:
|
|
374
|
+
promptConfig: PromptConfig;
|
|
375
375
|
metadata?: CreatePromptMetadata | undefined;
|
|
376
376
|
/**
|
|
377
377
|
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
@@ -385,7 +385,7 @@ export type CreatePromptPromptsType = ClosedEnum<typeof CreatePromptPromptsType>
|
|
|
385
385
|
/**
|
|
386
386
|
* The type of the model
|
|
387
387
|
*/
|
|
388
|
-
export declare const
|
|
388
|
+
export declare const CreatePromptModelType: {
|
|
389
389
|
readonly Chat: "chat";
|
|
390
390
|
readonly Completion: "completion";
|
|
391
391
|
readonly Embedding: "embedding";
|
|
@@ -399,7 +399,7 @@ export declare const CreatePromptPromptsModelType: {
|
|
|
399
399
|
/**
|
|
400
400
|
* The type of the model
|
|
401
401
|
*/
|
|
402
|
-
export type
|
|
402
|
+
export type CreatePromptModelType = ClosedEnum<typeof CreatePromptModelType>;
|
|
403
403
|
/**
|
|
404
404
|
* Only supported on `image` models.
|
|
405
405
|
*/
|
|
@@ -416,25 +416,25 @@ export type CreatePromptPromptsFormat = ClosedEnum<typeof CreatePromptPromptsFor
|
|
|
416
416
|
/**
|
|
417
417
|
* Only supported on `image` models.
|
|
418
418
|
*/
|
|
419
|
-
export declare const
|
|
419
|
+
export declare const CreatePromptQuality: {
|
|
420
420
|
readonly Standard: "standard";
|
|
421
421
|
readonly Hd: "hd";
|
|
422
422
|
};
|
|
423
423
|
/**
|
|
424
424
|
* Only supported on `image` models.
|
|
425
425
|
*/
|
|
426
|
-
export type
|
|
427
|
-
export declare const
|
|
426
|
+
export type CreatePromptQuality = ClosedEnum<typeof CreatePromptQuality>;
|
|
427
|
+
export declare const CreatePromptResponseFormatPromptsResponseType: {
|
|
428
428
|
readonly JsonObject: "json_object";
|
|
429
429
|
};
|
|
430
|
-
export type
|
|
431
|
-
export type
|
|
432
|
-
type:
|
|
430
|
+
export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<typeof CreatePromptResponseFormatPromptsResponseType>;
|
|
431
|
+
export type CreatePromptResponseFormat2 = {
|
|
432
|
+
type: CreatePromptResponseFormatPromptsResponseType;
|
|
433
433
|
};
|
|
434
|
-
export declare const
|
|
434
|
+
export declare const CreatePromptResponseFormatPromptsType: {
|
|
435
435
|
readonly JsonSchema: "json_schema";
|
|
436
436
|
};
|
|
437
|
-
export type
|
|
437
|
+
export type CreatePromptResponseFormatPromptsType = ClosedEnum<typeof CreatePromptResponseFormatPromptsType>;
|
|
438
438
|
export type CreatePromptResponseFormatJsonSchema = {
|
|
439
439
|
name: string;
|
|
440
440
|
strict: boolean;
|
|
@@ -442,8 +442,8 @@ export type CreatePromptResponseFormatJsonSchema = {
|
|
|
442
442
|
[k: string]: any;
|
|
443
443
|
};
|
|
444
444
|
};
|
|
445
|
-
export type
|
|
446
|
-
type:
|
|
445
|
+
export type CreatePromptResponseFormat1 = {
|
|
446
|
+
type: CreatePromptResponseFormatPromptsType;
|
|
447
447
|
jsonSchema: CreatePromptResponseFormatJsonSchema;
|
|
448
448
|
};
|
|
449
449
|
/**
|
|
@@ -457,33 +457,33 @@ export type CreatePromptResponseFormatPrompts1 = {
|
|
|
457
457
|
*
|
|
458
458
|
* 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.
|
|
459
459
|
*/
|
|
460
|
-
export type
|
|
460
|
+
export type CreatePromptResponseFormat = CreatePromptResponseFormat2 | CreatePromptResponseFormat1;
|
|
461
461
|
/**
|
|
462
462
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
463
463
|
*/
|
|
464
|
-
export declare const
|
|
464
|
+
export declare const CreatePromptPhotoRealVersion: {
|
|
465
465
|
readonly V1: "v1";
|
|
466
466
|
readonly V2: "v2";
|
|
467
467
|
};
|
|
468
468
|
/**
|
|
469
469
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
470
470
|
*/
|
|
471
|
-
export type
|
|
471
|
+
export type CreatePromptPhotoRealVersion = ClosedEnum<typeof CreatePromptPhotoRealVersion>;
|
|
472
472
|
/**
|
|
473
473
|
* The format to return the embeddings
|
|
474
474
|
*/
|
|
475
|
-
export declare const
|
|
475
|
+
export declare const CreatePromptEncodingFormat: {
|
|
476
476
|
readonly Float: "float";
|
|
477
477
|
readonly Base64: "base64";
|
|
478
478
|
};
|
|
479
479
|
/**
|
|
480
480
|
* The format to return the embeddings
|
|
481
481
|
*/
|
|
482
|
-
export type
|
|
482
|
+
export type CreatePromptEncodingFormat = ClosedEnum<typeof CreatePromptEncodingFormat>;
|
|
483
483
|
/**
|
|
484
484
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
485
485
|
*/
|
|
486
|
-
export declare const
|
|
486
|
+
export declare const CreatePromptReasoningEffort: {
|
|
487
487
|
readonly Low: "low";
|
|
488
488
|
readonly Medium: "medium";
|
|
489
489
|
readonly High: "high";
|
|
@@ -491,11 +491,11 @@ export declare const CreatePromptPromptsReasoningEffort: {
|
|
|
491
491
|
/**
|
|
492
492
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
493
493
|
*/
|
|
494
|
-
export type
|
|
494
|
+
export type CreatePromptReasoningEffort = ClosedEnum<typeof CreatePromptReasoningEffort>;
|
|
495
495
|
/**
|
|
496
496
|
* Model Parameters: Not all parameters apply to every model
|
|
497
497
|
*/
|
|
498
|
-
export type
|
|
498
|
+
export type CreatePromptModelParameters = {
|
|
499
499
|
/**
|
|
500
500
|
* Only supported on `chat` and `completion` models.
|
|
501
501
|
*/
|
|
@@ -539,7 +539,7 @@ export type CreatePromptPromptsModelParameters = {
|
|
|
539
539
|
/**
|
|
540
540
|
* Only supported on `image` models.
|
|
541
541
|
*/
|
|
542
|
-
quality?:
|
|
542
|
+
quality?: CreatePromptQuality | undefined;
|
|
543
543
|
/**
|
|
544
544
|
* Only supported on `image` models.
|
|
545
545
|
*/
|
|
@@ -555,25 +555,25 @@ export type CreatePromptPromptsModelParameters = {
|
|
|
555
555
|
*
|
|
556
556
|
* 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.
|
|
557
557
|
*/
|
|
558
|
-
responseFormat?:
|
|
558
|
+
responseFormat?: CreatePromptResponseFormat2 | CreatePromptResponseFormat1 | null | undefined;
|
|
559
559
|
/**
|
|
560
560
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
561
561
|
*/
|
|
562
|
-
photoRealVersion?:
|
|
562
|
+
photoRealVersion?: CreatePromptPhotoRealVersion | undefined;
|
|
563
563
|
/**
|
|
564
564
|
* The format to return the embeddings
|
|
565
565
|
*/
|
|
566
|
-
encodingFormat?:
|
|
566
|
+
encodingFormat?: CreatePromptEncodingFormat | undefined;
|
|
567
567
|
/**
|
|
568
568
|
* 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
569
|
*/
|
|
570
|
-
reasoningEffort?:
|
|
570
|
+
reasoningEffort?: CreatePromptReasoningEffort | undefined;
|
|
571
571
|
/**
|
|
572
572
|
* 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`
|
|
573
573
|
*/
|
|
574
574
|
budgetTokens?: number | undefined;
|
|
575
575
|
};
|
|
576
|
-
export declare const
|
|
576
|
+
export declare const CreatePromptProvider: {
|
|
577
577
|
readonly Cohere: "cohere";
|
|
578
578
|
readonly Openai: "openai";
|
|
579
579
|
readonly Anthropic: "anthropic";
|
|
@@ -593,7 +593,7 @@ export declare const CreatePromptPromptsProvider: {
|
|
|
593
593
|
readonly Togetherai: "togetherai";
|
|
594
594
|
readonly Elevenlabs: "elevenlabs";
|
|
595
595
|
};
|
|
596
|
-
export type
|
|
596
|
+
export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
|
|
597
597
|
/**
|
|
598
598
|
* The role of the prompt message
|
|
599
599
|
*/
|
|
@@ -683,7 +683,7 @@ export type CreatePromptPromptsMessages = {
|
|
|
683
683
|
/**
|
|
684
684
|
* A list of messages compatible with the openAI schema
|
|
685
685
|
*/
|
|
686
|
-
export type
|
|
686
|
+
export type CreatePromptPromptConfig = {
|
|
687
687
|
stream?: boolean | undefined;
|
|
688
688
|
model?: string | undefined;
|
|
689
689
|
/**
|
|
@@ -693,12 +693,12 @@ export type CreatePromptPromptsPromptConfig = {
|
|
|
693
693
|
/**
|
|
694
694
|
* The type of the model
|
|
695
695
|
*/
|
|
696
|
-
modelType?:
|
|
696
|
+
modelType?: CreatePromptModelType | undefined;
|
|
697
697
|
/**
|
|
698
698
|
* Model Parameters: Not all parameters apply to every model
|
|
699
699
|
*/
|
|
700
|
-
modelParameters?:
|
|
701
|
-
provider?:
|
|
700
|
+
modelParameters?: CreatePromptModelParameters | undefined;
|
|
701
|
+
provider?: CreatePromptProvider | undefined;
|
|
702
702
|
/**
|
|
703
703
|
* The id of the resource
|
|
704
704
|
*/
|
|
@@ -706,7 +706,7 @@ export type CreatePromptPromptsPromptConfig = {
|
|
|
706
706
|
version?: string | undefined;
|
|
707
707
|
messages: Array<CreatePromptPromptsMessages>;
|
|
708
708
|
};
|
|
709
|
-
export declare const
|
|
709
|
+
export declare const CreatePromptUseCases: {
|
|
710
710
|
readonly Agents: "Agents";
|
|
711
711
|
readonly AgentsSimulations: "Agents simulations";
|
|
712
712
|
readonly APIInteraction: "API interaction";
|
|
@@ -724,11 +724,11 @@ export declare const CreatePromptPromptsUseCases: {
|
|
|
724
724
|
readonly Summarization: "Summarization";
|
|
725
725
|
readonly Tagging: "Tagging";
|
|
726
726
|
};
|
|
727
|
-
export type
|
|
727
|
+
export type CreatePromptUseCases = ClosedEnum<typeof CreatePromptUseCases>;
|
|
728
728
|
/**
|
|
729
729
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
730
730
|
*/
|
|
731
|
-
export declare const
|
|
731
|
+
export declare const CreatePromptLanguage: {
|
|
732
732
|
readonly Chinese: "Chinese";
|
|
733
733
|
readonly Dutch: "Dutch";
|
|
734
734
|
readonly English: "English";
|
|
@@ -740,16 +740,16 @@ export declare const CreatePromptPromptsLanguage: {
|
|
|
740
740
|
/**
|
|
741
741
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
742
742
|
*/
|
|
743
|
-
export type
|
|
743
|
+
export type CreatePromptLanguage = ClosedEnum<typeof CreatePromptLanguage>;
|
|
744
744
|
export type CreatePromptPromptsMetadata = {
|
|
745
745
|
/**
|
|
746
746
|
* 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
|
|
747
747
|
*/
|
|
748
|
-
useCases?: Array<
|
|
748
|
+
useCases?: Array<CreatePromptUseCases> | undefined;
|
|
749
749
|
/**
|
|
750
750
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
751
751
|
*/
|
|
752
|
-
language?:
|
|
752
|
+
language?: CreatePromptLanguage | undefined;
|
|
753
753
|
};
|
|
754
754
|
/**
|
|
755
755
|
* Prompt created.
|
|
@@ -774,19 +774,19 @@ export type CreatePromptResponseBody = {
|
|
|
774
774
|
/**
|
|
775
775
|
* A list of messages compatible with the openAI schema
|
|
776
776
|
*/
|
|
777
|
-
promptConfig:
|
|
777
|
+
promptConfig: CreatePromptPromptConfig;
|
|
778
778
|
metadata?: CreatePromptPromptsMetadata | undefined;
|
|
779
779
|
};
|
|
780
780
|
/** @internal */
|
|
781
|
-
export declare const
|
|
781
|
+
export declare const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType>;
|
|
782
782
|
/** @internal */
|
|
783
|
-
export declare const
|
|
783
|
+
export declare const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType>;
|
|
784
784
|
/**
|
|
785
785
|
* @internal
|
|
786
786
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
787
787
|
*/
|
|
788
|
-
export declare namespace
|
|
789
|
-
/** @deprecated use `
|
|
788
|
+
export declare namespace ModelType$ {
|
|
789
|
+
/** @deprecated use `ModelType$inboundSchema` instead. */
|
|
790
790
|
const inboundSchema: z.ZodNativeEnum<{
|
|
791
791
|
readonly Chat: "chat";
|
|
792
792
|
readonly Completion: "completion";
|
|
@@ -798,7 +798,7 @@ export declare namespace CreatePromptModelType$ {
|
|
|
798
798
|
readonly Rerank: "rerank";
|
|
799
799
|
readonly Moderations: "moderations";
|
|
800
800
|
}>;
|
|
801
|
-
/** @deprecated use `
|
|
801
|
+
/** @deprecated use `ModelType$outboundSchema` instead. */
|
|
802
802
|
const outboundSchema: z.ZodNativeEnum<{
|
|
803
803
|
readonly Chat: "chat";
|
|
804
804
|
readonly Completion: "completion";
|
|
@@ -836,87 +836,87 @@ export declare namespace CreatePromptFormat$ {
|
|
|
836
836
|
}>;
|
|
837
837
|
}
|
|
838
838
|
/** @internal */
|
|
839
|
-
export declare const
|
|
839
|
+
export declare const Quality$inboundSchema: z.ZodNativeEnum<typeof Quality>;
|
|
840
840
|
/** @internal */
|
|
841
|
-
export declare const
|
|
841
|
+
export declare const Quality$outboundSchema: z.ZodNativeEnum<typeof Quality>;
|
|
842
842
|
/**
|
|
843
843
|
* @internal
|
|
844
844
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
845
845
|
*/
|
|
846
|
-
export declare namespace
|
|
847
|
-
/** @deprecated use `
|
|
846
|
+
export declare namespace Quality$ {
|
|
847
|
+
/** @deprecated use `Quality$inboundSchema` instead. */
|
|
848
848
|
const inboundSchema: z.ZodNativeEnum<{
|
|
849
849
|
readonly Standard: "standard";
|
|
850
850
|
readonly Hd: "hd";
|
|
851
851
|
}>;
|
|
852
|
-
/** @deprecated use `
|
|
852
|
+
/** @deprecated use `Quality$outboundSchema` instead. */
|
|
853
853
|
const outboundSchema: z.ZodNativeEnum<{
|
|
854
854
|
readonly Standard: "standard";
|
|
855
855
|
readonly Hd: "hd";
|
|
856
856
|
}>;
|
|
857
857
|
}
|
|
858
858
|
/** @internal */
|
|
859
|
-
export declare const
|
|
859
|
+
export declare const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatType>;
|
|
860
860
|
/** @internal */
|
|
861
|
-
export declare const
|
|
861
|
+
export declare const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatType>;
|
|
862
862
|
/**
|
|
863
863
|
* @internal
|
|
864
864
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
865
865
|
*/
|
|
866
|
-
export declare namespace
|
|
867
|
-
/** @deprecated use `
|
|
866
|
+
export declare namespace CreatePromptResponseFormatType$ {
|
|
867
|
+
/** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
|
|
868
868
|
const inboundSchema: z.ZodNativeEnum<{
|
|
869
869
|
readonly JsonObject: "json_object";
|
|
870
870
|
}>;
|
|
871
|
-
/** @deprecated use `
|
|
871
|
+
/** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
|
|
872
872
|
const outboundSchema: z.ZodNativeEnum<{
|
|
873
873
|
readonly JsonObject: "json_object";
|
|
874
874
|
}>;
|
|
875
875
|
}
|
|
876
876
|
/** @internal */
|
|
877
|
-
export declare const
|
|
877
|
+
export declare const ResponseFormat2$inboundSchema: z.ZodType<ResponseFormat2, z.ZodTypeDef, unknown>;
|
|
878
878
|
/** @internal */
|
|
879
|
-
export type
|
|
879
|
+
export type ResponseFormat2$Outbound = {
|
|
880
880
|
type: string;
|
|
881
881
|
};
|
|
882
882
|
/** @internal */
|
|
883
|
-
export declare const
|
|
883
|
+
export declare const ResponseFormat2$outboundSchema: z.ZodType<ResponseFormat2$Outbound, z.ZodTypeDef, ResponseFormat2>;
|
|
884
884
|
/**
|
|
885
885
|
* @internal
|
|
886
886
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
887
887
|
*/
|
|
888
|
-
export declare namespace
|
|
889
|
-
/** @deprecated use `
|
|
890
|
-
const inboundSchema: z.ZodType<
|
|
891
|
-
/** @deprecated use `
|
|
892
|
-
const outboundSchema: z.ZodType<
|
|
893
|
-
/** @deprecated use `
|
|
894
|
-
type Outbound =
|
|
888
|
+
export declare namespace ResponseFormat2$ {
|
|
889
|
+
/** @deprecated use `ResponseFormat2$inboundSchema` instead. */
|
|
890
|
+
const inboundSchema: z.ZodType<ResponseFormat2, z.ZodTypeDef, unknown>;
|
|
891
|
+
/** @deprecated use `ResponseFormat2$outboundSchema` instead. */
|
|
892
|
+
const outboundSchema: z.ZodType<ResponseFormat2$Outbound, z.ZodTypeDef, ResponseFormat2>;
|
|
893
|
+
/** @deprecated use `ResponseFormat2$Outbound` instead. */
|
|
894
|
+
type Outbound = ResponseFormat2$Outbound;
|
|
895
895
|
}
|
|
896
|
-
export declare function
|
|
897
|
-
export declare function
|
|
896
|
+
export declare function responseFormat2ToJSON(responseFormat2: ResponseFormat2): string;
|
|
897
|
+
export declare function responseFormat2FromJSON(jsonString: string): SafeParseResult<ResponseFormat2, SDKValidationError>;
|
|
898
898
|
/** @internal */
|
|
899
|
-
export declare const
|
|
899
|
+
export declare const ResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof ResponseFormatType>;
|
|
900
900
|
/** @internal */
|
|
901
|
-
export declare const
|
|
901
|
+
export declare const ResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof ResponseFormatType>;
|
|
902
902
|
/**
|
|
903
903
|
* @internal
|
|
904
904
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
905
905
|
*/
|
|
906
|
-
export declare namespace
|
|
907
|
-
/** @deprecated use `
|
|
906
|
+
export declare namespace ResponseFormatType$ {
|
|
907
|
+
/** @deprecated use `ResponseFormatType$inboundSchema` instead. */
|
|
908
908
|
const inboundSchema: z.ZodNativeEnum<{
|
|
909
909
|
readonly JsonSchema: "json_schema";
|
|
910
910
|
}>;
|
|
911
|
-
/** @deprecated use `
|
|
911
|
+
/** @deprecated use `ResponseFormatType$outboundSchema` instead. */
|
|
912
912
|
const outboundSchema: z.ZodNativeEnum<{
|
|
913
913
|
readonly JsonSchema: "json_schema";
|
|
914
914
|
}>;
|
|
915
915
|
}
|
|
916
916
|
/** @internal */
|
|
917
|
-
export declare const
|
|
917
|
+
export declare const JsonSchema$inboundSchema: z.ZodType<JsonSchema, z.ZodTypeDef, unknown>;
|
|
918
918
|
/** @internal */
|
|
919
|
-
export type
|
|
919
|
+
export type JsonSchema$Outbound = {
|
|
920
920
|
name: string;
|
|
921
921
|
strict: boolean;
|
|
922
922
|
schema: {
|
|
@@ -924,120 +924,120 @@ export type ResponseFormatJsonSchema$Outbound = {
|
|
|
924
924
|
};
|
|
925
925
|
};
|
|
926
926
|
/** @internal */
|
|
927
|
-
export declare const
|
|
927
|
+
export declare const JsonSchema$outboundSchema: z.ZodType<JsonSchema$Outbound, z.ZodTypeDef, JsonSchema>;
|
|
928
928
|
/**
|
|
929
929
|
* @internal
|
|
930
930
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
931
931
|
*/
|
|
932
|
-
export declare namespace
|
|
933
|
-
/** @deprecated use `
|
|
934
|
-
const inboundSchema: z.ZodType<
|
|
935
|
-
/** @deprecated use `
|
|
936
|
-
const outboundSchema: z.ZodType<
|
|
937
|
-
/** @deprecated use `
|
|
938
|
-
type Outbound =
|
|
932
|
+
export declare namespace JsonSchema$ {
|
|
933
|
+
/** @deprecated use `JsonSchema$inboundSchema` instead. */
|
|
934
|
+
const inboundSchema: z.ZodType<JsonSchema, z.ZodTypeDef, unknown>;
|
|
935
|
+
/** @deprecated use `JsonSchema$outboundSchema` instead. */
|
|
936
|
+
const outboundSchema: z.ZodType<JsonSchema$Outbound, z.ZodTypeDef, JsonSchema>;
|
|
937
|
+
/** @deprecated use `JsonSchema$Outbound` instead. */
|
|
938
|
+
type Outbound = JsonSchema$Outbound;
|
|
939
939
|
}
|
|
940
|
-
export declare function
|
|
941
|
-
export declare function
|
|
940
|
+
export declare function jsonSchemaToJSON(jsonSchema: JsonSchema): string;
|
|
941
|
+
export declare function jsonSchemaFromJSON(jsonString: string): SafeParseResult<JsonSchema, SDKValidationError>;
|
|
942
942
|
/** @internal */
|
|
943
|
-
export declare const
|
|
943
|
+
export declare const ResponseFormat1$inboundSchema: z.ZodType<ResponseFormat1, z.ZodTypeDef, unknown>;
|
|
944
944
|
/** @internal */
|
|
945
|
-
export type
|
|
945
|
+
export type ResponseFormat1$Outbound = {
|
|
946
946
|
type: string;
|
|
947
|
-
json_schema:
|
|
947
|
+
json_schema: JsonSchema$Outbound;
|
|
948
948
|
};
|
|
949
949
|
/** @internal */
|
|
950
|
-
export declare const
|
|
950
|
+
export declare const ResponseFormat1$outboundSchema: z.ZodType<ResponseFormat1$Outbound, z.ZodTypeDef, ResponseFormat1>;
|
|
951
951
|
/**
|
|
952
952
|
* @internal
|
|
953
953
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
954
954
|
*/
|
|
955
|
-
export declare namespace
|
|
956
|
-
/** @deprecated use `
|
|
957
|
-
const inboundSchema: z.ZodType<
|
|
958
|
-
/** @deprecated use `
|
|
959
|
-
const outboundSchema: z.ZodType<
|
|
960
|
-
/** @deprecated use `
|
|
961
|
-
type Outbound =
|
|
955
|
+
export declare namespace ResponseFormat1$ {
|
|
956
|
+
/** @deprecated use `ResponseFormat1$inboundSchema` instead. */
|
|
957
|
+
const inboundSchema: z.ZodType<ResponseFormat1, z.ZodTypeDef, unknown>;
|
|
958
|
+
/** @deprecated use `ResponseFormat1$outboundSchema` instead. */
|
|
959
|
+
const outboundSchema: z.ZodType<ResponseFormat1$Outbound, z.ZodTypeDef, ResponseFormat1>;
|
|
960
|
+
/** @deprecated use `ResponseFormat1$Outbound` instead. */
|
|
961
|
+
type Outbound = ResponseFormat1$Outbound;
|
|
962
962
|
}
|
|
963
|
-
export declare function
|
|
964
|
-
export declare function
|
|
963
|
+
export declare function responseFormat1ToJSON(responseFormat1: ResponseFormat1): string;
|
|
964
|
+
export declare function responseFormat1FromJSON(jsonString: string): SafeParseResult<ResponseFormat1, SDKValidationError>;
|
|
965
965
|
/** @internal */
|
|
966
|
-
export declare const
|
|
966
|
+
export declare const ResponseFormat$inboundSchema: z.ZodType<ResponseFormat, z.ZodTypeDef, unknown>;
|
|
967
967
|
/** @internal */
|
|
968
|
-
export type
|
|
968
|
+
export type ResponseFormat$Outbound = ResponseFormat2$Outbound | ResponseFormat1$Outbound;
|
|
969
969
|
/** @internal */
|
|
970
|
-
export declare const
|
|
970
|
+
export declare const ResponseFormat$outboundSchema: z.ZodType<ResponseFormat$Outbound, z.ZodTypeDef, ResponseFormat>;
|
|
971
971
|
/**
|
|
972
972
|
* @internal
|
|
973
973
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
974
974
|
*/
|
|
975
|
-
export declare namespace
|
|
976
|
-
/** @deprecated use `
|
|
977
|
-
const inboundSchema: z.ZodType<
|
|
978
|
-
/** @deprecated use `
|
|
979
|
-
const outboundSchema: z.ZodType<
|
|
980
|
-
/** @deprecated use `
|
|
981
|
-
type Outbound =
|
|
975
|
+
export declare namespace ResponseFormat$ {
|
|
976
|
+
/** @deprecated use `ResponseFormat$inboundSchema` instead. */
|
|
977
|
+
const inboundSchema: z.ZodType<ResponseFormat, z.ZodTypeDef, unknown>;
|
|
978
|
+
/** @deprecated use `ResponseFormat$outboundSchema` instead. */
|
|
979
|
+
const outboundSchema: z.ZodType<ResponseFormat$Outbound, z.ZodTypeDef, ResponseFormat>;
|
|
980
|
+
/** @deprecated use `ResponseFormat$Outbound` instead. */
|
|
981
|
+
type Outbound = ResponseFormat$Outbound;
|
|
982
982
|
}
|
|
983
|
-
export declare function
|
|
984
|
-
export declare function
|
|
983
|
+
export declare function responseFormatToJSON(responseFormat: ResponseFormat): string;
|
|
984
|
+
export declare function responseFormatFromJSON(jsonString: string): SafeParseResult<ResponseFormat, SDKValidationError>;
|
|
985
985
|
/** @internal */
|
|
986
|
-
export declare const
|
|
986
|
+
export declare const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof PhotoRealVersion>;
|
|
987
987
|
/** @internal */
|
|
988
|
-
export declare const
|
|
988
|
+
export declare const PhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof PhotoRealVersion>;
|
|
989
989
|
/**
|
|
990
990
|
* @internal
|
|
991
991
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
992
992
|
*/
|
|
993
|
-
export declare namespace
|
|
994
|
-
/** @deprecated use `
|
|
993
|
+
export declare namespace PhotoRealVersion$ {
|
|
994
|
+
/** @deprecated use `PhotoRealVersion$inboundSchema` instead. */
|
|
995
995
|
const inboundSchema: z.ZodNativeEnum<{
|
|
996
996
|
readonly V1: "v1";
|
|
997
997
|
readonly V2: "v2";
|
|
998
998
|
}>;
|
|
999
|
-
/** @deprecated use `
|
|
999
|
+
/** @deprecated use `PhotoRealVersion$outboundSchema` instead. */
|
|
1000
1000
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1001
1001
|
readonly V1: "v1";
|
|
1002
1002
|
readonly V2: "v2";
|
|
1003
1003
|
}>;
|
|
1004
1004
|
}
|
|
1005
1005
|
/** @internal */
|
|
1006
|
-
export declare const
|
|
1006
|
+
export declare const EncodingFormat$inboundSchema: z.ZodNativeEnum<typeof EncodingFormat>;
|
|
1007
1007
|
/** @internal */
|
|
1008
|
-
export declare const
|
|
1008
|
+
export declare const EncodingFormat$outboundSchema: z.ZodNativeEnum<typeof EncodingFormat>;
|
|
1009
1009
|
/**
|
|
1010
1010
|
* @internal
|
|
1011
1011
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1012
1012
|
*/
|
|
1013
|
-
export declare namespace
|
|
1014
|
-
/** @deprecated use `
|
|
1013
|
+
export declare namespace EncodingFormat$ {
|
|
1014
|
+
/** @deprecated use `EncodingFormat$inboundSchema` instead. */
|
|
1015
1015
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1016
1016
|
readonly Float: "float";
|
|
1017
1017
|
readonly Base64: "base64";
|
|
1018
1018
|
}>;
|
|
1019
|
-
/** @deprecated use `
|
|
1019
|
+
/** @deprecated use `EncodingFormat$outboundSchema` instead. */
|
|
1020
1020
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1021
1021
|
readonly Float: "float";
|
|
1022
1022
|
readonly Base64: "base64";
|
|
1023
1023
|
}>;
|
|
1024
1024
|
}
|
|
1025
1025
|
/** @internal */
|
|
1026
|
-
export declare const
|
|
1026
|
+
export declare const ReasoningEffort$inboundSchema: z.ZodNativeEnum<typeof ReasoningEffort>;
|
|
1027
1027
|
/** @internal */
|
|
1028
|
-
export declare const
|
|
1028
|
+
export declare const ReasoningEffort$outboundSchema: z.ZodNativeEnum<typeof ReasoningEffort>;
|
|
1029
1029
|
/**
|
|
1030
1030
|
* @internal
|
|
1031
1031
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1032
1032
|
*/
|
|
1033
|
-
export declare namespace
|
|
1034
|
-
/** @deprecated use `
|
|
1033
|
+
export declare namespace ReasoningEffort$ {
|
|
1034
|
+
/** @deprecated use `ReasoningEffort$inboundSchema` instead. */
|
|
1035
1035
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1036
1036
|
readonly Low: "low";
|
|
1037
1037
|
readonly Medium: "medium";
|
|
1038
1038
|
readonly High: "high";
|
|
1039
1039
|
}>;
|
|
1040
|
-
/** @deprecated use `
|
|
1040
|
+
/** @deprecated use `ReasoningEffort$outboundSchema` instead. */
|
|
1041
1041
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1042
1042
|
readonly Low: "low";
|
|
1043
1043
|
readonly Medium: "medium";
|
|
@@ -1045,9 +1045,9 @@ export declare namespace CreatePromptReasoningEffort$ {
|
|
|
1045
1045
|
}>;
|
|
1046
1046
|
}
|
|
1047
1047
|
/** @internal */
|
|
1048
|
-
export declare const
|
|
1048
|
+
export declare const ModelParameters$inboundSchema: z.ZodType<ModelParameters, z.ZodTypeDef, unknown>;
|
|
1049
1049
|
/** @internal */
|
|
1050
|
-
export type
|
|
1050
|
+
export type ModelParameters$Outbound = {
|
|
1051
1051
|
temperature?: number | undefined;
|
|
1052
1052
|
maxTokens?: number | undefined;
|
|
1053
1053
|
topK?: number | undefined;
|
|
@@ -1060,38 +1060,38 @@ export type CreatePromptModelParameters$Outbound = {
|
|
|
1060
1060
|
dimensions?: string | undefined;
|
|
1061
1061
|
quality?: string | undefined;
|
|
1062
1062
|
style?: string | undefined;
|
|
1063
|
-
responseFormat?:
|
|
1063
|
+
responseFormat?: ResponseFormat2$Outbound | ResponseFormat1$Outbound | null | undefined;
|
|
1064
1064
|
photoRealVersion?: string | undefined;
|
|
1065
1065
|
encoding_format?: string | undefined;
|
|
1066
1066
|
reasoningEffort?: string | undefined;
|
|
1067
1067
|
budgetTokens?: number | undefined;
|
|
1068
1068
|
};
|
|
1069
1069
|
/** @internal */
|
|
1070
|
-
export declare const
|
|
1070
|
+
export declare const ModelParameters$outboundSchema: z.ZodType<ModelParameters$Outbound, z.ZodTypeDef, ModelParameters>;
|
|
1071
1071
|
/**
|
|
1072
1072
|
* @internal
|
|
1073
1073
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1074
1074
|
*/
|
|
1075
|
-
export declare namespace
|
|
1076
|
-
/** @deprecated use `
|
|
1077
|
-
const inboundSchema: z.ZodType<
|
|
1078
|
-
/** @deprecated use `
|
|
1079
|
-
const outboundSchema: z.ZodType<
|
|
1080
|
-
/** @deprecated use `
|
|
1081
|
-
type Outbound =
|
|
1075
|
+
export declare namespace ModelParameters$ {
|
|
1076
|
+
/** @deprecated use `ModelParameters$inboundSchema` instead. */
|
|
1077
|
+
const inboundSchema: z.ZodType<ModelParameters, z.ZodTypeDef, unknown>;
|
|
1078
|
+
/** @deprecated use `ModelParameters$outboundSchema` instead. */
|
|
1079
|
+
const outboundSchema: z.ZodType<ModelParameters$Outbound, z.ZodTypeDef, ModelParameters>;
|
|
1080
|
+
/** @deprecated use `ModelParameters$Outbound` instead. */
|
|
1081
|
+
type Outbound = ModelParameters$Outbound;
|
|
1082
1082
|
}
|
|
1083
|
-
export declare function
|
|
1084
|
-
export declare function
|
|
1083
|
+
export declare function modelParametersToJSON(modelParameters: ModelParameters): string;
|
|
1084
|
+
export declare function modelParametersFromJSON(jsonString: string): SafeParseResult<ModelParameters, SDKValidationError>;
|
|
1085
1085
|
/** @internal */
|
|
1086
|
-
export declare const
|
|
1086
|
+
export declare const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider>;
|
|
1087
1087
|
/** @internal */
|
|
1088
|
-
export declare const
|
|
1088
|
+
export declare const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider>;
|
|
1089
1089
|
/**
|
|
1090
1090
|
* @internal
|
|
1091
1091
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1092
1092
|
*/
|
|
1093
|
-
export declare namespace
|
|
1094
|
-
/** @deprecated use `
|
|
1093
|
+
export declare namespace Provider$ {
|
|
1094
|
+
/** @deprecated use `Provider$inboundSchema` instead. */
|
|
1095
1095
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1096
1096
|
readonly Cohere: "cohere";
|
|
1097
1097
|
readonly Openai: "openai";
|
|
@@ -1112,7 +1112,7 @@ export declare namespace CreatePromptProvider$ {
|
|
|
1112
1112
|
readonly Togetherai: "togetherai";
|
|
1113
1113
|
readonly Elevenlabs: "elevenlabs";
|
|
1114
1114
|
}>;
|
|
1115
|
-
/** @deprecated use `
|
|
1115
|
+
/** @deprecated use `Provider$outboundSchema` instead. */
|
|
1116
1116
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1117
1117
|
readonly Cohere: "cohere";
|
|
1118
1118
|
readonly Openai: "openai";
|
|
@@ -1402,43 +1402,43 @@ export declare namespace CreatePromptMessages$ {
|
|
|
1402
1402
|
export declare function createPromptMessagesToJSON(createPromptMessages: CreatePromptMessages): string;
|
|
1403
1403
|
export declare function createPromptMessagesFromJSON(jsonString: string): SafeParseResult<CreatePromptMessages, SDKValidationError>;
|
|
1404
1404
|
/** @internal */
|
|
1405
|
-
export declare const
|
|
1405
|
+
export declare const PromptConfig$inboundSchema: z.ZodType<PromptConfig, z.ZodTypeDef, unknown>;
|
|
1406
1406
|
/** @internal */
|
|
1407
|
-
export type
|
|
1407
|
+
export type PromptConfig$Outbound = {
|
|
1408
1408
|
stream?: boolean | undefined;
|
|
1409
1409
|
model?: string | undefined;
|
|
1410
1410
|
model_type?: string | undefined;
|
|
1411
|
-
model_parameters?:
|
|
1411
|
+
model_parameters?: ModelParameters$Outbound | undefined;
|
|
1412
1412
|
provider?: string | undefined;
|
|
1413
1413
|
version?: string | undefined;
|
|
1414
1414
|
messages: Array<CreatePromptMessages$Outbound>;
|
|
1415
1415
|
};
|
|
1416
1416
|
/** @internal */
|
|
1417
|
-
export declare const
|
|
1417
|
+
export declare const PromptConfig$outboundSchema: z.ZodType<PromptConfig$Outbound, z.ZodTypeDef, PromptConfig>;
|
|
1418
1418
|
/**
|
|
1419
1419
|
* @internal
|
|
1420
1420
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1421
1421
|
*/
|
|
1422
|
-
export declare namespace
|
|
1423
|
-
/** @deprecated use `
|
|
1424
|
-
const inboundSchema: z.ZodType<
|
|
1425
|
-
/** @deprecated use `
|
|
1426
|
-
const outboundSchema: z.ZodType<
|
|
1427
|
-
/** @deprecated use `
|
|
1428
|
-
type Outbound =
|
|
1422
|
+
export declare namespace PromptConfig$ {
|
|
1423
|
+
/** @deprecated use `PromptConfig$inboundSchema` instead. */
|
|
1424
|
+
const inboundSchema: z.ZodType<PromptConfig, z.ZodTypeDef, unknown>;
|
|
1425
|
+
/** @deprecated use `PromptConfig$outboundSchema` instead. */
|
|
1426
|
+
const outboundSchema: z.ZodType<PromptConfig$Outbound, z.ZodTypeDef, PromptConfig>;
|
|
1427
|
+
/** @deprecated use `PromptConfig$Outbound` instead. */
|
|
1428
|
+
type Outbound = PromptConfig$Outbound;
|
|
1429
1429
|
}
|
|
1430
|
-
export declare function
|
|
1431
|
-
export declare function
|
|
1430
|
+
export declare function promptConfigToJSON(promptConfig: PromptConfig): string;
|
|
1431
|
+
export declare function promptConfigFromJSON(jsonString: string): SafeParseResult<PromptConfig, SDKValidationError>;
|
|
1432
1432
|
/** @internal */
|
|
1433
|
-
export declare const
|
|
1433
|
+
export declare const UseCases$inboundSchema: z.ZodNativeEnum<typeof UseCases>;
|
|
1434
1434
|
/** @internal */
|
|
1435
|
-
export declare const
|
|
1435
|
+
export declare const UseCases$outboundSchema: z.ZodNativeEnum<typeof UseCases>;
|
|
1436
1436
|
/**
|
|
1437
1437
|
* @internal
|
|
1438
1438
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1439
1439
|
*/
|
|
1440
|
-
export declare namespace
|
|
1441
|
-
/** @deprecated use `
|
|
1440
|
+
export declare namespace UseCases$ {
|
|
1441
|
+
/** @deprecated use `UseCases$inboundSchema` instead. */
|
|
1442
1442
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1443
1443
|
readonly Agents: "Agents";
|
|
1444
1444
|
readonly AgentsSimulations: "Agents simulations";
|
|
@@ -1457,7 +1457,7 @@ export declare namespace CreatePromptUseCases$ {
|
|
|
1457
1457
|
readonly Summarization: "Summarization";
|
|
1458
1458
|
readonly Tagging: "Tagging";
|
|
1459
1459
|
}>;
|
|
1460
|
-
/** @deprecated use `
|
|
1460
|
+
/** @deprecated use `UseCases$outboundSchema` instead. */
|
|
1461
1461
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1462
1462
|
readonly Agents: "Agents";
|
|
1463
1463
|
readonly AgentsSimulations: "Agents simulations";
|
|
@@ -1478,15 +1478,15 @@ export declare namespace CreatePromptUseCases$ {
|
|
|
1478
1478
|
}>;
|
|
1479
1479
|
}
|
|
1480
1480
|
/** @internal */
|
|
1481
|
-
export declare const
|
|
1481
|
+
export declare const Language$inboundSchema: z.ZodNativeEnum<typeof Language>;
|
|
1482
1482
|
/** @internal */
|
|
1483
|
-
export declare const
|
|
1483
|
+
export declare const Language$outboundSchema: z.ZodNativeEnum<typeof Language>;
|
|
1484
1484
|
/**
|
|
1485
1485
|
* @internal
|
|
1486
1486
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1487
1487
|
*/
|
|
1488
|
-
export declare namespace
|
|
1489
|
-
/** @deprecated use `
|
|
1488
|
+
export declare namespace Language$ {
|
|
1489
|
+
/** @deprecated use `Language$inboundSchema` instead. */
|
|
1490
1490
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1491
1491
|
readonly Chinese: "Chinese";
|
|
1492
1492
|
readonly Dutch: "Dutch";
|
|
@@ -1496,7 +1496,7 @@ export declare namespace CreatePromptLanguage$ {
|
|
|
1496
1496
|
readonly Russian: "Russian";
|
|
1497
1497
|
readonly Spanish: "Spanish";
|
|
1498
1498
|
}>;
|
|
1499
|
-
/** @deprecated use `
|
|
1499
|
+
/** @deprecated use `Language$outboundSchema` instead. */
|
|
1500
1500
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1501
1501
|
readonly Chinese: "Chinese";
|
|
1502
1502
|
readonly Dutch: "Dutch";
|
|
@@ -1536,7 +1536,7 @@ export declare const CreatePromptRequestBody$inboundSchema: z.ZodType<CreateProm
|
|
|
1536
1536
|
export type CreatePromptRequestBody$Outbound = {
|
|
1537
1537
|
display_name: string;
|
|
1538
1538
|
description?: string | null | undefined;
|
|
1539
|
-
prompt_config:
|
|
1539
|
+
prompt_config: PromptConfig$Outbound;
|
|
1540
1540
|
metadata?: CreatePromptMetadata$Outbound | undefined;
|
|
1541
1541
|
path: string;
|
|
1542
1542
|
};
|
|
@@ -1575,15 +1575,15 @@ export declare namespace CreatePromptPromptsType$ {
|
|
|
1575
1575
|
}>;
|
|
1576
1576
|
}
|
|
1577
1577
|
/** @internal */
|
|
1578
|
-
export declare const
|
|
1578
|
+
export declare const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptModelType>;
|
|
1579
1579
|
/** @internal */
|
|
1580
|
-
export declare const
|
|
1580
|
+
export declare const CreatePromptModelType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptModelType>;
|
|
1581
1581
|
/**
|
|
1582
1582
|
* @internal
|
|
1583
1583
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1584
1584
|
*/
|
|
1585
|
-
export declare namespace
|
|
1586
|
-
/** @deprecated use `
|
|
1585
|
+
export declare namespace CreatePromptModelType$ {
|
|
1586
|
+
/** @deprecated use `CreatePromptModelType$inboundSchema` instead. */
|
|
1587
1587
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1588
1588
|
readonly Chat: "chat";
|
|
1589
1589
|
readonly Completion: "completion";
|
|
@@ -1595,7 +1595,7 @@ export declare namespace CreatePromptPromptsModelType$ {
|
|
|
1595
1595
|
readonly Rerank: "rerank";
|
|
1596
1596
|
readonly Moderations: "moderations";
|
|
1597
1597
|
}>;
|
|
1598
|
-
/** @deprecated use `
|
|
1598
|
+
/** @deprecated use `CreatePromptModelType$outboundSchema` instead. */
|
|
1599
1599
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1600
1600
|
readonly Chat: "chat";
|
|
1601
1601
|
readonly Completion: "completion";
|
|
@@ -1633,79 +1633,79 @@ export declare namespace CreatePromptPromptsFormat$ {
|
|
|
1633
1633
|
}>;
|
|
1634
1634
|
}
|
|
1635
1635
|
/** @internal */
|
|
1636
|
-
export declare const
|
|
1636
|
+
export declare const CreatePromptQuality$inboundSchema: z.ZodNativeEnum<typeof CreatePromptQuality>;
|
|
1637
1637
|
/** @internal */
|
|
1638
|
-
export declare const
|
|
1638
|
+
export declare const CreatePromptQuality$outboundSchema: z.ZodNativeEnum<typeof CreatePromptQuality>;
|
|
1639
1639
|
/**
|
|
1640
1640
|
* @internal
|
|
1641
1641
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1642
1642
|
*/
|
|
1643
|
-
export declare namespace
|
|
1644
|
-
/** @deprecated use `
|
|
1643
|
+
export declare namespace CreatePromptQuality$ {
|
|
1644
|
+
/** @deprecated use `CreatePromptQuality$inboundSchema` instead. */
|
|
1645
1645
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1646
1646
|
readonly Standard: "standard";
|
|
1647
1647
|
readonly Hd: "hd";
|
|
1648
1648
|
}>;
|
|
1649
|
-
/** @deprecated use `
|
|
1649
|
+
/** @deprecated use `CreatePromptQuality$outboundSchema` instead. */
|
|
1650
1650
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1651
1651
|
readonly Standard: "standard";
|
|
1652
1652
|
readonly Hd: "hd";
|
|
1653
1653
|
}>;
|
|
1654
1654
|
}
|
|
1655
1655
|
/** @internal */
|
|
1656
|
-
export declare const
|
|
1656
|
+
export declare const CreatePromptResponseFormatPromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType>;
|
|
1657
1657
|
/** @internal */
|
|
1658
|
-
export declare const
|
|
1658
|
+
export declare const CreatePromptResponseFormatPromptsResponseType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType>;
|
|
1659
1659
|
/**
|
|
1660
1660
|
* @internal
|
|
1661
1661
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1662
1662
|
*/
|
|
1663
|
-
export declare namespace
|
|
1664
|
-
/** @deprecated use `
|
|
1663
|
+
export declare namespace CreatePromptResponseFormatPromptsResponseType$ {
|
|
1664
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
1665
1665
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1666
1666
|
readonly JsonObject: "json_object";
|
|
1667
1667
|
}>;
|
|
1668
|
-
/** @deprecated use `
|
|
1668
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
1669
1669
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1670
1670
|
readonly JsonObject: "json_object";
|
|
1671
1671
|
}>;
|
|
1672
1672
|
}
|
|
1673
1673
|
/** @internal */
|
|
1674
|
-
export declare const
|
|
1674
|
+
export declare const CreatePromptResponseFormat2$inboundSchema: z.ZodType<CreatePromptResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1675
1675
|
/** @internal */
|
|
1676
|
-
export type
|
|
1676
|
+
export type CreatePromptResponseFormat2$Outbound = {
|
|
1677
1677
|
type: string;
|
|
1678
1678
|
};
|
|
1679
1679
|
/** @internal */
|
|
1680
|
-
export declare const
|
|
1680
|
+
export declare const CreatePromptResponseFormat2$outboundSchema: z.ZodType<CreatePromptResponseFormat2$Outbound, z.ZodTypeDef, CreatePromptResponseFormat2>;
|
|
1681
1681
|
/**
|
|
1682
1682
|
* @internal
|
|
1683
1683
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1684
1684
|
*/
|
|
1685
|
-
export declare namespace
|
|
1686
|
-
/** @deprecated use `
|
|
1687
|
-
const inboundSchema: z.ZodType<
|
|
1688
|
-
/** @deprecated use `
|
|
1689
|
-
const outboundSchema: z.ZodType<
|
|
1690
|
-
/** @deprecated use `
|
|
1691
|
-
type Outbound =
|
|
1685
|
+
export declare namespace CreatePromptResponseFormat2$ {
|
|
1686
|
+
/** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
|
|
1687
|
+
const inboundSchema: z.ZodType<CreatePromptResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1688
|
+
/** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
|
|
1689
|
+
const outboundSchema: z.ZodType<CreatePromptResponseFormat2$Outbound, z.ZodTypeDef, CreatePromptResponseFormat2>;
|
|
1690
|
+
/** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
|
|
1691
|
+
type Outbound = CreatePromptResponseFormat2$Outbound;
|
|
1692
1692
|
}
|
|
1693
|
-
export declare function
|
|
1694
|
-
export declare function
|
|
1693
|
+
export declare function createPromptResponseFormat2ToJSON(createPromptResponseFormat2: CreatePromptResponseFormat2): string;
|
|
1694
|
+
export declare function createPromptResponseFormat2FromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError>;
|
|
1695
1695
|
/** @internal */
|
|
1696
|
-
export declare const
|
|
1696
|
+
export declare const CreatePromptResponseFormatPromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType>;
|
|
1697
1697
|
/** @internal */
|
|
1698
|
-
export declare const
|
|
1698
|
+
export declare const CreatePromptResponseFormatPromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType>;
|
|
1699
1699
|
/**
|
|
1700
1700
|
* @internal
|
|
1701
1701
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1702
1702
|
*/
|
|
1703
|
-
export declare namespace
|
|
1704
|
-
/** @deprecated use `
|
|
1703
|
+
export declare namespace CreatePromptResponseFormatPromptsType$ {
|
|
1704
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
1705
1705
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1706
1706
|
readonly JsonSchema: "json_schema";
|
|
1707
1707
|
}>;
|
|
1708
|
-
/** @deprecated use `
|
|
1708
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
1709
1709
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1710
1710
|
readonly JsonSchema: "json_schema";
|
|
1711
1711
|
}>;
|
|
@@ -1737,104 +1737,104 @@ export declare namespace CreatePromptResponseFormatJsonSchema$ {
|
|
|
1737
1737
|
export declare function createPromptResponseFormatJsonSchemaToJSON(createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema): string;
|
|
1738
1738
|
export declare function createPromptResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError>;
|
|
1739
1739
|
/** @internal */
|
|
1740
|
-
export declare const
|
|
1740
|
+
export declare const CreatePromptResponseFormat1$inboundSchema: z.ZodType<CreatePromptResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1741
1741
|
/** @internal */
|
|
1742
|
-
export type
|
|
1742
|
+
export type CreatePromptResponseFormat1$Outbound = {
|
|
1743
1743
|
type: string;
|
|
1744
1744
|
json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
|
|
1745
1745
|
};
|
|
1746
1746
|
/** @internal */
|
|
1747
|
-
export declare const
|
|
1747
|
+
export declare const CreatePromptResponseFormat1$outboundSchema: z.ZodType<CreatePromptResponseFormat1$Outbound, z.ZodTypeDef, CreatePromptResponseFormat1>;
|
|
1748
1748
|
/**
|
|
1749
1749
|
* @internal
|
|
1750
1750
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1751
1751
|
*/
|
|
1752
|
-
export declare namespace
|
|
1753
|
-
/** @deprecated use `
|
|
1754
|
-
const inboundSchema: z.ZodType<
|
|
1755
|
-
/** @deprecated use `
|
|
1756
|
-
const outboundSchema: z.ZodType<
|
|
1757
|
-
/** @deprecated use `
|
|
1758
|
-
type Outbound =
|
|
1752
|
+
export declare namespace CreatePromptResponseFormat1$ {
|
|
1753
|
+
/** @deprecated use `CreatePromptResponseFormat1$inboundSchema` instead. */
|
|
1754
|
+
const inboundSchema: z.ZodType<CreatePromptResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1755
|
+
/** @deprecated use `CreatePromptResponseFormat1$outboundSchema` instead. */
|
|
1756
|
+
const outboundSchema: z.ZodType<CreatePromptResponseFormat1$Outbound, z.ZodTypeDef, CreatePromptResponseFormat1>;
|
|
1757
|
+
/** @deprecated use `CreatePromptResponseFormat1$Outbound` instead. */
|
|
1758
|
+
type Outbound = CreatePromptResponseFormat1$Outbound;
|
|
1759
1759
|
}
|
|
1760
|
-
export declare function
|
|
1761
|
-
export declare function
|
|
1760
|
+
export declare function createPromptResponseFormat1ToJSON(createPromptResponseFormat1: CreatePromptResponseFormat1): string;
|
|
1761
|
+
export declare function createPromptResponseFormat1FromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError>;
|
|
1762
1762
|
/** @internal */
|
|
1763
|
-
export declare const
|
|
1763
|
+
export declare const CreatePromptResponseFormat$inboundSchema: z.ZodType<CreatePromptResponseFormat, z.ZodTypeDef, unknown>;
|
|
1764
1764
|
/** @internal */
|
|
1765
|
-
export type
|
|
1765
|
+
export type CreatePromptResponseFormat$Outbound = CreatePromptResponseFormat2$Outbound | CreatePromptResponseFormat1$Outbound;
|
|
1766
1766
|
/** @internal */
|
|
1767
|
-
export declare const
|
|
1767
|
+
export declare const CreatePromptResponseFormat$outboundSchema: z.ZodType<CreatePromptResponseFormat$Outbound, z.ZodTypeDef, CreatePromptResponseFormat>;
|
|
1768
1768
|
/**
|
|
1769
1769
|
* @internal
|
|
1770
1770
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1771
1771
|
*/
|
|
1772
|
-
export declare namespace
|
|
1773
|
-
/** @deprecated use `
|
|
1774
|
-
const inboundSchema: z.ZodType<
|
|
1775
|
-
/** @deprecated use `
|
|
1776
|
-
const outboundSchema: z.ZodType<
|
|
1777
|
-
/** @deprecated use `
|
|
1778
|
-
type Outbound =
|
|
1772
|
+
export declare namespace CreatePromptResponseFormat$ {
|
|
1773
|
+
/** @deprecated use `CreatePromptResponseFormat$inboundSchema` instead. */
|
|
1774
|
+
const inboundSchema: z.ZodType<CreatePromptResponseFormat, z.ZodTypeDef, unknown>;
|
|
1775
|
+
/** @deprecated use `CreatePromptResponseFormat$outboundSchema` instead. */
|
|
1776
|
+
const outboundSchema: z.ZodType<CreatePromptResponseFormat$Outbound, z.ZodTypeDef, CreatePromptResponseFormat>;
|
|
1777
|
+
/** @deprecated use `CreatePromptResponseFormat$Outbound` instead. */
|
|
1778
|
+
type Outbound = CreatePromptResponseFormat$Outbound;
|
|
1779
1779
|
}
|
|
1780
|
-
export declare function
|
|
1781
|
-
export declare function
|
|
1780
|
+
export declare function createPromptResponseFormatToJSON(createPromptResponseFormat: CreatePromptResponseFormat): string;
|
|
1781
|
+
export declare function createPromptResponseFormatFromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormat, SDKValidationError>;
|
|
1782
1782
|
/** @internal */
|
|
1783
|
-
export declare const
|
|
1783
|
+
export declare const CreatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPhotoRealVersion>;
|
|
1784
1784
|
/** @internal */
|
|
1785
|
-
export declare const
|
|
1785
|
+
export declare const CreatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPhotoRealVersion>;
|
|
1786
1786
|
/**
|
|
1787
1787
|
* @internal
|
|
1788
1788
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1789
1789
|
*/
|
|
1790
|
-
export declare namespace
|
|
1791
|
-
/** @deprecated use `
|
|
1790
|
+
export declare namespace CreatePromptPhotoRealVersion$ {
|
|
1791
|
+
/** @deprecated use `CreatePromptPhotoRealVersion$inboundSchema` instead. */
|
|
1792
1792
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1793
1793
|
readonly V1: "v1";
|
|
1794
1794
|
readonly V2: "v2";
|
|
1795
1795
|
}>;
|
|
1796
|
-
/** @deprecated use `
|
|
1796
|
+
/** @deprecated use `CreatePromptPhotoRealVersion$outboundSchema` instead. */
|
|
1797
1797
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1798
1798
|
readonly V1: "v1";
|
|
1799
1799
|
readonly V2: "v2";
|
|
1800
1800
|
}>;
|
|
1801
1801
|
}
|
|
1802
1802
|
/** @internal */
|
|
1803
|
-
export declare const
|
|
1803
|
+
export declare const CreatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptEncodingFormat>;
|
|
1804
1804
|
/** @internal */
|
|
1805
|
-
export declare const
|
|
1805
|
+
export declare const CreatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptEncodingFormat>;
|
|
1806
1806
|
/**
|
|
1807
1807
|
* @internal
|
|
1808
1808
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1809
1809
|
*/
|
|
1810
|
-
export declare namespace
|
|
1811
|
-
/** @deprecated use `
|
|
1810
|
+
export declare namespace CreatePromptEncodingFormat$ {
|
|
1811
|
+
/** @deprecated use `CreatePromptEncodingFormat$inboundSchema` instead. */
|
|
1812
1812
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1813
1813
|
readonly Float: "float";
|
|
1814
1814
|
readonly Base64: "base64";
|
|
1815
1815
|
}>;
|
|
1816
|
-
/** @deprecated use `
|
|
1816
|
+
/** @deprecated use `CreatePromptEncodingFormat$outboundSchema` instead. */
|
|
1817
1817
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1818
1818
|
readonly Float: "float";
|
|
1819
1819
|
readonly Base64: "base64";
|
|
1820
1820
|
}>;
|
|
1821
1821
|
}
|
|
1822
1822
|
/** @internal */
|
|
1823
|
-
export declare const
|
|
1823
|
+
export declare const CreatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<typeof CreatePromptReasoningEffort>;
|
|
1824
1824
|
/** @internal */
|
|
1825
|
-
export declare const
|
|
1825
|
+
export declare const CreatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<typeof CreatePromptReasoningEffort>;
|
|
1826
1826
|
/**
|
|
1827
1827
|
* @internal
|
|
1828
1828
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1829
1829
|
*/
|
|
1830
|
-
export declare namespace
|
|
1831
|
-
/** @deprecated use `
|
|
1830
|
+
export declare namespace CreatePromptReasoningEffort$ {
|
|
1831
|
+
/** @deprecated use `CreatePromptReasoningEffort$inboundSchema` instead. */
|
|
1832
1832
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1833
1833
|
readonly Low: "low";
|
|
1834
1834
|
readonly Medium: "medium";
|
|
1835
1835
|
readonly High: "high";
|
|
1836
1836
|
}>;
|
|
1837
|
-
/** @deprecated use `
|
|
1837
|
+
/** @deprecated use `CreatePromptReasoningEffort$outboundSchema` instead. */
|
|
1838
1838
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1839
1839
|
readonly Low: "low";
|
|
1840
1840
|
readonly Medium: "medium";
|
|
@@ -1842,9 +1842,9 @@ export declare namespace CreatePromptPromptsReasoningEffort$ {
|
|
|
1842
1842
|
}>;
|
|
1843
1843
|
}
|
|
1844
1844
|
/** @internal */
|
|
1845
|
-
export declare const
|
|
1845
|
+
export declare const CreatePromptModelParameters$inboundSchema: z.ZodType<CreatePromptModelParameters, z.ZodTypeDef, unknown>;
|
|
1846
1846
|
/** @internal */
|
|
1847
|
-
export type
|
|
1847
|
+
export type CreatePromptModelParameters$Outbound = {
|
|
1848
1848
|
temperature?: number | undefined;
|
|
1849
1849
|
maxTokens?: number | undefined;
|
|
1850
1850
|
topK?: number | undefined;
|
|
@@ -1857,38 +1857,38 @@ export type CreatePromptPromptsModelParameters$Outbound = {
|
|
|
1857
1857
|
dimensions?: string | undefined;
|
|
1858
1858
|
quality?: string | undefined;
|
|
1859
1859
|
style?: string | undefined;
|
|
1860
|
-
responseFormat?:
|
|
1860
|
+
responseFormat?: CreatePromptResponseFormat2$Outbound | CreatePromptResponseFormat1$Outbound | null | undefined;
|
|
1861
1861
|
photoRealVersion?: string | undefined;
|
|
1862
1862
|
encoding_format?: string | undefined;
|
|
1863
1863
|
reasoningEffort?: string | undefined;
|
|
1864
1864
|
budgetTokens?: number | undefined;
|
|
1865
1865
|
};
|
|
1866
1866
|
/** @internal */
|
|
1867
|
-
export declare const
|
|
1867
|
+
export declare const CreatePromptModelParameters$outboundSchema: z.ZodType<CreatePromptModelParameters$Outbound, z.ZodTypeDef, CreatePromptModelParameters>;
|
|
1868
1868
|
/**
|
|
1869
1869
|
* @internal
|
|
1870
1870
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1871
1871
|
*/
|
|
1872
|
-
export declare namespace
|
|
1873
|
-
/** @deprecated use `
|
|
1874
|
-
const inboundSchema: z.ZodType<
|
|
1875
|
-
/** @deprecated use `
|
|
1876
|
-
const outboundSchema: z.ZodType<
|
|
1877
|
-
/** @deprecated use `
|
|
1878
|
-
type Outbound =
|
|
1872
|
+
export declare namespace CreatePromptModelParameters$ {
|
|
1873
|
+
/** @deprecated use `CreatePromptModelParameters$inboundSchema` instead. */
|
|
1874
|
+
const inboundSchema: z.ZodType<CreatePromptModelParameters, z.ZodTypeDef, unknown>;
|
|
1875
|
+
/** @deprecated use `CreatePromptModelParameters$outboundSchema` instead. */
|
|
1876
|
+
const outboundSchema: z.ZodType<CreatePromptModelParameters$Outbound, z.ZodTypeDef, CreatePromptModelParameters>;
|
|
1877
|
+
/** @deprecated use `CreatePromptModelParameters$Outbound` instead. */
|
|
1878
|
+
type Outbound = CreatePromptModelParameters$Outbound;
|
|
1879
1879
|
}
|
|
1880
|
-
export declare function
|
|
1881
|
-
export declare function
|
|
1880
|
+
export declare function createPromptModelParametersToJSON(createPromptModelParameters: CreatePromptModelParameters): string;
|
|
1881
|
+
export declare function createPromptModelParametersFromJSON(jsonString: string): SafeParseResult<CreatePromptModelParameters, SDKValidationError>;
|
|
1882
1882
|
/** @internal */
|
|
1883
|
-
export declare const
|
|
1883
|
+
export declare const CreatePromptProvider$inboundSchema: z.ZodNativeEnum<typeof CreatePromptProvider>;
|
|
1884
1884
|
/** @internal */
|
|
1885
|
-
export declare const
|
|
1885
|
+
export declare const CreatePromptProvider$outboundSchema: z.ZodNativeEnum<typeof CreatePromptProvider>;
|
|
1886
1886
|
/**
|
|
1887
1887
|
* @internal
|
|
1888
1888
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1889
1889
|
*/
|
|
1890
|
-
export declare namespace
|
|
1891
|
-
/** @deprecated use `
|
|
1890
|
+
export declare namespace CreatePromptProvider$ {
|
|
1891
|
+
/** @deprecated use `CreatePromptProvider$inboundSchema` instead. */
|
|
1892
1892
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1893
1893
|
readonly Cohere: "cohere";
|
|
1894
1894
|
readonly Openai: "openai";
|
|
@@ -1909,7 +1909,7 @@ export declare namespace CreatePromptPromptsProvider$ {
|
|
|
1909
1909
|
readonly Togetherai: "togetherai";
|
|
1910
1910
|
readonly Elevenlabs: "elevenlabs";
|
|
1911
1911
|
}>;
|
|
1912
|
-
/** @deprecated use `
|
|
1912
|
+
/** @deprecated use `CreatePromptProvider$outboundSchema` instead. */
|
|
1913
1913
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1914
1914
|
readonly Cohere: "cohere";
|
|
1915
1915
|
readonly Openai: "openai";
|
|
@@ -2200,45 +2200,45 @@ export declare namespace CreatePromptPromptsMessages$ {
|
|
|
2200
2200
|
export declare function createPromptPromptsMessagesToJSON(createPromptPromptsMessages: CreatePromptPromptsMessages): string;
|
|
2201
2201
|
export declare function createPromptPromptsMessagesFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsMessages, SDKValidationError>;
|
|
2202
2202
|
/** @internal */
|
|
2203
|
-
export declare const
|
|
2203
|
+
export declare const CreatePromptPromptConfig$inboundSchema: z.ZodType<CreatePromptPromptConfig, z.ZodTypeDef, unknown>;
|
|
2204
2204
|
/** @internal */
|
|
2205
|
-
export type
|
|
2205
|
+
export type CreatePromptPromptConfig$Outbound = {
|
|
2206
2206
|
stream?: boolean | undefined;
|
|
2207
2207
|
model?: string | undefined;
|
|
2208
2208
|
model_db_id?: string | undefined;
|
|
2209
2209
|
model_type?: string | undefined;
|
|
2210
|
-
model_parameters?:
|
|
2210
|
+
model_parameters?: CreatePromptModelParameters$Outbound | undefined;
|
|
2211
2211
|
provider?: string | undefined;
|
|
2212
2212
|
integration_id?: string | null | undefined;
|
|
2213
2213
|
version?: string | undefined;
|
|
2214
2214
|
messages: Array<CreatePromptPromptsMessages$Outbound>;
|
|
2215
2215
|
};
|
|
2216
2216
|
/** @internal */
|
|
2217
|
-
export declare const
|
|
2217
|
+
export declare const CreatePromptPromptConfig$outboundSchema: z.ZodType<CreatePromptPromptConfig$Outbound, z.ZodTypeDef, CreatePromptPromptConfig>;
|
|
2218
2218
|
/**
|
|
2219
2219
|
* @internal
|
|
2220
2220
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2221
2221
|
*/
|
|
2222
|
-
export declare namespace
|
|
2223
|
-
/** @deprecated use `
|
|
2224
|
-
const inboundSchema: z.ZodType<
|
|
2225
|
-
/** @deprecated use `
|
|
2226
|
-
const outboundSchema: z.ZodType<
|
|
2227
|
-
/** @deprecated use `
|
|
2228
|
-
type Outbound =
|
|
2222
|
+
export declare namespace CreatePromptPromptConfig$ {
|
|
2223
|
+
/** @deprecated use `CreatePromptPromptConfig$inboundSchema` instead. */
|
|
2224
|
+
const inboundSchema: z.ZodType<CreatePromptPromptConfig, z.ZodTypeDef, unknown>;
|
|
2225
|
+
/** @deprecated use `CreatePromptPromptConfig$outboundSchema` instead. */
|
|
2226
|
+
const outboundSchema: z.ZodType<CreatePromptPromptConfig$Outbound, z.ZodTypeDef, CreatePromptPromptConfig>;
|
|
2227
|
+
/** @deprecated use `CreatePromptPromptConfig$Outbound` instead. */
|
|
2228
|
+
type Outbound = CreatePromptPromptConfig$Outbound;
|
|
2229
2229
|
}
|
|
2230
|
-
export declare function
|
|
2231
|
-
export declare function
|
|
2230
|
+
export declare function createPromptPromptConfigToJSON(createPromptPromptConfig: CreatePromptPromptConfig): string;
|
|
2231
|
+
export declare function createPromptPromptConfigFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptConfig, SDKValidationError>;
|
|
2232
2232
|
/** @internal */
|
|
2233
|
-
export declare const
|
|
2233
|
+
export declare const CreatePromptUseCases$inboundSchema: z.ZodNativeEnum<typeof CreatePromptUseCases>;
|
|
2234
2234
|
/** @internal */
|
|
2235
|
-
export declare const
|
|
2235
|
+
export declare const CreatePromptUseCases$outboundSchema: z.ZodNativeEnum<typeof CreatePromptUseCases>;
|
|
2236
2236
|
/**
|
|
2237
2237
|
* @internal
|
|
2238
2238
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2239
2239
|
*/
|
|
2240
|
-
export declare namespace
|
|
2241
|
-
/** @deprecated use `
|
|
2240
|
+
export declare namespace CreatePromptUseCases$ {
|
|
2241
|
+
/** @deprecated use `CreatePromptUseCases$inboundSchema` instead. */
|
|
2242
2242
|
const inboundSchema: z.ZodNativeEnum<{
|
|
2243
2243
|
readonly Agents: "Agents";
|
|
2244
2244
|
readonly AgentsSimulations: "Agents simulations";
|
|
@@ -2257,7 +2257,7 @@ export declare namespace CreatePromptPromptsUseCases$ {
|
|
|
2257
2257
|
readonly Summarization: "Summarization";
|
|
2258
2258
|
readonly Tagging: "Tagging";
|
|
2259
2259
|
}>;
|
|
2260
|
-
/** @deprecated use `
|
|
2260
|
+
/** @deprecated use `CreatePromptUseCases$outboundSchema` instead. */
|
|
2261
2261
|
const outboundSchema: z.ZodNativeEnum<{
|
|
2262
2262
|
readonly Agents: "Agents";
|
|
2263
2263
|
readonly AgentsSimulations: "Agents simulations";
|
|
@@ -2278,15 +2278,15 @@ export declare namespace CreatePromptPromptsUseCases$ {
|
|
|
2278
2278
|
}>;
|
|
2279
2279
|
}
|
|
2280
2280
|
/** @internal */
|
|
2281
|
-
export declare const
|
|
2281
|
+
export declare const CreatePromptLanguage$inboundSchema: z.ZodNativeEnum<typeof CreatePromptLanguage>;
|
|
2282
2282
|
/** @internal */
|
|
2283
|
-
export declare const
|
|
2283
|
+
export declare const CreatePromptLanguage$outboundSchema: z.ZodNativeEnum<typeof CreatePromptLanguage>;
|
|
2284
2284
|
/**
|
|
2285
2285
|
* @internal
|
|
2286
2286
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2287
2287
|
*/
|
|
2288
|
-
export declare namespace
|
|
2289
|
-
/** @deprecated use `
|
|
2288
|
+
export declare namespace CreatePromptLanguage$ {
|
|
2289
|
+
/** @deprecated use `CreatePromptLanguage$inboundSchema` instead. */
|
|
2290
2290
|
const inboundSchema: z.ZodNativeEnum<{
|
|
2291
2291
|
readonly Chinese: "Chinese";
|
|
2292
2292
|
readonly Dutch: "Dutch";
|
|
@@ -2296,7 +2296,7 @@ export declare namespace CreatePromptPromptsLanguage$ {
|
|
|
2296
2296
|
readonly Russian: "Russian";
|
|
2297
2297
|
readonly Spanish: "Spanish";
|
|
2298
2298
|
}>;
|
|
2299
|
-
/** @deprecated use `
|
|
2299
|
+
/** @deprecated use `CreatePromptLanguage$outboundSchema` instead. */
|
|
2300
2300
|
const outboundSchema: z.ZodNativeEnum<{
|
|
2301
2301
|
readonly Chinese: "Chinese";
|
|
2302
2302
|
readonly Dutch: "Dutch";
|
|
@@ -2344,7 +2344,7 @@ export type CreatePromptResponseBody$Outbound = {
|
|
|
2344
2344
|
updated_by_id?: string | null | undefined;
|
|
2345
2345
|
display_name: string;
|
|
2346
2346
|
description?: string | null | undefined;
|
|
2347
|
-
prompt_config:
|
|
2347
|
+
prompt_config: CreatePromptPromptConfig$Outbound;
|
|
2348
2348
|
metadata?: CreatePromptPromptsMetadata$Outbound | undefined;
|
|
2349
2349
|
};
|
|
2350
2350
|
/** @internal */
|