@orq-ai/node 3.1.0 → 3.1.2
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 +34 -34
- package/docs/sdks/deployments/README.md +9 -86
- package/docs/sdks/files/README.md +174 -2
- package/docs/sdks/orq/README.md +1 -1
- package/docs/sdks/prompt/README.md +6 -0
- package/docs/sdks/prompts/README.md +128 -135
- package/docs/sdks/snippets/README.md +84 -0
- package/docs/sdks/templates/README.md +80 -0
- package/funcs/{deploymentsList.d.ts → deploymentsAll.d.ts} +2 -2
- package/funcs/deploymentsAll.d.ts.map +1 -0
- package/funcs/{deploymentsList.js → deploymentsAll.js} +4 -5
- package/funcs/deploymentsAll.js.map +1 -0
- package/funcs/deploymentsInvoke.d.ts +7 -1
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +11 -10
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/filesBulkUpload.d.ts +15 -0
- package/funcs/filesBulkUpload.d.ts.map +1 -0
- package/funcs/{promptsList.js → filesBulkUpload.js} +15 -18
- package/funcs/filesBulkUpload.js.map +1 -0
- package/funcs/{promptSnippetsDelete.d.ts → filesUpdate.d.ts} +3 -3
- package/funcs/filesUpdate.d.ts.map +1 -0
- package/funcs/{promptSnippetsGetByKey.js → filesUpdate.js} +13 -12
- package/funcs/filesUpdate.js.map +1 -0
- package/funcs/{promptSnippetsList.d.ts → promptSnippetsFindOne.d.ts} +3 -3
- package/funcs/promptSnippetsFindOne.d.ts.map +1 -0
- package/funcs/{promptSnippetsGet.js → promptSnippetsFindOne.js} +6 -6
- package/funcs/promptSnippetsFindOne.js.map +1 -0
- package/funcs/{promptSnippetsCreate.d.ts → promptTemplatesGetAll.d.ts} +3 -3
- package/funcs/promptTemplatesGetAll.d.ts.map +1 -0
- package/funcs/{promptSnippetsList.js → promptTemplatesGetAll.js} +13 -13
- package/funcs/promptTemplatesGetAll.js.map +1 -0
- package/funcs/promptsCreate.d.ts +1 -1
- package/funcs/promptsCreate.js +2 -2
- package/funcs/promptsCreate.js.map +1 -1
- package/funcs/{promptsRetrieve.d.ts → promptsCreateVersion.d.ts} +3 -6
- package/funcs/{promptSnippetsDelete.d.ts.map → promptsCreateVersion.d.ts.map} +1 -1
- package/funcs/promptsCreateVersion.js +110 -0
- package/funcs/promptsCreateVersion.js.map +1 -0
- package/funcs/promptsDelete.js +1 -1
- package/funcs/promptsDelete.js.map +1 -1
- package/funcs/{promptSnippetsGet.d.ts → promptsDuplicate.d.ts} +3 -3
- package/funcs/promptsDuplicate.d.ts.map +1 -0
- package/funcs/{promptSnippetsDelete.js → promptsDuplicate.js} +8 -8
- package/funcs/promptsDuplicate.js.map +1 -0
- package/funcs/promptsGetAll.d.ts +12 -0
- package/funcs/promptsGetAll.d.ts.map +1 -0
- package/funcs/{promptSnippetsCreate.js → promptsGetAll.js} +8 -8
- package/funcs/promptsGetAll.js.map +1 -0
- package/funcs/promptsGetOne.d.ts +12 -0
- package/funcs/promptsGetOne.d.ts.map +1 -0
- package/funcs/{promptsRetrieve.js → promptsGetOne.js} +8 -10
- package/funcs/promptsGetOne.js.map +1 -0
- package/funcs/promptsUpdate.js +1 -1
- package/funcs/promptsUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -10
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/lib/env.d.ts +0 -13
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +0 -17
- package/lib/env.js.map +1 -1
- package/lib/sdks.js +1 -1
- package/lib/sdks.js.map +1 -1
- package/models/components/deployments.d.ts +5 -0
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +2 -0
- package/models/components/deployments.js.map +1 -1
- package/models/errors/index.d.ts +0 -2
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -2
- package/models/errors/index.js.map +1 -1
- package/models/operations/bulkfileupload.d.ts +173 -0
- package/models/operations/bulkfileupload.d.ts.map +1 -0
- package/models/operations/bulkfileupload.js +210 -0
- package/models/operations/bulkfileupload.js.map +1 -0
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createprompt.d.ts +381 -702
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +481 -641
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createpromptversion.d.ts +2003 -0
- package/models/operations/createpromptversion.d.ts.map +1 -0
- package/models/operations/createpromptversion.js +1852 -0
- package/models/operations/createpromptversion.js.map +1 -0
- package/models/operations/deleteprompt.d.ts +1 -1
- package/models/operations/deploymentgetconfig.d.ts +0 -39
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +4 -29
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +683 -23
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +614 -23
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +8 -54
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +13 -44
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/duplicateprompt.d.ts +32 -0
- package/models/operations/duplicateprompt.d.ts.map +1 -0
- package/models/operations/{deletepromptsnippet.js → duplicateprompt.js} +17 -17
- package/models/operations/duplicateprompt.js.map +1 -0
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.d.ts +5 -1
- package/models/operations/filelist.d.ts.map +1 -1
- package/models/operations/filelist.js +12 -4
- package/models/operations/filelist.js.map +1 -1
- package/models/operations/fileupdate.d.ts +143 -0
- package/models/operations/fileupdate.d.ts.map +1 -0
- package/models/operations/fileupdate.js +193 -0
- package/models/operations/fileupdate.js.map +1 -0
- package/models/operations/fileupload.js +2 -2
- package/models/operations/findonepromptsnippet.d.ts +4768 -938
- package/models/operations/findonepromptsnippet.d.ts.map +1 -1
- package/models/operations/findonepromptsnippet.js +4751 -984
- package/models/operations/findonepromptsnippet.js.map +1 -1
- package/models/operations/getallprompts.d.ts +9926 -546
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +8805 -557
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getallprompttemplates.d.ts +6607 -0
- package/models/operations/getallprompttemplates.d.ts.map +1 -0
- package/models/operations/getallprompttemplates.js +6225 -0
- package/models/operations/getallprompttemplates.js.map +1 -0
- package/models/operations/getoneprompt.d.ts +1 -1203
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -1011
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/index.d.ts +5 -8
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -8
- package/models/operations/index.js.map +1 -1
- package/models/operations/updateprompt.d.ts +5979 -1121
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +5729 -1119
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/sdk/deployments.d.ts +6 -10
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +6 -14
- package/sdk/deployments.js.map +1 -1
- package/sdk/files.d.ts +11 -0
- package/sdk/files.d.ts.map +1 -1
- package/sdk/files.js +17 -0
- package/sdk/files.js.map +1 -1
- package/sdk/prompt.d.ts +10 -0
- package/sdk/prompt.d.ts.map +1 -0
- package/sdk/prompt.js +19 -0
- package/sdk/prompt.js.map +1 -0
- package/sdk/prompts.d.ts +14 -26
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +25 -37
- package/sdk/prompts.js.map +1 -1
- package/sdk/sdk.d.ts +3 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/snippets.d.ts +9 -0
- package/sdk/snippets.d.ts.map +1 -0
- package/sdk/snippets.js +19 -0
- package/sdk/snippets.js.map +1 -0
- package/sdk/templates.d.ts +9 -0
- package/sdk/templates.d.ts.map +1 -0
- package/sdk/templates.js +19 -0
- package/sdk/templates.js.map +1 -0
- package/src/funcs/{deploymentsList.ts → deploymentsAll.ts} +2 -3
- package/src/funcs/deploymentsInvoke.ts +16 -21
- package/src/funcs/filesBulkUpload.ts +129 -0
- package/src/funcs/{promptSnippetsGetByKey.ts → filesUpdate.ts} +16 -18
- package/src/funcs/{promptSnippetsGet.ts → promptSnippetsFindOne.ts} +4 -4
- package/src/funcs/{promptSnippetsList.ts → promptTemplatesGetAll.ts} +16 -16
- package/src/funcs/promptsCreate.ts +2 -2
- package/src/funcs/promptsCreateVersion.ts +131 -0
- package/src/funcs/promptsDelete.ts +1 -1
- package/src/funcs/{promptSnippetsDelete.ts → promptsDuplicate.ts} +7 -8
- package/src/funcs/{promptSnippetsCreate.ts → promptsGetAll.ts} +9 -9
- package/src/funcs/{promptsRetrieve.ts → promptsGetOne.ts} +8 -10
- package/src/funcs/promptsUpdate.ts +1 -1
- package/src/lib/config.ts +2 -12
- package/src/lib/env.ts +0 -32
- package/src/lib/sdks.ts +2 -2
- package/src/models/components/deployments.ts +7 -0
- package/src/models/errors/index.ts +0 -2
- package/src/models/operations/bulkfileupload.ts +315 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createprompt.ts +690 -1048
- package/src/models/operations/createpromptversion.ts +3703 -0
- package/src/models/operations/deleteprompt.ts +1 -1
- package/src/models/operations/deploymentgetconfig.ts +0 -44
- package/src/models/operations/deploymentinvoke.ts +1415 -174
- package/src/models/operations/deployments.ts +18 -68
- package/src/models/operations/duplicateprompt.ts +69 -0
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +17 -5
- package/src/models/operations/fileupdate.ts +298 -0
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/findonepromptsnippet.ts +11104 -1818
- package/src/models/operations/getallprompts.ts +17860 -1336
- package/src/models/operations/getallprompttemplates.ts +13690 -0
- package/src/models/operations/getoneprompt.ts +1 -1914
- package/src/models/operations/index.ts +5 -8
- package/src/models/operations/updateprompt.ts +12561 -2071
- package/src/sdk/deployments.ts +11 -25
- package/src/sdk/files.ts +33 -0
- package/src/sdk/prompt.ts +19 -0
- package/src/sdk/prompts.ts +39 -51
- package/src/sdk/sdk.ts +4 -4
- package/src/sdk/snippets.ts +24 -0
- package/src/sdk/templates.ts +24 -0
- package/docs/sdks/promptsnippets/README.md +0 -488
- package/funcs/deploymentsList.d.ts.map +0 -1
- package/funcs/deploymentsList.js.map +0 -1
- package/funcs/deploymentsStream.d.ts +0 -16
- package/funcs/deploymentsStream.d.ts.map +0 -1
- package/funcs/deploymentsStream.js +0 -125
- package/funcs/deploymentsStream.js.map +0 -1
- package/funcs/promptSnippetsCreate.d.ts.map +0 -1
- package/funcs/promptSnippetsCreate.js.map +0 -1
- package/funcs/promptSnippetsDelete.js.map +0 -1
- package/funcs/promptSnippetsGet.d.ts.map +0 -1
- package/funcs/promptSnippetsGet.js.map +0 -1
- package/funcs/promptSnippetsGetByKey.d.ts +0 -12
- package/funcs/promptSnippetsGetByKey.d.ts.map +0 -1
- package/funcs/promptSnippetsGetByKey.js.map +0 -1
- package/funcs/promptSnippetsList.d.ts.map +0 -1
- package/funcs/promptSnippetsList.js.map +0 -1
- package/funcs/promptSnippetsUpdate.d.ts +0 -13
- package/funcs/promptSnippetsUpdate.d.ts.map +0 -1
- package/funcs/promptSnippetsUpdate.js +0 -114
- package/funcs/promptSnippetsUpdate.js.map +0 -1
- package/funcs/promptsGetVersion.d.ts +0 -16
- package/funcs/promptsGetVersion.d.ts.map +0 -1
- package/funcs/promptsGetVersion.js +0 -120
- package/funcs/promptsGetVersion.js.map +0 -1
- package/funcs/promptsList.d.ts +0 -15
- package/funcs/promptsList.d.ts.map +0 -1
- package/funcs/promptsList.js.map +0 -1
- package/funcs/promptsListVersions.d.ts +0 -15
- package/funcs/promptsListVersions.d.ts.map +0 -1
- package/funcs/promptsListVersions.js +0 -118
- package/funcs/promptsListVersions.js.map +0 -1
- package/funcs/promptsRetrieve.d.ts.map +0 -1
- package/funcs/promptsRetrieve.js.map +0 -1
- package/models/errors/getpromptversion.d.ts +0 -36
- package/models/errors/getpromptversion.d.ts.map +0 -1
- package/models/errors/getpromptversion.js +0 -79
- package/models/errors/getpromptversion.js.map +0 -1
- package/models/errors/updatepromptsnippet.d.ts +0 -36
- package/models/errors/updatepromptsnippet.d.ts.map +0 -1
- package/models/errors/updatepromptsnippet.js +0 -79
- package/models/errors/updatepromptsnippet.js.map +0 -1
- package/models/operations/createpromptsnippet.d.ts +0 -3567
- package/models/operations/createpromptsnippet.d.ts.map +0 -1
- package/models/operations/createpromptsnippet.js +0 -3056
- package/models/operations/createpromptsnippet.js.map +0 -1
- package/models/operations/deletepromptsnippet.d.ts +0 -32
- package/models/operations/deletepromptsnippet.d.ts.map +0 -1
- package/models/operations/deletepromptsnippet.js.map +0 -1
- package/models/operations/deploymentstream.d.ts +0 -1622
- package/models/operations/deploymentstream.d.ts.map +0 -1
- package/models/operations/deploymentstream.js +0 -1571
- package/models/operations/deploymentstream.js.map +0 -1
- package/models/operations/findonebykeypromptsnippet.d.ts +0 -2448
- package/models/operations/findonebykeypromptsnippet.d.ts.map +0 -1
- package/models/operations/findonebykeypromptsnippet.js +0 -2133
- package/models/operations/findonebykeypromptsnippet.js.map +0 -1
- package/models/operations/getallpromptsnippets.d.ts +0 -2512
- package/models/operations/getallpromptsnippets.d.ts.map +0 -1
- package/models/operations/getallpromptsnippets.js +0 -2195
- package/models/operations/getallpromptsnippets.js.map +0 -1
- package/models/operations/getpromptversion.d.ts +0 -1228
- package/models/operations/getpromptversion.d.ts.map +0 -1
- package/models/operations/getpromptversion.js +0 -1080
- package/models/operations/getpromptversion.js.map +0 -1
- package/models/operations/listpromptversions.d.ts +0 -1286
- package/models/operations/listpromptversions.d.ts.map +0 -1
- package/models/operations/listpromptversions.js +0 -1142
- package/models/operations/listpromptversions.js.map +0 -1
- package/models/operations/updatepromptsnippet.d.ts +0 -3595
- package/models/operations/updatepromptsnippet.d.ts.map +0 -1
- package/models/operations/updatepromptsnippet.js +0 -3116
- package/models/operations/updatepromptsnippet.js.map +0 -1
- package/sdk/promptsnippets.d.ts +0 -29
- package/sdk/promptsnippets.d.ts.map +0 -1
- package/sdk/promptsnippets.js +0 -54
- package/sdk/promptsnippets.js.map +0 -1
- package/src/funcs/deploymentsStream.ts +0 -150
- package/src/funcs/promptSnippetsUpdate.ts +0 -139
- package/src/funcs/promptsGetVersion.ts +0 -146
- package/src/funcs/promptsList.ts +0 -133
- package/src/funcs/promptsListVersions.ts +0 -139
- package/src/models/errors/getpromptversion.ts +0 -71
- package/src/models/errors/updatepromptsnippet.ts +0 -71
- package/src/models/operations/createpromptsnippet.ts +0 -6239
- package/src/models/operations/deletepromptsnippet.ts +0 -69
- package/src/models/operations/deploymentstream.ts +0 -3062
- package/src/models/operations/findonebykeypromptsnippet.ts +0 -4483
- package/src/models/operations/getallpromptsnippets.ts +0 -4472
- package/src/models/operations/getpromptversion.ts +0 -2012
- package/src/models/operations/listpromptversions.ts +0 -2146
- package/src/models/operations/updatepromptsnippet.ts +0 -6544
- package/src/sdk/promptsnippets.ts +0 -99
|
@@ -5,7 +5,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* The type of the model
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const ModelType: {
|
|
9
9
|
readonly Chat: "chat";
|
|
10
10
|
readonly Completion: "completion";
|
|
11
11
|
readonly Embedding: "embedding";
|
|
@@ -19,11 +19,11 @@ export declare const CreatePromptModelType: {
|
|
|
19
19
|
/**
|
|
20
20
|
* The type of the model
|
|
21
21
|
*/
|
|
22
|
-
export type
|
|
22
|
+
export type ModelType = ClosedEnum<typeof ModelType>;
|
|
23
23
|
/**
|
|
24
24
|
* Only supported on `image` models.
|
|
25
25
|
*/
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const Format: {
|
|
27
27
|
readonly Url: "url";
|
|
28
28
|
readonly B64Json: "b64_json";
|
|
29
29
|
readonly Text: "text";
|
|
@@ -32,39 +32,39 @@ export declare const CreatePromptFormat: {
|
|
|
32
32
|
/**
|
|
33
33
|
* Only supported on `image` models.
|
|
34
34
|
*/
|
|
35
|
-
export type
|
|
35
|
+
export type Format = ClosedEnum<typeof Format>;
|
|
36
36
|
/**
|
|
37
37
|
* Only supported on `image` models.
|
|
38
38
|
*/
|
|
39
|
-
export declare const
|
|
39
|
+
export declare const Quality: {
|
|
40
40
|
readonly Standard: "standard";
|
|
41
41
|
readonly Hd: "hd";
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* Only supported on `image` models.
|
|
45
45
|
*/
|
|
46
|
-
export type
|
|
47
|
-
export declare const
|
|
46
|
+
export type Quality = ClosedEnum<typeof Quality>;
|
|
47
|
+
export declare const CreatePromptResponseFormatType: {
|
|
48
48
|
readonly JsonObject: "json_object";
|
|
49
49
|
};
|
|
50
|
-
export type
|
|
51
|
-
export type
|
|
52
|
-
type:
|
|
50
|
+
export type CreatePromptResponseFormatType = ClosedEnum<typeof CreatePromptResponseFormatType>;
|
|
51
|
+
export type ResponseFormat2 = {
|
|
52
|
+
type: CreatePromptResponseFormatType;
|
|
53
53
|
};
|
|
54
|
-
export declare const
|
|
54
|
+
export declare const ResponseFormatType: {
|
|
55
55
|
readonly JsonSchema: "json_schema";
|
|
56
56
|
};
|
|
57
|
-
export type
|
|
58
|
-
export type
|
|
57
|
+
export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
|
|
58
|
+
export type JsonSchema = {
|
|
59
59
|
name: string;
|
|
60
60
|
strict: boolean;
|
|
61
61
|
schema: {
|
|
62
62
|
[k: string]: any;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
|
-
export type
|
|
66
|
-
type:
|
|
67
|
-
jsonSchema:
|
|
65
|
+
export type ResponseFormat1 = {
|
|
66
|
+
type: ResponseFormatType;
|
|
67
|
+
jsonSchema: JsonSchema;
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
70
|
* An object specifying the format that the model must output.
|
|
@@ -77,45 +77,33 @@ export type CreatePromptResponseFormat1 = {
|
|
|
77
77
|
*
|
|
78
78
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
79
79
|
*/
|
|
80
|
-
export type
|
|
80
|
+
export type ResponseFormat = ResponseFormat2 | ResponseFormat1;
|
|
81
81
|
/**
|
|
82
82
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
83
83
|
*/
|
|
84
|
-
export declare const
|
|
84
|
+
export declare const PhotoRealVersion: {
|
|
85
85
|
readonly V1: "v1";
|
|
86
86
|
readonly V2: "v2";
|
|
87
87
|
};
|
|
88
88
|
/**
|
|
89
89
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
90
90
|
*/
|
|
91
|
-
export type
|
|
91
|
+
export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
|
|
92
92
|
/**
|
|
93
93
|
* The format to return the embeddings
|
|
94
94
|
*/
|
|
95
|
-
export declare const
|
|
95
|
+
export declare const EncodingFormat: {
|
|
96
96
|
readonly Float: "float";
|
|
97
97
|
readonly Base64: "base64";
|
|
98
98
|
};
|
|
99
99
|
/**
|
|
100
100
|
* The format to return the embeddings
|
|
101
101
|
*/
|
|
102
|
-
export type
|
|
103
|
-
/**
|
|
104
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
105
|
-
*/
|
|
106
|
-
export declare const CreatePromptReasoningEffort: {
|
|
107
|
-
readonly Low: "low";
|
|
108
|
-
readonly Medium: "medium";
|
|
109
|
-
readonly High: "high";
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
113
|
-
*/
|
|
114
|
-
export type CreatePromptReasoningEffort = ClosedEnum<typeof CreatePromptReasoningEffort>;
|
|
102
|
+
export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
|
|
115
103
|
/**
|
|
116
104
|
* Model Parameters: Not all parameters apply to every model
|
|
117
105
|
*/
|
|
118
|
-
export type
|
|
106
|
+
export type ModelParameters = {
|
|
119
107
|
/**
|
|
120
108
|
* Only supported on `chat` and `completion` models.
|
|
121
109
|
*/
|
|
@@ -151,7 +139,7 @@ export type CreatePromptModelParameters = {
|
|
|
151
139
|
/**
|
|
152
140
|
* Only supported on `image` models.
|
|
153
141
|
*/
|
|
154
|
-
format?:
|
|
142
|
+
format?: Format | undefined;
|
|
155
143
|
/**
|
|
156
144
|
* Only supported on `image` models.
|
|
157
145
|
*/
|
|
@@ -159,7 +147,7 @@ export type CreatePromptModelParameters = {
|
|
|
159
147
|
/**
|
|
160
148
|
* Only supported on `image` models.
|
|
161
149
|
*/
|
|
162
|
-
quality?:
|
|
150
|
+
quality?: Quality | undefined;
|
|
163
151
|
/**
|
|
164
152
|
* Only supported on `image` models.
|
|
165
153
|
*/
|
|
@@ -175,21 +163,17 @@ export type CreatePromptModelParameters = {
|
|
|
175
163
|
*
|
|
176
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.
|
|
177
165
|
*/
|
|
178
|
-
responseFormat?:
|
|
166
|
+
responseFormat?: ResponseFormat2 | ResponseFormat1 | null | undefined;
|
|
179
167
|
/**
|
|
180
168
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
181
169
|
*/
|
|
182
|
-
photoRealVersion?:
|
|
170
|
+
photoRealVersion?: PhotoRealVersion | undefined;
|
|
183
171
|
/**
|
|
184
172
|
* The format to return the embeddings
|
|
185
173
|
*/
|
|
186
|
-
encodingFormat?:
|
|
187
|
-
/**
|
|
188
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
189
|
-
*/
|
|
190
|
-
reasoningEffort?: CreatePromptReasoningEffort | undefined;
|
|
174
|
+
encodingFormat?: EncodingFormat | undefined;
|
|
191
175
|
};
|
|
192
|
-
export declare const
|
|
176
|
+
export declare const Provider: {
|
|
193
177
|
readonly Cohere: "cohere";
|
|
194
178
|
readonly Openai: "openai";
|
|
195
179
|
readonly Anthropic: "anthropic";
|
|
@@ -206,10 +190,8 @@ export declare const CreatePromptProvider: {
|
|
|
206
190
|
readonly Leonardoai: "leonardoai";
|
|
207
191
|
readonly Nvidia: "nvidia";
|
|
208
192
|
readonly Jina: "jina";
|
|
209
|
-
readonly Togetherai: "togetherai";
|
|
210
|
-
readonly Elevenlabs: "elevenlabs";
|
|
211
193
|
};
|
|
212
|
-
export type
|
|
194
|
+
export type Provider = ClosedEnum<typeof Provider>;
|
|
213
195
|
/**
|
|
214
196
|
* The role of the prompt message
|
|
215
197
|
*/
|
|
@@ -292,96 +274,43 @@ export type CreatePromptMessages = {
|
|
|
292
274
|
content: string | Array<CreatePrompt21 | CreatePrompt22>;
|
|
293
275
|
toolCalls?: Array<CreatePromptToolCalls> | undefined;
|
|
294
276
|
};
|
|
295
|
-
|
|
296
|
-
* A list of messages compatible with the openAI schema
|
|
297
|
-
*/
|
|
298
|
-
export type CreatePromptPromptConfig = {
|
|
277
|
+
export type PromptConfig = {
|
|
299
278
|
stream?: boolean | undefined;
|
|
300
279
|
model?: string | undefined;
|
|
301
280
|
/**
|
|
302
281
|
* The type of the model
|
|
303
282
|
*/
|
|
304
|
-
modelType?:
|
|
283
|
+
modelType?: ModelType | undefined;
|
|
305
284
|
/**
|
|
306
285
|
* Model Parameters: Not all parameters apply to every model
|
|
307
286
|
*/
|
|
308
|
-
modelParameters?:
|
|
309
|
-
provider?:
|
|
287
|
+
modelParameters?: ModelParameters | undefined;
|
|
288
|
+
provider?: Provider | undefined;
|
|
310
289
|
version?: string | undefined;
|
|
311
290
|
messages: Array<CreatePromptMessages>;
|
|
312
291
|
};
|
|
313
|
-
export declare const CreatePromptUseCases: {
|
|
314
|
-
readonly Agents: "Agents";
|
|
315
|
-
readonly AgentsSimulations: "Agents simulations";
|
|
316
|
-
readonly APIInteraction: "API interaction";
|
|
317
|
-
readonly AutonomousAgents: "Autonomous Agents";
|
|
318
|
-
readonly Chatbots: "Chatbots";
|
|
319
|
-
readonly Classification: "Classification";
|
|
320
|
-
readonly CodeUnderstanding: "Code understanding";
|
|
321
|
-
readonly CodeWriting: "Code writing";
|
|
322
|
-
readonly DocumentsQA: "Documents QA";
|
|
323
|
-
readonly Conversation: "Conversation";
|
|
324
|
-
readonly Extraction: "Extraction";
|
|
325
|
-
readonly MultiModal: "Multi-modal";
|
|
326
|
-
readonly SelfChecking: "Self-checking";
|
|
327
|
-
readonly Sql: "SQL";
|
|
328
|
-
readonly Summarization: "Summarization";
|
|
329
|
-
readonly Tagging: "Tagging";
|
|
330
|
-
};
|
|
331
|
-
export type CreatePromptUseCases = ClosedEnum<typeof CreatePromptUseCases>;
|
|
332
|
-
/**
|
|
333
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
334
|
-
*/
|
|
335
|
-
export declare const CreatePromptLanguage: {
|
|
336
|
-
readonly Chinese: "Chinese";
|
|
337
|
-
readonly Dutch: "Dutch";
|
|
338
|
-
readonly English: "English";
|
|
339
|
-
readonly French: "French";
|
|
340
|
-
readonly German: "German";
|
|
341
|
-
readonly Russian: "Russian";
|
|
342
|
-
readonly Spanish: "Spanish";
|
|
343
|
-
};
|
|
344
|
-
/**
|
|
345
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
346
|
-
*/
|
|
347
|
-
export type CreatePromptLanguage = ClosedEnum<typeof CreatePromptLanguage>;
|
|
348
292
|
export type CreatePromptMetadata = {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
language?: CreatePromptLanguage | undefined;
|
|
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";
|
|
357
300
|
};
|
|
301
|
+
export type CreatePromptPromptsType = ClosedEnum<typeof CreatePromptPromptsType>;
|
|
358
302
|
export type CreatePromptRequestBody = {
|
|
359
|
-
/**
|
|
360
|
-
* The prompt’s name, meant to be displayable in the UI.
|
|
361
|
-
*/
|
|
362
303
|
displayName: string;
|
|
363
|
-
/**
|
|
364
|
-
* The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
|
|
365
|
-
*/
|
|
366
304
|
description?: string | null | undefined;
|
|
367
|
-
|
|
368
|
-
* A list of messages compatible with the openAI schema
|
|
369
|
-
*/
|
|
370
|
-
promptConfig: CreatePromptPromptConfig;
|
|
305
|
+
promptConfig?: PromptConfig | undefined;
|
|
371
306
|
metadata?: CreatePromptMetadata | undefined;
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
*/
|
|
375
|
-
path: string;
|
|
376
|
-
};
|
|
377
|
-
export declare const CreatePromptPromptsType: {
|
|
378
|
-
readonly Prompt: "prompt";
|
|
307
|
+
key?: string | undefined;
|
|
308
|
+
type: CreatePromptPromptsType;
|
|
379
309
|
};
|
|
380
|
-
export type CreatePromptPromptsType = ClosedEnum<typeof CreatePromptPromptsType>;
|
|
381
310
|
/**
|
|
382
311
|
* The type of the model
|
|
383
312
|
*/
|
|
384
|
-
export declare const
|
|
313
|
+
export declare const CreatePromptModelType: {
|
|
385
314
|
readonly Chat: "chat";
|
|
386
315
|
readonly Completion: "completion";
|
|
387
316
|
readonly Embedding: "embedding";
|
|
@@ -395,11 +324,11 @@ export declare const CreatePromptPromptsModelType: {
|
|
|
395
324
|
/**
|
|
396
325
|
* The type of the model
|
|
397
326
|
*/
|
|
398
|
-
export type
|
|
327
|
+
export type CreatePromptModelType = ClosedEnum<typeof CreatePromptModelType>;
|
|
399
328
|
/**
|
|
400
329
|
* Only supported on `image` models.
|
|
401
330
|
*/
|
|
402
|
-
export declare const
|
|
331
|
+
export declare const CreatePromptFormat: {
|
|
403
332
|
readonly Url: "url";
|
|
404
333
|
readonly B64Json: "b64_json";
|
|
405
334
|
readonly Text: "text";
|
|
@@ -408,39 +337,39 @@ export declare const CreatePromptPromptsFormat: {
|
|
|
408
337
|
/**
|
|
409
338
|
* Only supported on `image` models.
|
|
410
339
|
*/
|
|
411
|
-
export type
|
|
340
|
+
export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
|
|
412
341
|
/**
|
|
413
342
|
* Only supported on `image` models.
|
|
414
343
|
*/
|
|
415
|
-
export declare const
|
|
344
|
+
export declare const CreatePromptQuality: {
|
|
416
345
|
readonly Standard: "standard";
|
|
417
346
|
readonly Hd: "hd";
|
|
418
347
|
};
|
|
419
348
|
/**
|
|
420
349
|
* Only supported on `image` models.
|
|
421
350
|
*/
|
|
422
|
-
export type
|
|
423
|
-
export declare const
|
|
351
|
+
export type CreatePromptQuality = ClosedEnum<typeof CreatePromptQuality>;
|
|
352
|
+
export declare const CreatePromptResponseFormatPromptsResponseType: {
|
|
424
353
|
readonly JsonObject: "json_object";
|
|
425
354
|
};
|
|
426
|
-
export type
|
|
427
|
-
export type
|
|
428
|
-
type:
|
|
355
|
+
export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<typeof CreatePromptResponseFormatPromptsResponseType>;
|
|
356
|
+
export type CreatePromptResponseFormat2 = {
|
|
357
|
+
type: CreatePromptResponseFormatPromptsResponseType;
|
|
429
358
|
};
|
|
430
|
-
export declare const
|
|
359
|
+
export declare const CreatePromptResponseFormatPromptsType: {
|
|
431
360
|
readonly JsonSchema: "json_schema";
|
|
432
361
|
};
|
|
433
|
-
export type
|
|
434
|
-
export type
|
|
362
|
+
export type CreatePromptResponseFormatPromptsType = ClosedEnum<typeof CreatePromptResponseFormatPromptsType>;
|
|
363
|
+
export type CreatePromptResponseFormatJsonSchema = {
|
|
435
364
|
name: string;
|
|
436
365
|
strict: boolean;
|
|
437
366
|
schema: {
|
|
438
367
|
[k: string]: any;
|
|
439
368
|
};
|
|
440
369
|
};
|
|
441
|
-
export type
|
|
442
|
-
type:
|
|
443
|
-
jsonSchema:
|
|
370
|
+
export type CreatePromptResponseFormat1 = {
|
|
371
|
+
type: CreatePromptResponseFormatPromptsType;
|
|
372
|
+
jsonSchema: CreatePromptResponseFormatJsonSchema;
|
|
444
373
|
};
|
|
445
374
|
/**
|
|
446
375
|
* An object specifying the format that the model must output.
|
|
@@ -453,45 +382,33 @@ export type CreatePromptResponseFormatPrompts1 = {
|
|
|
453
382
|
*
|
|
454
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.
|
|
455
384
|
*/
|
|
456
|
-
export type
|
|
385
|
+
export type CreatePromptResponseFormat = CreatePromptResponseFormat2 | CreatePromptResponseFormat1;
|
|
457
386
|
/**
|
|
458
387
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
459
388
|
*/
|
|
460
|
-
export declare const
|
|
389
|
+
export declare const CreatePromptPhotoRealVersion: {
|
|
461
390
|
readonly V1: "v1";
|
|
462
391
|
readonly V2: "v2";
|
|
463
392
|
};
|
|
464
393
|
/**
|
|
465
394
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
466
395
|
*/
|
|
467
|
-
export type
|
|
396
|
+
export type CreatePromptPhotoRealVersion = ClosedEnum<typeof CreatePromptPhotoRealVersion>;
|
|
468
397
|
/**
|
|
469
398
|
* The format to return the embeddings
|
|
470
399
|
*/
|
|
471
|
-
export declare const
|
|
400
|
+
export declare const CreatePromptEncodingFormat: {
|
|
472
401
|
readonly Float: "float";
|
|
473
402
|
readonly Base64: "base64";
|
|
474
403
|
};
|
|
475
404
|
/**
|
|
476
405
|
* The format to return the embeddings
|
|
477
406
|
*/
|
|
478
|
-
export type
|
|
479
|
-
/**
|
|
480
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
481
|
-
*/
|
|
482
|
-
export declare const CreatePromptPromptsReasoningEffort: {
|
|
483
|
-
readonly Low: "low";
|
|
484
|
-
readonly Medium: "medium";
|
|
485
|
-
readonly High: "high";
|
|
486
|
-
};
|
|
487
|
-
/**
|
|
488
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
489
|
-
*/
|
|
490
|
-
export type CreatePromptPromptsReasoningEffort = ClosedEnum<typeof CreatePromptPromptsReasoningEffort>;
|
|
407
|
+
export type CreatePromptEncodingFormat = ClosedEnum<typeof CreatePromptEncodingFormat>;
|
|
491
408
|
/**
|
|
492
409
|
* Model Parameters: Not all parameters apply to every model
|
|
493
410
|
*/
|
|
494
|
-
export type
|
|
411
|
+
export type CreatePromptModelParameters = {
|
|
495
412
|
/**
|
|
496
413
|
* Only supported on `chat` and `completion` models.
|
|
497
414
|
*/
|
|
@@ -527,7 +444,7 @@ export type CreatePromptPromptsModelParameters = {
|
|
|
527
444
|
/**
|
|
528
445
|
* Only supported on `image` models.
|
|
529
446
|
*/
|
|
530
|
-
format?:
|
|
447
|
+
format?: CreatePromptFormat | undefined;
|
|
531
448
|
/**
|
|
532
449
|
* Only supported on `image` models.
|
|
533
450
|
*/
|
|
@@ -535,7 +452,7 @@ export type CreatePromptPromptsModelParameters = {
|
|
|
535
452
|
/**
|
|
536
453
|
* Only supported on `image` models.
|
|
537
454
|
*/
|
|
538
|
-
quality?:
|
|
455
|
+
quality?: CreatePromptQuality | undefined;
|
|
539
456
|
/**
|
|
540
457
|
* Only supported on `image` models.
|
|
541
458
|
*/
|
|
@@ -551,21 +468,17 @@ export type CreatePromptPromptsModelParameters = {
|
|
|
551
468
|
*
|
|
552
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.
|
|
553
470
|
*/
|
|
554
|
-
responseFormat?:
|
|
471
|
+
responseFormat?: CreatePromptResponseFormat2 | CreatePromptResponseFormat1 | null | undefined;
|
|
555
472
|
/**
|
|
556
473
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
557
474
|
*/
|
|
558
|
-
photoRealVersion?:
|
|
475
|
+
photoRealVersion?: CreatePromptPhotoRealVersion | undefined;
|
|
559
476
|
/**
|
|
560
477
|
* The format to return the embeddings
|
|
561
478
|
*/
|
|
562
|
-
encodingFormat?:
|
|
563
|
-
/**
|
|
564
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
565
|
-
*/
|
|
566
|
-
reasoningEffort?: CreatePromptPromptsReasoningEffort | undefined;
|
|
479
|
+
encodingFormat?: CreatePromptEncodingFormat | undefined;
|
|
567
480
|
};
|
|
568
|
-
export declare const
|
|
481
|
+
export declare const CreatePromptProvider: {
|
|
569
482
|
readonly Cohere: "cohere";
|
|
570
483
|
readonly Openai: "openai";
|
|
571
484
|
readonly Anthropic: "anthropic";
|
|
@@ -582,10 +495,8 @@ export declare const CreatePromptPromptsProvider: {
|
|
|
582
495
|
readonly Leonardoai: "leonardoai";
|
|
583
496
|
readonly Nvidia: "nvidia";
|
|
584
497
|
readonly Jina: "jina";
|
|
585
|
-
readonly Togetherai: "togetherai";
|
|
586
|
-
readonly Elevenlabs: "elevenlabs";
|
|
587
498
|
};
|
|
588
|
-
export type
|
|
499
|
+
export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
|
|
589
500
|
/**
|
|
590
501
|
* The role of the prompt message
|
|
591
502
|
*/
|
|
@@ -644,10 +555,10 @@ export type CreatePromptContentPrompts2 = CreatePrompt2Prompts1 | CreatePrompt2P
|
|
|
644
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.
|
|
645
556
|
*/
|
|
646
557
|
export type CreatePromptPromptsContent = string | Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
|
|
647
|
-
export declare const
|
|
558
|
+
export declare const CreatePromptPromptsResponse200Type: {
|
|
648
559
|
readonly Function: "function";
|
|
649
560
|
};
|
|
650
|
-
export type
|
|
561
|
+
export type CreatePromptPromptsResponse200Type = ClosedEnum<typeof CreatePromptPromptsResponse200Type>;
|
|
651
562
|
export type CreatePromptPromptsFunction = {
|
|
652
563
|
name: string;
|
|
653
564
|
/**
|
|
@@ -658,7 +569,7 @@ export type CreatePromptPromptsFunction = {
|
|
|
658
569
|
export type CreatePromptPromptsToolCalls = {
|
|
659
570
|
id?: string | undefined;
|
|
660
571
|
index?: number | undefined;
|
|
661
|
-
type:
|
|
572
|
+
type: CreatePromptPromptsResponse200Type;
|
|
662
573
|
function: CreatePromptPromptsFunction;
|
|
663
574
|
};
|
|
664
575
|
export type CreatePromptPromptsMessages = {
|
|
@@ -672,10 +583,7 @@ export type CreatePromptPromptsMessages = {
|
|
|
672
583
|
content: string | Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
|
|
673
584
|
toolCalls?: Array<CreatePromptPromptsToolCalls> | undefined;
|
|
674
585
|
};
|
|
675
|
-
|
|
676
|
-
* A list of messages compatible with the openAI schema
|
|
677
|
-
*/
|
|
678
|
-
export type CreatePromptPromptsPromptConfig = {
|
|
586
|
+
export type CreatePromptPromptConfig = {
|
|
679
587
|
stream?: boolean | undefined;
|
|
680
588
|
model?: string | undefined;
|
|
681
589
|
/**
|
|
@@ -685,12 +593,12 @@ export type CreatePromptPromptsPromptConfig = {
|
|
|
685
593
|
/**
|
|
686
594
|
* The type of the model
|
|
687
595
|
*/
|
|
688
|
-
modelType?:
|
|
596
|
+
modelType?: CreatePromptModelType | undefined;
|
|
689
597
|
/**
|
|
690
598
|
* Model Parameters: Not all parameters apply to every model
|
|
691
599
|
*/
|
|
692
|
-
modelParameters?:
|
|
693
|
-
provider?:
|
|
600
|
+
modelParameters?: CreatePromptModelParameters | undefined;
|
|
601
|
+
provider?: CreatePromptProvider | undefined;
|
|
694
602
|
/**
|
|
695
603
|
* The id of the resource
|
|
696
604
|
*/
|
|
@@ -698,87 +606,45 @@ export type CreatePromptPromptsPromptConfig = {
|
|
|
698
606
|
version?: string | undefined;
|
|
699
607
|
messages: Array<CreatePromptPromptsMessages>;
|
|
700
608
|
};
|
|
701
|
-
export declare const CreatePromptPromptsUseCases: {
|
|
702
|
-
readonly Agents: "Agents";
|
|
703
|
-
readonly AgentsSimulations: "Agents simulations";
|
|
704
|
-
readonly APIInteraction: "API interaction";
|
|
705
|
-
readonly AutonomousAgents: "Autonomous Agents";
|
|
706
|
-
readonly Chatbots: "Chatbots";
|
|
707
|
-
readonly Classification: "Classification";
|
|
708
|
-
readonly CodeUnderstanding: "Code understanding";
|
|
709
|
-
readonly CodeWriting: "Code writing";
|
|
710
|
-
readonly DocumentsQA: "Documents QA";
|
|
711
|
-
readonly Conversation: "Conversation";
|
|
712
|
-
readonly Extraction: "Extraction";
|
|
713
|
-
readonly MultiModal: "Multi-modal";
|
|
714
|
-
readonly SelfChecking: "Self-checking";
|
|
715
|
-
readonly Sql: "SQL";
|
|
716
|
-
readonly Summarization: "Summarization";
|
|
717
|
-
readonly Tagging: "Tagging";
|
|
718
|
-
};
|
|
719
|
-
export type CreatePromptPromptsUseCases = ClosedEnum<typeof CreatePromptPromptsUseCases>;
|
|
720
|
-
/**
|
|
721
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
722
|
-
*/
|
|
723
|
-
export declare const CreatePromptPromptsLanguage: {
|
|
724
|
-
readonly Chinese: "Chinese";
|
|
725
|
-
readonly Dutch: "Dutch";
|
|
726
|
-
readonly English: "English";
|
|
727
|
-
readonly French: "French";
|
|
728
|
-
readonly German: "German";
|
|
729
|
-
readonly Russian: "Russian";
|
|
730
|
-
readonly Spanish: "Spanish";
|
|
731
|
-
};
|
|
732
|
-
/**
|
|
733
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
734
|
-
*/
|
|
735
|
-
export type CreatePromptPromptsLanguage = ClosedEnum<typeof CreatePromptPromptsLanguage>;
|
|
736
609
|
export type CreatePromptPromptsMetadata = {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
language?: CreatePromptPromptsLanguage | undefined;
|
|
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";
|
|
745
617
|
};
|
|
618
|
+
export type CreatePromptPromptsResponseType = ClosedEnum<typeof CreatePromptPromptsResponseType>;
|
|
746
619
|
/**
|
|
747
620
|
* Prompt created.
|
|
748
621
|
*/
|
|
749
622
|
export type CreatePromptResponseBody = {
|
|
750
|
-
id: string;
|
|
751
|
-
type: CreatePromptPromptsType;
|
|
752
|
-
owner: string;
|
|
753
|
-
domainId: string;
|
|
754
|
-
created: string;
|
|
755
|
-
updated: string;
|
|
756
|
-
createdById?: string | undefined;
|
|
757
|
-
updatedById?: string | undefined;
|
|
758
623
|
/**
|
|
759
|
-
* The
|
|
624
|
+
* The id of the resource
|
|
760
625
|
*/
|
|
626
|
+
id: string;
|
|
761
627
|
displayName: string;
|
|
762
628
|
/**
|
|
763
|
-
* The
|
|
629
|
+
* The id of the resource
|
|
764
630
|
*/
|
|
631
|
+
domainId: string;
|
|
765
632
|
description?: string | null | undefined;
|
|
766
|
-
|
|
767
|
-
* A list of messages compatible with the openAI schema
|
|
768
|
-
*/
|
|
769
|
-
promptConfig: CreatePromptPromptsPromptConfig;
|
|
633
|
+
promptConfig?: CreatePromptPromptConfig | undefined;
|
|
770
634
|
metadata?: CreatePromptPromptsMetadata | undefined;
|
|
635
|
+
key?: string | undefined;
|
|
636
|
+
type: CreatePromptPromptsResponseType;
|
|
771
637
|
};
|
|
772
638
|
/** @internal */
|
|
773
|
-
export declare const
|
|
639
|
+
export declare const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType>;
|
|
774
640
|
/** @internal */
|
|
775
|
-
export declare const
|
|
641
|
+
export declare const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType>;
|
|
776
642
|
/**
|
|
777
643
|
* @internal
|
|
778
644
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
779
645
|
*/
|
|
780
|
-
export declare namespace
|
|
781
|
-
/** @deprecated use `
|
|
646
|
+
export declare namespace ModelType$ {
|
|
647
|
+
/** @deprecated use `ModelType$inboundSchema` instead. */
|
|
782
648
|
const inboundSchema: z.ZodNativeEnum<{
|
|
783
649
|
readonly Chat: "chat";
|
|
784
650
|
readonly Completion: "completion";
|
|
@@ -790,7 +656,7 @@ export declare namespace CreatePromptModelType$ {
|
|
|
790
656
|
readonly Rerank: "rerank";
|
|
791
657
|
readonly Moderations: "moderations";
|
|
792
658
|
}>;
|
|
793
|
-
/** @deprecated use `
|
|
659
|
+
/** @deprecated use `ModelType$outboundSchema` instead. */
|
|
794
660
|
const outboundSchema: z.ZodNativeEnum<{
|
|
795
661
|
readonly Chat: "chat";
|
|
796
662
|
readonly Completion: "completion";
|
|
@@ -804,22 +670,22 @@ export declare namespace CreatePromptModelType$ {
|
|
|
804
670
|
}>;
|
|
805
671
|
}
|
|
806
672
|
/** @internal */
|
|
807
|
-
export declare const
|
|
673
|
+
export declare const Format$inboundSchema: z.ZodNativeEnum<typeof Format>;
|
|
808
674
|
/** @internal */
|
|
809
|
-
export declare const
|
|
675
|
+
export declare const Format$outboundSchema: z.ZodNativeEnum<typeof Format>;
|
|
810
676
|
/**
|
|
811
677
|
* @internal
|
|
812
678
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
813
679
|
*/
|
|
814
|
-
export declare namespace
|
|
815
|
-
/** @deprecated use `
|
|
680
|
+
export declare namespace Format$ {
|
|
681
|
+
/** @deprecated use `Format$inboundSchema` instead. */
|
|
816
682
|
const inboundSchema: z.ZodNativeEnum<{
|
|
817
683
|
readonly Url: "url";
|
|
818
684
|
readonly B64Json: "b64_json";
|
|
819
685
|
readonly Text: "text";
|
|
820
686
|
readonly JsonObject: "json_object";
|
|
821
687
|
}>;
|
|
822
|
-
/** @deprecated use `
|
|
688
|
+
/** @deprecated use `Format$outboundSchema` instead. */
|
|
823
689
|
const outboundSchema: z.ZodNativeEnum<{
|
|
824
690
|
readonly Url: "url";
|
|
825
691
|
readonly B64Json: "b64_json";
|
|
@@ -828,87 +694,87 @@ export declare namespace CreatePromptFormat$ {
|
|
|
828
694
|
}>;
|
|
829
695
|
}
|
|
830
696
|
/** @internal */
|
|
831
|
-
export declare const
|
|
697
|
+
export declare const Quality$inboundSchema: z.ZodNativeEnum<typeof Quality>;
|
|
832
698
|
/** @internal */
|
|
833
|
-
export declare const
|
|
699
|
+
export declare const Quality$outboundSchema: z.ZodNativeEnum<typeof Quality>;
|
|
834
700
|
/**
|
|
835
701
|
* @internal
|
|
836
702
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
837
703
|
*/
|
|
838
|
-
export declare namespace
|
|
839
|
-
/** @deprecated use `
|
|
704
|
+
export declare namespace Quality$ {
|
|
705
|
+
/** @deprecated use `Quality$inboundSchema` instead. */
|
|
840
706
|
const inboundSchema: z.ZodNativeEnum<{
|
|
841
707
|
readonly Standard: "standard";
|
|
842
708
|
readonly Hd: "hd";
|
|
843
709
|
}>;
|
|
844
|
-
/** @deprecated use `
|
|
710
|
+
/** @deprecated use `Quality$outboundSchema` instead. */
|
|
845
711
|
const outboundSchema: z.ZodNativeEnum<{
|
|
846
712
|
readonly Standard: "standard";
|
|
847
713
|
readonly Hd: "hd";
|
|
848
714
|
}>;
|
|
849
715
|
}
|
|
850
716
|
/** @internal */
|
|
851
|
-
export declare const
|
|
717
|
+
export declare const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatType>;
|
|
852
718
|
/** @internal */
|
|
853
|
-
export declare const
|
|
719
|
+
export declare const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatType>;
|
|
854
720
|
/**
|
|
855
721
|
* @internal
|
|
856
722
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
857
723
|
*/
|
|
858
|
-
export declare namespace
|
|
859
|
-
/** @deprecated use `
|
|
724
|
+
export declare namespace CreatePromptResponseFormatType$ {
|
|
725
|
+
/** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
|
|
860
726
|
const inboundSchema: z.ZodNativeEnum<{
|
|
861
727
|
readonly JsonObject: "json_object";
|
|
862
728
|
}>;
|
|
863
|
-
/** @deprecated use `
|
|
729
|
+
/** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
|
|
864
730
|
const outboundSchema: z.ZodNativeEnum<{
|
|
865
731
|
readonly JsonObject: "json_object";
|
|
866
732
|
}>;
|
|
867
733
|
}
|
|
868
734
|
/** @internal */
|
|
869
|
-
export declare const
|
|
735
|
+
export declare const ResponseFormat2$inboundSchema: z.ZodType<ResponseFormat2, z.ZodTypeDef, unknown>;
|
|
870
736
|
/** @internal */
|
|
871
|
-
export type
|
|
737
|
+
export type ResponseFormat2$Outbound = {
|
|
872
738
|
type: string;
|
|
873
739
|
};
|
|
874
740
|
/** @internal */
|
|
875
|
-
export declare const
|
|
741
|
+
export declare const ResponseFormat2$outboundSchema: z.ZodType<ResponseFormat2$Outbound, z.ZodTypeDef, ResponseFormat2>;
|
|
876
742
|
/**
|
|
877
743
|
* @internal
|
|
878
744
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
879
745
|
*/
|
|
880
|
-
export declare namespace
|
|
881
|
-
/** @deprecated use `
|
|
882
|
-
const inboundSchema: z.ZodType<
|
|
883
|
-
/** @deprecated use `
|
|
884
|
-
const outboundSchema: z.ZodType<
|
|
885
|
-
/** @deprecated use `
|
|
886
|
-
type Outbound =
|
|
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;
|
|
887
753
|
}
|
|
888
|
-
export declare function
|
|
889
|
-
export declare function
|
|
754
|
+
export declare function responseFormat2ToJSON(responseFormat2: ResponseFormat2): string;
|
|
755
|
+
export declare function responseFormat2FromJSON(jsonString: string): SafeParseResult<ResponseFormat2, SDKValidationError>;
|
|
890
756
|
/** @internal */
|
|
891
|
-
export declare const
|
|
757
|
+
export declare const ResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof ResponseFormatType>;
|
|
892
758
|
/** @internal */
|
|
893
|
-
export declare const
|
|
759
|
+
export declare const ResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof ResponseFormatType>;
|
|
894
760
|
/**
|
|
895
761
|
* @internal
|
|
896
762
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
897
763
|
*/
|
|
898
|
-
export declare namespace
|
|
899
|
-
/** @deprecated use `
|
|
764
|
+
export declare namespace ResponseFormatType$ {
|
|
765
|
+
/** @deprecated use `ResponseFormatType$inboundSchema` instead. */
|
|
900
766
|
const inboundSchema: z.ZodNativeEnum<{
|
|
901
767
|
readonly JsonSchema: "json_schema";
|
|
902
768
|
}>;
|
|
903
|
-
/** @deprecated use `
|
|
769
|
+
/** @deprecated use `ResponseFormatType$outboundSchema` instead. */
|
|
904
770
|
const outboundSchema: z.ZodNativeEnum<{
|
|
905
771
|
readonly JsonSchema: "json_schema";
|
|
906
772
|
}>;
|
|
907
773
|
}
|
|
908
774
|
/** @internal */
|
|
909
|
-
export declare const
|
|
775
|
+
export declare const JsonSchema$inboundSchema: z.ZodType<JsonSchema, z.ZodTypeDef, unknown>;
|
|
910
776
|
/** @internal */
|
|
911
|
-
export type
|
|
777
|
+
export type JsonSchema$Outbound = {
|
|
912
778
|
name: string;
|
|
913
779
|
strict: boolean;
|
|
914
780
|
schema: {
|
|
@@ -916,130 +782,108 @@ export type CreatePromptResponseFormatJsonSchema$Outbound = {
|
|
|
916
782
|
};
|
|
917
783
|
};
|
|
918
784
|
/** @internal */
|
|
919
|
-
export declare const
|
|
785
|
+
export declare const JsonSchema$outboundSchema: z.ZodType<JsonSchema$Outbound, z.ZodTypeDef, JsonSchema>;
|
|
920
786
|
/**
|
|
921
787
|
* @internal
|
|
922
788
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
923
789
|
*/
|
|
924
|
-
export declare namespace
|
|
925
|
-
/** @deprecated use `
|
|
926
|
-
const inboundSchema: z.ZodType<
|
|
927
|
-
/** @deprecated use `
|
|
928
|
-
const outboundSchema: z.ZodType<
|
|
929
|
-
/** @deprecated use `
|
|
930
|
-
type Outbound =
|
|
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;
|
|
931
797
|
}
|
|
932
|
-
export declare function
|
|
933
|
-
export declare function
|
|
798
|
+
export declare function jsonSchemaToJSON(jsonSchema: JsonSchema): string;
|
|
799
|
+
export declare function jsonSchemaFromJSON(jsonString: string): SafeParseResult<JsonSchema, SDKValidationError>;
|
|
934
800
|
/** @internal */
|
|
935
|
-
export declare const
|
|
801
|
+
export declare const ResponseFormat1$inboundSchema: z.ZodType<ResponseFormat1, z.ZodTypeDef, unknown>;
|
|
936
802
|
/** @internal */
|
|
937
|
-
export type
|
|
803
|
+
export type ResponseFormat1$Outbound = {
|
|
938
804
|
type: string;
|
|
939
|
-
json_schema:
|
|
805
|
+
json_schema: JsonSchema$Outbound;
|
|
940
806
|
};
|
|
941
807
|
/** @internal */
|
|
942
|
-
export declare const
|
|
808
|
+
export declare const ResponseFormat1$outboundSchema: z.ZodType<ResponseFormat1$Outbound, z.ZodTypeDef, ResponseFormat1>;
|
|
943
809
|
/**
|
|
944
810
|
* @internal
|
|
945
811
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
946
812
|
*/
|
|
947
|
-
export declare namespace
|
|
948
|
-
/** @deprecated use `
|
|
949
|
-
const inboundSchema: z.ZodType<
|
|
950
|
-
/** @deprecated use `
|
|
951
|
-
const outboundSchema: z.ZodType<
|
|
952
|
-
/** @deprecated use `
|
|
953
|
-
type Outbound =
|
|
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;
|
|
954
820
|
}
|
|
955
|
-
export declare function
|
|
956
|
-
export declare function
|
|
821
|
+
export declare function responseFormat1ToJSON(responseFormat1: ResponseFormat1): string;
|
|
822
|
+
export declare function responseFormat1FromJSON(jsonString: string): SafeParseResult<ResponseFormat1, SDKValidationError>;
|
|
957
823
|
/** @internal */
|
|
958
|
-
export declare const
|
|
824
|
+
export declare const ResponseFormat$inboundSchema: z.ZodType<ResponseFormat, z.ZodTypeDef, unknown>;
|
|
959
825
|
/** @internal */
|
|
960
|
-
export type
|
|
826
|
+
export type ResponseFormat$Outbound = ResponseFormat2$Outbound | ResponseFormat1$Outbound;
|
|
961
827
|
/** @internal */
|
|
962
|
-
export declare const
|
|
828
|
+
export declare const ResponseFormat$outboundSchema: z.ZodType<ResponseFormat$Outbound, z.ZodTypeDef, ResponseFormat>;
|
|
963
829
|
/**
|
|
964
830
|
* @internal
|
|
965
831
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
966
832
|
*/
|
|
967
|
-
export declare namespace
|
|
968
|
-
/** @deprecated use `
|
|
969
|
-
const inboundSchema: z.ZodType<
|
|
970
|
-
/** @deprecated use `
|
|
971
|
-
const outboundSchema: z.ZodType<
|
|
972
|
-
/** @deprecated use `
|
|
973
|
-
type Outbound =
|
|
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;
|
|
974
840
|
}
|
|
975
|
-
export declare function
|
|
976
|
-
export declare function
|
|
841
|
+
export declare function responseFormatToJSON(responseFormat: ResponseFormat): string;
|
|
842
|
+
export declare function responseFormatFromJSON(jsonString: string): SafeParseResult<ResponseFormat, SDKValidationError>;
|
|
977
843
|
/** @internal */
|
|
978
|
-
export declare const
|
|
844
|
+
export declare const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof PhotoRealVersion>;
|
|
979
845
|
/** @internal */
|
|
980
|
-
export declare const
|
|
846
|
+
export declare const PhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof PhotoRealVersion>;
|
|
981
847
|
/**
|
|
982
848
|
* @internal
|
|
983
849
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
984
850
|
*/
|
|
985
|
-
export declare namespace
|
|
986
|
-
/** @deprecated use `
|
|
851
|
+
export declare namespace PhotoRealVersion$ {
|
|
852
|
+
/** @deprecated use `PhotoRealVersion$inboundSchema` instead. */
|
|
987
853
|
const inboundSchema: z.ZodNativeEnum<{
|
|
988
854
|
readonly V1: "v1";
|
|
989
855
|
readonly V2: "v2";
|
|
990
856
|
}>;
|
|
991
|
-
/** @deprecated use `
|
|
857
|
+
/** @deprecated use `PhotoRealVersion$outboundSchema` instead. */
|
|
992
858
|
const outboundSchema: z.ZodNativeEnum<{
|
|
993
859
|
readonly V1: "v1";
|
|
994
860
|
readonly V2: "v2";
|
|
995
861
|
}>;
|
|
996
862
|
}
|
|
997
863
|
/** @internal */
|
|
998
|
-
export declare const
|
|
864
|
+
export declare const EncodingFormat$inboundSchema: z.ZodNativeEnum<typeof EncodingFormat>;
|
|
999
865
|
/** @internal */
|
|
1000
|
-
export declare const
|
|
866
|
+
export declare const EncodingFormat$outboundSchema: z.ZodNativeEnum<typeof EncodingFormat>;
|
|
1001
867
|
/**
|
|
1002
868
|
* @internal
|
|
1003
869
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1004
870
|
*/
|
|
1005
|
-
export declare namespace
|
|
1006
|
-
/** @deprecated use `
|
|
871
|
+
export declare namespace EncodingFormat$ {
|
|
872
|
+
/** @deprecated use `EncodingFormat$inboundSchema` instead. */
|
|
1007
873
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1008
874
|
readonly Float: "float";
|
|
1009
875
|
readonly Base64: "base64";
|
|
1010
876
|
}>;
|
|
1011
|
-
/** @deprecated use `
|
|
877
|
+
/** @deprecated use `EncodingFormat$outboundSchema` instead. */
|
|
1012
878
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1013
879
|
readonly Float: "float";
|
|
1014
880
|
readonly Base64: "base64";
|
|
1015
881
|
}>;
|
|
1016
882
|
}
|
|
1017
883
|
/** @internal */
|
|
1018
|
-
export declare const
|
|
1019
|
-
/** @internal */
|
|
1020
|
-
export declare const CreatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<typeof CreatePromptReasoningEffort>;
|
|
1021
|
-
/**
|
|
1022
|
-
* @internal
|
|
1023
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1024
|
-
*/
|
|
1025
|
-
export declare namespace CreatePromptReasoningEffort$ {
|
|
1026
|
-
/** @deprecated use `CreatePromptReasoningEffort$inboundSchema` instead. */
|
|
1027
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1028
|
-
readonly Low: "low";
|
|
1029
|
-
readonly Medium: "medium";
|
|
1030
|
-
readonly High: "high";
|
|
1031
|
-
}>;
|
|
1032
|
-
/** @deprecated use `CreatePromptReasoningEffort$outboundSchema` instead. */
|
|
1033
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1034
|
-
readonly Low: "low";
|
|
1035
|
-
readonly Medium: "medium";
|
|
1036
|
-
readonly High: "high";
|
|
1037
|
-
}>;
|
|
1038
|
-
}
|
|
1039
|
-
/** @internal */
|
|
1040
|
-
export declare const CreatePromptModelParameters$inboundSchema: z.ZodType<CreatePromptModelParameters, z.ZodTypeDef, unknown>;
|
|
884
|
+
export declare const ModelParameters$inboundSchema: z.ZodType<ModelParameters, z.ZodTypeDef, unknown>;
|
|
1041
885
|
/** @internal */
|
|
1042
|
-
export type
|
|
886
|
+
export type ModelParameters$Outbound = {
|
|
1043
887
|
temperature?: number | undefined;
|
|
1044
888
|
maxTokens?: number | undefined;
|
|
1045
889
|
topK?: number | undefined;
|
|
@@ -1052,37 +896,36 @@ export type CreatePromptModelParameters$Outbound = {
|
|
|
1052
896
|
dimensions?: string | undefined;
|
|
1053
897
|
quality?: string | undefined;
|
|
1054
898
|
style?: string | undefined;
|
|
1055
|
-
responseFormat?:
|
|
899
|
+
responseFormat?: ResponseFormat2$Outbound | ResponseFormat1$Outbound | null | undefined;
|
|
1056
900
|
photoRealVersion?: string | undefined;
|
|
1057
901
|
encoding_format?: string | undefined;
|
|
1058
|
-
reasoningEffort?: string | undefined;
|
|
1059
902
|
};
|
|
1060
903
|
/** @internal */
|
|
1061
|
-
export declare const
|
|
904
|
+
export declare const ModelParameters$outboundSchema: z.ZodType<ModelParameters$Outbound, z.ZodTypeDef, ModelParameters>;
|
|
1062
905
|
/**
|
|
1063
906
|
* @internal
|
|
1064
907
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1065
908
|
*/
|
|
1066
|
-
export declare namespace
|
|
1067
|
-
/** @deprecated use `
|
|
1068
|
-
const inboundSchema: z.ZodType<
|
|
1069
|
-
/** @deprecated use `
|
|
1070
|
-
const outboundSchema: z.ZodType<
|
|
1071
|
-
/** @deprecated use `
|
|
1072
|
-
type Outbound =
|
|
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;
|
|
1073
916
|
}
|
|
1074
|
-
export declare function
|
|
1075
|
-
export declare function
|
|
917
|
+
export declare function modelParametersToJSON(modelParameters: ModelParameters): string;
|
|
918
|
+
export declare function modelParametersFromJSON(jsonString: string): SafeParseResult<ModelParameters, SDKValidationError>;
|
|
1076
919
|
/** @internal */
|
|
1077
|
-
export declare const
|
|
920
|
+
export declare const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider>;
|
|
1078
921
|
/** @internal */
|
|
1079
|
-
export declare const
|
|
922
|
+
export declare const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider>;
|
|
1080
923
|
/**
|
|
1081
924
|
* @internal
|
|
1082
925
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1083
926
|
*/
|
|
1084
|
-
export declare namespace
|
|
1085
|
-
/** @deprecated use `
|
|
927
|
+
export declare namespace Provider$ {
|
|
928
|
+
/** @deprecated use `Provider$inboundSchema` instead. */
|
|
1086
929
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1087
930
|
readonly Cohere: "cohere";
|
|
1088
931
|
readonly Openai: "openai";
|
|
@@ -1100,10 +943,8 @@ export declare namespace CreatePromptProvider$ {
|
|
|
1100
943
|
readonly Leonardoai: "leonardoai";
|
|
1101
944
|
readonly Nvidia: "nvidia";
|
|
1102
945
|
readonly Jina: "jina";
|
|
1103
|
-
readonly Togetherai: "togetherai";
|
|
1104
|
-
readonly Elevenlabs: "elevenlabs";
|
|
1105
946
|
}>;
|
|
1106
|
-
/** @deprecated use `
|
|
947
|
+
/** @deprecated use `Provider$outboundSchema` instead. */
|
|
1107
948
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1108
949
|
readonly Cohere: "cohere";
|
|
1109
950
|
readonly Openai: "openai";
|
|
@@ -1121,8 +962,6 @@ export declare namespace CreatePromptProvider$ {
|
|
|
1121
962
|
readonly Leonardoai: "leonardoai";
|
|
1122
963
|
readonly Nvidia: "nvidia";
|
|
1123
964
|
readonly Jina: "jina";
|
|
1124
|
-
readonly Togetherai: "togetherai";
|
|
1125
|
-
readonly Elevenlabs: "elevenlabs";
|
|
1126
965
|
}>;
|
|
1127
966
|
}
|
|
1128
967
|
/** @internal */
|
|
@@ -1393,111 +1232,33 @@ export declare namespace CreatePromptMessages$ {
|
|
|
1393
1232
|
export declare function createPromptMessagesToJSON(createPromptMessages: CreatePromptMessages): string;
|
|
1394
1233
|
export declare function createPromptMessagesFromJSON(jsonString: string): SafeParseResult<CreatePromptMessages, SDKValidationError>;
|
|
1395
1234
|
/** @internal */
|
|
1396
|
-
export declare const
|
|
1235
|
+
export declare const PromptConfig$inboundSchema: z.ZodType<PromptConfig, z.ZodTypeDef, unknown>;
|
|
1397
1236
|
/** @internal */
|
|
1398
|
-
export type
|
|
1237
|
+
export type PromptConfig$Outbound = {
|
|
1399
1238
|
stream?: boolean | undefined;
|
|
1400
1239
|
model?: string | undefined;
|
|
1401
1240
|
model_type?: string | undefined;
|
|
1402
|
-
model_parameters?:
|
|
1241
|
+
model_parameters?: ModelParameters$Outbound | undefined;
|
|
1403
1242
|
provider?: string | undefined;
|
|
1404
1243
|
version?: string | undefined;
|
|
1405
1244
|
messages: Array<CreatePromptMessages$Outbound>;
|
|
1406
1245
|
};
|
|
1407
1246
|
/** @internal */
|
|
1408
|
-
export declare const
|
|
1409
|
-
/**
|
|
1410
|
-
* @internal
|
|
1411
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1412
|
-
*/
|
|
1413
|
-
export declare namespace CreatePromptPromptConfig$ {
|
|
1414
|
-
/** @deprecated use `CreatePromptPromptConfig$inboundSchema` instead. */
|
|
1415
|
-
const inboundSchema: z.ZodType<CreatePromptPromptConfig, z.ZodTypeDef, unknown>;
|
|
1416
|
-
/** @deprecated use `CreatePromptPromptConfig$outboundSchema` instead. */
|
|
1417
|
-
const outboundSchema: z.ZodType<CreatePromptPromptConfig$Outbound, z.ZodTypeDef, CreatePromptPromptConfig>;
|
|
1418
|
-
/** @deprecated use `CreatePromptPromptConfig$Outbound` instead. */
|
|
1419
|
-
type Outbound = CreatePromptPromptConfig$Outbound;
|
|
1420
|
-
}
|
|
1421
|
-
export declare function createPromptPromptConfigToJSON(createPromptPromptConfig: CreatePromptPromptConfig): string;
|
|
1422
|
-
export declare function createPromptPromptConfigFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptConfig, SDKValidationError>;
|
|
1423
|
-
/** @internal */
|
|
1424
|
-
export declare const CreatePromptUseCases$inboundSchema: z.ZodNativeEnum<typeof CreatePromptUseCases>;
|
|
1425
|
-
/** @internal */
|
|
1426
|
-
export declare const CreatePromptUseCases$outboundSchema: z.ZodNativeEnum<typeof CreatePromptUseCases>;
|
|
1247
|
+
export declare const PromptConfig$outboundSchema: z.ZodType<PromptConfig$Outbound, z.ZodTypeDef, PromptConfig>;
|
|
1427
1248
|
/**
|
|
1428
1249
|
* @internal
|
|
1429
1250
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1430
1251
|
*/
|
|
1431
|
-
export declare namespace
|
|
1432
|
-
/** @deprecated use `
|
|
1433
|
-
const inboundSchema: z.
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
readonly Chatbots: "Chatbots";
|
|
1439
|
-
readonly Classification: "Classification";
|
|
1440
|
-
readonly CodeUnderstanding: "Code understanding";
|
|
1441
|
-
readonly CodeWriting: "Code writing";
|
|
1442
|
-
readonly DocumentsQA: "Documents QA";
|
|
1443
|
-
readonly Conversation: "Conversation";
|
|
1444
|
-
readonly Extraction: "Extraction";
|
|
1445
|
-
readonly MultiModal: "Multi-modal";
|
|
1446
|
-
readonly SelfChecking: "Self-checking";
|
|
1447
|
-
readonly Sql: "SQL";
|
|
1448
|
-
readonly Summarization: "Summarization";
|
|
1449
|
-
readonly Tagging: "Tagging";
|
|
1450
|
-
}>;
|
|
1451
|
-
/** @deprecated use `CreatePromptUseCases$outboundSchema` instead. */
|
|
1452
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1453
|
-
readonly Agents: "Agents";
|
|
1454
|
-
readonly AgentsSimulations: "Agents simulations";
|
|
1455
|
-
readonly APIInteraction: "API interaction";
|
|
1456
|
-
readonly AutonomousAgents: "Autonomous Agents";
|
|
1457
|
-
readonly Chatbots: "Chatbots";
|
|
1458
|
-
readonly Classification: "Classification";
|
|
1459
|
-
readonly CodeUnderstanding: "Code understanding";
|
|
1460
|
-
readonly CodeWriting: "Code writing";
|
|
1461
|
-
readonly DocumentsQA: "Documents QA";
|
|
1462
|
-
readonly Conversation: "Conversation";
|
|
1463
|
-
readonly Extraction: "Extraction";
|
|
1464
|
-
readonly MultiModal: "Multi-modal";
|
|
1465
|
-
readonly SelfChecking: "Self-checking";
|
|
1466
|
-
readonly Sql: "SQL";
|
|
1467
|
-
readonly Summarization: "Summarization";
|
|
1468
|
-
readonly Tagging: "Tagging";
|
|
1469
|
-
}>;
|
|
1470
|
-
}
|
|
1471
|
-
/** @internal */
|
|
1472
|
-
export declare const CreatePromptLanguage$inboundSchema: z.ZodNativeEnum<typeof CreatePromptLanguage>;
|
|
1473
|
-
/** @internal */
|
|
1474
|
-
export declare const CreatePromptLanguage$outboundSchema: z.ZodNativeEnum<typeof CreatePromptLanguage>;
|
|
1475
|
-
/**
|
|
1476
|
-
* @internal
|
|
1477
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1478
|
-
*/
|
|
1479
|
-
export declare namespace CreatePromptLanguage$ {
|
|
1480
|
-
/** @deprecated use `CreatePromptLanguage$inboundSchema` instead. */
|
|
1481
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1482
|
-
readonly Chinese: "Chinese";
|
|
1483
|
-
readonly Dutch: "Dutch";
|
|
1484
|
-
readonly English: "English";
|
|
1485
|
-
readonly French: "French";
|
|
1486
|
-
readonly German: "German";
|
|
1487
|
-
readonly Russian: "Russian";
|
|
1488
|
-
readonly Spanish: "Spanish";
|
|
1489
|
-
}>;
|
|
1490
|
-
/** @deprecated use `CreatePromptLanguage$outboundSchema` instead. */
|
|
1491
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1492
|
-
readonly Chinese: "Chinese";
|
|
1493
|
-
readonly Dutch: "Dutch";
|
|
1494
|
-
readonly English: "English";
|
|
1495
|
-
readonly French: "French";
|
|
1496
|
-
readonly German: "German";
|
|
1497
|
-
readonly Russian: "Russian";
|
|
1498
|
-
readonly Spanish: "Spanish";
|
|
1499
|
-
}>;
|
|
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;
|
|
1500
1259
|
}
|
|
1260
|
+
export declare function promptConfigToJSON(promptConfig: PromptConfig): string;
|
|
1261
|
+
export declare function promptConfigFromJSON(jsonString: string): SafeParseResult<PromptConfig, SDKValidationError>;
|
|
1501
1262
|
/** @internal */
|
|
1502
1263
|
export declare const CreatePromptMetadata$inboundSchema: z.ZodType<CreatePromptMetadata, z.ZodTypeDef, unknown>;
|
|
1503
1264
|
/** @internal */
|
|
@@ -1522,14 +1283,37 @@ export declare namespace CreatePromptMetadata$ {
|
|
|
1522
1283
|
export declare function createPromptMetadataToJSON(createPromptMetadata: CreatePromptMetadata): string;
|
|
1523
1284
|
export declare function createPromptMetadataFromJSON(jsonString: string): SafeParseResult<CreatePromptMetadata, SDKValidationError>;
|
|
1524
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 */
|
|
1525
1308
|
export declare const CreatePromptRequestBody$inboundSchema: z.ZodType<CreatePromptRequestBody, z.ZodTypeDef, unknown>;
|
|
1526
1309
|
/** @internal */
|
|
1527
1310
|
export type CreatePromptRequestBody$Outbound = {
|
|
1528
1311
|
display_name: string;
|
|
1529
1312
|
description?: string | null | undefined;
|
|
1530
|
-
prompt_config
|
|
1313
|
+
prompt_config?: PromptConfig$Outbound | undefined;
|
|
1531
1314
|
metadata?: CreatePromptMetadata$Outbound | undefined;
|
|
1532
|
-
|
|
1315
|
+
key?: string | undefined;
|
|
1316
|
+
type: string;
|
|
1533
1317
|
};
|
|
1534
1318
|
/** @internal */
|
|
1535
1319
|
export declare const CreatePromptRequestBody$outboundSchema: z.ZodType<CreatePromptRequestBody$Outbound, z.ZodTypeDef, CreatePromptRequestBody>;
|
|
@@ -1548,33 +1332,15 @@ export declare namespace CreatePromptRequestBody$ {
|
|
|
1548
1332
|
export declare function createPromptRequestBodyToJSON(createPromptRequestBody: CreatePromptRequestBody): string;
|
|
1549
1333
|
export declare function createPromptRequestBodyFromJSON(jsonString: string): SafeParseResult<CreatePromptRequestBody, SDKValidationError>;
|
|
1550
1334
|
/** @internal */
|
|
1551
|
-
export declare const
|
|
1552
|
-
/** @internal */
|
|
1553
|
-
export declare const CreatePromptPromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsType>;
|
|
1554
|
-
/**
|
|
1555
|
-
* @internal
|
|
1556
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1557
|
-
*/
|
|
1558
|
-
export declare namespace CreatePromptPromptsType$ {
|
|
1559
|
-
/** @deprecated use `CreatePromptPromptsType$inboundSchema` instead. */
|
|
1560
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1561
|
-
readonly Prompt: "prompt";
|
|
1562
|
-
}>;
|
|
1563
|
-
/** @deprecated use `CreatePromptPromptsType$outboundSchema` instead. */
|
|
1564
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1565
|
-
readonly Prompt: "prompt";
|
|
1566
|
-
}>;
|
|
1567
|
-
}
|
|
1568
|
-
/** @internal */
|
|
1569
|
-
export declare const CreatePromptPromptsModelType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsModelType>;
|
|
1335
|
+
export declare const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptModelType>;
|
|
1570
1336
|
/** @internal */
|
|
1571
|
-
export declare const
|
|
1337
|
+
export declare const CreatePromptModelType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptModelType>;
|
|
1572
1338
|
/**
|
|
1573
1339
|
* @internal
|
|
1574
1340
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1575
1341
|
*/
|
|
1576
|
-
export declare namespace
|
|
1577
|
-
/** @deprecated use `
|
|
1342
|
+
export declare namespace CreatePromptModelType$ {
|
|
1343
|
+
/** @deprecated use `CreatePromptModelType$inboundSchema` instead. */
|
|
1578
1344
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1579
1345
|
readonly Chat: "chat";
|
|
1580
1346
|
readonly Completion: "completion";
|
|
@@ -1586,7 +1352,7 @@ export declare namespace CreatePromptPromptsModelType$ {
|
|
|
1586
1352
|
readonly Rerank: "rerank";
|
|
1587
1353
|
readonly Moderations: "moderations";
|
|
1588
1354
|
}>;
|
|
1589
|
-
/** @deprecated use `
|
|
1355
|
+
/** @deprecated use `CreatePromptModelType$outboundSchema` instead. */
|
|
1590
1356
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1591
1357
|
readonly Chat: "chat";
|
|
1592
1358
|
readonly Completion: "completion";
|
|
@@ -1600,22 +1366,22 @@ export declare namespace CreatePromptPromptsModelType$ {
|
|
|
1600
1366
|
}>;
|
|
1601
1367
|
}
|
|
1602
1368
|
/** @internal */
|
|
1603
|
-
export declare const
|
|
1369
|
+
export declare const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptFormat>;
|
|
1604
1370
|
/** @internal */
|
|
1605
|
-
export declare const
|
|
1371
|
+
export declare const CreatePromptFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptFormat>;
|
|
1606
1372
|
/**
|
|
1607
1373
|
* @internal
|
|
1608
1374
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1609
1375
|
*/
|
|
1610
|
-
export declare namespace
|
|
1611
|
-
/** @deprecated use `
|
|
1376
|
+
export declare namespace CreatePromptFormat$ {
|
|
1377
|
+
/** @deprecated use `CreatePromptFormat$inboundSchema` instead. */
|
|
1612
1378
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1613
1379
|
readonly Url: "url";
|
|
1614
1380
|
readonly B64Json: "b64_json";
|
|
1615
1381
|
readonly Text: "text";
|
|
1616
1382
|
readonly JsonObject: "json_object";
|
|
1617
1383
|
}>;
|
|
1618
|
-
/** @deprecated use `
|
|
1384
|
+
/** @deprecated use `CreatePromptFormat$outboundSchema` instead. */
|
|
1619
1385
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1620
1386
|
readonly Url: "url";
|
|
1621
1387
|
readonly B64Json: "b64_json";
|
|
@@ -1624,87 +1390,87 @@ export declare namespace CreatePromptPromptsFormat$ {
|
|
|
1624
1390
|
}>;
|
|
1625
1391
|
}
|
|
1626
1392
|
/** @internal */
|
|
1627
|
-
export declare const
|
|
1393
|
+
export declare const CreatePromptQuality$inboundSchema: z.ZodNativeEnum<typeof CreatePromptQuality>;
|
|
1628
1394
|
/** @internal */
|
|
1629
|
-
export declare const
|
|
1395
|
+
export declare const CreatePromptQuality$outboundSchema: z.ZodNativeEnum<typeof CreatePromptQuality>;
|
|
1630
1396
|
/**
|
|
1631
1397
|
* @internal
|
|
1632
1398
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1633
1399
|
*/
|
|
1634
|
-
export declare namespace
|
|
1635
|
-
/** @deprecated use `
|
|
1400
|
+
export declare namespace CreatePromptQuality$ {
|
|
1401
|
+
/** @deprecated use `CreatePromptQuality$inboundSchema` instead. */
|
|
1636
1402
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1637
1403
|
readonly Standard: "standard";
|
|
1638
1404
|
readonly Hd: "hd";
|
|
1639
1405
|
}>;
|
|
1640
|
-
/** @deprecated use `
|
|
1406
|
+
/** @deprecated use `CreatePromptQuality$outboundSchema` instead. */
|
|
1641
1407
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1642
1408
|
readonly Standard: "standard";
|
|
1643
1409
|
readonly Hd: "hd";
|
|
1644
1410
|
}>;
|
|
1645
1411
|
}
|
|
1646
1412
|
/** @internal */
|
|
1647
|
-
export declare const
|
|
1413
|
+
export declare const CreatePromptResponseFormatPromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType>;
|
|
1648
1414
|
/** @internal */
|
|
1649
|
-
export declare const
|
|
1415
|
+
export declare const CreatePromptResponseFormatPromptsResponseType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType>;
|
|
1650
1416
|
/**
|
|
1651
1417
|
* @internal
|
|
1652
1418
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1653
1419
|
*/
|
|
1654
|
-
export declare namespace
|
|
1655
|
-
/** @deprecated use `
|
|
1420
|
+
export declare namespace CreatePromptResponseFormatPromptsResponseType$ {
|
|
1421
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
1656
1422
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1657
1423
|
readonly JsonObject: "json_object";
|
|
1658
1424
|
}>;
|
|
1659
|
-
/** @deprecated use `
|
|
1425
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
1660
1426
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1661
1427
|
readonly JsonObject: "json_object";
|
|
1662
1428
|
}>;
|
|
1663
1429
|
}
|
|
1664
1430
|
/** @internal */
|
|
1665
|
-
export declare const
|
|
1431
|
+
export declare const CreatePromptResponseFormat2$inboundSchema: z.ZodType<CreatePromptResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1666
1432
|
/** @internal */
|
|
1667
|
-
export type
|
|
1433
|
+
export type CreatePromptResponseFormat2$Outbound = {
|
|
1668
1434
|
type: string;
|
|
1669
1435
|
};
|
|
1670
1436
|
/** @internal */
|
|
1671
|
-
export declare const
|
|
1437
|
+
export declare const CreatePromptResponseFormat2$outboundSchema: z.ZodType<CreatePromptResponseFormat2$Outbound, z.ZodTypeDef, CreatePromptResponseFormat2>;
|
|
1672
1438
|
/**
|
|
1673
1439
|
* @internal
|
|
1674
1440
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1675
1441
|
*/
|
|
1676
|
-
export declare namespace
|
|
1677
|
-
/** @deprecated use `
|
|
1678
|
-
const inboundSchema: z.ZodType<
|
|
1679
|
-
/** @deprecated use `
|
|
1680
|
-
const outboundSchema: z.ZodType<
|
|
1681
|
-
/** @deprecated use `
|
|
1682
|
-
type Outbound =
|
|
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;
|
|
1683
1449
|
}
|
|
1684
|
-
export declare function
|
|
1685
|
-
export declare function
|
|
1450
|
+
export declare function createPromptResponseFormat2ToJSON(createPromptResponseFormat2: CreatePromptResponseFormat2): string;
|
|
1451
|
+
export declare function createPromptResponseFormat2FromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError>;
|
|
1686
1452
|
/** @internal */
|
|
1687
|
-
export declare const
|
|
1453
|
+
export declare const CreatePromptResponseFormatPromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType>;
|
|
1688
1454
|
/** @internal */
|
|
1689
|
-
export declare const
|
|
1455
|
+
export declare const CreatePromptResponseFormatPromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType>;
|
|
1690
1456
|
/**
|
|
1691
1457
|
* @internal
|
|
1692
1458
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1693
1459
|
*/
|
|
1694
|
-
export declare namespace
|
|
1695
|
-
/** @deprecated use `
|
|
1460
|
+
export declare namespace CreatePromptResponseFormatPromptsType$ {
|
|
1461
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
1696
1462
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1697
1463
|
readonly JsonSchema: "json_schema";
|
|
1698
1464
|
}>;
|
|
1699
|
-
/** @deprecated use `
|
|
1465
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
1700
1466
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1701
1467
|
readonly JsonSchema: "json_schema";
|
|
1702
1468
|
}>;
|
|
1703
1469
|
}
|
|
1704
1470
|
/** @internal */
|
|
1705
|
-
export declare const
|
|
1471
|
+
export declare const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1706
1472
|
/** @internal */
|
|
1707
|
-
export type
|
|
1473
|
+
export type CreatePromptResponseFormatJsonSchema$Outbound = {
|
|
1708
1474
|
name: string;
|
|
1709
1475
|
strict: boolean;
|
|
1710
1476
|
schema: {
|
|
@@ -1712,130 +1478,108 @@ export type CreatePromptResponseFormatPromptsJsonSchema$Outbound = {
|
|
|
1712
1478
|
};
|
|
1713
1479
|
};
|
|
1714
1480
|
/** @internal */
|
|
1715
|
-
export declare const
|
|
1481
|
+
export declare const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, CreatePromptResponseFormatJsonSchema>;
|
|
1716
1482
|
/**
|
|
1717
1483
|
* @internal
|
|
1718
1484
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1719
1485
|
*/
|
|
1720
|
-
export declare namespace
|
|
1721
|
-
/** @deprecated use `
|
|
1722
|
-
const inboundSchema: z.ZodType<
|
|
1723
|
-
/** @deprecated use `
|
|
1724
|
-
const outboundSchema: z.ZodType<
|
|
1725
|
-
/** @deprecated use `
|
|
1726
|
-
type Outbound =
|
|
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;
|
|
1727
1493
|
}
|
|
1728
|
-
export declare function
|
|
1729
|
-
export declare function
|
|
1494
|
+
export declare function createPromptResponseFormatJsonSchemaToJSON(createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema): string;
|
|
1495
|
+
export declare function createPromptResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError>;
|
|
1730
1496
|
/** @internal */
|
|
1731
|
-
export declare const
|
|
1497
|
+
export declare const CreatePromptResponseFormat1$inboundSchema: z.ZodType<CreatePromptResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1732
1498
|
/** @internal */
|
|
1733
|
-
export type
|
|
1499
|
+
export type CreatePromptResponseFormat1$Outbound = {
|
|
1734
1500
|
type: string;
|
|
1735
|
-
json_schema:
|
|
1501
|
+
json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
|
|
1736
1502
|
};
|
|
1737
1503
|
/** @internal */
|
|
1738
|
-
export declare const
|
|
1504
|
+
export declare const CreatePromptResponseFormat1$outboundSchema: z.ZodType<CreatePromptResponseFormat1$Outbound, z.ZodTypeDef, CreatePromptResponseFormat1>;
|
|
1739
1505
|
/**
|
|
1740
1506
|
* @internal
|
|
1741
1507
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1742
1508
|
*/
|
|
1743
|
-
export declare namespace
|
|
1744
|
-
/** @deprecated use `
|
|
1745
|
-
const inboundSchema: z.ZodType<
|
|
1746
|
-
/** @deprecated use `
|
|
1747
|
-
const outboundSchema: z.ZodType<
|
|
1748
|
-
/** @deprecated use `
|
|
1749
|
-
type Outbound =
|
|
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;
|
|
1750
1516
|
}
|
|
1751
|
-
export declare function
|
|
1752
|
-
export declare function
|
|
1517
|
+
export declare function createPromptResponseFormat1ToJSON(createPromptResponseFormat1: CreatePromptResponseFormat1): string;
|
|
1518
|
+
export declare function createPromptResponseFormat1FromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError>;
|
|
1753
1519
|
/** @internal */
|
|
1754
|
-
export declare const
|
|
1520
|
+
export declare const CreatePromptResponseFormat$inboundSchema: z.ZodType<CreatePromptResponseFormat, z.ZodTypeDef, unknown>;
|
|
1755
1521
|
/** @internal */
|
|
1756
|
-
export type
|
|
1522
|
+
export type CreatePromptResponseFormat$Outbound = CreatePromptResponseFormat2$Outbound | CreatePromptResponseFormat1$Outbound;
|
|
1757
1523
|
/** @internal */
|
|
1758
|
-
export declare const
|
|
1524
|
+
export declare const CreatePromptResponseFormat$outboundSchema: z.ZodType<CreatePromptResponseFormat$Outbound, z.ZodTypeDef, CreatePromptResponseFormat>;
|
|
1759
1525
|
/**
|
|
1760
1526
|
* @internal
|
|
1761
1527
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1762
1528
|
*/
|
|
1763
|
-
export declare namespace
|
|
1764
|
-
/** @deprecated use `
|
|
1765
|
-
const inboundSchema: z.ZodType<
|
|
1766
|
-
/** @deprecated use `
|
|
1767
|
-
const outboundSchema: z.ZodType<
|
|
1768
|
-
/** @deprecated use `
|
|
1769
|
-
type Outbound =
|
|
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;
|
|
1770
1536
|
}
|
|
1771
|
-
export declare function
|
|
1772
|
-
export declare function
|
|
1537
|
+
export declare function createPromptResponseFormatToJSON(createPromptResponseFormat: CreatePromptResponseFormat): string;
|
|
1538
|
+
export declare function createPromptResponseFormatFromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormat, SDKValidationError>;
|
|
1773
1539
|
/** @internal */
|
|
1774
|
-
export declare const
|
|
1540
|
+
export declare const CreatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPhotoRealVersion>;
|
|
1775
1541
|
/** @internal */
|
|
1776
|
-
export declare const
|
|
1542
|
+
export declare const CreatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPhotoRealVersion>;
|
|
1777
1543
|
/**
|
|
1778
1544
|
* @internal
|
|
1779
1545
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1780
1546
|
*/
|
|
1781
|
-
export declare namespace
|
|
1782
|
-
/** @deprecated use `
|
|
1547
|
+
export declare namespace CreatePromptPhotoRealVersion$ {
|
|
1548
|
+
/** @deprecated use `CreatePromptPhotoRealVersion$inboundSchema` instead. */
|
|
1783
1549
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1784
1550
|
readonly V1: "v1";
|
|
1785
1551
|
readonly V2: "v2";
|
|
1786
1552
|
}>;
|
|
1787
|
-
/** @deprecated use `
|
|
1553
|
+
/** @deprecated use `CreatePromptPhotoRealVersion$outboundSchema` instead. */
|
|
1788
1554
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1789
1555
|
readonly V1: "v1";
|
|
1790
1556
|
readonly V2: "v2";
|
|
1791
1557
|
}>;
|
|
1792
1558
|
}
|
|
1793
1559
|
/** @internal */
|
|
1794
|
-
export declare const
|
|
1560
|
+
export declare const CreatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptEncodingFormat>;
|
|
1795
1561
|
/** @internal */
|
|
1796
|
-
export declare const
|
|
1562
|
+
export declare const CreatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptEncodingFormat>;
|
|
1797
1563
|
/**
|
|
1798
1564
|
* @internal
|
|
1799
1565
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1800
1566
|
*/
|
|
1801
|
-
export declare namespace
|
|
1802
|
-
/** @deprecated use `
|
|
1567
|
+
export declare namespace CreatePromptEncodingFormat$ {
|
|
1568
|
+
/** @deprecated use `CreatePromptEncodingFormat$inboundSchema` instead. */
|
|
1803
1569
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1804
1570
|
readonly Float: "float";
|
|
1805
1571
|
readonly Base64: "base64";
|
|
1806
1572
|
}>;
|
|
1807
|
-
/** @deprecated use `
|
|
1573
|
+
/** @deprecated use `CreatePromptEncodingFormat$outboundSchema` instead. */
|
|
1808
1574
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1809
1575
|
readonly Float: "float";
|
|
1810
1576
|
readonly Base64: "base64";
|
|
1811
1577
|
}>;
|
|
1812
1578
|
}
|
|
1813
1579
|
/** @internal */
|
|
1814
|
-
export declare const
|
|
1815
|
-
/** @internal */
|
|
1816
|
-
export declare const CreatePromptPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsReasoningEffort>;
|
|
1817
|
-
/**
|
|
1818
|
-
* @internal
|
|
1819
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1820
|
-
*/
|
|
1821
|
-
export declare namespace CreatePromptPromptsReasoningEffort$ {
|
|
1822
|
-
/** @deprecated use `CreatePromptPromptsReasoningEffort$inboundSchema` instead. */
|
|
1823
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1824
|
-
readonly Low: "low";
|
|
1825
|
-
readonly Medium: "medium";
|
|
1826
|
-
readonly High: "high";
|
|
1827
|
-
}>;
|
|
1828
|
-
/** @deprecated use `CreatePromptPromptsReasoningEffort$outboundSchema` instead. */
|
|
1829
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1830
|
-
readonly Low: "low";
|
|
1831
|
-
readonly Medium: "medium";
|
|
1832
|
-
readonly High: "high";
|
|
1833
|
-
}>;
|
|
1834
|
-
}
|
|
1835
|
-
/** @internal */
|
|
1836
|
-
export declare const CreatePromptPromptsModelParameters$inboundSchema: z.ZodType<CreatePromptPromptsModelParameters, z.ZodTypeDef, unknown>;
|
|
1580
|
+
export declare const CreatePromptModelParameters$inboundSchema: z.ZodType<CreatePromptModelParameters, z.ZodTypeDef, unknown>;
|
|
1837
1581
|
/** @internal */
|
|
1838
|
-
export type
|
|
1582
|
+
export type CreatePromptModelParameters$Outbound = {
|
|
1839
1583
|
temperature?: number | undefined;
|
|
1840
1584
|
maxTokens?: number | undefined;
|
|
1841
1585
|
topK?: number | undefined;
|
|
@@ -1848,37 +1592,36 @@ export type CreatePromptPromptsModelParameters$Outbound = {
|
|
|
1848
1592
|
dimensions?: string | undefined;
|
|
1849
1593
|
quality?: string | undefined;
|
|
1850
1594
|
style?: string | undefined;
|
|
1851
|
-
responseFormat?:
|
|
1595
|
+
responseFormat?: CreatePromptResponseFormat2$Outbound | CreatePromptResponseFormat1$Outbound | null | undefined;
|
|
1852
1596
|
photoRealVersion?: string | undefined;
|
|
1853
1597
|
encoding_format?: string | undefined;
|
|
1854
|
-
reasoningEffort?: string | undefined;
|
|
1855
1598
|
};
|
|
1856
1599
|
/** @internal */
|
|
1857
|
-
export declare const
|
|
1600
|
+
export declare const CreatePromptModelParameters$outboundSchema: z.ZodType<CreatePromptModelParameters$Outbound, z.ZodTypeDef, CreatePromptModelParameters>;
|
|
1858
1601
|
/**
|
|
1859
1602
|
* @internal
|
|
1860
1603
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1861
1604
|
*/
|
|
1862
|
-
export declare namespace
|
|
1863
|
-
/** @deprecated use `
|
|
1864
|
-
const inboundSchema: z.ZodType<
|
|
1865
|
-
/** @deprecated use `
|
|
1866
|
-
const outboundSchema: z.ZodType<
|
|
1867
|
-
/** @deprecated use `
|
|
1868
|
-
type Outbound =
|
|
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;
|
|
1869
1612
|
}
|
|
1870
|
-
export declare function
|
|
1871
|
-
export declare function
|
|
1613
|
+
export declare function createPromptModelParametersToJSON(createPromptModelParameters: CreatePromptModelParameters): string;
|
|
1614
|
+
export declare function createPromptModelParametersFromJSON(jsonString: string): SafeParseResult<CreatePromptModelParameters, SDKValidationError>;
|
|
1872
1615
|
/** @internal */
|
|
1873
|
-
export declare const
|
|
1616
|
+
export declare const CreatePromptProvider$inboundSchema: z.ZodNativeEnum<typeof CreatePromptProvider>;
|
|
1874
1617
|
/** @internal */
|
|
1875
|
-
export declare const
|
|
1618
|
+
export declare const CreatePromptProvider$outboundSchema: z.ZodNativeEnum<typeof CreatePromptProvider>;
|
|
1876
1619
|
/**
|
|
1877
1620
|
* @internal
|
|
1878
1621
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1879
1622
|
*/
|
|
1880
|
-
export declare namespace
|
|
1881
|
-
/** @deprecated use `
|
|
1623
|
+
export declare namespace CreatePromptProvider$ {
|
|
1624
|
+
/** @deprecated use `CreatePromptProvider$inboundSchema` instead. */
|
|
1882
1625
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1883
1626
|
readonly Cohere: "cohere";
|
|
1884
1627
|
readonly Openai: "openai";
|
|
@@ -1896,10 +1639,8 @@ export declare namespace CreatePromptPromptsProvider$ {
|
|
|
1896
1639
|
readonly Leonardoai: "leonardoai";
|
|
1897
1640
|
readonly Nvidia: "nvidia";
|
|
1898
1641
|
readonly Jina: "jina";
|
|
1899
|
-
readonly Togetherai: "togetherai";
|
|
1900
|
-
readonly Elevenlabs: "elevenlabs";
|
|
1901
1642
|
}>;
|
|
1902
|
-
/** @deprecated use `
|
|
1643
|
+
/** @deprecated use `CreatePromptProvider$outboundSchema` instead. */
|
|
1903
1644
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1904
1645
|
readonly Cohere: "cohere";
|
|
1905
1646
|
readonly Openai: "openai";
|
|
@@ -1917,8 +1658,6 @@ export declare namespace CreatePromptPromptsProvider$ {
|
|
|
1917
1658
|
readonly Leonardoai: "leonardoai";
|
|
1918
1659
|
readonly Nvidia: "nvidia";
|
|
1919
1660
|
readonly Jina: "jina";
|
|
1920
|
-
readonly Togetherai: "togetherai";
|
|
1921
|
-
readonly Elevenlabs: "elevenlabs";
|
|
1922
1661
|
}>;
|
|
1923
1662
|
}
|
|
1924
1663
|
/** @internal */
|
|
@@ -2100,19 +1839,19 @@ export declare namespace CreatePromptPromptsContent$ {
|
|
|
2100
1839
|
export declare function createPromptPromptsContentToJSON(createPromptPromptsContent: CreatePromptPromptsContent): string;
|
|
2101
1840
|
export declare function createPromptPromptsContentFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsContent, SDKValidationError>;
|
|
2102
1841
|
/** @internal */
|
|
2103
|
-
export declare const
|
|
1842
|
+
export declare const CreatePromptPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponse200Type>;
|
|
2104
1843
|
/** @internal */
|
|
2105
|
-
export declare const
|
|
1844
|
+
export declare const CreatePromptPromptsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponse200Type>;
|
|
2106
1845
|
/**
|
|
2107
1846
|
* @internal
|
|
2108
1847
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2109
1848
|
*/
|
|
2110
|
-
export declare namespace
|
|
2111
|
-
/** @deprecated use `
|
|
1849
|
+
export declare namespace CreatePromptPromptsResponse200Type$ {
|
|
1850
|
+
/** @deprecated use `CreatePromptPromptsResponse200Type$inboundSchema` instead. */
|
|
2112
1851
|
const inboundSchema: z.ZodNativeEnum<{
|
|
2113
1852
|
readonly Function: "function";
|
|
2114
1853
|
}>;
|
|
2115
|
-
/** @deprecated use `
|
|
1854
|
+
/** @deprecated use `CreatePromptPromptsResponse200Type$outboundSchema` instead. */
|
|
2116
1855
|
const outboundSchema: z.ZodNativeEnum<{
|
|
2117
1856
|
readonly Function: "function";
|
|
2118
1857
|
}>;
|
|
@@ -2190,113 +1929,35 @@ export declare namespace CreatePromptPromptsMessages$ {
|
|
|
2190
1929
|
export declare function createPromptPromptsMessagesToJSON(createPromptPromptsMessages: CreatePromptPromptsMessages): string;
|
|
2191
1930
|
export declare function createPromptPromptsMessagesFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsMessages, SDKValidationError>;
|
|
2192
1931
|
/** @internal */
|
|
2193
|
-
export declare const
|
|
1932
|
+
export declare const CreatePromptPromptConfig$inboundSchema: z.ZodType<CreatePromptPromptConfig, z.ZodTypeDef, unknown>;
|
|
2194
1933
|
/** @internal */
|
|
2195
|
-
export type
|
|
1934
|
+
export type CreatePromptPromptConfig$Outbound = {
|
|
2196
1935
|
stream?: boolean | undefined;
|
|
2197
1936
|
model?: string | undefined;
|
|
2198
1937
|
model_db_id?: string | undefined;
|
|
2199
1938
|
model_type?: string | undefined;
|
|
2200
|
-
model_parameters?:
|
|
1939
|
+
model_parameters?: CreatePromptModelParameters$Outbound | undefined;
|
|
2201
1940
|
provider?: string | undefined;
|
|
2202
1941
|
integration_id?: string | null | undefined;
|
|
2203
1942
|
version?: string | undefined;
|
|
2204
1943
|
messages: Array<CreatePromptPromptsMessages$Outbound>;
|
|
2205
1944
|
};
|
|
2206
1945
|
/** @internal */
|
|
2207
|
-
export declare const
|
|
2208
|
-
/**
|
|
2209
|
-
* @internal
|
|
2210
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2211
|
-
*/
|
|
2212
|
-
export declare namespace CreatePromptPromptsPromptConfig$ {
|
|
2213
|
-
/** @deprecated use `CreatePromptPromptsPromptConfig$inboundSchema` instead. */
|
|
2214
|
-
const inboundSchema: z.ZodType<CreatePromptPromptsPromptConfig, z.ZodTypeDef, unknown>;
|
|
2215
|
-
/** @deprecated use `CreatePromptPromptsPromptConfig$outboundSchema` instead. */
|
|
2216
|
-
const outboundSchema: z.ZodType<CreatePromptPromptsPromptConfig$Outbound, z.ZodTypeDef, CreatePromptPromptsPromptConfig>;
|
|
2217
|
-
/** @deprecated use `CreatePromptPromptsPromptConfig$Outbound` instead. */
|
|
2218
|
-
type Outbound = CreatePromptPromptsPromptConfig$Outbound;
|
|
2219
|
-
}
|
|
2220
|
-
export declare function createPromptPromptsPromptConfigToJSON(createPromptPromptsPromptConfig: CreatePromptPromptsPromptConfig): string;
|
|
2221
|
-
export declare function createPromptPromptsPromptConfigFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsPromptConfig, SDKValidationError>;
|
|
2222
|
-
/** @internal */
|
|
2223
|
-
export declare const CreatePromptPromptsUseCases$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsUseCases>;
|
|
2224
|
-
/** @internal */
|
|
2225
|
-
export declare const CreatePromptPromptsUseCases$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsUseCases>;
|
|
2226
|
-
/**
|
|
2227
|
-
* @internal
|
|
2228
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2229
|
-
*/
|
|
2230
|
-
export declare namespace CreatePromptPromptsUseCases$ {
|
|
2231
|
-
/** @deprecated use `CreatePromptPromptsUseCases$inboundSchema` instead. */
|
|
2232
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
2233
|
-
readonly Agents: "Agents";
|
|
2234
|
-
readonly AgentsSimulations: "Agents simulations";
|
|
2235
|
-
readonly APIInteraction: "API interaction";
|
|
2236
|
-
readonly AutonomousAgents: "Autonomous Agents";
|
|
2237
|
-
readonly Chatbots: "Chatbots";
|
|
2238
|
-
readonly Classification: "Classification";
|
|
2239
|
-
readonly CodeUnderstanding: "Code understanding";
|
|
2240
|
-
readonly CodeWriting: "Code writing";
|
|
2241
|
-
readonly DocumentsQA: "Documents QA";
|
|
2242
|
-
readonly Conversation: "Conversation";
|
|
2243
|
-
readonly Extraction: "Extraction";
|
|
2244
|
-
readonly MultiModal: "Multi-modal";
|
|
2245
|
-
readonly SelfChecking: "Self-checking";
|
|
2246
|
-
readonly Sql: "SQL";
|
|
2247
|
-
readonly Summarization: "Summarization";
|
|
2248
|
-
readonly Tagging: "Tagging";
|
|
2249
|
-
}>;
|
|
2250
|
-
/** @deprecated use `CreatePromptPromptsUseCases$outboundSchema` instead. */
|
|
2251
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
2252
|
-
readonly Agents: "Agents";
|
|
2253
|
-
readonly AgentsSimulations: "Agents simulations";
|
|
2254
|
-
readonly APIInteraction: "API interaction";
|
|
2255
|
-
readonly AutonomousAgents: "Autonomous Agents";
|
|
2256
|
-
readonly Chatbots: "Chatbots";
|
|
2257
|
-
readonly Classification: "Classification";
|
|
2258
|
-
readonly CodeUnderstanding: "Code understanding";
|
|
2259
|
-
readonly CodeWriting: "Code writing";
|
|
2260
|
-
readonly DocumentsQA: "Documents QA";
|
|
2261
|
-
readonly Conversation: "Conversation";
|
|
2262
|
-
readonly Extraction: "Extraction";
|
|
2263
|
-
readonly MultiModal: "Multi-modal";
|
|
2264
|
-
readonly SelfChecking: "Self-checking";
|
|
2265
|
-
readonly Sql: "SQL";
|
|
2266
|
-
readonly Summarization: "Summarization";
|
|
2267
|
-
readonly Tagging: "Tagging";
|
|
2268
|
-
}>;
|
|
2269
|
-
}
|
|
2270
|
-
/** @internal */
|
|
2271
|
-
export declare const CreatePromptPromptsLanguage$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsLanguage>;
|
|
2272
|
-
/** @internal */
|
|
2273
|
-
export declare const CreatePromptPromptsLanguage$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsLanguage>;
|
|
1946
|
+
export declare const CreatePromptPromptConfig$outboundSchema: z.ZodType<CreatePromptPromptConfig$Outbound, z.ZodTypeDef, CreatePromptPromptConfig>;
|
|
2274
1947
|
/**
|
|
2275
1948
|
* @internal
|
|
2276
1949
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2277
1950
|
*/
|
|
2278
|
-
export declare namespace
|
|
2279
|
-
/** @deprecated use `
|
|
2280
|
-
const inboundSchema: z.
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
readonly German: "German";
|
|
2286
|
-
readonly Russian: "Russian";
|
|
2287
|
-
readonly Spanish: "Spanish";
|
|
2288
|
-
}>;
|
|
2289
|
-
/** @deprecated use `CreatePromptPromptsLanguage$outboundSchema` instead. */
|
|
2290
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
2291
|
-
readonly Chinese: "Chinese";
|
|
2292
|
-
readonly Dutch: "Dutch";
|
|
2293
|
-
readonly English: "English";
|
|
2294
|
-
readonly French: "French";
|
|
2295
|
-
readonly German: "German";
|
|
2296
|
-
readonly Russian: "Russian";
|
|
2297
|
-
readonly Spanish: "Spanish";
|
|
2298
|
-
}>;
|
|
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;
|
|
2299
1958
|
}
|
|
1959
|
+
export declare function createPromptPromptConfigToJSON(createPromptPromptConfig: CreatePromptPromptConfig): string;
|
|
1960
|
+
export declare function createPromptPromptConfigFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptConfig, SDKValidationError>;
|
|
2300
1961
|
/** @internal */
|
|
2301
1962
|
export declare const CreatePromptPromptsMetadata$inboundSchema: z.ZodType<CreatePromptPromptsMetadata, z.ZodTypeDef, unknown>;
|
|
2302
1963
|
/** @internal */
|
|
@@ -2321,21 +1982,39 @@ export declare namespace CreatePromptPromptsMetadata$ {
|
|
|
2321
1982
|
export declare function createPromptPromptsMetadataToJSON(createPromptPromptsMetadata: CreatePromptPromptsMetadata): string;
|
|
2322
1983
|
export declare function createPromptPromptsMetadataFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsMetadata, SDKValidationError>;
|
|
2323
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 */
|
|
2324
2007
|
export declare const CreatePromptResponseBody$inboundSchema: z.ZodType<CreatePromptResponseBody, z.ZodTypeDef, unknown>;
|
|
2325
2008
|
/** @internal */
|
|
2326
2009
|
export type CreatePromptResponseBody$Outbound = {
|
|
2327
2010
|
_id: string;
|
|
2328
|
-
type: string;
|
|
2329
|
-
owner: string;
|
|
2330
|
-
domain_id: string;
|
|
2331
|
-
created: string;
|
|
2332
|
-
updated: string;
|
|
2333
|
-
created_by_id?: string | undefined;
|
|
2334
|
-
updated_by_id?: string | undefined;
|
|
2335
2011
|
display_name: string;
|
|
2012
|
+
domain_id: string;
|
|
2336
2013
|
description?: string | null | undefined;
|
|
2337
|
-
prompt_config
|
|
2014
|
+
prompt_config?: CreatePromptPromptConfig$Outbound | undefined;
|
|
2338
2015
|
metadata?: CreatePromptPromptsMetadata$Outbound | undefined;
|
|
2016
|
+
key?: string | undefined;
|
|
2017
|
+
type: string;
|
|
2339
2018
|
};
|
|
2340
2019
|
/** @internal */
|
|
2341
2020
|
export declare const CreatePromptResponseBody$outboundSchema: z.ZodType<CreatePromptResponseBody$Outbound, z.ZodTypeDef, CreatePromptResponseBody>;
|