@orq-ai/node 3.1.2 → 3.1.3
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 +86 -9
- package/docs/sdks/files/README.md +2 -174
- package/docs/sdks/orq/README.md +1 -1
- package/docs/sdks/prompts/README.md +135 -128
- package/docs/sdks/promptsnippets/README.md +488 -0
- package/funcs/deploymentsInvoke.d.ts +1 -7
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +10 -11
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/{deploymentsAll.d.ts → deploymentsList.d.ts} +2 -2
- package/funcs/deploymentsList.d.ts.map +1 -0
- package/funcs/{deploymentsAll.js → deploymentsList.js} +5 -4
- package/funcs/deploymentsList.js.map +1 -0
- package/funcs/deploymentsStream.d.ts +16 -0
- package/funcs/deploymentsStream.d.ts.map +1 -0
- package/funcs/deploymentsStream.js +125 -0
- package/funcs/deploymentsStream.js.map +1 -0
- package/funcs/{promptSnippetsFindOne.d.ts → promptSnippetsCreate.d.ts} +3 -3
- package/funcs/promptSnippetsCreate.d.ts.map +1 -0
- package/funcs/{promptsGetAll.js → promptSnippetsCreate.js} +8 -8
- package/funcs/promptSnippetsCreate.js.map +1 -0
- package/funcs/{filesUpdate.d.ts → promptSnippetsDelete.d.ts} +3 -3
- package/funcs/{promptsCreateVersion.d.ts.map → promptSnippetsDelete.d.ts.map} +1 -1
- package/funcs/{promptsDuplicate.js → promptSnippetsDelete.js} +8 -8
- package/funcs/promptSnippetsDelete.js.map +1 -0
- package/funcs/{promptsGetAll.d.ts → promptSnippetsGet.d.ts} +3 -3
- package/funcs/promptSnippetsGet.d.ts.map +1 -0
- package/funcs/{promptSnippetsFindOne.js → promptSnippetsGet.js} +6 -6
- package/funcs/promptSnippetsGet.js.map +1 -0
- package/funcs/{promptTemplatesGetAll.d.ts → promptSnippetsGetByKey.d.ts} +3 -3
- package/funcs/promptSnippetsGetByKey.d.ts.map +1 -0
- package/funcs/promptSnippetsGetByKey.js +109 -0
- package/funcs/promptSnippetsGetByKey.js.map +1 -0
- package/funcs/{promptsDuplicate.d.ts → promptSnippetsList.d.ts} +3 -3
- package/funcs/promptSnippetsList.d.ts.map +1 -0
- package/funcs/{promptTemplatesGetAll.js → promptSnippetsList.js} +13 -13
- package/funcs/promptSnippetsList.js.map +1 -0
- package/funcs/promptSnippetsUpdate.d.ts +13 -0
- package/funcs/promptSnippetsUpdate.d.ts.map +1 -0
- package/funcs/{promptsCreateVersion.js → promptSnippetsUpdate.js} +14 -10
- package/funcs/promptSnippetsUpdate.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/promptsDelete.js +1 -1
- package/funcs/promptsDelete.js.map +1 -1
- package/funcs/promptsGetVersion.d.ts +16 -0
- package/funcs/promptsGetVersion.d.ts.map +1 -0
- package/funcs/{filesUpdate.js → promptsGetVersion.js} +22 -12
- package/funcs/promptsGetVersion.js.map +1 -0
- package/funcs/promptsList.d.ts +15 -0
- package/funcs/promptsList.d.ts.map +1 -0
- package/funcs/promptsList.js +112 -0
- package/funcs/promptsList.js.map +1 -0
- package/funcs/promptsListVersions.d.ts +15 -0
- package/funcs/promptsListVersions.d.ts.map +1 -0
- package/funcs/promptsListVersions.js +118 -0
- package/funcs/promptsListVersions.js.map +1 -0
- package/funcs/{promptsCreateVersion.d.ts → promptsRetrieve.d.ts} +6 -3
- package/funcs/promptsRetrieve.d.ts.map +1 -0
- package/funcs/{promptsGetOne.js → promptsRetrieve.js} +10 -8
- package/funcs/promptsRetrieve.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 +10 -2
- 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 +13 -0
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +17 -0
- 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 +0 -5
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +0 -2
- package/models/components/deployments.js.map +1 -1
- package/models/errors/getpromptversion.d.ts +36 -0
- package/models/errors/getpromptversion.d.ts.map +1 -0
- package/models/errors/getpromptversion.js +79 -0
- package/models/errors/getpromptversion.js.map +1 -0
- package/models/errors/index.d.ts +2 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/updatepromptsnippet.d.ts +36 -0
- package/models/errors/updatepromptsnippet.d.ts.map +1 -0
- package/models/errors/updatepromptsnippet.js +79 -0
- package/models/errors/updatepromptsnippet.js.map +1 -0
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createprompt.d.ts +702 -381
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +642 -482
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createpromptsnippet.d.ts +3567 -0
- package/models/operations/createpromptsnippet.d.ts.map +1 -0
- package/models/operations/createpromptsnippet.js +3056 -0
- package/models/operations/createpromptsnippet.js.map +1 -0
- package/models/operations/deleteprompt.d.ts +1 -1
- package/models/operations/deletepromptsnippet.d.ts +32 -0
- package/models/operations/deletepromptsnippet.d.ts.map +1 -0
- package/models/operations/{duplicateprompt.js → deletepromptsnippet.js} +17 -17
- package/models/operations/deletepromptsnippet.js.map +1 -0
- package/models/operations/deploymentgetconfig.d.ts +39 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +29 -4
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +23 -683
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +23 -614
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +54 -8
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +44 -13
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +1622 -0
- package/models/operations/deploymentstream.d.ts.map +1 -0
- package/models/operations/deploymentstream.js +1571 -0
- package/models/operations/deploymentstream.js.map +1 -0
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.d.ts +1 -5
- package/models/operations/filelist.d.ts.map +1 -1
- package/models/operations/filelist.js +4 -12
- package/models/operations/filelist.js.map +1 -1
- package/models/operations/fileupload.js +2 -2
- package/models/operations/findonebykeypromptsnippet.d.ts +2448 -0
- package/models/operations/findonebykeypromptsnippet.d.ts.map +1 -0
- package/models/operations/findonebykeypromptsnippet.js +2133 -0
- package/models/operations/findonebykeypromptsnippet.js.map +1 -0
- package/models/operations/findonepromptsnippet.d.ts +938 -4768
- package/models/operations/findonepromptsnippet.d.ts.map +1 -1
- package/models/operations/findonepromptsnippet.js +972 -4739
- package/models/operations/findonepromptsnippet.js.map +1 -1
- package/models/operations/getallprompts.d.ts +565 -9945
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +556 -8804
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getallpromptsnippets.d.ts +2512 -0
- package/models/operations/getallpromptsnippets.d.ts.map +1 -0
- package/models/operations/getallpromptsnippets.js +2195 -0
- package/models/operations/getallpromptsnippets.js.map +1 -0
- package/models/operations/getoneprompt.d.ts +1203 -1
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1011 -1
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1228 -0
- package/models/operations/getpromptversion.d.ts.map +1 -0
- package/models/operations/getpromptversion.js +1080 -0
- package/models/operations/getpromptversion.js.map +1 -0
- package/models/operations/index.d.ts +8 -5
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +8 -5
- package/models/operations/index.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +1286 -0
- package/models/operations/listpromptversions.d.ts.map +1 -0
- package/models/operations/listpromptversions.js +1142 -0
- package/models/operations/listpromptversions.js.map +1 -0
- package/models/operations/updateprompt.d.ts +1113 -5971
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +1121 -5731
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatepromptsnippet.d.ts +3595 -0
- package/models/operations/updatepromptsnippet.d.ts.map +1 -0
- package/models/operations/updatepromptsnippet.js +3116 -0
- package/models/operations/updatepromptsnippet.js.map +1 -0
- package/package.json +1 -1
- package/sdk/deployments.d.ts +10 -6
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +14 -6
- package/sdk/deployments.js.map +1 -1
- package/sdk/files.d.ts +0 -11
- package/sdk/files.d.ts.map +1 -1
- package/sdk/files.js +0 -17
- package/sdk/files.js.map +1 -1
- package/sdk/prompts.d.ts +26 -14
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +37 -25
- package/sdk/prompts.js.map +1 -1
- package/sdk/promptsnippets.d.ts +29 -0
- package/sdk/promptsnippets.d.ts.map +1 -0
- package/sdk/promptsnippets.js +54 -0
- package/sdk/promptsnippets.js.map +1 -0
- 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/src/funcs/deploymentsInvoke.ts +21 -16
- package/src/funcs/{deploymentsAll.ts → deploymentsList.ts} +3 -2
- package/src/funcs/deploymentsStream.ts +150 -0
- package/src/funcs/{promptsGetAll.ts → promptSnippetsCreate.ts} +9 -9
- package/src/funcs/{promptsDuplicate.ts → promptSnippetsDelete.ts} +8 -7
- package/src/funcs/{promptSnippetsFindOne.ts → promptSnippetsGet.ts} +4 -4
- package/src/funcs/{filesUpdate.ts → promptSnippetsGetByKey.ts} +18 -16
- package/src/funcs/{promptTemplatesGetAll.ts → promptSnippetsList.ts} +16 -16
- package/src/funcs/{promptsCreateVersion.ts → promptSnippetsUpdate.ts} +20 -12
- package/src/funcs/promptsCreate.ts +2 -2
- package/src/funcs/promptsDelete.ts +1 -1
- package/src/funcs/promptsGetVersion.ts +146 -0
- package/src/funcs/promptsList.ts +133 -0
- package/src/funcs/promptsListVersions.ts +139 -0
- package/src/funcs/{promptsGetOne.ts → promptsRetrieve.ts} +10 -8
- package/src/funcs/promptsUpdate.ts +1 -1
- package/src/lib/config.ts +12 -2
- package/src/lib/env.ts +32 -0
- package/src/lib/sdks.ts +2 -2
- package/src/models/components/deployments.ts +0 -7
- package/src/models/errors/getpromptversion.ts +71 -0
- package/src/models/errors/index.ts +2 -0
- package/src/models/errors/updatepromptsnippet.ts +71 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createprompt.ts +1049 -691
- package/src/models/operations/createpromptsnippet.ts +6239 -0
- package/src/models/operations/deleteprompt.ts +1 -1
- package/src/models/operations/deletepromptsnippet.ts +69 -0
- package/src/models/operations/deploymentgetconfig.ts +44 -0
- package/src/models/operations/deploymentinvoke.ts +182 -1423
- package/src/models/operations/deployments.ts +68 -18
- package/src/models/operations/deploymentstream.ts +3062 -0
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +5 -17
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/findonebykeypromptsnippet.ts +4483 -0
- package/src/models/operations/findonepromptsnippet.ts +1815 -11101
- package/src/models/operations/getallprompts.ts +1316 -17840
- package/src/models/operations/getallpromptsnippets.ts +4472 -0
- package/src/models/operations/getoneprompt.ts +1914 -1
- package/src/models/operations/getpromptversion.ts +2012 -0
- package/src/models/operations/index.ts +8 -5
- package/src/models/operations/listpromptversions.ts +2146 -0
- package/src/models/operations/updateprompt.ts +2003 -12493
- package/src/models/operations/updatepromptsnippet.ts +6544 -0
- package/src/sdk/deployments.ts +25 -11
- package/src/sdk/files.ts +0 -33
- package/src/sdk/prompts.ts +51 -39
- package/src/sdk/promptsnippets.ts +99 -0
- package/src/sdk/sdk.ts +4 -4
- package/docs/sdks/prompt/README.md +0 -6
- package/docs/sdks/snippets/README.md +0 -84
- package/docs/sdks/templates/README.md +0 -80
- package/funcs/deploymentsAll.d.ts.map +0 -1
- package/funcs/deploymentsAll.js.map +0 -1
- package/funcs/filesBulkUpload.d.ts +0 -15
- package/funcs/filesBulkUpload.d.ts.map +0 -1
- package/funcs/filesBulkUpload.js +0 -109
- package/funcs/filesBulkUpload.js.map +0 -1
- package/funcs/filesUpdate.d.ts.map +0 -1
- package/funcs/filesUpdate.js.map +0 -1
- package/funcs/promptSnippetsFindOne.d.ts.map +0 -1
- package/funcs/promptSnippetsFindOne.js.map +0 -1
- package/funcs/promptTemplatesGetAll.d.ts.map +0 -1
- package/funcs/promptTemplatesGetAll.js.map +0 -1
- package/funcs/promptsCreateVersion.js.map +0 -1
- package/funcs/promptsDuplicate.d.ts.map +0 -1
- package/funcs/promptsDuplicate.js.map +0 -1
- package/funcs/promptsGetAll.d.ts.map +0 -1
- package/funcs/promptsGetAll.js.map +0 -1
- package/funcs/promptsGetOne.d.ts +0 -12
- package/funcs/promptsGetOne.d.ts.map +0 -1
- package/funcs/promptsGetOne.js.map +0 -1
- package/models/operations/bulkfileupload.d.ts +0 -173
- package/models/operations/bulkfileupload.d.ts.map +0 -1
- package/models/operations/bulkfileupload.js +0 -210
- package/models/operations/bulkfileupload.js.map +0 -1
- package/models/operations/createpromptversion.d.ts +0 -2003
- package/models/operations/createpromptversion.d.ts.map +0 -1
- package/models/operations/createpromptversion.js +0 -1852
- package/models/operations/createpromptversion.js.map +0 -1
- package/models/operations/duplicateprompt.d.ts +0 -32
- package/models/operations/duplicateprompt.d.ts.map +0 -1
- package/models/operations/duplicateprompt.js.map +0 -1
- package/models/operations/fileupdate.d.ts +0 -143
- package/models/operations/fileupdate.d.ts.map +0 -1
- package/models/operations/fileupdate.js +0 -193
- package/models/operations/fileupdate.js.map +0 -1
- package/models/operations/getallprompttemplates.d.ts +0 -6607
- package/models/operations/getallprompttemplates.d.ts.map +0 -1
- package/models/operations/getallprompttemplates.js +0 -6225
- package/models/operations/getallprompttemplates.js.map +0 -1
- package/sdk/prompt.d.ts +0 -10
- package/sdk/prompt.d.ts.map +0 -1
- package/sdk/prompt.js +0 -19
- package/sdk/prompt.js.map +0 -1
- package/sdk/snippets.d.ts +0 -9
- package/sdk/snippets.d.ts.map +0 -1
- package/sdk/snippets.js +0 -19
- package/sdk/snippets.js.map +0 -1
- package/sdk/templates.d.ts +0 -9
- package/sdk/templates.d.ts.map +0 -1
- package/sdk/templates.js +0 -19
- package/sdk/templates.js.map +0 -1
- package/src/funcs/filesBulkUpload.ts +0 -129
- package/src/models/operations/bulkfileupload.ts +0 -315
- package/src/models/operations/createpromptversion.ts +0 -3703
- package/src/models/operations/duplicateprompt.ts +0 -69
- package/src/models/operations/fileupdate.ts +0 -298
- package/src/models/operations/getallprompttemplates.ts +0 -13690
- package/src/sdk/prompt.ts +0 -19
- package/src/sdk/snippets.ts +0 -24
- package/src/sdk/templates.ts +0 -24
|
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* The type of the model
|
|
14
14
|
*/
|
|
15
|
-
export const
|
|
15
|
+
export const CreatePromptModelType = {
|
|
16
16
|
Chat: "chat",
|
|
17
17
|
Completion: "completion",
|
|
18
18
|
Embedding: "embedding",
|
|
@@ -26,12 +26,12 @@ export const ModelType = {
|
|
|
26
26
|
/**
|
|
27
27
|
* The type of the model
|
|
28
28
|
*/
|
|
29
|
-
export type
|
|
29
|
+
export type CreatePromptModelType = ClosedEnum<typeof CreatePromptModelType>;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Only supported on `image` models.
|
|
33
33
|
*/
|
|
34
|
-
export const
|
|
34
|
+
export const CreatePromptFormat = {
|
|
35
35
|
Url: "url",
|
|
36
36
|
B64Json: "b64_json",
|
|
37
37
|
Text: "text",
|
|
@@ -40,45 +40,47 @@ export const Format = {
|
|
|
40
40
|
/**
|
|
41
41
|
* Only supported on `image` models.
|
|
42
42
|
*/
|
|
43
|
-
export type
|
|
43
|
+
export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Only supported on `image` models.
|
|
47
47
|
*/
|
|
48
|
-
export const
|
|
48
|
+
export const CreatePromptQuality = {
|
|
49
49
|
Standard: "standard",
|
|
50
50
|
Hd: "hd",
|
|
51
51
|
} as const;
|
|
52
52
|
/**
|
|
53
53
|
* Only supported on `image` models.
|
|
54
54
|
*/
|
|
55
|
-
export type
|
|
55
|
+
export type CreatePromptQuality = ClosedEnum<typeof CreatePromptQuality>;
|
|
56
56
|
|
|
57
|
-
export const
|
|
57
|
+
export const CreatePromptResponseFormatPromptsType = {
|
|
58
58
|
JsonObject: "json_object",
|
|
59
59
|
} as const;
|
|
60
|
-
export type
|
|
61
|
-
typeof
|
|
60
|
+
export type CreatePromptResponseFormatPromptsType = ClosedEnum<
|
|
61
|
+
typeof CreatePromptResponseFormatPromptsType
|
|
62
62
|
>;
|
|
63
63
|
|
|
64
|
-
export type
|
|
65
|
-
type:
|
|
64
|
+
export type CreatePromptResponseFormat2 = {
|
|
65
|
+
type: CreatePromptResponseFormatPromptsType;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
export const
|
|
68
|
+
export const CreatePromptResponseFormatType = {
|
|
69
69
|
JsonSchema: "json_schema",
|
|
70
70
|
} as const;
|
|
71
|
-
export type
|
|
71
|
+
export type CreatePromptResponseFormatType = ClosedEnum<
|
|
72
|
+
typeof CreatePromptResponseFormatType
|
|
73
|
+
>;
|
|
72
74
|
|
|
73
|
-
export type
|
|
75
|
+
export type CreatePromptResponseFormatJsonSchema = {
|
|
74
76
|
name: string;
|
|
75
77
|
strict: boolean;
|
|
76
78
|
schema: { [k: string]: any };
|
|
77
79
|
};
|
|
78
80
|
|
|
79
|
-
export type
|
|
80
|
-
type:
|
|
81
|
-
jsonSchema:
|
|
81
|
+
export type CreatePromptResponseFormat1 = {
|
|
82
|
+
type: CreatePromptResponseFormatType;
|
|
83
|
+
jsonSchema: CreatePromptResponseFormatJsonSchema;
|
|
82
84
|
};
|
|
83
85
|
|
|
84
86
|
/**
|
|
@@ -92,36 +94,57 @@ export type ResponseFormat1 = {
|
|
|
92
94
|
*
|
|
93
95
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
94
96
|
*/
|
|
95
|
-
export type
|
|
97
|
+
export type CreatePromptResponseFormat =
|
|
98
|
+
| CreatePromptResponseFormat2
|
|
99
|
+
| CreatePromptResponseFormat1;
|
|
96
100
|
|
|
97
101
|
/**
|
|
98
102
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
99
103
|
*/
|
|
100
|
-
export const
|
|
104
|
+
export const CreatePromptPhotoRealVersion = {
|
|
101
105
|
V1: "v1",
|
|
102
106
|
V2: "v2",
|
|
103
107
|
} as const;
|
|
104
108
|
/**
|
|
105
109
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
106
110
|
*/
|
|
107
|
-
export type
|
|
111
|
+
export type CreatePromptPhotoRealVersion = ClosedEnum<
|
|
112
|
+
typeof CreatePromptPhotoRealVersion
|
|
113
|
+
>;
|
|
108
114
|
|
|
109
115
|
/**
|
|
110
116
|
* The format to return the embeddings
|
|
111
117
|
*/
|
|
112
|
-
export const
|
|
118
|
+
export const CreatePromptEncodingFormat = {
|
|
113
119
|
Float: "float",
|
|
114
120
|
Base64: "base64",
|
|
115
121
|
} as const;
|
|
116
122
|
/**
|
|
117
123
|
* The format to return the embeddings
|
|
118
124
|
*/
|
|
119
|
-
export type
|
|
125
|
+
export type CreatePromptEncodingFormat = ClosedEnum<
|
|
126
|
+
typeof CreatePromptEncodingFormat
|
|
127
|
+
>;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
131
|
+
*/
|
|
132
|
+
export const CreatePromptReasoningEffort = {
|
|
133
|
+
Low: "low",
|
|
134
|
+
Medium: "medium",
|
|
135
|
+
High: "high",
|
|
136
|
+
} as const;
|
|
137
|
+
/**
|
|
138
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
139
|
+
*/
|
|
140
|
+
export type CreatePromptReasoningEffort = ClosedEnum<
|
|
141
|
+
typeof CreatePromptReasoningEffort
|
|
142
|
+
>;
|
|
120
143
|
|
|
121
144
|
/**
|
|
122
145
|
* Model Parameters: Not all parameters apply to every model
|
|
123
146
|
*/
|
|
124
|
-
export type
|
|
147
|
+
export type CreatePromptModelParameters = {
|
|
125
148
|
/**
|
|
126
149
|
* Only supported on `chat` and `completion` models.
|
|
127
150
|
*/
|
|
@@ -157,7 +180,7 @@ export type ModelParameters = {
|
|
|
157
180
|
/**
|
|
158
181
|
* Only supported on `image` models.
|
|
159
182
|
*/
|
|
160
|
-
format?:
|
|
183
|
+
format?: CreatePromptFormat | undefined;
|
|
161
184
|
/**
|
|
162
185
|
* Only supported on `image` models.
|
|
163
186
|
*/
|
|
@@ -165,7 +188,7 @@ export type ModelParameters = {
|
|
|
165
188
|
/**
|
|
166
189
|
* Only supported on `image` models.
|
|
167
190
|
*/
|
|
168
|
-
quality?:
|
|
191
|
+
quality?: CreatePromptQuality | undefined;
|
|
169
192
|
/**
|
|
170
193
|
* Only supported on `image` models.
|
|
171
194
|
*/
|
|
@@ -181,18 +204,26 @@ export type ModelParameters = {
|
|
|
181
204
|
*
|
|
182
205
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
183
206
|
*/
|
|
184
|
-
responseFormat?:
|
|
207
|
+
responseFormat?:
|
|
208
|
+
| CreatePromptResponseFormat2
|
|
209
|
+
| CreatePromptResponseFormat1
|
|
210
|
+
| null
|
|
211
|
+
| undefined;
|
|
185
212
|
/**
|
|
186
213
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
187
214
|
*/
|
|
188
|
-
photoRealVersion?:
|
|
215
|
+
photoRealVersion?: CreatePromptPhotoRealVersion | undefined;
|
|
189
216
|
/**
|
|
190
217
|
* The format to return the embeddings
|
|
191
218
|
*/
|
|
192
|
-
encodingFormat?:
|
|
219
|
+
encodingFormat?: CreatePromptEncodingFormat | undefined;
|
|
220
|
+
/**
|
|
221
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
222
|
+
*/
|
|
223
|
+
reasoningEffort?: CreatePromptReasoningEffort | undefined;
|
|
193
224
|
};
|
|
194
225
|
|
|
195
|
-
export const
|
|
226
|
+
export const CreatePromptProvider = {
|
|
196
227
|
Cohere: "cohere",
|
|
197
228
|
Openai: "openai",
|
|
198
229
|
Anthropic: "anthropic",
|
|
@@ -209,8 +240,10 @@ export const Provider = {
|
|
|
209
240
|
Leonardoai: "leonardoai",
|
|
210
241
|
Nvidia: "nvidia",
|
|
211
242
|
Jina: "jina",
|
|
243
|
+
Togetherai: "togetherai",
|
|
244
|
+
Elevenlabs: "elevenlabs",
|
|
212
245
|
} as const;
|
|
213
|
-
export type
|
|
246
|
+
export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
|
|
214
247
|
|
|
215
248
|
/**
|
|
216
249
|
* The role of the prompt message
|
|
@@ -310,49 +343,104 @@ export type CreatePromptMessages = {
|
|
|
310
343
|
toolCalls?: Array<CreatePromptToolCalls> | undefined;
|
|
311
344
|
};
|
|
312
345
|
|
|
313
|
-
|
|
346
|
+
/**
|
|
347
|
+
* A list of messages compatible with the openAI schema
|
|
348
|
+
*/
|
|
349
|
+
export type CreatePromptPromptConfig = {
|
|
314
350
|
stream?: boolean | undefined;
|
|
315
351
|
model?: string | undefined;
|
|
316
352
|
/**
|
|
317
353
|
* The type of the model
|
|
318
354
|
*/
|
|
319
|
-
modelType?:
|
|
355
|
+
modelType?: CreatePromptModelType | undefined;
|
|
320
356
|
/**
|
|
321
357
|
* Model Parameters: Not all parameters apply to every model
|
|
322
358
|
*/
|
|
323
|
-
modelParameters?:
|
|
324
|
-
provider?:
|
|
359
|
+
modelParameters?: CreatePromptModelParameters | undefined;
|
|
360
|
+
provider?: CreatePromptProvider | undefined;
|
|
325
361
|
version?: string | undefined;
|
|
326
362
|
messages: Array<CreatePromptMessages>;
|
|
327
363
|
};
|
|
328
364
|
|
|
365
|
+
export const CreatePromptUseCases = {
|
|
366
|
+
Agents: "Agents",
|
|
367
|
+
AgentsSimulations: "Agents simulations",
|
|
368
|
+
APIInteraction: "API interaction",
|
|
369
|
+
AutonomousAgents: "Autonomous Agents",
|
|
370
|
+
Chatbots: "Chatbots",
|
|
371
|
+
Classification: "Classification",
|
|
372
|
+
CodeUnderstanding: "Code understanding",
|
|
373
|
+
CodeWriting: "Code writing",
|
|
374
|
+
DocumentsQA: "Documents QA",
|
|
375
|
+
Conversation: "Conversation",
|
|
376
|
+
Extraction: "Extraction",
|
|
377
|
+
MultiModal: "Multi-modal",
|
|
378
|
+
SelfChecking: "Self-checking",
|
|
379
|
+
Sql: "SQL",
|
|
380
|
+
Summarization: "Summarization",
|
|
381
|
+
Tagging: "Tagging",
|
|
382
|
+
} as const;
|
|
383
|
+
export type CreatePromptUseCases = ClosedEnum<typeof CreatePromptUseCases>;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
387
|
+
*/
|
|
388
|
+
export const CreatePromptLanguage = {
|
|
389
|
+
Chinese: "Chinese",
|
|
390
|
+
Dutch: "Dutch",
|
|
391
|
+
English: "English",
|
|
392
|
+
French: "French",
|
|
393
|
+
German: "German",
|
|
394
|
+
Russian: "Russian",
|
|
395
|
+
Spanish: "Spanish",
|
|
396
|
+
} as const;
|
|
397
|
+
/**
|
|
398
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
399
|
+
*/
|
|
400
|
+
export type CreatePromptLanguage = ClosedEnum<typeof CreatePromptLanguage>;
|
|
401
|
+
|
|
329
402
|
export type CreatePromptMetadata = {
|
|
330
|
-
|
|
331
|
-
|
|
403
|
+
/**
|
|
404
|
+
* 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
|
|
405
|
+
*/
|
|
406
|
+
useCases?: Array<CreatePromptUseCases> | undefined;
|
|
407
|
+
/**
|
|
408
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
409
|
+
*/
|
|
410
|
+
language?: CreatePromptLanguage | undefined;
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
export type CreatePromptRequestBody = {
|
|
414
|
+
/**
|
|
415
|
+
* The prompt’s name, meant to be displayable in the UI.
|
|
416
|
+
*/
|
|
417
|
+
displayName: string;
|
|
418
|
+
/**
|
|
419
|
+
* 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
|
|
420
|
+
*/
|
|
421
|
+
description?: string | null | undefined;
|
|
422
|
+
/**
|
|
423
|
+
* A list of messages compatible with the openAI schema
|
|
424
|
+
*/
|
|
425
|
+
promptConfig: CreatePromptPromptConfig;
|
|
426
|
+
metadata?: CreatePromptMetadata | undefined;
|
|
427
|
+
/**
|
|
428
|
+
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
429
|
+
*/
|
|
430
|
+
path: string;
|
|
332
431
|
};
|
|
333
432
|
|
|
334
433
|
export const CreatePromptPromptsType = {
|
|
335
434
|
Prompt: "prompt",
|
|
336
|
-
Snippet: "snippet",
|
|
337
|
-
Template: "template",
|
|
338
435
|
} as const;
|
|
339
436
|
export type CreatePromptPromptsType = ClosedEnum<
|
|
340
437
|
typeof CreatePromptPromptsType
|
|
341
438
|
>;
|
|
342
439
|
|
|
343
|
-
export type CreatePromptRequestBody = {
|
|
344
|
-
displayName: string;
|
|
345
|
-
description?: string | null | undefined;
|
|
346
|
-
promptConfig?: PromptConfig | undefined;
|
|
347
|
-
metadata?: CreatePromptMetadata | undefined;
|
|
348
|
-
key?: string | undefined;
|
|
349
|
-
type: CreatePromptPromptsType;
|
|
350
|
-
};
|
|
351
|
-
|
|
352
440
|
/**
|
|
353
441
|
* The type of the model
|
|
354
442
|
*/
|
|
355
|
-
export const
|
|
443
|
+
export const CreatePromptPromptsModelType = {
|
|
356
444
|
Chat: "chat",
|
|
357
445
|
Completion: "completion",
|
|
358
446
|
Embedding: "embedding",
|
|
@@ -366,12 +454,14 @@ export const CreatePromptModelType = {
|
|
|
366
454
|
/**
|
|
367
455
|
* The type of the model
|
|
368
456
|
*/
|
|
369
|
-
export type
|
|
457
|
+
export type CreatePromptPromptsModelType = ClosedEnum<
|
|
458
|
+
typeof CreatePromptPromptsModelType
|
|
459
|
+
>;
|
|
370
460
|
|
|
371
461
|
/**
|
|
372
462
|
* Only supported on `image` models.
|
|
373
463
|
*/
|
|
374
|
-
export const
|
|
464
|
+
export const CreatePromptPromptsFormat = {
|
|
375
465
|
Url: "url",
|
|
376
466
|
B64Json: "b64_json",
|
|
377
467
|
Text: "text",
|
|
@@ -380,47 +470,51 @@ export const CreatePromptFormat = {
|
|
|
380
470
|
/**
|
|
381
471
|
* Only supported on `image` models.
|
|
382
472
|
*/
|
|
383
|
-
export type
|
|
473
|
+
export type CreatePromptPromptsFormat = ClosedEnum<
|
|
474
|
+
typeof CreatePromptPromptsFormat
|
|
475
|
+
>;
|
|
384
476
|
|
|
385
477
|
/**
|
|
386
478
|
* Only supported on `image` models.
|
|
387
479
|
*/
|
|
388
|
-
export const
|
|
480
|
+
export const CreatePromptPromptsQuality = {
|
|
389
481
|
Standard: "standard",
|
|
390
482
|
Hd: "hd",
|
|
391
483
|
} as const;
|
|
392
484
|
/**
|
|
393
485
|
* Only supported on `image` models.
|
|
394
486
|
*/
|
|
395
|
-
export type
|
|
487
|
+
export type CreatePromptPromptsQuality = ClosedEnum<
|
|
488
|
+
typeof CreatePromptPromptsQuality
|
|
489
|
+
>;
|
|
396
490
|
|
|
397
|
-
export const
|
|
491
|
+
export const CreatePromptResponseFormatPromptsResponse200Type = {
|
|
398
492
|
JsonObject: "json_object",
|
|
399
493
|
} as const;
|
|
400
|
-
export type
|
|
401
|
-
typeof
|
|
494
|
+
export type CreatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
|
|
495
|
+
typeof CreatePromptResponseFormatPromptsResponse200Type
|
|
402
496
|
>;
|
|
403
497
|
|
|
404
|
-
export type
|
|
405
|
-
type:
|
|
498
|
+
export type CreatePromptResponseFormatPrompts2 = {
|
|
499
|
+
type: CreatePromptResponseFormatPromptsResponse200Type;
|
|
406
500
|
};
|
|
407
501
|
|
|
408
|
-
export const
|
|
502
|
+
export const CreatePromptResponseFormatPromptsResponseType = {
|
|
409
503
|
JsonSchema: "json_schema",
|
|
410
504
|
} as const;
|
|
411
|
-
export type
|
|
412
|
-
typeof
|
|
505
|
+
export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<
|
|
506
|
+
typeof CreatePromptResponseFormatPromptsResponseType
|
|
413
507
|
>;
|
|
414
508
|
|
|
415
|
-
export type
|
|
509
|
+
export type CreatePromptResponseFormatPromptsJsonSchema = {
|
|
416
510
|
name: string;
|
|
417
511
|
strict: boolean;
|
|
418
512
|
schema: { [k: string]: any };
|
|
419
513
|
};
|
|
420
514
|
|
|
421
|
-
export type
|
|
422
|
-
type:
|
|
423
|
-
jsonSchema:
|
|
515
|
+
export type CreatePromptResponseFormatPrompts1 = {
|
|
516
|
+
type: CreatePromptResponseFormatPromptsResponseType;
|
|
517
|
+
jsonSchema: CreatePromptResponseFormatPromptsJsonSchema;
|
|
424
518
|
};
|
|
425
519
|
|
|
426
520
|
/**
|
|
@@ -434,42 +528,57 @@ export type CreatePromptResponseFormat1 = {
|
|
|
434
528
|
*
|
|
435
529
|
* 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.
|
|
436
530
|
*/
|
|
437
|
-
export type
|
|
438
|
-
|
|
|
439
|
-
|
|
|
531
|
+
export type CreatePromptPromptsResponseFormat =
|
|
532
|
+
| CreatePromptResponseFormatPrompts2
|
|
533
|
+
| CreatePromptResponseFormatPrompts1;
|
|
440
534
|
|
|
441
535
|
/**
|
|
442
536
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
443
537
|
*/
|
|
444
|
-
export const
|
|
538
|
+
export const CreatePromptPromptsPhotoRealVersion = {
|
|
445
539
|
V1: "v1",
|
|
446
540
|
V2: "v2",
|
|
447
541
|
} as const;
|
|
448
542
|
/**
|
|
449
543
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
450
544
|
*/
|
|
451
|
-
export type
|
|
452
|
-
typeof
|
|
545
|
+
export type CreatePromptPromptsPhotoRealVersion = ClosedEnum<
|
|
546
|
+
typeof CreatePromptPromptsPhotoRealVersion
|
|
453
547
|
>;
|
|
454
548
|
|
|
455
549
|
/**
|
|
456
550
|
* The format to return the embeddings
|
|
457
551
|
*/
|
|
458
|
-
export const
|
|
552
|
+
export const CreatePromptPromptsEncodingFormat = {
|
|
459
553
|
Float: "float",
|
|
460
554
|
Base64: "base64",
|
|
461
555
|
} as const;
|
|
462
556
|
/**
|
|
463
557
|
* The format to return the embeddings
|
|
464
558
|
*/
|
|
465
|
-
export type
|
|
466
|
-
typeof
|
|
559
|
+
export type CreatePromptPromptsEncodingFormat = ClosedEnum<
|
|
560
|
+
typeof CreatePromptPromptsEncodingFormat
|
|
561
|
+
>;
|
|
562
|
+
|
|
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
|
+
export const CreatePromptPromptsReasoningEffort = {
|
|
567
|
+
Low: "low",
|
|
568
|
+
Medium: "medium",
|
|
569
|
+
High: "high",
|
|
570
|
+
} as const;
|
|
571
|
+
/**
|
|
572
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
573
|
+
*/
|
|
574
|
+
export type CreatePromptPromptsReasoningEffort = ClosedEnum<
|
|
575
|
+
typeof CreatePromptPromptsReasoningEffort
|
|
467
576
|
>;
|
|
468
577
|
|
|
469
578
|
/**
|
|
470
579
|
* Model Parameters: Not all parameters apply to every model
|
|
471
580
|
*/
|
|
472
|
-
export type
|
|
581
|
+
export type CreatePromptPromptsModelParameters = {
|
|
473
582
|
/**
|
|
474
583
|
* Only supported on `chat` and `completion` models.
|
|
475
584
|
*/
|
|
@@ -505,7 +614,7 @@ export type CreatePromptModelParameters = {
|
|
|
505
614
|
/**
|
|
506
615
|
* Only supported on `image` models.
|
|
507
616
|
*/
|
|
508
|
-
format?:
|
|
617
|
+
format?: CreatePromptPromptsFormat | undefined;
|
|
509
618
|
/**
|
|
510
619
|
* Only supported on `image` models.
|
|
511
620
|
*/
|
|
@@ -513,7 +622,7 @@ export type CreatePromptModelParameters = {
|
|
|
513
622
|
/**
|
|
514
623
|
* Only supported on `image` models.
|
|
515
624
|
*/
|
|
516
|
-
quality?:
|
|
625
|
+
quality?: CreatePromptPromptsQuality | undefined;
|
|
517
626
|
/**
|
|
518
627
|
* Only supported on `image` models.
|
|
519
628
|
*/
|
|
@@ -530,21 +639,25 @@ export type CreatePromptModelParameters = {
|
|
|
530
639
|
* 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.
|
|
531
640
|
*/
|
|
532
641
|
responseFormat?:
|
|
533
|
-
|
|
|
534
|
-
|
|
|
642
|
+
| CreatePromptResponseFormatPrompts2
|
|
643
|
+
| CreatePromptResponseFormatPrompts1
|
|
535
644
|
| null
|
|
536
645
|
| undefined;
|
|
537
646
|
/**
|
|
538
647
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
539
648
|
*/
|
|
540
|
-
photoRealVersion?:
|
|
649
|
+
photoRealVersion?: CreatePromptPromptsPhotoRealVersion | undefined;
|
|
541
650
|
/**
|
|
542
651
|
* The format to return the embeddings
|
|
543
652
|
*/
|
|
544
|
-
encodingFormat?:
|
|
653
|
+
encodingFormat?: CreatePromptPromptsEncodingFormat | undefined;
|
|
654
|
+
/**
|
|
655
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
656
|
+
*/
|
|
657
|
+
reasoningEffort?: CreatePromptPromptsReasoningEffort | undefined;
|
|
545
658
|
};
|
|
546
659
|
|
|
547
|
-
export const
|
|
660
|
+
export const CreatePromptPromptsProvider = {
|
|
548
661
|
Cohere: "cohere",
|
|
549
662
|
Openai: "openai",
|
|
550
663
|
Anthropic: "anthropic",
|
|
@@ -561,8 +674,12 @@ export const CreatePromptProvider = {
|
|
|
561
674
|
Leonardoai: "leonardoai",
|
|
562
675
|
Nvidia: "nvidia",
|
|
563
676
|
Jina: "jina",
|
|
677
|
+
Togetherai: "togetherai",
|
|
678
|
+
Elevenlabs: "elevenlabs",
|
|
564
679
|
} as const;
|
|
565
|
-
export type
|
|
680
|
+
export type CreatePromptPromptsProvider = ClosedEnum<
|
|
681
|
+
typeof CreatePromptPromptsProvider
|
|
682
|
+
>;
|
|
566
683
|
|
|
567
684
|
/**
|
|
568
685
|
* The role of the prompt message
|
|
@@ -640,11 +757,11 @@ export type CreatePromptPromptsContent =
|
|
|
640
757
|
| string
|
|
641
758
|
| Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
|
|
642
759
|
|
|
643
|
-
export const
|
|
760
|
+
export const CreatePromptPromptsResponseType = {
|
|
644
761
|
Function: "function",
|
|
645
762
|
} as const;
|
|
646
|
-
export type
|
|
647
|
-
typeof
|
|
763
|
+
export type CreatePromptPromptsResponseType = ClosedEnum<
|
|
764
|
+
typeof CreatePromptPromptsResponseType
|
|
648
765
|
>;
|
|
649
766
|
|
|
650
767
|
export type CreatePromptPromptsFunction = {
|
|
@@ -658,7 +775,7 @@ export type CreatePromptPromptsFunction = {
|
|
|
658
775
|
export type CreatePromptPromptsToolCalls = {
|
|
659
776
|
id?: string | undefined;
|
|
660
777
|
index?: number | undefined;
|
|
661
|
-
type:
|
|
778
|
+
type: CreatePromptPromptsResponseType;
|
|
662
779
|
function: CreatePromptPromptsFunction;
|
|
663
780
|
};
|
|
664
781
|
|
|
@@ -674,7 +791,10 @@ export type CreatePromptPromptsMessages = {
|
|
|
674
791
|
toolCalls?: Array<CreatePromptPromptsToolCalls> | undefined;
|
|
675
792
|
};
|
|
676
793
|
|
|
677
|
-
|
|
794
|
+
/**
|
|
795
|
+
* A list of messages compatible with the openAI schema
|
|
796
|
+
*/
|
|
797
|
+
export type CreatePromptPromptsPromptConfig = {
|
|
678
798
|
stream?: boolean | undefined;
|
|
679
799
|
model?: string | undefined;
|
|
680
800
|
/**
|
|
@@ -684,12 +804,12 @@ export type CreatePromptPromptConfig = {
|
|
|
684
804
|
/**
|
|
685
805
|
* The type of the model
|
|
686
806
|
*/
|
|
687
|
-
modelType?:
|
|
807
|
+
modelType?: CreatePromptPromptsModelType | undefined;
|
|
688
808
|
/**
|
|
689
809
|
* Model Parameters: Not all parameters apply to every model
|
|
690
810
|
*/
|
|
691
|
-
modelParameters?:
|
|
692
|
-
provider?:
|
|
811
|
+
modelParameters?: CreatePromptPromptsModelParameters | undefined;
|
|
812
|
+
provider?: CreatePromptPromptsProvider | undefined;
|
|
693
813
|
/**
|
|
694
814
|
* The id of the resource
|
|
695
815
|
*/
|
|
@@ -698,194 +818,252 @@ export type CreatePromptPromptConfig = {
|
|
|
698
818
|
messages: Array<CreatePromptPromptsMessages>;
|
|
699
819
|
};
|
|
700
820
|
|
|
701
|
-
export
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
821
|
+
export const CreatePromptPromptsUseCases = {
|
|
822
|
+
Agents: "Agents",
|
|
823
|
+
AgentsSimulations: "Agents simulations",
|
|
824
|
+
APIInteraction: "API interaction",
|
|
825
|
+
AutonomousAgents: "Autonomous Agents",
|
|
826
|
+
Chatbots: "Chatbots",
|
|
827
|
+
Classification: "Classification",
|
|
828
|
+
CodeUnderstanding: "Code understanding",
|
|
829
|
+
CodeWriting: "Code writing",
|
|
830
|
+
DocumentsQA: "Documents QA",
|
|
831
|
+
Conversation: "Conversation",
|
|
832
|
+
Extraction: "Extraction",
|
|
833
|
+
MultiModal: "Multi-modal",
|
|
834
|
+
SelfChecking: "Self-checking",
|
|
835
|
+
Sql: "SQL",
|
|
836
|
+
Summarization: "Summarization",
|
|
837
|
+
Tagging: "Tagging",
|
|
838
|
+
} as const;
|
|
839
|
+
export type CreatePromptPromptsUseCases = ClosedEnum<
|
|
840
|
+
typeof CreatePromptPromptsUseCases
|
|
841
|
+
>;
|
|
705
842
|
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
843
|
+
/**
|
|
844
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
845
|
+
*/
|
|
846
|
+
export const CreatePromptPromptsLanguage = {
|
|
847
|
+
Chinese: "Chinese",
|
|
848
|
+
Dutch: "Dutch",
|
|
849
|
+
English: "English",
|
|
850
|
+
French: "French",
|
|
851
|
+
German: "German",
|
|
852
|
+
Russian: "Russian",
|
|
853
|
+
Spanish: "Spanish",
|
|
710
854
|
} as const;
|
|
711
|
-
|
|
712
|
-
|
|
855
|
+
/**
|
|
856
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
857
|
+
*/
|
|
858
|
+
export type CreatePromptPromptsLanguage = ClosedEnum<
|
|
859
|
+
typeof CreatePromptPromptsLanguage
|
|
713
860
|
>;
|
|
714
861
|
|
|
862
|
+
export type CreatePromptPromptsMetadata = {
|
|
863
|
+
/**
|
|
864
|
+
* 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
|
|
865
|
+
*/
|
|
866
|
+
useCases?: Array<CreatePromptPromptsUseCases> | undefined;
|
|
867
|
+
/**
|
|
868
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
869
|
+
*/
|
|
870
|
+
language?: CreatePromptPromptsLanguage | undefined;
|
|
871
|
+
};
|
|
872
|
+
|
|
715
873
|
/**
|
|
716
874
|
* Prompt created.
|
|
717
875
|
*/
|
|
718
876
|
export type CreatePromptResponseBody = {
|
|
877
|
+
id: string;
|
|
878
|
+
type: CreatePromptPromptsType;
|
|
879
|
+
owner: string;
|
|
880
|
+
domainId: string;
|
|
881
|
+
created: string;
|
|
882
|
+
updated: string;
|
|
883
|
+
createdById?: string | undefined;
|
|
884
|
+
updatedById?: string | undefined;
|
|
719
885
|
/**
|
|
720
|
-
* The
|
|
886
|
+
* The prompt’s name, meant to be displayable in the UI.
|
|
721
887
|
*/
|
|
722
|
-
id: string;
|
|
723
888
|
displayName: string;
|
|
724
889
|
/**
|
|
725
|
-
* The
|
|
890
|
+
* 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
|
|
726
891
|
*/
|
|
727
|
-
domainId: string;
|
|
728
892
|
description?: string | null | undefined;
|
|
729
|
-
|
|
893
|
+
/**
|
|
894
|
+
* A list of messages compatible with the openAI schema
|
|
895
|
+
*/
|
|
896
|
+
promptConfig: CreatePromptPromptsPromptConfig;
|
|
730
897
|
metadata?: CreatePromptPromptsMetadata | undefined;
|
|
731
|
-
key?: string | undefined;
|
|
732
|
-
type: CreatePromptPromptsResponseType;
|
|
733
898
|
};
|
|
734
899
|
|
|
735
900
|
/** @internal */
|
|
736
|
-
export const
|
|
737
|
-
|
|
901
|
+
export const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<
|
|
902
|
+
typeof CreatePromptModelType
|
|
903
|
+
> = z.nativeEnum(CreatePromptModelType);
|
|
738
904
|
|
|
739
905
|
/** @internal */
|
|
740
|
-
export const
|
|
741
|
-
|
|
906
|
+
export const CreatePromptModelType$outboundSchema: z.ZodNativeEnum<
|
|
907
|
+
typeof CreatePromptModelType
|
|
908
|
+
> = CreatePromptModelType$inboundSchema;
|
|
742
909
|
|
|
743
910
|
/**
|
|
744
911
|
* @internal
|
|
745
912
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
746
913
|
*/
|
|
747
|
-
export namespace
|
|
748
|
-
/** @deprecated use `
|
|
749
|
-
export const inboundSchema =
|
|
750
|
-
/** @deprecated use `
|
|
751
|
-
export const outboundSchema =
|
|
914
|
+
export namespace CreatePromptModelType$ {
|
|
915
|
+
/** @deprecated use `CreatePromptModelType$inboundSchema` instead. */
|
|
916
|
+
export const inboundSchema = CreatePromptModelType$inboundSchema;
|
|
917
|
+
/** @deprecated use `CreatePromptModelType$outboundSchema` instead. */
|
|
918
|
+
export const outboundSchema = CreatePromptModelType$outboundSchema;
|
|
752
919
|
}
|
|
753
920
|
|
|
754
921
|
/** @internal */
|
|
755
|
-
export const
|
|
756
|
-
|
|
922
|
+
export const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<
|
|
923
|
+
typeof CreatePromptFormat
|
|
924
|
+
> = z.nativeEnum(CreatePromptFormat);
|
|
757
925
|
|
|
758
926
|
/** @internal */
|
|
759
|
-
export const
|
|
760
|
-
|
|
927
|
+
export const CreatePromptFormat$outboundSchema: z.ZodNativeEnum<
|
|
928
|
+
typeof CreatePromptFormat
|
|
929
|
+
> = CreatePromptFormat$inboundSchema;
|
|
761
930
|
|
|
762
931
|
/**
|
|
763
932
|
* @internal
|
|
764
933
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
765
934
|
*/
|
|
766
|
-
export namespace
|
|
767
|
-
/** @deprecated use `
|
|
768
|
-
export const inboundSchema =
|
|
769
|
-
/** @deprecated use `
|
|
770
|
-
export const outboundSchema =
|
|
935
|
+
export namespace CreatePromptFormat$ {
|
|
936
|
+
/** @deprecated use `CreatePromptFormat$inboundSchema` instead. */
|
|
937
|
+
export const inboundSchema = CreatePromptFormat$inboundSchema;
|
|
938
|
+
/** @deprecated use `CreatePromptFormat$outboundSchema` instead. */
|
|
939
|
+
export const outboundSchema = CreatePromptFormat$outboundSchema;
|
|
771
940
|
}
|
|
772
941
|
|
|
773
942
|
/** @internal */
|
|
774
|
-
export const
|
|
775
|
-
|
|
943
|
+
export const CreatePromptQuality$inboundSchema: z.ZodNativeEnum<
|
|
944
|
+
typeof CreatePromptQuality
|
|
945
|
+
> = z.nativeEnum(CreatePromptQuality);
|
|
776
946
|
|
|
777
947
|
/** @internal */
|
|
778
|
-
export const
|
|
779
|
-
|
|
948
|
+
export const CreatePromptQuality$outboundSchema: z.ZodNativeEnum<
|
|
949
|
+
typeof CreatePromptQuality
|
|
950
|
+
> = CreatePromptQuality$inboundSchema;
|
|
780
951
|
|
|
781
952
|
/**
|
|
782
953
|
* @internal
|
|
783
954
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
784
955
|
*/
|
|
785
|
-
export namespace
|
|
786
|
-
/** @deprecated use `
|
|
787
|
-
export const inboundSchema =
|
|
788
|
-
/** @deprecated use `
|
|
789
|
-
export const outboundSchema =
|
|
956
|
+
export namespace CreatePromptQuality$ {
|
|
957
|
+
/** @deprecated use `CreatePromptQuality$inboundSchema` instead. */
|
|
958
|
+
export const inboundSchema = CreatePromptQuality$inboundSchema;
|
|
959
|
+
/** @deprecated use `CreatePromptQuality$outboundSchema` instead. */
|
|
960
|
+
export const outboundSchema = CreatePromptQuality$outboundSchema;
|
|
790
961
|
}
|
|
791
962
|
|
|
792
963
|
/** @internal */
|
|
793
|
-
export const
|
|
794
|
-
typeof
|
|
795
|
-
|
|
964
|
+
export const CreatePromptResponseFormatPromptsType$inboundSchema:
|
|
965
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> = z.nativeEnum(
|
|
966
|
+
CreatePromptResponseFormatPromptsType,
|
|
967
|
+
);
|
|
796
968
|
|
|
797
969
|
/** @internal */
|
|
798
|
-
export const
|
|
799
|
-
typeof
|
|
800
|
-
|
|
970
|
+
export const CreatePromptResponseFormatPromptsType$outboundSchema:
|
|
971
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> =
|
|
972
|
+
CreatePromptResponseFormatPromptsType$inboundSchema;
|
|
801
973
|
|
|
802
974
|
/**
|
|
803
975
|
* @internal
|
|
804
976
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
805
977
|
*/
|
|
806
|
-
export namespace
|
|
807
|
-
/** @deprecated use `
|
|
808
|
-
export const inboundSchema =
|
|
809
|
-
|
|
810
|
-
|
|
978
|
+
export namespace CreatePromptResponseFormatPromptsType$ {
|
|
979
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
980
|
+
export const inboundSchema =
|
|
981
|
+
CreatePromptResponseFormatPromptsType$inboundSchema;
|
|
982
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
983
|
+
export const outboundSchema =
|
|
984
|
+
CreatePromptResponseFormatPromptsType$outboundSchema;
|
|
811
985
|
}
|
|
812
986
|
|
|
813
987
|
/** @internal */
|
|
814
|
-
export const
|
|
815
|
-
|
|
988
|
+
export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
|
|
989
|
+
CreatePromptResponseFormat2,
|
|
816
990
|
z.ZodTypeDef,
|
|
817
991
|
unknown
|
|
818
992
|
> = z.object({
|
|
819
|
-
type:
|
|
993
|
+
type: CreatePromptResponseFormatPromptsType$inboundSchema,
|
|
820
994
|
});
|
|
821
995
|
|
|
822
996
|
/** @internal */
|
|
823
|
-
export type
|
|
997
|
+
export type CreatePromptResponseFormat2$Outbound = {
|
|
824
998
|
type: string;
|
|
825
999
|
};
|
|
826
1000
|
|
|
827
1001
|
/** @internal */
|
|
828
|
-
export const
|
|
829
|
-
|
|
1002
|
+
export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
|
|
1003
|
+
CreatePromptResponseFormat2$Outbound,
|
|
830
1004
|
z.ZodTypeDef,
|
|
831
|
-
|
|
1005
|
+
CreatePromptResponseFormat2
|
|
832
1006
|
> = z.object({
|
|
833
|
-
type:
|
|
1007
|
+
type: CreatePromptResponseFormatPromptsType$outboundSchema,
|
|
834
1008
|
});
|
|
835
1009
|
|
|
836
1010
|
/**
|
|
837
1011
|
* @internal
|
|
838
1012
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
839
1013
|
*/
|
|
840
|
-
export namespace
|
|
841
|
-
/** @deprecated use `
|
|
842
|
-
export const inboundSchema =
|
|
843
|
-
/** @deprecated use `
|
|
844
|
-
export const outboundSchema =
|
|
845
|
-
/** @deprecated use `
|
|
846
|
-
export type Outbound =
|
|
1014
|
+
export namespace CreatePromptResponseFormat2$ {
|
|
1015
|
+
/** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
|
|
1016
|
+
export const inboundSchema = CreatePromptResponseFormat2$inboundSchema;
|
|
1017
|
+
/** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
|
|
1018
|
+
export const outboundSchema = CreatePromptResponseFormat2$outboundSchema;
|
|
1019
|
+
/** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
|
|
1020
|
+
export type Outbound = CreatePromptResponseFormat2$Outbound;
|
|
847
1021
|
}
|
|
848
1022
|
|
|
849
|
-
export function
|
|
850
|
-
|
|
1023
|
+
export function createPromptResponseFormat2ToJSON(
|
|
1024
|
+
createPromptResponseFormat2: CreatePromptResponseFormat2,
|
|
851
1025
|
): string {
|
|
852
|
-
return JSON.stringify(
|
|
1026
|
+
return JSON.stringify(
|
|
1027
|
+
CreatePromptResponseFormat2$outboundSchema.parse(
|
|
1028
|
+
createPromptResponseFormat2,
|
|
1029
|
+
),
|
|
1030
|
+
);
|
|
853
1031
|
}
|
|
854
1032
|
|
|
855
|
-
export function
|
|
1033
|
+
export function createPromptResponseFormat2FromJSON(
|
|
856
1034
|
jsonString: string,
|
|
857
|
-
): SafeParseResult<
|
|
1035
|
+
): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError> {
|
|
858
1036
|
return safeParse(
|
|
859
1037
|
jsonString,
|
|
860
|
-
(x) =>
|
|
861
|
-
`Failed to parse '
|
|
1038
|
+
(x) => CreatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
1039
|
+
`Failed to parse 'CreatePromptResponseFormat2' from JSON`,
|
|
862
1040
|
);
|
|
863
1041
|
}
|
|
864
1042
|
|
|
865
1043
|
/** @internal */
|
|
866
|
-
export const
|
|
867
|
-
typeof
|
|
868
|
-
> = z.nativeEnum(
|
|
1044
|
+
export const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
1045
|
+
typeof CreatePromptResponseFormatType
|
|
1046
|
+
> = z.nativeEnum(CreatePromptResponseFormatType);
|
|
869
1047
|
|
|
870
1048
|
/** @internal */
|
|
871
|
-
export const
|
|
872
|
-
typeof
|
|
873
|
-
> =
|
|
1049
|
+
export const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
1050
|
+
typeof CreatePromptResponseFormatType
|
|
1051
|
+
> = CreatePromptResponseFormatType$inboundSchema;
|
|
874
1052
|
|
|
875
1053
|
/**
|
|
876
1054
|
* @internal
|
|
877
1055
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
878
1056
|
*/
|
|
879
|
-
export namespace
|
|
880
|
-
/** @deprecated use `
|
|
881
|
-
export const inboundSchema =
|
|
882
|
-
/** @deprecated use `
|
|
883
|
-
export const outboundSchema =
|
|
1057
|
+
export namespace CreatePromptResponseFormatType$ {
|
|
1058
|
+
/** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
|
|
1059
|
+
export const inboundSchema = CreatePromptResponseFormatType$inboundSchema;
|
|
1060
|
+
/** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
|
|
1061
|
+
export const outboundSchema = CreatePromptResponseFormatType$outboundSchema;
|
|
884
1062
|
}
|
|
885
1063
|
|
|
886
1064
|
/** @internal */
|
|
887
|
-
export const
|
|
888
|
-
|
|
1065
|
+
export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
1066
|
+
CreatePromptResponseFormatJsonSchema,
|
|
889
1067
|
z.ZodTypeDef,
|
|
890
1068
|
unknown
|
|
891
1069
|
> = z.object({
|
|
@@ -895,17 +1073,17 @@ export const JsonSchema$inboundSchema: z.ZodType<
|
|
|
895
1073
|
});
|
|
896
1074
|
|
|
897
1075
|
/** @internal */
|
|
898
|
-
export type
|
|
1076
|
+
export type CreatePromptResponseFormatJsonSchema$Outbound = {
|
|
899
1077
|
name: string;
|
|
900
1078
|
strict: boolean;
|
|
901
1079
|
schema: { [k: string]: any };
|
|
902
1080
|
};
|
|
903
1081
|
|
|
904
1082
|
/** @internal */
|
|
905
|
-
export const
|
|
906
|
-
|
|
1083
|
+
export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
1084
|
+
CreatePromptResponseFormatJsonSchema$Outbound,
|
|
907
1085
|
z.ZodTypeDef,
|
|
908
|
-
|
|
1086
|
+
CreatePromptResponseFormatJsonSchema
|
|
909
1087
|
> = z.object({
|
|
910
1088
|
name: z.string(),
|
|
911
1089
|
strict: z.boolean(),
|
|
@@ -916,37 +1094,46 @@ export const JsonSchema$outboundSchema: z.ZodType<
|
|
|
916
1094
|
* @internal
|
|
917
1095
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
918
1096
|
*/
|
|
919
|
-
export namespace
|
|
920
|
-
/** @deprecated use `
|
|
921
|
-
export const inboundSchema =
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
1097
|
+
export namespace CreatePromptResponseFormatJsonSchema$ {
|
|
1098
|
+
/** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
|
|
1099
|
+
export const inboundSchema =
|
|
1100
|
+
CreatePromptResponseFormatJsonSchema$inboundSchema;
|
|
1101
|
+
/** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
|
|
1102
|
+
export const outboundSchema =
|
|
1103
|
+
CreatePromptResponseFormatJsonSchema$outboundSchema;
|
|
1104
|
+
/** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
|
|
1105
|
+
export type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
|
|
926
1106
|
}
|
|
927
1107
|
|
|
928
|
-
export function
|
|
929
|
-
|
|
1108
|
+
export function createPromptResponseFormatJsonSchemaToJSON(
|
|
1109
|
+
createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema,
|
|
1110
|
+
): string {
|
|
1111
|
+
return JSON.stringify(
|
|
1112
|
+
CreatePromptResponseFormatJsonSchema$outboundSchema.parse(
|
|
1113
|
+
createPromptResponseFormatJsonSchema,
|
|
1114
|
+
),
|
|
1115
|
+
);
|
|
930
1116
|
}
|
|
931
1117
|
|
|
932
|
-
export function
|
|
1118
|
+
export function createPromptResponseFormatJsonSchemaFromJSON(
|
|
933
1119
|
jsonString: string,
|
|
934
|
-
): SafeParseResult<
|
|
1120
|
+
): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError> {
|
|
935
1121
|
return safeParse(
|
|
936
1122
|
jsonString,
|
|
937
|
-
(x) =>
|
|
938
|
-
|
|
1123
|
+
(x) =>
|
|
1124
|
+
CreatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1125
|
+
`Failed to parse 'CreatePromptResponseFormatJsonSchema' from JSON`,
|
|
939
1126
|
);
|
|
940
1127
|
}
|
|
941
1128
|
|
|
942
1129
|
/** @internal */
|
|
943
|
-
export const
|
|
944
|
-
|
|
1130
|
+
export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
1131
|
+
CreatePromptResponseFormat1,
|
|
945
1132
|
z.ZodTypeDef,
|
|
946
1133
|
unknown
|
|
947
1134
|
> = z.object({
|
|
948
|
-
type:
|
|
949
|
-
json_schema: z.lazy(() =>
|
|
1135
|
+
type: CreatePromptResponseFormatType$inboundSchema,
|
|
1136
|
+
json_schema: z.lazy(() => CreatePromptResponseFormatJsonSchema$inboundSchema),
|
|
950
1137
|
}).transform((v) => {
|
|
951
1138
|
return remap$(v, {
|
|
952
1139
|
"json_schema": "jsonSchema",
|
|
@@ -954,19 +1141,19 @@ export const ResponseFormat1$inboundSchema: z.ZodType<
|
|
|
954
1141
|
});
|
|
955
1142
|
|
|
956
1143
|
/** @internal */
|
|
957
|
-
export type
|
|
1144
|
+
export type CreatePromptResponseFormat1$Outbound = {
|
|
958
1145
|
type: string;
|
|
959
|
-
json_schema:
|
|
1146
|
+
json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
|
|
960
1147
|
};
|
|
961
1148
|
|
|
962
1149
|
/** @internal */
|
|
963
|
-
export const
|
|
964
|
-
|
|
1150
|
+
export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
1151
|
+
CreatePromptResponseFormat1$Outbound,
|
|
965
1152
|
z.ZodTypeDef,
|
|
966
|
-
|
|
1153
|
+
CreatePromptResponseFormat1
|
|
967
1154
|
> = z.object({
|
|
968
|
-
type:
|
|
969
|
-
jsonSchema: z.lazy(() =>
|
|
1155
|
+
type: CreatePromptResponseFormatType$outboundSchema,
|
|
1156
|
+
jsonSchema: z.lazy(() => CreatePromptResponseFormatJsonSchema$outboundSchema),
|
|
970
1157
|
}).transform((v) => {
|
|
971
1158
|
return remap$(v, {
|
|
972
1159
|
jsonSchema: "json_schema",
|
|
@@ -977,128 +1164,157 @@ export const ResponseFormat1$outboundSchema: z.ZodType<
|
|
|
977
1164
|
* @internal
|
|
978
1165
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
979
1166
|
*/
|
|
980
|
-
export namespace
|
|
981
|
-
/** @deprecated use `
|
|
982
|
-
export const inboundSchema =
|
|
983
|
-
/** @deprecated use `
|
|
984
|
-
export const outboundSchema =
|
|
985
|
-
/** @deprecated use `
|
|
986
|
-
export type Outbound =
|
|
1167
|
+
export namespace CreatePromptResponseFormat1$ {
|
|
1168
|
+
/** @deprecated use `CreatePromptResponseFormat1$inboundSchema` instead. */
|
|
1169
|
+
export const inboundSchema = CreatePromptResponseFormat1$inboundSchema;
|
|
1170
|
+
/** @deprecated use `CreatePromptResponseFormat1$outboundSchema` instead. */
|
|
1171
|
+
export const outboundSchema = CreatePromptResponseFormat1$outboundSchema;
|
|
1172
|
+
/** @deprecated use `CreatePromptResponseFormat1$Outbound` instead. */
|
|
1173
|
+
export type Outbound = CreatePromptResponseFormat1$Outbound;
|
|
987
1174
|
}
|
|
988
1175
|
|
|
989
|
-
export function
|
|
990
|
-
|
|
1176
|
+
export function createPromptResponseFormat1ToJSON(
|
|
1177
|
+
createPromptResponseFormat1: CreatePromptResponseFormat1,
|
|
991
1178
|
): string {
|
|
992
|
-
return JSON.stringify(
|
|
1179
|
+
return JSON.stringify(
|
|
1180
|
+
CreatePromptResponseFormat1$outboundSchema.parse(
|
|
1181
|
+
createPromptResponseFormat1,
|
|
1182
|
+
),
|
|
1183
|
+
);
|
|
993
1184
|
}
|
|
994
1185
|
|
|
995
|
-
export function
|
|
1186
|
+
export function createPromptResponseFormat1FromJSON(
|
|
996
1187
|
jsonString: string,
|
|
997
|
-
): SafeParseResult<
|
|
1188
|
+
): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError> {
|
|
998
1189
|
return safeParse(
|
|
999
1190
|
jsonString,
|
|
1000
|
-
(x) =>
|
|
1001
|
-
`Failed to parse '
|
|
1191
|
+
(x) => CreatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
1192
|
+
`Failed to parse 'CreatePromptResponseFormat1' from JSON`,
|
|
1002
1193
|
);
|
|
1003
1194
|
}
|
|
1004
1195
|
|
|
1005
1196
|
/** @internal */
|
|
1006
|
-
export const
|
|
1007
|
-
|
|
1197
|
+
export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
|
|
1198
|
+
CreatePromptResponseFormat,
|
|
1008
1199
|
z.ZodTypeDef,
|
|
1009
1200
|
unknown
|
|
1010
1201
|
> = z.union([
|
|
1011
|
-
z.lazy(() =>
|
|
1012
|
-
z.lazy(() =>
|
|
1202
|
+
z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
|
|
1203
|
+
z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
|
|
1013
1204
|
]);
|
|
1014
1205
|
|
|
1015
1206
|
/** @internal */
|
|
1016
|
-
export type
|
|
1017
|
-
|
|
|
1018
|
-
|
|
|
1207
|
+
export type CreatePromptResponseFormat$Outbound =
|
|
1208
|
+
| CreatePromptResponseFormat2$Outbound
|
|
1209
|
+
| CreatePromptResponseFormat1$Outbound;
|
|
1019
1210
|
|
|
1020
1211
|
/** @internal */
|
|
1021
|
-
export const
|
|
1022
|
-
|
|
1212
|
+
export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
1213
|
+
CreatePromptResponseFormat$Outbound,
|
|
1023
1214
|
z.ZodTypeDef,
|
|
1024
|
-
|
|
1215
|
+
CreatePromptResponseFormat
|
|
1025
1216
|
> = z.union([
|
|
1026
|
-
z.lazy(() =>
|
|
1027
|
-
z.lazy(() =>
|
|
1217
|
+
z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
|
|
1218
|
+
z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
|
|
1028
1219
|
]);
|
|
1029
1220
|
|
|
1030
1221
|
/**
|
|
1031
1222
|
* @internal
|
|
1032
1223
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1033
1224
|
*/
|
|
1034
|
-
export namespace
|
|
1035
|
-
/** @deprecated use `
|
|
1036
|
-
export const inboundSchema =
|
|
1037
|
-
/** @deprecated use `
|
|
1038
|
-
export const outboundSchema =
|
|
1039
|
-
/** @deprecated use `
|
|
1040
|
-
export type Outbound =
|
|
1225
|
+
export namespace CreatePromptResponseFormat$ {
|
|
1226
|
+
/** @deprecated use `CreatePromptResponseFormat$inboundSchema` instead. */
|
|
1227
|
+
export const inboundSchema = CreatePromptResponseFormat$inboundSchema;
|
|
1228
|
+
/** @deprecated use `CreatePromptResponseFormat$outboundSchema` instead. */
|
|
1229
|
+
export const outboundSchema = CreatePromptResponseFormat$outboundSchema;
|
|
1230
|
+
/** @deprecated use `CreatePromptResponseFormat$Outbound` instead. */
|
|
1231
|
+
export type Outbound = CreatePromptResponseFormat$Outbound;
|
|
1041
1232
|
}
|
|
1042
1233
|
|
|
1043
|
-
export function
|
|
1044
|
-
|
|
1234
|
+
export function createPromptResponseFormatToJSON(
|
|
1235
|
+
createPromptResponseFormat: CreatePromptResponseFormat,
|
|
1236
|
+
): string {
|
|
1237
|
+
return JSON.stringify(
|
|
1238
|
+
CreatePromptResponseFormat$outboundSchema.parse(createPromptResponseFormat),
|
|
1239
|
+
);
|
|
1045
1240
|
}
|
|
1046
1241
|
|
|
1047
|
-
export function
|
|
1242
|
+
export function createPromptResponseFormatFromJSON(
|
|
1048
1243
|
jsonString: string,
|
|
1049
|
-
): SafeParseResult<
|
|
1244
|
+
): SafeParseResult<CreatePromptResponseFormat, SDKValidationError> {
|
|
1050
1245
|
return safeParse(
|
|
1051
1246
|
jsonString,
|
|
1052
|
-
(x) =>
|
|
1053
|
-
`Failed to parse '
|
|
1247
|
+
(x) => CreatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1248
|
+
`Failed to parse 'CreatePromptResponseFormat' from JSON`,
|
|
1054
1249
|
);
|
|
1055
1250
|
}
|
|
1056
1251
|
|
|
1057
1252
|
/** @internal */
|
|
1058
|
-
export const
|
|
1059
|
-
typeof
|
|
1060
|
-
> = z.nativeEnum(
|
|
1253
|
+
export const CreatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
1254
|
+
typeof CreatePromptPhotoRealVersion
|
|
1255
|
+
> = z.nativeEnum(CreatePromptPhotoRealVersion);
|
|
1256
|
+
|
|
1257
|
+
/** @internal */
|
|
1258
|
+
export const CreatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
|
|
1259
|
+
typeof CreatePromptPhotoRealVersion
|
|
1260
|
+
> = CreatePromptPhotoRealVersion$inboundSchema;
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* @internal
|
|
1264
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1265
|
+
*/
|
|
1266
|
+
export namespace CreatePromptPhotoRealVersion$ {
|
|
1267
|
+
/** @deprecated use `CreatePromptPhotoRealVersion$inboundSchema` instead. */
|
|
1268
|
+
export const inboundSchema = CreatePromptPhotoRealVersion$inboundSchema;
|
|
1269
|
+
/** @deprecated use `CreatePromptPhotoRealVersion$outboundSchema` instead. */
|
|
1270
|
+
export const outboundSchema = CreatePromptPhotoRealVersion$outboundSchema;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
/** @internal */
|
|
1274
|
+
export const CreatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
1275
|
+
typeof CreatePromptEncodingFormat
|
|
1276
|
+
> = z.nativeEnum(CreatePromptEncodingFormat);
|
|
1061
1277
|
|
|
1062
1278
|
/** @internal */
|
|
1063
|
-
export const
|
|
1064
|
-
typeof
|
|
1065
|
-
> =
|
|
1279
|
+
export const CreatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
1280
|
+
typeof CreatePromptEncodingFormat
|
|
1281
|
+
> = CreatePromptEncodingFormat$inboundSchema;
|
|
1066
1282
|
|
|
1067
1283
|
/**
|
|
1068
1284
|
* @internal
|
|
1069
1285
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1070
1286
|
*/
|
|
1071
|
-
export namespace
|
|
1072
|
-
/** @deprecated use `
|
|
1073
|
-
export const inboundSchema =
|
|
1074
|
-
/** @deprecated use `
|
|
1075
|
-
export const outboundSchema =
|
|
1287
|
+
export namespace CreatePromptEncodingFormat$ {
|
|
1288
|
+
/** @deprecated use `CreatePromptEncodingFormat$inboundSchema` instead. */
|
|
1289
|
+
export const inboundSchema = CreatePromptEncodingFormat$inboundSchema;
|
|
1290
|
+
/** @deprecated use `CreatePromptEncodingFormat$outboundSchema` instead. */
|
|
1291
|
+
export const outboundSchema = CreatePromptEncodingFormat$outboundSchema;
|
|
1076
1292
|
}
|
|
1077
1293
|
|
|
1078
1294
|
/** @internal */
|
|
1079
|
-
export const
|
|
1080
|
-
typeof
|
|
1081
|
-
> = z.nativeEnum(
|
|
1295
|
+
export const CreatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1296
|
+
typeof CreatePromptReasoningEffort
|
|
1297
|
+
> = z.nativeEnum(CreatePromptReasoningEffort);
|
|
1082
1298
|
|
|
1083
1299
|
/** @internal */
|
|
1084
|
-
export const
|
|
1085
|
-
typeof
|
|
1086
|
-
> =
|
|
1300
|
+
export const CreatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
1301
|
+
typeof CreatePromptReasoningEffort
|
|
1302
|
+
> = CreatePromptReasoningEffort$inboundSchema;
|
|
1087
1303
|
|
|
1088
1304
|
/**
|
|
1089
1305
|
* @internal
|
|
1090
1306
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1091
1307
|
*/
|
|
1092
|
-
export namespace
|
|
1093
|
-
/** @deprecated use `
|
|
1094
|
-
export const inboundSchema =
|
|
1095
|
-
/** @deprecated use `
|
|
1096
|
-
export const outboundSchema =
|
|
1308
|
+
export namespace CreatePromptReasoningEffort$ {
|
|
1309
|
+
/** @deprecated use `CreatePromptReasoningEffort$inboundSchema` instead. */
|
|
1310
|
+
export const inboundSchema = CreatePromptReasoningEffort$inboundSchema;
|
|
1311
|
+
/** @deprecated use `CreatePromptReasoningEffort$outboundSchema` instead. */
|
|
1312
|
+
export const outboundSchema = CreatePromptReasoningEffort$outboundSchema;
|
|
1097
1313
|
}
|
|
1098
1314
|
|
|
1099
1315
|
/** @internal */
|
|
1100
|
-
export const
|
|
1101
|
-
|
|
1316
|
+
export const CreatePromptModelParameters$inboundSchema: z.ZodType<
|
|
1317
|
+
CreatePromptModelParameters,
|
|
1102
1318
|
z.ZodTypeDef,
|
|
1103
1319
|
unknown
|
|
1104
1320
|
> = z.object({
|
|
@@ -1110,18 +1326,19 @@ export const ModelParameters$inboundSchema: z.ZodType<
|
|
|
1110
1326
|
presencePenalty: z.number().optional(),
|
|
1111
1327
|
numImages: z.number().optional(),
|
|
1112
1328
|
seed: z.number().optional(),
|
|
1113
|
-
format:
|
|
1329
|
+
format: CreatePromptFormat$inboundSchema.optional(),
|
|
1114
1330
|
dimensions: z.string().optional(),
|
|
1115
|
-
quality:
|
|
1331
|
+
quality: CreatePromptQuality$inboundSchema.optional(),
|
|
1116
1332
|
style: z.string().optional(),
|
|
1117
1333
|
responseFormat: z.nullable(
|
|
1118
1334
|
z.union([
|
|
1119
|
-
z.lazy(() =>
|
|
1120
|
-
z.lazy(() =>
|
|
1335
|
+
z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
|
|
1336
|
+
z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
|
|
1121
1337
|
]),
|
|
1122
1338
|
).optional(),
|
|
1123
|
-
photoRealVersion:
|
|
1124
|
-
encoding_format:
|
|
1339
|
+
photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
1340
|
+
encoding_format: CreatePromptEncodingFormat$inboundSchema.optional(),
|
|
1341
|
+
reasoningEffort: CreatePromptReasoningEffort$inboundSchema.optional(),
|
|
1125
1342
|
}).transform((v) => {
|
|
1126
1343
|
return remap$(v, {
|
|
1127
1344
|
"encoding_format": "encodingFormat",
|
|
@@ -1129,7 +1346,7 @@ export const ModelParameters$inboundSchema: z.ZodType<
|
|
|
1129
1346
|
});
|
|
1130
1347
|
|
|
1131
1348
|
/** @internal */
|
|
1132
|
-
export type
|
|
1349
|
+
export type CreatePromptModelParameters$Outbound = {
|
|
1133
1350
|
temperature?: number | undefined;
|
|
1134
1351
|
maxTokens?: number | undefined;
|
|
1135
1352
|
topK?: number | undefined;
|
|
@@ -1143,19 +1360,20 @@ export type ModelParameters$Outbound = {
|
|
|
1143
1360
|
quality?: string | undefined;
|
|
1144
1361
|
style?: string | undefined;
|
|
1145
1362
|
responseFormat?:
|
|
1146
|
-
|
|
|
1147
|
-
|
|
|
1363
|
+
| CreatePromptResponseFormat2$Outbound
|
|
1364
|
+
| CreatePromptResponseFormat1$Outbound
|
|
1148
1365
|
| null
|
|
1149
1366
|
| undefined;
|
|
1150
1367
|
photoRealVersion?: string | undefined;
|
|
1151
1368
|
encoding_format?: string | undefined;
|
|
1369
|
+
reasoningEffort?: string | undefined;
|
|
1152
1370
|
};
|
|
1153
1371
|
|
|
1154
1372
|
/** @internal */
|
|
1155
|
-
export const
|
|
1156
|
-
|
|
1373
|
+
export const CreatePromptModelParameters$outboundSchema: z.ZodType<
|
|
1374
|
+
CreatePromptModelParameters$Outbound,
|
|
1157
1375
|
z.ZodTypeDef,
|
|
1158
|
-
|
|
1376
|
+
CreatePromptModelParameters
|
|
1159
1377
|
> = z.object({
|
|
1160
1378
|
temperature: z.number().optional(),
|
|
1161
1379
|
maxTokens: z.number().optional(),
|
|
@@ -1165,18 +1383,19 @@ export const ModelParameters$outboundSchema: z.ZodType<
|
|
|
1165
1383
|
presencePenalty: z.number().optional(),
|
|
1166
1384
|
numImages: z.number().optional(),
|
|
1167
1385
|
seed: z.number().optional(),
|
|
1168
|
-
format:
|
|
1386
|
+
format: CreatePromptFormat$outboundSchema.optional(),
|
|
1169
1387
|
dimensions: z.string().optional(),
|
|
1170
|
-
quality:
|
|
1388
|
+
quality: CreatePromptQuality$outboundSchema.optional(),
|
|
1171
1389
|
style: z.string().optional(),
|
|
1172
1390
|
responseFormat: z.nullable(
|
|
1173
1391
|
z.union([
|
|
1174
|
-
z.lazy(() =>
|
|
1175
|
-
z.lazy(() =>
|
|
1392
|
+
z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
|
|
1393
|
+
z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
|
|
1176
1394
|
]),
|
|
1177
1395
|
).optional(),
|
|
1178
|
-
photoRealVersion:
|
|
1179
|
-
encodingFormat:
|
|
1396
|
+
photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
|
|
1397
|
+
encodingFormat: CreatePromptEncodingFormat$outboundSchema.optional(),
|
|
1398
|
+
reasoningEffort: CreatePromptReasoningEffort$outboundSchema.optional(),
|
|
1180
1399
|
}).transform((v) => {
|
|
1181
1400
|
return remap$(v, {
|
|
1182
1401
|
encodingFormat: "encoding_format",
|
|
@@ -1187,48 +1406,54 @@ export const ModelParameters$outboundSchema: z.ZodType<
|
|
|
1187
1406
|
* @internal
|
|
1188
1407
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1189
1408
|
*/
|
|
1190
|
-
export namespace
|
|
1191
|
-
/** @deprecated use `
|
|
1192
|
-
export const inboundSchema =
|
|
1193
|
-
/** @deprecated use `
|
|
1194
|
-
export const outboundSchema =
|
|
1195
|
-
/** @deprecated use `
|
|
1196
|
-
export type Outbound =
|
|
1409
|
+
export namespace CreatePromptModelParameters$ {
|
|
1410
|
+
/** @deprecated use `CreatePromptModelParameters$inboundSchema` instead. */
|
|
1411
|
+
export const inboundSchema = CreatePromptModelParameters$inboundSchema;
|
|
1412
|
+
/** @deprecated use `CreatePromptModelParameters$outboundSchema` instead. */
|
|
1413
|
+
export const outboundSchema = CreatePromptModelParameters$outboundSchema;
|
|
1414
|
+
/** @deprecated use `CreatePromptModelParameters$Outbound` instead. */
|
|
1415
|
+
export type Outbound = CreatePromptModelParameters$Outbound;
|
|
1197
1416
|
}
|
|
1198
1417
|
|
|
1199
|
-
export function
|
|
1200
|
-
|
|
1418
|
+
export function createPromptModelParametersToJSON(
|
|
1419
|
+
createPromptModelParameters: CreatePromptModelParameters,
|
|
1201
1420
|
): string {
|
|
1202
|
-
return JSON.stringify(
|
|
1421
|
+
return JSON.stringify(
|
|
1422
|
+
CreatePromptModelParameters$outboundSchema.parse(
|
|
1423
|
+
createPromptModelParameters,
|
|
1424
|
+
),
|
|
1425
|
+
);
|
|
1203
1426
|
}
|
|
1204
1427
|
|
|
1205
|
-
export function
|
|
1428
|
+
export function createPromptModelParametersFromJSON(
|
|
1206
1429
|
jsonString: string,
|
|
1207
|
-
): SafeParseResult<
|
|
1430
|
+
): SafeParseResult<CreatePromptModelParameters, SDKValidationError> {
|
|
1208
1431
|
return safeParse(
|
|
1209
1432
|
jsonString,
|
|
1210
|
-
(x) =>
|
|
1211
|
-
`Failed to parse '
|
|
1433
|
+
(x) => CreatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1434
|
+
`Failed to parse 'CreatePromptModelParameters' from JSON`,
|
|
1212
1435
|
);
|
|
1213
1436
|
}
|
|
1214
1437
|
|
|
1215
1438
|
/** @internal */
|
|
1216
|
-
export const
|
|
1217
|
-
|
|
1439
|
+
export const CreatePromptProvider$inboundSchema: z.ZodNativeEnum<
|
|
1440
|
+
typeof CreatePromptProvider
|
|
1441
|
+
> = z.nativeEnum(CreatePromptProvider);
|
|
1218
1442
|
|
|
1219
1443
|
/** @internal */
|
|
1220
|
-
export const
|
|
1221
|
-
|
|
1444
|
+
export const CreatePromptProvider$outboundSchema: z.ZodNativeEnum<
|
|
1445
|
+
typeof CreatePromptProvider
|
|
1446
|
+
> = CreatePromptProvider$inboundSchema;
|
|
1222
1447
|
|
|
1223
1448
|
/**
|
|
1224
1449
|
* @internal
|
|
1225
1450
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1226
1451
|
*/
|
|
1227
|
-
export namespace
|
|
1228
|
-
/** @deprecated use `
|
|
1229
|
-
export const inboundSchema =
|
|
1230
|
-
/** @deprecated use `
|
|
1231
|
-
export const outboundSchema =
|
|
1452
|
+
export namespace CreatePromptProvider$ {
|
|
1453
|
+
/** @deprecated use `CreatePromptProvider$inboundSchema` instead. */
|
|
1454
|
+
export const inboundSchema = CreatePromptProvider$inboundSchema;
|
|
1455
|
+
/** @deprecated use `CreatePromptProvider$outboundSchema` instead. */
|
|
1456
|
+
export const outboundSchema = CreatePromptProvider$outboundSchema;
|
|
1232
1457
|
}
|
|
1233
1458
|
|
|
1234
1459
|
/** @internal */
|
|
@@ -1807,16 +2032,17 @@ export function createPromptMessagesFromJSON(
|
|
|
1807
2032
|
}
|
|
1808
2033
|
|
|
1809
2034
|
/** @internal */
|
|
1810
|
-
export const
|
|
1811
|
-
|
|
2035
|
+
export const CreatePromptPromptConfig$inboundSchema: z.ZodType<
|
|
2036
|
+
CreatePromptPromptConfig,
|
|
1812
2037
|
z.ZodTypeDef,
|
|
1813
2038
|
unknown
|
|
1814
2039
|
> = z.object({
|
|
1815
2040
|
stream: z.boolean().optional(),
|
|
1816
2041
|
model: z.string().optional(),
|
|
1817
|
-
model_type:
|
|
1818
|
-
model_parameters: z.lazy(() =>
|
|
1819
|
-
|
|
2042
|
+
model_type: CreatePromptModelType$inboundSchema.optional(),
|
|
2043
|
+
model_parameters: z.lazy(() => CreatePromptModelParameters$inboundSchema)
|
|
2044
|
+
.optional(),
|
|
2045
|
+
provider: CreatePromptProvider$inboundSchema.optional(),
|
|
1820
2046
|
version: z.string().optional(),
|
|
1821
2047
|
messages: z.array(z.lazy(() => CreatePromptMessages$inboundSchema)),
|
|
1822
2048
|
}).transform((v) => {
|
|
@@ -1827,27 +2053,28 @@ export const PromptConfig$inboundSchema: z.ZodType<
|
|
|
1827
2053
|
});
|
|
1828
2054
|
|
|
1829
2055
|
/** @internal */
|
|
1830
|
-
export type
|
|
2056
|
+
export type CreatePromptPromptConfig$Outbound = {
|
|
1831
2057
|
stream?: boolean | undefined;
|
|
1832
2058
|
model?: string | undefined;
|
|
1833
2059
|
model_type?: string | undefined;
|
|
1834
|
-
model_parameters?:
|
|
2060
|
+
model_parameters?: CreatePromptModelParameters$Outbound | undefined;
|
|
1835
2061
|
provider?: string | undefined;
|
|
1836
2062
|
version?: string | undefined;
|
|
1837
2063
|
messages: Array<CreatePromptMessages$Outbound>;
|
|
1838
2064
|
};
|
|
1839
2065
|
|
|
1840
2066
|
/** @internal */
|
|
1841
|
-
export const
|
|
1842
|
-
|
|
2067
|
+
export const CreatePromptPromptConfig$outboundSchema: z.ZodType<
|
|
2068
|
+
CreatePromptPromptConfig$Outbound,
|
|
1843
2069
|
z.ZodTypeDef,
|
|
1844
|
-
|
|
2070
|
+
CreatePromptPromptConfig
|
|
1845
2071
|
> = z.object({
|
|
1846
2072
|
stream: z.boolean().optional(),
|
|
1847
2073
|
model: z.string().optional(),
|
|
1848
|
-
modelType:
|
|
1849
|
-
modelParameters: z.lazy(() =>
|
|
1850
|
-
|
|
2074
|
+
modelType: CreatePromptModelType$outboundSchema.optional(),
|
|
2075
|
+
modelParameters: z.lazy(() => CreatePromptModelParameters$outboundSchema)
|
|
2076
|
+
.optional(),
|
|
2077
|
+
provider: CreatePromptProvider$outboundSchema.optional(),
|
|
1851
2078
|
version: z.string().optional(),
|
|
1852
2079
|
messages: z.array(z.lazy(() => CreatePromptMessages$outboundSchema)),
|
|
1853
2080
|
}).transform((v) => {
|
|
@@ -1861,37 +2088,83 @@ export const PromptConfig$outboundSchema: z.ZodType<
|
|
|
1861
2088
|
* @internal
|
|
1862
2089
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1863
2090
|
*/
|
|
1864
|
-
export namespace
|
|
1865
|
-
/** @deprecated use `
|
|
1866
|
-
export const inboundSchema =
|
|
1867
|
-
/** @deprecated use `
|
|
1868
|
-
export const outboundSchema =
|
|
1869
|
-
/** @deprecated use `
|
|
1870
|
-
export type Outbound =
|
|
2091
|
+
export namespace CreatePromptPromptConfig$ {
|
|
2092
|
+
/** @deprecated use `CreatePromptPromptConfig$inboundSchema` instead. */
|
|
2093
|
+
export const inboundSchema = CreatePromptPromptConfig$inboundSchema;
|
|
2094
|
+
/** @deprecated use `CreatePromptPromptConfig$outboundSchema` instead. */
|
|
2095
|
+
export const outboundSchema = CreatePromptPromptConfig$outboundSchema;
|
|
2096
|
+
/** @deprecated use `CreatePromptPromptConfig$Outbound` instead. */
|
|
2097
|
+
export type Outbound = CreatePromptPromptConfig$Outbound;
|
|
1871
2098
|
}
|
|
1872
2099
|
|
|
1873
|
-
export function
|
|
1874
|
-
|
|
2100
|
+
export function createPromptPromptConfigToJSON(
|
|
2101
|
+
createPromptPromptConfig: CreatePromptPromptConfig,
|
|
2102
|
+
): string {
|
|
2103
|
+
return JSON.stringify(
|
|
2104
|
+
CreatePromptPromptConfig$outboundSchema.parse(createPromptPromptConfig),
|
|
2105
|
+
);
|
|
1875
2106
|
}
|
|
1876
2107
|
|
|
1877
|
-
export function
|
|
2108
|
+
export function createPromptPromptConfigFromJSON(
|
|
1878
2109
|
jsonString: string,
|
|
1879
|
-
): SafeParseResult<
|
|
2110
|
+
): SafeParseResult<CreatePromptPromptConfig, SDKValidationError> {
|
|
1880
2111
|
return safeParse(
|
|
1881
2112
|
jsonString,
|
|
1882
|
-
(x) =>
|
|
1883
|
-
`Failed to parse '
|
|
2113
|
+
(x) => CreatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
2114
|
+
`Failed to parse 'CreatePromptPromptConfig' from JSON`,
|
|
1884
2115
|
);
|
|
1885
2116
|
}
|
|
1886
2117
|
|
|
2118
|
+
/** @internal */
|
|
2119
|
+
export const CreatePromptUseCases$inboundSchema: z.ZodNativeEnum<
|
|
2120
|
+
typeof CreatePromptUseCases
|
|
2121
|
+
> = z.nativeEnum(CreatePromptUseCases);
|
|
2122
|
+
|
|
2123
|
+
/** @internal */
|
|
2124
|
+
export const CreatePromptUseCases$outboundSchema: z.ZodNativeEnum<
|
|
2125
|
+
typeof CreatePromptUseCases
|
|
2126
|
+
> = CreatePromptUseCases$inboundSchema;
|
|
2127
|
+
|
|
2128
|
+
/**
|
|
2129
|
+
* @internal
|
|
2130
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2131
|
+
*/
|
|
2132
|
+
export namespace CreatePromptUseCases$ {
|
|
2133
|
+
/** @deprecated use `CreatePromptUseCases$inboundSchema` instead. */
|
|
2134
|
+
export const inboundSchema = CreatePromptUseCases$inboundSchema;
|
|
2135
|
+
/** @deprecated use `CreatePromptUseCases$outboundSchema` instead. */
|
|
2136
|
+
export const outboundSchema = CreatePromptUseCases$outboundSchema;
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
/** @internal */
|
|
2140
|
+
export const CreatePromptLanguage$inboundSchema: z.ZodNativeEnum<
|
|
2141
|
+
typeof CreatePromptLanguage
|
|
2142
|
+
> = z.nativeEnum(CreatePromptLanguage);
|
|
2143
|
+
|
|
2144
|
+
/** @internal */
|
|
2145
|
+
export const CreatePromptLanguage$outboundSchema: z.ZodNativeEnum<
|
|
2146
|
+
typeof CreatePromptLanguage
|
|
2147
|
+
> = CreatePromptLanguage$inboundSchema;
|
|
2148
|
+
|
|
2149
|
+
/**
|
|
2150
|
+
* @internal
|
|
2151
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2152
|
+
*/
|
|
2153
|
+
export namespace CreatePromptLanguage$ {
|
|
2154
|
+
/** @deprecated use `CreatePromptLanguage$inboundSchema` instead. */
|
|
2155
|
+
export const inboundSchema = CreatePromptLanguage$inboundSchema;
|
|
2156
|
+
/** @deprecated use `CreatePromptLanguage$outboundSchema` instead. */
|
|
2157
|
+
export const outboundSchema = CreatePromptLanguage$outboundSchema;
|
|
2158
|
+
}
|
|
2159
|
+
|
|
1887
2160
|
/** @internal */
|
|
1888
2161
|
export const CreatePromptMetadata$inboundSchema: z.ZodType<
|
|
1889
2162
|
CreatePromptMetadata,
|
|
1890
2163
|
z.ZodTypeDef,
|
|
1891
2164
|
unknown
|
|
1892
2165
|
> = z.object({
|
|
1893
|
-
use_cases: z.array(
|
|
1894
|
-
language:
|
|
2166
|
+
use_cases: z.array(CreatePromptUseCases$inboundSchema).optional(),
|
|
2167
|
+
language: CreatePromptLanguage$inboundSchema.optional(),
|
|
1895
2168
|
}).transform((v) => {
|
|
1896
2169
|
return remap$(v, {
|
|
1897
2170
|
"use_cases": "useCases",
|
|
@@ -1910,8 +2183,8 @@ export const CreatePromptMetadata$outboundSchema: z.ZodType<
|
|
|
1910
2183
|
z.ZodTypeDef,
|
|
1911
2184
|
CreatePromptMetadata
|
|
1912
2185
|
> = z.object({
|
|
1913
|
-
useCases: z.array(
|
|
1914
|
-
language:
|
|
2186
|
+
useCases: z.array(CreatePromptUseCases$outboundSchema).optional(),
|
|
2187
|
+
language: CreatePromptLanguage$outboundSchema.optional(),
|
|
1915
2188
|
}).transform((v) => {
|
|
1916
2189
|
return remap$(v, {
|
|
1917
2190
|
useCases: "use_cases",
|
|
@@ -1949,27 +2222,6 @@ export function createPromptMetadataFromJSON(
|
|
|
1949
2222
|
);
|
|
1950
2223
|
}
|
|
1951
2224
|
|
|
1952
|
-
/** @internal */
|
|
1953
|
-
export const CreatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1954
|
-
typeof CreatePromptPromptsType
|
|
1955
|
-
> = z.nativeEnum(CreatePromptPromptsType);
|
|
1956
|
-
|
|
1957
|
-
/** @internal */
|
|
1958
|
-
export const CreatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
1959
|
-
typeof CreatePromptPromptsType
|
|
1960
|
-
> = CreatePromptPromptsType$inboundSchema;
|
|
1961
|
-
|
|
1962
|
-
/**
|
|
1963
|
-
* @internal
|
|
1964
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1965
|
-
*/
|
|
1966
|
-
export namespace CreatePromptPromptsType$ {
|
|
1967
|
-
/** @deprecated use `CreatePromptPromptsType$inboundSchema` instead. */
|
|
1968
|
-
export const inboundSchema = CreatePromptPromptsType$inboundSchema;
|
|
1969
|
-
/** @deprecated use `CreatePromptPromptsType$outboundSchema` instead. */
|
|
1970
|
-
export const outboundSchema = CreatePromptPromptsType$outboundSchema;
|
|
1971
|
-
}
|
|
1972
|
-
|
|
1973
2225
|
/** @internal */
|
|
1974
2226
|
export const CreatePromptRequestBody$inboundSchema: z.ZodType<
|
|
1975
2227
|
CreatePromptRequestBody,
|
|
@@ -1978,10 +2230,9 @@ export const CreatePromptRequestBody$inboundSchema: z.ZodType<
|
|
|
1978
2230
|
> = z.object({
|
|
1979
2231
|
display_name: z.string(),
|
|
1980
2232
|
description: z.nullable(z.string()).optional(),
|
|
1981
|
-
prompt_config: z.lazy(() =>
|
|
2233
|
+
prompt_config: z.lazy(() => CreatePromptPromptConfig$inboundSchema),
|
|
1982
2234
|
metadata: z.lazy(() => CreatePromptMetadata$inboundSchema).optional(),
|
|
1983
|
-
|
|
1984
|
-
type: CreatePromptPromptsType$inboundSchema,
|
|
2235
|
+
path: z.string(),
|
|
1985
2236
|
}).transform((v) => {
|
|
1986
2237
|
return remap$(v, {
|
|
1987
2238
|
"display_name": "displayName",
|
|
@@ -1993,10 +2244,9 @@ export const CreatePromptRequestBody$inboundSchema: z.ZodType<
|
|
|
1993
2244
|
export type CreatePromptRequestBody$Outbound = {
|
|
1994
2245
|
display_name: string;
|
|
1995
2246
|
description?: string | null | undefined;
|
|
1996
|
-
prompt_config
|
|
2247
|
+
prompt_config: CreatePromptPromptConfig$Outbound;
|
|
1997
2248
|
metadata?: CreatePromptMetadata$Outbound | undefined;
|
|
1998
|
-
|
|
1999
|
-
type: string;
|
|
2249
|
+
path: string;
|
|
2000
2250
|
};
|
|
2001
2251
|
|
|
2002
2252
|
/** @internal */
|
|
@@ -2007,10 +2257,9 @@ export const CreatePromptRequestBody$outboundSchema: z.ZodType<
|
|
|
2007
2257
|
> = z.object({
|
|
2008
2258
|
displayName: z.string(),
|
|
2009
2259
|
description: z.nullable(z.string()).optional(),
|
|
2010
|
-
promptConfig: z.lazy(() =>
|
|
2260
|
+
promptConfig: z.lazy(() => CreatePromptPromptConfig$outboundSchema),
|
|
2011
2261
|
metadata: z.lazy(() => CreatePromptMetadata$outboundSchema).optional(),
|
|
2012
|
-
|
|
2013
|
-
type: CreatePromptPromptsType$outboundSchema,
|
|
2262
|
+
path: z.string(),
|
|
2014
2263
|
}).transform((v) => {
|
|
2015
2264
|
return remap$(v, {
|
|
2016
2265
|
displayName: "display_name",
|
|
@@ -2050,244 +2299,276 @@ export function createPromptRequestBodyFromJSON(
|
|
|
2050
2299
|
}
|
|
2051
2300
|
|
|
2052
2301
|
/** @internal */
|
|
2053
|
-
export const
|
|
2054
|
-
typeof
|
|
2055
|
-
> = z.nativeEnum(
|
|
2302
|
+
export const CreatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
2303
|
+
typeof CreatePromptPromptsType
|
|
2304
|
+
> = z.nativeEnum(CreatePromptPromptsType);
|
|
2056
2305
|
|
|
2057
2306
|
/** @internal */
|
|
2058
|
-
export const
|
|
2059
|
-
typeof
|
|
2060
|
-
> =
|
|
2307
|
+
export const CreatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
2308
|
+
typeof CreatePromptPromptsType
|
|
2309
|
+
> = CreatePromptPromptsType$inboundSchema;
|
|
2061
2310
|
|
|
2062
2311
|
/**
|
|
2063
2312
|
* @internal
|
|
2064
2313
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2065
2314
|
*/
|
|
2066
|
-
export namespace
|
|
2067
|
-
/** @deprecated use `
|
|
2068
|
-
export const inboundSchema =
|
|
2069
|
-
/** @deprecated use `
|
|
2070
|
-
export const outboundSchema =
|
|
2315
|
+
export namespace CreatePromptPromptsType$ {
|
|
2316
|
+
/** @deprecated use `CreatePromptPromptsType$inboundSchema` instead. */
|
|
2317
|
+
export const inboundSchema = CreatePromptPromptsType$inboundSchema;
|
|
2318
|
+
/** @deprecated use `CreatePromptPromptsType$outboundSchema` instead. */
|
|
2319
|
+
export const outboundSchema = CreatePromptPromptsType$outboundSchema;
|
|
2071
2320
|
}
|
|
2072
2321
|
|
|
2073
2322
|
/** @internal */
|
|
2074
|
-
export const
|
|
2075
|
-
typeof
|
|
2076
|
-
> = z.nativeEnum(
|
|
2323
|
+
export const CreatePromptPromptsModelType$inboundSchema: z.ZodNativeEnum<
|
|
2324
|
+
typeof CreatePromptPromptsModelType
|
|
2325
|
+
> = z.nativeEnum(CreatePromptPromptsModelType);
|
|
2077
2326
|
|
|
2078
2327
|
/** @internal */
|
|
2079
|
-
export const
|
|
2080
|
-
typeof
|
|
2081
|
-
> =
|
|
2328
|
+
export const CreatePromptPromptsModelType$outboundSchema: z.ZodNativeEnum<
|
|
2329
|
+
typeof CreatePromptPromptsModelType
|
|
2330
|
+
> = CreatePromptPromptsModelType$inboundSchema;
|
|
2082
2331
|
|
|
2083
2332
|
/**
|
|
2084
2333
|
* @internal
|
|
2085
2334
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2086
2335
|
*/
|
|
2087
|
-
export namespace
|
|
2088
|
-
/** @deprecated use `
|
|
2089
|
-
export const inboundSchema =
|
|
2090
|
-
/** @deprecated use `
|
|
2091
|
-
export const outboundSchema =
|
|
2336
|
+
export namespace CreatePromptPromptsModelType$ {
|
|
2337
|
+
/** @deprecated use `CreatePromptPromptsModelType$inboundSchema` instead. */
|
|
2338
|
+
export const inboundSchema = CreatePromptPromptsModelType$inboundSchema;
|
|
2339
|
+
/** @deprecated use `CreatePromptPromptsModelType$outboundSchema` instead. */
|
|
2340
|
+
export const outboundSchema = CreatePromptPromptsModelType$outboundSchema;
|
|
2092
2341
|
}
|
|
2093
2342
|
|
|
2094
2343
|
/** @internal */
|
|
2095
|
-
export const
|
|
2096
|
-
typeof
|
|
2097
|
-
> = z.nativeEnum(
|
|
2344
|
+
export const CreatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<
|
|
2345
|
+
typeof CreatePromptPromptsFormat
|
|
2346
|
+
> = z.nativeEnum(CreatePromptPromptsFormat);
|
|
2098
2347
|
|
|
2099
2348
|
/** @internal */
|
|
2100
|
-
export const
|
|
2101
|
-
typeof
|
|
2102
|
-
> =
|
|
2349
|
+
export const CreatePromptPromptsFormat$outboundSchema: z.ZodNativeEnum<
|
|
2350
|
+
typeof CreatePromptPromptsFormat
|
|
2351
|
+
> = CreatePromptPromptsFormat$inboundSchema;
|
|
2103
2352
|
|
|
2104
2353
|
/**
|
|
2105
2354
|
* @internal
|
|
2106
2355
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2107
2356
|
*/
|
|
2108
|
-
export namespace
|
|
2109
|
-
/** @deprecated use `
|
|
2110
|
-
export const inboundSchema =
|
|
2111
|
-
/** @deprecated use `
|
|
2112
|
-
export const outboundSchema =
|
|
2357
|
+
export namespace CreatePromptPromptsFormat$ {
|
|
2358
|
+
/** @deprecated use `CreatePromptPromptsFormat$inboundSchema` instead. */
|
|
2359
|
+
export const inboundSchema = CreatePromptPromptsFormat$inboundSchema;
|
|
2360
|
+
/** @deprecated use `CreatePromptPromptsFormat$outboundSchema` instead. */
|
|
2361
|
+
export const outboundSchema = CreatePromptPromptsFormat$outboundSchema;
|
|
2113
2362
|
}
|
|
2114
2363
|
|
|
2115
2364
|
/** @internal */
|
|
2116
|
-
export const
|
|
2117
|
-
|
|
2118
|
-
|
|
2365
|
+
export const CreatePromptPromptsQuality$inboundSchema: z.ZodNativeEnum<
|
|
2366
|
+
typeof CreatePromptPromptsQuality
|
|
2367
|
+
> = z.nativeEnum(CreatePromptPromptsQuality);
|
|
2119
2368
|
|
|
2120
2369
|
/** @internal */
|
|
2121
|
-
export const
|
|
2122
|
-
|
|
2123
|
-
|
|
2370
|
+
export const CreatePromptPromptsQuality$outboundSchema: z.ZodNativeEnum<
|
|
2371
|
+
typeof CreatePromptPromptsQuality
|
|
2372
|
+
> = CreatePromptPromptsQuality$inboundSchema;
|
|
2124
2373
|
|
|
2125
2374
|
/**
|
|
2126
2375
|
* @internal
|
|
2127
2376
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2128
2377
|
*/
|
|
2129
|
-
export namespace
|
|
2130
|
-
/** @deprecated use `
|
|
2378
|
+
export namespace CreatePromptPromptsQuality$ {
|
|
2379
|
+
/** @deprecated use `CreatePromptPromptsQuality$inboundSchema` instead. */
|
|
2380
|
+
export const inboundSchema = CreatePromptPromptsQuality$inboundSchema;
|
|
2381
|
+
/** @deprecated use `CreatePromptPromptsQuality$outboundSchema` instead. */
|
|
2382
|
+
export const outboundSchema = CreatePromptPromptsQuality$outboundSchema;
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
/** @internal */
|
|
2386
|
+
export const CreatePromptResponseFormatPromptsResponse200Type$inboundSchema:
|
|
2387
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200Type> = z
|
|
2388
|
+
.nativeEnum(CreatePromptResponseFormatPromptsResponse200Type);
|
|
2389
|
+
|
|
2390
|
+
/** @internal */
|
|
2391
|
+
export const CreatePromptResponseFormatPromptsResponse200Type$outboundSchema:
|
|
2392
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200Type> =
|
|
2393
|
+
CreatePromptResponseFormatPromptsResponse200Type$inboundSchema;
|
|
2394
|
+
|
|
2395
|
+
/**
|
|
2396
|
+
* @internal
|
|
2397
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2398
|
+
*/
|
|
2399
|
+
export namespace CreatePromptResponseFormatPromptsResponse200Type$ {
|
|
2400
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
|
|
2131
2401
|
export const inboundSchema =
|
|
2132
|
-
|
|
2133
|
-
/** @deprecated use `
|
|
2402
|
+
CreatePromptResponseFormatPromptsResponse200Type$inboundSchema;
|
|
2403
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
|
|
2134
2404
|
export const outboundSchema =
|
|
2135
|
-
|
|
2405
|
+
CreatePromptResponseFormatPromptsResponse200Type$outboundSchema;
|
|
2136
2406
|
}
|
|
2137
2407
|
|
|
2138
2408
|
/** @internal */
|
|
2139
|
-
export const
|
|
2140
|
-
|
|
2409
|
+
export const CreatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<
|
|
2410
|
+
CreatePromptResponseFormatPrompts2,
|
|
2141
2411
|
z.ZodTypeDef,
|
|
2142
2412
|
unknown
|
|
2143
2413
|
> = z.object({
|
|
2144
|
-
type:
|
|
2414
|
+
type: CreatePromptResponseFormatPromptsResponse200Type$inboundSchema,
|
|
2145
2415
|
});
|
|
2146
2416
|
|
|
2147
2417
|
/** @internal */
|
|
2148
|
-
export type
|
|
2418
|
+
export type CreatePromptResponseFormatPrompts2$Outbound = {
|
|
2149
2419
|
type: string;
|
|
2150
2420
|
};
|
|
2151
2421
|
|
|
2152
2422
|
/** @internal */
|
|
2153
|
-
export const
|
|
2154
|
-
|
|
2423
|
+
export const CreatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<
|
|
2424
|
+
CreatePromptResponseFormatPrompts2$Outbound,
|
|
2155
2425
|
z.ZodTypeDef,
|
|
2156
|
-
|
|
2426
|
+
CreatePromptResponseFormatPrompts2
|
|
2157
2427
|
> = z.object({
|
|
2158
|
-
type:
|
|
2428
|
+
type: CreatePromptResponseFormatPromptsResponse200Type$outboundSchema,
|
|
2159
2429
|
});
|
|
2160
2430
|
|
|
2161
2431
|
/**
|
|
2162
2432
|
* @internal
|
|
2163
2433
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2164
2434
|
*/
|
|
2165
|
-
export namespace
|
|
2166
|
-
/** @deprecated use `
|
|
2167
|
-
export const inboundSchema =
|
|
2168
|
-
/** @deprecated use `
|
|
2169
|
-
export const outboundSchema =
|
|
2170
|
-
|
|
2171
|
-
|
|
2435
|
+
export namespace CreatePromptResponseFormatPrompts2$ {
|
|
2436
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts2$inboundSchema` instead. */
|
|
2437
|
+
export const inboundSchema = CreatePromptResponseFormatPrompts2$inboundSchema;
|
|
2438
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts2$outboundSchema` instead. */
|
|
2439
|
+
export const outboundSchema =
|
|
2440
|
+
CreatePromptResponseFormatPrompts2$outboundSchema;
|
|
2441
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts2$Outbound` instead. */
|
|
2442
|
+
export type Outbound = CreatePromptResponseFormatPrompts2$Outbound;
|
|
2172
2443
|
}
|
|
2173
2444
|
|
|
2174
|
-
export function
|
|
2175
|
-
|
|
2445
|
+
export function createPromptResponseFormatPrompts2ToJSON(
|
|
2446
|
+
createPromptResponseFormatPrompts2: CreatePromptResponseFormatPrompts2,
|
|
2176
2447
|
): string {
|
|
2177
2448
|
return JSON.stringify(
|
|
2178
|
-
|
|
2179
|
-
|
|
2449
|
+
CreatePromptResponseFormatPrompts2$outboundSchema.parse(
|
|
2450
|
+
createPromptResponseFormatPrompts2,
|
|
2180
2451
|
),
|
|
2181
2452
|
);
|
|
2182
2453
|
}
|
|
2183
2454
|
|
|
2184
|
-
export function
|
|
2455
|
+
export function createPromptResponseFormatPrompts2FromJSON(
|
|
2185
2456
|
jsonString: string,
|
|
2186
|
-
): SafeParseResult<
|
|
2457
|
+
): SafeParseResult<CreatePromptResponseFormatPrompts2, SDKValidationError> {
|
|
2187
2458
|
return safeParse(
|
|
2188
2459
|
jsonString,
|
|
2189
|
-
(x) =>
|
|
2190
|
-
|
|
2460
|
+
(x) =>
|
|
2461
|
+
CreatePromptResponseFormatPrompts2$inboundSchema.parse(JSON.parse(x)),
|
|
2462
|
+
`Failed to parse 'CreatePromptResponseFormatPrompts2' from JSON`,
|
|
2191
2463
|
);
|
|
2192
2464
|
}
|
|
2193
2465
|
|
|
2194
2466
|
/** @internal */
|
|
2195
|
-
export const
|
|
2196
|
-
z.ZodNativeEnum<typeof
|
|
2197
|
-
|
|
2198
|
-
);
|
|
2467
|
+
export const CreatePromptResponseFormatPromptsResponseType$inboundSchema:
|
|
2468
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> = z
|
|
2469
|
+
.nativeEnum(CreatePromptResponseFormatPromptsResponseType);
|
|
2199
2470
|
|
|
2200
2471
|
/** @internal */
|
|
2201
|
-
export const
|
|
2202
|
-
z.ZodNativeEnum<typeof
|
|
2203
|
-
|
|
2472
|
+
export const CreatePromptResponseFormatPromptsResponseType$outboundSchema:
|
|
2473
|
+
z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> =
|
|
2474
|
+
CreatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
2204
2475
|
|
|
2205
2476
|
/**
|
|
2206
2477
|
* @internal
|
|
2207
2478
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2208
2479
|
*/
|
|
2209
|
-
export namespace
|
|
2210
|
-
/** @deprecated use `
|
|
2480
|
+
export namespace CreatePromptResponseFormatPromptsResponseType$ {
|
|
2481
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
2211
2482
|
export const inboundSchema =
|
|
2212
|
-
|
|
2213
|
-
/** @deprecated use `
|
|
2483
|
+
CreatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
2484
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
2214
2485
|
export const outboundSchema =
|
|
2215
|
-
|
|
2486
|
+
CreatePromptResponseFormatPromptsResponseType$outboundSchema;
|
|
2216
2487
|
}
|
|
2217
2488
|
|
|
2218
2489
|
/** @internal */
|
|
2219
|
-
export const
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2490
|
+
export const CreatePromptResponseFormatPromptsJsonSchema$inboundSchema:
|
|
2491
|
+
z.ZodType<
|
|
2492
|
+
CreatePromptResponseFormatPromptsJsonSchema,
|
|
2493
|
+
z.ZodTypeDef,
|
|
2494
|
+
unknown
|
|
2495
|
+
> = z.object({
|
|
2496
|
+
name: z.string(),
|
|
2497
|
+
strict: z.boolean(),
|
|
2498
|
+
schema: z.record(z.any()),
|
|
2499
|
+
});
|
|
2228
2500
|
|
|
2229
2501
|
/** @internal */
|
|
2230
|
-
export type
|
|
2502
|
+
export type CreatePromptResponseFormatPromptsJsonSchema$Outbound = {
|
|
2231
2503
|
name: string;
|
|
2232
2504
|
strict: boolean;
|
|
2233
2505
|
schema: { [k: string]: any };
|
|
2234
2506
|
};
|
|
2235
2507
|
|
|
2236
2508
|
/** @internal */
|
|
2237
|
-
export const
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2509
|
+
export const CreatePromptResponseFormatPromptsJsonSchema$outboundSchema:
|
|
2510
|
+
z.ZodType<
|
|
2511
|
+
CreatePromptResponseFormatPromptsJsonSchema$Outbound,
|
|
2512
|
+
z.ZodTypeDef,
|
|
2513
|
+
CreatePromptResponseFormatPromptsJsonSchema
|
|
2514
|
+
> = z.object({
|
|
2515
|
+
name: z.string(),
|
|
2516
|
+
strict: z.boolean(),
|
|
2517
|
+
schema: z.record(z.any()),
|
|
2518
|
+
});
|
|
2246
2519
|
|
|
2247
2520
|
/**
|
|
2248
2521
|
* @internal
|
|
2249
2522
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2250
2523
|
*/
|
|
2251
|
-
export namespace
|
|
2252
|
-
/** @deprecated use `
|
|
2524
|
+
export namespace CreatePromptResponseFormatPromptsJsonSchema$ {
|
|
2525
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$inboundSchema` instead. */
|
|
2253
2526
|
export const inboundSchema =
|
|
2254
|
-
|
|
2255
|
-
/** @deprecated use `
|
|
2527
|
+
CreatePromptResponseFormatPromptsJsonSchema$inboundSchema;
|
|
2528
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$outboundSchema` instead. */
|
|
2256
2529
|
export const outboundSchema =
|
|
2257
|
-
|
|
2258
|
-
/** @deprecated use `
|
|
2259
|
-
export type Outbound =
|
|
2530
|
+
CreatePromptResponseFormatPromptsJsonSchema$outboundSchema;
|
|
2531
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$Outbound` instead. */
|
|
2532
|
+
export type Outbound = CreatePromptResponseFormatPromptsJsonSchema$Outbound;
|
|
2260
2533
|
}
|
|
2261
|
-
|
|
2262
|
-
export function
|
|
2263
|
-
|
|
2534
|
+
|
|
2535
|
+
export function createPromptResponseFormatPromptsJsonSchemaToJSON(
|
|
2536
|
+
createPromptResponseFormatPromptsJsonSchema:
|
|
2537
|
+
CreatePromptResponseFormatPromptsJsonSchema,
|
|
2264
2538
|
): string {
|
|
2265
2539
|
return JSON.stringify(
|
|
2266
|
-
|
|
2267
|
-
|
|
2540
|
+
CreatePromptResponseFormatPromptsJsonSchema$outboundSchema.parse(
|
|
2541
|
+
createPromptResponseFormatPromptsJsonSchema,
|
|
2268
2542
|
),
|
|
2269
2543
|
);
|
|
2270
2544
|
}
|
|
2271
2545
|
|
|
2272
|
-
export function
|
|
2546
|
+
export function createPromptResponseFormatPromptsJsonSchemaFromJSON(
|
|
2273
2547
|
jsonString: string,
|
|
2274
|
-
): SafeParseResult<
|
|
2548
|
+
): SafeParseResult<
|
|
2549
|
+
CreatePromptResponseFormatPromptsJsonSchema,
|
|
2550
|
+
SDKValidationError
|
|
2551
|
+
> {
|
|
2275
2552
|
return safeParse(
|
|
2276
2553
|
jsonString,
|
|
2277
2554
|
(x) =>
|
|
2278
|
-
|
|
2279
|
-
|
|
2555
|
+
CreatePromptResponseFormatPromptsJsonSchema$inboundSchema.parse(
|
|
2556
|
+
JSON.parse(x),
|
|
2557
|
+
),
|
|
2558
|
+
`Failed to parse 'CreatePromptResponseFormatPromptsJsonSchema' from JSON`,
|
|
2280
2559
|
);
|
|
2281
2560
|
}
|
|
2282
2561
|
|
|
2283
2562
|
/** @internal */
|
|
2284
|
-
export const
|
|
2285
|
-
|
|
2563
|
+
export const CreatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
|
|
2564
|
+
CreatePromptResponseFormatPrompts1,
|
|
2286
2565
|
z.ZodTypeDef,
|
|
2287
2566
|
unknown
|
|
2288
2567
|
> = z.object({
|
|
2289
|
-
type:
|
|
2290
|
-
json_schema: z.lazy(() =>
|
|
2568
|
+
type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
|
|
2569
|
+
json_schema: z.lazy(() =>
|
|
2570
|
+
CreatePromptResponseFormatPromptsJsonSchema$inboundSchema
|
|
2571
|
+
),
|
|
2291
2572
|
}).transform((v) => {
|
|
2292
2573
|
return remap$(v, {
|
|
2293
2574
|
"json_schema": "jsonSchema",
|
|
@@ -2295,19 +2576,21 @@ export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
|
2295
2576
|
});
|
|
2296
2577
|
|
|
2297
2578
|
/** @internal */
|
|
2298
|
-
export type
|
|
2579
|
+
export type CreatePromptResponseFormatPrompts1$Outbound = {
|
|
2299
2580
|
type: string;
|
|
2300
|
-
json_schema:
|
|
2581
|
+
json_schema: CreatePromptResponseFormatPromptsJsonSchema$Outbound;
|
|
2301
2582
|
};
|
|
2302
2583
|
|
|
2303
2584
|
/** @internal */
|
|
2304
|
-
export const
|
|
2305
|
-
|
|
2585
|
+
export const CreatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
|
|
2586
|
+
CreatePromptResponseFormatPrompts1$Outbound,
|
|
2306
2587
|
z.ZodTypeDef,
|
|
2307
|
-
|
|
2588
|
+
CreatePromptResponseFormatPrompts1
|
|
2308
2589
|
> = z.object({
|
|
2309
|
-
type:
|
|
2310
|
-
jsonSchema: z.lazy(() =>
|
|
2590
|
+
type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
|
|
2591
|
+
jsonSchema: z.lazy(() =>
|
|
2592
|
+
CreatePromptResponseFormatPromptsJsonSchema$outboundSchema
|
|
2593
|
+
),
|
|
2311
2594
|
}).transform((v) => {
|
|
2312
2595
|
return remap$(v, {
|
|
2313
2596
|
jsonSchema: "json_schema",
|
|
@@ -2318,136 +2601,166 @@ export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
|
2318
2601
|
* @internal
|
|
2319
2602
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2320
2603
|
*/
|
|
2321
|
-
export namespace
|
|
2322
|
-
/** @deprecated use `
|
|
2323
|
-
export const inboundSchema =
|
|
2324
|
-
/** @deprecated use `
|
|
2325
|
-
export const outboundSchema =
|
|
2326
|
-
|
|
2327
|
-
|
|
2604
|
+
export namespace CreatePromptResponseFormatPrompts1$ {
|
|
2605
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts1$inboundSchema` instead. */
|
|
2606
|
+
export const inboundSchema = CreatePromptResponseFormatPrompts1$inboundSchema;
|
|
2607
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts1$outboundSchema` instead. */
|
|
2608
|
+
export const outboundSchema =
|
|
2609
|
+
CreatePromptResponseFormatPrompts1$outboundSchema;
|
|
2610
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts1$Outbound` instead. */
|
|
2611
|
+
export type Outbound = CreatePromptResponseFormatPrompts1$Outbound;
|
|
2328
2612
|
}
|
|
2329
2613
|
|
|
2330
|
-
export function
|
|
2331
|
-
|
|
2614
|
+
export function createPromptResponseFormatPrompts1ToJSON(
|
|
2615
|
+
createPromptResponseFormatPrompts1: CreatePromptResponseFormatPrompts1,
|
|
2332
2616
|
): string {
|
|
2333
2617
|
return JSON.stringify(
|
|
2334
|
-
|
|
2335
|
-
|
|
2618
|
+
CreatePromptResponseFormatPrompts1$outboundSchema.parse(
|
|
2619
|
+
createPromptResponseFormatPrompts1,
|
|
2336
2620
|
),
|
|
2337
2621
|
);
|
|
2338
2622
|
}
|
|
2339
2623
|
|
|
2340
|
-
export function
|
|
2624
|
+
export function createPromptResponseFormatPrompts1FromJSON(
|
|
2341
2625
|
jsonString: string,
|
|
2342
|
-
): SafeParseResult<
|
|
2626
|
+
): SafeParseResult<CreatePromptResponseFormatPrompts1, SDKValidationError> {
|
|
2343
2627
|
return safeParse(
|
|
2344
2628
|
jsonString,
|
|
2345
|
-
(x) =>
|
|
2346
|
-
|
|
2629
|
+
(x) =>
|
|
2630
|
+
CreatePromptResponseFormatPrompts1$inboundSchema.parse(JSON.parse(x)),
|
|
2631
|
+
`Failed to parse 'CreatePromptResponseFormatPrompts1' from JSON`,
|
|
2347
2632
|
);
|
|
2348
2633
|
}
|
|
2349
2634
|
|
|
2350
2635
|
/** @internal */
|
|
2351
|
-
export const
|
|
2352
|
-
|
|
2636
|
+
export const CreatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
|
|
2637
|
+
CreatePromptPromptsResponseFormat,
|
|
2353
2638
|
z.ZodTypeDef,
|
|
2354
2639
|
unknown
|
|
2355
2640
|
> = z.union([
|
|
2356
|
-
z.lazy(() =>
|
|
2357
|
-
z.lazy(() =>
|
|
2641
|
+
z.lazy(() => CreatePromptResponseFormatPrompts2$inboundSchema),
|
|
2642
|
+
z.lazy(() => CreatePromptResponseFormatPrompts1$inboundSchema),
|
|
2358
2643
|
]);
|
|
2359
2644
|
|
|
2360
2645
|
/** @internal */
|
|
2361
|
-
export type
|
|
2362
|
-
|
|
|
2363
|
-
|
|
|
2646
|
+
export type CreatePromptPromptsResponseFormat$Outbound =
|
|
2647
|
+
| CreatePromptResponseFormatPrompts2$Outbound
|
|
2648
|
+
| CreatePromptResponseFormatPrompts1$Outbound;
|
|
2364
2649
|
|
|
2365
2650
|
/** @internal */
|
|
2366
|
-
export const
|
|
2367
|
-
|
|
2651
|
+
export const CreatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
2652
|
+
CreatePromptPromptsResponseFormat$Outbound,
|
|
2368
2653
|
z.ZodTypeDef,
|
|
2369
|
-
|
|
2654
|
+
CreatePromptPromptsResponseFormat
|
|
2370
2655
|
> = z.union([
|
|
2371
|
-
z.lazy(() =>
|
|
2372
|
-
z.lazy(() =>
|
|
2656
|
+
z.lazy(() => CreatePromptResponseFormatPrompts2$outboundSchema),
|
|
2657
|
+
z.lazy(() => CreatePromptResponseFormatPrompts1$outboundSchema),
|
|
2373
2658
|
]);
|
|
2374
2659
|
|
|
2375
2660
|
/**
|
|
2376
2661
|
* @internal
|
|
2377
2662
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2378
2663
|
*/
|
|
2379
|
-
export namespace
|
|
2380
|
-
/** @deprecated use `
|
|
2381
|
-
export const inboundSchema =
|
|
2382
|
-
/** @deprecated use `
|
|
2383
|
-
export const outboundSchema =
|
|
2384
|
-
|
|
2385
|
-
|
|
2664
|
+
export namespace CreatePromptPromptsResponseFormat$ {
|
|
2665
|
+
/** @deprecated use `CreatePromptPromptsResponseFormat$inboundSchema` instead. */
|
|
2666
|
+
export const inboundSchema = CreatePromptPromptsResponseFormat$inboundSchema;
|
|
2667
|
+
/** @deprecated use `CreatePromptPromptsResponseFormat$outboundSchema` instead. */
|
|
2668
|
+
export const outboundSchema =
|
|
2669
|
+
CreatePromptPromptsResponseFormat$outboundSchema;
|
|
2670
|
+
/** @deprecated use `CreatePromptPromptsResponseFormat$Outbound` instead. */
|
|
2671
|
+
export type Outbound = CreatePromptPromptsResponseFormat$Outbound;
|
|
2386
2672
|
}
|
|
2387
2673
|
|
|
2388
|
-
export function
|
|
2389
|
-
|
|
2674
|
+
export function createPromptPromptsResponseFormatToJSON(
|
|
2675
|
+
createPromptPromptsResponseFormat: CreatePromptPromptsResponseFormat,
|
|
2390
2676
|
): string {
|
|
2391
2677
|
return JSON.stringify(
|
|
2392
|
-
|
|
2678
|
+
CreatePromptPromptsResponseFormat$outboundSchema.parse(
|
|
2679
|
+
createPromptPromptsResponseFormat,
|
|
2680
|
+
),
|
|
2393
2681
|
);
|
|
2394
2682
|
}
|
|
2395
2683
|
|
|
2396
|
-
export function
|
|
2684
|
+
export function createPromptPromptsResponseFormatFromJSON(
|
|
2397
2685
|
jsonString: string,
|
|
2398
|
-
): SafeParseResult<
|
|
2686
|
+
): SafeParseResult<CreatePromptPromptsResponseFormat, SDKValidationError> {
|
|
2399
2687
|
return safeParse(
|
|
2400
2688
|
jsonString,
|
|
2401
|
-
(x) =>
|
|
2402
|
-
`Failed to parse '
|
|
2689
|
+
(x) => CreatePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
2690
|
+
`Failed to parse 'CreatePromptPromptsResponseFormat' from JSON`,
|
|
2403
2691
|
);
|
|
2404
2692
|
}
|
|
2405
2693
|
|
|
2406
2694
|
/** @internal */
|
|
2407
|
-
export const
|
|
2408
|
-
typeof
|
|
2409
|
-
> = z.nativeEnum(
|
|
2695
|
+
export const CreatePromptPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
2696
|
+
typeof CreatePromptPromptsPhotoRealVersion
|
|
2697
|
+
> = z.nativeEnum(CreatePromptPromptsPhotoRealVersion);
|
|
2410
2698
|
|
|
2411
2699
|
/** @internal */
|
|
2412
|
-
export const
|
|
2413
|
-
typeof
|
|
2414
|
-
|
|
2700
|
+
export const CreatePromptPromptsPhotoRealVersion$outboundSchema:
|
|
2701
|
+
z.ZodNativeEnum<typeof CreatePromptPromptsPhotoRealVersion> =
|
|
2702
|
+
CreatePromptPromptsPhotoRealVersion$inboundSchema;
|
|
2415
2703
|
|
|
2416
2704
|
/**
|
|
2417
2705
|
* @internal
|
|
2418
2706
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2419
2707
|
*/
|
|
2420
|
-
export namespace
|
|
2421
|
-
/** @deprecated use `
|
|
2422
|
-
export const inboundSchema =
|
|
2423
|
-
|
|
2424
|
-
|
|
2708
|
+
export namespace CreatePromptPromptsPhotoRealVersion$ {
|
|
2709
|
+
/** @deprecated use `CreatePromptPromptsPhotoRealVersion$inboundSchema` instead. */
|
|
2710
|
+
export const inboundSchema =
|
|
2711
|
+
CreatePromptPromptsPhotoRealVersion$inboundSchema;
|
|
2712
|
+
/** @deprecated use `CreatePromptPromptsPhotoRealVersion$outboundSchema` instead. */
|
|
2713
|
+
export const outboundSchema =
|
|
2714
|
+
CreatePromptPromptsPhotoRealVersion$outboundSchema;
|
|
2425
2715
|
}
|
|
2426
2716
|
|
|
2427
2717
|
/** @internal */
|
|
2428
|
-
export const
|
|
2429
|
-
typeof
|
|
2430
|
-
> = z.nativeEnum(
|
|
2718
|
+
export const CreatePromptPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
2719
|
+
typeof CreatePromptPromptsEncodingFormat
|
|
2720
|
+
> = z.nativeEnum(CreatePromptPromptsEncodingFormat);
|
|
2431
2721
|
|
|
2432
2722
|
/** @internal */
|
|
2433
|
-
export const
|
|
2434
|
-
typeof
|
|
2435
|
-
> =
|
|
2723
|
+
export const CreatePromptPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
2724
|
+
typeof CreatePromptPromptsEncodingFormat
|
|
2725
|
+
> = CreatePromptPromptsEncodingFormat$inboundSchema;
|
|
2436
2726
|
|
|
2437
2727
|
/**
|
|
2438
2728
|
* @internal
|
|
2439
2729
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2440
2730
|
*/
|
|
2441
|
-
export namespace
|
|
2442
|
-
/** @deprecated use `
|
|
2443
|
-
export const inboundSchema =
|
|
2444
|
-
/** @deprecated use `
|
|
2445
|
-
export const outboundSchema =
|
|
2731
|
+
export namespace CreatePromptPromptsEncodingFormat$ {
|
|
2732
|
+
/** @deprecated use `CreatePromptPromptsEncodingFormat$inboundSchema` instead. */
|
|
2733
|
+
export const inboundSchema = CreatePromptPromptsEncodingFormat$inboundSchema;
|
|
2734
|
+
/** @deprecated use `CreatePromptPromptsEncodingFormat$outboundSchema` instead. */
|
|
2735
|
+
export const outboundSchema =
|
|
2736
|
+
CreatePromptPromptsEncodingFormat$outboundSchema;
|
|
2446
2737
|
}
|
|
2447
2738
|
|
|
2448
2739
|
/** @internal */
|
|
2449
|
-
export const
|
|
2450
|
-
|
|
2740
|
+
export const CreatePromptPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
2741
|
+
typeof CreatePromptPromptsReasoningEffort
|
|
2742
|
+
> = z.nativeEnum(CreatePromptPromptsReasoningEffort);
|
|
2743
|
+
|
|
2744
|
+
/** @internal */
|
|
2745
|
+
export const CreatePromptPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
2746
|
+
typeof CreatePromptPromptsReasoningEffort
|
|
2747
|
+
> = CreatePromptPromptsReasoningEffort$inboundSchema;
|
|
2748
|
+
|
|
2749
|
+
/**
|
|
2750
|
+
* @internal
|
|
2751
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2752
|
+
*/
|
|
2753
|
+
export namespace CreatePromptPromptsReasoningEffort$ {
|
|
2754
|
+
/** @deprecated use `CreatePromptPromptsReasoningEffort$inboundSchema` instead. */
|
|
2755
|
+
export const inboundSchema = CreatePromptPromptsReasoningEffort$inboundSchema;
|
|
2756
|
+
/** @deprecated use `CreatePromptPromptsReasoningEffort$outboundSchema` instead. */
|
|
2757
|
+
export const outboundSchema =
|
|
2758
|
+
CreatePromptPromptsReasoningEffort$outboundSchema;
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
/** @internal */
|
|
2762
|
+
export const CreatePromptPromptsModelParameters$inboundSchema: z.ZodType<
|
|
2763
|
+
CreatePromptPromptsModelParameters,
|
|
2451
2764
|
z.ZodTypeDef,
|
|
2452
2765
|
unknown
|
|
2453
2766
|
> = z.object({
|
|
@@ -2459,18 +2772,20 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
2459
2772
|
presencePenalty: z.number().optional(),
|
|
2460
2773
|
numImages: z.number().optional(),
|
|
2461
2774
|
seed: z.number().optional(),
|
|
2462
|
-
format:
|
|
2775
|
+
format: CreatePromptPromptsFormat$inboundSchema.optional(),
|
|
2463
2776
|
dimensions: z.string().optional(),
|
|
2464
|
-
quality:
|
|
2777
|
+
quality: CreatePromptPromptsQuality$inboundSchema.optional(),
|
|
2465
2778
|
style: z.string().optional(),
|
|
2466
2779
|
responseFormat: z.nullable(
|
|
2467
2780
|
z.union([
|
|
2468
|
-
z.lazy(() =>
|
|
2469
|
-
z.lazy(() =>
|
|
2781
|
+
z.lazy(() => CreatePromptResponseFormatPrompts2$inboundSchema),
|
|
2782
|
+
z.lazy(() => CreatePromptResponseFormatPrompts1$inboundSchema),
|
|
2470
2783
|
]),
|
|
2471
2784
|
).optional(),
|
|
2472
|
-
photoRealVersion:
|
|
2473
|
-
|
|
2785
|
+
photoRealVersion: CreatePromptPromptsPhotoRealVersion$inboundSchema
|
|
2786
|
+
.optional(),
|
|
2787
|
+
encoding_format: CreatePromptPromptsEncodingFormat$inboundSchema.optional(),
|
|
2788
|
+
reasoningEffort: CreatePromptPromptsReasoningEffort$inboundSchema.optional(),
|
|
2474
2789
|
}).transform((v) => {
|
|
2475
2790
|
return remap$(v, {
|
|
2476
2791
|
"encoding_format": "encodingFormat",
|
|
@@ -2478,7 +2793,7 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
2478
2793
|
});
|
|
2479
2794
|
|
|
2480
2795
|
/** @internal */
|
|
2481
|
-
export type
|
|
2796
|
+
export type CreatePromptPromptsModelParameters$Outbound = {
|
|
2482
2797
|
temperature?: number | undefined;
|
|
2483
2798
|
maxTokens?: number | undefined;
|
|
2484
2799
|
topK?: number | undefined;
|
|
@@ -2492,19 +2807,20 @@ export type CreatePromptModelParameters$Outbound = {
|
|
|
2492
2807
|
quality?: string | undefined;
|
|
2493
2808
|
style?: string | undefined;
|
|
2494
2809
|
responseFormat?:
|
|
2495
|
-
|
|
|
2496
|
-
|
|
|
2810
|
+
| CreatePromptResponseFormatPrompts2$Outbound
|
|
2811
|
+
| CreatePromptResponseFormatPrompts1$Outbound
|
|
2497
2812
|
| null
|
|
2498
2813
|
| undefined;
|
|
2499
2814
|
photoRealVersion?: string | undefined;
|
|
2500
2815
|
encoding_format?: string | undefined;
|
|
2816
|
+
reasoningEffort?: string | undefined;
|
|
2501
2817
|
};
|
|
2502
2818
|
|
|
2503
2819
|
/** @internal */
|
|
2504
|
-
export const
|
|
2505
|
-
|
|
2820
|
+
export const CreatePromptPromptsModelParameters$outboundSchema: z.ZodType<
|
|
2821
|
+
CreatePromptPromptsModelParameters$Outbound,
|
|
2506
2822
|
z.ZodTypeDef,
|
|
2507
|
-
|
|
2823
|
+
CreatePromptPromptsModelParameters
|
|
2508
2824
|
> = z.object({
|
|
2509
2825
|
temperature: z.number().optional(),
|
|
2510
2826
|
maxTokens: z.number().optional(),
|
|
@@ -2514,18 +2830,20 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
2514
2830
|
presencePenalty: z.number().optional(),
|
|
2515
2831
|
numImages: z.number().optional(),
|
|
2516
2832
|
seed: z.number().optional(),
|
|
2517
|
-
format:
|
|
2833
|
+
format: CreatePromptPromptsFormat$outboundSchema.optional(),
|
|
2518
2834
|
dimensions: z.string().optional(),
|
|
2519
|
-
quality:
|
|
2835
|
+
quality: CreatePromptPromptsQuality$outboundSchema.optional(),
|
|
2520
2836
|
style: z.string().optional(),
|
|
2521
2837
|
responseFormat: z.nullable(
|
|
2522
2838
|
z.union([
|
|
2523
|
-
z.lazy(() =>
|
|
2524
|
-
z.lazy(() =>
|
|
2839
|
+
z.lazy(() => CreatePromptResponseFormatPrompts2$outboundSchema),
|
|
2840
|
+
z.lazy(() => CreatePromptResponseFormatPrompts1$outboundSchema),
|
|
2525
2841
|
]),
|
|
2526
2842
|
).optional(),
|
|
2527
|
-
photoRealVersion:
|
|
2528
|
-
|
|
2843
|
+
photoRealVersion: CreatePromptPromptsPhotoRealVersion$outboundSchema
|
|
2844
|
+
.optional(),
|
|
2845
|
+
encodingFormat: CreatePromptPromptsEncodingFormat$outboundSchema.optional(),
|
|
2846
|
+
reasoningEffort: CreatePromptPromptsReasoningEffort$outboundSchema.optional(),
|
|
2529
2847
|
}).transform((v) => {
|
|
2530
2848
|
return remap$(v, {
|
|
2531
2849
|
encodingFormat: "encoding_format",
|
|
@@ -2536,54 +2854,56 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
2536
2854
|
* @internal
|
|
2537
2855
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2538
2856
|
*/
|
|
2539
|
-
export namespace
|
|
2540
|
-
/** @deprecated use `
|
|
2541
|
-
export const inboundSchema =
|
|
2542
|
-
/** @deprecated use `
|
|
2543
|
-
export const outboundSchema =
|
|
2544
|
-
|
|
2545
|
-
|
|
2857
|
+
export namespace CreatePromptPromptsModelParameters$ {
|
|
2858
|
+
/** @deprecated use `CreatePromptPromptsModelParameters$inboundSchema` instead. */
|
|
2859
|
+
export const inboundSchema = CreatePromptPromptsModelParameters$inboundSchema;
|
|
2860
|
+
/** @deprecated use `CreatePromptPromptsModelParameters$outboundSchema` instead. */
|
|
2861
|
+
export const outboundSchema =
|
|
2862
|
+
CreatePromptPromptsModelParameters$outboundSchema;
|
|
2863
|
+
/** @deprecated use `CreatePromptPromptsModelParameters$Outbound` instead. */
|
|
2864
|
+
export type Outbound = CreatePromptPromptsModelParameters$Outbound;
|
|
2546
2865
|
}
|
|
2547
2866
|
|
|
2548
|
-
export function
|
|
2549
|
-
|
|
2867
|
+
export function createPromptPromptsModelParametersToJSON(
|
|
2868
|
+
createPromptPromptsModelParameters: CreatePromptPromptsModelParameters,
|
|
2550
2869
|
): string {
|
|
2551
2870
|
return JSON.stringify(
|
|
2552
|
-
|
|
2553
|
-
|
|
2871
|
+
CreatePromptPromptsModelParameters$outboundSchema.parse(
|
|
2872
|
+
createPromptPromptsModelParameters,
|
|
2554
2873
|
),
|
|
2555
2874
|
);
|
|
2556
2875
|
}
|
|
2557
2876
|
|
|
2558
|
-
export function
|
|
2877
|
+
export function createPromptPromptsModelParametersFromJSON(
|
|
2559
2878
|
jsonString: string,
|
|
2560
|
-
): SafeParseResult<
|
|
2879
|
+
): SafeParseResult<CreatePromptPromptsModelParameters, SDKValidationError> {
|
|
2561
2880
|
return safeParse(
|
|
2562
2881
|
jsonString,
|
|
2563
|
-
(x) =>
|
|
2564
|
-
|
|
2882
|
+
(x) =>
|
|
2883
|
+
CreatePromptPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2884
|
+
`Failed to parse 'CreatePromptPromptsModelParameters' from JSON`,
|
|
2565
2885
|
);
|
|
2566
2886
|
}
|
|
2567
2887
|
|
|
2568
2888
|
/** @internal */
|
|
2569
|
-
export const
|
|
2570
|
-
typeof
|
|
2571
|
-
> = z.nativeEnum(
|
|
2889
|
+
export const CreatePromptPromptsProvider$inboundSchema: z.ZodNativeEnum<
|
|
2890
|
+
typeof CreatePromptPromptsProvider
|
|
2891
|
+
> = z.nativeEnum(CreatePromptPromptsProvider);
|
|
2572
2892
|
|
|
2573
2893
|
/** @internal */
|
|
2574
|
-
export const
|
|
2575
|
-
typeof
|
|
2576
|
-
> =
|
|
2894
|
+
export const CreatePromptPromptsProvider$outboundSchema: z.ZodNativeEnum<
|
|
2895
|
+
typeof CreatePromptPromptsProvider
|
|
2896
|
+
> = CreatePromptPromptsProvider$inboundSchema;
|
|
2577
2897
|
|
|
2578
2898
|
/**
|
|
2579
2899
|
* @internal
|
|
2580
2900
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2581
2901
|
*/
|
|
2582
|
-
export namespace
|
|
2583
|
-
/** @deprecated use `
|
|
2584
|
-
export const inboundSchema =
|
|
2585
|
-
/** @deprecated use `
|
|
2586
|
-
export const outboundSchema =
|
|
2902
|
+
export namespace CreatePromptPromptsProvider$ {
|
|
2903
|
+
/** @deprecated use `CreatePromptPromptsProvider$inboundSchema` instead. */
|
|
2904
|
+
export const inboundSchema = CreatePromptPromptsProvider$inboundSchema;
|
|
2905
|
+
/** @deprecated use `CreatePromptPromptsProvider$outboundSchema` instead. */
|
|
2906
|
+
export const outboundSchema = CreatePromptPromptsProvider$outboundSchema;
|
|
2587
2907
|
}
|
|
2588
2908
|
|
|
2589
2909
|
/** @internal */
|
|
@@ -2956,25 +3276,24 @@ export function createPromptPromptsContentFromJSON(
|
|
|
2956
3276
|
}
|
|
2957
3277
|
|
|
2958
3278
|
/** @internal */
|
|
2959
|
-
export const
|
|
2960
|
-
typeof
|
|
2961
|
-
> = z.nativeEnum(
|
|
3279
|
+
export const CreatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
3280
|
+
typeof CreatePromptPromptsResponseType
|
|
3281
|
+
> = z.nativeEnum(CreatePromptPromptsResponseType);
|
|
2962
3282
|
|
|
2963
3283
|
/** @internal */
|
|
2964
|
-
export const
|
|
2965
|
-
typeof
|
|
2966
|
-
> =
|
|
3284
|
+
export const CreatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<
|
|
3285
|
+
typeof CreatePromptPromptsResponseType
|
|
3286
|
+
> = CreatePromptPromptsResponseType$inboundSchema;
|
|
2967
3287
|
|
|
2968
3288
|
/**
|
|
2969
3289
|
* @internal
|
|
2970
3290
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2971
3291
|
*/
|
|
2972
|
-
export namespace
|
|
2973
|
-
/** @deprecated use `
|
|
2974
|
-
export const inboundSchema =
|
|
2975
|
-
/** @deprecated use `
|
|
2976
|
-
export const outboundSchema =
|
|
2977
|
-
CreatePromptPromptsResponse200Type$outboundSchema;
|
|
3292
|
+
export namespace CreatePromptPromptsResponseType$ {
|
|
3293
|
+
/** @deprecated use `CreatePromptPromptsResponseType$inboundSchema` instead. */
|
|
3294
|
+
export const inboundSchema = CreatePromptPromptsResponseType$inboundSchema;
|
|
3295
|
+
/** @deprecated use `CreatePromptPromptsResponseType$outboundSchema` instead. */
|
|
3296
|
+
export const outboundSchema = CreatePromptPromptsResponseType$outboundSchema;
|
|
2978
3297
|
}
|
|
2979
3298
|
|
|
2980
3299
|
/** @internal */
|
|
@@ -3044,7 +3363,7 @@ export const CreatePromptPromptsToolCalls$inboundSchema: z.ZodType<
|
|
|
3044
3363
|
> = z.object({
|
|
3045
3364
|
id: z.string().optional(),
|
|
3046
3365
|
index: z.number().optional(),
|
|
3047
|
-
type:
|
|
3366
|
+
type: CreatePromptPromptsResponseType$inboundSchema,
|
|
3048
3367
|
function: z.lazy(() => CreatePromptPromptsFunction$inboundSchema),
|
|
3049
3368
|
});
|
|
3050
3369
|
|
|
@@ -3064,7 +3383,7 @@ export const CreatePromptPromptsToolCalls$outboundSchema: z.ZodType<
|
|
|
3064
3383
|
> = z.object({
|
|
3065
3384
|
id: z.string().optional(),
|
|
3066
3385
|
index: z.number().optional(),
|
|
3067
|
-
type:
|
|
3386
|
+
type: CreatePromptPromptsResponseType$outboundSchema,
|
|
3068
3387
|
function: z.lazy(() => CreatePromptPromptsFunction$outboundSchema),
|
|
3069
3388
|
});
|
|
3070
3389
|
|
|
@@ -3188,18 +3507,19 @@ export function createPromptPromptsMessagesFromJSON(
|
|
|
3188
3507
|
}
|
|
3189
3508
|
|
|
3190
3509
|
/** @internal */
|
|
3191
|
-
export const
|
|
3192
|
-
|
|
3510
|
+
export const CreatePromptPromptsPromptConfig$inboundSchema: z.ZodType<
|
|
3511
|
+
CreatePromptPromptsPromptConfig,
|
|
3193
3512
|
z.ZodTypeDef,
|
|
3194
3513
|
unknown
|
|
3195
3514
|
> = z.object({
|
|
3196
3515
|
stream: z.boolean().optional(),
|
|
3197
3516
|
model: z.string().optional(),
|
|
3198
3517
|
model_db_id: z.string().optional(),
|
|
3199
|
-
model_type:
|
|
3200
|
-
model_parameters: z.lazy(() =>
|
|
3201
|
-
|
|
3202
|
-
|
|
3518
|
+
model_type: CreatePromptPromptsModelType$inboundSchema.optional(),
|
|
3519
|
+
model_parameters: z.lazy(() =>
|
|
3520
|
+
CreatePromptPromptsModelParameters$inboundSchema
|
|
3521
|
+
).optional(),
|
|
3522
|
+
provider: CreatePromptPromptsProvider$inboundSchema.optional(),
|
|
3203
3523
|
integration_id: z.nullable(z.string()).optional(),
|
|
3204
3524
|
version: z.string().optional(),
|
|
3205
3525
|
messages: z.array(z.lazy(() => CreatePromptPromptsMessages$inboundSchema)),
|
|
@@ -3213,12 +3533,12 @@ export const CreatePromptPromptConfig$inboundSchema: z.ZodType<
|
|
|
3213
3533
|
});
|
|
3214
3534
|
|
|
3215
3535
|
/** @internal */
|
|
3216
|
-
export type
|
|
3536
|
+
export type CreatePromptPromptsPromptConfig$Outbound = {
|
|
3217
3537
|
stream?: boolean | undefined;
|
|
3218
3538
|
model?: string | undefined;
|
|
3219
3539
|
model_db_id?: string | undefined;
|
|
3220
3540
|
model_type?: string | undefined;
|
|
3221
|
-
model_parameters?:
|
|
3541
|
+
model_parameters?: CreatePromptPromptsModelParameters$Outbound | undefined;
|
|
3222
3542
|
provider?: string | undefined;
|
|
3223
3543
|
integration_id?: string | null | undefined;
|
|
3224
3544
|
version?: string | undefined;
|
|
@@ -3226,18 +3546,19 @@ export type CreatePromptPromptConfig$Outbound = {
|
|
|
3226
3546
|
};
|
|
3227
3547
|
|
|
3228
3548
|
/** @internal */
|
|
3229
|
-
export const
|
|
3230
|
-
|
|
3549
|
+
export const CreatePromptPromptsPromptConfig$outboundSchema: z.ZodType<
|
|
3550
|
+
CreatePromptPromptsPromptConfig$Outbound,
|
|
3231
3551
|
z.ZodTypeDef,
|
|
3232
|
-
|
|
3552
|
+
CreatePromptPromptsPromptConfig
|
|
3233
3553
|
> = z.object({
|
|
3234
3554
|
stream: z.boolean().optional(),
|
|
3235
3555
|
model: z.string().optional(),
|
|
3236
3556
|
modelDbId: z.string().optional(),
|
|
3237
|
-
modelType:
|
|
3238
|
-
modelParameters: z.lazy(() =>
|
|
3239
|
-
|
|
3240
|
-
|
|
3557
|
+
modelType: CreatePromptPromptsModelType$outboundSchema.optional(),
|
|
3558
|
+
modelParameters: z.lazy(() =>
|
|
3559
|
+
CreatePromptPromptsModelParameters$outboundSchema
|
|
3560
|
+
).optional(),
|
|
3561
|
+
provider: CreatePromptPromptsProvider$outboundSchema.optional(),
|
|
3241
3562
|
integrationId: z.nullable(z.string()).optional(),
|
|
3242
3563
|
version: z.string().optional(),
|
|
3243
3564
|
messages: z.array(z.lazy(() => CreatePromptPromptsMessages$outboundSchema)),
|
|
@@ -3254,41 +3575,85 @@ export const CreatePromptPromptConfig$outboundSchema: z.ZodType<
|
|
|
3254
3575
|
* @internal
|
|
3255
3576
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3256
3577
|
*/
|
|
3257
|
-
export namespace
|
|
3258
|
-
/** @deprecated use `
|
|
3259
|
-
export const inboundSchema =
|
|
3260
|
-
/** @deprecated use `
|
|
3261
|
-
export const outboundSchema =
|
|
3262
|
-
/** @deprecated use `
|
|
3263
|
-
export type Outbound =
|
|
3578
|
+
export namespace CreatePromptPromptsPromptConfig$ {
|
|
3579
|
+
/** @deprecated use `CreatePromptPromptsPromptConfig$inboundSchema` instead. */
|
|
3580
|
+
export const inboundSchema = CreatePromptPromptsPromptConfig$inboundSchema;
|
|
3581
|
+
/** @deprecated use `CreatePromptPromptsPromptConfig$outboundSchema` instead. */
|
|
3582
|
+
export const outboundSchema = CreatePromptPromptsPromptConfig$outboundSchema;
|
|
3583
|
+
/** @deprecated use `CreatePromptPromptsPromptConfig$Outbound` instead. */
|
|
3584
|
+
export type Outbound = CreatePromptPromptsPromptConfig$Outbound;
|
|
3264
3585
|
}
|
|
3265
3586
|
|
|
3266
|
-
export function
|
|
3267
|
-
|
|
3587
|
+
export function createPromptPromptsPromptConfigToJSON(
|
|
3588
|
+
createPromptPromptsPromptConfig: CreatePromptPromptsPromptConfig,
|
|
3268
3589
|
): string {
|
|
3269
3590
|
return JSON.stringify(
|
|
3270
|
-
|
|
3591
|
+
CreatePromptPromptsPromptConfig$outboundSchema.parse(
|
|
3592
|
+
createPromptPromptsPromptConfig,
|
|
3593
|
+
),
|
|
3271
3594
|
);
|
|
3272
3595
|
}
|
|
3273
3596
|
|
|
3274
|
-
export function
|
|
3597
|
+
export function createPromptPromptsPromptConfigFromJSON(
|
|
3275
3598
|
jsonString: string,
|
|
3276
|
-
): SafeParseResult<
|
|
3599
|
+
): SafeParseResult<CreatePromptPromptsPromptConfig, SDKValidationError> {
|
|
3277
3600
|
return safeParse(
|
|
3278
3601
|
jsonString,
|
|
3279
|
-
(x) =>
|
|
3280
|
-
`Failed to parse '
|
|
3602
|
+
(x) => CreatePromptPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
3603
|
+
`Failed to parse 'CreatePromptPromptsPromptConfig' from JSON`,
|
|
3281
3604
|
);
|
|
3282
3605
|
}
|
|
3283
3606
|
|
|
3607
|
+
/** @internal */
|
|
3608
|
+
export const CreatePromptPromptsUseCases$inboundSchema: z.ZodNativeEnum<
|
|
3609
|
+
typeof CreatePromptPromptsUseCases
|
|
3610
|
+
> = z.nativeEnum(CreatePromptPromptsUseCases);
|
|
3611
|
+
|
|
3612
|
+
/** @internal */
|
|
3613
|
+
export const CreatePromptPromptsUseCases$outboundSchema: z.ZodNativeEnum<
|
|
3614
|
+
typeof CreatePromptPromptsUseCases
|
|
3615
|
+
> = CreatePromptPromptsUseCases$inboundSchema;
|
|
3616
|
+
|
|
3617
|
+
/**
|
|
3618
|
+
* @internal
|
|
3619
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3620
|
+
*/
|
|
3621
|
+
export namespace CreatePromptPromptsUseCases$ {
|
|
3622
|
+
/** @deprecated use `CreatePromptPromptsUseCases$inboundSchema` instead. */
|
|
3623
|
+
export const inboundSchema = CreatePromptPromptsUseCases$inboundSchema;
|
|
3624
|
+
/** @deprecated use `CreatePromptPromptsUseCases$outboundSchema` instead. */
|
|
3625
|
+
export const outboundSchema = CreatePromptPromptsUseCases$outboundSchema;
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
/** @internal */
|
|
3629
|
+
export const CreatePromptPromptsLanguage$inboundSchema: z.ZodNativeEnum<
|
|
3630
|
+
typeof CreatePromptPromptsLanguage
|
|
3631
|
+
> = z.nativeEnum(CreatePromptPromptsLanguage);
|
|
3632
|
+
|
|
3633
|
+
/** @internal */
|
|
3634
|
+
export const CreatePromptPromptsLanguage$outboundSchema: z.ZodNativeEnum<
|
|
3635
|
+
typeof CreatePromptPromptsLanguage
|
|
3636
|
+
> = CreatePromptPromptsLanguage$inboundSchema;
|
|
3637
|
+
|
|
3638
|
+
/**
|
|
3639
|
+
* @internal
|
|
3640
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3641
|
+
*/
|
|
3642
|
+
export namespace CreatePromptPromptsLanguage$ {
|
|
3643
|
+
/** @deprecated use `CreatePromptPromptsLanguage$inboundSchema` instead. */
|
|
3644
|
+
export const inboundSchema = CreatePromptPromptsLanguage$inboundSchema;
|
|
3645
|
+
/** @deprecated use `CreatePromptPromptsLanguage$outboundSchema` instead. */
|
|
3646
|
+
export const outboundSchema = CreatePromptPromptsLanguage$outboundSchema;
|
|
3647
|
+
}
|
|
3648
|
+
|
|
3284
3649
|
/** @internal */
|
|
3285
3650
|
export const CreatePromptPromptsMetadata$inboundSchema: z.ZodType<
|
|
3286
3651
|
CreatePromptPromptsMetadata,
|
|
3287
3652
|
z.ZodTypeDef,
|
|
3288
3653
|
unknown
|
|
3289
3654
|
> = z.object({
|
|
3290
|
-
use_cases: z.array(
|
|
3291
|
-
language:
|
|
3655
|
+
use_cases: z.array(CreatePromptPromptsUseCases$inboundSchema).optional(),
|
|
3656
|
+
language: CreatePromptPromptsLanguage$inboundSchema.optional(),
|
|
3292
3657
|
}).transform((v) => {
|
|
3293
3658
|
return remap$(v, {
|
|
3294
3659
|
"use_cases": "useCases",
|
|
@@ -3307,8 +3672,8 @@ export const CreatePromptPromptsMetadata$outboundSchema: z.ZodType<
|
|
|
3307
3672
|
z.ZodTypeDef,
|
|
3308
3673
|
CreatePromptPromptsMetadata
|
|
3309
3674
|
> = z.object({
|
|
3310
|
-
useCases: z.array(
|
|
3311
|
-
language:
|
|
3675
|
+
useCases: z.array(CreatePromptPromptsUseCases$outboundSchema).optional(),
|
|
3676
|
+
language: CreatePromptPromptsLanguage$outboundSchema.optional(),
|
|
3312
3677
|
}).transform((v) => {
|
|
3313
3678
|
return remap$(v, {
|
|
3314
3679
|
useCases: "use_cases",
|
|
@@ -3348,27 +3713,6 @@ export function createPromptPromptsMetadataFromJSON(
|
|
|
3348
3713
|
);
|
|
3349
3714
|
}
|
|
3350
3715
|
|
|
3351
|
-
/** @internal */
|
|
3352
|
-
export const CreatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
3353
|
-
typeof CreatePromptPromptsResponseType
|
|
3354
|
-
> = z.nativeEnum(CreatePromptPromptsResponseType);
|
|
3355
|
-
|
|
3356
|
-
/** @internal */
|
|
3357
|
-
export const CreatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<
|
|
3358
|
-
typeof CreatePromptPromptsResponseType
|
|
3359
|
-
> = CreatePromptPromptsResponseType$inboundSchema;
|
|
3360
|
-
|
|
3361
|
-
/**
|
|
3362
|
-
* @internal
|
|
3363
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3364
|
-
*/
|
|
3365
|
-
export namespace CreatePromptPromptsResponseType$ {
|
|
3366
|
-
/** @deprecated use `CreatePromptPromptsResponseType$inboundSchema` instead. */
|
|
3367
|
-
export const inboundSchema = CreatePromptPromptsResponseType$inboundSchema;
|
|
3368
|
-
/** @deprecated use `CreatePromptPromptsResponseType$outboundSchema` instead. */
|
|
3369
|
-
export const outboundSchema = CreatePromptPromptsResponseType$outboundSchema;
|
|
3370
|
-
}
|
|
3371
|
-
|
|
3372
3716
|
/** @internal */
|
|
3373
3717
|
export const CreatePromptResponseBody$inboundSchema: z.ZodType<
|
|
3374
3718
|
CreatePromptResponseBody,
|
|
@@ -3376,19 +3720,24 @@ export const CreatePromptResponseBody$inboundSchema: z.ZodType<
|
|
|
3376
3720
|
unknown
|
|
3377
3721
|
> = z.object({
|
|
3378
3722
|
_id: z.string(),
|
|
3379
|
-
|
|
3723
|
+
type: CreatePromptPromptsType$inboundSchema,
|
|
3724
|
+
owner: z.string(),
|
|
3380
3725
|
domain_id: z.string(),
|
|
3726
|
+
created: z.string(),
|
|
3727
|
+
updated: z.string(),
|
|
3728
|
+
created_by_id: z.string().optional(),
|
|
3729
|
+
updated_by_id: z.string().optional(),
|
|
3730
|
+
display_name: z.string(),
|
|
3381
3731
|
description: z.nullable(z.string()).optional(),
|
|
3382
|
-
prompt_config: z.lazy(() =>
|
|
3383
|
-
.optional(),
|
|
3732
|
+
prompt_config: z.lazy(() => CreatePromptPromptsPromptConfig$inboundSchema),
|
|
3384
3733
|
metadata: z.lazy(() => CreatePromptPromptsMetadata$inboundSchema).optional(),
|
|
3385
|
-
key: z.string().optional(),
|
|
3386
|
-
type: CreatePromptPromptsResponseType$inboundSchema,
|
|
3387
3734
|
}).transform((v) => {
|
|
3388
3735
|
return remap$(v, {
|
|
3389
3736
|
"_id": "id",
|
|
3390
|
-
"display_name": "displayName",
|
|
3391
3737
|
"domain_id": "domainId",
|
|
3738
|
+
"created_by_id": "createdById",
|
|
3739
|
+
"updated_by_id": "updatedById",
|
|
3740
|
+
"display_name": "displayName",
|
|
3392
3741
|
"prompt_config": "promptConfig",
|
|
3393
3742
|
});
|
|
3394
3743
|
});
|
|
@@ -3396,13 +3745,17 @@ export const CreatePromptResponseBody$inboundSchema: z.ZodType<
|
|
|
3396
3745
|
/** @internal */
|
|
3397
3746
|
export type CreatePromptResponseBody$Outbound = {
|
|
3398
3747
|
_id: string;
|
|
3399
|
-
|
|
3748
|
+
type: string;
|
|
3749
|
+
owner: string;
|
|
3400
3750
|
domain_id: string;
|
|
3751
|
+
created: string;
|
|
3752
|
+
updated: string;
|
|
3753
|
+
created_by_id?: string | undefined;
|
|
3754
|
+
updated_by_id?: string | undefined;
|
|
3755
|
+
display_name: string;
|
|
3401
3756
|
description?: string | null | undefined;
|
|
3402
|
-
prompt_config
|
|
3757
|
+
prompt_config: CreatePromptPromptsPromptConfig$Outbound;
|
|
3403
3758
|
metadata?: CreatePromptPromptsMetadata$Outbound | undefined;
|
|
3404
|
-
key?: string | undefined;
|
|
3405
|
-
type: string;
|
|
3406
3759
|
};
|
|
3407
3760
|
|
|
3408
3761
|
/** @internal */
|
|
@@ -3412,19 +3765,24 @@ export const CreatePromptResponseBody$outboundSchema: z.ZodType<
|
|
|
3412
3765
|
CreatePromptResponseBody
|
|
3413
3766
|
> = z.object({
|
|
3414
3767
|
id: z.string(),
|
|
3415
|
-
|
|
3768
|
+
type: CreatePromptPromptsType$outboundSchema,
|
|
3769
|
+
owner: z.string(),
|
|
3416
3770
|
domainId: z.string(),
|
|
3771
|
+
created: z.string(),
|
|
3772
|
+
updated: z.string(),
|
|
3773
|
+
createdById: z.string().optional(),
|
|
3774
|
+
updatedById: z.string().optional(),
|
|
3775
|
+
displayName: z.string(),
|
|
3417
3776
|
description: z.nullable(z.string()).optional(),
|
|
3418
|
-
promptConfig: z.lazy(() =>
|
|
3419
|
-
.optional(),
|
|
3777
|
+
promptConfig: z.lazy(() => CreatePromptPromptsPromptConfig$outboundSchema),
|
|
3420
3778
|
metadata: z.lazy(() => CreatePromptPromptsMetadata$outboundSchema).optional(),
|
|
3421
|
-
key: z.string().optional(),
|
|
3422
|
-
type: CreatePromptPromptsResponseType$outboundSchema,
|
|
3423
3779
|
}).transform((v) => {
|
|
3424
3780
|
return remap$(v, {
|
|
3425
3781
|
id: "_id",
|
|
3426
|
-
displayName: "display_name",
|
|
3427
3782
|
domainId: "domain_id",
|
|
3783
|
+
createdById: "created_by_id",
|
|
3784
|
+
updatedById: "updated_by_id",
|
|
3785
|
+
displayName: "display_name",
|
|
3428
3786
|
promptConfig: "prompt_config",
|
|
3429
3787
|
});
|
|
3430
3788
|
});
|