@orq-ai/node 3.1.1 → 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
|
@@ -1,1286 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export type ListPromptVersionsRequest = {
|
|
6
|
-
promptId: string;
|
|
7
|
-
/**
|
|
8
|
-
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
9
|
-
*/
|
|
10
|
-
limit?: number | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
|
|
13
|
-
*/
|
|
14
|
-
startingAfter?: string | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
17
|
-
*/
|
|
18
|
-
endingBefore?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
export declare const ListPromptVersionsObject: {
|
|
21
|
-
readonly List: "list";
|
|
22
|
-
};
|
|
23
|
-
export type ListPromptVersionsObject = ClosedEnum<typeof ListPromptVersionsObject>;
|
|
24
|
-
export declare const ListPromptVersionsType: {
|
|
25
|
-
readonly Prompt: "prompt";
|
|
26
|
-
};
|
|
27
|
-
export type ListPromptVersionsType = ClosedEnum<typeof ListPromptVersionsType>;
|
|
28
|
-
/**
|
|
29
|
-
* The type of the model
|
|
30
|
-
*/
|
|
31
|
-
export declare const ListPromptVersionsModelType: {
|
|
32
|
-
readonly Chat: "chat";
|
|
33
|
-
readonly Completion: "completion";
|
|
34
|
-
readonly Embedding: "embedding";
|
|
35
|
-
readonly Vision: "vision";
|
|
36
|
-
readonly Image: "image";
|
|
37
|
-
readonly Tts: "tts";
|
|
38
|
-
readonly Stt: "stt";
|
|
39
|
-
readonly Rerank: "rerank";
|
|
40
|
-
readonly Moderations: "moderations";
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* The type of the model
|
|
44
|
-
*/
|
|
45
|
-
export type ListPromptVersionsModelType = ClosedEnum<typeof ListPromptVersionsModelType>;
|
|
46
|
-
/**
|
|
47
|
-
* Only supported on `image` models.
|
|
48
|
-
*/
|
|
49
|
-
export declare const ListPromptVersionsFormat: {
|
|
50
|
-
readonly Url: "url";
|
|
51
|
-
readonly B64Json: "b64_json";
|
|
52
|
-
readonly Text: "text";
|
|
53
|
-
readonly JsonObject: "json_object";
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Only supported on `image` models.
|
|
57
|
-
*/
|
|
58
|
-
export type ListPromptVersionsFormat = ClosedEnum<typeof ListPromptVersionsFormat>;
|
|
59
|
-
/**
|
|
60
|
-
* Only supported on `image` models.
|
|
61
|
-
*/
|
|
62
|
-
export declare const ListPromptVersionsQuality: {
|
|
63
|
-
readonly Standard: "standard";
|
|
64
|
-
readonly Hd: "hd";
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Only supported on `image` models.
|
|
68
|
-
*/
|
|
69
|
-
export type ListPromptVersionsQuality = ClosedEnum<typeof ListPromptVersionsQuality>;
|
|
70
|
-
export declare const ListPromptVersionsResponseFormatPromptsType: {
|
|
71
|
-
readonly JsonObject: "json_object";
|
|
72
|
-
};
|
|
73
|
-
export type ListPromptVersionsResponseFormatPromptsType = ClosedEnum<typeof ListPromptVersionsResponseFormatPromptsType>;
|
|
74
|
-
export type ListPromptVersionsResponseFormat2 = {
|
|
75
|
-
type: ListPromptVersionsResponseFormatPromptsType;
|
|
76
|
-
};
|
|
77
|
-
export declare const ListPromptVersionsResponseFormatType: {
|
|
78
|
-
readonly JsonSchema: "json_schema";
|
|
79
|
-
};
|
|
80
|
-
export type ListPromptVersionsResponseFormatType = ClosedEnum<typeof ListPromptVersionsResponseFormatType>;
|
|
81
|
-
export type ListPromptVersionsResponseFormatJsonSchema = {
|
|
82
|
-
name: string;
|
|
83
|
-
strict: boolean;
|
|
84
|
-
schema: {
|
|
85
|
-
[k: string]: any;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
export type ListPromptVersionsResponseFormat1 = {
|
|
89
|
-
type: ListPromptVersionsResponseFormatType;
|
|
90
|
-
jsonSchema: ListPromptVersionsResponseFormatJsonSchema;
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* An object specifying the format that the model must output.
|
|
94
|
-
*
|
|
95
|
-
* @remarks
|
|
96
|
-
*
|
|
97
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
98
|
-
*
|
|
99
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
100
|
-
*
|
|
101
|
-
* 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.
|
|
102
|
-
*/
|
|
103
|
-
export type ListPromptVersionsResponseFormat = ListPromptVersionsResponseFormat2 | ListPromptVersionsResponseFormat1;
|
|
104
|
-
/**
|
|
105
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
106
|
-
*/
|
|
107
|
-
export declare const ListPromptVersionsPhotoRealVersion: {
|
|
108
|
-
readonly V1: "v1";
|
|
109
|
-
readonly V2: "v2";
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
113
|
-
*/
|
|
114
|
-
export type ListPromptVersionsPhotoRealVersion = ClosedEnum<typeof ListPromptVersionsPhotoRealVersion>;
|
|
115
|
-
/**
|
|
116
|
-
* The format to return the embeddings
|
|
117
|
-
*/
|
|
118
|
-
export declare const ListPromptVersionsEncodingFormat: {
|
|
119
|
-
readonly Float: "float";
|
|
120
|
-
readonly Base64: "base64";
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* The format to return the embeddings
|
|
124
|
-
*/
|
|
125
|
-
export type ListPromptVersionsEncodingFormat = ClosedEnum<typeof ListPromptVersionsEncodingFormat>;
|
|
126
|
-
/**
|
|
127
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
128
|
-
*/
|
|
129
|
-
export declare const ListPromptVersionsReasoningEffort: {
|
|
130
|
-
readonly Low: "low";
|
|
131
|
-
readonly Medium: "medium";
|
|
132
|
-
readonly High: "high";
|
|
133
|
-
};
|
|
134
|
-
/**
|
|
135
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
136
|
-
*/
|
|
137
|
-
export type ListPromptVersionsReasoningEffort = ClosedEnum<typeof ListPromptVersionsReasoningEffort>;
|
|
138
|
-
/**
|
|
139
|
-
* Model Parameters: Not all parameters apply to every model
|
|
140
|
-
*/
|
|
141
|
-
export type ListPromptVersionsModelParameters = {
|
|
142
|
-
/**
|
|
143
|
-
* Only supported on `chat` and `completion` models.
|
|
144
|
-
*/
|
|
145
|
-
temperature?: number | undefined;
|
|
146
|
-
/**
|
|
147
|
-
* Only supported on `chat` and `completion` models.
|
|
148
|
-
*/
|
|
149
|
-
maxTokens?: number | undefined;
|
|
150
|
-
/**
|
|
151
|
-
* Only supported on `chat` and `completion` models.
|
|
152
|
-
*/
|
|
153
|
-
topK?: number | undefined;
|
|
154
|
-
/**
|
|
155
|
-
* Only supported on `chat` and `completion` models.
|
|
156
|
-
*/
|
|
157
|
-
topP?: number | undefined;
|
|
158
|
-
/**
|
|
159
|
-
* Only supported on `chat` and `completion` models.
|
|
160
|
-
*/
|
|
161
|
-
frequencyPenalty?: number | undefined;
|
|
162
|
-
/**
|
|
163
|
-
* Only supported on `chat` and `completion` models.
|
|
164
|
-
*/
|
|
165
|
-
presencePenalty?: number | undefined;
|
|
166
|
-
/**
|
|
167
|
-
* Only supported on `image` models.
|
|
168
|
-
*/
|
|
169
|
-
numImages?: number | undefined;
|
|
170
|
-
/**
|
|
171
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
172
|
-
*/
|
|
173
|
-
seed?: number | undefined;
|
|
174
|
-
/**
|
|
175
|
-
* Only supported on `image` models.
|
|
176
|
-
*/
|
|
177
|
-
format?: ListPromptVersionsFormat | undefined;
|
|
178
|
-
/**
|
|
179
|
-
* Only supported on `image` models.
|
|
180
|
-
*/
|
|
181
|
-
dimensions?: string | undefined;
|
|
182
|
-
/**
|
|
183
|
-
* Only supported on `image` models.
|
|
184
|
-
*/
|
|
185
|
-
quality?: ListPromptVersionsQuality | undefined;
|
|
186
|
-
/**
|
|
187
|
-
* Only supported on `image` models.
|
|
188
|
-
*/
|
|
189
|
-
style?: string | undefined;
|
|
190
|
-
/**
|
|
191
|
-
* An object specifying the format that the model must output.
|
|
192
|
-
*
|
|
193
|
-
* @remarks
|
|
194
|
-
*
|
|
195
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
196
|
-
*
|
|
197
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
198
|
-
*
|
|
199
|
-
* 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.
|
|
200
|
-
*/
|
|
201
|
-
responseFormat?: ListPromptVersionsResponseFormat2 | ListPromptVersionsResponseFormat1 | null | undefined;
|
|
202
|
-
/**
|
|
203
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
204
|
-
*/
|
|
205
|
-
photoRealVersion?: ListPromptVersionsPhotoRealVersion | undefined;
|
|
206
|
-
/**
|
|
207
|
-
* The format to return the embeddings
|
|
208
|
-
*/
|
|
209
|
-
encodingFormat?: ListPromptVersionsEncodingFormat | undefined;
|
|
210
|
-
/**
|
|
211
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
212
|
-
*/
|
|
213
|
-
reasoningEffort?: ListPromptVersionsReasoningEffort | undefined;
|
|
214
|
-
};
|
|
215
|
-
export declare const ListPromptVersionsProvider: {
|
|
216
|
-
readonly Cohere: "cohere";
|
|
217
|
-
readonly Openai: "openai";
|
|
218
|
-
readonly Anthropic: "anthropic";
|
|
219
|
-
readonly Huggingface: "huggingface";
|
|
220
|
-
readonly Replicate: "replicate";
|
|
221
|
-
readonly Google: "google";
|
|
222
|
-
readonly GoogleAi: "google-ai";
|
|
223
|
-
readonly Azure: "azure";
|
|
224
|
-
readonly Aws: "aws";
|
|
225
|
-
readonly Anyscale: "anyscale";
|
|
226
|
-
readonly Perplexity: "perplexity";
|
|
227
|
-
readonly Groq: "groq";
|
|
228
|
-
readonly Fal: "fal";
|
|
229
|
-
readonly Leonardoai: "leonardoai";
|
|
230
|
-
readonly Nvidia: "nvidia";
|
|
231
|
-
readonly Jina: "jina";
|
|
232
|
-
readonly Togetherai: "togetherai";
|
|
233
|
-
readonly Elevenlabs: "elevenlabs";
|
|
234
|
-
};
|
|
235
|
-
export type ListPromptVersionsProvider = ClosedEnum<typeof ListPromptVersionsProvider>;
|
|
236
|
-
/**
|
|
237
|
-
* The role of the prompt message
|
|
238
|
-
*/
|
|
239
|
-
export declare const ListPromptVersionsRole: {
|
|
240
|
-
readonly System: "system";
|
|
241
|
-
readonly Assistant: "assistant";
|
|
242
|
-
readonly User: "user";
|
|
243
|
-
readonly Exception: "exception";
|
|
244
|
-
readonly Tool: "tool";
|
|
245
|
-
readonly Prompt: "prompt";
|
|
246
|
-
readonly Correction: "correction";
|
|
247
|
-
readonly ExpectedOutput: "expected_output";
|
|
248
|
-
};
|
|
249
|
-
/**
|
|
250
|
-
* The role of the prompt message
|
|
251
|
-
*/
|
|
252
|
-
export type ListPromptVersionsRole = ClosedEnum<typeof ListPromptVersionsRole>;
|
|
253
|
-
export declare const ListPromptVersions2PromptsType: {
|
|
254
|
-
readonly ImageUrl: "image_url";
|
|
255
|
-
};
|
|
256
|
-
export type ListPromptVersions2PromptsType = ClosedEnum<typeof ListPromptVersions2PromptsType>;
|
|
257
|
-
export type ListPromptVersions2ImageUrl = {
|
|
258
|
-
/**
|
|
259
|
-
* The orq.ai id of the image
|
|
260
|
-
*/
|
|
261
|
-
id?: string | undefined;
|
|
262
|
-
/**
|
|
263
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
264
|
-
*/
|
|
265
|
-
url: string;
|
|
266
|
-
/**
|
|
267
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
268
|
-
*/
|
|
269
|
-
detail?: string | undefined;
|
|
270
|
-
};
|
|
271
|
-
/**
|
|
272
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
273
|
-
*/
|
|
274
|
-
export type ListPromptVersions22 = {
|
|
275
|
-
type: ListPromptVersions2PromptsType;
|
|
276
|
-
imageUrl: ListPromptVersions2ImageUrl;
|
|
277
|
-
};
|
|
278
|
-
export declare const ListPromptVersions2Type: {
|
|
279
|
-
readonly Text: "text";
|
|
280
|
-
};
|
|
281
|
-
export type ListPromptVersions2Type = ClosedEnum<typeof ListPromptVersions2Type>;
|
|
282
|
-
/**
|
|
283
|
-
* Text content part of a prompt message
|
|
284
|
-
*/
|
|
285
|
-
export type ListPromptVersions21 = {
|
|
286
|
-
type: ListPromptVersions2Type;
|
|
287
|
-
text: string;
|
|
288
|
-
};
|
|
289
|
-
export type ListPromptVersionsContent2 = ListPromptVersions21 | ListPromptVersions22;
|
|
290
|
-
/**
|
|
291
|
-
* 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.
|
|
292
|
-
*/
|
|
293
|
-
export type ListPromptVersionsContent = string | Array<ListPromptVersions21 | ListPromptVersions22>;
|
|
294
|
-
export declare const ListPromptVersionsPromptsType: {
|
|
295
|
-
readonly Function: "function";
|
|
296
|
-
};
|
|
297
|
-
export type ListPromptVersionsPromptsType = ClosedEnum<typeof ListPromptVersionsPromptsType>;
|
|
298
|
-
export type ListPromptVersionsFunction = {
|
|
299
|
-
name: string;
|
|
300
|
-
/**
|
|
301
|
-
* JSON string arguments for the functions
|
|
302
|
-
*/
|
|
303
|
-
arguments: string;
|
|
304
|
-
};
|
|
305
|
-
export type ListPromptVersionsToolCalls = {
|
|
306
|
-
id?: string | undefined;
|
|
307
|
-
index?: number | undefined;
|
|
308
|
-
type: ListPromptVersionsPromptsType;
|
|
309
|
-
function: ListPromptVersionsFunction;
|
|
310
|
-
};
|
|
311
|
-
export type ListPromptVersionsMessages = {
|
|
312
|
-
/**
|
|
313
|
-
* The role of the prompt message
|
|
314
|
-
*/
|
|
315
|
-
role: ListPromptVersionsRole;
|
|
316
|
-
/**
|
|
317
|
-
* 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.
|
|
318
|
-
*/
|
|
319
|
-
content: string | Array<ListPromptVersions21 | ListPromptVersions22>;
|
|
320
|
-
toolCalls?: Array<ListPromptVersionsToolCalls> | undefined;
|
|
321
|
-
};
|
|
322
|
-
/**
|
|
323
|
-
* A list of messages compatible with the openAI schema
|
|
324
|
-
*/
|
|
325
|
-
export type ListPromptVersionsPromptConfig = {
|
|
326
|
-
stream?: boolean | undefined;
|
|
327
|
-
model?: string | undefined;
|
|
328
|
-
/**
|
|
329
|
-
* The id of the resource
|
|
330
|
-
*/
|
|
331
|
-
modelDbId?: string | undefined;
|
|
332
|
-
/**
|
|
333
|
-
* The type of the model
|
|
334
|
-
*/
|
|
335
|
-
modelType?: ListPromptVersionsModelType | undefined;
|
|
336
|
-
/**
|
|
337
|
-
* Model Parameters: Not all parameters apply to every model
|
|
338
|
-
*/
|
|
339
|
-
modelParameters?: ListPromptVersionsModelParameters | undefined;
|
|
340
|
-
provider?: ListPromptVersionsProvider | undefined;
|
|
341
|
-
/**
|
|
342
|
-
* The id of the resource
|
|
343
|
-
*/
|
|
344
|
-
integrationId?: string | null | undefined;
|
|
345
|
-
version?: string | undefined;
|
|
346
|
-
messages: Array<ListPromptVersionsMessages>;
|
|
347
|
-
};
|
|
348
|
-
export declare const ListPromptVersionsUseCases: {
|
|
349
|
-
readonly Agents: "Agents";
|
|
350
|
-
readonly AgentsSimulations: "Agents simulations";
|
|
351
|
-
readonly APIInteraction: "API interaction";
|
|
352
|
-
readonly AutonomousAgents: "Autonomous Agents";
|
|
353
|
-
readonly Chatbots: "Chatbots";
|
|
354
|
-
readonly Classification: "Classification";
|
|
355
|
-
readonly CodeUnderstanding: "Code understanding";
|
|
356
|
-
readonly CodeWriting: "Code writing";
|
|
357
|
-
readonly DocumentsQA: "Documents QA";
|
|
358
|
-
readonly Conversation: "Conversation";
|
|
359
|
-
readonly Extraction: "Extraction";
|
|
360
|
-
readonly MultiModal: "Multi-modal";
|
|
361
|
-
readonly SelfChecking: "Self-checking";
|
|
362
|
-
readonly Sql: "SQL";
|
|
363
|
-
readonly Summarization: "Summarization";
|
|
364
|
-
readonly Tagging: "Tagging";
|
|
365
|
-
};
|
|
366
|
-
export type ListPromptVersionsUseCases = ClosedEnum<typeof ListPromptVersionsUseCases>;
|
|
367
|
-
/**
|
|
368
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
369
|
-
*/
|
|
370
|
-
export declare const ListPromptVersionsLanguage: {
|
|
371
|
-
readonly Chinese: "Chinese";
|
|
372
|
-
readonly Dutch: "Dutch";
|
|
373
|
-
readonly English: "English";
|
|
374
|
-
readonly French: "French";
|
|
375
|
-
readonly German: "German";
|
|
376
|
-
readonly Russian: "Russian";
|
|
377
|
-
readonly Spanish: "Spanish";
|
|
378
|
-
};
|
|
379
|
-
/**
|
|
380
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
381
|
-
*/
|
|
382
|
-
export type ListPromptVersionsLanguage = ClosedEnum<typeof ListPromptVersionsLanguage>;
|
|
383
|
-
export type ListPromptVersionsMetadata = {
|
|
384
|
-
/**
|
|
385
|
-
* A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
|
|
386
|
-
*/
|
|
387
|
-
useCases?: Array<ListPromptVersionsUseCases> | undefined;
|
|
388
|
-
/**
|
|
389
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
390
|
-
*/
|
|
391
|
-
language?: ListPromptVersionsLanguage | undefined;
|
|
392
|
-
};
|
|
393
|
-
export type ListPromptVersionsData = {
|
|
394
|
-
id: string;
|
|
395
|
-
type: ListPromptVersionsType;
|
|
396
|
-
createdById?: string | undefined;
|
|
397
|
-
updatedById?: string | undefined;
|
|
398
|
-
/**
|
|
399
|
-
* 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
|
|
400
|
-
*/
|
|
401
|
-
description?: string | null | undefined;
|
|
402
|
-
/**
|
|
403
|
-
* A list of messages compatible with the openAI schema
|
|
404
|
-
*/
|
|
405
|
-
promptConfig: ListPromptVersionsPromptConfig;
|
|
406
|
-
metadata?: ListPromptVersionsMetadata | undefined;
|
|
407
|
-
timestamp: string;
|
|
408
|
-
};
|
|
409
|
-
/**
|
|
410
|
-
* Prompt versions retrieved.
|
|
411
|
-
*/
|
|
412
|
-
export type ListPromptVersionsResponseBody = {
|
|
413
|
-
object: ListPromptVersionsObject;
|
|
414
|
-
data: Array<ListPromptVersionsData>;
|
|
415
|
-
hasMore: boolean;
|
|
416
|
-
};
|
|
417
|
-
/** @internal */
|
|
418
|
-
export declare const ListPromptVersionsRequest$inboundSchema: z.ZodType<ListPromptVersionsRequest, z.ZodTypeDef, unknown>;
|
|
419
|
-
/** @internal */
|
|
420
|
-
export type ListPromptVersionsRequest$Outbound = {
|
|
421
|
-
prompt_id: string;
|
|
422
|
-
limit: number;
|
|
423
|
-
starting_after?: string | undefined;
|
|
424
|
-
ending_before?: string | undefined;
|
|
425
|
-
};
|
|
426
|
-
/** @internal */
|
|
427
|
-
export declare const ListPromptVersionsRequest$outboundSchema: z.ZodType<ListPromptVersionsRequest$Outbound, z.ZodTypeDef, ListPromptVersionsRequest>;
|
|
428
|
-
/**
|
|
429
|
-
* @internal
|
|
430
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
431
|
-
*/
|
|
432
|
-
export declare namespace ListPromptVersionsRequest$ {
|
|
433
|
-
/** @deprecated use `ListPromptVersionsRequest$inboundSchema` instead. */
|
|
434
|
-
const inboundSchema: z.ZodType<ListPromptVersionsRequest, z.ZodTypeDef, unknown>;
|
|
435
|
-
/** @deprecated use `ListPromptVersionsRequest$outboundSchema` instead. */
|
|
436
|
-
const outboundSchema: z.ZodType<ListPromptVersionsRequest$Outbound, z.ZodTypeDef, ListPromptVersionsRequest>;
|
|
437
|
-
/** @deprecated use `ListPromptVersionsRequest$Outbound` instead. */
|
|
438
|
-
type Outbound = ListPromptVersionsRequest$Outbound;
|
|
439
|
-
}
|
|
440
|
-
export declare function listPromptVersionsRequestToJSON(listPromptVersionsRequest: ListPromptVersionsRequest): string;
|
|
441
|
-
export declare function listPromptVersionsRequestFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsRequest, SDKValidationError>;
|
|
442
|
-
/** @internal */
|
|
443
|
-
export declare const ListPromptVersionsObject$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsObject>;
|
|
444
|
-
/** @internal */
|
|
445
|
-
export declare const ListPromptVersionsObject$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsObject>;
|
|
446
|
-
/**
|
|
447
|
-
* @internal
|
|
448
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
449
|
-
*/
|
|
450
|
-
export declare namespace ListPromptVersionsObject$ {
|
|
451
|
-
/** @deprecated use `ListPromptVersionsObject$inboundSchema` instead. */
|
|
452
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
453
|
-
readonly List: "list";
|
|
454
|
-
}>;
|
|
455
|
-
/** @deprecated use `ListPromptVersionsObject$outboundSchema` instead. */
|
|
456
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
457
|
-
readonly List: "list";
|
|
458
|
-
}>;
|
|
459
|
-
}
|
|
460
|
-
/** @internal */
|
|
461
|
-
export declare const ListPromptVersionsType$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsType>;
|
|
462
|
-
/** @internal */
|
|
463
|
-
export declare const ListPromptVersionsType$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsType>;
|
|
464
|
-
/**
|
|
465
|
-
* @internal
|
|
466
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
467
|
-
*/
|
|
468
|
-
export declare namespace ListPromptVersionsType$ {
|
|
469
|
-
/** @deprecated use `ListPromptVersionsType$inboundSchema` instead. */
|
|
470
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
471
|
-
readonly Prompt: "prompt";
|
|
472
|
-
}>;
|
|
473
|
-
/** @deprecated use `ListPromptVersionsType$outboundSchema` instead. */
|
|
474
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
475
|
-
readonly Prompt: "prompt";
|
|
476
|
-
}>;
|
|
477
|
-
}
|
|
478
|
-
/** @internal */
|
|
479
|
-
export declare const ListPromptVersionsModelType$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsModelType>;
|
|
480
|
-
/** @internal */
|
|
481
|
-
export declare const ListPromptVersionsModelType$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsModelType>;
|
|
482
|
-
/**
|
|
483
|
-
* @internal
|
|
484
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
485
|
-
*/
|
|
486
|
-
export declare namespace ListPromptVersionsModelType$ {
|
|
487
|
-
/** @deprecated use `ListPromptVersionsModelType$inboundSchema` instead. */
|
|
488
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
489
|
-
readonly Chat: "chat";
|
|
490
|
-
readonly Completion: "completion";
|
|
491
|
-
readonly Embedding: "embedding";
|
|
492
|
-
readonly Vision: "vision";
|
|
493
|
-
readonly Image: "image";
|
|
494
|
-
readonly Tts: "tts";
|
|
495
|
-
readonly Stt: "stt";
|
|
496
|
-
readonly Rerank: "rerank";
|
|
497
|
-
readonly Moderations: "moderations";
|
|
498
|
-
}>;
|
|
499
|
-
/** @deprecated use `ListPromptVersionsModelType$outboundSchema` instead. */
|
|
500
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
501
|
-
readonly Chat: "chat";
|
|
502
|
-
readonly Completion: "completion";
|
|
503
|
-
readonly Embedding: "embedding";
|
|
504
|
-
readonly Vision: "vision";
|
|
505
|
-
readonly Image: "image";
|
|
506
|
-
readonly Tts: "tts";
|
|
507
|
-
readonly Stt: "stt";
|
|
508
|
-
readonly Rerank: "rerank";
|
|
509
|
-
readonly Moderations: "moderations";
|
|
510
|
-
}>;
|
|
511
|
-
}
|
|
512
|
-
/** @internal */
|
|
513
|
-
export declare const ListPromptVersionsFormat$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsFormat>;
|
|
514
|
-
/** @internal */
|
|
515
|
-
export declare const ListPromptVersionsFormat$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsFormat>;
|
|
516
|
-
/**
|
|
517
|
-
* @internal
|
|
518
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
519
|
-
*/
|
|
520
|
-
export declare namespace ListPromptVersionsFormat$ {
|
|
521
|
-
/** @deprecated use `ListPromptVersionsFormat$inboundSchema` instead. */
|
|
522
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
523
|
-
readonly Url: "url";
|
|
524
|
-
readonly B64Json: "b64_json";
|
|
525
|
-
readonly Text: "text";
|
|
526
|
-
readonly JsonObject: "json_object";
|
|
527
|
-
}>;
|
|
528
|
-
/** @deprecated use `ListPromptVersionsFormat$outboundSchema` instead. */
|
|
529
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
530
|
-
readonly Url: "url";
|
|
531
|
-
readonly B64Json: "b64_json";
|
|
532
|
-
readonly Text: "text";
|
|
533
|
-
readonly JsonObject: "json_object";
|
|
534
|
-
}>;
|
|
535
|
-
}
|
|
536
|
-
/** @internal */
|
|
537
|
-
export declare const ListPromptVersionsQuality$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsQuality>;
|
|
538
|
-
/** @internal */
|
|
539
|
-
export declare const ListPromptVersionsQuality$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsQuality>;
|
|
540
|
-
/**
|
|
541
|
-
* @internal
|
|
542
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
543
|
-
*/
|
|
544
|
-
export declare namespace ListPromptVersionsQuality$ {
|
|
545
|
-
/** @deprecated use `ListPromptVersionsQuality$inboundSchema` instead. */
|
|
546
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
547
|
-
readonly Standard: "standard";
|
|
548
|
-
readonly Hd: "hd";
|
|
549
|
-
}>;
|
|
550
|
-
/** @deprecated use `ListPromptVersionsQuality$outboundSchema` instead. */
|
|
551
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
552
|
-
readonly Standard: "standard";
|
|
553
|
-
readonly Hd: "hd";
|
|
554
|
-
}>;
|
|
555
|
-
}
|
|
556
|
-
/** @internal */
|
|
557
|
-
export declare const ListPromptVersionsResponseFormatPromptsType$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsType>;
|
|
558
|
-
/** @internal */
|
|
559
|
-
export declare const ListPromptVersionsResponseFormatPromptsType$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsType>;
|
|
560
|
-
/**
|
|
561
|
-
* @internal
|
|
562
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
563
|
-
*/
|
|
564
|
-
export declare namespace ListPromptVersionsResponseFormatPromptsType$ {
|
|
565
|
-
/** @deprecated use `ListPromptVersionsResponseFormatPromptsType$inboundSchema` instead. */
|
|
566
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
567
|
-
readonly JsonObject: "json_object";
|
|
568
|
-
}>;
|
|
569
|
-
/** @deprecated use `ListPromptVersionsResponseFormatPromptsType$outboundSchema` instead. */
|
|
570
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
571
|
-
readonly JsonObject: "json_object";
|
|
572
|
-
}>;
|
|
573
|
-
}
|
|
574
|
-
/** @internal */
|
|
575
|
-
export declare const ListPromptVersionsResponseFormat2$inboundSchema: z.ZodType<ListPromptVersionsResponseFormat2, z.ZodTypeDef, unknown>;
|
|
576
|
-
/** @internal */
|
|
577
|
-
export type ListPromptVersionsResponseFormat2$Outbound = {
|
|
578
|
-
type: string;
|
|
579
|
-
};
|
|
580
|
-
/** @internal */
|
|
581
|
-
export declare const ListPromptVersionsResponseFormat2$outboundSchema: z.ZodType<ListPromptVersionsResponseFormat2$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormat2>;
|
|
582
|
-
/**
|
|
583
|
-
* @internal
|
|
584
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
585
|
-
*/
|
|
586
|
-
export declare namespace ListPromptVersionsResponseFormat2$ {
|
|
587
|
-
/** @deprecated use `ListPromptVersionsResponseFormat2$inboundSchema` instead. */
|
|
588
|
-
const inboundSchema: z.ZodType<ListPromptVersionsResponseFormat2, z.ZodTypeDef, unknown>;
|
|
589
|
-
/** @deprecated use `ListPromptVersionsResponseFormat2$outboundSchema` instead. */
|
|
590
|
-
const outboundSchema: z.ZodType<ListPromptVersionsResponseFormat2$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormat2>;
|
|
591
|
-
/** @deprecated use `ListPromptVersionsResponseFormat2$Outbound` instead. */
|
|
592
|
-
type Outbound = ListPromptVersionsResponseFormat2$Outbound;
|
|
593
|
-
}
|
|
594
|
-
export declare function listPromptVersionsResponseFormat2ToJSON(listPromptVersionsResponseFormat2: ListPromptVersionsResponseFormat2): string;
|
|
595
|
-
export declare function listPromptVersionsResponseFormat2FromJSON(jsonString: string): SafeParseResult<ListPromptVersionsResponseFormat2, SDKValidationError>;
|
|
596
|
-
/** @internal */
|
|
597
|
-
export declare const ListPromptVersionsResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatType>;
|
|
598
|
-
/** @internal */
|
|
599
|
-
export declare const ListPromptVersionsResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatType>;
|
|
600
|
-
/**
|
|
601
|
-
* @internal
|
|
602
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
603
|
-
*/
|
|
604
|
-
export declare namespace ListPromptVersionsResponseFormatType$ {
|
|
605
|
-
/** @deprecated use `ListPromptVersionsResponseFormatType$inboundSchema` instead. */
|
|
606
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
607
|
-
readonly JsonSchema: "json_schema";
|
|
608
|
-
}>;
|
|
609
|
-
/** @deprecated use `ListPromptVersionsResponseFormatType$outboundSchema` instead. */
|
|
610
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
611
|
-
readonly JsonSchema: "json_schema";
|
|
612
|
-
}>;
|
|
613
|
-
}
|
|
614
|
-
/** @internal */
|
|
615
|
-
export declare const ListPromptVersionsResponseFormatJsonSchema$inboundSchema: z.ZodType<ListPromptVersionsResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
616
|
-
/** @internal */
|
|
617
|
-
export type ListPromptVersionsResponseFormatJsonSchema$Outbound = {
|
|
618
|
-
name: string;
|
|
619
|
-
strict: boolean;
|
|
620
|
-
schema: {
|
|
621
|
-
[k: string]: any;
|
|
622
|
-
};
|
|
623
|
-
};
|
|
624
|
-
/** @internal */
|
|
625
|
-
export declare const ListPromptVersionsResponseFormatJsonSchema$outboundSchema: z.ZodType<ListPromptVersionsResponseFormatJsonSchema$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormatJsonSchema>;
|
|
626
|
-
/**
|
|
627
|
-
* @internal
|
|
628
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
629
|
-
*/
|
|
630
|
-
export declare namespace ListPromptVersionsResponseFormatJsonSchema$ {
|
|
631
|
-
/** @deprecated use `ListPromptVersionsResponseFormatJsonSchema$inboundSchema` instead. */
|
|
632
|
-
const inboundSchema: z.ZodType<ListPromptVersionsResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
633
|
-
/** @deprecated use `ListPromptVersionsResponseFormatJsonSchema$outboundSchema` instead. */
|
|
634
|
-
const outboundSchema: z.ZodType<ListPromptVersionsResponseFormatJsonSchema$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormatJsonSchema>;
|
|
635
|
-
/** @deprecated use `ListPromptVersionsResponseFormatJsonSchema$Outbound` instead. */
|
|
636
|
-
type Outbound = ListPromptVersionsResponseFormatJsonSchema$Outbound;
|
|
637
|
-
}
|
|
638
|
-
export declare function listPromptVersionsResponseFormatJsonSchemaToJSON(listPromptVersionsResponseFormatJsonSchema: ListPromptVersionsResponseFormatJsonSchema): string;
|
|
639
|
-
export declare function listPromptVersionsResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsResponseFormatJsonSchema, SDKValidationError>;
|
|
640
|
-
/** @internal */
|
|
641
|
-
export declare const ListPromptVersionsResponseFormat1$inboundSchema: z.ZodType<ListPromptVersionsResponseFormat1, z.ZodTypeDef, unknown>;
|
|
642
|
-
/** @internal */
|
|
643
|
-
export type ListPromptVersionsResponseFormat1$Outbound = {
|
|
644
|
-
type: string;
|
|
645
|
-
json_schema: ListPromptVersionsResponseFormatJsonSchema$Outbound;
|
|
646
|
-
};
|
|
647
|
-
/** @internal */
|
|
648
|
-
export declare const ListPromptVersionsResponseFormat1$outboundSchema: z.ZodType<ListPromptVersionsResponseFormat1$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormat1>;
|
|
649
|
-
/**
|
|
650
|
-
* @internal
|
|
651
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
652
|
-
*/
|
|
653
|
-
export declare namespace ListPromptVersionsResponseFormat1$ {
|
|
654
|
-
/** @deprecated use `ListPromptVersionsResponseFormat1$inboundSchema` instead. */
|
|
655
|
-
const inboundSchema: z.ZodType<ListPromptVersionsResponseFormat1, z.ZodTypeDef, unknown>;
|
|
656
|
-
/** @deprecated use `ListPromptVersionsResponseFormat1$outboundSchema` instead. */
|
|
657
|
-
const outboundSchema: z.ZodType<ListPromptVersionsResponseFormat1$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormat1>;
|
|
658
|
-
/** @deprecated use `ListPromptVersionsResponseFormat1$Outbound` instead. */
|
|
659
|
-
type Outbound = ListPromptVersionsResponseFormat1$Outbound;
|
|
660
|
-
}
|
|
661
|
-
export declare function listPromptVersionsResponseFormat1ToJSON(listPromptVersionsResponseFormat1: ListPromptVersionsResponseFormat1): string;
|
|
662
|
-
export declare function listPromptVersionsResponseFormat1FromJSON(jsonString: string): SafeParseResult<ListPromptVersionsResponseFormat1, SDKValidationError>;
|
|
663
|
-
/** @internal */
|
|
664
|
-
export declare const ListPromptVersionsResponseFormat$inboundSchema: z.ZodType<ListPromptVersionsResponseFormat, z.ZodTypeDef, unknown>;
|
|
665
|
-
/** @internal */
|
|
666
|
-
export type ListPromptVersionsResponseFormat$Outbound = ListPromptVersionsResponseFormat2$Outbound | ListPromptVersionsResponseFormat1$Outbound;
|
|
667
|
-
/** @internal */
|
|
668
|
-
export declare const ListPromptVersionsResponseFormat$outboundSchema: z.ZodType<ListPromptVersionsResponseFormat$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormat>;
|
|
669
|
-
/**
|
|
670
|
-
* @internal
|
|
671
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
672
|
-
*/
|
|
673
|
-
export declare namespace ListPromptVersionsResponseFormat$ {
|
|
674
|
-
/** @deprecated use `ListPromptVersionsResponseFormat$inboundSchema` instead. */
|
|
675
|
-
const inboundSchema: z.ZodType<ListPromptVersionsResponseFormat, z.ZodTypeDef, unknown>;
|
|
676
|
-
/** @deprecated use `ListPromptVersionsResponseFormat$outboundSchema` instead. */
|
|
677
|
-
const outboundSchema: z.ZodType<ListPromptVersionsResponseFormat$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormat>;
|
|
678
|
-
/** @deprecated use `ListPromptVersionsResponseFormat$Outbound` instead. */
|
|
679
|
-
type Outbound = ListPromptVersionsResponseFormat$Outbound;
|
|
680
|
-
}
|
|
681
|
-
export declare function listPromptVersionsResponseFormatToJSON(listPromptVersionsResponseFormat: ListPromptVersionsResponseFormat): string;
|
|
682
|
-
export declare function listPromptVersionsResponseFormatFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsResponseFormat, SDKValidationError>;
|
|
683
|
-
/** @internal */
|
|
684
|
-
export declare const ListPromptVersionsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsPhotoRealVersion>;
|
|
685
|
-
/** @internal */
|
|
686
|
-
export declare const ListPromptVersionsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsPhotoRealVersion>;
|
|
687
|
-
/**
|
|
688
|
-
* @internal
|
|
689
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
690
|
-
*/
|
|
691
|
-
export declare namespace ListPromptVersionsPhotoRealVersion$ {
|
|
692
|
-
/** @deprecated use `ListPromptVersionsPhotoRealVersion$inboundSchema` instead. */
|
|
693
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
694
|
-
readonly V1: "v1";
|
|
695
|
-
readonly V2: "v2";
|
|
696
|
-
}>;
|
|
697
|
-
/** @deprecated use `ListPromptVersionsPhotoRealVersion$outboundSchema` instead. */
|
|
698
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
699
|
-
readonly V1: "v1";
|
|
700
|
-
readonly V2: "v2";
|
|
701
|
-
}>;
|
|
702
|
-
}
|
|
703
|
-
/** @internal */
|
|
704
|
-
export declare const ListPromptVersionsEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsEncodingFormat>;
|
|
705
|
-
/** @internal */
|
|
706
|
-
export declare const ListPromptVersionsEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsEncodingFormat>;
|
|
707
|
-
/**
|
|
708
|
-
* @internal
|
|
709
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
710
|
-
*/
|
|
711
|
-
export declare namespace ListPromptVersionsEncodingFormat$ {
|
|
712
|
-
/** @deprecated use `ListPromptVersionsEncodingFormat$inboundSchema` instead. */
|
|
713
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
714
|
-
readonly Float: "float";
|
|
715
|
-
readonly Base64: "base64";
|
|
716
|
-
}>;
|
|
717
|
-
/** @deprecated use `ListPromptVersionsEncodingFormat$outboundSchema` instead. */
|
|
718
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
719
|
-
readonly Float: "float";
|
|
720
|
-
readonly Base64: "base64";
|
|
721
|
-
}>;
|
|
722
|
-
}
|
|
723
|
-
/** @internal */
|
|
724
|
-
export declare const ListPromptVersionsReasoningEffort$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsReasoningEffort>;
|
|
725
|
-
/** @internal */
|
|
726
|
-
export declare const ListPromptVersionsReasoningEffort$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsReasoningEffort>;
|
|
727
|
-
/**
|
|
728
|
-
* @internal
|
|
729
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
730
|
-
*/
|
|
731
|
-
export declare namespace ListPromptVersionsReasoningEffort$ {
|
|
732
|
-
/** @deprecated use `ListPromptVersionsReasoningEffort$inboundSchema` instead. */
|
|
733
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
734
|
-
readonly Low: "low";
|
|
735
|
-
readonly Medium: "medium";
|
|
736
|
-
readonly High: "high";
|
|
737
|
-
}>;
|
|
738
|
-
/** @deprecated use `ListPromptVersionsReasoningEffort$outboundSchema` instead. */
|
|
739
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
740
|
-
readonly Low: "low";
|
|
741
|
-
readonly Medium: "medium";
|
|
742
|
-
readonly High: "high";
|
|
743
|
-
}>;
|
|
744
|
-
}
|
|
745
|
-
/** @internal */
|
|
746
|
-
export declare const ListPromptVersionsModelParameters$inboundSchema: z.ZodType<ListPromptVersionsModelParameters, z.ZodTypeDef, unknown>;
|
|
747
|
-
/** @internal */
|
|
748
|
-
export type ListPromptVersionsModelParameters$Outbound = {
|
|
749
|
-
temperature?: number | undefined;
|
|
750
|
-
maxTokens?: number | undefined;
|
|
751
|
-
topK?: number | undefined;
|
|
752
|
-
topP?: number | undefined;
|
|
753
|
-
frequencyPenalty?: number | undefined;
|
|
754
|
-
presencePenalty?: number | undefined;
|
|
755
|
-
numImages?: number | undefined;
|
|
756
|
-
seed?: number | undefined;
|
|
757
|
-
format?: string | undefined;
|
|
758
|
-
dimensions?: string | undefined;
|
|
759
|
-
quality?: string | undefined;
|
|
760
|
-
style?: string | undefined;
|
|
761
|
-
responseFormat?: ListPromptVersionsResponseFormat2$Outbound | ListPromptVersionsResponseFormat1$Outbound | null | undefined;
|
|
762
|
-
photoRealVersion?: string | undefined;
|
|
763
|
-
encoding_format?: string | undefined;
|
|
764
|
-
reasoningEffort?: string | undefined;
|
|
765
|
-
};
|
|
766
|
-
/** @internal */
|
|
767
|
-
export declare const ListPromptVersionsModelParameters$outboundSchema: z.ZodType<ListPromptVersionsModelParameters$Outbound, z.ZodTypeDef, ListPromptVersionsModelParameters>;
|
|
768
|
-
/**
|
|
769
|
-
* @internal
|
|
770
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
771
|
-
*/
|
|
772
|
-
export declare namespace ListPromptVersionsModelParameters$ {
|
|
773
|
-
/** @deprecated use `ListPromptVersionsModelParameters$inboundSchema` instead. */
|
|
774
|
-
const inboundSchema: z.ZodType<ListPromptVersionsModelParameters, z.ZodTypeDef, unknown>;
|
|
775
|
-
/** @deprecated use `ListPromptVersionsModelParameters$outboundSchema` instead. */
|
|
776
|
-
const outboundSchema: z.ZodType<ListPromptVersionsModelParameters$Outbound, z.ZodTypeDef, ListPromptVersionsModelParameters>;
|
|
777
|
-
/** @deprecated use `ListPromptVersionsModelParameters$Outbound` instead. */
|
|
778
|
-
type Outbound = ListPromptVersionsModelParameters$Outbound;
|
|
779
|
-
}
|
|
780
|
-
export declare function listPromptVersionsModelParametersToJSON(listPromptVersionsModelParameters: ListPromptVersionsModelParameters): string;
|
|
781
|
-
export declare function listPromptVersionsModelParametersFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsModelParameters, SDKValidationError>;
|
|
782
|
-
/** @internal */
|
|
783
|
-
export declare const ListPromptVersionsProvider$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsProvider>;
|
|
784
|
-
/** @internal */
|
|
785
|
-
export declare const ListPromptVersionsProvider$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsProvider>;
|
|
786
|
-
/**
|
|
787
|
-
* @internal
|
|
788
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
789
|
-
*/
|
|
790
|
-
export declare namespace ListPromptVersionsProvider$ {
|
|
791
|
-
/** @deprecated use `ListPromptVersionsProvider$inboundSchema` instead. */
|
|
792
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
793
|
-
readonly Cohere: "cohere";
|
|
794
|
-
readonly Openai: "openai";
|
|
795
|
-
readonly Anthropic: "anthropic";
|
|
796
|
-
readonly Huggingface: "huggingface";
|
|
797
|
-
readonly Replicate: "replicate";
|
|
798
|
-
readonly Google: "google";
|
|
799
|
-
readonly GoogleAi: "google-ai";
|
|
800
|
-
readonly Azure: "azure";
|
|
801
|
-
readonly Aws: "aws";
|
|
802
|
-
readonly Anyscale: "anyscale";
|
|
803
|
-
readonly Perplexity: "perplexity";
|
|
804
|
-
readonly Groq: "groq";
|
|
805
|
-
readonly Fal: "fal";
|
|
806
|
-
readonly Leonardoai: "leonardoai";
|
|
807
|
-
readonly Nvidia: "nvidia";
|
|
808
|
-
readonly Jina: "jina";
|
|
809
|
-
readonly Togetherai: "togetherai";
|
|
810
|
-
readonly Elevenlabs: "elevenlabs";
|
|
811
|
-
}>;
|
|
812
|
-
/** @deprecated use `ListPromptVersionsProvider$outboundSchema` instead. */
|
|
813
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
814
|
-
readonly Cohere: "cohere";
|
|
815
|
-
readonly Openai: "openai";
|
|
816
|
-
readonly Anthropic: "anthropic";
|
|
817
|
-
readonly Huggingface: "huggingface";
|
|
818
|
-
readonly Replicate: "replicate";
|
|
819
|
-
readonly Google: "google";
|
|
820
|
-
readonly GoogleAi: "google-ai";
|
|
821
|
-
readonly Azure: "azure";
|
|
822
|
-
readonly Aws: "aws";
|
|
823
|
-
readonly Anyscale: "anyscale";
|
|
824
|
-
readonly Perplexity: "perplexity";
|
|
825
|
-
readonly Groq: "groq";
|
|
826
|
-
readonly Fal: "fal";
|
|
827
|
-
readonly Leonardoai: "leonardoai";
|
|
828
|
-
readonly Nvidia: "nvidia";
|
|
829
|
-
readonly Jina: "jina";
|
|
830
|
-
readonly Togetherai: "togetherai";
|
|
831
|
-
readonly Elevenlabs: "elevenlabs";
|
|
832
|
-
}>;
|
|
833
|
-
}
|
|
834
|
-
/** @internal */
|
|
835
|
-
export declare const ListPromptVersionsRole$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsRole>;
|
|
836
|
-
/** @internal */
|
|
837
|
-
export declare const ListPromptVersionsRole$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsRole>;
|
|
838
|
-
/**
|
|
839
|
-
* @internal
|
|
840
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
841
|
-
*/
|
|
842
|
-
export declare namespace ListPromptVersionsRole$ {
|
|
843
|
-
/** @deprecated use `ListPromptVersionsRole$inboundSchema` instead. */
|
|
844
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
845
|
-
readonly System: "system";
|
|
846
|
-
readonly Assistant: "assistant";
|
|
847
|
-
readonly User: "user";
|
|
848
|
-
readonly Exception: "exception";
|
|
849
|
-
readonly Tool: "tool";
|
|
850
|
-
readonly Prompt: "prompt";
|
|
851
|
-
readonly Correction: "correction";
|
|
852
|
-
readonly ExpectedOutput: "expected_output";
|
|
853
|
-
}>;
|
|
854
|
-
/** @deprecated use `ListPromptVersionsRole$outboundSchema` instead. */
|
|
855
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
856
|
-
readonly System: "system";
|
|
857
|
-
readonly Assistant: "assistant";
|
|
858
|
-
readonly User: "user";
|
|
859
|
-
readonly Exception: "exception";
|
|
860
|
-
readonly Tool: "tool";
|
|
861
|
-
readonly Prompt: "prompt";
|
|
862
|
-
readonly Correction: "correction";
|
|
863
|
-
readonly ExpectedOutput: "expected_output";
|
|
864
|
-
}>;
|
|
865
|
-
}
|
|
866
|
-
/** @internal */
|
|
867
|
-
export declare const ListPromptVersions2PromptsType$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersions2PromptsType>;
|
|
868
|
-
/** @internal */
|
|
869
|
-
export declare const ListPromptVersions2PromptsType$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersions2PromptsType>;
|
|
870
|
-
/**
|
|
871
|
-
* @internal
|
|
872
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
873
|
-
*/
|
|
874
|
-
export declare namespace ListPromptVersions2PromptsType$ {
|
|
875
|
-
/** @deprecated use `ListPromptVersions2PromptsType$inboundSchema` instead. */
|
|
876
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
877
|
-
readonly ImageUrl: "image_url";
|
|
878
|
-
}>;
|
|
879
|
-
/** @deprecated use `ListPromptVersions2PromptsType$outboundSchema` instead. */
|
|
880
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
881
|
-
readonly ImageUrl: "image_url";
|
|
882
|
-
}>;
|
|
883
|
-
}
|
|
884
|
-
/** @internal */
|
|
885
|
-
export declare const ListPromptVersions2ImageUrl$inboundSchema: z.ZodType<ListPromptVersions2ImageUrl, z.ZodTypeDef, unknown>;
|
|
886
|
-
/** @internal */
|
|
887
|
-
export type ListPromptVersions2ImageUrl$Outbound = {
|
|
888
|
-
id?: string | undefined;
|
|
889
|
-
url: string;
|
|
890
|
-
detail?: string | undefined;
|
|
891
|
-
};
|
|
892
|
-
/** @internal */
|
|
893
|
-
export declare const ListPromptVersions2ImageUrl$outboundSchema: z.ZodType<ListPromptVersions2ImageUrl$Outbound, z.ZodTypeDef, ListPromptVersions2ImageUrl>;
|
|
894
|
-
/**
|
|
895
|
-
* @internal
|
|
896
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
897
|
-
*/
|
|
898
|
-
export declare namespace ListPromptVersions2ImageUrl$ {
|
|
899
|
-
/** @deprecated use `ListPromptVersions2ImageUrl$inboundSchema` instead. */
|
|
900
|
-
const inboundSchema: z.ZodType<ListPromptVersions2ImageUrl, z.ZodTypeDef, unknown>;
|
|
901
|
-
/** @deprecated use `ListPromptVersions2ImageUrl$outboundSchema` instead. */
|
|
902
|
-
const outboundSchema: z.ZodType<ListPromptVersions2ImageUrl$Outbound, z.ZodTypeDef, ListPromptVersions2ImageUrl>;
|
|
903
|
-
/** @deprecated use `ListPromptVersions2ImageUrl$Outbound` instead. */
|
|
904
|
-
type Outbound = ListPromptVersions2ImageUrl$Outbound;
|
|
905
|
-
}
|
|
906
|
-
export declare function listPromptVersions2ImageUrlToJSON(listPromptVersions2ImageUrl: ListPromptVersions2ImageUrl): string;
|
|
907
|
-
export declare function listPromptVersions2ImageUrlFromJSON(jsonString: string): SafeParseResult<ListPromptVersions2ImageUrl, SDKValidationError>;
|
|
908
|
-
/** @internal */
|
|
909
|
-
export declare const ListPromptVersions22$inboundSchema: z.ZodType<ListPromptVersions22, z.ZodTypeDef, unknown>;
|
|
910
|
-
/** @internal */
|
|
911
|
-
export type ListPromptVersions22$Outbound = {
|
|
912
|
-
type: string;
|
|
913
|
-
image_url: ListPromptVersions2ImageUrl$Outbound;
|
|
914
|
-
};
|
|
915
|
-
/** @internal */
|
|
916
|
-
export declare const ListPromptVersions22$outboundSchema: z.ZodType<ListPromptVersions22$Outbound, z.ZodTypeDef, ListPromptVersions22>;
|
|
917
|
-
/**
|
|
918
|
-
* @internal
|
|
919
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
920
|
-
*/
|
|
921
|
-
export declare namespace ListPromptVersions22$ {
|
|
922
|
-
/** @deprecated use `ListPromptVersions22$inboundSchema` instead. */
|
|
923
|
-
const inboundSchema: z.ZodType<ListPromptVersions22, z.ZodTypeDef, unknown>;
|
|
924
|
-
/** @deprecated use `ListPromptVersions22$outboundSchema` instead. */
|
|
925
|
-
const outboundSchema: z.ZodType<ListPromptVersions22$Outbound, z.ZodTypeDef, ListPromptVersions22>;
|
|
926
|
-
/** @deprecated use `ListPromptVersions22$Outbound` instead. */
|
|
927
|
-
type Outbound = ListPromptVersions22$Outbound;
|
|
928
|
-
}
|
|
929
|
-
export declare function listPromptVersions22ToJSON(listPromptVersions22: ListPromptVersions22): string;
|
|
930
|
-
export declare function listPromptVersions22FromJSON(jsonString: string): SafeParseResult<ListPromptVersions22, SDKValidationError>;
|
|
931
|
-
/** @internal */
|
|
932
|
-
export declare const ListPromptVersions2Type$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersions2Type>;
|
|
933
|
-
/** @internal */
|
|
934
|
-
export declare const ListPromptVersions2Type$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersions2Type>;
|
|
935
|
-
/**
|
|
936
|
-
* @internal
|
|
937
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
938
|
-
*/
|
|
939
|
-
export declare namespace ListPromptVersions2Type$ {
|
|
940
|
-
/** @deprecated use `ListPromptVersions2Type$inboundSchema` instead. */
|
|
941
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
942
|
-
readonly Text: "text";
|
|
943
|
-
}>;
|
|
944
|
-
/** @deprecated use `ListPromptVersions2Type$outboundSchema` instead. */
|
|
945
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
946
|
-
readonly Text: "text";
|
|
947
|
-
}>;
|
|
948
|
-
}
|
|
949
|
-
/** @internal */
|
|
950
|
-
export declare const ListPromptVersions21$inboundSchema: z.ZodType<ListPromptVersions21, z.ZodTypeDef, unknown>;
|
|
951
|
-
/** @internal */
|
|
952
|
-
export type ListPromptVersions21$Outbound = {
|
|
953
|
-
type: string;
|
|
954
|
-
text: string;
|
|
955
|
-
};
|
|
956
|
-
/** @internal */
|
|
957
|
-
export declare const ListPromptVersions21$outboundSchema: z.ZodType<ListPromptVersions21$Outbound, z.ZodTypeDef, ListPromptVersions21>;
|
|
958
|
-
/**
|
|
959
|
-
* @internal
|
|
960
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
961
|
-
*/
|
|
962
|
-
export declare namespace ListPromptVersions21$ {
|
|
963
|
-
/** @deprecated use `ListPromptVersions21$inboundSchema` instead. */
|
|
964
|
-
const inboundSchema: z.ZodType<ListPromptVersions21, z.ZodTypeDef, unknown>;
|
|
965
|
-
/** @deprecated use `ListPromptVersions21$outboundSchema` instead. */
|
|
966
|
-
const outboundSchema: z.ZodType<ListPromptVersions21$Outbound, z.ZodTypeDef, ListPromptVersions21>;
|
|
967
|
-
/** @deprecated use `ListPromptVersions21$Outbound` instead. */
|
|
968
|
-
type Outbound = ListPromptVersions21$Outbound;
|
|
969
|
-
}
|
|
970
|
-
export declare function listPromptVersions21ToJSON(listPromptVersions21: ListPromptVersions21): string;
|
|
971
|
-
export declare function listPromptVersions21FromJSON(jsonString: string): SafeParseResult<ListPromptVersions21, SDKValidationError>;
|
|
972
|
-
/** @internal */
|
|
973
|
-
export declare const ListPromptVersionsContent2$inboundSchema: z.ZodType<ListPromptVersionsContent2, z.ZodTypeDef, unknown>;
|
|
974
|
-
/** @internal */
|
|
975
|
-
export type ListPromptVersionsContent2$Outbound = ListPromptVersions21$Outbound | ListPromptVersions22$Outbound;
|
|
976
|
-
/** @internal */
|
|
977
|
-
export declare const ListPromptVersionsContent2$outboundSchema: z.ZodType<ListPromptVersionsContent2$Outbound, z.ZodTypeDef, ListPromptVersionsContent2>;
|
|
978
|
-
/**
|
|
979
|
-
* @internal
|
|
980
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
981
|
-
*/
|
|
982
|
-
export declare namespace ListPromptVersionsContent2$ {
|
|
983
|
-
/** @deprecated use `ListPromptVersionsContent2$inboundSchema` instead. */
|
|
984
|
-
const inboundSchema: z.ZodType<ListPromptVersionsContent2, z.ZodTypeDef, unknown>;
|
|
985
|
-
/** @deprecated use `ListPromptVersionsContent2$outboundSchema` instead. */
|
|
986
|
-
const outboundSchema: z.ZodType<ListPromptVersionsContent2$Outbound, z.ZodTypeDef, ListPromptVersionsContent2>;
|
|
987
|
-
/** @deprecated use `ListPromptVersionsContent2$Outbound` instead. */
|
|
988
|
-
type Outbound = ListPromptVersionsContent2$Outbound;
|
|
989
|
-
}
|
|
990
|
-
export declare function listPromptVersionsContent2ToJSON(listPromptVersionsContent2: ListPromptVersionsContent2): string;
|
|
991
|
-
export declare function listPromptVersionsContent2FromJSON(jsonString: string): SafeParseResult<ListPromptVersionsContent2, SDKValidationError>;
|
|
992
|
-
/** @internal */
|
|
993
|
-
export declare const ListPromptVersionsContent$inboundSchema: z.ZodType<ListPromptVersionsContent, z.ZodTypeDef, unknown>;
|
|
994
|
-
/** @internal */
|
|
995
|
-
export type ListPromptVersionsContent$Outbound = string | Array<ListPromptVersions21$Outbound | ListPromptVersions22$Outbound>;
|
|
996
|
-
/** @internal */
|
|
997
|
-
export declare const ListPromptVersionsContent$outboundSchema: z.ZodType<ListPromptVersionsContent$Outbound, z.ZodTypeDef, ListPromptVersionsContent>;
|
|
998
|
-
/**
|
|
999
|
-
* @internal
|
|
1000
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1001
|
-
*/
|
|
1002
|
-
export declare namespace ListPromptVersionsContent$ {
|
|
1003
|
-
/** @deprecated use `ListPromptVersionsContent$inboundSchema` instead. */
|
|
1004
|
-
const inboundSchema: z.ZodType<ListPromptVersionsContent, z.ZodTypeDef, unknown>;
|
|
1005
|
-
/** @deprecated use `ListPromptVersionsContent$outboundSchema` instead. */
|
|
1006
|
-
const outboundSchema: z.ZodType<ListPromptVersionsContent$Outbound, z.ZodTypeDef, ListPromptVersionsContent>;
|
|
1007
|
-
/** @deprecated use `ListPromptVersionsContent$Outbound` instead. */
|
|
1008
|
-
type Outbound = ListPromptVersionsContent$Outbound;
|
|
1009
|
-
}
|
|
1010
|
-
export declare function listPromptVersionsContentToJSON(listPromptVersionsContent: ListPromptVersionsContent): string;
|
|
1011
|
-
export declare function listPromptVersionsContentFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsContent, SDKValidationError>;
|
|
1012
|
-
/** @internal */
|
|
1013
|
-
export declare const ListPromptVersionsPromptsType$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsPromptsType>;
|
|
1014
|
-
/** @internal */
|
|
1015
|
-
export declare const ListPromptVersionsPromptsType$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsPromptsType>;
|
|
1016
|
-
/**
|
|
1017
|
-
* @internal
|
|
1018
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1019
|
-
*/
|
|
1020
|
-
export declare namespace ListPromptVersionsPromptsType$ {
|
|
1021
|
-
/** @deprecated use `ListPromptVersionsPromptsType$inboundSchema` instead. */
|
|
1022
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1023
|
-
readonly Function: "function";
|
|
1024
|
-
}>;
|
|
1025
|
-
/** @deprecated use `ListPromptVersionsPromptsType$outboundSchema` instead. */
|
|
1026
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1027
|
-
readonly Function: "function";
|
|
1028
|
-
}>;
|
|
1029
|
-
}
|
|
1030
|
-
/** @internal */
|
|
1031
|
-
export declare const ListPromptVersionsFunction$inboundSchema: z.ZodType<ListPromptVersionsFunction, z.ZodTypeDef, unknown>;
|
|
1032
|
-
/** @internal */
|
|
1033
|
-
export type ListPromptVersionsFunction$Outbound = {
|
|
1034
|
-
name: string;
|
|
1035
|
-
arguments: string;
|
|
1036
|
-
};
|
|
1037
|
-
/** @internal */
|
|
1038
|
-
export declare const ListPromptVersionsFunction$outboundSchema: z.ZodType<ListPromptVersionsFunction$Outbound, z.ZodTypeDef, ListPromptVersionsFunction>;
|
|
1039
|
-
/**
|
|
1040
|
-
* @internal
|
|
1041
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1042
|
-
*/
|
|
1043
|
-
export declare namespace ListPromptVersionsFunction$ {
|
|
1044
|
-
/** @deprecated use `ListPromptVersionsFunction$inboundSchema` instead. */
|
|
1045
|
-
const inboundSchema: z.ZodType<ListPromptVersionsFunction, z.ZodTypeDef, unknown>;
|
|
1046
|
-
/** @deprecated use `ListPromptVersionsFunction$outboundSchema` instead. */
|
|
1047
|
-
const outboundSchema: z.ZodType<ListPromptVersionsFunction$Outbound, z.ZodTypeDef, ListPromptVersionsFunction>;
|
|
1048
|
-
/** @deprecated use `ListPromptVersionsFunction$Outbound` instead. */
|
|
1049
|
-
type Outbound = ListPromptVersionsFunction$Outbound;
|
|
1050
|
-
}
|
|
1051
|
-
export declare function listPromptVersionsFunctionToJSON(listPromptVersionsFunction: ListPromptVersionsFunction): string;
|
|
1052
|
-
export declare function listPromptVersionsFunctionFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsFunction, SDKValidationError>;
|
|
1053
|
-
/** @internal */
|
|
1054
|
-
export declare const ListPromptVersionsToolCalls$inboundSchema: z.ZodType<ListPromptVersionsToolCalls, z.ZodTypeDef, unknown>;
|
|
1055
|
-
/** @internal */
|
|
1056
|
-
export type ListPromptVersionsToolCalls$Outbound = {
|
|
1057
|
-
id?: string | undefined;
|
|
1058
|
-
index?: number | undefined;
|
|
1059
|
-
type: string;
|
|
1060
|
-
function: ListPromptVersionsFunction$Outbound;
|
|
1061
|
-
};
|
|
1062
|
-
/** @internal */
|
|
1063
|
-
export declare const ListPromptVersionsToolCalls$outboundSchema: z.ZodType<ListPromptVersionsToolCalls$Outbound, z.ZodTypeDef, ListPromptVersionsToolCalls>;
|
|
1064
|
-
/**
|
|
1065
|
-
* @internal
|
|
1066
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1067
|
-
*/
|
|
1068
|
-
export declare namespace ListPromptVersionsToolCalls$ {
|
|
1069
|
-
/** @deprecated use `ListPromptVersionsToolCalls$inboundSchema` instead. */
|
|
1070
|
-
const inboundSchema: z.ZodType<ListPromptVersionsToolCalls, z.ZodTypeDef, unknown>;
|
|
1071
|
-
/** @deprecated use `ListPromptVersionsToolCalls$outboundSchema` instead. */
|
|
1072
|
-
const outboundSchema: z.ZodType<ListPromptVersionsToolCalls$Outbound, z.ZodTypeDef, ListPromptVersionsToolCalls>;
|
|
1073
|
-
/** @deprecated use `ListPromptVersionsToolCalls$Outbound` instead. */
|
|
1074
|
-
type Outbound = ListPromptVersionsToolCalls$Outbound;
|
|
1075
|
-
}
|
|
1076
|
-
export declare function listPromptVersionsToolCallsToJSON(listPromptVersionsToolCalls: ListPromptVersionsToolCalls): string;
|
|
1077
|
-
export declare function listPromptVersionsToolCallsFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsToolCalls, SDKValidationError>;
|
|
1078
|
-
/** @internal */
|
|
1079
|
-
export declare const ListPromptVersionsMessages$inboundSchema: z.ZodType<ListPromptVersionsMessages, z.ZodTypeDef, unknown>;
|
|
1080
|
-
/** @internal */
|
|
1081
|
-
export type ListPromptVersionsMessages$Outbound = {
|
|
1082
|
-
role: string;
|
|
1083
|
-
content: string | Array<ListPromptVersions21$Outbound | ListPromptVersions22$Outbound>;
|
|
1084
|
-
tool_calls?: Array<ListPromptVersionsToolCalls$Outbound> | undefined;
|
|
1085
|
-
};
|
|
1086
|
-
/** @internal */
|
|
1087
|
-
export declare const ListPromptVersionsMessages$outboundSchema: z.ZodType<ListPromptVersionsMessages$Outbound, z.ZodTypeDef, ListPromptVersionsMessages>;
|
|
1088
|
-
/**
|
|
1089
|
-
* @internal
|
|
1090
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1091
|
-
*/
|
|
1092
|
-
export declare namespace ListPromptVersionsMessages$ {
|
|
1093
|
-
/** @deprecated use `ListPromptVersionsMessages$inboundSchema` instead. */
|
|
1094
|
-
const inboundSchema: z.ZodType<ListPromptVersionsMessages, z.ZodTypeDef, unknown>;
|
|
1095
|
-
/** @deprecated use `ListPromptVersionsMessages$outboundSchema` instead. */
|
|
1096
|
-
const outboundSchema: z.ZodType<ListPromptVersionsMessages$Outbound, z.ZodTypeDef, ListPromptVersionsMessages>;
|
|
1097
|
-
/** @deprecated use `ListPromptVersionsMessages$Outbound` instead. */
|
|
1098
|
-
type Outbound = ListPromptVersionsMessages$Outbound;
|
|
1099
|
-
}
|
|
1100
|
-
export declare function listPromptVersionsMessagesToJSON(listPromptVersionsMessages: ListPromptVersionsMessages): string;
|
|
1101
|
-
export declare function listPromptVersionsMessagesFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsMessages, SDKValidationError>;
|
|
1102
|
-
/** @internal */
|
|
1103
|
-
export declare const ListPromptVersionsPromptConfig$inboundSchema: z.ZodType<ListPromptVersionsPromptConfig, z.ZodTypeDef, unknown>;
|
|
1104
|
-
/** @internal */
|
|
1105
|
-
export type ListPromptVersionsPromptConfig$Outbound = {
|
|
1106
|
-
stream?: boolean | undefined;
|
|
1107
|
-
model?: string | undefined;
|
|
1108
|
-
model_db_id?: string | undefined;
|
|
1109
|
-
model_type?: string | undefined;
|
|
1110
|
-
model_parameters?: ListPromptVersionsModelParameters$Outbound | undefined;
|
|
1111
|
-
provider?: string | undefined;
|
|
1112
|
-
integration_id?: string | null | undefined;
|
|
1113
|
-
version?: string | undefined;
|
|
1114
|
-
messages: Array<ListPromptVersionsMessages$Outbound>;
|
|
1115
|
-
};
|
|
1116
|
-
/** @internal */
|
|
1117
|
-
export declare const ListPromptVersionsPromptConfig$outboundSchema: z.ZodType<ListPromptVersionsPromptConfig$Outbound, z.ZodTypeDef, ListPromptVersionsPromptConfig>;
|
|
1118
|
-
/**
|
|
1119
|
-
* @internal
|
|
1120
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1121
|
-
*/
|
|
1122
|
-
export declare namespace ListPromptVersionsPromptConfig$ {
|
|
1123
|
-
/** @deprecated use `ListPromptVersionsPromptConfig$inboundSchema` instead. */
|
|
1124
|
-
const inboundSchema: z.ZodType<ListPromptVersionsPromptConfig, z.ZodTypeDef, unknown>;
|
|
1125
|
-
/** @deprecated use `ListPromptVersionsPromptConfig$outboundSchema` instead. */
|
|
1126
|
-
const outboundSchema: z.ZodType<ListPromptVersionsPromptConfig$Outbound, z.ZodTypeDef, ListPromptVersionsPromptConfig>;
|
|
1127
|
-
/** @deprecated use `ListPromptVersionsPromptConfig$Outbound` instead. */
|
|
1128
|
-
type Outbound = ListPromptVersionsPromptConfig$Outbound;
|
|
1129
|
-
}
|
|
1130
|
-
export declare function listPromptVersionsPromptConfigToJSON(listPromptVersionsPromptConfig: ListPromptVersionsPromptConfig): string;
|
|
1131
|
-
export declare function listPromptVersionsPromptConfigFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsPromptConfig, SDKValidationError>;
|
|
1132
|
-
/** @internal */
|
|
1133
|
-
export declare const ListPromptVersionsUseCases$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsUseCases>;
|
|
1134
|
-
/** @internal */
|
|
1135
|
-
export declare const ListPromptVersionsUseCases$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsUseCases>;
|
|
1136
|
-
/**
|
|
1137
|
-
* @internal
|
|
1138
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1139
|
-
*/
|
|
1140
|
-
export declare namespace ListPromptVersionsUseCases$ {
|
|
1141
|
-
/** @deprecated use `ListPromptVersionsUseCases$inboundSchema` instead. */
|
|
1142
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1143
|
-
readonly Agents: "Agents";
|
|
1144
|
-
readonly AgentsSimulations: "Agents simulations";
|
|
1145
|
-
readonly APIInteraction: "API interaction";
|
|
1146
|
-
readonly AutonomousAgents: "Autonomous Agents";
|
|
1147
|
-
readonly Chatbots: "Chatbots";
|
|
1148
|
-
readonly Classification: "Classification";
|
|
1149
|
-
readonly CodeUnderstanding: "Code understanding";
|
|
1150
|
-
readonly CodeWriting: "Code writing";
|
|
1151
|
-
readonly DocumentsQA: "Documents QA";
|
|
1152
|
-
readonly Conversation: "Conversation";
|
|
1153
|
-
readonly Extraction: "Extraction";
|
|
1154
|
-
readonly MultiModal: "Multi-modal";
|
|
1155
|
-
readonly SelfChecking: "Self-checking";
|
|
1156
|
-
readonly Sql: "SQL";
|
|
1157
|
-
readonly Summarization: "Summarization";
|
|
1158
|
-
readonly Tagging: "Tagging";
|
|
1159
|
-
}>;
|
|
1160
|
-
/** @deprecated use `ListPromptVersionsUseCases$outboundSchema` instead. */
|
|
1161
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1162
|
-
readonly Agents: "Agents";
|
|
1163
|
-
readonly AgentsSimulations: "Agents simulations";
|
|
1164
|
-
readonly APIInteraction: "API interaction";
|
|
1165
|
-
readonly AutonomousAgents: "Autonomous Agents";
|
|
1166
|
-
readonly Chatbots: "Chatbots";
|
|
1167
|
-
readonly Classification: "Classification";
|
|
1168
|
-
readonly CodeUnderstanding: "Code understanding";
|
|
1169
|
-
readonly CodeWriting: "Code writing";
|
|
1170
|
-
readonly DocumentsQA: "Documents QA";
|
|
1171
|
-
readonly Conversation: "Conversation";
|
|
1172
|
-
readonly Extraction: "Extraction";
|
|
1173
|
-
readonly MultiModal: "Multi-modal";
|
|
1174
|
-
readonly SelfChecking: "Self-checking";
|
|
1175
|
-
readonly Sql: "SQL";
|
|
1176
|
-
readonly Summarization: "Summarization";
|
|
1177
|
-
readonly Tagging: "Tagging";
|
|
1178
|
-
}>;
|
|
1179
|
-
}
|
|
1180
|
-
/** @internal */
|
|
1181
|
-
export declare const ListPromptVersionsLanguage$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsLanguage>;
|
|
1182
|
-
/** @internal */
|
|
1183
|
-
export declare const ListPromptVersionsLanguage$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsLanguage>;
|
|
1184
|
-
/**
|
|
1185
|
-
* @internal
|
|
1186
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1187
|
-
*/
|
|
1188
|
-
export declare namespace ListPromptVersionsLanguage$ {
|
|
1189
|
-
/** @deprecated use `ListPromptVersionsLanguage$inboundSchema` instead. */
|
|
1190
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1191
|
-
readonly Chinese: "Chinese";
|
|
1192
|
-
readonly Dutch: "Dutch";
|
|
1193
|
-
readonly English: "English";
|
|
1194
|
-
readonly French: "French";
|
|
1195
|
-
readonly German: "German";
|
|
1196
|
-
readonly Russian: "Russian";
|
|
1197
|
-
readonly Spanish: "Spanish";
|
|
1198
|
-
}>;
|
|
1199
|
-
/** @deprecated use `ListPromptVersionsLanguage$outboundSchema` instead. */
|
|
1200
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1201
|
-
readonly Chinese: "Chinese";
|
|
1202
|
-
readonly Dutch: "Dutch";
|
|
1203
|
-
readonly English: "English";
|
|
1204
|
-
readonly French: "French";
|
|
1205
|
-
readonly German: "German";
|
|
1206
|
-
readonly Russian: "Russian";
|
|
1207
|
-
readonly Spanish: "Spanish";
|
|
1208
|
-
}>;
|
|
1209
|
-
}
|
|
1210
|
-
/** @internal */
|
|
1211
|
-
export declare const ListPromptVersionsMetadata$inboundSchema: z.ZodType<ListPromptVersionsMetadata, z.ZodTypeDef, unknown>;
|
|
1212
|
-
/** @internal */
|
|
1213
|
-
export type ListPromptVersionsMetadata$Outbound = {
|
|
1214
|
-
use_cases?: Array<string> | undefined;
|
|
1215
|
-
language?: string | undefined;
|
|
1216
|
-
};
|
|
1217
|
-
/** @internal */
|
|
1218
|
-
export declare const ListPromptVersionsMetadata$outboundSchema: z.ZodType<ListPromptVersionsMetadata$Outbound, z.ZodTypeDef, ListPromptVersionsMetadata>;
|
|
1219
|
-
/**
|
|
1220
|
-
* @internal
|
|
1221
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1222
|
-
*/
|
|
1223
|
-
export declare namespace ListPromptVersionsMetadata$ {
|
|
1224
|
-
/** @deprecated use `ListPromptVersionsMetadata$inboundSchema` instead. */
|
|
1225
|
-
const inboundSchema: z.ZodType<ListPromptVersionsMetadata, z.ZodTypeDef, unknown>;
|
|
1226
|
-
/** @deprecated use `ListPromptVersionsMetadata$outboundSchema` instead. */
|
|
1227
|
-
const outboundSchema: z.ZodType<ListPromptVersionsMetadata$Outbound, z.ZodTypeDef, ListPromptVersionsMetadata>;
|
|
1228
|
-
/** @deprecated use `ListPromptVersionsMetadata$Outbound` instead. */
|
|
1229
|
-
type Outbound = ListPromptVersionsMetadata$Outbound;
|
|
1230
|
-
}
|
|
1231
|
-
export declare function listPromptVersionsMetadataToJSON(listPromptVersionsMetadata: ListPromptVersionsMetadata): string;
|
|
1232
|
-
export declare function listPromptVersionsMetadataFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsMetadata, SDKValidationError>;
|
|
1233
|
-
/** @internal */
|
|
1234
|
-
export declare const ListPromptVersionsData$inboundSchema: z.ZodType<ListPromptVersionsData, z.ZodTypeDef, unknown>;
|
|
1235
|
-
/** @internal */
|
|
1236
|
-
export type ListPromptVersionsData$Outbound = {
|
|
1237
|
-
_id: string;
|
|
1238
|
-
type: string;
|
|
1239
|
-
created_by_id?: string | undefined;
|
|
1240
|
-
updated_by_id?: string | undefined;
|
|
1241
|
-
description?: string | null | undefined;
|
|
1242
|
-
prompt_config: ListPromptVersionsPromptConfig$Outbound;
|
|
1243
|
-
metadata?: ListPromptVersionsMetadata$Outbound | undefined;
|
|
1244
|
-
timestamp: string;
|
|
1245
|
-
};
|
|
1246
|
-
/** @internal */
|
|
1247
|
-
export declare const ListPromptVersionsData$outboundSchema: z.ZodType<ListPromptVersionsData$Outbound, z.ZodTypeDef, ListPromptVersionsData>;
|
|
1248
|
-
/**
|
|
1249
|
-
* @internal
|
|
1250
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1251
|
-
*/
|
|
1252
|
-
export declare namespace ListPromptVersionsData$ {
|
|
1253
|
-
/** @deprecated use `ListPromptVersionsData$inboundSchema` instead. */
|
|
1254
|
-
const inboundSchema: z.ZodType<ListPromptVersionsData, z.ZodTypeDef, unknown>;
|
|
1255
|
-
/** @deprecated use `ListPromptVersionsData$outboundSchema` instead. */
|
|
1256
|
-
const outboundSchema: z.ZodType<ListPromptVersionsData$Outbound, z.ZodTypeDef, ListPromptVersionsData>;
|
|
1257
|
-
/** @deprecated use `ListPromptVersionsData$Outbound` instead. */
|
|
1258
|
-
type Outbound = ListPromptVersionsData$Outbound;
|
|
1259
|
-
}
|
|
1260
|
-
export declare function listPromptVersionsDataToJSON(listPromptVersionsData: ListPromptVersionsData): string;
|
|
1261
|
-
export declare function listPromptVersionsDataFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsData, SDKValidationError>;
|
|
1262
|
-
/** @internal */
|
|
1263
|
-
export declare const ListPromptVersionsResponseBody$inboundSchema: z.ZodType<ListPromptVersionsResponseBody, z.ZodTypeDef, unknown>;
|
|
1264
|
-
/** @internal */
|
|
1265
|
-
export type ListPromptVersionsResponseBody$Outbound = {
|
|
1266
|
-
object: string;
|
|
1267
|
-
data: Array<ListPromptVersionsData$Outbound>;
|
|
1268
|
-
has_more: boolean;
|
|
1269
|
-
};
|
|
1270
|
-
/** @internal */
|
|
1271
|
-
export declare const ListPromptVersionsResponseBody$outboundSchema: z.ZodType<ListPromptVersionsResponseBody$Outbound, z.ZodTypeDef, ListPromptVersionsResponseBody>;
|
|
1272
|
-
/**
|
|
1273
|
-
* @internal
|
|
1274
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1275
|
-
*/
|
|
1276
|
-
export declare namespace ListPromptVersionsResponseBody$ {
|
|
1277
|
-
/** @deprecated use `ListPromptVersionsResponseBody$inboundSchema` instead. */
|
|
1278
|
-
const inboundSchema: z.ZodType<ListPromptVersionsResponseBody, z.ZodTypeDef, unknown>;
|
|
1279
|
-
/** @deprecated use `ListPromptVersionsResponseBody$outboundSchema` instead. */
|
|
1280
|
-
const outboundSchema: z.ZodType<ListPromptVersionsResponseBody$Outbound, z.ZodTypeDef, ListPromptVersionsResponseBody>;
|
|
1281
|
-
/** @deprecated use `ListPromptVersionsResponseBody$Outbound` instead. */
|
|
1282
|
-
type Outbound = ListPromptVersionsResponseBody$Outbound;
|
|
1283
|
-
}
|
|
1284
|
-
export declare function listPromptVersionsResponseBodyToJSON(listPromptVersionsResponseBody: ListPromptVersionsResponseBody): string;
|
|
1285
|
-
export declare function listPromptVersionsResponseBodyFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsResponseBody, SDKValidationError>;
|
|
1286
|
-
//# sourceMappingURL=listpromptversions.d.ts.map
|