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