@orq-ai/node 1.31.1 → 1.31.11
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 +17 -45
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/errors/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/bulkfileupload.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/deploymentgetconfig.d.ts +96 -96
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +135 -136
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +49 -46
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +63 -61
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +53 -53
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +67 -66
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/fileupload.js +2 -2
- package/models/operations/index.d.ts +0 -9
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -9
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sdk.d.ts +0 -6
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -10
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/errors/index.ts +0 -1
- package/src/models/operations/bulkfileupload.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/deploymentgetconfig.ts +188 -255
- package/src/models/operations/deploymentinvoke.ts +81 -95
- package/src/models/operations/deployments.ts +88 -101
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/index.ts +0 -9
- package/src/sdk/sdk.ts +0 -12
- package/docs/sdks/prompt/README.md +0 -6
- package/docs/sdks/prompts/README.md +0 -533
- package/docs/sdks/snippets/README.md +0 -84
- package/docs/sdks/templates/README.md +0 -80
- package/funcs/promptSnippetsFindOne.d.ts +0 -12
- package/funcs/promptSnippetsFindOne.d.ts.map +0 -1
- package/funcs/promptSnippetsFindOne.js +0 -107
- package/funcs/promptSnippetsFindOne.js.map +0 -1
- package/funcs/promptTemplatesGetAll.d.ts +0 -12
- package/funcs/promptTemplatesGetAll.d.ts.map +0 -1
- package/funcs/promptTemplatesGetAll.js +0 -107
- package/funcs/promptTemplatesGetAll.js.map +0 -1
- package/funcs/promptsCreate.d.ts +0 -12
- package/funcs/promptsCreate.d.ts.map +0 -1
- package/funcs/promptsCreate.js +0 -104
- package/funcs/promptsCreate.js.map +0 -1
- package/funcs/promptsCreateVersion.d.ts +0 -12
- package/funcs/promptsCreateVersion.d.ts.map +0 -1
- package/funcs/promptsCreateVersion.js +0 -108
- package/funcs/promptsCreateVersion.js.map +0 -1
- package/funcs/promptsDelete.d.ts +0 -12
- package/funcs/promptsDelete.d.ts.map +0 -1
- package/funcs/promptsDelete.js +0 -108
- package/funcs/promptsDelete.js.map +0 -1
- package/funcs/promptsDuplicate.d.ts +0 -12
- package/funcs/promptsDuplicate.d.ts.map +0 -1
- package/funcs/promptsDuplicate.js +0 -108
- package/funcs/promptsDuplicate.js.map +0 -1
- package/funcs/promptsGetAll.d.ts +0 -12
- package/funcs/promptsGetAll.d.ts.map +0 -1
- package/funcs/promptsGetAll.js +0 -107
- package/funcs/promptsGetAll.js.map +0 -1
- package/funcs/promptsGetOne.d.ts +0 -12
- package/funcs/promptsGetOne.d.ts.map +0 -1
- package/funcs/promptsGetOne.js +0 -108
- package/funcs/promptsGetOne.js.map +0 -1
- package/funcs/promptsUpdate.d.ts +0 -13
- package/funcs/promptsUpdate.d.ts.map +0 -1
- package/funcs/promptsUpdate.js +0 -112
- package/funcs/promptsUpdate.js.map +0 -1
- package/models/errors/updateprompt.d.ts +0 -36
- package/models/errors/updateprompt.d.ts.map +0 -1
- package/models/errors/updateprompt.js +0 -79
- package/models/errors/updateprompt.js.map +0 -1
- package/models/operations/createprompt.d.ts +0 -2035
- package/models/operations/createprompt.d.ts.map +0 -1
- package/models/operations/createprompt.js +0 -1853
- package/models/operations/createprompt.js.map +0 -1
- package/models/operations/createpromptversion.d.ts +0 -2001
- package/models/operations/createpromptversion.d.ts.map +0 -1
- package/models/operations/createpromptversion.js +0 -1848
- package/models/operations/createpromptversion.js.map +0 -1
- package/models/operations/deleteprompt.d.ts +0 -32
- package/models/operations/deleteprompt.d.ts.map +0 -1
- package/models/operations/deleteprompt.js +0 -69
- package/models/operations/deleteprompt.js.map +0 -1
- package/models/operations/duplicateprompt.d.ts +0 -32
- package/models/operations/duplicateprompt.d.ts.map +0 -1
- package/models/operations/duplicateprompt.js +0 -69
- package/models/operations/duplicateprompt.js.map +0 -1
- package/models/operations/findonepromptsnippet.d.ts +0 -6278
- package/models/operations/findonepromptsnippet.d.ts.map +0 -1
- package/models/operations/findonepromptsnippet.js +0 -5891
- package/models/operations/findonepromptsnippet.js.map +0 -1
- package/models/operations/getallprompts.d.ts +0 -6613
- package/models/operations/getallprompts.d.ts.map +0 -1
- package/models/operations/getallprompts.js +0 -6161
- package/models/operations/getallprompts.js.map +0 -1
- package/models/operations/getallprompttemplates.d.ts +0 -6607
- package/models/operations/getallprompttemplates.d.ts.map +0 -1
- package/models/operations/getallprompttemplates.js +0 -6225
- package/models/operations/getallprompttemplates.js.map +0 -1
- package/models/operations/getoneprompt.d.ts +0 -32
- package/models/operations/getoneprompt.d.ts.map +0 -1
- package/models/operations/getoneprompt.js +0 -69
- package/models/operations/getoneprompt.js.map +0 -1
- package/models/operations/updateprompt.d.ts +0 -7251
- package/models/operations/updateprompt.d.ts.map +0 -1
- package/models/operations/updateprompt.js +0 -6678
- package/models/operations/updateprompt.js.map +0 -1
- package/sdk/prompt.d.ts +0 -10
- package/sdk/prompt.d.ts.map +0 -1
- package/sdk/prompt.js +0 -21
- package/sdk/prompt.js.map +0 -1
- package/sdk/prompts.d.ts +0 -33
- package/sdk/prompts.d.ts.map +0 -1
- package/sdk/prompts.js +0 -61
- package/sdk/prompts.js.map +0 -1
- package/sdk/snippets.d.ts +0 -9
- package/sdk/snippets.d.ts.map +0 -1
- package/sdk/snippets.js +0 -19
- package/sdk/snippets.js.map +0 -1
- package/sdk/templates.d.ts +0 -9
- package/sdk/templates.d.ts.map +0 -1
- package/sdk/templates.js +0 -19
- package/sdk/templates.js.map +0 -1
- package/src/funcs/promptSnippetsFindOne.ts +0 -127
- package/src/funcs/promptTemplatesGetAll.ts +0 -129
- package/src/funcs/promptsCreate.ts +0 -123
- package/src/funcs/promptsCreateVersion.ts +0 -128
- package/src/funcs/promptsDelete.ts +0 -127
- package/src/funcs/promptsDuplicate.ts +0 -127
- package/src/funcs/promptsGetAll.ts +0 -127
- package/src/funcs/promptsGetOne.ts +0 -127
- package/src/funcs/promptsUpdate.ts +0 -135
- package/src/models/errors/updateprompt.ts +0 -71
- package/src/models/operations/createprompt.ts +0 -3455
- package/src/models/operations/createpromptversion.ts +0 -3697
- package/src/models/operations/deleteprompt.ts +0 -69
- package/src/models/operations/duplicateprompt.ts +0 -69
- package/src/models/operations/findonepromptsnippet.ts +0 -13629
- package/src/models/operations/getallprompts.ts +0 -13390
- package/src/models/operations/getallprompttemplates.ts +0 -13690
- package/src/models/operations/getoneprompt.ts +0 -69
- package/src/models/operations/updateprompt.ts +0 -14407
- package/src/sdk/prompt.ts +0 -19
- package/src/sdk/prompts.ts +0 -114
- package/src/sdk/snippets.ts +0 -24
- package/src/sdk/templates.ts +0 -24
|
@@ -1,2035 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
/**
|
|
6
|
-
* The type of the model
|
|
7
|
-
*/
|
|
8
|
-
export declare const ModelType: {
|
|
9
|
-
readonly Chat: "chat";
|
|
10
|
-
readonly Completion: "completion";
|
|
11
|
-
readonly Embedding: "embedding";
|
|
12
|
-
readonly Vision: "vision";
|
|
13
|
-
readonly Image: "image";
|
|
14
|
-
readonly Tts: "tts";
|
|
15
|
-
readonly Stt: "stt";
|
|
16
|
-
readonly Rerank: "rerank";
|
|
17
|
-
readonly Moderations: "moderations";
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* The type of the model
|
|
21
|
-
*/
|
|
22
|
-
export type ModelType = ClosedEnum<typeof ModelType>;
|
|
23
|
-
/**
|
|
24
|
-
* Only supported on `image` models.
|
|
25
|
-
*/
|
|
26
|
-
export declare const Format: {
|
|
27
|
-
readonly Url: "url";
|
|
28
|
-
readonly B64Json: "b64_json";
|
|
29
|
-
readonly Text: "text";
|
|
30
|
-
readonly JsonObject: "json_object";
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Only supported on `image` models.
|
|
34
|
-
*/
|
|
35
|
-
export type Format = ClosedEnum<typeof Format>;
|
|
36
|
-
/**
|
|
37
|
-
* Only supported on `image` models.
|
|
38
|
-
*/
|
|
39
|
-
export declare const Quality: {
|
|
40
|
-
readonly Standard: "standard";
|
|
41
|
-
readonly Hd: "hd";
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Only supported on `image` models.
|
|
45
|
-
*/
|
|
46
|
-
export type Quality = ClosedEnum<typeof Quality>;
|
|
47
|
-
export declare const CreatePromptResponseFormatType: {
|
|
48
|
-
readonly JsonObject: "json_object";
|
|
49
|
-
};
|
|
50
|
-
export type CreatePromptResponseFormatType = ClosedEnum<typeof CreatePromptResponseFormatType>;
|
|
51
|
-
export type ResponseFormat2 = {
|
|
52
|
-
type: CreatePromptResponseFormatType;
|
|
53
|
-
};
|
|
54
|
-
export declare const ResponseFormatType: {
|
|
55
|
-
readonly JsonSchema: "json_schema";
|
|
56
|
-
};
|
|
57
|
-
export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
|
|
58
|
-
export type JsonSchema = {
|
|
59
|
-
name: string;
|
|
60
|
-
strict: boolean;
|
|
61
|
-
schema: {
|
|
62
|
-
[k: string]: any;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
export type ResponseFormat1 = {
|
|
66
|
-
type: ResponseFormatType;
|
|
67
|
-
jsonSchema: JsonSchema;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* An object specifying the format that the model must output.
|
|
71
|
-
*
|
|
72
|
-
* @remarks
|
|
73
|
-
*
|
|
74
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
75
|
-
*
|
|
76
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
77
|
-
*
|
|
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
|
-
*/
|
|
80
|
-
export type ResponseFormat = ResponseFormat2 | ResponseFormat1;
|
|
81
|
-
/**
|
|
82
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
83
|
-
*/
|
|
84
|
-
export declare const PhotoRealVersion: {
|
|
85
|
-
readonly V1: "v1";
|
|
86
|
-
readonly V2: "v2";
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
90
|
-
*/
|
|
91
|
-
export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
|
|
92
|
-
/**
|
|
93
|
-
* The format to return the embeddings
|
|
94
|
-
*/
|
|
95
|
-
export declare const EncodingFormat: {
|
|
96
|
-
readonly Float: "float";
|
|
97
|
-
readonly Base64: "base64";
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* The format to return the embeddings
|
|
101
|
-
*/
|
|
102
|
-
export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
|
|
103
|
-
/**
|
|
104
|
-
* Model Parameters: Not all parameters apply to every model
|
|
105
|
-
*/
|
|
106
|
-
export type ModelParameters = {
|
|
107
|
-
/**
|
|
108
|
-
* Only supported on `chat` and `completion` models.
|
|
109
|
-
*/
|
|
110
|
-
temperature?: number | undefined;
|
|
111
|
-
/**
|
|
112
|
-
* Only supported on `chat` and `completion` models.
|
|
113
|
-
*/
|
|
114
|
-
maxTokens?: number | undefined;
|
|
115
|
-
/**
|
|
116
|
-
* Only supported on `chat` and `completion` models.
|
|
117
|
-
*/
|
|
118
|
-
topK?: number | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* Only supported on `chat` and `completion` models.
|
|
121
|
-
*/
|
|
122
|
-
topP?: number | undefined;
|
|
123
|
-
/**
|
|
124
|
-
* Only supported on `chat` and `completion` models.
|
|
125
|
-
*/
|
|
126
|
-
frequencyPenalty?: number | undefined;
|
|
127
|
-
/**
|
|
128
|
-
* Only supported on `chat` and `completion` models.
|
|
129
|
-
*/
|
|
130
|
-
presencePenalty?: number | undefined;
|
|
131
|
-
/**
|
|
132
|
-
* Only supported on `image` models.
|
|
133
|
-
*/
|
|
134
|
-
numImages?: number | undefined;
|
|
135
|
-
/**
|
|
136
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
137
|
-
*/
|
|
138
|
-
seed?: number | undefined;
|
|
139
|
-
/**
|
|
140
|
-
* Only supported on `image` models.
|
|
141
|
-
*/
|
|
142
|
-
format?: Format | undefined;
|
|
143
|
-
/**
|
|
144
|
-
* Only supported on `image` models.
|
|
145
|
-
*/
|
|
146
|
-
dimensions?: string | undefined;
|
|
147
|
-
/**
|
|
148
|
-
* Only supported on `image` models.
|
|
149
|
-
*/
|
|
150
|
-
quality?: Quality | undefined;
|
|
151
|
-
/**
|
|
152
|
-
* Only supported on `image` models.
|
|
153
|
-
*/
|
|
154
|
-
style?: string | undefined;
|
|
155
|
-
/**
|
|
156
|
-
* An object specifying the format that the model must output.
|
|
157
|
-
*
|
|
158
|
-
* @remarks
|
|
159
|
-
*
|
|
160
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
161
|
-
*
|
|
162
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
163
|
-
*
|
|
164
|
-
* 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.
|
|
165
|
-
*/
|
|
166
|
-
responseFormat?: ResponseFormat2 | ResponseFormat1 | null | undefined;
|
|
167
|
-
/**
|
|
168
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
169
|
-
*/
|
|
170
|
-
photoRealVersion?: PhotoRealVersion | undefined;
|
|
171
|
-
/**
|
|
172
|
-
* The format to return the embeddings
|
|
173
|
-
*/
|
|
174
|
-
encodingFormat?: EncodingFormat | undefined;
|
|
175
|
-
};
|
|
176
|
-
export declare const Provider: {
|
|
177
|
-
readonly Cohere: "cohere";
|
|
178
|
-
readonly Openai: "openai";
|
|
179
|
-
readonly Anthropic: "anthropic";
|
|
180
|
-
readonly Huggingface: "huggingface";
|
|
181
|
-
readonly Replicate: "replicate";
|
|
182
|
-
readonly Google: "google";
|
|
183
|
-
readonly GoogleAi: "google-ai";
|
|
184
|
-
readonly Azure: "azure";
|
|
185
|
-
readonly Aws: "aws";
|
|
186
|
-
readonly Anyscale: "anyscale";
|
|
187
|
-
readonly Perplexity: "perplexity";
|
|
188
|
-
readonly Groq: "groq";
|
|
189
|
-
readonly Fal: "fal";
|
|
190
|
-
readonly Leonardoai: "leonardoai";
|
|
191
|
-
readonly Nvidia: "nvidia";
|
|
192
|
-
readonly Jina: "jina";
|
|
193
|
-
};
|
|
194
|
-
export type Provider = ClosedEnum<typeof Provider>;
|
|
195
|
-
/**
|
|
196
|
-
* The role of the prompt message
|
|
197
|
-
*/
|
|
198
|
-
export declare const CreatePromptRole: {
|
|
199
|
-
readonly System: "system";
|
|
200
|
-
readonly Assistant: "assistant";
|
|
201
|
-
readonly User: "user";
|
|
202
|
-
readonly Exception: "exception";
|
|
203
|
-
readonly Tool: "tool";
|
|
204
|
-
readonly Prompt: "prompt";
|
|
205
|
-
readonly Correction: "correction";
|
|
206
|
-
readonly ExpectedOutput: "expected_output";
|
|
207
|
-
};
|
|
208
|
-
/**
|
|
209
|
-
* The role of the prompt message
|
|
210
|
-
*/
|
|
211
|
-
export type CreatePromptRole = ClosedEnum<typeof CreatePromptRole>;
|
|
212
|
-
export declare const CreatePrompt2PromptsType: {
|
|
213
|
-
readonly ImageUrl: "image_url";
|
|
214
|
-
};
|
|
215
|
-
export type CreatePrompt2PromptsType = ClosedEnum<typeof CreatePrompt2PromptsType>;
|
|
216
|
-
export type CreatePrompt2ImageUrl = {
|
|
217
|
-
/**
|
|
218
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
219
|
-
*/
|
|
220
|
-
url: string;
|
|
221
|
-
/**
|
|
222
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
223
|
-
*/
|
|
224
|
-
detail?: string | undefined;
|
|
225
|
-
};
|
|
226
|
-
/**
|
|
227
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
228
|
-
*/
|
|
229
|
-
export type CreatePrompt22 = {
|
|
230
|
-
type: CreatePrompt2PromptsType;
|
|
231
|
-
imageUrl: CreatePrompt2ImageUrl;
|
|
232
|
-
};
|
|
233
|
-
export declare const CreatePrompt2Type: {
|
|
234
|
-
readonly Text: "text";
|
|
235
|
-
};
|
|
236
|
-
export type CreatePrompt2Type = ClosedEnum<typeof CreatePrompt2Type>;
|
|
237
|
-
/**
|
|
238
|
-
* Text content part of a prompt message
|
|
239
|
-
*/
|
|
240
|
-
export type CreatePrompt21 = {
|
|
241
|
-
type: CreatePrompt2Type;
|
|
242
|
-
text: string;
|
|
243
|
-
};
|
|
244
|
-
export type CreatePromptContent2 = CreatePrompt21 | CreatePrompt22;
|
|
245
|
-
/**
|
|
246
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
247
|
-
*/
|
|
248
|
-
export type CreatePromptContent = string | Array<CreatePrompt21 | CreatePrompt22>;
|
|
249
|
-
export declare const CreatePromptType: {
|
|
250
|
-
readonly Function: "function";
|
|
251
|
-
};
|
|
252
|
-
export type CreatePromptType = ClosedEnum<typeof CreatePromptType>;
|
|
253
|
-
export type CreatePromptFunction = {
|
|
254
|
-
name: string;
|
|
255
|
-
/**
|
|
256
|
-
* JSON string arguments for the functions
|
|
257
|
-
*/
|
|
258
|
-
arguments: string;
|
|
259
|
-
};
|
|
260
|
-
export type CreatePromptToolCalls = {
|
|
261
|
-
id?: string | undefined;
|
|
262
|
-
index?: number | undefined;
|
|
263
|
-
type: CreatePromptType;
|
|
264
|
-
function: CreatePromptFunction;
|
|
265
|
-
};
|
|
266
|
-
export type CreatePromptMessages = {
|
|
267
|
-
/**
|
|
268
|
-
* The role of the prompt message
|
|
269
|
-
*/
|
|
270
|
-
role: CreatePromptRole;
|
|
271
|
-
/**
|
|
272
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
273
|
-
*/
|
|
274
|
-
content: string | Array<CreatePrompt21 | CreatePrompt22>;
|
|
275
|
-
toolCalls?: Array<CreatePromptToolCalls> | undefined;
|
|
276
|
-
};
|
|
277
|
-
export type PromptConfig = {
|
|
278
|
-
stream?: boolean | undefined;
|
|
279
|
-
model?: string | undefined;
|
|
280
|
-
/**
|
|
281
|
-
* The type of the model
|
|
282
|
-
*/
|
|
283
|
-
modelType?: ModelType | undefined;
|
|
284
|
-
/**
|
|
285
|
-
* Model Parameters: Not all parameters apply to every model
|
|
286
|
-
*/
|
|
287
|
-
modelParameters?: ModelParameters | undefined;
|
|
288
|
-
provider?: Provider | undefined;
|
|
289
|
-
version?: string | undefined;
|
|
290
|
-
messages: Array<CreatePromptMessages>;
|
|
291
|
-
};
|
|
292
|
-
export type Metadata = {
|
|
293
|
-
useCases?: Array<string> | undefined;
|
|
294
|
-
language?: string | undefined;
|
|
295
|
-
};
|
|
296
|
-
export declare const CreatePromptPromptsType: {
|
|
297
|
-
readonly Prompt: "prompt";
|
|
298
|
-
readonly Snippet: "snippet";
|
|
299
|
-
readonly Template: "template";
|
|
300
|
-
};
|
|
301
|
-
export type CreatePromptPromptsType = ClosedEnum<typeof CreatePromptPromptsType>;
|
|
302
|
-
export type CreatePromptRequestBody = {
|
|
303
|
-
displayName: string;
|
|
304
|
-
description?: string | null | undefined;
|
|
305
|
-
promptConfig?: PromptConfig | undefined;
|
|
306
|
-
metadata?: Metadata | undefined;
|
|
307
|
-
key?: string | undefined;
|
|
308
|
-
type: CreatePromptPromptsType;
|
|
309
|
-
};
|
|
310
|
-
/**
|
|
311
|
-
* The type of the model
|
|
312
|
-
*/
|
|
313
|
-
export declare const CreatePromptModelType: {
|
|
314
|
-
readonly Chat: "chat";
|
|
315
|
-
readonly Completion: "completion";
|
|
316
|
-
readonly Embedding: "embedding";
|
|
317
|
-
readonly Vision: "vision";
|
|
318
|
-
readonly Image: "image";
|
|
319
|
-
readonly Tts: "tts";
|
|
320
|
-
readonly Stt: "stt";
|
|
321
|
-
readonly Rerank: "rerank";
|
|
322
|
-
readonly Moderations: "moderations";
|
|
323
|
-
};
|
|
324
|
-
/**
|
|
325
|
-
* The type of the model
|
|
326
|
-
*/
|
|
327
|
-
export type CreatePromptModelType = ClosedEnum<typeof CreatePromptModelType>;
|
|
328
|
-
/**
|
|
329
|
-
* Only supported on `image` models.
|
|
330
|
-
*/
|
|
331
|
-
export declare const CreatePromptFormat: {
|
|
332
|
-
readonly Url: "url";
|
|
333
|
-
readonly B64Json: "b64_json";
|
|
334
|
-
readonly Text: "text";
|
|
335
|
-
readonly JsonObject: "json_object";
|
|
336
|
-
};
|
|
337
|
-
/**
|
|
338
|
-
* Only supported on `image` models.
|
|
339
|
-
*/
|
|
340
|
-
export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
|
|
341
|
-
/**
|
|
342
|
-
* Only supported on `image` models.
|
|
343
|
-
*/
|
|
344
|
-
export declare const CreatePromptQuality: {
|
|
345
|
-
readonly Standard: "standard";
|
|
346
|
-
readonly Hd: "hd";
|
|
347
|
-
};
|
|
348
|
-
/**
|
|
349
|
-
* Only supported on `image` models.
|
|
350
|
-
*/
|
|
351
|
-
export type CreatePromptQuality = ClosedEnum<typeof CreatePromptQuality>;
|
|
352
|
-
export declare const CreatePromptResponseFormatPromptsResponseType: {
|
|
353
|
-
readonly JsonObject: "json_object";
|
|
354
|
-
};
|
|
355
|
-
export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<typeof CreatePromptResponseFormatPromptsResponseType>;
|
|
356
|
-
export type CreatePromptResponseFormat2 = {
|
|
357
|
-
type: CreatePromptResponseFormatPromptsResponseType;
|
|
358
|
-
};
|
|
359
|
-
export declare const CreatePromptResponseFormatPromptsType: {
|
|
360
|
-
readonly JsonSchema: "json_schema";
|
|
361
|
-
};
|
|
362
|
-
export type CreatePromptResponseFormatPromptsType = ClosedEnum<typeof CreatePromptResponseFormatPromptsType>;
|
|
363
|
-
export type CreatePromptResponseFormatJsonSchema = {
|
|
364
|
-
name: string;
|
|
365
|
-
strict: boolean;
|
|
366
|
-
schema: {
|
|
367
|
-
[k: string]: any;
|
|
368
|
-
};
|
|
369
|
-
};
|
|
370
|
-
export type CreatePromptResponseFormat1 = {
|
|
371
|
-
type: CreatePromptResponseFormatPromptsType;
|
|
372
|
-
jsonSchema: CreatePromptResponseFormatJsonSchema;
|
|
373
|
-
};
|
|
374
|
-
/**
|
|
375
|
-
* An object specifying the format that the model must output.
|
|
376
|
-
*
|
|
377
|
-
* @remarks
|
|
378
|
-
*
|
|
379
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
380
|
-
*
|
|
381
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
382
|
-
*
|
|
383
|
-
* 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.
|
|
384
|
-
*/
|
|
385
|
-
export type CreatePromptResponseFormat = CreatePromptResponseFormat2 | CreatePromptResponseFormat1;
|
|
386
|
-
/**
|
|
387
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
388
|
-
*/
|
|
389
|
-
export declare const CreatePromptPhotoRealVersion: {
|
|
390
|
-
readonly V1: "v1";
|
|
391
|
-
readonly V2: "v2";
|
|
392
|
-
};
|
|
393
|
-
/**
|
|
394
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
395
|
-
*/
|
|
396
|
-
export type CreatePromptPhotoRealVersion = ClosedEnum<typeof CreatePromptPhotoRealVersion>;
|
|
397
|
-
/**
|
|
398
|
-
* The format to return the embeddings
|
|
399
|
-
*/
|
|
400
|
-
export declare const CreatePromptEncodingFormat: {
|
|
401
|
-
readonly Float: "float";
|
|
402
|
-
readonly Base64: "base64";
|
|
403
|
-
};
|
|
404
|
-
/**
|
|
405
|
-
* The format to return the embeddings
|
|
406
|
-
*/
|
|
407
|
-
export type CreatePromptEncodingFormat = ClosedEnum<typeof CreatePromptEncodingFormat>;
|
|
408
|
-
/**
|
|
409
|
-
* Model Parameters: Not all parameters apply to every model
|
|
410
|
-
*/
|
|
411
|
-
export type CreatePromptModelParameters = {
|
|
412
|
-
/**
|
|
413
|
-
* Only supported on `chat` and `completion` models.
|
|
414
|
-
*/
|
|
415
|
-
temperature?: number | undefined;
|
|
416
|
-
/**
|
|
417
|
-
* Only supported on `chat` and `completion` models.
|
|
418
|
-
*/
|
|
419
|
-
maxTokens?: number | undefined;
|
|
420
|
-
/**
|
|
421
|
-
* Only supported on `chat` and `completion` models.
|
|
422
|
-
*/
|
|
423
|
-
topK?: number | undefined;
|
|
424
|
-
/**
|
|
425
|
-
* Only supported on `chat` and `completion` models.
|
|
426
|
-
*/
|
|
427
|
-
topP?: number | undefined;
|
|
428
|
-
/**
|
|
429
|
-
* Only supported on `chat` and `completion` models.
|
|
430
|
-
*/
|
|
431
|
-
frequencyPenalty?: number | undefined;
|
|
432
|
-
/**
|
|
433
|
-
* Only supported on `chat` and `completion` models.
|
|
434
|
-
*/
|
|
435
|
-
presencePenalty?: number | undefined;
|
|
436
|
-
/**
|
|
437
|
-
* Only supported on `image` models.
|
|
438
|
-
*/
|
|
439
|
-
numImages?: number | undefined;
|
|
440
|
-
/**
|
|
441
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
442
|
-
*/
|
|
443
|
-
seed?: number | undefined;
|
|
444
|
-
/**
|
|
445
|
-
* Only supported on `image` models.
|
|
446
|
-
*/
|
|
447
|
-
format?: CreatePromptFormat | undefined;
|
|
448
|
-
/**
|
|
449
|
-
* Only supported on `image` models.
|
|
450
|
-
*/
|
|
451
|
-
dimensions?: string | undefined;
|
|
452
|
-
/**
|
|
453
|
-
* Only supported on `image` models.
|
|
454
|
-
*/
|
|
455
|
-
quality?: CreatePromptQuality | undefined;
|
|
456
|
-
/**
|
|
457
|
-
* Only supported on `image` models.
|
|
458
|
-
*/
|
|
459
|
-
style?: string | undefined;
|
|
460
|
-
/**
|
|
461
|
-
* An object specifying the format that the model must output.
|
|
462
|
-
*
|
|
463
|
-
* @remarks
|
|
464
|
-
*
|
|
465
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
466
|
-
*
|
|
467
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
468
|
-
*
|
|
469
|
-
* 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.
|
|
470
|
-
*/
|
|
471
|
-
responseFormat?: CreatePromptResponseFormat2 | CreatePromptResponseFormat1 | null | undefined;
|
|
472
|
-
/**
|
|
473
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
474
|
-
*/
|
|
475
|
-
photoRealVersion?: CreatePromptPhotoRealVersion | undefined;
|
|
476
|
-
/**
|
|
477
|
-
* The format to return the embeddings
|
|
478
|
-
*/
|
|
479
|
-
encodingFormat?: CreatePromptEncodingFormat | undefined;
|
|
480
|
-
};
|
|
481
|
-
export declare const CreatePromptProvider: {
|
|
482
|
-
readonly Cohere: "cohere";
|
|
483
|
-
readonly Openai: "openai";
|
|
484
|
-
readonly Anthropic: "anthropic";
|
|
485
|
-
readonly Huggingface: "huggingface";
|
|
486
|
-
readonly Replicate: "replicate";
|
|
487
|
-
readonly Google: "google";
|
|
488
|
-
readonly GoogleAi: "google-ai";
|
|
489
|
-
readonly Azure: "azure";
|
|
490
|
-
readonly Aws: "aws";
|
|
491
|
-
readonly Anyscale: "anyscale";
|
|
492
|
-
readonly Perplexity: "perplexity";
|
|
493
|
-
readonly Groq: "groq";
|
|
494
|
-
readonly Fal: "fal";
|
|
495
|
-
readonly Leonardoai: "leonardoai";
|
|
496
|
-
readonly Nvidia: "nvidia";
|
|
497
|
-
readonly Jina: "jina";
|
|
498
|
-
};
|
|
499
|
-
export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
|
|
500
|
-
/**
|
|
501
|
-
* The role of the prompt message
|
|
502
|
-
*/
|
|
503
|
-
export declare const CreatePromptPromptsRole: {
|
|
504
|
-
readonly System: "system";
|
|
505
|
-
readonly Assistant: "assistant";
|
|
506
|
-
readonly User: "user";
|
|
507
|
-
readonly Exception: "exception";
|
|
508
|
-
readonly Tool: "tool";
|
|
509
|
-
readonly Prompt: "prompt";
|
|
510
|
-
readonly Correction: "correction";
|
|
511
|
-
readonly ExpectedOutput: "expected_output";
|
|
512
|
-
};
|
|
513
|
-
/**
|
|
514
|
-
* The role of the prompt message
|
|
515
|
-
*/
|
|
516
|
-
export type CreatePromptPromptsRole = ClosedEnum<typeof CreatePromptPromptsRole>;
|
|
517
|
-
export declare const CreatePrompt2PromptsResponse200Type: {
|
|
518
|
-
readonly ImageUrl: "image_url";
|
|
519
|
-
};
|
|
520
|
-
export type CreatePrompt2PromptsResponse200Type = ClosedEnum<typeof CreatePrompt2PromptsResponse200Type>;
|
|
521
|
-
export type CreatePrompt2PromptsImageUrl = {
|
|
522
|
-
/**
|
|
523
|
-
* The orq.ai id of the image
|
|
524
|
-
*/
|
|
525
|
-
id?: string | undefined;
|
|
526
|
-
/**
|
|
527
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
528
|
-
*/
|
|
529
|
-
url: string;
|
|
530
|
-
/**
|
|
531
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
532
|
-
*/
|
|
533
|
-
detail?: string | undefined;
|
|
534
|
-
};
|
|
535
|
-
/**
|
|
536
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
537
|
-
*/
|
|
538
|
-
export type CreatePrompt2Prompts2 = {
|
|
539
|
-
type: CreatePrompt2PromptsResponse200Type;
|
|
540
|
-
imageUrl: CreatePrompt2PromptsImageUrl;
|
|
541
|
-
};
|
|
542
|
-
export declare const CreatePrompt2PromptsResponseType: {
|
|
543
|
-
readonly Text: "text";
|
|
544
|
-
};
|
|
545
|
-
export type CreatePrompt2PromptsResponseType = ClosedEnum<typeof CreatePrompt2PromptsResponseType>;
|
|
546
|
-
/**
|
|
547
|
-
* Text content part of a prompt message
|
|
548
|
-
*/
|
|
549
|
-
export type CreatePrompt2Prompts1 = {
|
|
550
|
-
type: CreatePrompt2PromptsResponseType;
|
|
551
|
-
text: string;
|
|
552
|
-
};
|
|
553
|
-
export type CreatePromptContentPrompts2 = CreatePrompt2Prompts1 | CreatePrompt2Prompts2;
|
|
554
|
-
/**
|
|
555
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
556
|
-
*/
|
|
557
|
-
export type CreatePromptPromptsContent = string | Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
|
|
558
|
-
export declare const CreatePromptPromptsResponse200Type: {
|
|
559
|
-
readonly Function: "function";
|
|
560
|
-
};
|
|
561
|
-
export type CreatePromptPromptsResponse200Type = ClosedEnum<typeof CreatePromptPromptsResponse200Type>;
|
|
562
|
-
export type CreatePromptPromptsFunction = {
|
|
563
|
-
name: string;
|
|
564
|
-
/**
|
|
565
|
-
* JSON string arguments for the functions
|
|
566
|
-
*/
|
|
567
|
-
arguments: string;
|
|
568
|
-
};
|
|
569
|
-
export type CreatePromptPromptsToolCalls = {
|
|
570
|
-
id?: string | undefined;
|
|
571
|
-
index?: number | undefined;
|
|
572
|
-
type: CreatePromptPromptsResponse200Type;
|
|
573
|
-
function: CreatePromptPromptsFunction;
|
|
574
|
-
};
|
|
575
|
-
export type CreatePromptPromptsMessages = {
|
|
576
|
-
/**
|
|
577
|
-
* The role of the prompt message
|
|
578
|
-
*/
|
|
579
|
-
role: CreatePromptPromptsRole;
|
|
580
|
-
/**
|
|
581
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
582
|
-
*/
|
|
583
|
-
content: string | Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
|
|
584
|
-
toolCalls?: Array<CreatePromptPromptsToolCalls> | undefined;
|
|
585
|
-
};
|
|
586
|
-
export type CreatePromptPromptConfig = {
|
|
587
|
-
stream?: boolean | undefined;
|
|
588
|
-
model?: string | undefined;
|
|
589
|
-
/**
|
|
590
|
-
* The id of the resource
|
|
591
|
-
*/
|
|
592
|
-
modelDbId?: string | undefined;
|
|
593
|
-
/**
|
|
594
|
-
* The type of the model
|
|
595
|
-
*/
|
|
596
|
-
modelType?: CreatePromptModelType | undefined;
|
|
597
|
-
/**
|
|
598
|
-
* Model Parameters: Not all parameters apply to every model
|
|
599
|
-
*/
|
|
600
|
-
modelParameters?: CreatePromptModelParameters | undefined;
|
|
601
|
-
provider?: CreatePromptProvider | undefined;
|
|
602
|
-
/**
|
|
603
|
-
* The id of the resource
|
|
604
|
-
*/
|
|
605
|
-
integrationId?: string | null | undefined;
|
|
606
|
-
version?: string | undefined;
|
|
607
|
-
messages: Array<CreatePromptPromptsMessages>;
|
|
608
|
-
};
|
|
609
|
-
export type CreatePromptMetadata = {
|
|
610
|
-
useCases?: Array<string> | undefined;
|
|
611
|
-
language?: string | undefined;
|
|
612
|
-
};
|
|
613
|
-
export declare const CreatePromptPromptsResponseType: {
|
|
614
|
-
readonly Prompt: "prompt";
|
|
615
|
-
readonly Snippet: "snippet";
|
|
616
|
-
readonly Template: "template";
|
|
617
|
-
};
|
|
618
|
-
export type CreatePromptPromptsResponseType = ClosedEnum<typeof CreatePromptPromptsResponseType>;
|
|
619
|
-
/**
|
|
620
|
-
* Prompt created.
|
|
621
|
-
*/
|
|
622
|
-
export type CreatePromptResponseBody = {
|
|
623
|
-
/**
|
|
624
|
-
* The id of the resource
|
|
625
|
-
*/
|
|
626
|
-
id: string;
|
|
627
|
-
displayName: string;
|
|
628
|
-
/**
|
|
629
|
-
* The id of the resource
|
|
630
|
-
*/
|
|
631
|
-
domainId: string;
|
|
632
|
-
description?: string | null | undefined;
|
|
633
|
-
promptConfig?: CreatePromptPromptConfig | undefined;
|
|
634
|
-
metadata?: CreatePromptMetadata | undefined;
|
|
635
|
-
key?: string | undefined;
|
|
636
|
-
type: CreatePromptPromptsResponseType;
|
|
637
|
-
};
|
|
638
|
-
/** @internal */
|
|
639
|
-
export declare const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType>;
|
|
640
|
-
/** @internal */
|
|
641
|
-
export declare const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType>;
|
|
642
|
-
/**
|
|
643
|
-
* @internal
|
|
644
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
645
|
-
*/
|
|
646
|
-
export declare namespace ModelType$ {
|
|
647
|
-
/** @deprecated use `ModelType$inboundSchema` instead. */
|
|
648
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
649
|
-
readonly Chat: "chat";
|
|
650
|
-
readonly Completion: "completion";
|
|
651
|
-
readonly Embedding: "embedding";
|
|
652
|
-
readonly Vision: "vision";
|
|
653
|
-
readonly Image: "image";
|
|
654
|
-
readonly Tts: "tts";
|
|
655
|
-
readonly Stt: "stt";
|
|
656
|
-
readonly Rerank: "rerank";
|
|
657
|
-
readonly Moderations: "moderations";
|
|
658
|
-
}>;
|
|
659
|
-
/** @deprecated use `ModelType$outboundSchema` instead. */
|
|
660
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
661
|
-
readonly Chat: "chat";
|
|
662
|
-
readonly Completion: "completion";
|
|
663
|
-
readonly Embedding: "embedding";
|
|
664
|
-
readonly Vision: "vision";
|
|
665
|
-
readonly Image: "image";
|
|
666
|
-
readonly Tts: "tts";
|
|
667
|
-
readonly Stt: "stt";
|
|
668
|
-
readonly Rerank: "rerank";
|
|
669
|
-
readonly Moderations: "moderations";
|
|
670
|
-
}>;
|
|
671
|
-
}
|
|
672
|
-
/** @internal */
|
|
673
|
-
export declare const Format$inboundSchema: z.ZodNativeEnum<typeof Format>;
|
|
674
|
-
/** @internal */
|
|
675
|
-
export declare const Format$outboundSchema: z.ZodNativeEnum<typeof Format>;
|
|
676
|
-
/**
|
|
677
|
-
* @internal
|
|
678
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
679
|
-
*/
|
|
680
|
-
export declare namespace Format$ {
|
|
681
|
-
/** @deprecated use `Format$inboundSchema` instead. */
|
|
682
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
683
|
-
readonly Url: "url";
|
|
684
|
-
readonly B64Json: "b64_json";
|
|
685
|
-
readonly Text: "text";
|
|
686
|
-
readonly JsonObject: "json_object";
|
|
687
|
-
}>;
|
|
688
|
-
/** @deprecated use `Format$outboundSchema` instead. */
|
|
689
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
690
|
-
readonly Url: "url";
|
|
691
|
-
readonly B64Json: "b64_json";
|
|
692
|
-
readonly Text: "text";
|
|
693
|
-
readonly JsonObject: "json_object";
|
|
694
|
-
}>;
|
|
695
|
-
}
|
|
696
|
-
/** @internal */
|
|
697
|
-
export declare const Quality$inboundSchema: z.ZodNativeEnum<typeof Quality>;
|
|
698
|
-
/** @internal */
|
|
699
|
-
export declare const Quality$outboundSchema: z.ZodNativeEnum<typeof Quality>;
|
|
700
|
-
/**
|
|
701
|
-
* @internal
|
|
702
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
703
|
-
*/
|
|
704
|
-
export declare namespace Quality$ {
|
|
705
|
-
/** @deprecated use `Quality$inboundSchema` instead. */
|
|
706
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
707
|
-
readonly Standard: "standard";
|
|
708
|
-
readonly Hd: "hd";
|
|
709
|
-
}>;
|
|
710
|
-
/** @deprecated use `Quality$outboundSchema` instead. */
|
|
711
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
712
|
-
readonly Standard: "standard";
|
|
713
|
-
readonly Hd: "hd";
|
|
714
|
-
}>;
|
|
715
|
-
}
|
|
716
|
-
/** @internal */
|
|
717
|
-
export declare const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatType>;
|
|
718
|
-
/** @internal */
|
|
719
|
-
export declare const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatType>;
|
|
720
|
-
/**
|
|
721
|
-
* @internal
|
|
722
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
723
|
-
*/
|
|
724
|
-
export declare namespace CreatePromptResponseFormatType$ {
|
|
725
|
-
/** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
|
|
726
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
727
|
-
readonly JsonObject: "json_object";
|
|
728
|
-
}>;
|
|
729
|
-
/** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
|
|
730
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
731
|
-
readonly JsonObject: "json_object";
|
|
732
|
-
}>;
|
|
733
|
-
}
|
|
734
|
-
/** @internal */
|
|
735
|
-
export declare const ResponseFormat2$inboundSchema: z.ZodType<ResponseFormat2, z.ZodTypeDef, unknown>;
|
|
736
|
-
/** @internal */
|
|
737
|
-
export type ResponseFormat2$Outbound = {
|
|
738
|
-
type: string;
|
|
739
|
-
};
|
|
740
|
-
/** @internal */
|
|
741
|
-
export declare const ResponseFormat2$outboundSchema: z.ZodType<ResponseFormat2$Outbound, z.ZodTypeDef, ResponseFormat2>;
|
|
742
|
-
/**
|
|
743
|
-
* @internal
|
|
744
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
745
|
-
*/
|
|
746
|
-
export declare namespace ResponseFormat2$ {
|
|
747
|
-
/** @deprecated use `ResponseFormat2$inboundSchema` instead. */
|
|
748
|
-
const inboundSchema: z.ZodType<ResponseFormat2, z.ZodTypeDef, unknown>;
|
|
749
|
-
/** @deprecated use `ResponseFormat2$outboundSchema` instead. */
|
|
750
|
-
const outboundSchema: z.ZodType<ResponseFormat2$Outbound, z.ZodTypeDef, ResponseFormat2>;
|
|
751
|
-
/** @deprecated use `ResponseFormat2$Outbound` instead. */
|
|
752
|
-
type Outbound = ResponseFormat2$Outbound;
|
|
753
|
-
}
|
|
754
|
-
export declare function responseFormat2ToJSON(responseFormat2: ResponseFormat2): string;
|
|
755
|
-
export declare function responseFormat2FromJSON(jsonString: string): SafeParseResult<ResponseFormat2, SDKValidationError>;
|
|
756
|
-
/** @internal */
|
|
757
|
-
export declare const ResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof ResponseFormatType>;
|
|
758
|
-
/** @internal */
|
|
759
|
-
export declare const ResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof ResponseFormatType>;
|
|
760
|
-
/**
|
|
761
|
-
* @internal
|
|
762
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
763
|
-
*/
|
|
764
|
-
export declare namespace ResponseFormatType$ {
|
|
765
|
-
/** @deprecated use `ResponseFormatType$inboundSchema` instead. */
|
|
766
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
767
|
-
readonly JsonSchema: "json_schema";
|
|
768
|
-
}>;
|
|
769
|
-
/** @deprecated use `ResponseFormatType$outboundSchema` instead. */
|
|
770
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
771
|
-
readonly JsonSchema: "json_schema";
|
|
772
|
-
}>;
|
|
773
|
-
}
|
|
774
|
-
/** @internal */
|
|
775
|
-
export declare const JsonSchema$inboundSchema: z.ZodType<JsonSchema, z.ZodTypeDef, unknown>;
|
|
776
|
-
/** @internal */
|
|
777
|
-
export type JsonSchema$Outbound = {
|
|
778
|
-
name: string;
|
|
779
|
-
strict: boolean;
|
|
780
|
-
schema: {
|
|
781
|
-
[k: string]: any;
|
|
782
|
-
};
|
|
783
|
-
};
|
|
784
|
-
/** @internal */
|
|
785
|
-
export declare const JsonSchema$outboundSchema: z.ZodType<JsonSchema$Outbound, z.ZodTypeDef, JsonSchema>;
|
|
786
|
-
/**
|
|
787
|
-
* @internal
|
|
788
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
789
|
-
*/
|
|
790
|
-
export declare namespace JsonSchema$ {
|
|
791
|
-
/** @deprecated use `JsonSchema$inboundSchema` instead. */
|
|
792
|
-
const inboundSchema: z.ZodType<JsonSchema, z.ZodTypeDef, unknown>;
|
|
793
|
-
/** @deprecated use `JsonSchema$outboundSchema` instead. */
|
|
794
|
-
const outboundSchema: z.ZodType<JsonSchema$Outbound, z.ZodTypeDef, JsonSchema>;
|
|
795
|
-
/** @deprecated use `JsonSchema$Outbound` instead. */
|
|
796
|
-
type Outbound = JsonSchema$Outbound;
|
|
797
|
-
}
|
|
798
|
-
export declare function jsonSchemaToJSON(jsonSchema: JsonSchema): string;
|
|
799
|
-
export declare function jsonSchemaFromJSON(jsonString: string): SafeParseResult<JsonSchema, SDKValidationError>;
|
|
800
|
-
/** @internal */
|
|
801
|
-
export declare const ResponseFormat1$inboundSchema: z.ZodType<ResponseFormat1, z.ZodTypeDef, unknown>;
|
|
802
|
-
/** @internal */
|
|
803
|
-
export type ResponseFormat1$Outbound = {
|
|
804
|
-
type: string;
|
|
805
|
-
json_schema: JsonSchema$Outbound;
|
|
806
|
-
};
|
|
807
|
-
/** @internal */
|
|
808
|
-
export declare const ResponseFormat1$outboundSchema: z.ZodType<ResponseFormat1$Outbound, z.ZodTypeDef, ResponseFormat1>;
|
|
809
|
-
/**
|
|
810
|
-
* @internal
|
|
811
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
812
|
-
*/
|
|
813
|
-
export declare namespace ResponseFormat1$ {
|
|
814
|
-
/** @deprecated use `ResponseFormat1$inboundSchema` instead. */
|
|
815
|
-
const inboundSchema: z.ZodType<ResponseFormat1, z.ZodTypeDef, unknown>;
|
|
816
|
-
/** @deprecated use `ResponseFormat1$outboundSchema` instead. */
|
|
817
|
-
const outboundSchema: z.ZodType<ResponseFormat1$Outbound, z.ZodTypeDef, ResponseFormat1>;
|
|
818
|
-
/** @deprecated use `ResponseFormat1$Outbound` instead. */
|
|
819
|
-
type Outbound = ResponseFormat1$Outbound;
|
|
820
|
-
}
|
|
821
|
-
export declare function responseFormat1ToJSON(responseFormat1: ResponseFormat1): string;
|
|
822
|
-
export declare function responseFormat1FromJSON(jsonString: string): SafeParseResult<ResponseFormat1, SDKValidationError>;
|
|
823
|
-
/** @internal */
|
|
824
|
-
export declare const ResponseFormat$inboundSchema: z.ZodType<ResponseFormat, z.ZodTypeDef, unknown>;
|
|
825
|
-
/** @internal */
|
|
826
|
-
export type ResponseFormat$Outbound = ResponseFormat2$Outbound | ResponseFormat1$Outbound;
|
|
827
|
-
/** @internal */
|
|
828
|
-
export declare const ResponseFormat$outboundSchema: z.ZodType<ResponseFormat$Outbound, z.ZodTypeDef, ResponseFormat>;
|
|
829
|
-
/**
|
|
830
|
-
* @internal
|
|
831
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
832
|
-
*/
|
|
833
|
-
export declare namespace ResponseFormat$ {
|
|
834
|
-
/** @deprecated use `ResponseFormat$inboundSchema` instead. */
|
|
835
|
-
const inboundSchema: z.ZodType<ResponseFormat, z.ZodTypeDef, unknown>;
|
|
836
|
-
/** @deprecated use `ResponseFormat$outboundSchema` instead. */
|
|
837
|
-
const outboundSchema: z.ZodType<ResponseFormat$Outbound, z.ZodTypeDef, ResponseFormat>;
|
|
838
|
-
/** @deprecated use `ResponseFormat$Outbound` instead. */
|
|
839
|
-
type Outbound = ResponseFormat$Outbound;
|
|
840
|
-
}
|
|
841
|
-
export declare function responseFormatToJSON(responseFormat: ResponseFormat): string;
|
|
842
|
-
export declare function responseFormatFromJSON(jsonString: string): SafeParseResult<ResponseFormat, SDKValidationError>;
|
|
843
|
-
/** @internal */
|
|
844
|
-
export declare const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof PhotoRealVersion>;
|
|
845
|
-
/** @internal */
|
|
846
|
-
export declare const PhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof PhotoRealVersion>;
|
|
847
|
-
/**
|
|
848
|
-
* @internal
|
|
849
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
850
|
-
*/
|
|
851
|
-
export declare namespace PhotoRealVersion$ {
|
|
852
|
-
/** @deprecated use `PhotoRealVersion$inboundSchema` instead. */
|
|
853
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
854
|
-
readonly V1: "v1";
|
|
855
|
-
readonly V2: "v2";
|
|
856
|
-
}>;
|
|
857
|
-
/** @deprecated use `PhotoRealVersion$outboundSchema` instead. */
|
|
858
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
859
|
-
readonly V1: "v1";
|
|
860
|
-
readonly V2: "v2";
|
|
861
|
-
}>;
|
|
862
|
-
}
|
|
863
|
-
/** @internal */
|
|
864
|
-
export declare const EncodingFormat$inboundSchema: z.ZodNativeEnum<typeof EncodingFormat>;
|
|
865
|
-
/** @internal */
|
|
866
|
-
export declare const EncodingFormat$outboundSchema: z.ZodNativeEnum<typeof EncodingFormat>;
|
|
867
|
-
/**
|
|
868
|
-
* @internal
|
|
869
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
870
|
-
*/
|
|
871
|
-
export declare namespace EncodingFormat$ {
|
|
872
|
-
/** @deprecated use `EncodingFormat$inboundSchema` instead. */
|
|
873
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
874
|
-
readonly Float: "float";
|
|
875
|
-
readonly Base64: "base64";
|
|
876
|
-
}>;
|
|
877
|
-
/** @deprecated use `EncodingFormat$outboundSchema` instead. */
|
|
878
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
879
|
-
readonly Float: "float";
|
|
880
|
-
readonly Base64: "base64";
|
|
881
|
-
}>;
|
|
882
|
-
}
|
|
883
|
-
/** @internal */
|
|
884
|
-
export declare const ModelParameters$inboundSchema: z.ZodType<ModelParameters, z.ZodTypeDef, unknown>;
|
|
885
|
-
/** @internal */
|
|
886
|
-
export type ModelParameters$Outbound = {
|
|
887
|
-
temperature?: number | undefined;
|
|
888
|
-
maxTokens?: number | undefined;
|
|
889
|
-
topK?: number | undefined;
|
|
890
|
-
topP?: number | undefined;
|
|
891
|
-
frequencyPenalty?: number | undefined;
|
|
892
|
-
presencePenalty?: number | undefined;
|
|
893
|
-
numImages?: number | undefined;
|
|
894
|
-
seed?: number | undefined;
|
|
895
|
-
format?: string | undefined;
|
|
896
|
-
dimensions?: string | undefined;
|
|
897
|
-
quality?: string | undefined;
|
|
898
|
-
style?: string | undefined;
|
|
899
|
-
responseFormat?: ResponseFormat2$Outbound | ResponseFormat1$Outbound | null | undefined;
|
|
900
|
-
photoRealVersion?: string | undefined;
|
|
901
|
-
encoding_format?: string | undefined;
|
|
902
|
-
};
|
|
903
|
-
/** @internal */
|
|
904
|
-
export declare const ModelParameters$outboundSchema: z.ZodType<ModelParameters$Outbound, z.ZodTypeDef, ModelParameters>;
|
|
905
|
-
/**
|
|
906
|
-
* @internal
|
|
907
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
908
|
-
*/
|
|
909
|
-
export declare namespace ModelParameters$ {
|
|
910
|
-
/** @deprecated use `ModelParameters$inboundSchema` instead. */
|
|
911
|
-
const inboundSchema: z.ZodType<ModelParameters, z.ZodTypeDef, unknown>;
|
|
912
|
-
/** @deprecated use `ModelParameters$outboundSchema` instead. */
|
|
913
|
-
const outboundSchema: z.ZodType<ModelParameters$Outbound, z.ZodTypeDef, ModelParameters>;
|
|
914
|
-
/** @deprecated use `ModelParameters$Outbound` instead. */
|
|
915
|
-
type Outbound = ModelParameters$Outbound;
|
|
916
|
-
}
|
|
917
|
-
export declare function modelParametersToJSON(modelParameters: ModelParameters): string;
|
|
918
|
-
export declare function modelParametersFromJSON(jsonString: string): SafeParseResult<ModelParameters, SDKValidationError>;
|
|
919
|
-
/** @internal */
|
|
920
|
-
export declare const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider>;
|
|
921
|
-
/** @internal */
|
|
922
|
-
export declare const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider>;
|
|
923
|
-
/**
|
|
924
|
-
* @internal
|
|
925
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
926
|
-
*/
|
|
927
|
-
export declare namespace Provider$ {
|
|
928
|
-
/** @deprecated use `Provider$inboundSchema` instead. */
|
|
929
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
930
|
-
readonly Cohere: "cohere";
|
|
931
|
-
readonly Openai: "openai";
|
|
932
|
-
readonly Anthropic: "anthropic";
|
|
933
|
-
readonly Huggingface: "huggingface";
|
|
934
|
-
readonly Replicate: "replicate";
|
|
935
|
-
readonly Google: "google";
|
|
936
|
-
readonly GoogleAi: "google-ai";
|
|
937
|
-
readonly Azure: "azure";
|
|
938
|
-
readonly Aws: "aws";
|
|
939
|
-
readonly Anyscale: "anyscale";
|
|
940
|
-
readonly Perplexity: "perplexity";
|
|
941
|
-
readonly Groq: "groq";
|
|
942
|
-
readonly Fal: "fal";
|
|
943
|
-
readonly Leonardoai: "leonardoai";
|
|
944
|
-
readonly Nvidia: "nvidia";
|
|
945
|
-
readonly Jina: "jina";
|
|
946
|
-
}>;
|
|
947
|
-
/** @deprecated use `Provider$outboundSchema` instead. */
|
|
948
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
949
|
-
readonly Cohere: "cohere";
|
|
950
|
-
readonly Openai: "openai";
|
|
951
|
-
readonly Anthropic: "anthropic";
|
|
952
|
-
readonly Huggingface: "huggingface";
|
|
953
|
-
readonly Replicate: "replicate";
|
|
954
|
-
readonly Google: "google";
|
|
955
|
-
readonly GoogleAi: "google-ai";
|
|
956
|
-
readonly Azure: "azure";
|
|
957
|
-
readonly Aws: "aws";
|
|
958
|
-
readonly Anyscale: "anyscale";
|
|
959
|
-
readonly Perplexity: "perplexity";
|
|
960
|
-
readonly Groq: "groq";
|
|
961
|
-
readonly Fal: "fal";
|
|
962
|
-
readonly Leonardoai: "leonardoai";
|
|
963
|
-
readonly Nvidia: "nvidia";
|
|
964
|
-
readonly Jina: "jina";
|
|
965
|
-
}>;
|
|
966
|
-
}
|
|
967
|
-
/** @internal */
|
|
968
|
-
export declare const CreatePromptRole$inboundSchema: z.ZodNativeEnum<typeof CreatePromptRole>;
|
|
969
|
-
/** @internal */
|
|
970
|
-
export declare const CreatePromptRole$outboundSchema: z.ZodNativeEnum<typeof CreatePromptRole>;
|
|
971
|
-
/**
|
|
972
|
-
* @internal
|
|
973
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
974
|
-
*/
|
|
975
|
-
export declare namespace CreatePromptRole$ {
|
|
976
|
-
/** @deprecated use `CreatePromptRole$inboundSchema` instead. */
|
|
977
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
978
|
-
readonly System: "system";
|
|
979
|
-
readonly Assistant: "assistant";
|
|
980
|
-
readonly User: "user";
|
|
981
|
-
readonly Exception: "exception";
|
|
982
|
-
readonly Tool: "tool";
|
|
983
|
-
readonly Prompt: "prompt";
|
|
984
|
-
readonly Correction: "correction";
|
|
985
|
-
readonly ExpectedOutput: "expected_output";
|
|
986
|
-
}>;
|
|
987
|
-
/** @deprecated use `CreatePromptRole$outboundSchema` instead. */
|
|
988
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
989
|
-
readonly System: "system";
|
|
990
|
-
readonly Assistant: "assistant";
|
|
991
|
-
readonly User: "user";
|
|
992
|
-
readonly Exception: "exception";
|
|
993
|
-
readonly Tool: "tool";
|
|
994
|
-
readonly Prompt: "prompt";
|
|
995
|
-
readonly Correction: "correction";
|
|
996
|
-
readonly ExpectedOutput: "expected_output";
|
|
997
|
-
}>;
|
|
998
|
-
}
|
|
999
|
-
/** @internal */
|
|
1000
|
-
export declare const CreatePrompt2PromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsType>;
|
|
1001
|
-
/** @internal */
|
|
1002
|
-
export declare const CreatePrompt2PromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsType>;
|
|
1003
|
-
/**
|
|
1004
|
-
* @internal
|
|
1005
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1006
|
-
*/
|
|
1007
|
-
export declare namespace CreatePrompt2PromptsType$ {
|
|
1008
|
-
/** @deprecated use `CreatePrompt2PromptsType$inboundSchema` instead. */
|
|
1009
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1010
|
-
readonly ImageUrl: "image_url";
|
|
1011
|
-
}>;
|
|
1012
|
-
/** @deprecated use `CreatePrompt2PromptsType$outboundSchema` instead. */
|
|
1013
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1014
|
-
readonly ImageUrl: "image_url";
|
|
1015
|
-
}>;
|
|
1016
|
-
}
|
|
1017
|
-
/** @internal */
|
|
1018
|
-
export declare const CreatePrompt2ImageUrl$inboundSchema: z.ZodType<CreatePrompt2ImageUrl, z.ZodTypeDef, unknown>;
|
|
1019
|
-
/** @internal */
|
|
1020
|
-
export type CreatePrompt2ImageUrl$Outbound = {
|
|
1021
|
-
url: string;
|
|
1022
|
-
detail?: string | undefined;
|
|
1023
|
-
};
|
|
1024
|
-
/** @internal */
|
|
1025
|
-
export declare const CreatePrompt2ImageUrl$outboundSchema: z.ZodType<CreatePrompt2ImageUrl$Outbound, z.ZodTypeDef, CreatePrompt2ImageUrl>;
|
|
1026
|
-
/**
|
|
1027
|
-
* @internal
|
|
1028
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1029
|
-
*/
|
|
1030
|
-
export declare namespace CreatePrompt2ImageUrl$ {
|
|
1031
|
-
/** @deprecated use `CreatePrompt2ImageUrl$inboundSchema` instead. */
|
|
1032
|
-
const inboundSchema: z.ZodType<CreatePrompt2ImageUrl, z.ZodTypeDef, unknown>;
|
|
1033
|
-
/** @deprecated use `CreatePrompt2ImageUrl$outboundSchema` instead. */
|
|
1034
|
-
const outboundSchema: z.ZodType<CreatePrompt2ImageUrl$Outbound, z.ZodTypeDef, CreatePrompt2ImageUrl>;
|
|
1035
|
-
/** @deprecated use `CreatePrompt2ImageUrl$Outbound` instead. */
|
|
1036
|
-
type Outbound = CreatePrompt2ImageUrl$Outbound;
|
|
1037
|
-
}
|
|
1038
|
-
export declare function createPrompt2ImageUrlToJSON(createPrompt2ImageUrl: CreatePrompt2ImageUrl): string;
|
|
1039
|
-
export declare function createPrompt2ImageUrlFromJSON(jsonString: string): SafeParseResult<CreatePrompt2ImageUrl, SDKValidationError>;
|
|
1040
|
-
/** @internal */
|
|
1041
|
-
export declare const CreatePrompt22$inboundSchema: z.ZodType<CreatePrompt22, z.ZodTypeDef, unknown>;
|
|
1042
|
-
/** @internal */
|
|
1043
|
-
export type CreatePrompt22$Outbound = {
|
|
1044
|
-
type: string;
|
|
1045
|
-
image_url: CreatePrompt2ImageUrl$Outbound;
|
|
1046
|
-
};
|
|
1047
|
-
/** @internal */
|
|
1048
|
-
export declare const CreatePrompt22$outboundSchema: z.ZodType<CreatePrompt22$Outbound, z.ZodTypeDef, CreatePrompt22>;
|
|
1049
|
-
/**
|
|
1050
|
-
* @internal
|
|
1051
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1052
|
-
*/
|
|
1053
|
-
export declare namespace CreatePrompt22$ {
|
|
1054
|
-
/** @deprecated use `CreatePrompt22$inboundSchema` instead. */
|
|
1055
|
-
const inboundSchema: z.ZodType<CreatePrompt22, z.ZodTypeDef, unknown>;
|
|
1056
|
-
/** @deprecated use `CreatePrompt22$outboundSchema` instead. */
|
|
1057
|
-
const outboundSchema: z.ZodType<CreatePrompt22$Outbound, z.ZodTypeDef, CreatePrompt22>;
|
|
1058
|
-
/** @deprecated use `CreatePrompt22$Outbound` instead. */
|
|
1059
|
-
type Outbound = CreatePrompt22$Outbound;
|
|
1060
|
-
}
|
|
1061
|
-
export declare function createPrompt22ToJSON(createPrompt22: CreatePrompt22): string;
|
|
1062
|
-
export declare function createPrompt22FromJSON(jsonString: string): SafeParseResult<CreatePrompt22, SDKValidationError>;
|
|
1063
|
-
/** @internal */
|
|
1064
|
-
export declare const CreatePrompt2Type$inboundSchema: z.ZodNativeEnum<typeof CreatePrompt2Type>;
|
|
1065
|
-
/** @internal */
|
|
1066
|
-
export declare const CreatePrompt2Type$outboundSchema: z.ZodNativeEnum<typeof CreatePrompt2Type>;
|
|
1067
|
-
/**
|
|
1068
|
-
* @internal
|
|
1069
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1070
|
-
*/
|
|
1071
|
-
export declare namespace CreatePrompt2Type$ {
|
|
1072
|
-
/** @deprecated use `CreatePrompt2Type$inboundSchema` instead. */
|
|
1073
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1074
|
-
readonly Text: "text";
|
|
1075
|
-
}>;
|
|
1076
|
-
/** @deprecated use `CreatePrompt2Type$outboundSchema` instead. */
|
|
1077
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1078
|
-
readonly Text: "text";
|
|
1079
|
-
}>;
|
|
1080
|
-
}
|
|
1081
|
-
/** @internal */
|
|
1082
|
-
export declare const CreatePrompt21$inboundSchema: z.ZodType<CreatePrompt21, z.ZodTypeDef, unknown>;
|
|
1083
|
-
/** @internal */
|
|
1084
|
-
export type CreatePrompt21$Outbound = {
|
|
1085
|
-
type: string;
|
|
1086
|
-
text: string;
|
|
1087
|
-
};
|
|
1088
|
-
/** @internal */
|
|
1089
|
-
export declare const CreatePrompt21$outboundSchema: z.ZodType<CreatePrompt21$Outbound, z.ZodTypeDef, CreatePrompt21>;
|
|
1090
|
-
/**
|
|
1091
|
-
* @internal
|
|
1092
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1093
|
-
*/
|
|
1094
|
-
export declare namespace CreatePrompt21$ {
|
|
1095
|
-
/** @deprecated use `CreatePrompt21$inboundSchema` instead. */
|
|
1096
|
-
const inboundSchema: z.ZodType<CreatePrompt21, z.ZodTypeDef, unknown>;
|
|
1097
|
-
/** @deprecated use `CreatePrompt21$outboundSchema` instead. */
|
|
1098
|
-
const outboundSchema: z.ZodType<CreatePrompt21$Outbound, z.ZodTypeDef, CreatePrompt21>;
|
|
1099
|
-
/** @deprecated use `CreatePrompt21$Outbound` instead. */
|
|
1100
|
-
type Outbound = CreatePrompt21$Outbound;
|
|
1101
|
-
}
|
|
1102
|
-
export declare function createPrompt21ToJSON(createPrompt21: CreatePrompt21): string;
|
|
1103
|
-
export declare function createPrompt21FromJSON(jsonString: string): SafeParseResult<CreatePrompt21, SDKValidationError>;
|
|
1104
|
-
/** @internal */
|
|
1105
|
-
export declare const CreatePromptContent2$inboundSchema: z.ZodType<CreatePromptContent2, z.ZodTypeDef, unknown>;
|
|
1106
|
-
/** @internal */
|
|
1107
|
-
export type CreatePromptContent2$Outbound = CreatePrompt21$Outbound | CreatePrompt22$Outbound;
|
|
1108
|
-
/** @internal */
|
|
1109
|
-
export declare const CreatePromptContent2$outboundSchema: z.ZodType<CreatePromptContent2$Outbound, z.ZodTypeDef, CreatePromptContent2>;
|
|
1110
|
-
/**
|
|
1111
|
-
* @internal
|
|
1112
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1113
|
-
*/
|
|
1114
|
-
export declare namespace CreatePromptContent2$ {
|
|
1115
|
-
/** @deprecated use `CreatePromptContent2$inboundSchema` instead. */
|
|
1116
|
-
const inboundSchema: z.ZodType<CreatePromptContent2, z.ZodTypeDef, unknown>;
|
|
1117
|
-
/** @deprecated use `CreatePromptContent2$outboundSchema` instead. */
|
|
1118
|
-
const outboundSchema: z.ZodType<CreatePromptContent2$Outbound, z.ZodTypeDef, CreatePromptContent2>;
|
|
1119
|
-
/** @deprecated use `CreatePromptContent2$Outbound` instead. */
|
|
1120
|
-
type Outbound = CreatePromptContent2$Outbound;
|
|
1121
|
-
}
|
|
1122
|
-
export declare function createPromptContent2ToJSON(createPromptContent2: CreatePromptContent2): string;
|
|
1123
|
-
export declare function createPromptContent2FromJSON(jsonString: string): SafeParseResult<CreatePromptContent2, SDKValidationError>;
|
|
1124
|
-
/** @internal */
|
|
1125
|
-
export declare const CreatePromptContent$inboundSchema: z.ZodType<CreatePromptContent, z.ZodTypeDef, unknown>;
|
|
1126
|
-
/** @internal */
|
|
1127
|
-
export type CreatePromptContent$Outbound = string | Array<CreatePrompt21$Outbound | CreatePrompt22$Outbound>;
|
|
1128
|
-
/** @internal */
|
|
1129
|
-
export declare const CreatePromptContent$outboundSchema: z.ZodType<CreatePromptContent$Outbound, z.ZodTypeDef, CreatePromptContent>;
|
|
1130
|
-
/**
|
|
1131
|
-
* @internal
|
|
1132
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1133
|
-
*/
|
|
1134
|
-
export declare namespace CreatePromptContent$ {
|
|
1135
|
-
/** @deprecated use `CreatePromptContent$inboundSchema` instead. */
|
|
1136
|
-
const inboundSchema: z.ZodType<CreatePromptContent, z.ZodTypeDef, unknown>;
|
|
1137
|
-
/** @deprecated use `CreatePromptContent$outboundSchema` instead. */
|
|
1138
|
-
const outboundSchema: z.ZodType<CreatePromptContent$Outbound, z.ZodTypeDef, CreatePromptContent>;
|
|
1139
|
-
/** @deprecated use `CreatePromptContent$Outbound` instead. */
|
|
1140
|
-
type Outbound = CreatePromptContent$Outbound;
|
|
1141
|
-
}
|
|
1142
|
-
export declare function createPromptContentToJSON(createPromptContent: CreatePromptContent): string;
|
|
1143
|
-
export declare function createPromptContentFromJSON(jsonString: string): SafeParseResult<CreatePromptContent, SDKValidationError>;
|
|
1144
|
-
/** @internal */
|
|
1145
|
-
export declare const CreatePromptType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptType>;
|
|
1146
|
-
/** @internal */
|
|
1147
|
-
export declare const CreatePromptType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptType>;
|
|
1148
|
-
/**
|
|
1149
|
-
* @internal
|
|
1150
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1151
|
-
*/
|
|
1152
|
-
export declare namespace CreatePromptType$ {
|
|
1153
|
-
/** @deprecated use `CreatePromptType$inboundSchema` instead. */
|
|
1154
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1155
|
-
readonly Function: "function";
|
|
1156
|
-
}>;
|
|
1157
|
-
/** @deprecated use `CreatePromptType$outboundSchema` instead. */
|
|
1158
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1159
|
-
readonly Function: "function";
|
|
1160
|
-
}>;
|
|
1161
|
-
}
|
|
1162
|
-
/** @internal */
|
|
1163
|
-
export declare const CreatePromptFunction$inboundSchema: z.ZodType<CreatePromptFunction, z.ZodTypeDef, unknown>;
|
|
1164
|
-
/** @internal */
|
|
1165
|
-
export type CreatePromptFunction$Outbound = {
|
|
1166
|
-
name: string;
|
|
1167
|
-
arguments: string;
|
|
1168
|
-
};
|
|
1169
|
-
/** @internal */
|
|
1170
|
-
export declare const CreatePromptFunction$outboundSchema: z.ZodType<CreatePromptFunction$Outbound, z.ZodTypeDef, CreatePromptFunction>;
|
|
1171
|
-
/**
|
|
1172
|
-
* @internal
|
|
1173
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1174
|
-
*/
|
|
1175
|
-
export declare namespace CreatePromptFunction$ {
|
|
1176
|
-
/** @deprecated use `CreatePromptFunction$inboundSchema` instead. */
|
|
1177
|
-
const inboundSchema: z.ZodType<CreatePromptFunction, z.ZodTypeDef, unknown>;
|
|
1178
|
-
/** @deprecated use `CreatePromptFunction$outboundSchema` instead. */
|
|
1179
|
-
const outboundSchema: z.ZodType<CreatePromptFunction$Outbound, z.ZodTypeDef, CreatePromptFunction>;
|
|
1180
|
-
/** @deprecated use `CreatePromptFunction$Outbound` instead. */
|
|
1181
|
-
type Outbound = CreatePromptFunction$Outbound;
|
|
1182
|
-
}
|
|
1183
|
-
export declare function createPromptFunctionToJSON(createPromptFunction: CreatePromptFunction): string;
|
|
1184
|
-
export declare function createPromptFunctionFromJSON(jsonString: string): SafeParseResult<CreatePromptFunction, SDKValidationError>;
|
|
1185
|
-
/** @internal */
|
|
1186
|
-
export declare const CreatePromptToolCalls$inboundSchema: z.ZodType<CreatePromptToolCalls, z.ZodTypeDef, unknown>;
|
|
1187
|
-
/** @internal */
|
|
1188
|
-
export type CreatePromptToolCalls$Outbound = {
|
|
1189
|
-
id?: string | undefined;
|
|
1190
|
-
index?: number | undefined;
|
|
1191
|
-
type: string;
|
|
1192
|
-
function: CreatePromptFunction$Outbound;
|
|
1193
|
-
};
|
|
1194
|
-
/** @internal */
|
|
1195
|
-
export declare const CreatePromptToolCalls$outboundSchema: z.ZodType<CreatePromptToolCalls$Outbound, z.ZodTypeDef, CreatePromptToolCalls>;
|
|
1196
|
-
/**
|
|
1197
|
-
* @internal
|
|
1198
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1199
|
-
*/
|
|
1200
|
-
export declare namespace CreatePromptToolCalls$ {
|
|
1201
|
-
/** @deprecated use `CreatePromptToolCalls$inboundSchema` instead. */
|
|
1202
|
-
const inboundSchema: z.ZodType<CreatePromptToolCalls, z.ZodTypeDef, unknown>;
|
|
1203
|
-
/** @deprecated use `CreatePromptToolCalls$outboundSchema` instead. */
|
|
1204
|
-
const outboundSchema: z.ZodType<CreatePromptToolCalls$Outbound, z.ZodTypeDef, CreatePromptToolCalls>;
|
|
1205
|
-
/** @deprecated use `CreatePromptToolCalls$Outbound` instead. */
|
|
1206
|
-
type Outbound = CreatePromptToolCalls$Outbound;
|
|
1207
|
-
}
|
|
1208
|
-
export declare function createPromptToolCallsToJSON(createPromptToolCalls: CreatePromptToolCalls): string;
|
|
1209
|
-
export declare function createPromptToolCallsFromJSON(jsonString: string): SafeParseResult<CreatePromptToolCalls, SDKValidationError>;
|
|
1210
|
-
/** @internal */
|
|
1211
|
-
export declare const CreatePromptMessages$inboundSchema: z.ZodType<CreatePromptMessages, z.ZodTypeDef, unknown>;
|
|
1212
|
-
/** @internal */
|
|
1213
|
-
export type CreatePromptMessages$Outbound = {
|
|
1214
|
-
role: string;
|
|
1215
|
-
content: string | Array<CreatePrompt21$Outbound | CreatePrompt22$Outbound>;
|
|
1216
|
-
tool_calls?: Array<CreatePromptToolCalls$Outbound> | undefined;
|
|
1217
|
-
};
|
|
1218
|
-
/** @internal */
|
|
1219
|
-
export declare const CreatePromptMessages$outboundSchema: z.ZodType<CreatePromptMessages$Outbound, z.ZodTypeDef, CreatePromptMessages>;
|
|
1220
|
-
/**
|
|
1221
|
-
* @internal
|
|
1222
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1223
|
-
*/
|
|
1224
|
-
export declare namespace CreatePromptMessages$ {
|
|
1225
|
-
/** @deprecated use `CreatePromptMessages$inboundSchema` instead. */
|
|
1226
|
-
const inboundSchema: z.ZodType<CreatePromptMessages, z.ZodTypeDef, unknown>;
|
|
1227
|
-
/** @deprecated use `CreatePromptMessages$outboundSchema` instead. */
|
|
1228
|
-
const outboundSchema: z.ZodType<CreatePromptMessages$Outbound, z.ZodTypeDef, CreatePromptMessages>;
|
|
1229
|
-
/** @deprecated use `CreatePromptMessages$Outbound` instead. */
|
|
1230
|
-
type Outbound = CreatePromptMessages$Outbound;
|
|
1231
|
-
}
|
|
1232
|
-
export declare function createPromptMessagesToJSON(createPromptMessages: CreatePromptMessages): string;
|
|
1233
|
-
export declare function createPromptMessagesFromJSON(jsonString: string): SafeParseResult<CreatePromptMessages, SDKValidationError>;
|
|
1234
|
-
/** @internal */
|
|
1235
|
-
export declare const PromptConfig$inboundSchema: z.ZodType<PromptConfig, z.ZodTypeDef, unknown>;
|
|
1236
|
-
/** @internal */
|
|
1237
|
-
export type PromptConfig$Outbound = {
|
|
1238
|
-
stream?: boolean | undefined;
|
|
1239
|
-
model?: string | undefined;
|
|
1240
|
-
model_type?: string | undefined;
|
|
1241
|
-
model_parameters?: ModelParameters$Outbound | undefined;
|
|
1242
|
-
provider?: string | undefined;
|
|
1243
|
-
version?: string | undefined;
|
|
1244
|
-
messages: Array<CreatePromptMessages$Outbound>;
|
|
1245
|
-
};
|
|
1246
|
-
/** @internal */
|
|
1247
|
-
export declare const PromptConfig$outboundSchema: z.ZodType<PromptConfig$Outbound, z.ZodTypeDef, PromptConfig>;
|
|
1248
|
-
/**
|
|
1249
|
-
* @internal
|
|
1250
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1251
|
-
*/
|
|
1252
|
-
export declare namespace PromptConfig$ {
|
|
1253
|
-
/** @deprecated use `PromptConfig$inboundSchema` instead. */
|
|
1254
|
-
const inboundSchema: z.ZodType<PromptConfig, z.ZodTypeDef, unknown>;
|
|
1255
|
-
/** @deprecated use `PromptConfig$outboundSchema` instead. */
|
|
1256
|
-
const outboundSchema: z.ZodType<PromptConfig$Outbound, z.ZodTypeDef, PromptConfig>;
|
|
1257
|
-
/** @deprecated use `PromptConfig$Outbound` instead. */
|
|
1258
|
-
type Outbound = PromptConfig$Outbound;
|
|
1259
|
-
}
|
|
1260
|
-
export declare function promptConfigToJSON(promptConfig: PromptConfig): string;
|
|
1261
|
-
export declare function promptConfigFromJSON(jsonString: string): SafeParseResult<PromptConfig, SDKValidationError>;
|
|
1262
|
-
/** @internal */
|
|
1263
|
-
export declare const Metadata$inboundSchema: z.ZodType<Metadata, z.ZodTypeDef, unknown>;
|
|
1264
|
-
/** @internal */
|
|
1265
|
-
export type Metadata$Outbound = {
|
|
1266
|
-
use_cases?: Array<string> | undefined;
|
|
1267
|
-
language?: string | undefined;
|
|
1268
|
-
};
|
|
1269
|
-
/** @internal */
|
|
1270
|
-
export declare const Metadata$outboundSchema: z.ZodType<Metadata$Outbound, z.ZodTypeDef, Metadata>;
|
|
1271
|
-
/**
|
|
1272
|
-
* @internal
|
|
1273
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1274
|
-
*/
|
|
1275
|
-
export declare namespace Metadata$ {
|
|
1276
|
-
/** @deprecated use `Metadata$inboundSchema` instead. */
|
|
1277
|
-
const inboundSchema: z.ZodType<Metadata, z.ZodTypeDef, unknown>;
|
|
1278
|
-
/** @deprecated use `Metadata$outboundSchema` instead. */
|
|
1279
|
-
const outboundSchema: z.ZodType<Metadata$Outbound, z.ZodTypeDef, Metadata>;
|
|
1280
|
-
/** @deprecated use `Metadata$Outbound` instead. */
|
|
1281
|
-
type Outbound = Metadata$Outbound;
|
|
1282
|
-
}
|
|
1283
|
-
export declare function metadataToJSON(metadata: Metadata): string;
|
|
1284
|
-
export declare function metadataFromJSON(jsonString: string): SafeParseResult<Metadata, SDKValidationError>;
|
|
1285
|
-
/** @internal */
|
|
1286
|
-
export declare const CreatePromptPromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsType>;
|
|
1287
|
-
/** @internal */
|
|
1288
|
-
export declare const CreatePromptPromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsType>;
|
|
1289
|
-
/**
|
|
1290
|
-
* @internal
|
|
1291
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1292
|
-
*/
|
|
1293
|
-
export declare namespace CreatePromptPromptsType$ {
|
|
1294
|
-
/** @deprecated use `CreatePromptPromptsType$inboundSchema` instead. */
|
|
1295
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1296
|
-
readonly Prompt: "prompt";
|
|
1297
|
-
readonly Snippet: "snippet";
|
|
1298
|
-
readonly Template: "template";
|
|
1299
|
-
}>;
|
|
1300
|
-
/** @deprecated use `CreatePromptPromptsType$outboundSchema` instead. */
|
|
1301
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1302
|
-
readonly Prompt: "prompt";
|
|
1303
|
-
readonly Snippet: "snippet";
|
|
1304
|
-
readonly Template: "template";
|
|
1305
|
-
}>;
|
|
1306
|
-
}
|
|
1307
|
-
/** @internal */
|
|
1308
|
-
export declare const CreatePromptRequestBody$inboundSchema: z.ZodType<CreatePromptRequestBody, z.ZodTypeDef, unknown>;
|
|
1309
|
-
/** @internal */
|
|
1310
|
-
export type CreatePromptRequestBody$Outbound = {
|
|
1311
|
-
display_name: string;
|
|
1312
|
-
description?: string | null | undefined;
|
|
1313
|
-
prompt_config?: PromptConfig$Outbound | undefined;
|
|
1314
|
-
metadata?: Metadata$Outbound | undefined;
|
|
1315
|
-
key?: string | undefined;
|
|
1316
|
-
type: string;
|
|
1317
|
-
};
|
|
1318
|
-
/** @internal */
|
|
1319
|
-
export declare const CreatePromptRequestBody$outboundSchema: z.ZodType<CreatePromptRequestBody$Outbound, z.ZodTypeDef, CreatePromptRequestBody>;
|
|
1320
|
-
/**
|
|
1321
|
-
* @internal
|
|
1322
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1323
|
-
*/
|
|
1324
|
-
export declare namespace CreatePromptRequestBody$ {
|
|
1325
|
-
/** @deprecated use `CreatePromptRequestBody$inboundSchema` instead. */
|
|
1326
|
-
const inboundSchema: z.ZodType<CreatePromptRequestBody, z.ZodTypeDef, unknown>;
|
|
1327
|
-
/** @deprecated use `CreatePromptRequestBody$outboundSchema` instead. */
|
|
1328
|
-
const outboundSchema: z.ZodType<CreatePromptRequestBody$Outbound, z.ZodTypeDef, CreatePromptRequestBody>;
|
|
1329
|
-
/** @deprecated use `CreatePromptRequestBody$Outbound` instead. */
|
|
1330
|
-
type Outbound = CreatePromptRequestBody$Outbound;
|
|
1331
|
-
}
|
|
1332
|
-
export declare function createPromptRequestBodyToJSON(createPromptRequestBody: CreatePromptRequestBody): string;
|
|
1333
|
-
export declare function createPromptRequestBodyFromJSON(jsonString: string): SafeParseResult<CreatePromptRequestBody, SDKValidationError>;
|
|
1334
|
-
/** @internal */
|
|
1335
|
-
export declare const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptModelType>;
|
|
1336
|
-
/** @internal */
|
|
1337
|
-
export declare const CreatePromptModelType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptModelType>;
|
|
1338
|
-
/**
|
|
1339
|
-
* @internal
|
|
1340
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1341
|
-
*/
|
|
1342
|
-
export declare namespace CreatePromptModelType$ {
|
|
1343
|
-
/** @deprecated use `CreatePromptModelType$inboundSchema` instead. */
|
|
1344
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1345
|
-
readonly Chat: "chat";
|
|
1346
|
-
readonly Completion: "completion";
|
|
1347
|
-
readonly Embedding: "embedding";
|
|
1348
|
-
readonly Vision: "vision";
|
|
1349
|
-
readonly Image: "image";
|
|
1350
|
-
readonly Tts: "tts";
|
|
1351
|
-
readonly Stt: "stt";
|
|
1352
|
-
readonly Rerank: "rerank";
|
|
1353
|
-
readonly Moderations: "moderations";
|
|
1354
|
-
}>;
|
|
1355
|
-
/** @deprecated use `CreatePromptModelType$outboundSchema` instead. */
|
|
1356
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1357
|
-
readonly Chat: "chat";
|
|
1358
|
-
readonly Completion: "completion";
|
|
1359
|
-
readonly Embedding: "embedding";
|
|
1360
|
-
readonly Vision: "vision";
|
|
1361
|
-
readonly Image: "image";
|
|
1362
|
-
readonly Tts: "tts";
|
|
1363
|
-
readonly Stt: "stt";
|
|
1364
|
-
readonly Rerank: "rerank";
|
|
1365
|
-
readonly Moderations: "moderations";
|
|
1366
|
-
}>;
|
|
1367
|
-
}
|
|
1368
|
-
/** @internal */
|
|
1369
|
-
export declare const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptFormat>;
|
|
1370
|
-
/** @internal */
|
|
1371
|
-
export declare const CreatePromptFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptFormat>;
|
|
1372
|
-
/**
|
|
1373
|
-
* @internal
|
|
1374
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1375
|
-
*/
|
|
1376
|
-
export declare namespace CreatePromptFormat$ {
|
|
1377
|
-
/** @deprecated use `CreatePromptFormat$inboundSchema` instead. */
|
|
1378
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1379
|
-
readonly Url: "url";
|
|
1380
|
-
readonly B64Json: "b64_json";
|
|
1381
|
-
readonly Text: "text";
|
|
1382
|
-
readonly JsonObject: "json_object";
|
|
1383
|
-
}>;
|
|
1384
|
-
/** @deprecated use `CreatePromptFormat$outboundSchema` instead. */
|
|
1385
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1386
|
-
readonly Url: "url";
|
|
1387
|
-
readonly B64Json: "b64_json";
|
|
1388
|
-
readonly Text: "text";
|
|
1389
|
-
readonly JsonObject: "json_object";
|
|
1390
|
-
}>;
|
|
1391
|
-
}
|
|
1392
|
-
/** @internal */
|
|
1393
|
-
export declare const CreatePromptQuality$inboundSchema: z.ZodNativeEnum<typeof CreatePromptQuality>;
|
|
1394
|
-
/** @internal */
|
|
1395
|
-
export declare const CreatePromptQuality$outboundSchema: z.ZodNativeEnum<typeof CreatePromptQuality>;
|
|
1396
|
-
/**
|
|
1397
|
-
* @internal
|
|
1398
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1399
|
-
*/
|
|
1400
|
-
export declare namespace CreatePromptQuality$ {
|
|
1401
|
-
/** @deprecated use `CreatePromptQuality$inboundSchema` instead. */
|
|
1402
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1403
|
-
readonly Standard: "standard";
|
|
1404
|
-
readonly Hd: "hd";
|
|
1405
|
-
}>;
|
|
1406
|
-
/** @deprecated use `CreatePromptQuality$outboundSchema` instead. */
|
|
1407
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1408
|
-
readonly Standard: "standard";
|
|
1409
|
-
readonly Hd: "hd";
|
|
1410
|
-
}>;
|
|
1411
|
-
}
|
|
1412
|
-
/** @internal */
|
|
1413
|
-
export declare const CreatePromptResponseFormatPromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType>;
|
|
1414
|
-
/** @internal */
|
|
1415
|
-
export declare const CreatePromptResponseFormatPromptsResponseType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType>;
|
|
1416
|
-
/**
|
|
1417
|
-
* @internal
|
|
1418
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1419
|
-
*/
|
|
1420
|
-
export declare namespace CreatePromptResponseFormatPromptsResponseType$ {
|
|
1421
|
-
/** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
1422
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1423
|
-
readonly JsonObject: "json_object";
|
|
1424
|
-
}>;
|
|
1425
|
-
/** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
1426
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1427
|
-
readonly JsonObject: "json_object";
|
|
1428
|
-
}>;
|
|
1429
|
-
}
|
|
1430
|
-
/** @internal */
|
|
1431
|
-
export declare const CreatePromptResponseFormat2$inboundSchema: z.ZodType<CreatePromptResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1432
|
-
/** @internal */
|
|
1433
|
-
export type CreatePromptResponseFormat2$Outbound = {
|
|
1434
|
-
type: string;
|
|
1435
|
-
};
|
|
1436
|
-
/** @internal */
|
|
1437
|
-
export declare const CreatePromptResponseFormat2$outboundSchema: z.ZodType<CreatePromptResponseFormat2$Outbound, z.ZodTypeDef, CreatePromptResponseFormat2>;
|
|
1438
|
-
/**
|
|
1439
|
-
* @internal
|
|
1440
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1441
|
-
*/
|
|
1442
|
-
export declare namespace CreatePromptResponseFormat2$ {
|
|
1443
|
-
/** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
|
|
1444
|
-
const inboundSchema: z.ZodType<CreatePromptResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1445
|
-
/** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
|
|
1446
|
-
const outboundSchema: z.ZodType<CreatePromptResponseFormat2$Outbound, z.ZodTypeDef, CreatePromptResponseFormat2>;
|
|
1447
|
-
/** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
|
|
1448
|
-
type Outbound = CreatePromptResponseFormat2$Outbound;
|
|
1449
|
-
}
|
|
1450
|
-
export declare function createPromptResponseFormat2ToJSON(createPromptResponseFormat2: CreatePromptResponseFormat2): string;
|
|
1451
|
-
export declare function createPromptResponseFormat2FromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError>;
|
|
1452
|
-
/** @internal */
|
|
1453
|
-
export declare const CreatePromptResponseFormatPromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType>;
|
|
1454
|
-
/** @internal */
|
|
1455
|
-
export declare const CreatePromptResponseFormatPromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType>;
|
|
1456
|
-
/**
|
|
1457
|
-
* @internal
|
|
1458
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1459
|
-
*/
|
|
1460
|
-
export declare namespace CreatePromptResponseFormatPromptsType$ {
|
|
1461
|
-
/** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
1462
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1463
|
-
readonly JsonSchema: "json_schema";
|
|
1464
|
-
}>;
|
|
1465
|
-
/** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
1466
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1467
|
-
readonly JsonSchema: "json_schema";
|
|
1468
|
-
}>;
|
|
1469
|
-
}
|
|
1470
|
-
/** @internal */
|
|
1471
|
-
export declare const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1472
|
-
/** @internal */
|
|
1473
|
-
export type CreatePromptResponseFormatJsonSchema$Outbound = {
|
|
1474
|
-
name: string;
|
|
1475
|
-
strict: boolean;
|
|
1476
|
-
schema: {
|
|
1477
|
-
[k: string]: any;
|
|
1478
|
-
};
|
|
1479
|
-
};
|
|
1480
|
-
/** @internal */
|
|
1481
|
-
export declare const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, CreatePromptResponseFormatJsonSchema>;
|
|
1482
|
-
/**
|
|
1483
|
-
* @internal
|
|
1484
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1485
|
-
*/
|
|
1486
|
-
export declare namespace CreatePromptResponseFormatJsonSchema$ {
|
|
1487
|
-
/** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
|
|
1488
|
-
const inboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1489
|
-
/** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
|
|
1490
|
-
const outboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, CreatePromptResponseFormatJsonSchema>;
|
|
1491
|
-
/** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
|
|
1492
|
-
type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
|
|
1493
|
-
}
|
|
1494
|
-
export declare function createPromptResponseFormatJsonSchemaToJSON(createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema): string;
|
|
1495
|
-
export declare function createPromptResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError>;
|
|
1496
|
-
/** @internal */
|
|
1497
|
-
export declare const CreatePromptResponseFormat1$inboundSchema: z.ZodType<CreatePromptResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1498
|
-
/** @internal */
|
|
1499
|
-
export type CreatePromptResponseFormat1$Outbound = {
|
|
1500
|
-
type: string;
|
|
1501
|
-
json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
|
|
1502
|
-
};
|
|
1503
|
-
/** @internal */
|
|
1504
|
-
export declare const CreatePromptResponseFormat1$outboundSchema: z.ZodType<CreatePromptResponseFormat1$Outbound, z.ZodTypeDef, CreatePromptResponseFormat1>;
|
|
1505
|
-
/**
|
|
1506
|
-
* @internal
|
|
1507
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1508
|
-
*/
|
|
1509
|
-
export declare namespace CreatePromptResponseFormat1$ {
|
|
1510
|
-
/** @deprecated use `CreatePromptResponseFormat1$inboundSchema` instead. */
|
|
1511
|
-
const inboundSchema: z.ZodType<CreatePromptResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1512
|
-
/** @deprecated use `CreatePromptResponseFormat1$outboundSchema` instead. */
|
|
1513
|
-
const outboundSchema: z.ZodType<CreatePromptResponseFormat1$Outbound, z.ZodTypeDef, CreatePromptResponseFormat1>;
|
|
1514
|
-
/** @deprecated use `CreatePromptResponseFormat1$Outbound` instead. */
|
|
1515
|
-
type Outbound = CreatePromptResponseFormat1$Outbound;
|
|
1516
|
-
}
|
|
1517
|
-
export declare function createPromptResponseFormat1ToJSON(createPromptResponseFormat1: CreatePromptResponseFormat1): string;
|
|
1518
|
-
export declare function createPromptResponseFormat1FromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError>;
|
|
1519
|
-
/** @internal */
|
|
1520
|
-
export declare const CreatePromptResponseFormat$inboundSchema: z.ZodType<CreatePromptResponseFormat, z.ZodTypeDef, unknown>;
|
|
1521
|
-
/** @internal */
|
|
1522
|
-
export type CreatePromptResponseFormat$Outbound = CreatePromptResponseFormat2$Outbound | CreatePromptResponseFormat1$Outbound;
|
|
1523
|
-
/** @internal */
|
|
1524
|
-
export declare const CreatePromptResponseFormat$outboundSchema: z.ZodType<CreatePromptResponseFormat$Outbound, z.ZodTypeDef, CreatePromptResponseFormat>;
|
|
1525
|
-
/**
|
|
1526
|
-
* @internal
|
|
1527
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1528
|
-
*/
|
|
1529
|
-
export declare namespace CreatePromptResponseFormat$ {
|
|
1530
|
-
/** @deprecated use `CreatePromptResponseFormat$inboundSchema` instead. */
|
|
1531
|
-
const inboundSchema: z.ZodType<CreatePromptResponseFormat, z.ZodTypeDef, unknown>;
|
|
1532
|
-
/** @deprecated use `CreatePromptResponseFormat$outboundSchema` instead. */
|
|
1533
|
-
const outboundSchema: z.ZodType<CreatePromptResponseFormat$Outbound, z.ZodTypeDef, CreatePromptResponseFormat>;
|
|
1534
|
-
/** @deprecated use `CreatePromptResponseFormat$Outbound` instead. */
|
|
1535
|
-
type Outbound = CreatePromptResponseFormat$Outbound;
|
|
1536
|
-
}
|
|
1537
|
-
export declare function createPromptResponseFormatToJSON(createPromptResponseFormat: CreatePromptResponseFormat): string;
|
|
1538
|
-
export declare function createPromptResponseFormatFromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormat, SDKValidationError>;
|
|
1539
|
-
/** @internal */
|
|
1540
|
-
export declare const CreatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPhotoRealVersion>;
|
|
1541
|
-
/** @internal */
|
|
1542
|
-
export declare const CreatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPhotoRealVersion>;
|
|
1543
|
-
/**
|
|
1544
|
-
* @internal
|
|
1545
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1546
|
-
*/
|
|
1547
|
-
export declare namespace CreatePromptPhotoRealVersion$ {
|
|
1548
|
-
/** @deprecated use `CreatePromptPhotoRealVersion$inboundSchema` instead. */
|
|
1549
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1550
|
-
readonly V1: "v1";
|
|
1551
|
-
readonly V2: "v2";
|
|
1552
|
-
}>;
|
|
1553
|
-
/** @deprecated use `CreatePromptPhotoRealVersion$outboundSchema` instead. */
|
|
1554
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1555
|
-
readonly V1: "v1";
|
|
1556
|
-
readonly V2: "v2";
|
|
1557
|
-
}>;
|
|
1558
|
-
}
|
|
1559
|
-
/** @internal */
|
|
1560
|
-
export declare const CreatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptEncodingFormat>;
|
|
1561
|
-
/** @internal */
|
|
1562
|
-
export declare const CreatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptEncodingFormat>;
|
|
1563
|
-
/**
|
|
1564
|
-
* @internal
|
|
1565
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1566
|
-
*/
|
|
1567
|
-
export declare namespace CreatePromptEncodingFormat$ {
|
|
1568
|
-
/** @deprecated use `CreatePromptEncodingFormat$inboundSchema` instead. */
|
|
1569
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1570
|
-
readonly Float: "float";
|
|
1571
|
-
readonly Base64: "base64";
|
|
1572
|
-
}>;
|
|
1573
|
-
/** @deprecated use `CreatePromptEncodingFormat$outboundSchema` instead. */
|
|
1574
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1575
|
-
readonly Float: "float";
|
|
1576
|
-
readonly Base64: "base64";
|
|
1577
|
-
}>;
|
|
1578
|
-
}
|
|
1579
|
-
/** @internal */
|
|
1580
|
-
export declare const CreatePromptModelParameters$inboundSchema: z.ZodType<CreatePromptModelParameters, z.ZodTypeDef, unknown>;
|
|
1581
|
-
/** @internal */
|
|
1582
|
-
export type CreatePromptModelParameters$Outbound = {
|
|
1583
|
-
temperature?: number | undefined;
|
|
1584
|
-
maxTokens?: number | undefined;
|
|
1585
|
-
topK?: number | undefined;
|
|
1586
|
-
topP?: number | undefined;
|
|
1587
|
-
frequencyPenalty?: number | undefined;
|
|
1588
|
-
presencePenalty?: number | undefined;
|
|
1589
|
-
numImages?: number | undefined;
|
|
1590
|
-
seed?: number | undefined;
|
|
1591
|
-
format?: string | undefined;
|
|
1592
|
-
dimensions?: string | undefined;
|
|
1593
|
-
quality?: string | undefined;
|
|
1594
|
-
style?: string | undefined;
|
|
1595
|
-
responseFormat?: CreatePromptResponseFormat2$Outbound | CreatePromptResponseFormat1$Outbound | null | undefined;
|
|
1596
|
-
photoRealVersion?: string | undefined;
|
|
1597
|
-
encoding_format?: string | undefined;
|
|
1598
|
-
};
|
|
1599
|
-
/** @internal */
|
|
1600
|
-
export declare const CreatePromptModelParameters$outboundSchema: z.ZodType<CreatePromptModelParameters$Outbound, z.ZodTypeDef, CreatePromptModelParameters>;
|
|
1601
|
-
/**
|
|
1602
|
-
* @internal
|
|
1603
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1604
|
-
*/
|
|
1605
|
-
export declare namespace CreatePromptModelParameters$ {
|
|
1606
|
-
/** @deprecated use `CreatePromptModelParameters$inboundSchema` instead. */
|
|
1607
|
-
const inboundSchema: z.ZodType<CreatePromptModelParameters, z.ZodTypeDef, unknown>;
|
|
1608
|
-
/** @deprecated use `CreatePromptModelParameters$outboundSchema` instead. */
|
|
1609
|
-
const outboundSchema: z.ZodType<CreatePromptModelParameters$Outbound, z.ZodTypeDef, CreatePromptModelParameters>;
|
|
1610
|
-
/** @deprecated use `CreatePromptModelParameters$Outbound` instead. */
|
|
1611
|
-
type Outbound = CreatePromptModelParameters$Outbound;
|
|
1612
|
-
}
|
|
1613
|
-
export declare function createPromptModelParametersToJSON(createPromptModelParameters: CreatePromptModelParameters): string;
|
|
1614
|
-
export declare function createPromptModelParametersFromJSON(jsonString: string): SafeParseResult<CreatePromptModelParameters, SDKValidationError>;
|
|
1615
|
-
/** @internal */
|
|
1616
|
-
export declare const CreatePromptProvider$inboundSchema: z.ZodNativeEnum<typeof CreatePromptProvider>;
|
|
1617
|
-
/** @internal */
|
|
1618
|
-
export declare const CreatePromptProvider$outboundSchema: z.ZodNativeEnum<typeof CreatePromptProvider>;
|
|
1619
|
-
/**
|
|
1620
|
-
* @internal
|
|
1621
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1622
|
-
*/
|
|
1623
|
-
export declare namespace CreatePromptProvider$ {
|
|
1624
|
-
/** @deprecated use `CreatePromptProvider$inboundSchema` instead. */
|
|
1625
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1626
|
-
readonly Cohere: "cohere";
|
|
1627
|
-
readonly Openai: "openai";
|
|
1628
|
-
readonly Anthropic: "anthropic";
|
|
1629
|
-
readonly Huggingface: "huggingface";
|
|
1630
|
-
readonly Replicate: "replicate";
|
|
1631
|
-
readonly Google: "google";
|
|
1632
|
-
readonly GoogleAi: "google-ai";
|
|
1633
|
-
readonly Azure: "azure";
|
|
1634
|
-
readonly Aws: "aws";
|
|
1635
|
-
readonly Anyscale: "anyscale";
|
|
1636
|
-
readonly Perplexity: "perplexity";
|
|
1637
|
-
readonly Groq: "groq";
|
|
1638
|
-
readonly Fal: "fal";
|
|
1639
|
-
readonly Leonardoai: "leonardoai";
|
|
1640
|
-
readonly Nvidia: "nvidia";
|
|
1641
|
-
readonly Jina: "jina";
|
|
1642
|
-
}>;
|
|
1643
|
-
/** @deprecated use `CreatePromptProvider$outboundSchema` instead. */
|
|
1644
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1645
|
-
readonly Cohere: "cohere";
|
|
1646
|
-
readonly Openai: "openai";
|
|
1647
|
-
readonly Anthropic: "anthropic";
|
|
1648
|
-
readonly Huggingface: "huggingface";
|
|
1649
|
-
readonly Replicate: "replicate";
|
|
1650
|
-
readonly Google: "google";
|
|
1651
|
-
readonly GoogleAi: "google-ai";
|
|
1652
|
-
readonly Azure: "azure";
|
|
1653
|
-
readonly Aws: "aws";
|
|
1654
|
-
readonly Anyscale: "anyscale";
|
|
1655
|
-
readonly Perplexity: "perplexity";
|
|
1656
|
-
readonly Groq: "groq";
|
|
1657
|
-
readonly Fal: "fal";
|
|
1658
|
-
readonly Leonardoai: "leonardoai";
|
|
1659
|
-
readonly Nvidia: "nvidia";
|
|
1660
|
-
readonly Jina: "jina";
|
|
1661
|
-
}>;
|
|
1662
|
-
}
|
|
1663
|
-
/** @internal */
|
|
1664
|
-
export declare const CreatePromptPromptsRole$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsRole>;
|
|
1665
|
-
/** @internal */
|
|
1666
|
-
export declare const CreatePromptPromptsRole$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsRole>;
|
|
1667
|
-
/**
|
|
1668
|
-
* @internal
|
|
1669
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1670
|
-
*/
|
|
1671
|
-
export declare namespace CreatePromptPromptsRole$ {
|
|
1672
|
-
/** @deprecated use `CreatePromptPromptsRole$inboundSchema` instead. */
|
|
1673
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1674
|
-
readonly System: "system";
|
|
1675
|
-
readonly Assistant: "assistant";
|
|
1676
|
-
readonly User: "user";
|
|
1677
|
-
readonly Exception: "exception";
|
|
1678
|
-
readonly Tool: "tool";
|
|
1679
|
-
readonly Prompt: "prompt";
|
|
1680
|
-
readonly Correction: "correction";
|
|
1681
|
-
readonly ExpectedOutput: "expected_output";
|
|
1682
|
-
}>;
|
|
1683
|
-
/** @deprecated use `CreatePromptPromptsRole$outboundSchema` instead. */
|
|
1684
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1685
|
-
readonly System: "system";
|
|
1686
|
-
readonly Assistant: "assistant";
|
|
1687
|
-
readonly User: "user";
|
|
1688
|
-
readonly Exception: "exception";
|
|
1689
|
-
readonly Tool: "tool";
|
|
1690
|
-
readonly Prompt: "prompt";
|
|
1691
|
-
readonly Correction: "correction";
|
|
1692
|
-
readonly ExpectedOutput: "expected_output";
|
|
1693
|
-
}>;
|
|
1694
|
-
}
|
|
1695
|
-
/** @internal */
|
|
1696
|
-
export declare const CreatePrompt2PromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsResponse200Type>;
|
|
1697
|
-
/** @internal */
|
|
1698
|
-
export declare const CreatePrompt2PromptsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsResponse200Type>;
|
|
1699
|
-
/**
|
|
1700
|
-
* @internal
|
|
1701
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1702
|
-
*/
|
|
1703
|
-
export declare namespace CreatePrompt2PromptsResponse200Type$ {
|
|
1704
|
-
/** @deprecated use `CreatePrompt2PromptsResponse200Type$inboundSchema` instead. */
|
|
1705
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1706
|
-
readonly ImageUrl: "image_url";
|
|
1707
|
-
}>;
|
|
1708
|
-
/** @deprecated use `CreatePrompt2PromptsResponse200Type$outboundSchema` instead. */
|
|
1709
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1710
|
-
readonly ImageUrl: "image_url";
|
|
1711
|
-
}>;
|
|
1712
|
-
}
|
|
1713
|
-
/** @internal */
|
|
1714
|
-
export declare const CreatePrompt2PromptsImageUrl$inboundSchema: z.ZodType<CreatePrompt2PromptsImageUrl, z.ZodTypeDef, unknown>;
|
|
1715
|
-
/** @internal */
|
|
1716
|
-
export type CreatePrompt2PromptsImageUrl$Outbound = {
|
|
1717
|
-
id?: string | undefined;
|
|
1718
|
-
url: string;
|
|
1719
|
-
detail?: string | undefined;
|
|
1720
|
-
};
|
|
1721
|
-
/** @internal */
|
|
1722
|
-
export declare const CreatePrompt2PromptsImageUrl$outboundSchema: z.ZodType<CreatePrompt2PromptsImageUrl$Outbound, z.ZodTypeDef, CreatePrompt2PromptsImageUrl>;
|
|
1723
|
-
/**
|
|
1724
|
-
* @internal
|
|
1725
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1726
|
-
*/
|
|
1727
|
-
export declare namespace CreatePrompt2PromptsImageUrl$ {
|
|
1728
|
-
/** @deprecated use `CreatePrompt2PromptsImageUrl$inboundSchema` instead. */
|
|
1729
|
-
const inboundSchema: z.ZodType<CreatePrompt2PromptsImageUrl, z.ZodTypeDef, unknown>;
|
|
1730
|
-
/** @deprecated use `CreatePrompt2PromptsImageUrl$outboundSchema` instead. */
|
|
1731
|
-
const outboundSchema: z.ZodType<CreatePrompt2PromptsImageUrl$Outbound, z.ZodTypeDef, CreatePrompt2PromptsImageUrl>;
|
|
1732
|
-
/** @deprecated use `CreatePrompt2PromptsImageUrl$Outbound` instead. */
|
|
1733
|
-
type Outbound = CreatePrompt2PromptsImageUrl$Outbound;
|
|
1734
|
-
}
|
|
1735
|
-
export declare function createPrompt2PromptsImageUrlToJSON(createPrompt2PromptsImageUrl: CreatePrompt2PromptsImageUrl): string;
|
|
1736
|
-
export declare function createPrompt2PromptsImageUrlFromJSON(jsonString: string): SafeParseResult<CreatePrompt2PromptsImageUrl, SDKValidationError>;
|
|
1737
|
-
/** @internal */
|
|
1738
|
-
export declare const CreatePrompt2Prompts2$inboundSchema: z.ZodType<CreatePrompt2Prompts2, z.ZodTypeDef, unknown>;
|
|
1739
|
-
/** @internal */
|
|
1740
|
-
export type CreatePrompt2Prompts2$Outbound = {
|
|
1741
|
-
type: string;
|
|
1742
|
-
image_url: CreatePrompt2PromptsImageUrl$Outbound;
|
|
1743
|
-
};
|
|
1744
|
-
/** @internal */
|
|
1745
|
-
export declare const CreatePrompt2Prompts2$outboundSchema: z.ZodType<CreatePrompt2Prompts2$Outbound, z.ZodTypeDef, CreatePrompt2Prompts2>;
|
|
1746
|
-
/**
|
|
1747
|
-
* @internal
|
|
1748
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1749
|
-
*/
|
|
1750
|
-
export declare namespace CreatePrompt2Prompts2$ {
|
|
1751
|
-
/** @deprecated use `CreatePrompt2Prompts2$inboundSchema` instead. */
|
|
1752
|
-
const inboundSchema: z.ZodType<CreatePrompt2Prompts2, z.ZodTypeDef, unknown>;
|
|
1753
|
-
/** @deprecated use `CreatePrompt2Prompts2$outboundSchema` instead. */
|
|
1754
|
-
const outboundSchema: z.ZodType<CreatePrompt2Prompts2$Outbound, z.ZodTypeDef, CreatePrompt2Prompts2>;
|
|
1755
|
-
/** @deprecated use `CreatePrompt2Prompts2$Outbound` instead. */
|
|
1756
|
-
type Outbound = CreatePrompt2Prompts2$Outbound;
|
|
1757
|
-
}
|
|
1758
|
-
export declare function createPrompt2Prompts2ToJSON(createPrompt2Prompts2: CreatePrompt2Prompts2): string;
|
|
1759
|
-
export declare function createPrompt2Prompts2FromJSON(jsonString: string): SafeParseResult<CreatePrompt2Prompts2, SDKValidationError>;
|
|
1760
|
-
/** @internal */
|
|
1761
|
-
export declare const CreatePrompt2PromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsResponseType>;
|
|
1762
|
-
/** @internal */
|
|
1763
|
-
export declare const CreatePrompt2PromptsResponseType$outboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsResponseType>;
|
|
1764
|
-
/**
|
|
1765
|
-
* @internal
|
|
1766
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1767
|
-
*/
|
|
1768
|
-
export declare namespace CreatePrompt2PromptsResponseType$ {
|
|
1769
|
-
/** @deprecated use `CreatePrompt2PromptsResponseType$inboundSchema` instead. */
|
|
1770
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1771
|
-
readonly Text: "text";
|
|
1772
|
-
}>;
|
|
1773
|
-
/** @deprecated use `CreatePrompt2PromptsResponseType$outboundSchema` instead. */
|
|
1774
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1775
|
-
readonly Text: "text";
|
|
1776
|
-
}>;
|
|
1777
|
-
}
|
|
1778
|
-
/** @internal */
|
|
1779
|
-
export declare const CreatePrompt2Prompts1$inboundSchema: z.ZodType<CreatePrompt2Prompts1, z.ZodTypeDef, unknown>;
|
|
1780
|
-
/** @internal */
|
|
1781
|
-
export type CreatePrompt2Prompts1$Outbound = {
|
|
1782
|
-
type: string;
|
|
1783
|
-
text: string;
|
|
1784
|
-
};
|
|
1785
|
-
/** @internal */
|
|
1786
|
-
export declare const CreatePrompt2Prompts1$outboundSchema: z.ZodType<CreatePrompt2Prompts1$Outbound, z.ZodTypeDef, CreatePrompt2Prompts1>;
|
|
1787
|
-
/**
|
|
1788
|
-
* @internal
|
|
1789
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1790
|
-
*/
|
|
1791
|
-
export declare namespace CreatePrompt2Prompts1$ {
|
|
1792
|
-
/** @deprecated use `CreatePrompt2Prompts1$inboundSchema` instead. */
|
|
1793
|
-
const inboundSchema: z.ZodType<CreatePrompt2Prompts1, z.ZodTypeDef, unknown>;
|
|
1794
|
-
/** @deprecated use `CreatePrompt2Prompts1$outboundSchema` instead. */
|
|
1795
|
-
const outboundSchema: z.ZodType<CreatePrompt2Prompts1$Outbound, z.ZodTypeDef, CreatePrompt2Prompts1>;
|
|
1796
|
-
/** @deprecated use `CreatePrompt2Prompts1$Outbound` instead. */
|
|
1797
|
-
type Outbound = CreatePrompt2Prompts1$Outbound;
|
|
1798
|
-
}
|
|
1799
|
-
export declare function createPrompt2Prompts1ToJSON(createPrompt2Prompts1: CreatePrompt2Prompts1): string;
|
|
1800
|
-
export declare function createPrompt2Prompts1FromJSON(jsonString: string): SafeParseResult<CreatePrompt2Prompts1, SDKValidationError>;
|
|
1801
|
-
/** @internal */
|
|
1802
|
-
export declare const CreatePromptContentPrompts2$inboundSchema: z.ZodType<CreatePromptContentPrompts2, z.ZodTypeDef, unknown>;
|
|
1803
|
-
/** @internal */
|
|
1804
|
-
export type CreatePromptContentPrompts2$Outbound = CreatePrompt2Prompts1$Outbound | CreatePrompt2Prompts2$Outbound;
|
|
1805
|
-
/** @internal */
|
|
1806
|
-
export declare const CreatePromptContentPrompts2$outboundSchema: z.ZodType<CreatePromptContentPrompts2$Outbound, z.ZodTypeDef, CreatePromptContentPrompts2>;
|
|
1807
|
-
/**
|
|
1808
|
-
* @internal
|
|
1809
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1810
|
-
*/
|
|
1811
|
-
export declare namespace CreatePromptContentPrompts2$ {
|
|
1812
|
-
/** @deprecated use `CreatePromptContentPrompts2$inboundSchema` instead. */
|
|
1813
|
-
const inboundSchema: z.ZodType<CreatePromptContentPrompts2, z.ZodTypeDef, unknown>;
|
|
1814
|
-
/** @deprecated use `CreatePromptContentPrompts2$outboundSchema` instead. */
|
|
1815
|
-
const outboundSchema: z.ZodType<CreatePromptContentPrompts2$Outbound, z.ZodTypeDef, CreatePromptContentPrompts2>;
|
|
1816
|
-
/** @deprecated use `CreatePromptContentPrompts2$Outbound` instead. */
|
|
1817
|
-
type Outbound = CreatePromptContentPrompts2$Outbound;
|
|
1818
|
-
}
|
|
1819
|
-
export declare function createPromptContentPrompts2ToJSON(createPromptContentPrompts2: CreatePromptContentPrompts2): string;
|
|
1820
|
-
export declare function createPromptContentPrompts2FromJSON(jsonString: string): SafeParseResult<CreatePromptContentPrompts2, SDKValidationError>;
|
|
1821
|
-
/** @internal */
|
|
1822
|
-
export declare const CreatePromptPromptsContent$inboundSchema: z.ZodType<CreatePromptPromptsContent, z.ZodTypeDef, unknown>;
|
|
1823
|
-
/** @internal */
|
|
1824
|
-
export type CreatePromptPromptsContent$Outbound = string | Array<CreatePrompt2Prompts1$Outbound | CreatePrompt2Prompts2$Outbound>;
|
|
1825
|
-
/** @internal */
|
|
1826
|
-
export declare const CreatePromptPromptsContent$outboundSchema: z.ZodType<CreatePromptPromptsContent$Outbound, z.ZodTypeDef, CreatePromptPromptsContent>;
|
|
1827
|
-
/**
|
|
1828
|
-
* @internal
|
|
1829
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1830
|
-
*/
|
|
1831
|
-
export declare namespace CreatePromptPromptsContent$ {
|
|
1832
|
-
/** @deprecated use `CreatePromptPromptsContent$inboundSchema` instead. */
|
|
1833
|
-
const inboundSchema: z.ZodType<CreatePromptPromptsContent, z.ZodTypeDef, unknown>;
|
|
1834
|
-
/** @deprecated use `CreatePromptPromptsContent$outboundSchema` instead. */
|
|
1835
|
-
const outboundSchema: z.ZodType<CreatePromptPromptsContent$Outbound, z.ZodTypeDef, CreatePromptPromptsContent>;
|
|
1836
|
-
/** @deprecated use `CreatePromptPromptsContent$Outbound` instead. */
|
|
1837
|
-
type Outbound = CreatePromptPromptsContent$Outbound;
|
|
1838
|
-
}
|
|
1839
|
-
export declare function createPromptPromptsContentToJSON(createPromptPromptsContent: CreatePromptPromptsContent): string;
|
|
1840
|
-
export declare function createPromptPromptsContentFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsContent, SDKValidationError>;
|
|
1841
|
-
/** @internal */
|
|
1842
|
-
export declare const CreatePromptPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponse200Type>;
|
|
1843
|
-
/** @internal */
|
|
1844
|
-
export declare const CreatePromptPromptsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponse200Type>;
|
|
1845
|
-
/**
|
|
1846
|
-
* @internal
|
|
1847
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1848
|
-
*/
|
|
1849
|
-
export declare namespace CreatePromptPromptsResponse200Type$ {
|
|
1850
|
-
/** @deprecated use `CreatePromptPromptsResponse200Type$inboundSchema` instead. */
|
|
1851
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1852
|
-
readonly Function: "function";
|
|
1853
|
-
}>;
|
|
1854
|
-
/** @deprecated use `CreatePromptPromptsResponse200Type$outboundSchema` instead. */
|
|
1855
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1856
|
-
readonly Function: "function";
|
|
1857
|
-
}>;
|
|
1858
|
-
}
|
|
1859
|
-
/** @internal */
|
|
1860
|
-
export declare const CreatePromptPromptsFunction$inboundSchema: z.ZodType<CreatePromptPromptsFunction, z.ZodTypeDef, unknown>;
|
|
1861
|
-
/** @internal */
|
|
1862
|
-
export type CreatePromptPromptsFunction$Outbound = {
|
|
1863
|
-
name: string;
|
|
1864
|
-
arguments: string;
|
|
1865
|
-
};
|
|
1866
|
-
/** @internal */
|
|
1867
|
-
export declare const CreatePromptPromptsFunction$outboundSchema: z.ZodType<CreatePromptPromptsFunction$Outbound, z.ZodTypeDef, CreatePromptPromptsFunction>;
|
|
1868
|
-
/**
|
|
1869
|
-
* @internal
|
|
1870
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1871
|
-
*/
|
|
1872
|
-
export declare namespace CreatePromptPromptsFunction$ {
|
|
1873
|
-
/** @deprecated use `CreatePromptPromptsFunction$inboundSchema` instead. */
|
|
1874
|
-
const inboundSchema: z.ZodType<CreatePromptPromptsFunction, z.ZodTypeDef, unknown>;
|
|
1875
|
-
/** @deprecated use `CreatePromptPromptsFunction$outboundSchema` instead. */
|
|
1876
|
-
const outboundSchema: z.ZodType<CreatePromptPromptsFunction$Outbound, z.ZodTypeDef, CreatePromptPromptsFunction>;
|
|
1877
|
-
/** @deprecated use `CreatePromptPromptsFunction$Outbound` instead. */
|
|
1878
|
-
type Outbound = CreatePromptPromptsFunction$Outbound;
|
|
1879
|
-
}
|
|
1880
|
-
export declare function createPromptPromptsFunctionToJSON(createPromptPromptsFunction: CreatePromptPromptsFunction): string;
|
|
1881
|
-
export declare function createPromptPromptsFunctionFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsFunction, SDKValidationError>;
|
|
1882
|
-
/** @internal */
|
|
1883
|
-
export declare const CreatePromptPromptsToolCalls$inboundSchema: z.ZodType<CreatePromptPromptsToolCalls, z.ZodTypeDef, unknown>;
|
|
1884
|
-
/** @internal */
|
|
1885
|
-
export type CreatePromptPromptsToolCalls$Outbound = {
|
|
1886
|
-
id?: string | undefined;
|
|
1887
|
-
index?: number | undefined;
|
|
1888
|
-
type: string;
|
|
1889
|
-
function: CreatePromptPromptsFunction$Outbound;
|
|
1890
|
-
};
|
|
1891
|
-
/** @internal */
|
|
1892
|
-
export declare const CreatePromptPromptsToolCalls$outboundSchema: z.ZodType<CreatePromptPromptsToolCalls$Outbound, z.ZodTypeDef, CreatePromptPromptsToolCalls>;
|
|
1893
|
-
/**
|
|
1894
|
-
* @internal
|
|
1895
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1896
|
-
*/
|
|
1897
|
-
export declare namespace CreatePromptPromptsToolCalls$ {
|
|
1898
|
-
/** @deprecated use `CreatePromptPromptsToolCalls$inboundSchema` instead. */
|
|
1899
|
-
const inboundSchema: z.ZodType<CreatePromptPromptsToolCalls, z.ZodTypeDef, unknown>;
|
|
1900
|
-
/** @deprecated use `CreatePromptPromptsToolCalls$outboundSchema` instead. */
|
|
1901
|
-
const outboundSchema: z.ZodType<CreatePromptPromptsToolCalls$Outbound, z.ZodTypeDef, CreatePromptPromptsToolCalls>;
|
|
1902
|
-
/** @deprecated use `CreatePromptPromptsToolCalls$Outbound` instead. */
|
|
1903
|
-
type Outbound = CreatePromptPromptsToolCalls$Outbound;
|
|
1904
|
-
}
|
|
1905
|
-
export declare function createPromptPromptsToolCallsToJSON(createPromptPromptsToolCalls: CreatePromptPromptsToolCalls): string;
|
|
1906
|
-
export declare function createPromptPromptsToolCallsFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsToolCalls, SDKValidationError>;
|
|
1907
|
-
/** @internal */
|
|
1908
|
-
export declare const CreatePromptPromptsMessages$inboundSchema: z.ZodType<CreatePromptPromptsMessages, z.ZodTypeDef, unknown>;
|
|
1909
|
-
/** @internal */
|
|
1910
|
-
export type CreatePromptPromptsMessages$Outbound = {
|
|
1911
|
-
role: string;
|
|
1912
|
-
content: string | Array<CreatePrompt2Prompts1$Outbound | CreatePrompt2Prompts2$Outbound>;
|
|
1913
|
-
tool_calls?: Array<CreatePromptPromptsToolCalls$Outbound> | undefined;
|
|
1914
|
-
};
|
|
1915
|
-
/** @internal */
|
|
1916
|
-
export declare const CreatePromptPromptsMessages$outboundSchema: z.ZodType<CreatePromptPromptsMessages$Outbound, z.ZodTypeDef, CreatePromptPromptsMessages>;
|
|
1917
|
-
/**
|
|
1918
|
-
* @internal
|
|
1919
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1920
|
-
*/
|
|
1921
|
-
export declare namespace CreatePromptPromptsMessages$ {
|
|
1922
|
-
/** @deprecated use `CreatePromptPromptsMessages$inboundSchema` instead. */
|
|
1923
|
-
const inboundSchema: z.ZodType<CreatePromptPromptsMessages, z.ZodTypeDef, unknown>;
|
|
1924
|
-
/** @deprecated use `CreatePromptPromptsMessages$outboundSchema` instead. */
|
|
1925
|
-
const outboundSchema: z.ZodType<CreatePromptPromptsMessages$Outbound, z.ZodTypeDef, CreatePromptPromptsMessages>;
|
|
1926
|
-
/** @deprecated use `CreatePromptPromptsMessages$Outbound` instead. */
|
|
1927
|
-
type Outbound = CreatePromptPromptsMessages$Outbound;
|
|
1928
|
-
}
|
|
1929
|
-
export declare function createPromptPromptsMessagesToJSON(createPromptPromptsMessages: CreatePromptPromptsMessages): string;
|
|
1930
|
-
export declare function createPromptPromptsMessagesFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsMessages, SDKValidationError>;
|
|
1931
|
-
/** @internal */
|
|
1932
|
-
export declare const CreatePromptPromptConfig$inboundSchema: z.ZodType<CreatePromptPromptConfig, z.ZodTypeDef, unknown>;
|
|
1933
|
-
/** @internal */
|
|
1934
|
-
export type CreatePromptPromptConfig$Outbound = {
|
|
1935
|
-
stream?: boolean | undefined;
|
|
1936
|
-
model?: string | undefined;
|
|
1937
|
-
model_db_id?: string | undefined;
|
|
1938
|
-
model_type?: string | undefined;
|
|
1939
|
-
model_parameters?: CreatePromptModelParameters$Outbound | undefined;
|
|
1940
|
-
provider?: string | undefined;
|
|
1941
|
-
integration_id?: string | null | undefined;
|
|
1942
|
-
version?: string | undefined;
|
|
1943
|
-
messages: Array<CreatePromptPromptsMessages$Outbound>;
|
|
1944
|
-
};
|
|
1945
|
-
/** @internal */
|
|
1946
|
-
export declare const CreatePromptPromptConfig$outboundSchema: z.ZodType<CreatePromptPromptConfig$Outbound, z.ZodTypeDef, CreatePromptPromptConfig>;
|
|
1947
|
-
/**
|
|
1948
|
-
* @internal
|
|
1949
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1950
|
-
*/
|
|
1951
|
-
export declare namespace CreatePromptPromptConfig$ {
|
|
1952
|
-
/** @deprecated use `CreatePromptPromptConfig$inboundSchema` instead. */
|
|
1953
|
-
const inboundSchema: z.ZodType<CreatePromptPromptConfig, z.ZodTypeDef, unknown>;
|
|
1954
|
-
/** @deprecated use `CreatePromptPromptConfig$outboundSchema` instead. */
|
|
1955
|
-
const outboundSchema: z.ZodType<CreatePromptPromptConfig$Outbound, z.ZodTypeDef, CreatePromptPromptConfig>;
|
|
1956
|
-
/** @deprecated use `CreatePromptPromptConfig$Outbound` instead. */
|
|
1957
|
-
type Outbound = CreatePromptPromptConfig$Outbound;
|
|
1958
|
-
}
|
|
1959
|
-
export declare function createPromptPromptConfigToJSON(createPromptPromptConfig: CreatePromptPromptConfig): string;
|
|
1960
|
-
export declare function createPromptPromptConfigFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptConfig, SDKValidationError>;
|
|
1961
|
-
/** @internal */
|
|
1962
|
-
export declare const CreatePromptMetadata$inboundSchema: z.ZodType<CreatePromptMetadata, z.ZodTypeDef, unknown>;
|
|
1963
|
-
/** @internal */
|
|
1964
|
-
export type CreatePromptMetadata$Outbound = {
|
|
1965
|
-
use_cases?: Array<string> | undefined;
|
|
1966
|
-
language?: string | undefined;
|
|
1967
|
-
};
|
|
1968
|
-
/** @internal */
|
|
1969
|
-
export declare const CreatePromptMetadata$outboundSchema: z.ZodType<CreatePromptMetadata$Outbound, z.ZodTypeDef, CreatePromptMetadata>;
|
|
1970
|
-
/**
|
|
1971
|
-
* @internal
|
|
1972
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1973
|
-
*/
|
|
1974
|
-
export declare namespace CreatePromptMetadata$ {
|
|
1975
|
-
/** @deprecated use `CreatePromptMetadata$inboundSchema` instead. */
|
|
1976
|
-
const inboundSchema: z.ZodType<CreatePromptMetadata, z.ZodTypeDef, unknown>;
|
|
1977
|
-
/** @deprecated use `CreatePromptMetadata$outboundSchema` instead. */
|
|
1978
|
-
const outboundSchema: z.ZodType<CreatePromptMetadata$Outbound, z.ZodTypeDef, CreatePromptMetadata>;
|
|
1979
|
-
/** @deprecated use `CreatePromptMetadata$Outbound` instead. */
|
|
1980
|
-
type Outbound = CreatePromptMetadata$Outbound;
|
|
1981
|
-
}
|
|
1982
|
-
export declare function createPromptMetadataToJSON(createPromptMetadata: CreatePromptMetadata): string;
|
|
1983
|
-
export declare function createPromptMetadataFromJSON(jsonString: string): SafeParseResult<CreatePromptMetadata, SDKValidationError>;
|
|
1984
|
-
/** @internal */
|
|
1985
|
-
export declare const CreatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseType>;
|
|
1986
|
-
/** @internal */
|
|
1987
|
-
export declare const CreatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseType>;
|
|
1988
|
-
/**
|
|
1989
|
-
* @internal
|
|
1990
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1991
|
-
*/
|
|
1992
|
-
export declare namespace CreatePromptPromptsResponseType$ {
|
|
1993
|
-
/** @deprecated use `CreatePromptPromptsResponseType$inboundSchema` instead. */
|
|
1994
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1995
|
-
readonly Prompt: "prompt";
|
|
1996
|
-
readonly Snippet: "snippet";
|
|
1997
|
-
readonly Template: "template";
|
|
1998
|
-
}>;
|
|
1999
|
-
/** @deprecated use `CreatePromptPromptsResponseType$outboundSchema` instead. */
|
|
2000
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
2001
|
-
readonly Prompt: "prompt";
|
|
2002
|
-
readonly Snippet: "snippet";
|
|
2003
|
-
readonly Template: "template";
|
|
2004
|
-
}>;
|
|
2005
|
-
}
|
|
2006
|
-
/** @internal */
|
|
2007
|
-
export declare const CreatePromptResponseBody$inboundSchema: z.ZodType<CreatePromptResponseBody, z.ZodTypeDef, unknown>;
|
|
2008
|
-
/** @internal */
|
|
2009
|
-
export type CreatePromptResponseBody$Outbound = {
|
|
2010
|
-
_id: string;
|
|
2011
|
-
display_name: string;
|
|
2012
|
-
domain_id: string;
|
|
2013
|
-
description?: string | null | undefined;
|
|
2014
|
-
prompt_config?: CreatePromptPromptConfig$Outbound | undefined;
|
|
2015
|
-
metadata?: CreatePromptMetadata$Outbound | undefined;
|
|
2016
|
-
key?: string | undefined;
|
|
2017
|
-
type: string;
|
|
2018
|
-
};
|
|
2019
|
-
/** @internal */
|
|
2020
|
-
export declare const CreatePromptResponseBody$outboundSchema: z.ZodType<CreatePromptResponseBody$Outbound, z.ZodTypeDef, CreatePromptResponseBody>;
|
|
2021
|
-
/**
|
|
2022
|
-
* @internal
|
|
2023
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2024
|
-
*/
|
|
2025
|
-
export declare namespace CreatePromptResponseBody$ {
|
|
2026
|
-
/** @deprecated use `CreatePromptResponseBody$inboundSchema` instead. */
|
|
2027
|
-
const inboundSchema: z.ZodType<CreatePromptResponseBody, z.ZodTypeDef, unknown>;
|
|
2028
|
-
/** @deprecated use `CreatePromptResponseBody$outboundSchema` instead. */
|
|
2029
|
-
const outboundSchema: z.ZodType<CreatePromptResponseBody$Outbound, z.ZodTypeDef, CreatePromptResponseBody>;
|
|
2030
|
-
/** @deprecated use `CreatePromptResponseBody$Outbound` instead. */
|
|
2031
|
-
type Outbound = CreatePromptResponseBody$Outbound;
|
|
2032
|
-
}
|
|
2033
|
-
export declare function createPromptResponseBodyToJSON(createPromptResponseBody: CreatePromptResponseBody): string;
|
|
2034
|
-
export declare function createPromptResponseBodyFromJSON(jsonString: string): SafeParseResult<CreatePromptResponseBody, SDKValidationError>;
|
|
2035
|
-
//# sourceMappingURL=createprompt.d.ts.map
|