@orq-ai/node 3.2.6 → 3.3.0-rc.0
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/bin/mcp-server.js +33 -36
- package/bin/mcp-server.js.map +20 -20
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/package.json +3 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/FUNCTIONS.md +0 -106
- package/packages/orq-rc/README.md +0 -622
- package/packages/orq-rc/RUNTIMES.md +0 -48
- package/packages/orq-rc/docs/sdks/contacts/README.md +0 -84
- package/packages/orq-rc/docs/sdks/datasets/README.md +0 -934
- package/packages/orq-rc/docs/sdks/deployments/README.md +0 -235
- package/packages/orq-rc/docs/sdks/feedback/README.md +0 -92
- package/packages/orq-rc/docs/sdks/files/README.md +0 -305
- package/packages/orq-rc/docs/sdks/metrics/README.md +0 -86
- package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
- package/packages/orq-rc/docs/sdks/prompts/README.md +0 -608
- package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -80
- package/packages/orq-rc/jsr.json +0 -27
- package/packages/orq-rc/package-lock.json +0 -3217
- package/packages/orq-rc/package.json +0 -45
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -154
- package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -161
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -159
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -161
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +0 -165
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -161
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsList.ts +0 -162
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -169
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -169
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -175
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -170
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -173
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -162
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -170
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -171
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -162
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -154
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -177
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -158
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -160
- package/packages/orq-rc/src/funcs/filesList.ts +0 -162
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -154
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -158
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -175
- package/packages/orq-rc/src/funcs/promptsList.ts +0 -162
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -168
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -160
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -167
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -155
- package/packages/orq-rc/src/hooks/global.ts +0 -44
- package/packages/orq-rc/src/hooks/hooks.ts +0 -132
- package/packages/orq-rc/src/hooks/index.ts +0 -6
- package/packages/orq-rc/src/hooks/registration.ts +0 -15
- package/packages/orq-rc/src/hooks/types.ts +0 -110
- package/packages/orq-rc/src/index.ts +0 -7
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -70
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/encodings.ts +0 -483
- package/packages/orq-rc/src/lib/env.ts +0 -73
- package/packages/orq-rc/src/lib/files.ts +0 -40
- package/packages/orq-rc/src/lib/http.ts +0 -323
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/packages/orq-rc/src/lib/logger.ts +0 -9
- package/packages/orq-rc/src/lib/matchers.ts +0 -322
- package/packages/orq-rc/src/lib/primitives.ts +0 -150
- package/packages/orq-rc/src/lib/retries.ts +0 -218
- package/packages/orq-rc/src/lib/schemas.ts +0 -91
- package/packages/orq-rc/src/lib/sdks.ts +0 -395
- package/packages/orq-rc/src/lib/security.ts +0 -253
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -125
- package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -140
- package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
- package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
- package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
- package/packages/orq-rc/src/mcp-server/prompts.ts +0 -110
- package/packages/orq-rc/src/mcp-server/resources.ts +0 -158
- package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
- package/packages/orq-rc/src/mcp-server/server.ts +0 -123
- package/packages/orq-rc/src/mcp-server/shared.ts +0 -75
- package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools.ts +0 -126
- package/packages/orq-rc/src/models/components/deployments.ts +0 -4164
- package/packages/orq-rc/src/models/components/index.ts +0 -6
- package/packages/orq-rc/src/models/components/security.ts +0 -71
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -27
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -71
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -82
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -10
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -97
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -71
- package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +0 -1816
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -75
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -296
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -1740
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -3816
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -81
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -75
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -4936
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -6090
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1199
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2194
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -377
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -324
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2165
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1989
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1987
- package/packages/orq-rc/src/models/operations/index.ts +0 -34
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1115
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -448
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2163
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -924
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -288
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -1729
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -374
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -3831
- package/packages/orq-rc/src/sdk/contacts.ts +0 -27
- package/packages/orq-rc/src/sdk/datasets.ts +0 -222
- package/packages/orq-rc/src/sdk/deployments.ts +0 -70
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -78
- package/packages/orq-rc/src/sdk/index.ts +0 -5
- package/packages/orq-rc/src/sdk/metrics.ts +0 -27
- package/packages/orq-rc/src/sdk/prompts.ts +0 -126
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
- package/packages/orq-rc/src/sdk/sdk.ts +0 -49
- package/packages/orq-rc/src/types/async.ts +0 -68
- package/packages/orq-rc/src/types/blobs.ts +0 -31
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -16
- package/packages/orq-rc/src/types/fp.ts +0 -50
- package/packages/orq-rc/src/types/index.ts +0 -11
- package/packages/orq-rc/src/types/operations.ts +0 -105
- package/packages/orq-rc/src/types/rfcdate.ts +0 -54
- package/packages/orq-rc/src/types/streams.ts +0 -21
- package/packages/orq-rc/tsconfig.json +0 -41
|
@@ -1,3831 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* The type of the model
|
|
14
|
-
*/
|
|
15
|
-
export const ModelType = {
|
|
16
|
-
Chat: "chat",
|
|
17
|
-
Completion: "completion",
|
|
18
|
-
Embedding: "embedding",
|
|
19
|
-
Vision: "vision",
|
|
20
|
-
Image: "image",
|
|
21
|
-
Tts: "tts",
|
|
22
|
-
Stt: "stt",
|
|
23
|
-
Rerank: "rerank",
|
|
24
|
-
Moderations: "moderations",
|
|
25
|
-
} as const;
|
|
26
|
-
/**
|
|
27
|
-
* The type of the model
|
|
28
|
-
*/
|
|
29
|
-
export type ModelType = ClosedEnum<typeof ModelType>;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Only supported on `image` models.
|
|
33
|
-
*/
|
|
34
|
-
export const UpdatePromptFormat = {
|
|
35
|
-
Url: "url",
|
|
36
|
-
B64Json: "b64_json",
|
|
37
|
-
Text: "text",
|
|
38
|
-
JsonObject: "json_object",
|
|
39
|
-
} as const;
|
|
40
|
-
/**
|
|
41
|
-
* Only supported on `image` models.
|
|
42
|
-
*/
|
|
43
|
-
export type UpdatePromptFormat = ClosedEnum<typeof UpdatePromptFormat>;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Only supported on `image` models.
|
|
47
|
-
*/
|
|
48
|
-
export const Quality = {
|
|
49
|
-
Standard: "standard",
|
|
50
|
-
Hd: "hd",
|
|
51
|
-
} as const;
|
|
52
|
-
/**
|
|
53
|
-
* Only supported on `image` models.
|
|
54
|
-
*/
|
|
55
|
-
export type Quality = ClosedEnum<typeof Quality>;
|
|
56
|
-
|
|
57
|
-
export const UpdatePromptResponseFormatType = {
|
|
58
|
-
JsonObject: "json_object",
|
|
59
|
-
} as const;
|
|
60
|
-
export type UpdatePromptResponseFormatType = ClosedEnum<
|
|
61
|
-
typeof UpdatePromptResponseFormatType
|
|
62
|
-
>;
|
|
63
|
-
|
|
64
|
-
export type ResponseFormat2 = {
|
|
65
|
-
type: UpdatePromptResponseFormatType;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export const ResponseFormatType = {
|
|
69
|
-
JsonSchema: "json_schema",
|
|
70
|
-
} as const;
|
|
71
|
-
export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
|
|
72
|
-
|
|
73
|
-
export type JsonSchema = {
|
|
74
|
-
name: string;
|
|
75
|
-
strict: boolean;
|
|
76
|
-
schema: { [k: string]: any };
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export type ResponseFormat1 = {
|
|
80
|
-
type: ResponseFormatType;
|
|
81
|
-
jsonSchema: JsonSchema;
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* An object specifying the format that the model must output.
|
|
86
|
-
*
|
|
87
|
-
* @remarks
|
|
88
|
-
*
|
|
89
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
90
|
-
*
|
|
91
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
92
|
-
*
|
|
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.
|
|
94
|
-
*/
|
|
95
|
-
export type ResponseFormat = ResponseFormat2 | ResponseFormat1;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
99
|
-
*/
|
|
100
|
-
export const PhotoRealVersion = {
|
|
101
|
-
V1: "v1",
|
|
102
|
-
V2: "v2",
|
|
103
|
-
} as const;
|
|
104
|
-
/**
|
|
105
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
106
|
-
*/
|
|
107
|
-
export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* The format to return the embeddings
|
|
111
|
-
*/
|
|
112
|
-
export const EncodingFormat = {
|
|
113
|
-
Float: "float",
|
|
114
|
-
Base64: "base64",
|
|
115
|
-
} as const;
|
|
116
|
-
/**
|
|
117
|
-
* The format to return the embeddings
|
|
118
|
-
*/
|
|
119
|
-
export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
123
|
-
*/
|
|
124
|
-
export const ReasoningEffort = {
|
|
125
|
-
Low: "low",
|
|
126
|
-
Medium: "medium",
|
|
127
|
-
High: "high",
|
|
128
|
-
} as const;
|
|
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 type ReasoningEffort = ClosedEnum<typeof ReasoningEffort>;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Model Parameters: Not all parameters apply to every model
|
|
136
|
-
*/
|
|
137
|
-
export type ModelParameters = {
|
|
138
|
-
/**
|
|
139
|
-
* Only supported on `chat` and `completion` models.
|
|
140
|
-
*/
|
|
141
|
-
temperature?: number | undefined;
|
|
142
|
-
/**
|
|
143
|
-
* Only supported on `chat` and `completion` models.
|
|
144
|
-
*/
|
|
145
|
-
maxTokens?: number | undefined;
|
|
146
|
-
/**
|
|
147
|
-
* Only supported on `chat` and `completion` models.
|
|
148
|
-
*/
|
|
149
|
-
topK?: number | undefined;
|
|
150
|
-
/**
|
|
151
|
-
* Only supported on `chat` and `completion` models.
|
|
152
|
-
*/
|
|
153
|
-
topP?: number | undefined;
|
|
154
|
-
/**
|
|
155
|
-
* Only supported on `chat` and `completion` models.
|
|
156
|
-
*/
|
|
157
|
-
frequencyPenalty?: number | undefined;
|
|
158
|
-
/**
|
|
159
|
-
* Only supported on `chat` and `completion` models.
|
|
160
|
-
*/
|
|
161
|
-
presencePenalty?: number | undefined;
|
|
162
|
-
/**
|
|
163
|
-
* Only supported on `image` models.
|
|
164
|
-
*/
|
|
165
|
-
numImages?: number | undefined;
|
|
166
|
-
/**
|
|
167
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
168
|
-
*/
|
|
169
|
-
seed?: number | undefined;
|
|
170
|
-
/**
|
|
171
|
-
* Only supported on `image` models.
|
|
172
|
-
*/
|
|
173
|
-
format?: UpdatePromptFormat | undefined;
|
|
174
|
-
/**
|
|
175
|
-
* Only supported on `image` models.
|
|
176
|
-
*/
|
|
177
|
-
dimensions?: string | undefined;
|
|
178
|
-
/**
|
|
179
|
-
* Only supported on `image` models.
|
|
180
|
-
*/
|
|
181
|
-
quality?: Quality | undefined;
|
|
182
|
-
/**
|
|
183
|
-
* Only supported on `image` models.
|
|
184
|
-
*/
|
|
185
|
-
style?: string | undefined;
|
|
186
|
-
/**
|
|
187
|
-
* An object specifying the format that the model must output.
|
|
188
|
-
*
|
|
189
|
-
* @remarks
|
|
190
|
-
*
|
|
191
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
192
|
-
*
|
|
193
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
194
|
-
*
|
|
195
|
-
* 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.
|
|
196
|
-
*/
|
|
197
|
-
responseFormat?: ResponseFormat2 | ResponseFormat1 | null | undefined;
|
|
198
|
-
/**
|
|
199
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
200
|
-
*/
|
|
201
|
-
photoRealVersion?: PhotoRealVersion | undefined;
|
|
202
|
-
/**
|
|
203
|
-
* The format to return the embeddings
|
|
204
|
-
*/
|
|
205
|
-
encodingFormat?: EncodingFormat | undefined;
|
|
206
|
-
/**
|
|
207
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
208
|
-
*/
|
|
209
|
-
reasoningEffort?: ReasoningEffort | undefined;
|
|
210
|
-
/**
|
|
211
|
-
* Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
|
|
212
|
-
*/
|
|
213
|
-
budgetTokens?: number | undefined;
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
export const Provider = {
|
|
217
|
-
Cohere: "cohere",
|
|
218
|
-
Openai: "openai",
|
|
219
|
-
Anthropic: "anthropic",
|
|
220
|
-
Huggingface: "huggingface",
|
|
221
|
-
Replicate: "replicate",
|
|
222
|
-
Google: "google",
|
|
223
|
-
GoogleAi: "google-ai",
|
|
224
|
-
Azure: "azure",
|
|
225
|
-
Aws: "aws",
|
|
226
|
-
Anyscale: "anyscale",
|
|
227
|
-
Perplexity: "perplexity",
|
|
228
|
-
Groq: "groq",
|
|
229
|
-
Fal: "fal",
|
|
230
|
-
Leonardoai: "leonardoai",
|
|
231
|
-
Nvidia: "nvidia",
|
|
232
|
-
Jina: "jina",
|
|
233
|
-
Togetherai: "togetherai",
|
|
234
|
-
Elevenlabs: "elevenlabs",
|
|
235
|
-
} as const;
|
|
236
|
-
export type Provider = ClosedEnum<typeof Provider>;
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* The role of the prompt message
|
|
240
|
-
*/
|
|
241
|
-
export const UpdatePromptRole = {
|
|
242
|
-
System: "system",
|
|
243
|
-
Assistant: "assistant",
|
|
244
|
-
User: "user",
|
|
245
|
-
Exception: "exception",
|
|
246
|
-
Tool: "tool",
|
|
247
|
-
Prompt: "prompt",
|
|
248
|
-
Correction: "correction",
|
|
249
|
-
ExpectedOutput: "expected_output",
|
|
250
|
-
} as const;
|
|
251
|
-
/**
|
|
252
|
-
* The role of the prompt message
|
|
253
|
-
*/
|
|
254
|
-
export type UpdatePromptRole = ClosedEnum<typeof UpdatePromptRole>;
|
|
255
|
-
|
|
256
|
-
export const UpdatePrompt2PromptsType = {
|
|
257
|
-
ImageUrl: "image_url",
|
|
258
|
-
} as const;
|
|
259
|
-
export type UpdatePrompt2PromptsType = ClosedEnum<
|
|
260
|
-
typeof UpdatePrompt2PromptsType
|
|
261
|
-
>;
|
|
262
|
-
|
|
263
|
-
export type UpdatePrompt2ImageUrl = {
|
|
264
|
-
/**
|
|
265
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
266
|
-
*/
|
|
267
|
-
url: string;
|
|
268
|
-
/**
|
|
269
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
270
|
-
*/
|
|
271
|
-
detail?: string | undefined;
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
276
|
-
*/
|
|
277
|
-
export type UpdatePrompt22 = {
|
|
278
|
-
type: UpdatePrompt2PromptsType;
|
|
279
|
-
imageUrl: UpdatePrompt2ImageUrl;
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
export const UpdatePrompt2Type = {
|
|
283
|
-
Text: "text",
|
|
284
|
-
} as const;
|
|
285
|
-
export type UpdatePrompt2Type = ClosedEnum<typeof UpdatePrompt2Type>;
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Text content part of a prompt message
|
|
289
|
-
*/
|
|
290
|
-
export type UpdatePrompt21 = {
|
|
291
|
-
type: UpdatePrompt2Type;
|
|
292
|
-
text: string;
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
export type UpdatePromptContent2 = UpdatePrompt21 | UpdatePrompt22;
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
299
|
-
*/
|
|
300
|
-
export type UpdatePromptContent =
|
|
301
|
-
| string
|
|
302
|
-
| Array<UpdatePrompt21 | UpdatePrompt22>;
|
|
303
|
-
|
|
304
|
-
export const UpdatePromptType = {
|
|
305
|
-
Function: "function",
|
|
306
|
-
} as const;
|
|
307
|
-
export type UpdatePromptType = ClosedEnum<typeof UpdatePromptType>;
|
|
308
|
-
|
|
309
|
-
export type UpdatePromptFunction = {
|
|
310
|
-
name: string;
|
|
311
|
-
/**
|
|
312
|
-
* JSON string arguments for the functions
|
|
313
|
-
*/
|
|
314
|
-
arguments: string;
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
export type UpdatePromptToolCalls = {
|
|
318
|
-
id?: string | undefined;
|
|
319
|
-
index?: number | undefined;
|
|
320
|
-
type: UpdatePromptType;
|
|
321
|
-
function: UpdatePromptFunction;
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
export type UpdatePromptMessages = {
|
|
325
|
-
/**
|
|
326
|
-
* The role of the prompt message
|
|
327
|
-
*/
|
|
328
|
-
role: UpdatePromptRole;
|
|
329
|
-
/**
|
|
330
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
331
|
-
*/
|
|
332
|
-
content: string | Array<UpdatePrompt21 | UpdatePrompt22>;
|
|
333
|
-
toolCalls?: Array<UpdatePromptToolCalls> | undefined;
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* A list of messages compatible with the openAI schema
|
|
338
|
-
*/
|
|
339
|
-
export type PromptConfig = {
|
|
340
|
-
stream?: boolean | undefined;
|
|
341
|
-
model?: string | undefined;
|
|
342
|
-
/**
|
|
343
|
-
* The type of the model
|
|
344
|
-
*/
|
|
345
|
-
modelType?: ModelType | undefined;
|
|
346
|
-
/**
|
|
347
|
-
* Model Parameters: Not all parameters apply to every model
|
|
348
|
-
*/
|
|
349
|
-
modelParameters?: ModelParameters | undefined;
|
|
350
|
-
provider?: Provider | undefined;
|
|
351
|
-
version?: string | undefined;
|
|
352
|
-
messages: Array<UpdatePromptMessages>;
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
export const UseCases = {
|
|
356
|
-
Agents: "Agents",
|
|
357
|
-
AgentsSimulations: "Agents simulations",
|
|
358
|
-
APIInteraction: "API interaction",
|
|
359
|
-
AutonomousAgents: "Autonomous Agents",
|
|
360
|
-
Chatbots: "Chatbots",
|
|
361
|
-
Classification: "Classification",
|
|
362
|
-
CodeUnderstanding: "Code understanding",
|
|
363
|
-
CodeWriting: "Code writing",
|
|
364
|
-
DocumentsQA: "Documents QA",
|
|
365
|
-
Conversation: "Conversation",
|
|
366
|
-
Extraction: "Extraction",
|
|
367
|
-
MultiModal: "Multi-modal",
|
|
368
|
-
SelfChecking: "Self-checking",
|
|
369
|
-
Sql: "SQL",
|
|
370
|
-
Summarization: "Summarization",
|
|
371
|
-
Tagging: "Tagging",
|
|
372
|
-
} as const;
|
|
373
|
-
export type UseCases = ClosedEnum<typeof UseCases>;
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
377
|
-
*/
|
|
378
|
-
export const Language = {
|
|
379
|
-
Chinese: "Chinese",
|
|
380
|
-
Dutch: "Dutch",
|
|
381
|
-
English: "English",
|
|
382
|
-
French: "French",
|
|
383
|
-
German: "German",
|
|
384
|
-
Russian: "Russian",
|
|
385
|
-
Spanish: "Spanish",
|
|
386
|
-
} as const;
|
|
387
|
-
/**
|
|
388
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
389
|
-
*/
|
|
390
|
-
export type Language = ClosedEnum<typeof Language>;
|
|
391
|
-
|
|
392
|
-
export type UpdatePromptMetadata = {
|
|
393
|
-
/**
|
|
394
|
-
* 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
|
|
395
|
-
*/
|
|
396
|
-
useCases?: Array<UseCases> | undefined;
|
|
397
|
-
/**
|
|
398
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
399
|
-
*/
|
|
400
|
-
language?: Language | undefined;
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
export type UpdatePromptRequestBody = {
|
|
404
|
-
owner?: string | undefined;
|
|
405
|
-
domainId?: string | undefined;
|
|
406
|
-
created?: string | undefined;
|
|
407
|
-
updated?: string | undefined;
|
|
408
|
-
createdById?: string | null | undefined;
|
|
409
|
-
updatedById?: string | null | undefined;
|
|
410
|
-
/**
|
|
411
|
-
* The prompt’s name, meant to be displayable in the UI.
|
|
412
|
-
*/
|
|
413
|
-
displayName?: string | undefined;
|
|
414
|
-
/**
|
|
415
|
-
* 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
|
|
416
|
-
*/
|
|
417
|
-
description?: string | null | undefined;
|
|
418
|
-
/**
|
|
419
|
-
* A list of messages compatible with the openAI schema
|
|
420
|
-
*/
|
|
421
|
-
promptConfig?: PromptConfig | undefined;
|
|
422
|
-
metadata?: UpdatePromptMetadata | undefined;
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
export type UpdatePromptRequest = {
|
|
426
|
-
/**
|
|
427
|
-
* Unique identifier of the prompt
|
|
428
|
-
*/
|
|
429
|
-
id: string;
|
|
430
|
-
requestBody?: UpdatePromptRequestBody | undefined;
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
export const UpdatePromptPromptsType = {
|
|
434
|
-
Prompt: "prompt",
|
|
435
|
-
} as const;
|
|
436
|
-
export type UpdatePromptPromptsType = ClosedEnum<
|
|
437
|
-
typeof UpdatePromptPromptsType
|
|
438
|
-
>;
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* The type of the model
|
|
442
|
-
*/
|
|
443
|
-
export const UpdatePromptModelType = {
|
|
444
|
-
Chat: "chat",
|
|
445
|
-
Completion: "completion",
|
|
446
|
-
Embedding: "embedding",
|
|
447
|
-
Vision: "vision",
|
|
448
|
-
Image: "image",
|
|
449
|
-
Tts: "tts",
|
|
450
|
-
Stt: "stt",
|
|
451
|
-
Rerank: "rerank",
|
|
452
|
-
Moderations: "moderations",
|
|
453
|
-
} as const;
|
|
454
|
-
/**
|
|
455
|
-
* The type of the model
|
|
456
|
-
*/
|
|
457
|
-
export type UpdatePromptModelType = ClosedEnum<typeof UpdatePromptModelType>;
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* Only supported on `image` models.
|
|
461
|
-
*/
|
|
462
|
-
export const UpdatePromptPromptsFormat = {
|
|
463
|
-
Url: "url",
|
|
464
|
-
B64Json: "b64_json",
|
|
465
|
-
Text: "text",
|
|
466
|
-
JsonObject: "json_object",
|
|
467
|
-
} as const;
|
|
468
|
-
/**
|
|
469
|
-
* Only supported on `image` models.
|
|
470
|
-
*/
|
|
471
|
-
export type UpdatePromptPromptsFormat = ClosedEnum<
|
|
472
|
-
typeof UpdatePromptPromptsFormat
|
|
473
|
-
>;
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* Only supported on `image` models.
|
|
477
|
-
*/
|
|
478
|
-
export const UpdatePromptQuality = {
|
|
479
|
-
Standard: "standard",
|
|
480
|
-
Hd: "hd",
|
|
481
|
-
} as const;
|
|
482
|
-
/**
|
|
483
|
-
* Only supported on `image` models.
|
|
484
|
-
*/
|
|
485
|
-
export type UpdatePromptQuality = ClosedEnum<typeof UpdatePromptQuality>;
|
|
486
|
-
|
|
487
|
-
export const UpdatePromptResponseFormatPromptsResponseType = {
|
|
488
|
-
JsonObject: "json_object",
|
|
489
|
-
} as const;
|
|
490
|
-
export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
|
|
491
|
-
typeof UpdatePromptResponseFormatPromptsResponseType
|
|
492
|
-
>;
|
|
493
|
-
|
|
494
|
-
export type UpdatePromptResponseFormat2 = {
|
|
495
|
-
type: UpdatePromptResponseFormatPromptsResponseType;
|
|
496
|
-
};
|
|
497
|
-
|
|
498
|
-
export const UpdatePromptResponseFormatPromptsType = {
|
|
499
|
-
JsonSchema: "json_schema",
|
|
500
|
-
} as const;
|
|
501
|
-
export type UpdatePromptResponseFormatPromptsType = ClosedEnum<
|
|
502
|
-
typeof UpdatePromptResponseFormatPromptsType
|
|
503
|
-
>;
|
|
504
|
-
|
|
505
|
-
export type UpdatePromptResponseFormatJsonSchema = {
|
|
506
|
-
name: string;
|
|
507
|
-
strict: boolean;
|
|
508
|
-
schema: { [k: string]: any };
|
|
509
|
-
};
|
|
510
|
-
|
|
511
|
-
export type UpdatePromptResponseFormat1 = {
|
|
512
|
-
type: UpdatePromptResponseFormatPromptsType;
|
|
513
|
-
jsonSchema: UpdatePromptResponseFormatJsonSchema;
|
|
514
|
-
};
|
|
515
|
-
|
|
516
|
-
/**
|
|
517
|
-
* An object specifying the format that the model must output.
|
|
518
|
-
*
|
|
519
|
-
* @remarks
|
|
520
|
-
*
|
|
521
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
522
|
-
*
|
|
523
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
524
|
-
*
|
|
525
|
-
* 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.
|
|
526
|
-
*/
|
|
527
|
-
export type UpdatePromptResponseFormat =
|
|
528
|
-
| UpdatePromptResponseFormat2
|
|
529
|
-
| UpdatePromptResponseFormat1;
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
533
|
-
*/
|
|
534
|
-
export const UpdatePromptPhotoRealVersion = {
|
|
535
|
-
V1: "v1",
|
|
536
|
-
V2: "v2",
|
|
537
|
-
} as const;
|
|
538
|
-
/**
|
|
539
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
540
|
-
*/
|
|
541
|
-
export type UpdatePromptPhotoRealVersion = ClosedEnum<
|
|
542
|
-
typeof UpdatePromptPhotoRealVersion
|
|
543
|
-
>;
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* The format to return the embeddings
|
|
547
|
-
*/
|
|
548
|
-
export const UpdatePromptEncodingFormat = {
|
|
549
|
-
Float: "float",
|
|
550
|
-
Base64: "base64",
|
|
551
|
-
} as const;
|
|
552
|
-
/**
|
|
553
|
-
* The format to return the embeddings
|
|
554
|
-
*/
|
|
555
|
-
export type UpdatePromptEncodingFormat = ClosedEnum<
|
|
556
|
-
typeof UpdatePromptEncodingFormat
|
|
557
|
-
>;
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
561
|
-
*/
|
|
562
|
-
export const UpdatePromptReasoningEffort = {
|
|
563
|
-
Low: "low",
|
|
564
|
-
Medium: "medium",
|
|
565
|
-
High: "high",
|
|
566
|
-
} as const;
|
|
567
|
-
/**
|
|
568
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
569
|
-
*/
|
|
570
|
-
export type UpdatePromptReasoningEffort = ClosedEnum<
|
|
571
|
-
typeof UpdatePromptReasoningEffort
|
|
572
|
-
>;
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* Model Parameters: Not all parameters apply to every model
|
|
576
|
-
*/
|
|
577
|
-
export type UpdatePromptModelParameters = {
|
|
578
|
-
/**
|
|
579
|
-
* Only supported on `chat` and `completion` models.
|
|
580
|
-
*/
|
|
581
|
-
temperature?: number | undefined;
|
|
582
|
-
/**
|
|
583
|
-
* Only supported on `chat` and `completion` models.
|
|
584
|
-
*/
|
|
585
|
-
maxTokens?: number | undefined;
|
|
586
|
-
/**
|
|
587
|
-
* Only supported on `chat` and `completion` models.
|
|
588
|
-
*/
|
|
589
|
-
topK?: number | undefined;
|
|
590
|
-
/**
|
|
591
|
-
* Only supported on `chat` and `completion` models.
|
|
592
|
-
*/
|
|
593
|
-
topP?: number | undefined;
|
|
594
|
-
/**
|
|
595
|
-
* Only supported on `chat` and `completion` models.
|
|
596
|
-
*/
|
|
597
|
-
frequencyPenalty?: number | undefined;
|
|
598
|
-
/**
|
|
599
|
-
* Only supported on `chat` and `completion` models.
|
|
600
|
-
*/
|
|
601
|
-
presencePenalty?: number | undefined;
|
|
602
|
-
/**
|
|
603
|
-
* Only supported on `image` models.
|
|
604
|
-
*/
|
|
605
|
-
numImages?: number | undefined;
|
|
606
|
-
/**
|
|
607
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
608
|
-
*/
|
|
609
|
-
seed?: number | undefined;
|
|
610
|
-
/**
|
|
611
|
-
* Only supported on `image` models.
|
|
612
|
-
*/
|
|
613
|
-
format?: UpdatePromptPromptsFormat | undefined;
|
|
614
|
-
/**
|
|
615
|
-
* Only supported on `image` models.
|
|
616
|
-
*/
|
|
617
|
-
dimensions?: string | undefined;
|
|
618
|
-
/**
|
|
619
|
-
* Only supported on `image` models.
|
|
620
|
-
*/
|
|
621
|
-
quality?: UpdatePromptQuality | undefined;
|
|
622
|
-
/**
|
|
623
|
-
* Only supported on `image` models.
|
|
624
|
-
*/
|
|
625
|
-
style?: string | undefined;
|
|
626
|
-
/**
|
|
627
|
-
* An object specifying the format that the model must output.
|
|
628
|
-
*
|
|
629
|
-
* @remarks
|
|
630
|
-
*
|
|
631
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
632
|
-
*
|
|
633
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
634
|
-
*
|
|
635
|
-
* 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.
|
|
636
|
-
*/
|
|
637
|
-
responseFormat?:
|
|
638
|
-
| UpdatePromptResponseFormat2
|
|
639
|
-
| UpdatePromptResponseFormat1
|
|
640
|
-
| null
|
|
641
|
-
| undefined;
|
|
642
|
-
/**
|
|
643
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
644
|
-
*/
|
|
645
|
-
photoRealVersion?: UpdatePromptPhotoRealVersion | undefined;
|
|
646
|
-
/**
|
|
647
|
-
* The format to return the embeddings
|
|
648
|
-
*/
|
|
649
|
-
encodingFormat?: UpdatePromptEncodingFormat | undefined;
|
|
650
|
-
/**
|
|
651
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
652
|
-
*/
|
|
653
|
-
reasoningEffort?: UpdatePromptReasoningEffort | undefined;
|
|
654
|
-
/**
|
|
655
|
-
* Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
|
|
656
|
-
*/
|
|
657
|
-
budgetTokens?: number | undefined;
|
|
658
|
-
};
|
|
659
|
-
|
|
660
|
-
export const UpdatePromptProvider = {
|
|
661
|
-
Cohere: "cohere",
|
|
662
|
-
Openai: "openai",
|
|
663
|
-
Anthropic: "anthropic",
|
|
664
|
-
Huggingface: "huggingface",
|
|
665
|
-
Replicate: "replicate",
|
|
666
|
-
Google: "google",
|
|
667
|
-
GoogleAi: "google-ai",
|
|
668
|
-
Azure: "azure",
|
|
669
|
-
Aws: "aws",
|
|
670
|
-
Anyscale: "anyscale",
|
|
671
|
-
Perplexity: "perplexity",
|
|
672
|
-
Groq: "groq",
|
|
673
|
-
Fal: "fal",
|
|
674
|
-
Leonardoai: "leonardoai",
|
|
675
|
-
Nvidia: "nvidia",
|
|
676
|
-
Jina: "jina",
|
|
677
|
-
Togetherai: "togetherai",
|
|
678
|
-
Elevenlabs: "elevenlabs",
|
|
679
|
-
} as const;
|
|
680
|
-
export type UpdatePromptProvider = ClosedEnum<typeof UpdatePromptProvider>;
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* The role of the prompt message
|
|
684
|
-
*/
|
|
685
|
-
export const UpdatePromptPromptsRole = {
|
|
686
|
-
System: "system",
|
|
687
|
-
Assistant: "assistant",
|
|
688
|
-
User: "user",
|
|
689
|
-
Exception: "exception",
|
|
690
|
-
Tool: "tool",
|
|
691
|
-
Prompt: "prompt",
|
|
692
|
-
Correction: "correction",
|
|
693
|
-
ExpectedOutput: "expected_output",
|
|
694
|
-
} as const;
|
|
695
|
-
/**
|
|
696
|
-
* The role of the prompt message
|
|
697
|
-
*/
|
|
698
|
-
export type UpdatePromptPromptsRole = ClosedEnum<
|
|
699
|
-
typeof UpdatePromptPromptsRole
|
|
700
|
-
>;
|
|
701
|
-
|
|
702
|
-
export const UpdatePrompt2PromptsResponse200Type = {
|
|
703
|
-
ImageUrl: "image_url",
|
|
704
|
-
} as const;
|
|
705
|
-
export type UpdatePrompt2PromptsResponse200Type = ClosedEnum<
|
|
706
|
-
typeof UpdatePrompt2PromptsResponse200Type
|
|
707
|
-
>;
|
|
708
|
-
|
|
709
|
-
export type UpdatePrompt2PromptsImageUrl = {
|
|
710
|
-
/**
|
|
711
|
-
* The orq.ai id of the image
|
|
712
|
-
*/
|
|
713
|
-
id?: string | undefined;
|
|
714
|
-
/**
|
|
715
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
716
|
-
*/
|
|
717
|
-
url: string;
|
|
718
|
-
/**
|
|
719
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
720
|
-
*/
|
|
721
|
-
detail?: string | undefined;
|
|
722
|
-
};
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
726
|
-
*/
|
|
727
|
-
export type UpdatePrompt2Prompts2 = {
|
|
728
|
-
type: UpdatePrompt2PromptsResponse200Type;
|
|
729
|
-
imageUrl: UpdatePrompt2PromptsImageUrl;
|
|
730
|
-
};
|
|
731
|
-
|
|
732
|
-
export const UpdatePrompt2PromptsResponseType = {
|
|
733
|
-
Text: "text",
|
|
734
|
-
} as const;
|
|
735
|
-
export type UpdatePrompt2PromptsResponseType = ClosedEnum<
|
|
736
|
-
typeof UpdatePrompt2PromptsResponseType
|
|
737
|
-
>;
|
|
738
|
-
|
|
739
|
-
/**
|
|
740
|
-
* Text content part of a prompt message
|
|
741
|
-
*/
|
|
742
|
-
export type UpdatePrompt2Prompts1 = {
|
|
743
|
-
type: UpdatePrompt2PromptsResponseType;
|
|
744
|
-
text: string;
|
|
745
|
-
};
|
|
746
|
-
|
|
747
|
-
export type UpdatePromptContentPrompts2 =
|
|
748
|
-
| UpdatePrompt2Prompts1
|
|
749
|
-
| UpdatePrompt2Prompts2;
|
|
750
|
-
|
|
751
|
-
/**
|
|
752
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
753
|
-
*/
|
|
754
|
-
export type UpdatePromptPromptsContent =
|
|
755
|
-
| string
|
|
756
|
-
| Array<UpdatePrompt2Prompts1 | UpdatePrompt2Prompts2>;
|
|
757
|
-
|
|
758
|
-
export const UpdatePromptPromptsResponseType = {
|
|
759
|
-
Function: "function",
|
|
760
|
-
} as const;
|
|
761
|
-
export type UpdatePromptPromptsResponseType = ClosedEnum<
|
|
762
|
-
typeof UpdatePromptPromptsResponseType
|
|
763
|
-
>;
|
|
764
|
-
|
|
765
|
-
export type UpdatePromptPromptsFunction = {
|
|
766
|
-
name: string;
|
|
767
|
-
/**
|
|
768
|
-
* JSON string arguments for the functions
|
|
769
|
-
*/
|
|
770
|
-
arguments: string;
|
|
771
|
-
};
|
|
772
|
-
|
|
773
|
-
export type UpdatePromptPromptsToolCalls = {
|
|
774
|
-
id?: string | undefined;
|
|
775
|
-
index?: number | undefined;
|
|
776
|
-
type: UpdatePromptPromptsResponseType;
|
|
777
|
-
function: UpdatePromptPromptsFunction;
|
|
778
|
-
};
|
|
779
|
-
|
|
780
|
-
export type UpdatePromptPromptsMessages = {
|
|
781
|
-
/**
|
|
782
|
-
* The role of the prompt message
|
|
783
|
-
*/
|
|
784
|
-
role: UpdatePromptPromptsRole;
|
|
785
|
-
/**
|
|
786
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
787
|
-
*/
|
|
788
|
-
content: string | Array<UpdatePrompt2Prompts1 | UpdatePrompt2Prompts2>;
|
|
789
|
-
toolCalls?: Array<UpdatePromptPromptsToolCalls> | undefined;
|
|
790
|
-
};
|
|
791
|
-
|
|
792
|
-
/**
|
|
793
|
-
* A list of messages compatible with the openAI schema
|
|
794
|
-
*/
|
|
795
|
-
export type UpdatePromptPromptConfig = {
|
|
796
|
-
stream?: boolean | undefined;
|
|
797
|
-
model?: string | undefined;
|
|
798
|
-
/**
|
|
799
|
-
* The id of the resource
|
|
800
|
-
*/
|
|
801
|
-
modelDbId?: string | undefined;
|
|
802
|
-
/**
|
|
803
|
-
* The type of the model
|
|
804
|
-
*/
|
|
805
|
-
modelType?: UpdatePromptModelType | undefined;
|
|
806
|
-
/**
|
|
807
|
-
* Model Parameters: Not all parameters apply to every model
|
|
808
|
-
*/
|
|
809
|
-
modelParameters?: UpdatePromptModelParameters | undefined;
|
|
810
|
-
provider?: UpdatePromptProvider | undefined;
|
|
811
|
-
/**
|
|
812
|
-
* The id of the resource
|
|
813
|
-
*/
|
|
814
|
-
integrationId?: string | null | undefined;
|
|
815
|
-
version?: string | undefined;
|
|
816
|
-
messages: Array<UpdatePromptPromptsMessages>;
|
|
817
|
-
};
|
|
818
|
-
|
|
819
|
-
export const UpdatePromptUseCases = {
|
|
820
|
-
Agents: "Agents",
|
|
821
|
-
AgentsSimulations: "Agents simulations",
|
|
822
|
-
APIInteraction: "API interaction",
|
|
823
|
-
AutonomousAgents: "Autonomous Agents",
|
|
824
|
-
Chatbots: "Chatbots",
|
|
825
|
-
Classification: "Classification",
|
|
826
|
-
CodeUnderstanding: "Code understanding",
|
|
827
|
-
CodeWriting: "Code writing",
|
|
828
|
-
DocumentsQA: "Documents QA",
|
|
829
|
-
Conversation: "Conversation",
|
|
830
|
-
Extraction: "Extraction",
|
|
831
|
-
MultiModal: "Multi-modal",
|
|
832
|
-
SelfChecking: "Self-checking",
|
|
833
|
-
Sql: "SQL",
|
|
834
|
-
Summarization: "Summarization",
|
|
835
|
-
Tagging: "Tagging",
|
|
836
|
-
} as const;
|
|
837
|
-
export type UpdatePromptUseCases = ClosedEnum<typeof UpdatePromptUseCases>;
|
|
838
|
-
|
|
839
|
-
/**
|
|
840
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
841
|
-
*/
|
|
842
|
-
export const UpdatePromptLanguage = {
|
|
843
|
-
Chinese: "Chinese",
|
|
844
|
-
Dutch: "Dutch",
|
|
845
|
-
English: "English",
|
|
846
|
-
French: "French",
|
|
847
|
-
German: "German",
|
|
848
|
-
Russian: "Russian",
|
|
849
|
-
Spanish: "Spanish",
|
|
850
|
-
} as const;
|
|
851
|
-
/**
|
|
852
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
853
|
-
*/
|
|
854
|
-
export type UpdatePromptLanguage = ClosedEnum<typeof UpdatePromptLanguage>;
|
|
855
|
-
|
|
856
|
-
export type UpdatePromptPromptsMetadata = {
|
|
857
|
-
/**
|
|
858
|
-
* 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
|
|
859
|
-
*/
|
|
860
|
-
useCases?: Array<UpdatePromptUseCases> | undefined;
|
|
861
|
-
/**
|
|
862
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
863
|
-
*/
|
|
864
|
-
language?: UpdatePromptLanguage | undefined;
|
|
865
|
-
};
|
|
866
|
-
|
|
867
|
-
/**
|
|
868
|
-
* Prompt updated.
|
|
869
|
-
*/
|
|
870
|
-
export type UpdatePromptResponseBody = {
|
|
871
|
-
id: string;
|
|
872
|
-
type: UpdatePromptPromptsType;
|
|
873
|
-
owner: string;
|
|
874
|
-
domainId: string;
|
|
875
|
-
created: string;
|
|
876
|
-
updated: string;
|
|
877
|
-
createdById?: string | null | undefined;
|
|
878
|
-
updatedById?: string | null | undefined;
|
|
879
|
-
/**
|
|
880
|
-
* The prompt’s name, meant to be displayable in the UI.
|
|
881
|
-
*/
|
|
882
|
-
displayName: string;
|
|
883
|
-
/**
|
|
884
|
-
* 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
|
|
885
|
-
*/
|
|
886
|
-
description?: string | null | undefined;
|
|
887
|
-
/**
|
|
888
|
-
* A list of messages compatible with the openAI schema
|
|
889
|
-
*/
|
|
890
|
-
promptConfig: UpdatePromptPromptConfig;
|
|
891
|
-
metadata?: UpdatePromptPromptsMetadata | undefined;
|
|
892
|
-
};
|
|
893
|
-
|
|
894
|
-
/** @internal */
|
|
895
|
-
export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
|
|
896
|
-
.nativeEnum(ModelType);
|
|
897
|
-
|
|
898
|
-
/** @internal */
|
|
899
|
-
export const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType> =
|
|
900
|
-
ModelType$inboundSchema;
|
|
901
|
-
|
|
902
|
-
/**
|
|
903
|
-
* @internal
|
|
904
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
905
|
-
*/
|
|
906
|
-
export namespace ModelType$ {
|
|
907
|
-
/** @deprecated use `ModelType$inboundSchema` instead. */
|
|
908
|
-
export const inboundSchema = ModelType$inboundSchema;
|
|
909
|
-
/** @deprecated use `ModelType$outboundSchema` instead. */
|
|
910
|
-
export const outboundSchema = ModelType$outboundSchema;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
/** @internal */
|
|
914
|
-
export const UpdatePromptFormat$inboundSchema: z.ZodNativeEnum<
|
|
915
|
-
typeof UpdatePromptFormat
|
|
916
|
-
> = z.nativeEnum(UpdatePromptFormat);
|
|
917
|
-
|
|
918
|
-
/** @internal */
|
|
919
|
-
export const UpdatePromptFormat$outboundSchema: z.ZodNativeEnum<
|
|
920
|
-
typeof UpdatePromptFormat
|
|
921
|
-
> = UpdatePromptFormat$inboundSchema;
|
|
922
|
-
|
|
923
|
-
/**
|
|
924
|
-
* @internal
|
|
925
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
926
|
-
*/
|
|
927
|
-
export namespace UpdatePromptFormat$ {
|
|
928
|
-
/** @deprecated use `UpdatePromptFormat$inboundSchema` instead. */
|
|
929
|
-
export const inboundSchema = UpdatePromptFormat$inboundSchema;
|
|
930
|
-
/** @deprecated use `UpdatePromptFormat$outboundSchema` instead. */
|
|
931
|
-
export const outboundSchema = UpdatePromptFormat$outboundSchema;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
/** @internal */
|
|
935
|
-
export const Quality$inboundSchema: z.ZodNativeEnum<typeof Quality> = z
|
|
936
|
-
.nativeEnum(Quality);
|
|
937
|
-
|
|
938
|
-
/** @internal */
|
|
939
|
-
export const Quality$outboundSchema: z.ZodNativeEnum<typeof Quality> =
|
|
940
|
-
Quality$inboundSchema;
|
|
941
|
-
|
|
942
|
-
/**
|
|
943
|
-
* @internal
|
|
944
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
945
|
-
*/
|
|
946
|
-
export namespace Quality$ {
|
|
947
|
-
/** @deprecated use `Quality$inboundSchema` instead. */
|
|
948
|
-
export const inboundSchema = Quality$inboundSchema;
|
|
949
|
-
/** @deprecated use `Quality$outboundSchema` instead. */
|
|
950
|
-
export const outboundSchema = Quality$outboundSchema;
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
/** @internal */
|
|
954
|
-
export const UpdatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
955
|
-
typeof UpdatePromptResponseFormatType
|
|
956
|
-
> = z.nativeEnum(UpdatePromptResponseFormatType);
|
|
957
|
-
|
|
958
|
-
/** @internal */
|
|
959
|
-
export const UpdatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
960
|
-
typeof UpdatePromptResponseFormatType
|
|
961
|
-
> = UpdatePromptResponseFormatType$inboundSchema;
|
|
962
|
-
|
|
963
|
-
/**
|
|
964
|
-
* @internal
|
|
965
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
966
|
-
*/
|
|
967
|
-
export namespace UpdatePromptResponseFormatType$ {
|
|
968
|
-
/** @deprecated use `UpdatePromptResponseFormatType$inboundSchema` instead. */
|
|
969
|
-
export const inboundSchema = UpdatePromptResponseFormatType$inboundSchema;
|
|
970
|
-
/** @deprecated use `UpdatePromptResponseFormatType$outboundSchema` instead. */
|
|
971
|
-
export const outboundSchema = UpdatePromptResponseFormatType$outboundSchema;
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
/** @internal */
|
|
975
|
-
export const ResponseFormat2$inboundSchema: z.ZodType<
|
|
976
|
-
ResponseFormat2,
|
|
977
|
-
z.ZodTypeDef,
|
|
978
|
-
unknown
|
|
979
|
-
> = z.object({
|
|
980
|
-
type: UpdatePromptResponseFormatType$inboundSchema,
|
|
981
|
-
});
|
|
982
|
-
|
|
983
|
-
/** @internal */
|
|
984
|
-
export type ResponseFormat2$Outbound = {
|
|
985
|
-
type: string;
|
|
986
|
-
};
|
|
987
|
-
|
|
988
|
-
/** @internal */
|
|
989
|
-
export const ResponseFormat2$outboundSchema: z.ZodType<
|
|
990
|
-
ResponseFormat2$Outbound,
|
|
991
|
-
z.ZodTypeDef,
|
|
992
|
-
ResponseFormat2
|
|
993
|
-
> = z.object({
|
|
994
|
-
type: UpdatePromptResponseFormatType$outboundSchema,
|
|
995
|
-
});
|
|
996
|
-
|
|
997
|
-
/**
|
|
998
|
-
* @internal
|
|
999
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1000
|
-
*/
|
|
1001
|
-
export namespace ResponseFormat2$ {
|
|
1002
|
-
/** @deprecated use `ResponseFormat2$inboundSchema` instead. */
|
|
1003
|
-
export const inboundSchema = ResponseFormat2$inboundSchema;
|
|
1004
|
-
/** @deprecated use `ResponseFormat2$outboundSchema` instead. */
|
|
1005
|
-
export const outboundSchema = ResponseFormat2$outboundSchema;
|
|
1006
|
-
/** @deprecated use `ResponseFormat2$Outbound` instead. */
|
|
1007
|
-
export type Outbound = ResponseFormat2$Outbound;
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
export function responseFormat2ToJSON(
|
|
1011
|
-
responseFormat2: ResponseFormat2,
|
|
1012
|
-
): string {
|
|
1013
|
-
return JSON.stringify(ResponseFormat2$outboundSchema.parse(responseFormat2));
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
export function responseFormat2FromJSON(
|
|
1017
|
-
jsonString: string,
|
|
1018
|
-
): SafeParseResult<ResponseFormat2, SDKValidationError> {
|
|
1019
|
-
return safeParse(
|
|
1020
|
-
jsonString,
|
|
1021
|
-
(x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
1022
|
-
`Failed to parse 'ResponseFormat2' from JSON`,
|
|
1023
|
-
);
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
/** @internal */
|
|
1027
|
-
export const ResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
1028
|
-
typeof ResponseFormatType
|
|
1029
|
-
> = z.nativeEnum(ResponseFormatType);
|
|
1030
|
-
|
|
1031
|
-
/** @internal */
|
|
1032
|
-
export const ResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
1033
|
-
typeof ResponseFormatType
|
|
1034
|
-
> = ResponseFormatType$inboundSchema;
|
|
1035
|
-
|
|
1036
|
-
/**
|
|
1037
|
-
* @internal
|
|
1038
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1039
|
-
*/
|
|
1040
|
-
export namespace ResponseFormatType$ {
|
|
1041
|
-
/** @deprecated use `ResponseFormatType$inboundSchema` instead. */
|
|
1042
|
-
export const inboundSchema = ResponseFormatType$inboundSchema;
|
|
1043
|
-
/** @deprecated use `ResponseFormatType$outboundSchema` instead. */
|
|
1044
|
-
export const outboundSchema = ResponseFormatType$outboundSchema;
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
/** @internal */
|
|
1048
|
-
export const JsonSchema$inboundSchema: z.ZodType<
|
|
1049
|
-
JsonSchema,
|
|
1050
|
-
z.ZodTypeDef,
|
|
1051
|
-
unknown
|
|
1052
|
-
> = z.object({
|
|
1053
|
-
name: z.string(),
|
|
1054
|
-
strict: z.boolean(),
|
|
1055
|
-
schema: z.record(z.any()),
|
|
1056
|
-
});
|
|
1057
|
-
|
|
1058
|
-
/** @internal */
|
|
1059
|
-
export type JsonSchema$Outbound = {
|
|
1060
|
-
name: string;
|
|
1061
|
-
strict: boolean;
|
|
1062
|
-
schema: { [k: string]: any };
|
|
1063
|
-
};
|
|
1064
|
-
|
|
1065
|
-
/** @internal */
|
|
1066
|
-
export const JsonSchema$outboundSchema: z.ZodType<
|
|
1067
|
-
JsonSchema$Outbound,
|
|
1068
|
-
z.ZodTypeDef,
|
|
1069
|
-
JsonSchema
|
|
1070
|
-
> = z.object({
|
|
1071
|
-
name: z.string(),
|
|
1072
|
-
strict: z.boolean(),
|
|
1073
|
-
schema: z.record(z.any()),
|
|
1074
|
-
});
|
|
1075
|
-
|
|
1076
|
-
/**
|
|
1077
|
-
* @internal
|
|
1078
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1079
|
-
*/
|
|
1080
|
-
export namespace JsonSchema$ {
|
|
1081
|
-
/** @deprecated use `JsonSchema$inboundSchema` instead. */
|
|
1082
|
-
export const inboundSchema = JsonSchema$inboundSchema;
|
|
1083
|
-
/** @deprecated use `JsonSchema$outboundSchema` instead. */
|
|
1084
|
-
export const outboundSchema = JsonSchema$outboundSchema;
|
|
1085
|
-
/** @deprecated use `JsonSchema$Outbound` instead. */
|
|
1086
|
-
export type Outbound = JsonSchema$Outbound;
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
export function jsonSchemaToJSON(jsonSchema: JsonSchema): string {
|
|
1090
|
-
return JSON.stringify(JsonSchema$outboundSchema.parse(jsonSchema));
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
export function jsonSchemaFromJSON(
|
|
1094
|
-
jsonString: string,
|
|
1095
|
-
): SafeParseResult<JsonSchema, SDKValidationError> {
|
|
1096
|
-
return safeParse(
|
|
1097
|
-
jsonString,
|
|
1098
|
-
(x) => JsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1099
|
-
`Failed to parse 'JsonSchema' from JSON`,
|
|
1100
|
-
);
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
/** @internal */
|
|
1104
|
-
export const ResponseFormat1$inboundSchema: z.ZodType<
|
|
1105
|
-
ResponseFormat1,
|
|
1106
|
-
z.ZodTypeDef,
|
|
1107
|
-
unknown
|
|
1108
|
-
> = z.object({
|
|
1109
|
-
type: ResponseFormatType$inboundSchema,
|
|
1110
|
-
json_schema: z.lazy(() => JsonSchema$inboundSchema),
|
|
1111
|
-
}).transform((v) => {
|
|
1112
|
-
return remap$(v, {
|
|
1113
|
-
"json_schema": "jsonSchema",
|
|
1114
|
-
});
|
|
1115
|
-
});
|
|
1116
|
-
|
|
1117
|
-
/** @internal */
|
|
1118
|
-
export type ResponseFormat1$Outbound = {
|
|
1119
|
-
type: string;
|
|
1120
|
-
json_schema: JsonSchema$Outbound;
|
|
1121
|
-
};
|
|
1122
|
-
|
|
1123
|
-
/** @internal */
|
|
1124
|
-
export const ResponseFormat1$outboundSchema: z.ZodType<
|
|
1125
|
-
ResponseFormat1$Outbound,
|
|
1126
|
-
z.ZodTypeDef,
|
|
1127
|
-
ResponseFormat1
|
|
1128
|
-
> = z.object({
|
|
1129
|
-
type: ResponseFormatType$outboundSchema,
|
|
1130
|
-
jsonSchema: z.lazy(() => JsonSchema$outboundSchema),
|
|
1131
|
-
}).transform((v) => {
|
|
1132
|
-
return remap$(v, {
|
|
1133
|
-
jsonSchema: "json_schema",
|
|
1134
|
-
});
|
|
1135
|
-
});
|
|
1136
|
-
|
|
1137
|
-
/**
|
|
1138
|
-
* @internal
|
|
1139
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1140
|
-
*/
|
|
1141
|
-
export namespace ResponseFormat1$ {
|
|
1142
|
-
/** @deprecated use `ResponseFormat1$inboundSchema` instead. */
|
|
1143
|
-
export const inboundSchema = ResponseFormat1$inboundSchema;
|
|
1144
|
-
/** @deprecated use `ResponseFormat1$outboundSchema` instead. */
|
|
1145
|
-
export const outboundSchema = ResponseFormat1$outboundSchema;
|
|
1146
|
-
/** @deprecated use `ResponseFormat1$Outbound` instead. */
|
|
1147
|
-
export type Outbound = ResponseFormat1$Outbound;
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
export function responseFormat1ToJSON(
|
|
1151
|
-
responseFormat1: ResponseFormat1,
|
|
1152
|
-
): string {
|
|
1153
|
-
return JSON.stringify(ResponseFormat1$outboundSchema.parse(responseFormat1));
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
export function responseFormat1FromJSON(
|
|
1157
|
-
jsonString: string,
|
|
1158
|
-
): SafeParseResult<ResponseFormat1, SDKValidationError> {
|
|
1159
|
-
return safeParse(
|
|
1160
|
-
jsonString,
|
|
1161
|
-
(x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
1162
|
-
`Failed to parse 'ResponseFormat1' from JSON`,
|
|
1163
|
-
);
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
/** @internal */
|
|
1167
|
-
export const ResponseFormat$inboundSchema: z.ZodType<
|
|
1168
|
-
ResponseFormat,
|
|
1169
|
-
z.ZodTypeDef,
|
|
1170
|
-
unknown
|
|
1171
|
-
> = z.union([
|
|
1172
|
-
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1173
|
-
z.lazy(() => ResponseFormat1$inboundSchema),
|
|
1174
|
-
]);
|
|
1175
|
-
|
|
1176
|
-
/** @internal */
|
|
1177
|
-
export type ResponseFormat$Outbound =
|
|
1178
|
-
| ResponseFormat2$Outbound
|
|
1179
|
-
| ResponseFormat1$Outbound;
|
|
1180
|
-
|
|
1181
|
-
/** @internal */
|
|
1182
|
-
export const ResponseFormat$outboundSchema: z.ZodType<
|
|
1183
|
-
ResponseFormat$Outbound,
|
|
1184
|
-
z.ZodTypeDef,
|
|
1185
|
-
ResponseFormat
|
|
1186
|
-
> = z.union([
|
|
1187
|
-
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1188
|
-
z.lazy(() => ResponseFormat1$outboundSchema),
|
|
1189
|
-
]);
|
|
1190
|
-
|
|
1191
|
-
/**
|
|
1192
|
-
* @internal
|
|
1193
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1194
|
-
*/
|
|
1195
|
-
export namespace ResponseFormat$ {
|
|
1196
|
-
/** @deprecated use `ResponseFormat$inboundSchema` instead. */
|
|
1197
|
-
export const inboundSchema = ResponseFormat$inboundSchema;
|
|
1198
|
-
/** @deprecated use `ResponseFormat$outboundSchema` instead. */
|
|
1199
|
-
export const outboundSchema = ResponseFormat$outboundSchema;
|
|
1200
|
-
/** @deprecated use `ResponseFormat$Outbound` instead. */
|
|
1201
|
-
export type Outbound = ResponseFormat$Outbound;
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
export function responseFormatToJSON(responseFormat: ResponseFormat): string {
|
|
1205
|
-
return JSON.stringify(ResponseFormat$outboundSchema.parse(responseFormat));
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
export function responseFormatFromJSON(
|
|
1209
|
-
jsonString: string,
|
|
1210
|
-
): SafeParseResult<ResponseFormat, SDKValidationError> {
|
|
1211
|
-
return safeParse(
|
|
1212
|
-
jsonString,
|
|
1213
|
-
(x) => ResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1214
|
-
`Failed to parse 'ResponseFormat' from JSON`,
|
|
1215
|
-
);
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
/** @internal */
|
|
1219
|
-
export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
1220
|
-
typeof PhotoRealVersion
|
|
1221
|
-
> = z.nativeEnum(PhotoRealVersion);
|
|
1222
|
-
|
|
1223
|
-
/** @internal */
|
|
1224
|
-
export const PhotoRealVersion$outboundSchema: z.ZodNativeEnum<
|
|
1225
|
-
typeof PhotoRealVersion
|
|
1226
|
-
> = PhotoRealVersion$inboundSchema;
|
|
1227
|
-
|
|
1228
|
-
/**
|
|
1229
|
-
* @internal
|
|
1230
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1231
|
-
*/
|
|
1232
|
-
export namespace PhotoRealVersion$ {
|
|
1233
|
-
/** @deprecated use `PhotoRealVersion$inboundSchema` instead. */
|
|
1234
|
-
export const inboundSchema = PhotoRealVersion$inboundSchema;
|
|
1235
|
-
/** @deprecated use `PhotoRealVersion$outboundSchema` instead. */
|
|
1236
|
-
export const outboundSchema = PhotoRealVersion$outboundSchema;
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
/** @internal */
|
|
1240
|
-
export const EncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
1241
|
-
typeof EncodingFormat
|
|
1242
|
-
> = z.nativeEnum(EncodingFormat);
|
|
1243
|
-
|
|
1244
|
-
/** @internal */
|
|
1245
|
-
export const EncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
1246
|
-
typeof EncodingFormat
|
|
1247
|
-
> = EncodingFormat$inboundSchema;
|
|
1248
|
-
|
|
1249
|
-
/**
|
|
1250
|
-
* @internal
|
|
1251
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1252
|
-
*/
|
|
1253
|
-
export namespace EncodingFormat$ {
|
|
1254
|
-
/** @deprecated use `EncodingFormat$inboundSchema` instead. */
|
|
1255
|
-
export const inboundSchema = EncodingFormat$inboundSchema;
|
|
1256
|
-
/** @deprecated use `EncodingFormat$outboundSchema` instead. */
|
|
1257
|
-
export const outboundSchema = EncodingFormat$outboundSchema;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
/** @internal */
|
|
1261
|
-
export const ReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1262
|
-
typeof ReasoningEffort
|
|
1263
|
-
> = z.nativeEnum(ReasoningEffort);
|
|
1264
|
-
|
|
1265
|
-
/** @internal */
|
|
1266
|
-
export const ReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
1267
|
-
typeof ReasoningEffort
|
|
1268
|
-
> = ReasoningEffort$inboundSchema;
|
|
1269
|
-
|
|
1270
|
-
/**
|
|
1271
|
-
* @internal
|
|
1272
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1273
|
-
*/
|
|
1274
|
-
export namespace ReasoningEffort$ {
|
|
1275
|
-
/** @deprecated use `ReasoningEffort$inboundSchema` instead. */
|
|
1276
|
-
export const inboundSchema = ReasoningEffort$inboundSchema;
|
|
1277
|
-
/** @deprecated use `ReasoningEffort$outboundSchema` instead. */
|
|
1278
|
-
export const outboundSchema = ReasoningEffort$outboundSchema;
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
/** @internal */
|
|
1282
|
-
export const ModelParameters$inboundSchema: z.ZodType<
|
|
1283
|
-
ModelParameters,
|
|
1284
|
-
z.ZodTypeDef,
|
|
1285
|
-
unknown
|
|
1286
|
-
> = z.object({
|
|
1287
|
-
temperature: z.number().optional(),
|
|
1288
|
-
maxTokens: z.number().optional(),
|
|
1289
|
-
topK: z.number().optional(),
|
|
1290
|
-
topP: z.number().optional(),
|
|
1291
|
-
frequencyPenalty: z.number().optional(),
|
|
1292
|
-
presencePenalty: z.number().optional(),
|
|
1293
|
-
numImages: z.number().optional(),
|
|
1294
|
-
seed: z.number().optional(),
|
|
1295
|
-
format: UpdatePromptFormat$inboundSchema.optional(),
|
|
1296
|
-
dimensions: z.string().optional(),
|
|
1297
|
-
quality: Quality$inboundSchema.optional(),
|
|
1298
|
-
style: z.string().optional(),
|
|
1299
|
-
responseFormat: z.nullable(
|
|
1300
|
-
z.union([
|
|
1301
|
-
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1302
|
-
z.lazy(() => ResponseFormat1$inboundSchema),
|
|
1303
|
-
]),
|
|
1304
|
-
).optional(),
|
|
1305
|
-
photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
|
|
1306
|
-
encoding_format: EncodingFormat$inboundSchema.optional(),
|
|
1307
|
-
reasoningEffort: ReasoningEffort$inboundSchema.optional(),
|
|
1308
|
-
budgetTokens: z.number().optional(),
|
|
1309
|
-
}).transform((v) => {
|
|
1310
|
-
return remap$(v, {
|
|
1311
|
-
"encoding_format": "encodingFormat",
|
|
1312
|
-
});
|
|
1313
|
-
});
|
|
1314
|
-
|
|
1315
|
-
/** @internal */
|
|
1316
|
-
export type ModelParameters$Outbound = {
|
|
1317
|
-
temperature?: number | undefined;
|
|
1318
|
-
maxTokens?: number | undefined;
|
|
1319
|
-
topK?: number | undefined;
|
|
1320
|
-
topP?: number | undefined;
|
|
1321
|
-
frequencyPenalty?: number | undefined;
|
|
1322
|
-
presencePenalty?: number | undefined;
|
|
1323
|
-
numImages?: number | undefined;
|
|
1324
|
-
seed?: number | undefined;
|
|
1325
|
-
format?: string | undefined;
|
|
1326
|
-
dimensions?: string | undefined;
|
|
1327
|
-
quality?: string | undefined;
|
|
1328
|
-
style?: string | undefined;
|
|
1329
|
-
responseFormat?:
|
|
1330
|
-
| ResponseFormat2$Outbound
|
|
1331
|
-
| ResponseFormat1$Outbound
|
|
1332
|
-
| null
|
|
1333
|
-
| undefined;
|
|
1334
|
-
photoRealVersion?: string | undefined;
|
|
1335
|
-
encoding_format?: string | undefined;
|
|
1336
|
-
reasoningEffort?: string | undefined;
|
|
1337
|
-
budgetTokens?: number | undefined;
|
|
1338
|
-
};
|
|
1339
|
-
|
|
1340
|
-
/** @internal */
|
|
1341
|
-
export const ModelParameters$outboundSchema: z.ZodType<
|
|
1342
|
-
ModelParameters$Outbound,
|
|
1343
|
-
z.ZodTypeDef,
|
|
1344
|
-
ModelParameters
|
|
1345
|
-
> = z.object({
|
|
1346
|
-
temperature: z.number().optional(),
|
|
1347
|
-
maxTokens: z.number().optional(),
|
|
1348
|
-
topK: z.number().optional(),
|
|
1349
|
-
topP: z.number().optional(),
|
|
1350
|
-
frequencyPenalty: z.number().optional(),
|
|
1351
|
-
presencePenalty: z.number().optional(),
|
|
1352
|
-
numImages: z.number().optional(),
|
|
1353
|
-
seed: z.number().optional(),
|
|
1354
|
-
format: UpdatePromptFormat$outboundSchema.optional(),
|
|
1355
|
-
dimensions: z.string().optional(),
|
|
1356
|
-
quality: Quality$outboundSchema.optional(),
|
|
1357
|
-
style: z.string().optional(),
|
|
1358
|
-
responseFormat: z.nullable(
|
|
1359
|
-
z.union([
|
|
1360
|
-
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1361
|
-
z.lazy(() => ResponseFormat1$outboundSchema),
|
|
1362
|
-
]),
|
|
1363
|
-
).optional(),
|
|
1364
|
-
photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
|
|
1365
|
-
encodingFormat: EncodingFormat$outboundSchema.optional(),
|
|
1366
|
-
reasoningEffort: ReasoningEffort$outboundSchema.optional(),
|
|
1367
|
-
budgetTokens: z.number().optional(),
|
|
1368
|
-
}).transform((v) => {
|
|
1369
|
-
return remap$(v, {
|
|
1370
|
-
encodingFormat: "encoding_format",
|
|
1371
|
-
});
|
|
1372
|
-
});
|
|
1373
|
-
|
|
1374
|
-
/**
|
|
1375
|
-
* @internal
|
|
1376
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1377
|
-
*/
|
|
1378
|
-
export namespace ModelParameters$ {
|
|
1379
|
-
/** @deprecated use `ModelParameters$inboundSchema` instead. */
|
|
1380
|
-
export const inboundSchema = ModelParameters$inboundSchema;
|
|
1381
|
-
/** @deprecated use `ModelParameters$outboundSchema` instead. */
|
|
1382
|
-
export const outboundSchema = ModelParameters$outboundSchema;
|
|
1383
|
-
/** @deprecated use `ModelParameters$Outbound` instead. */
|
|
1384
|
-
export type Outbound = ModelParameters$Outbound;
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
export function modelParametersToJSON(
|
|
1388
|
-
modelParameters: ModelParameters,
|
|
1389
|
-
): string {
|
|
1390
|
-
return JSON.stringify(ModelParameters$outboundSchema.parse(modelParameters));
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
export function modelParametersFromJSON(
|
|
1394
|
-
jsonString: string,
|
|
1395
|
-
): SafeParseResult<ModelParameters, SDKValidationError> {
|
|
1396
|
-
return safeParse(
|
|
1397
|
-
jsonString,
|
|
1398
|
-
(x) => ModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1399
|
-
`Failed to parse 'ModelParameters' from JSON`,
|
|
1400
|
-
);
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
/** @internal */
|
|
1404
|
-
export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
|
|
1405
|
-
.nativeEnum(Provider);
|
|
1406
|
-
|
|
1407
|
-
/** @internal */
|
|
1408
|
-
export const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider> =
|
|
1409
|
-
Provider$inboundSchema;
|
|
1410
|
-
|
|
1411
|
-
/**
|
|
1412
|
-
* @internal
|
|
1413
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1414
|
-
*/
|
|
1415
|
-
export namespace Provider$ {
|
|
1416
|
-
/** @deprecated use `Provider$inboundSchema` instead. */
|
|
1417
|
-
export const inboundSchema = Provider$inboundSchema;
|
|
1418
|
-
/** @deprecated use `Provider$outboundSchema` instead. */
|
|
1419
|
-
export const outboundSchema = Provider$outboundSchema;
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
/** @internal */
|
|
1423
|
-
export const UpdatePromptRole$inboundSchema: z.ZodNativeEnum<
|
|
1424
|
-
typeof UpdatePromptRole
|
|
1425
|
-
> = z.nativeEnum(UpdatePromptRole);
|
|
1426
|
-
|
|
1427
|
-
/** @internal */
|
|
1428
|
-
export const UpdatePromptRole$outboundSchema: z.ZodNativeEnum<
|
|
1429
|
-
typeof UpdatePromptRole
|
|
1430
|
-
> = UpdatePromptRole$inboundSchema;
|
|
1431
|
-
|
|
1432
|
-
/**
|
|
1433
|
-
* @internal
|
|
1434
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1435
|
-
*/
|
|
1436
|
-
export namespace UpdatePromptRole$ {
|
|
1437
|
-
/** @deprecated use `UpdatePromptRole$inboundSchema` instead. */
|
|
1438
|
-
export const inboundSchema = UpdatePromptRole$inboundSchema;
|
|
1439
|
-
/** @deprecated use `UpdatePromptRole$outboundSchema` instead. */
|
|
1440
|
-
export const outboundSchema = UpdatePromptRole$outboundSchema;
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
/** @internal */
|
|
1444
|
-
export const UpdatePrompt2PromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1445
|
-
typeof UpdatePrompt2PromptsType
|
|
1446
|
-
> = z.nativeEnum(UpdatePrompt2PromptsType);
|
|
1447
|
-
|
|
1448
|
-
/** @internal */
|
|
1449
|
-
export const UpdatePrompt2PromptsType$outboundSchema: z.ZodNativeEnum<
|
|
1450
|
-
typeof UpdatePrompt2PromptsType
|
|
1451
|
-
> = UpdatePrompt2PromptsType$inboundSchema;
|
|
1452
|
-
|
|
1453
|
-
/**
|
|
1454
|
-
* @internal
|
|
1455
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1456
|
-
*/
|
|
1457
|
-
export namespace UpdatePrompt2PromptsType$ {
|
|
1458
|
-
/** @deprecated use `UpdatePrompt2PromptsType$inboundSchema` instead. */
|
|
1459
|
-
export const inboundSchema = UpdatePrompt2PromptsType$inboundSchema;
|
|
1460
|
-
/** @deprecated use `UpdatePrompt2PromptsType$outboundSchema` instead. */
|
|
1461
|
-
export const outboundSchema = UpdatePrompt2PromptsType$outboundSchema;
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
/** @internal */
|
|
1465
|
-
export const UpdatePrompt2ImageUrl$inboundSchema: z.ZodType<
|
|
1466
|
-
UpdatePrompt2ImageUrl,
|
|
1467
|
-
z.ZodTypeDef,
|
|
1468
|
-
unknown
|
|
1469
|
-
> = z.object({
|
|
1470
|
-
url: z.string(),
|
|
1471
|
-
detail: z.string().optional(),
|
|
1472
|
-
});
|
|
1473
|
-
|
|
1474
|
-
/** @internal */
|
|
1475
|
-
export type UpdatePrompt2ImageUrl$Outbound = {
|
|
1476
|
-
url: string;
|
|
1477
|
-
detail?: string | undefined;
|
|
1478
|
-
};
|
|
1479
|
-
|
|
1480
|
-
/** @internal */
|
|
1481
|
-
export const UpdatePrompt2ImageUrl$outboundSchema: z.ZodType<
|
|
1482
|
-
UpdatePrompt2ImageUrl$Outbound,
|
|
1483
|
-
z.ZodTypeDef,
|
|
1484
|
-
UpdatePrompt2ImageUrl
|
|
1485
|
-
> = z.object({
|
|
1486
|
-
url: z.string(),
|
|
1487
|
-
detail: z.string().optional(),
|
|
1488
|
-
});
|
|
1489
|
-
|
|
1490
|
-
/**
|
|
1491
|
-
* @internal
|
|
1492
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1493
|
-
*/
|
|
1494
|
-
export namespace UpdatePrompt2ImageUrl$ {
|
|
1495
|
-
/** @deprecated use `UpdatePrompt2ImageUrl$inboundSchema` instead. */
|
|
1496
|
-
export const inboundSchema = UpdatePrompt2ImageUrl$inboundSchema;
|
|
1497
|
-
/** @deprecated use `UpdatePrompt2ImageUrl$outboundSchema` instead. */
|
|
1498
|
-
export const outboundSchema = UpdatePrompt2ImageUrl$outboundSchema;
|
|
1499
|
-
/** @deprecated use `UpdatePrompt2ImageUrl$Outbound` instead. */
|
|
1500
|
-
export type Outbound = UpdatePrompt2ImageUrl$Outbound;
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
export function updatePrompt2ImageUrlToJSON(
|
|
1504
|
-
updatePrompt2ImageUrl: UpdatePrompt2ImageUrl,
|
|
1505
|
-
): string {
|
|
1506
|
-
return JSON.stringify(
|
|
1507
|
-
UpdatePrompt2ImageUrl$outboundSchema.parse(updatePrompt2ImageUrl),
|
|
1508
|
-
);
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
export function updatePrompt2ImageUrlFromJSON(
|
|
1512
|
-
jsonString: string,
|
|
1513
|
-
): SafeParseResult<UpdatePrompt2ImageUrl, SDKValidationError> {
|
|
1514
|
-
return safeParse(
|
|
1515
|
-
jsonString,
|
|
1516
|
-
(x) => UpdatePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1517
|
-
`Failed to parse 'UpdatePrompt2ImageUrl' from JSON`,
|
|
1518
|
-
);
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
/** @internal */
|
|
1522
|
-
export const UpdatePrompt22$inboundSchema: z.ZodType<
|
|
1523
|
-
UpdatePrompt22,
|
|
1524
|
-
z.ZodTypeDef,
|
|
1525
|
-
unknown
|
|
1526
|
-
> = z.object({
|
|
1527
|
-
type: UpdatePrompt2PromptsType$inboundSchema,
|
|
1528
|
-
image_url: z.lazy(() => UpdatePrompt2ImageUrl$inboundSchema),
|
|
1529
|
-
}).transform((v) => {
|
|
1530
|
-
return remap$(v, {
|
|
1531
|
-
"image_url": "imageUrl",
|
|
1532
|
-
});
|
|
1533
|
-
});
|
|
1534
|
-
|
|
1535
|
-
/** @internal */
|
|
1536
|
-
export type UpdatePrompt22$Outbound = {
|
|
1537
|
-
type: string;
|
|
1538
|
-
image_url: UpdatePrompt2ImageUrl$Outbound;
|
|
1539
|
-
};
|
|
1540
|
-
|
|
1541
|
-
/** @internal */
|
|
1542
|
-
export const UpdatePrompt22$outboundSchema: z.ZodType<
|
|
1543
|
-
UpdatePrompt22$Outbound,
|
|
1544
|
-
z.ZodTypeDef,
|
|
1545
|
-
UpdatePrompt22
|
|
1546
|
-
> = z.object({
|
|
1547
|
-
type: UpdatePrompt2PromptsType$outboundSchema,
|
|
1548
|
-
imageUrl: z.lazy(() => UpdatePrompt2ImageUrl$outboundSchema),
|
|
1549
|
-
}).transform((v) => {
|
|
1550
|
-
return remap$(v, {
|
|
1551
|
-
imageUrl: "image_url",
|
|
1552
|
-
});
|
|
1553
|
-
});
|
|
1554
|
-
|
|
1555
|
-
/**
|
|
1556
|
-
* @internal
|
|
1557
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1558
|
-
*/
|
|
1559
|
-
export namespace UpdatePrompt22$ {
|
|
1560
|
-
/** @deprecated use `UpdatePrompt22$inboundSchema` instead. */
|
|
1561
|
-
export const inboundSchema = UpdatePrompt22$inboundSchema;
|
|
1562
|
-
/** @deprecated use `UpdatePrompt22$outboundSchema` instead. */
|
|
1563
|
-
export const outboundSchema = UpdatePrompt22$outboundSchema;
|
|
1564
|
-
/** @deprecated use `UpdatePrompt22$Outbound` instead. */
|
|
1565
|
-
export type Outbound = UpdatePrompt22$Outbound;
|
|
1566
|
-
}
|
|
1567
|
-
|
|
1568
|
-
export function updatePrompt22ToJSON(updatePrompt22: UpdatePrompt22): string {
|
|
1569
|
-
return JSON.stringify(UpdatePrompt22$outboundSchema.parse(updatePrompt22));
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
export function updatePrompt22FromJSON(
|
|
1573
|
-
jsonString: string,
|
|
1574
|
-
): SafeParseResult<UpdatePrompt22, SDKValidationError> {
|
|
1575
|
-
return safeParse(
|
|
1576
|
-
jsonString,
|
|
1577
|
-
(x) => UpdatePrompt22$inboundSchema.parse(JSON.parse(x)),
|
|
1578
|
-
`Failed to parse 'UpdatePrompt22' from JSON`,
|
|
1579
|
-
);
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
/** @internal */
|
|
1583
|
-
export const UpdatePrompt2Type$inboundSchema: z.ZodNativeEnum<
|
|
1584
|
-
typeof UpdatePrompt2Type
|
|
1585
|
-
> = z.nativeEnum(UpdatePrompt2Type);
|
|
1586
|
-
|
|
1587
|
-
/** @internal */
|
|
1588
|
-
export const UpdatePrompt2Type$outboundSchema: z.ZodNativeEnum<
|
|
1589
|
-
typeof UpdatePrompt2Type
|
|
1590
|
-
> = UpdatePrompt2Type$inboundSchema;
|
|
1591
|
-
|
|
1592
|
-
/**
|
|
1593
|
-
* @internal
|
|
1594
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1595
|
-
*/
|
|
1596
|
-
export namespace UpdatePrompt2Type$ {
|
|
1597
|
-
/** @deprecated use `UpdatePrompt2Type$inboundSchema` instead. */
|
|
1598
|
-
export const inboundSchema = UpdatePrompt2Type$inboundSchema;
|
|
1599
|
-
/** @deprecated use `UpdatePrompt2Type$outboundSchema` instead. */
|
|
1600
|
-
export const outboundSchema = UpdatePrompt2Type$outboundSchema;
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
/** @internal */
|
|
1604
|
-
export const UpdatePrompt21$inboundSchema: z.ZodType<
|
|
1605
|
-
UpdatePrompt21,
|
|
1606
|
-
z.ZodTypeDef,
|
|
1607
|
-
unknown
|
|
1608
|
-
> = z.object({
|
|
1609
|
-
type: UpdatePrompt2Type$inboundSchema,
|
|
1610
|
-
text: z.string(),
|
|
1611
|
-
});
|
|
1612
|
-
|
|
1613
|
-
/** @internal */
|
|
1614
|
-
export type UpdatePrompt21$Outbound = {
|
|
1615
|
-
type: string;
|
|
1616
|
-
text: string;
|
|
1617
|
-
};
|
|
1618
|
-
|
|
1619
|
-
/** @internal */
|
|
1620
|
-
export const UpdatePrompt21$outboundSchema: z.ZodType<
|
|
1621
|
-
UpdatePrompt21$Outbound,
|
|
1622
|
-
z.ZodTypeDef,
|
|
1623
|
-
UpdatePrompt21
|
|
1624
|
-
> = z.object({
|
|
1625
|
-
type: UpdatePrompt2Type$outboundSchema,
|
|
1626
|
-
text: z.string(),
|
|
1627
|
-
});
|
|
1628
|
-
|
|
1629
|
-
/**
|
|
1630
|
-
* @internal
|
|
1631
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1632
|
-
*/
|
|
1633
|
-
export namespace UpdatePrompt21$ {
|
|
1634
|
-
/** @deprecated use `UpdatePrompt21$inboundSchema` instead. */
|
|
1635
|
-
export const inboundSchema = UpdatePrompt21$inboundSchema;
|
|
1636
|
-
/** @deprecated use `UpdatePrompt21$outboundSchema` instead. */
|
|
1637
|
-
export const outboundSchema = UpdatePrompt21$outboundSchema;
|
|
1638
|
-
/** @deprecated use `UpdatePrompt21$Outbound` instead. */
|
|
1639
|
-
export type Outbound = UpdatePrompt21$Outbound;
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
export function updatePrompt21ToJSON(updatePrompt21: UpdatePrompt21): string {
|
|
1643
|
-
return JSON.stringify(UpdatePrompt21$outboundSchema.parse(updatePrompt21));
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
export function updatePrompt21FromJSON(
|
|
1647
|
-
jsonString: string,
|
|
1648
|
-
): SafeParseResult<UpdatePrompt21, SDKValidationError> {
|
|
1649
|
-
return safeParse(
|
|
1650
|
-
jsonString,
|
|
1651
|
-
(x) => UpdatePrompt21$inboundSchema.parse(JSON.parse(x)),
|
|
1652
|
-
`Failed to parse 'UpdatePrompt21' from JSON`,
|
|
1653
|
-
);
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
/** @internal */
|
|
1657
|
-
export const UpdatePromptContent2$inboundSchema: z.ZodType<
|
|
1658
|
-
UpdatePromptContent2,
|
|
1659
|
-
z.ZodTypeDef,
|
|
1660
|
-
unknown
|
|
1661
|
-
> = z.union([
|
|
1662
|
-
z.lazy(() => UpdatePrompt21$inboundSchema),
|
|
1663
|
-
z.lazy(() => UpdatePrompt22$inboundSchema),
|
|
1664
|
-
]);
|
|
1665
|
-
|
|
1666
|
-
/** @internal */
|
|
1667
|
-
export type UpdatePromptContent2$Outbound =
|
|
1668
|
-
| UpdatePrompt21$Outbound
|
|
1669
|
-
| UpdatePrompt22$Outbound;
|
|
1670
|
-
|
|
1671
|
-
/** @internal */
|
|
1672
|
-
export const UpdatePromptContent2$outboundSchema: z.ZodType<
|
|
1673
|
-
UpdatePromptContent2$Outbound,
|
|
1674
|
-
z.ZodTypeDef,
|
|
1675
|
-
UpdatePromptContent2
|
|
1676
|
-
> = z.union([
|
|
1677
|
-
z.lazy(() => UpdatePrompt21$outboundSchema),
|
|
1678
|
-
z.lazy(() => UpdatePrompt22$outboundSchema),
|
|
1679
|
-
]);
|
|
1680
|
-
|
|
1681
|
-
/**
|
|
1682
|
-
* @internal
|
|
1683
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1684
|
-
*/
|
|
1685
|
-
export namespace UpdatePromptContent2$ {
|
|
1686
|
-
/** @deprecated use `UpdatePromptContent2$inboundSchema` instead. */
|
|
1687
|
-
export const inboundSchema = UpdatePromptContent2$inboundSchema;
|
|
1688
|
-
/** @deprecated use `UpdatePromptContent2$outboundSchema` instead. */
|
|
1689
|
-
export const outboundSchema = UpdatePromptContent2$outboundSchema;
|
|
1690
|
-
/** @deprecated use `UpdatePromptContent2$Outbound` instead. */
|
|
1691
|
-
export type Outbound = UpdatePromptContent2$Outbound;
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
|
-
export function updatePromptContent2ToJSON(
|
|
1695
|
-
updatePromptContent2: UpdatePromptContent2,
|
|
1696
|
-
): string {
|
|
1697
|
-
return JSON.stringify(
|
|
1698
|
-
UpdatePromptContent2$outboundSchema.parse(updatePromptContent2),
|
|
1699
|
-
);
|
|
1700
|
-
}
|
|
1701
|
-
|
|
1702
|
-
export function updatePromptContent2FromJSON(
|
|
1703
|
-
jsonString: string,
|
|
1704
|
-
): SafeParseResult<UpdatePromptContent2, SDKValidationError> {
|
|
1705
|
-
return safeParse(
|
|
1706
|
-
jsonString,
|
|
1707
|
-
(x) => UpdatePromptContent2$inboundSchema.parse(JSON.parse(x)),
|
|
1708
|
-
`Failed to parse 'UpdatePromptContent2' from JSON`,
|
|
1709
|
-
);
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
/** @internal */
|
|
1713
|
-
export const UpdatePromptContent$inboundSchema: z.ZodType<
|
|
1714
|
-
UpdatePromptContent,
|
|
1715
|
-
z.ZodTypeDef,
|
|
1716
|
-
unknown
|
|
1717
|
-
> = z.union([
|
|
1718
|
-
z.string(),
|
|
1719
|
-
z.array(z.union([
|
|
1720
|
-
z.lazy(() => UpdatePrompt21$inboundSchema),
|
|
1721
|
-
z.lazy(() => UpdatePrompt22$inboundSchema),
|
|
1722
|
-
])),
|
|
1723
|
-
]);
|
|
1724
|
-
|
|
1725
|
-
/** @internal */
|
|
1726
|
-
export type UpdatePromptContent$Outbound =
|
|
1727
|
-
| string
|
|
1728
|
-
| Array<UpdatePrompt21$Outbound | UpdatePrompt22$Outbound>;
|
|
1729
|
-
|
|
1730
|
-
/** @internal */
|
|
1731
|
-
export const UpdatePromptContent$outboundSchema: z.ZodType<
|
|
1732
|
-
UpdatePromptContent$Outbound,
|
|
1733
|
-
z.ZodTypeDef,
|
|
1734
|
-
UpdatePromptContent
|
|
1735
|
-
> = z.union([
|
|
1736
|
-
z.string(),
|
|
1737
|
-
z.array(z.union([
|
|
1738
|
-
z.lazy(() => UpdatePrompt21$outboundSchema),
|
|
1739
|
-
z.lazy(() => UpdatePrompt22$outboundSchema),
|
|
1740
|
-
])),
|
|
1741
|
-
]);
|
|
1742
|
-
|
|
1743
|
-
/**
|
|
1744
|
-
* @internal
|
|
1745
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1746
|
-
*/
|
|
1747
|
-
export namespace UpdatePromptContent$ {
|
|
1748
|
-
/** @deprecated use `UpdatePromptContent$inboundSchema` instead. */
|
|
1749
|
-
export const inboundSchema = UpdatePromptContent$inboundSchema;
|
|
1750
|
-
/** @deprecated use `UpdatePromptContent$outboundSchema` instead. */
|
|
1751
|
-
export const outboundSchema = UpdatePromptContent$outboundSchema;
|
|
1752
|
-
/** @deprecated use `UpdatePromptContent$Outbound` instead. */
|
|
1753
|
-
export type Outbound = UpdatePromptContent$Outbound;
|
|
1754
|
-
}
|
|
1755
|
-
|
|
1756
|
-
export function updatePromptContentToJSON(
|
|
1757
|
-
updatePromptContent: UpdatePromptContent,
|
|
1758
|
-
): string {
|
|
1759
|
-
return JSON.stringify(
|
|
1760
|
-
UpdatePromptContent$outboundSchema.parse(updatePromptContent),
|
|
1761
|
-
);
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
|
-
export function updatePromptContentFromJSON(
|
|
1765
|
-
jsonString: string,
|
|
1766
|
-
): SafeParseResult<UpdatePromptContent, SDKValidationError> {
|
|
1767
|
-
return safeParse(
|
|
1768
|
-
jsonString,
|
|
1769
|
-
(x) => UpdatePromptContent$inboundSchema.parse(JSON.parse(x)),
|
|
1770
|
-
`Failed to parse 'UpdatePromptContent' from JSON`,
|
|
1771
|
-
);
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
/** @internal */
|
|
1775
|
-
export const UpdatePromptType$inboundSchema: z.ZodNativeEnum<
|
|
1776
|
-
typeof UpdatePromptType
|
|
1777
|
-
> = z.nativeEnum(UpdatePromptType);
|
|
1778
|
-
|
|
1779
|
-
/** @internal */
|
|
1780
|
-
export const UpdatePromptType$outboundSchema: z.ZodNativeEnum<
|
|
1781
|
-
typeof UpdatePromptType
|
|
1782
|
-
> = UpdatePromptType$inboundSchema;
|
|
1783
|
-
|
|
1784
|
-
/**
|
|
1785
|
-
* @internal
|
|
1786
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1787
|
-
*/
|
|
1788
|
-
export namespace UpdatePromptType$ {
|
|
1789
|
-
/** @deprecated use `UpdatePromptType$inboundSchema` instead. */
|
|
1790
|
-
export const inboundSchema = UpdatePromptType$inboundSchema;
|
|
1791
|
-
/** @deprecated use `UpdatePromptType$outboundSchema` instead. */
|
|
1792
|
-
export const outboundSchema = UpdatePromptType$outboundSchema;
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
/** @internal */
|
|
1796
|
-
export const UpdatePromptFunction$inboundSchema: z.ZodType<
|
|
1797
|
-
UpdatePromptFunction,
|
|
1798
|
-
z.ZodTypeDef,
|
|
1799
|
-
unknown
|
|
1800
|
-
> = z.object({
|
|
1801
|
-
name: z.string(),
|
|
1802
|
-
arguments: z.string(),
|
|
1803
|
-
});
|
|
1804
|
-
|
|
1805
|
-
/** @internal */
|
|
1806
|
-
export type UpdatePromptFunction$Outbound = {
|
|
1807
|
-
name: string;
|
|
1808
|
-
arguments: string;
|
|
1809
|
-
};
|
|
1810
|
-
|
|
1811
|
-
/** @internal */
|
|
1812
|
-
export const UpdatePromptFunction$outboundSchema: z.ZodType<
|
|
1813
|
-
UpdatePromptFunction$Outbound,
|
|
1814
|
-
z.ZodTypeDef,
|
|
1815
|
-
UpdatePromptFunction
|
|
1816
|
-
> = z.object({
|
|
1817
|
-
name: z.string(),
|
|
1818
|
-
arguments: z.string(),
|
|
1819
|
-
});
|
|
1820
|
-
|
|
1821
|
-
/**
|
|
1822
|
-
* @internal
|
|
1823
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1824
|
-
*/
|
|
1825
|
-
export namespace UpdatePromptFunction$ {
|
|
1826
|
-
/** @deprecated use `UpdatePromptFunction$inboundSchema` instead. */
|
|
1827
|
-
export const inboundSchema = UpdatePromptFunction$inboundSchema;
|
|
1828
|
-
/** @deprecated use `UpdatePromptFunction$outboundSchema` instead. */
|
|
1829
|
-
export const outboundSchema = UpdatePromptFunction$outboundSchema;
|
|
1830
|
-
/** @deprecated use `UpdatePromptFunction$Outbound` instead. */
|
|
1831
|
-
export type Outbound = UpdatePromptFunction$Outbound;
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
export function updatePromptFunctionToJSON(
|
|
1835
|
-
updatePromptFunction: UpdatePromptFunction,
|
|
1836
|
-
): string {
|
|
1837
|
-
return JSON.stringify(
|
|
1838
|
-
UpdatePromptFunction$outboundSchema.parse(updatePromptFunction),
|
|
1839
|
-
);
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
export function updatePromptFunctionFromJSON(
|
|
1843
|
-
jsonString: string,
|
|
1844
|
-
): SafeParseResult<UpdatePromptFunction, SDKValidationError> {
|
|
1845
|
-
return safeParse(
|
|
1846
|
-
jsonString,
|
|
1847
|
-
(x) => UpdatePromptFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1848
|
-
`Failed to parse 'UpdatePromptFunction' from JSON`,
|
|
1849
|
-
);
|
|
1850
|
-
}
|
|
1851
|
-
|
|
1852
|
-
/** @internal */
|
|
1853
|
-
export const UpdatePromptToolCalls$inboundSchema: z.ZodType<
|
|
1854
|
-
UpdatePromptToolCalls,
|
|
1855
|
-
z.ZodTypeDef,
|
|
1856
|
-
unknown
|
|
1857
|
-
> = z.object({
|
|
1858
|
-
id: z.string().optional(),
|
|
1859
|
-
index: z.number().optional(),
|
|
1860
|
-
type: UpdatePromptType$inboundSchema,
|
|
1861
|
-
function: z.lazy(() => UpdatePromptFunction$inboundSchema),
|
|
1862
|
-
});
|
|
1863
|
-
|
|
1864
|
-
/** @internal */
|
|
1865
|
-
export type UpdatePromptToolCalls$Outbound = {
|
|
1866
|
-
id?: string | undefined;
|
|
1867
|
-
index?: number | undefined;
|
|
1868
|
-
type: string;
|
|
1869
|
-
function: UpdatePromptFunction$Outbound;
|
|
1870
|
-
};
|
|
1871
|
-
|
|
1872
|
-
/** @internal */
|
|
1873
|
-
export const UpdatePromptToolCalls$outboundSchema: z.ZodType<
|
|
1874
|
-
UpdatePromptToolCalls$Outbound,
|
|
1875
|
-
z.ZodTypeDef,
|
|
1876
|
-
UpdatePromptToolCalls
|
|
1877
|
-
> = z.object({
|
|
1878
|
-
id: z.string().optional(),
|
|
1879
|
-
index: z.number().optional(),
|
|
1880
|
-
type: UpdatePromptType$outboundSchema,
|
|
1881
|
-
function: z.lazy(() => UpdatePromptFunction$outboundSchema),
|
|
1882
|
-
});
|
|
1883
|
-
|
|
1884
|
-
/**
|
|
1885
|
-
* @internal
|
|
1886
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1887
|
-
*/
|
|
1888
|
-
export namespace UpdatePromptToolCalls$ {
|
|
1889
|
-
/** @deprecated use `UpdatePromptToolCalls$inboundSchema` instead. */
|
|
1890
|
-
export const inboundSchema = UpdatePromptToolCalls$inboundSchema;
|
|
1891
|
-
/** @deprecated use `UpdatePromptToolCalls$outboundSchema` instead. */
|
|
1892
|
-
export const outboundSchema = UpdatePromptToolCalls$outboundSchema;
|
|
1893
|
-
/** @deprecated use `UpdatePromptToolCalls$Outbound` instead. */
|
|
1894
|
-
export type Outbound = UpdatePromptToolCalls$Outbound;
|
|
1895
|
-
}
|
|
1896
|
-
|
|
1897
|
-
export function updatePromptToolCallsToJSON(
|
|
1898
|
-
updatePromptToolCalls: UpdatePromptToolCalls,
|
|
1899
|
-
): string {
|
|
1900
|
-
return JSON.stringify(
|
|
1901
|
-
UpdatePromptToolCalls$outboundSchema.parse(updatePromptToolCalls),
|
|
1902
|
-
);
|
|
1903
|
-
}
|
|
1904
|
-
|
|
1905
|
-
export function updatePromptToolCallsFromJSON(
|
|
1906
|
-
jsonString: string,
|
|
1907
|
-
): SafeParseResult<UpdatePromptToolCalls, SDKValidationError> {
|
|
1908
|
-
return safeParse(
|
|
1909
|
-
jsonString,
|
|
1910
|
-
(x) => UpdatePromptToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
1911
|
-
`Failed to parse 'UpdatePromptToolCalls' from JSON`,
|
|
1912
|
-
);
|
|
1913
|
-
}
|
|
1914
|
-
|
|
1915
|
-
/** @internal */
|
|
1916
|
-
export const UpdatePromptMessages$inboundSchema: z.ZodType<
|
|
1917
|
-
UpdatePromptMessages,
|
|
1918
|
-
z.ZodTypeDef,
|
|
1919
|
-
unknown
|
|
1920
|
-
> = z.object({
|
|
1921
|
-
role: UpdatePromptRole$inboundSchema,
|
|
1922
|
-
content: z.union([
|
|
1923
|
-
z.string(),
|
|
1924
|
-
z.array(z.union([
|
|
1925
|
-
z.lazy(() => UpdatePrompt21$inboundSchema),
|
|
1926
|
-
z.lazy(() => UpdatePrompt22$inboundSchema),
|
|
1927
|
-
])),
|
|
1928
|
-
]),
|
|
1929
|
-
tool_calls: z.array(z.lazy(() => UpdatePromptToolCalls$inboundSchema))
|
|
1930
|
-
.optional(),
|
|
1931
|
-
}).transform((v) => {
|
|
1932
|
-
return remap$(v, {
|
|
1933
|
-
"tool_calls": "toolCalls",
|
|
1934
|
-
});
|
|
1935
|
-
});
|
|
1936
|
-
|
|
1937
|
-
/** @internal */
|
|
1938
|
-
export type UpdatePromptMessages$Outbound = {
|
|
1939
|
-
role: string;
|
|
1940
|
-
content: string | Array<UpdatePrompt21$Outbound | UpdatePrompt22$Outbound>;
|
|
1941
|
-
tool_calls?: Array<UpdatePromptToolCalls$Outbound> | undefined;
|
|
1942
|
-
};
|
|
1943
|
-
|
|
1944
|
-
/** @internal */
|
|
1945
|
-
export const UpdatePromptMessages$outboundSchema: z.ZodType<
|
|
1946
|
-
UpdatePromptMessages$Outbound,
|
|
1947
|
-
z.ZodTypeDef,
|
|
1948
|
-
UpdatePromptMessages
|
|
1949
|
-
> = z.object({
|
|
1950
|
-
role: UpdatePromptRole$outboundSchema,
|
|
1951
|
-
content: z.union([
|
|
1952
|
-
z.string(),
|
|
1953
|
-
z.array(z.union([
|
|
1954
|
-
z.lazy(() => UpdatePrompt21$outboundSchema),
|
|
1955
|
-
z.lazy(() => UpdatePrompt22$outboundSchema),
|
|
1956
|
-
])),
|
|
1957
|
-
]),
|
|
1958
|
-
toolCalls: z.array(z.lazy(() => UpdatePromptToolCalls$outboundSchema))
|
|
1959
|
-
.optional(),
|
|
1960
|
-
}).transform((v) => {
|
|
1961
|
-
return remap$(v, {
|
|
1962
|
-
toolCalls: "tool_calls",
|
|
1963
|
-
});
|
|
1964
|
-
});
|
|
1965
|
-
|
|
1966
|
-
/**
|
|
1967
|
-
* @internal
|
|
1968
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1969
|
-
*/
|
|
1970
|
-
export namespace UpdatePromptMessages$ {
|
|
1971
|
-
/** @deprecated use `UpdatePromptMessages$inboundSchema` instead. */
|
|
1972
|
-
export const inboundSchema = UpdatePromptMessages$inboundSchema;
|
|
1973
|
-
/** @deprecated use `UpdatePromptMessages$outboundSchema` instead. */
|
|
1974
|
-
export const outboundSchema = UpdatePromptMessages$outboundSchema;
|
|
1975
|
-
/** @deprecated use `UpdatePromptMessages$Outbound` instead. */
|
|
1976
|
-
export type Outbound = UpdatePromptMessages$Outbound;
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
|
-
export function updatePromptMessagesToJSON(
|
|
1980
|
-
updatePromptMessages: UpdatePromptMessages,
|
|
1981
|
-
): string {
|
|
1982
|
-
return JSON.stringify(
|
|
1983
|
-
UpdatePromptMessages$outboundSchema.parse(updatePromptMessages),
|
|
1984
|
-
);
|
|
1985
|
-
}
|
|
1986
|
-
|
|
1987
|
-
export function updatePromptMessagesFromJSON(
|
|
1988
|
-
jsonString: string,
|
|
1989
|
-
): SafeParseResult<UpdatePromptMessages, SDKValidationError> {
|
|
1990
|
-
return safeParse(
|
|
1991
|
-
jsonString,
|
|
1992
|
-
(x) => UpdatePromptMessages$inboundSchema.parse(JSON.parse(x)),
|
|
1993
|
-
`Failed to parse 'UpdatePromptMessages' from JSON`,
|
|
1994
|
-
);
|
|
1995
|
-
}
|
|
1996
|
-
|
|
1997
|
-
/** @internal */
|
|
1998
|
-
export const PromptConfig$inboundSchema: z.ZodType<
|
|
1999
|
-
PromptConfig,
|
|
2000
|
-
z.ZodTypeDef,
|
|
2001
|
-
unknown
|
|
2002
|
-
> = z.object({
|
|
2003
|
-
stream: z.boolean().optional(),
|
|
2004
|
-
model: z.string().optional(),
|
|
2005
|
-
model_type: ModelType$inboundSchema.optional(),
|
|
2006
|
-
model_parameters: z.lazy(() => ModelParameters$inboundSchema).optional(),
|
|
2007
|
-
provider: Provider$inboundSchema.optional(),
|
|
2008
|
-
version: z.string().optional(),
|
|
2009
|
-
messages: z.array(z.lazy(() => UpdatePromptMessages$inboundSchema)),
|
|
2010
|
-
}).transform((v) => {
|
|
2011
|
-
return remap$(v, {
|
|
2012
|
-
"model_type": "modelType",
|
|
2013
|
-
"model_parameters": "modelParameters",
|
|
2014
|
-
});
|
|
2015
|
-
});
|
|
2016
|
-
|
|
2017
|
-
/** @internal */
|
|
2018
|
-
export type PromptConfig$Outbound = {
|
|
2019
|
-
stream?: boolean | undefined;
|
|
2020
|
-
model?: string | undefined;
|
|
2021
|
-
model_type?: string | undefined;
|
|
2022
|
-
model_parameters?: ModelParameters$Outbound | undefined;
|
|
2023
|
-
provider?: string | undefined;
|
|
2024
|
-
version?: string | undefined;
|
|
2025
|
-
messages: Array<UpdatePromptMessages$Outbound>;
|
|
2026
|
-
};
|
|
2027
|
-
|
|
2028
|
-
/** @internal */
|
|
2029
|
-
export const PromptConfig$outboundSchema: z.ZodType<
|
|
2030
|
-
PromptConfig$Outbound,
|
|
2031
|
-
z.ZodTypeDef,
|
|
2032
|
-
PromptConfig
|
|
2033
|
-
> = z.object({
|
|
2034
|
-
stream: z.boolean().optional(),
|
|
2035
|
-
model: z.string().optional(),
|
|
2036
|
-
modelType: ModelType$outboundSchema.optional(),
|
|
2037
|
-
modelParameters: z.lazy(() => ModelParameters$outboundSchema).optional(),
|
|
2038
|
-
provider: Provider$outboundSchema.optional(),
|
|
2039
|
-
version: z.string().optional(),
|
|
2040
|
-
messages: z.array(z.lazy(() => UpdatePromptMessages$outboundSchema)),
|
|
2041
|
-
}).transform((v) => {
|
|
2042
|
-
return remap$(v, {
|
|
2043
|
-
modelType: "model_type",
|
|
2044
|
-
modelParameters: "model_parameters",
|
|
2045
|
-
});
|
|
2046
|
-
});
|
|
2047
|
-
|
|
2048
|
-
/**
|
|
2049
|
-
* @internal
|
|
2050
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2051
|
-
*/
|
|
2052
|
-
export namespace PromptConfig$ {
|
|
2053
|
-
/** @deprecated use `PromptConfig$inboundSchema` instead. */
|
|
2054
|
-
export const inboundSchema = PromptConfig$inboundSchema;
|
|
2055
|
-
/** @deprecated use `PromptConfig$outboundSchema` instead. */
|
|
2056
|
-
export const outboundSchema = PromptConfig$outboundSchema;
|
|
2057
|
-
/** @deprecated use `PromptConfig$Outbound` instead. */
|
|
2058
|
-
export type Outbound = PromptConfig$Outbound;
|
|
2059
|
-
}
|
|
2060
|
-
|
|
2061
|
-
export function promptConfigToJSON(promptConfig: PromptConfig): string {
|
|
2062
|
-
return JSON.stringify(PromptConfig$outboundSchema.parse(promptConfig));
|
|
2063
|
-
}
|
|
2064
|
-
|
|
2065
|
-
export function promptConfigFromJSON(
|
|
2066
|
-
jsonString: string,
|
|
2067
|
-
): SafeParseResult<PromptConfig, SDKValidationError> {
|
|
2068
|
-
return safeParse(
|
|
2069
|
-
jsonString,
|
|
2070
|
-
(x) => PromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
2071
|
-
`Failed to parse 'PromptConfig' from JSON`,
|
|
2072
|
-
);
|
|
2073
|
-
}
|
|
2074
|
-
|
|
2075
|
-
/** @internal */
|
|
2076
|
-
export const UseCases$inboundSchema: z.ZodNativeEnum<typeof UseCases> = z
|
|
2077
|
-
.nativeEnum(UseCases);
|
|
2078
|
-
|
|
2079
|
-
/** @internal */
|
|
2080
|
-
export const UseCases$outboundSchema: z.ZodNativeEnum<typeof UseCases> =
|
|
2081
|
-
UseCases$inboundSchema;
|
|
2082
|
-
|
|
2083
|
-
/**
|
|
2084
|
-
* @internal
|
|
2085
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2086
|
-
*/
|
|
2087
|
-
export namespace UseCases$ {
|
|
2088
|
-
/** @deprecated use `UseCases$inboundSchema` instead. */
|
|
2089
|
-
export const inboundSchema = UseCases$inboundSchema;
|
|
2090
|
-
/** @deprecated use `UseCases$outboundSchema` instead. */
|
|
2091
|
-
export const outboundSchema = UseCases$outboundSchema;
|
|
2092
|
-
}
|
|
2093
|
-
|
|
2094
|
-
/** @internal */
|
|
2095
|
-
export const Language$inboundSchema: z.ZodNativeEnum<typeof Language> = z
|
|
2096
|
-
.nativeEnum(Language);
|
|
2097
|
-
|
|
2098
|
-
/** @internal */
|
|
2099
|
-
export const Language$outboundSchema: z.ZodNativeEnum<typeof Language> =
|
|
2100
|
-
Language$inboundSchema;
|
|
2101
|
-
|
|
2102
|
-
/**
|
|
2103
|
-
* @internal
|
|
2104
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2105
|
-
*/
|
|
2106
|
-
export namespace Language$ {
|
|
2107
|
-
/** @deprecated use `Language$inboundSchema` instead. */
|
|
2108
|
-
export const inboundSchema = Language$inboundSchema;
|
|
2109
|
-
/** @deprecated use `Language$outboundSchema` instead. */
|
|
2110
|
-
export const outboundSchema = Language$outboundSchema;
|
|
2111
|
-
}
|
|
2112
|
-
|
|
2113
|
-
/** @internal */
|
|
2114
|
-
export const UpdatePromptMetadata$inboundSchema: z.ZodType<
|
|
2115
|
-
UpdatePromptMetadata,
|
|
2116
|
-
z.ZodTypeDef,
|
|
2117
|
-
unknown
|
|
2118
|
-
> = z.object({
|
|
2119
|
-
use_cases: z.array(UseCases$inboundSchema).optional(),
|
|
2120
|
-
language: Language$inboundSchema.optional(),
|
|
2121
|
-
}).transform((v) => {
|
|
2122
|
-
return remap$(v, {
|
|
2123
|
-
"use_cases": "useCases",
|
|
2124
|
-
});
|
|
2125
|
-
});
|
|
2126
|
-
|
|
2127
|
-
/** @internal */
|
|
2128
|
-
export type UpdatePromptMetadata$Outbound = {
|
|
2129
|
-
use_cases?: Array<string> | undefined;
|
|
2130
|
-
language?: string | undefined;
|
|
2131
|
-
};
|
|
2132
|
-
|
|
2133
|
-
/** @internal */
|
|
2134
|
-
export const UpdatePromptMetadata$outboundSchema: z.ZodType<
|
|
2135
|
-
UpdatePromptMetadata$Outbound,
|
|
2136
|
-
z.ZodTypeDef,
|
|
2137
|
-
UpdatePromptMetadata
|
|
2138
|
-
> = z.object({
|
|
2139
|
-
useCases: z.array(UseCases$outboundSchema).optional(),
|
|
2140
|
-
language: Language$outboundSchema.optional(),
|
|
2141
|
-
}).transform((v) => {
|
|
2142
|
-
return remap$(v, {
|
|
2143
|
-
useCases: "use_cases",
|
|
2144
|
-
});
|
|
2145
|
-
});
|
|
2146
|
-
|
|
2147
|
-
/**
|
|
2148
|
-
* @internal
|
|
2149
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2150
|
-
*/
|
|
2151
|
-
export namespace UpdatePromptMetadata$ {
|
|
2152
|
-
/** @deprecated use `UpdatePromptMetadata$inboundSchema` instead. */
|
|
2153
|
-
export const inboundSchema = UpdatePromptMetadata$inboundSchema;
|
|
2154
|
-
/** @deprecated use `UpdatePromptMetadata$outboundSchema` instead. */
|
|
2155
|
-
export const outboundSchema = UpdatePromptMetadata$outboundSchema;
|
|
2156
|
-
/** @deprecated use `UpdatePromptMetadata$Outbound` instead. */
|
|
2157
|
-
export type Outbound = UpdatePromptMetadata$Outbound;
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
export function updatePromptMetadataToJSON(
|
|
2161
|
-
updatePromptMetadata: UpdatePromptMetadata,
|
|
2162
|
-
): string {
|
|
2163
|
-
return JSON.stringify(
|
|
2164
|
-
UpdatePromptMetadata$outboundSchema.parse(updatePromptMetadata),
|
|
2165
|
-
);
|
|
2166
|
-
}
|
|
2167
|
-
|
|
2168
|
-
export function updatePromptMetadataFromJSON(
|
|
2169
|
-
jsonString: string,
|
|
2170
|
-
): SafeParseResult<UpdatePromptMetadata, SDKValidationError> {
|
|
2171
|
-
return safeParse(
|
|
2172
|
-
jsonString,
|
|
2173
|
-
(x) => UpdatePromptMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
2174
|
-
`Failed to parse 'UpdatePromptMetadata' from JSON`,
|
|
2175
|
-
);
|
|
2176
|
-
}
|
|
2177
|
-
|
|
2178
|
-
/** @internal */
|
|
2179
|
-
export const UpdatePromptRequestBody$inboundSchema: z.ZodType<
|
|
2180
|
-
UpdatePromptRequestBody,
|
|
2181
|
-
z.ZodTypeDef,
|
|
2182
|
-
unknown
|
|
2183
|
-
> = z.object({
|
|
2184
|
-
owner: z.string().optional(),
|
|
2185
|
-
domain_id: z.string().optional(),
|
|
2186
|
-
created: z.string().optional(),
|
|
2187
|
-
updated: z.string().optional(),
|
|
2188
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
2189
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
2190
|
-
display_name: z.string().optional(),
|
|
2191
|
-
description: z.nullable(z.string()).optional(),
|
|
2192
|
-
prompt_config: z.lazy(() => PromptConfig$inboundSchema).optional(),
|
|
2193
|
-
metadata: z.lazy(() => UpdatePromptMetadata$inboundSchema).optional(),
|
|
2194
|
-
}).transform((v) => {
|
|
2195
|
-
return remap$(v, {
|
|
2196
|
-
"domain_id": "domainId",
|
|
2197
|
-
"created_by_id": "createdById",
|
|
2198
|
-
"updated_by_id": "updatedById",
|
|
2199
|
-
"display_name": "displayName",
|
|
2200
|
-
"prompt_config": "promptConfig",
|
|
2201
|
-
});
|
|
2202
|
-
});
|
|
2203
|
-
|
|
2204
|
-
/** @internal */
|
|
2205
|
-
export type UpdatePromptRequestBody$Outbound = {
|
|
2206
|
-
owner?: string | undefined;
|
|
2207
|
-
domain_id?: string | undefined;
|
|
2208
|
-
created?: string | undefined;
|
|
2209
|
-
updated?: string | undefined;
|
|
2210
|
-
created_by_id?: string | null | undefined;
|
|
2211
|
-
updated_by_id?: string | null | undefined;
|
|
2212
|
-
display_name?: string | undefined;
|
|
2213
|
-
description?: string | null | undefined;
|
|
2214
|
-
prompt_config?: PromptConfig$Outbound | undefined;
|
|
2215
|
-
metadata?: UpdatePromptMetadata$Outbound | undefined;
|
|
2216
|
-
};
|
|
2217
|
-
|
|
2218
|
-
/** @internal */
|
|
2219
|
-
export const UpdatePromptRequestBody$outboundSchema: z.ZodType<
|
|
2220
|
-
UpdatePromptRequestBody$Outbound,
|
|
2221
|
-
z.ZodTypeDef,
|
|
2222
|
-
UpdatePromptRequestBody
|
|
2223
|
-
> = z.object({
|
|
2224
|
-
owner: z.string().optional(),
|
|
2225
|
-
domainId: z.string().optional(),
|
|
2226
|
-
created: z.string().optional(),
|
|
2227
|
-
updated: z.string().optional(),
|
|
2228
|
-
createdById: z.nullable(z.string()).optional(),
|
|
2229
|
-
updatedById: z.nullable(z.string()).optional(),
|
|
2230
|
-
displayName: z.string().optional(),
|
|
2231
|
-
description: z.nullable(z.string()).optional(),
|
|
2232
|
-
promptConfig: z.lazy(() => PromptConfig$outboundSchema).optional(),
|
|
2233
|
-
metadata: z.lazy(() => UpdatePromptMetadata$outboundSchema).optional(),
|
|
2234
|
-
}).transform((v) => {
|
|
2235
|
-
return remap$(v, {
|
|
2236
|
-
domainId: "domain_id",
|
|
2237
|
-
createdById: "created_by_id",
|
|
2238
|
-
updatedById: "updated_by_id",
|
|
2239
|
-
displayName: "display_name",
|
|
2240
|
-
promptConfig: "prompt_config",
|
|
2241
|
-
});
|
|
2242
|
-
});
|
|
2243
|
-
|
|
2244
|
-
/**
|
|
2245
|
-
* @internal
|
|
2246
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2247
|
-
*/
|
|
2248
|
-
export namespace UpdatePromptRequestBody$ {
|
|
2249
|
-
/** @deprecated use `UpdatePromptRequestBody$inboundSchema` instead. */
|
|
2250
|
-
export const inboundSchema = UpdatePromptRequestBody$inboundSchema;
|
|
2251
|
-
/** @deprecated use `UpdatePromptRequestBody$outboundSchema` instead. */
|
|
2252
|
-
export const outboundSchema = UpdatePromptRequestBody$outboundSchema;
|
|
2253
|
-
/** @deprecated use `UpdatePromptRequestBody$Outbound` instead. */
|
|
2254
|
-
export type Outbound = UpdatePromptRequestBody$Outbound;
|
|
2255
|
-
}
|
|
2256
|
-
|
|
2257
|
-
export function updatePromptRequestBodyToJSON(
|
|
2258
|
-
updatePromptRequestBody: UpdatePromptRequestBody,
|
|
2259
|
-
): string {
|
|
2260
|
-
return JSON.stringify(
|
|
2261
|
-
UpdatePromptRequestBody$outboundSchema.parse(updatePromptRequestBody),
|
|
2262
|
-
);
|
|
2263
|
-
}
|
|
2264
|
-
|
|
2265
|
-
export function updatePromptRequestBodyFromJSON(
|
|
2266
|
-
jsonString: string,
|
|
2267
|
-
): SafeParseResult<UpdatePromptRequestBody, SDKValidationError> {
|
|
2268
|
-
return safeParse(
|
|
2269
|
-
jsonString,
|
|
2270
|
-
(x) => UpdatePromptRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
2271
|
-
`Failed to parse 'UpdatePromptRequestBody' from JSON`,
|
|
2272
|
-
);
|
|
2273
|
-
}
|
|
2274
|
-
|
|
2275
|
-
/** @internal */
|
|
2276
|
-
export const UpdatePromptRequest$inboundSchema: z.ZodType<
|
|
2277
|
-
UpdatePromptRequest,
|
|
2278
|
-
z.ZodTypeDef,
|
|
2279
|
-
unknown
|
|
2280
|
-
> = z.object({
|
|
2281
|
-
id: z.string(),
|
|
2282
|
-
RequestBody: z.lazy(() => UpdatePromptRequestBody$inboundSchema).optional(),
|
|
2283
|
-
}).transform((v) => {
|
|
2284
|
-
return remap$(v, {
|
|
2285
|
-
"RequestBody": "requestBody",
|
|
2286
|
-
});
|
|
2287
|
-
});
|
|
2288
|
-
|
|
2289
|
-
/** @internal */
|
|
2290
|
-
export type UpdatePromptRequest$Outbound = {
|
|
2291
|
-
id: string;
|
|
2292
|
-
RequestBody?: UpdatePromptRequestBody$Outbound | undefined;
|
|
2293
|
-
};
|
|
2294
|
-
|
|
2295
|
-
/** @internal */
|
|
2296
|
-
export const UpdatePromptRequest$outboundSchema: z.ZodType<
|
|
2297
|
-
UpdatePromptRequest$Outbound,
|
|
2298
|
-
z.ZodTypeDef,
|
|
2299
|
-
UpdatePromptRequest
|
|
2300
|
-
> = z.object({
|
|
2301
|
-
id: z.string(),
|
|
2302
|
-
requestBody: z.lazy(() => UpdatePromptRequestBody$outboundSchema).optional(),
|
|
2303
|
-
}).transform((v) => {
|
|
2304
|
-
return remap$(v, {
|
|
2305
|
-
requestBody: "RequestBody",
|
|
2306
|
-
});
|
|
2307
|
-
});
|
|
2308
|
-
|
|
2309
|
-
/**
|
|
2310
|
-
* @internal
|
|
2311
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2312
|
-
*/
|
|
2313
|
-
export namespace UpdatePromptRequest$ {
|
|
2314
|
-
/** @deprecated use `UpdatePromptRequest$inboundSchema` instead. */
|
|
2315
|
-
export const inboundSchema = UpdatePromptRequest$inboundSchema;
|
|
2316
|
-
/** @deprecated use `UpdatePromptRequest$outboundSchema` instead. */
|
|
2317
|
-
export const outboundSchema = UpdatePromptRequest$outboundSchema;
|
|
2318
|
-
/** @deprecated use `UpdatePromptRequest$Outbound` instead. */
|
|
2319
|
-
export type Outbound = UpdatePromptRequest$Outbound;
|
|
2320
|
-
}
|
|
2321
|
-
|
|
2322
|
-
export function updatePromptRequestToJSON(
|
|
2323
|
-
updatePromptRequest: UpdatePromptRequest,
|
|
2324
|
-
): string {
|
|
2325
|
-
return JSON.stringify(
|
|
2326
|
-
UpdatePromptRequest$outboundSchema.parse(updatePromptRequest),
|
|
2327
|
-
);
|
|
2328
|
-
}
|
|
2329
|
-
|
|
2330
|
-
export function updatePromptRequestFromJSON(
|
|
2331
|
-
jsonString: string,
|
|
2332
|
-
): SafeParseResult<UpdatePromptRequest, SDKValidationError> {
|
|
2333
|
-
return safeParse(
|
|
2334
|
-
jsonString,
|
|
2335
|
-
(x) => UpdatePromptRequest$inboundSchema.parse(JSON.parse(x)),
|
|
2336
|
-
`Failed to parse 'UpdatePromptRequest' from JSON`,
|
|
2337
|
-
);
|
|
2338
|
-
}
|
|
2339
|
-
|
|
2340
|
-
/** @internal */
|
|
2341
|
-
export const UpdatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
2342
|
-
typeof UpdatePromptPromptsType
|
|
2343
|
-
> = z.nativeEnum(UpdatePromptPromptsType);
|
|
2344
|
-
|
|
2345
|
-
/** @internal */
|
|
2346
|
-
export const UpdatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
2347
|
-
typeof UpdatePromptPromptsType
|
|
2348
|
-
> = UpdatePromptPromptsType$inboundSchema;
|
|
2349
|
-
|
|
2350
|
-
/**
|
|
2351
|
-
* @internal
|
|
2352
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2353
|
-
*/
|
|
2354
|
-
export namespace UpdatePromptPromptsType$ {
|
|
2355
|
-
/** @deprecated use `UpdatePromptPromptsType$inboundSchema` instead. */
|
|
2356
|
-
export const inboundSchema = UpdatePromptPromptsType$inboundSchema;
|
|
2357
|
-
/** @deprecated use `UpdatePromptPromptsType$outboundSchema` instead. */
|
|
2358
|
-
export const outboundSchema = UpdatePromptPromptsType$outboundSchema;
|
|
2359
|
-
}
|
|
2360
|
-
|
|
2361
|
-
/** @internal */
|
|
2362
|
-
export const UpdatePromptModelType$inboundSchema: z.ZodNativeEnum<
|
|
2363
|
-
typeof UpdatePromptModelType
|
|
2364
|
-
> = z.nativeEnum(UpdatePromptModelType);
|
|
2365
|
-
|
|
2366
|
-
/** @internal */
|
|
2367
|
-
export const UpdatePromptModelType$outboundSchema: z.ZodNativeEnum<
|
|
2368
|
-
typeof UpdatePromptModelType
|
|
2369
|
-
> = UpdatePromptModelType$inboundSchema;
|
|
2370
|
-
|
|
2371
|
-
/**
|
|
2372
|
-
* @internal
|
|
2373
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2374
|
-
*/
|
|
2375
|
-
export namespace UpdatePromptModelType$ {
|
|
2376
|
-
/** @deprecated use `UpdatePromptModelType$inboundSchema` instead. */
|
|
2377
|
-
export const inboundSchema = UpdatePromptModelType$inboundSchema;
|
|
2378
|
-
/** @deprecated use `UpdatePromptModelType$outboundSchema` instead. */
|
|
2379
|
-
export const outboundSchema = UpdatePromptModelType$outboundSchema;
|
|
2380
|
-
}
|
|
2381
|
-
|
|
2382
|
-
/** @internal */
|
|
2383
|
-
export const UpdatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<
|
|
2384
|
-
typeof UpdatePromptPromptsFormat
|
|
2385
|
-
> = z.nativeEnum(UpdatePromptPromptsFormat);
|
|
2386
|
-
|
|
2387
|
-
/** @internal */
|
|
2388
|
-
export const UpdatePromptPromptsFormat$outboundSchema: z.ZodNativeEnum<
|
|
2389
|
-
typeof UpdatePromptPromptsFormat
|
|
2390
|
-
> = UpdatePromptPromptsFormat$inboundSchema;
|
|
2391
|
-
|
|
2392
|
-
/**
|
|
2393
|
-
* @internal
|
|
2394
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2395
|
-
*/
|
|
2396
|
-
export namespace UpdatePromptPromptsFormat$ {
|
|
2397
|
-
/** @deprecated use `UpdatePromptPromptsFormat$inboundSchema` instead. */
|
|
2398
|
-
export const inboundSchema = UpdatePromptPromptsFormat$inboundSchema;
|
|
2399
|
-
/** @deprecated use `UpdatePromptPromptsFormat$outboundSchema` instead. */
|
|
2400
|
-
export const outboundSchema = UpdatePromptPromptsFormat$outboundSchema;
|
|
2401
|
-
}
|
|
2402
|
-
|
|
2403
|
-
/** @internal */
|
|
2404
|
-
export const UpdatePromptQuality$inboundSchema: z.ZodNativeEnum<
|
|
2405
|
-
typeof UpdatePromptQuality
|
|
2406
|
-
> = z.nativeEnum(UpdatePromptQuality);
|
|
2407
|
-
|
|
2408
|
-
/** @internal */
|
|
2409
|
-
export const UpdatePromptQuality$outboundSchema: z.ZodNativeEnum<
|
|
2410
|
-
typeof UpdatePromptQuality
|
|
2411
|
-
> = UpdatePromptQuality$inboundSchema;
|
|
2412
|
-
|
|
2413
|
-
/**
|
|
2414
|
-
* @internal
|
|
2415
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2416
|
-
*/
|
|
2417
|
-
export namespace UpdatePromptQuality$ {
|
|
2418
|
-
/** @deprecated use `UpdatePromptQuality$inboundSchema` instead. */
|
|
2419
|
-
export const inboundSchema = UpdatePromptQuality$inboundSchema;
|
|
2420
|
-
/** @deprecated use `UpdatePromptQuality$outboundSchema` instead. */
|
|
2421
|
-
export const outboundSchema = UpdatePromptQuality$outboundSchema;
|
|
2422
|
-
}
|
|
2423
|
-
|
|
2424
|
-
/** @internal */
|
|
2425
|
-
export const UpdatePromptResponseFormatPromptsResponseType$inboundSchema:
|
|
2426
|
-
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> = z
|
|
2427
|
-
.nativeEnum(UpdatePromptResponseFormatPromptsResponseType);
|
|
2428
|
-
|
|
2429
|
-
/** @internal */
|
|
2430
|
-
export const UpdatePromptResponseFormatPromptsResponseType$outboundSchema:
|
|
2431
|
-
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> =
|
|
2432
|
-
UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
2433
|
-
|
|
2434
|
-
/**
|
|
2435
|
-
* @internal
|
|
2436
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2437
|
-
*/
|
|
2438
|
-
export namespace UpdatePromptResponseFormatPromptsResponseType$ {
|
|
2439
|
-
/** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
2440
|
-
export const inboundSchema =
|
|
2441
|
-
UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
2442
|
-
/** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
2443
|
-
export const outboundSchema =
|
|
2444
|
-
UpdatePromptResponseFormatPromptsResponseType$outboundSchema;
|
|
2445
|
-
}
|
|
2446
|
-
|
|
2447
|
-
/** @internal */
|
|
2448
|
-
export const UpdatePromptResponseFormat2$inboundSchema: z.ZodType<
|
|
2449
|
-
UpdatePromptResponseFormat2,
|
|
2450
|
-
z.ZodTypeDef,
|
|
2451
|
-
unknown
|
|
2452
|
-
> = z.object({
|
|
2453
|
-
type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
|
|
2454
|
-
});
|
|
2455
|
-
|
|
2456
|
-
/** @internal */
|
|
2457
|
-
export type UpdatePromptResponseFormat2$Outbound = {
|
|
2458
|
-
type: string;
|
|
2459
|
-
};
|
|
2460
|
-
|
|
2461
|
-
/** @internal */
|
|
2462
|
-
export const UpdatePromptResponseFormat2$outboundSchema: z.ZodType<
|
|
2463
|
-
UpdatePromptResponseFormat2$Outbound,
|
|
2464
|
-
z.ZodTypeDef,
|
|
2465
|
-
UpdatePromptResponseFormat2
|
|
2466
|
-
> = z.object({
|
|
2467
|
-
type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
|
|
2468
|
-
});
|
|
2469
|
-
|
|
2470
|
-
/**
|
|
2471
|
-
* @internal
|
|
2472
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2473
|
-
*/
|
|
2474
|
-
export namespace UpdatePromptResponseFormat2$ {
|
|
2475
|
-
/** @deprecated use `UpdatePromptResponseFormat2$inboundSchema` instead. */
|
|
2476
|
-
export const inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
|
|
2477
|
-
/** @deprecated use `UpdatePromptResponseFormat2$outboundSchema` instead. */
|
|
2478
|
-
export const outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
|
|
2479
|
-
/** @deprecated use `UpdatePromptResponseFormat2$Outbound` instead. */
|
|
2480
|
-
export type Outbound = UpdatePromptResponseFormat2$Outbound;
|
|
2481
|
-
}
|
|
2482
|
-
|
|
2483
|
-
export function updatePromptResponseFormat2ToJSON(
|
|
2484
|
-
updatePromptResponseFormat2: UpdatePromptResponseFormat2,
|
|
2485
|
-
): string {
|
|
2486
|
-
return JSON.stringify(
|
|
2487
|
-
UpdatePromptResponseFormat2$outboundSchema.parse(
|
|
2488
|
-
updatePromptResponseFormat2,
|
|
2489
|
-
),
|
|
2490
|
-
);
|
|
2491
|
-
}
|
|
2492
|
-
|
|
2493
|
-
export function updatePromptResponseFormat2FromJSON(
|
|
2494
|
-
jsonString: string,
|
|
2495
|
-
): SafeParseResult<UpdatePromptResponseFormat2, SDKValidationError> {
|
|
2496
|
-
return safeParse(
|
|
2497
|
-
jsonString,
|
|
2498
|
-
(x) => UpdatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
2499
|
-
`Failed to parse 'UpdatePromptResponseFormat2' from JSON`,
|
|
2500
|
-
);
|
|
2501
|
-
}
|
|
2502
|
-
|
|
2503
|
-
/** @internal */
|
|
2504
|
-
export const UpdatePromptResponseFormatPromptsType$inboundSchema:
|
|
2505
|
-
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> = z.nativeEnum(
|
|
2506
|
-
UpdatePromptResponseFormatPromptsType,
|
|
2507
|
-
);
|
|
2508
|
-
|
|
2509
|
-
/** @internal */
|
|
2510
|
-
export const UpdatePromptResponseFormatPromptsType$outboundSchema:
|
|
2511
|
-
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> =
|
|
2512
|
-
UpdatePromptResponseFormatPromptsType$inboundSchema;
|
|
2513
|
-
|
|
2514
|
-
/**
|
|
2515
|
-
* @internal
|
|
2516
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2517
|
-
*/
|
|
2518
|
-
export namespace UpdatePromptResponseFormatPromptsType$ {
|
|
2519
|
-
/** @deprecated use `UpdatePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
2520
|
-
export const inboundSchema =
|
|
2521
|
-
UpdatePromptResponseFormatPromptsType$inboundSchema;
|
|
2522
|
-
/** @deprecated use `UpdatePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
2523
|
-
export const outboundSchema =
|
|
2524
|
-
UpdatePromptResponseFormatPromptsType$outboundSchema;
|
|
2525
|
-
}
|
|
2526
|
-
|
|
2527
|
-
/** @internal */
|
|
2528
|
-
export const UpdatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
2529
|
-
UpdatePromptResponseFormatJsonSchema,
|
|
2530
|
-
z.ZodTypeDef,
|
|
2531
|
-
unknown
|
|
2532
|
-
> = z.object({
|
|
2533
|
-
name: z.string(),
|
|
2534
|
-
strict: z.boolean(),
|
|
2535
|
-
schema: z.record(z.any()),
|
|
2536
|
-
});
|
|
2537
|
-
|
|
2538
|
-
/** @internal */
|
|
2539
|
-
export type UpdatePromptResponseFormatJsonSchema$Outbound = {
|
|
2540
|
-
name: string;
|
|
2541
|
-
strict: boolean;
|
|
2542
|
-
schema: { [k: string]: any };
|
|
2543
|
-
};
|
|
2544
|
-
|
|
2545
|
-
/** @internal */
|
|
2546
|
-
export const UpdatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
2547
|
-
UpdatePromptResponseFormatJsonSchema$Outbound,
|
|
2548
|
-
z.ZodTypeDef,
|
|
2549
|
-
UpdatePromptResponseFormatJsonSchema
|
|
2550
|
-
> = z.object({
|
|
2551
|
-
name: z.string(),
|
|
2552
|
-
strict: z.boolean(),
|
|
2553
|
-
schema: z.record(z.any()),
|
|
2554
|
-
});
|
|
2555
|
-
|
|
2556
|
-
/**
|
|
2557
|
-
* @internal
|
|
2558
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2559
|
-
*/
|
|
2560
|
-
export namespace UpdatePromptResponseFormatJsonSchema$ {
|
|
2561
|
-
/** @deprecated use `UpdatePromptResponseFormatJsonSchema$inboundSchema` instead. */
|
|
2562
|
-
export const inboundSchema =
|
|
2563
|
-
UpdatePromptResponseFormatJsonSchema$inboundSchema;
|
|
2564
|
-
/** @deprecated use `UpdatePromptResponseFormatJsonSchema$outboundSchema` instead. */
|
|
2565
|
-
export const outboundSchema =
|
|
2566
|
-
UpdatePromptResponseFormatJsonSchema$outboundSchema;
|
|
2567
|
-
/** @deprecated use `UpdatePromptResponseFormatJsonSchema$Outbound` instead. */
|
|
2568
|
-
export type Outbound = UpdatePromptResponseFormatJsonSchema$Outbound;
|
|
2569
|
-
}
|
|
2570
|
-
|
|
2571
|
-
export function updatePromptResponseFormatJsonSchemaToJSON(
|
|
2572
|
-
updatePromptResponseFormatJsonSchema: UpdatePromptResponseFormatJsonSchema,
|
|
2573
|
-
): string {
|
|
2574
|
-
return JSON.stringify(
|
|
2575
|
-
UpdatePromptResponseFormatJsonSchema$outboundSchema.parse(
|
|
2576
|
-
updatePromptResponseFormatJsonSchema,
|
|
2577
|
-
),
|
|
2578
|
-
);
|
|
2579
|
-
}
|
|
2580
|
-
|
|
2581
|
-
export function updatePromptResponseFormatJsonSchemaFromJSON(
|
|
2582
|
-
jsonString: string,
|
|
2583
|
-
): SafeParseResult<UpdatePromptResponseFormatJsonSchema, SDKValidationError> {
|
|
2584
|
-
return safeParse(
|
|
2585
|
-
jsonString,
|
|
2586
|
-
(x) =>
|
|
2587
|
-
UpdatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
2588
|
-
`Failed to parse 'UpdatePromptResponseFormatJsonSchema' from JSON`,
|
|
2589
|
-
);
|
|
2590
|
-
}
|
|
2591
|
-
|
|
2592
|
-
/** @internal */
|
|
2593
|
-
export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
2594
|
-
UpdatePromptResponseFormat1,
|
|
2595
|
-
z.ZodTypeDef,
|
|
2596
|
-
unknown
|
|
2597
|
-
> = z.object({
|
|
2598
|
-
type: UpdatePromptResponseFormatPromptsType$inboundSchema,
|
|
2599
|
-
json_schema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$inboundSchema),
|
|
2600
|
-
}).transform((v) => {
|
|
2601
|
-
return remap$(v, {
|
|
2602
|
-
"json_schema": "jsonSchema",
|
|
2603
|
-
});
|
|
2604
|
-
});
|
|
2605
|
-
|
|
2606
|
-
/** @internal */
|
|
2607
|
-
export type UpdatePromptResponseFormat1$Outbound = {
|
|
2608
|
-
type: string;
|
|
2609
|
-
json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
|
|
2610
|
-
};
|
|
2611
|
-
|
|
2612
|
-
/** @internal */
|
|
2613
|
-
export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
2614
|
-
UpdatePromptResponseFormat1$Outbound,
|
|
2615
|
-
z.ZodTypeDef,
|
|
2616
|
-
UpdatePromptResponseFormat1
|
|
2617
|
-
> = z.object({
|
|
2618
|
-
type: UpdatePromptResponseFormatPromptsType$outboundSchema,
|
|
2619
|
-
jsonSchema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$outboundSchema),
|
|
2620
|
-
}).transform((v) => {
|
|
2621
|
-
return remap$(v, {
|
|
2622
|
-
jsonSchema: "json_schema",
|
|
2623
|
-
});
|
|
2624
|
-
});
|
|
2625
|
-
|
|
2626
|
-
/**
|
|
2627
|
-
* @internal
|
|
2628
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2629
|
-
*/
|
|
2630
|
-
export namespace UpdatePromptResponseFormat1$ {
|
|
2631
|
-
/** @deprecated use `UpdatePromptResponseFormat1$inboundSchema` instead. */
|
|
2632
|
-
export const inboundSchema = UpdatePromptResponseFormat1$inboundSchema;
|
|
2633
|
-
/** @deprecated use `UpdatePromptResponseFormat1$outboundSchema` instead. */
|
|
2634
|
-
export const outboundSchema = UpdatePromptResponseFormat1$outboundSchema;
|
|
2635
|
-
/** @deprecated use `UpdatePromptResponseFormat1$Outbound` instead. */
|
|
2636
|
-
export type Outbound = UpdatePromptResponseFormat1$Outbound;
|
|
2637
|
-
}
|
|
2638
|
-
|
|
2639
|
-
export function updatePromptResponseFormat1ToJSON(
|
|
2640
|
-
updatePromptResponseFormat1: UpdatePromptResponseFormat1,
|
|
2641
|
-
): string {
|
|
2642
|
-
return JSON.stringify(
|
|
2643
|
-
UpdatePromptResponseFormat1$outboundSchema.parse(
|
|
2644
|
-
updatePromptResponseFormat1,
|
|
2645
|
-
),
|
|
2646
|
-
);
|
|
2647
|
-
}
|
|
2648
|
-
|
|
2649
|
-
export function updatePromptResponseFormat1FromJSON(
|
|
2650
|
-
jsonString: string,
|
|
2651
|
-
): SafeParseResult<UpdatePromptResponseFormat1, SDKValidationError> {
|
|
2652
|
-
return safeParse(
|
|
2653
|
-
jsonString,
|
|
2654
|
-
(x) => UpdatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
2655
|
-
`Failed to parse 'UpdatePromptResponseFormat1' from JSON`,
|
|
2656
|
-
);
|
|
2657
|
-
}
|
|
2658
|
-
|
|
2659
|
-
/** @internal */
|
|
2660
|
-
export const UpdatePromptResponseFormat$inboundSchema: z.ZodType<
|
|
2661
|
-
UpdatePromptResponseFormat,
|
|
2662
|
-
z.ZodTypeDef,
|
|
2663
|
-
unknown
|
|
2664
|
-
> = z.union([
|
|
2665
|
-
z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
|
|
2666
|
-
z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
|
|
2667
|
-
]);
|
|
2668
|
-
|
|
2669
|
-
/** @internal */
|
|
2670
|
-
export type UpdatePromptResponseFormat$Outbound =
|
|
2671
|
-
| UpdatePromptResponseFormat2$Outbound
|
|
2672
|
-
| UpdatePromptResponseFormat1$Outbound;
|
|
2673
|
-
|
|
2674
|
-
/** @internal */
|
|
2675
|
-
export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
2676
|
-
UpdatePromptResponseFormat$Outbound,
|
|
2677
|
-
z.ZodTypeDef,
|
|
2678
|
-
UpdatePromptResponseFormat
|
|
2679
|
-
> = z.union([
|
|
2680
|
-
z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
|
|
2681
|
-
z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
|
|
2682
|
-
]);
|
|
2683
|
-
|
|
2684
|
-
/**
|
|
2685
|
-
* @internal
|
|
2686
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2687
|
-
*/
|
|
2688
|
-
export namespace UpdatePromptResponseFormat$ {
|
|
2689
|
-
/** @deprecated use `UpdatePromptResponseFormat$inboundSchema` instead. */
|
|
2690
|
-
export const inboundSchema = UpdatePromptResponseFormat$inboundSchema;
|
|
2691
|
-
/** @deprecated use `UpdatePromptResponseFormat$outboundSchema` instead. */
|
|
2692
|
-
export const outboundSchema = UpdatePromptResponseFormat$outboundSchema;
|
|
2693
|
-
/** @deprecated use `UpdatePromptResponseFormat$Outbound` instead. */
|
|
2694
|
-
export type Outbound = UpdatePromptResponseFormat$Outbound;
|
|
2695
|
-
}
|
|
2696
|
-
|
|
2697
|
-
export function updatePromptResponseFormatToJSON(
|
|
2698
|
-
updatePromptResponseFormat: UpdatePromptResponseFormat,
|
|
2699
|
-
): string {
|
|
2700
|
-
return JSON.stringify(
|
|
2701
|
-
UpdatePromptResponseFormat$outboundSchema.parse(updatePromptResponseFormat),
|
|
2702
|
-
);
|
|
2703
|
-
}
|
|
2704
|
-
|
|
2705
|
-
export function updatePromptResponseFormatFromJSON(
|
|
2706
|
-
jsonString: string,
|
|
2707
|
-
): SafeParseResult<UpdatePromptResponseFormat, SDKValidationError> {
|
|
2708
|
-
return safeParse(
|
|
2709
|
-
jsonString,
|
|
2710
|
-
(x) => UpdatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
2711
|
-
`Failed to parse 'UpdatePromptResponseFormat' from JSON`,
|
|
2712
|
-
);
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
|
-
/** @internal */
|
|
2716
|
-
export const UpdatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
2717
|
-
typeof UpdatePromptPhotoRealVersion
|
|
2718
|
-
> = z.nativeEnum(UpdatePromptPhotoRealVersion);
|
|
2719
|
-
|
|
2720
|
-
/** @internal */
|
|
2721
|
-
export const UpdatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
|
|
2722
|
-
typeof UpdatePromptPhotoRealVersion
|
|
2723
|
-
> = UpdatePromptPhotoRealVersion$inboundSchema;
|
|
2724
|
-
|
|
2725
|
-
/**
|
|
2726
|
-
* @internal
|
|
2727
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2728
|
-
*/
|
|
2729
|
-
export namespace UpdatePromptPhotoRealVersion$ {
|
|
2730
|
-
/** @deprecated use `UpdatePromptPhotoRealVersion$inboundSchema` instead. */
|
|
2731
|
-
export const inboundSchema = UpdatePromptPhotoRealVersion$inboundSchema;
|
|
2732
|
-
/** @deprecated use `UpdatePromptPhotoRealVersion$outboundSchema` instead. */
|
|
2733
|
-
export const outboundSchema = UpdatePromptPhotoRealVersion$outboundSchema;
|
|
2734
|
-
}
|
|
2735
|
-
|
|
2736
|
-
/** @internal */
|
|
2737
|
-
export const UpdatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
2738
|
-
typeof UpdatePromptEncodingFormat
|
|
2739
|
-
> = z.nativeEnum(UpdatePromptEncodingFormat);
|
|
2740
|
-
|
|
2741
|
-
/** @internal */
|
|
2742
|
-
export const UpdatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
2743
|
-
typeof UpdatePromptEncodingFormat
|
|
2744
|
-
> = UpdatePromptEncodingFormat$inboundSchema;
|
|
2745
|
-
|
|
2746
|
-
/**
|
|
2747
|
-
* @internal
|
|
2748
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2749
|
-
*/
|
|
2750
|
-
export namespace UpdatePromptEncodingFormat$ {
|
|
2751
|
-
/** @deprecated use `UpdatePromptEncodingFormat$inboundSchema` instead. */
|
|
2752
|
-
export const inboundSchema = UpdatePromptEncodingFormat$inboundSchema;
|
|
2753
|
-
/** @deprecated use `UpdatePromptEncodingFormat$outboundSchema` instead. */
|
|
2754
|
-
export const outboundSchema = UpdatePromptEncodingFormat$outboundSchema;
|
|
2755
|
-
}
|
|
2756
|
-
|
|
2757
|
-
/** @internal */
|
|
2758
|
-
export const UpdatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
2759
|
-
typeof UpdatePromptReasoningEffort
|
|
2760
|
-
> = z.nativeEnum(UpdatePromptReasoningEffort);
|
|
2761
|
-
|
|
2762
|
-
/** @internal */
|
|
2763
|
-
export const UpdatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
2764
|
-
typeof UpdatePromptReasoningEffort
|
|
2765
|
-
> = UpdatePromptReasoningEffort$inboundSchema;
|
|
2766
|
-
|
|
2767
|
-
/**
|
|
2768
|
-
* @internal
|
|
2769
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2770
|
-
*/
|
|
2771
|
-
export namespace UpdatePromptReasoningEffort$ {
|
|
2772
|
-
/** @deprecated use `UpdatePromptReasoningEffort$inboundSchema` instead. */
|
|
2773
|
-
export const inboundSchema = UpdatePromptReasoningEffort$inboundSchema;
|
|
2774
|
-
/** @deprecated use `UpdatePromptReasoningEffort$outboundSchema` instead. */
|
|
2775
|
-
export const outboundSchema = UpdatePromptReasoningEffort$outboundSchema;
|
|
2776
|
-
}
|
|
2777
|
-
|
|
2778
|
-
/** @internal */
|
|
2779
|
-
export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
|
|
2780
|
-
UpdatePromptModelParameters,
|
|
2781
|
-
z.ZodTypeDef,
|
|
2782
|
-
unknown
|
|
2783
|
-
> = z.object({
|
|
2784
|
-
temperature: z.number().optional(),
|
|
2785
|
-
maxTokens: z.number().optional(),
|
|
2786
|
-
topK: z.number().optional(),
|
|
2787
|
-
topP: z.number().optional(),
|
|
2788
|
-
frequencyPenalty: z.number().optional(),
|
|
2789
|
-
presencePenalty: z.number().optional(),
|
|
2790
|
-
numImages: z.number().optional(),
|
|
2791
|
-
seed: z.number().optional(),
|
|
2792
|
-
format: UpdatePromptPromptsFormat$inboundSchema.optional(),
|
|
2793
|
-
dimensions: z.string().optional(),
|
|
2794
|
-
quality: UpdatePromptQuality$inboundSchema.optional(),
|
|
2795
|
-
style: z.string().optional(),
|
|
2796
|
-
responseFormat: z.nullable(
|
|
2797
|
-
z.union([
|
|
2798
|
-
z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
|
|
2799
|
-
z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
|
|
2800
|
-
]),
|
|
2801
|
-
).optional(),
|
|
2802
|
-
photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
2803
|
-
encoding_format: UpdatePromptEncodingFormat$inboundSchema.optional(),
|
|
2804
|
-
reasoningEffort: UpdatePromptReasoningEffort$inboundSchema.optional(),
|
|
2805
|
-
budgetTokens: z.number().optional(),
|
|
2806
|
-
}).transform((v) => {
|
|
2807
|
-
return remap$(v, {
|
|
2808
|
-
"encoding_format": "encodingFormat",
|
|
2809
|
-
});
|
|
2810
|
-
});
|
|
2811
|
-
|
|
2812
|
-
/** @internal */
|
|
2813
|
-
export type UpdatePromptModelParameters$Outbound = {
|
|
2814
|
-
temperature?: number | undefined;
|
|
2815
|
-
maxTokens?: number | undefined;
|
|
2816
|
-
topK?: number | undefined;
|
|
2817
|
-
topP?: number | undefined;
|
|
2818
|
-
frequencyPenalty?: number | undefined;
|
|
2819
|
-
presencePenalty?: number | undefined;
|
|
2820
|
-
numImages?: number | undefined;
|
|
2821
|
-
seed?: number | undefined;
|
|
2822
|
-
format?: string | undefined;
|
|
2823
|
-
dimensions?: string | undefined;
|
|
2824
|
-
quality?: string | undefined;
|
|
2825
|
-
style?: string | undefined;
|
|
2826
|
-
responseFormat?:
|
|
2827
|
-
| UpdatePromptResponseFormat2$Outbound
|
|
2828
|
-
| UpdatePromptResponseFormat1$Outbound
|
|
2829
|
-
| null
|
|
2830
|
-
| undefined;
|
|
2831
|
-
photoRealVersion?: string | undefined;
|
|
2832
|
-
encoding_format?: string | undefined;
|
|
2833
|
-
reasoningEffort?: string | undefined;
|
|
2834
|
-
budgetTokens?: number | undefined;
|
|
2835
|
-
};
|
|
2836
|
-
|
|
2837
|
-
/** @internal */
|
|
2838
|
-
export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
|
|
2839
|
-
UpdatePromptModelParameters$Outbound,
|
|
2840
|
-
z.ZodTypeDef,
|
|
2841
|
-
UpdatePromptModelParameters
|
|
2842
|
-
> = z.object({
|
|
2843
|
-
temperature: z.number().optional(),
|
|
2844
|
-
maxTokens: z.number().optional(),
|
|
2845
|
-
topK: z.number().optional(),
|
|
2846
|
-
topP: z.number().optional(),
|
|
2847
|
-
frequencyPenalty: z.number().optional(),
|
|
2848
|
-
presencePenalty: z.number().optional(),
|
|
2849
|
-
numImages: z.number().optional(),
|
|
2850
|
-
seed: z.number().optional(),
|
|
2851
|
-
format: UpdatePromptPromptsFormat$outboundSchema.optional(),
|
|
2852
|
-
dimensions: z.string().optional(),
|
|
2853
|
-
quality: UpdatePromptQuality$outboundSchema.optional(),
|
|
2854
|
-
style: z.string().optional(),
|
|
2855
|
-
responseFormat: z.nullable(
|
|
2856
|
-
z.union([
|
|
2857
|
-
z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
|
|
2858
|
-
z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
|
|
2859
|
-
]),
|
|
2860
|
-
).optional(),
|
|
2861
|
-
photoRealVersion: UpdatePromptPhotoRealVersion$outboundSchema.optional(),
|
|
2862
|
-
encodingFormat: UpdatePromptEncodingFormat$outboundSchema.optional(),
|
|
2863
|
-
reasoningEffort: UpdatePromptReasoningEffort$outboundSchema.optional(),
|
|
2864
|
-
budgetTokens: z.number().optional(),
|
|
2865
|
-
}).transform((v) => {
|
|
2866
|
-
return remap$(v, {
|
|
2867
|
-
encodingFormat: "encoding_format",
|
|
2868
|
-
});
|
|
2869
|
-
});
|
|
2870
|
-
|
|
2871
|
-
/**
|
|
2872
|
-
* @internal
|
|
2873
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2874
|
-
*/
|
|
2875
|
-
export namespace UpdatePromptModelParameters$ {
|
|
2876
|
-
/** @deprecated use `UpdatePromptModelParameters$inboundSchema` instead. */
|
|
2877
|
-
export const inboundSchema = UpdatePromptModelParameters$inboundSchema;
|
|
2878
|
-
/** @deprecated use `UpdatePromptModelParameters$outboundSchema` instead. */
|
|
2879
|
-
export const outboundSchema = UpdatePromptModelParameters$outboundSchema;
|
|
2880
|
-
/** @deprecated use `UpdatePromptModelParameters$Outbound` instead. */
|
|
2881
|
-
export type Outbound = UpdatePromptModelParameters$Outbound;
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
export function updatePromptModelParametersToJSON(
|
|
2885
|
-
updatePromptModelParameters: UpdatePromptModelParameters,
|
|
2886
|
-
): string {
|
|
2887
|
-
return JSON.stringify(
|
|
2888
|
-
UpdatePromptModelParameters$outboundSchema.parse(
|
|
2889
|
-
updatePromptModelParameters,
|
|
2890
|
-
),
|
|
2891
|
-
);
|
|
2892
|
-
}
|
|
2893
|
-
|
|
2894
|
-
export function updatePromptModelParametersFromJSON(
|
|
2895
|
-
jsonString: string,
|
|
2896
|
-
): SafeParseResult<UpdatePromptModelParameters, SDKValidationError> {
|
|
2897
|
-
return safeParse(
|
|
2898
|
-
jsonString,
|
|
2899
|
-
(x) => UpdatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2900
|
-
`Failed to parse 'UpdatePromptModelParameters' from JSON`,
|
|
2901
|
-
);
|
|
2902
|
-
}
|
|
2903
|
-
|
|
2904
|
-
/** @internal */
|
|
2905
|
-
export const UpdatePromptProvider$inboundSchema: z.ZodNativeEnum<
|
|
2906
|
-
typeof UpdatePromptProvider
|
|
2907
|
-
> = z.nativeEnum(UpdatePromptProvider);
|
|
2908
|
-
|
|
2909
|
-
/** @internal */
|
|
2910
|
-
export const UpdatePromptProvider$outboundSchema: z.ZodNativeEnum<
|
|
2911
|
-
typeof UpdatePromptProvider
|
|
2912
|
-
> = UpdatePromptProvider$inboundSchema;
|
|
2913
|
-
|
|
2914
|
-
/**
|
|
2915
|
-
* @internal
|
|
2916
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2917
|
-
*/
|
|
2918
|
-
export namespace UpdatePromptProvider$ {
|
|
2919
|
-
/** @deprecated use `UpdatePromptProvider$inboundSchema` instead. */
|
|
2920
|
-
export const inboundSchema = UpdatePromptProvider$inboundSchema;
|
|
2921
|
-
/** @deprecated use `UpdatePromptProvider$outboundSchema` instead. */
|
|
2922
|
-
export const outboundSchema = UpdatePromptProvider$outboundSchema;
|
|
2923
|
-
}
|
|
2924
|
-
|
|
2925
|
-
/** @internal */
|
|
2926
|
-
export const UpdatePromptPromptsRole$inboundSchema: z.ZodNativeEnum<
|
|
2927
|
-
typeof UpdatePromptPromptsRole
|
|
2928
|
-
> = z.nativeEnum(UpdatePromptPromptsRole);
|
|
2929
|
-
|
|
2930
|
-
/** @internal */
|
|
2931
|
-
export const UpdatePromptPromptsRole$outboundSchema: z.ZodNativeEnum<
|
|
2932
|
-
typeof UpdatePromptPromptsRole
|
|
2933
|
-
> = UpdatePromptPromptsRole$inboundSchema;
|
|
2934
|
-
|
|
2935
|
-
/**
|
|
2936
|
-
* @internal
|
|
2937
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2938
|
-
*/
|
|
2939
|
-
export namespace UpdatePromptPromptsRole$ {
|
|
2940
|
-
/** @deprecated use `UpdatePromptPromptsRole$inboundSchema` instead. */
|
|
2941
|
-
export const inboundSchema = UpdatePromptPromptsRole$inboundSchema;
|
|
2942
|
-
/** @deprecated use `UpdatePromptPromptsRole$outboundSchema` instead. */
|
|
2943
|
-
export const outboundSchema = UpdatePromptPromptsRole$outboundSchema;
|
|
2944
|
-
}
|
|
2945
|
-
|
|
2946
|
-
/** @internal */
|
|
2947
|
-
export const UpdatePrompt2PromptsResponse200Type$inboundSchema: z.ZodNativeEnum<
|
|
2948
|
-
typeof UpdatePrompt2PromptsResponse200Type
|
|
2949
|
-
> = z.nativeEnum(UpdatePrompt2PromptsResponse200Type);
|
|
2950
|
-
|
|
2951
|
-
/** @internal */
|
|
2952
|
-
export const UpdatePrompt2PromptsResponse200Type$outboundSchema:
|
|
2953
|
-
z.ZodNativeEnum<typeof UpdatePrompt2PromptsResponse200Type> =
|
|
2954
|
-
UpdatePrompt2PromptsResponse200Type$inboundSchema;
|
|
2955
|
-
|
|
2956
|
-
/**
|
|
2957
|
-
* @internal
|
|
2958
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2959
|
-
*/
|
|
2960
|
-
export namespace UpdatePrompt2PromptsResponse200Type$ {
|
|
2961
|
-
/** @deprecated use `UpdatePrompt2PromptsResponse200Type$inboundSchema` instead. */
|
|
2962
|
-
export const inboundSchema =
|
|
2963
|
-
UpdatePrompt2PromptsResponse200Type$inboundSchema;
|
|
2964
|
-
/** @deprecated use `UpdatePrompt2PromptsResponse200Type$outboundSchema` instead. */
|
|
2965
|
-
export const outboundSchema =
|
|
2966
|
-
UpdatePrompt2PromptsResponse200Type$outboundSchema;
|
|
2967
|
-
}
|
|
2968
|
-
|
|
2969
|
-
/** @internal */
|
|
2970
|
-
export const UpdatePrompt2PromptsImageUrl$inboundSchema: z.ZodType<
|
|
2971
|
-
UpdatePrompt2PromptsImageUrl,
|
|
2972
|
-
z.ZodTypeDef,
|
|
2973
|
-
unknown
|
|
2974
|
-
> = z.object({
|
|
2975
|
-
id: z.string().optional(),
|
|
2976
|
-
url: z.string(),
|
|
2977
|
-
detail: z.string().optional(),
|
|
2978
|
-
});
|
|
2979
|
-
|
|
2980
|
-
/** @internal */
|
|
2981
|
-
export type UpdatePrompt2PromptsImageUrl$Outbound = {
|
|
2982
|
-
id?: string | undefined;
|
|
2983
|
-
url: string;
|
|
2984
|
-
detail?: string | undefined;
|
|
2985
|
-
};
|
|
2986
|
-
|
|
2987
|
-
/** @internal */
|
|
2988
|
-
export const UpdatePrompt2PromptsImageUrl$outboundSchema: z.ZodType<
|
|
2989
|
-
UpdatePrompt2PromptsImageUrl$Outbound,
|
|
2990
|
-
z.ZodTypeDef,
|
|
2991
|
-
UpdatePrompt2PromptsImageUrl
|
|
2992
|
-
> = z.object({
|
|
2993
|
-
id: z.string().optional(),
|
|
2994
|
-
url: z.string(),
|
|
2995
|
-
detail: z.string().optional(),
|
|
2996
|
-
});
|
|
2997
|
-
|
|
2998
|
-
/**
|
|
2999
|
-
* @internal
|
|
3000
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3001
|
-
*/
|
|
3002
|
-
export namespace UpdatePrompt2PromptsImageUrl$ {
|
|
3003
|
-
/** @deprecated use `UpdatePrompt2PromptsImageUrl$inboundSchema` instead. */
|
|
3004
|
-
export const inboundSchema = UpdatePrompt2PromptsImageUrl$inboundSchema;
|
|
3005
|
-
/** @deprecated use `UpdatePrompt2PromptsImageUrl$outboundSchema` instead. */
|
|
3006
|
-
export const outboundSchema = UpdatePrompt2PromptsImageUrl$outboundSchema;
|
|
3007
|
-
/** @deprecated use `UpdatePrompt2PromptsImageUrl$Outbound` instead. */
|
|
3008
|
-
export type Outbound = UpdatePrompt2PromptsImageUrl$Outbound;
|
|
3009
|
-
}
|
|
3010
|
-
|
|
3011
|
-
export function updatePrompt2PromptsImageUrlToJSON(
|
|
3012
|
-
updatePrompt2PromptsImageUrl: UpdatePrompt2PromptsImageUrl,
|
|
3013
|
-
): string {
|
|
3014
|
-
return JSON.stringify(
|
|
3015
|
-
UpdatePrompt2PromptsImageUrl$outboundSchema.parse(
|
|
3016
|
-
updatePrompt2PromptsImageUrl,
|
|
3017
|
-
),
|
|
3018
|
-
);
|
|
3019
|
-
}
|
|
3020
|
-
|
|
3021
|
-
export function updatePrompt2PromptsImageUrlFromJSON(
|
|
3022
|
-
jsonString: string,
|
|
3023
|
-
): SafeParseResult<UpdatePrompt2PromptsImageUrl, SDKValidationError> {
|
|
3024
|
-
return safeParse(
|
|
3025
|
-
jsonString,
|
|
3026
|
-
(x) => UpdatePrompt2PromptsImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
3027
|
-
`Failed to parse 'UpdatePrompt2PromptsImageUrl' from JSON`,
|
|
3028
|
-
);
|
|
3029
|
-
}
|
|
3030
|
-
|
|
3031
|
-
/** @internal */
|
|
3032
|
-
export const UpdatePrompt2Prompts2$inboundSchema: z.ZodType<
|
|
3033
|
-
UpdatePrompt2Prompts2,
|
|
3034
|
-
z.ZodTypeDef,
|
|
3035
|
-
unknown
|
|
3036
|
-
> = z.object({
|
|
3037
|
-
type: UpdatePrompt2PromptsResponse200Type$inboundSchema,
|
|
3038
|
-
image_url: z.lazy(() => UpdatePrompt2PromptsImageUrl$inboundSchema),
|
|
3039
|
-
}).transform((v) => {
|
|
3040
|
-
return remap$(v, {
|
|
3041
|
-
"image_url": "imageUrl",
|
|
3042
|
-
});
|
|
3043
|
-
});
|
|
3044
|
-
|
|
3045
|
-
/** @internal */
|
|
3046
|
-
export type UpdatePrompt2Prompts2$Outbound = {
|
|
3047
|
-
type: string;
|
|
3048
|
-
image_url: UpdatePrompt2PromptsImageUrl$Outbound;
|
|
3049
|
-
};
|
|
3050
|
-
|
|
3051
|
-
/** @internal */
|
|
3052
|
-
export const UpdatePrompt2Prompts2$outboundSchema: z.ZodType<
|
|
3053
|
-
UpdatePrompt2Prompts2$Outbound,
|
|
3054
|
-
z.ZodTypeDef,
|
|
3055
|
-
UpdatePrompt2Prompts2
|
|
3056
|
-
> = z.object({
|
|
3057
|
-
type: UpdatePrompt2PromptsResponse200Type$outboundSchema,
|
|
3058
|
-
imageUrl: z.lazy(() => UpdatePrompt2PromptsImageUrl$outboundSchema),
|
|
3059
|
-
}).transform((v) => {
|
|
3060
|
-
return remap$(v, {
|
|
3061
|
-
imageUrl: "image_url",
|
|
3062
|
-
});
|
|
3063
|
-
});
|
|
3064
|
-
|
|
3065
|
-
/**
|
|
3066
|
-
* @internal
|
|
3067
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3068
|
-
*/
|
|
3069
|
-
export namespace UpdatePrompt2Prompts2$ {
|
|
3070
|
-
/** @deprecated use `UpdatePrompt2Prompts2$inboundSchema` instead. */
|
|
3071
|
-
export const inboundSchema = UpdatePrompt2Prompts2$inboundSchema;
|
|
3072
|
-
/** @deprecated use `UpdatePrompt2Prompts2$outboundSchema` instead. */
|
|
3073
|
-
export const outboundSchema = UpdatePrompt2Prompts2$outboundSchema;
|
|
3074
|
-
/** @deprecated use `UpdatePrompt2Prompts2$Outbound` instead. */
|
|
3075
|
-
export type Outbound = UpdatePrompt2Prompts2$Outbound;
|
|
3076
|
-
}
|
|
3077
|
-
|
|
3078
|
-
export function updatePrompt2Prompts2ToJSON(
|
|
3079
|
-
updatePrompt2Prompts2: UpdatePrompt2Prompts2,
|
|
3080
|
-
): string {
|
|
3081
|
-
return JSON.stringify(
|
|
3082
|
-
UpdatePrompt2Prompts2$outboundSchema.parse(updatePrompt2Prompts2),
|
|
3083
|
-
);
|
|
3084
|
-
}
|
|
3085
|
-
|
|
3086
|
-
export function updatePrompt2Prompts2FromJSON(
|
|
3087
|
-
jsonString: string,
|
|
3088
|
-
): SafeParseResult<UpdatePrompt2Prompts2, SDKValidationError> {
|
|
3089
|
-
return safeParse(
|
|
3090
|
-
jsonString,
|
|
3091
|
-
(x) => UpdatePrompt2Prompts2$inboundSchema.parse(JSON.parse(x)),
|
|
3092
|
-
`Failed to parse 'UpdatePrompt2Prompts2' from JSON`,
|
|
3093
|
-
);
|
|
3094
|
-
}
|
|
3095
|
-
|
|
3096
|
-
/** @internal */
|
|
3097
|
-
export const UpdatePrompt2PromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
3098
|
-
typeof UpdatePrompt2PromptsResponseType
|
|
3099
|
-
> = z.nativeEnum(UpdatePrompt2PromptsResponseType);
|
|
3100
|
-
|
|
3101
|
-
/** @internal */
|
|
3102
|
-
export const UpdatePrompt2PromptsResponseType$outboundSchema: z.ZodNativeEnum<
|
|
3103
|
-
typeof UpdatePrompt2PromptsResponseType
|
|
3104
|
-
> = UpdatePrompt2PromptsResponseType$inboundSchema;
|
|
3105
|
-
|
|
3106
|
-
/**
|
|
3107
|
-
* @internal
|
|
3108
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3109
|
-
*/
|
|
3110
|
-
export namespace UpdatePrompt2PromptsResponseType$ {
|
|
3111
|
-
/** @deprecated use `UpdatePrompt2PromptsResponseType$inboundSchema` instead. */
|
|
3112
|
-
export const inboundSchema = UpdatePrompt2PromptsResponseType$inboundSchema;
|
|
3113
|
-
/** @deprecated use `UpdatePrompt2PromptsResponseType$outboundSchema` instead. */
|
|
3114
|
-
export const outboundSchema = UpdatePrompt2PromptsResponseType$outboundSchema;
|
|
3115
|
-
}
|
|
3116
|
-
|
|
3117
|
-
/** @internal */
|
|
3118
|
-
export const UpdatePrompt2Prompts1$inboundSchema: z.ZodType<
|
|
3119
|
-
UpdatePrompt2Prompts1,
|
|
3120
|
-
z.ZodTypeDef,
|
|
3121
|
-
unknown
|
|
3122
|
-
> = z.object({
|
|
3123
|
-
type: UpdatePrompt2PromptsResponseType$inboundSchema,
|
|
3124
|
-
text: z.string(),
|
|
3125
|
-
});
|
|
3126
|
-
|
|
3127
|
-
/** @internal */
|
|
3128
|
-
export type UpdatePrompt2Prompts1$Outbound = {
|
|
3129
|
-
type: string;
|
|
3130
|
-
text: string;
|
|
3131
|
-
};
|
|
3132
|
-
|
|
3133
|
-
/** @internal */
|
|
3134
|
-
export const UpdatePrompt2Prompts1$outboundSchema: z.ZodType<
|
|
3135
|
-
UpdatePrompt2Prompts1$Outbound,
|
|
3136
|
-
z.ZodTypeDef,
|
|
3137
|
-
UpdatePrompt2Prompts1
|
|
3138
|
-
> = z.object({
|
|
3139
|
-
type: UpdatePrompt2PromptsResponseType$outboundSchema,
|
|
3140
|
-
text: z.string(),
|
|
3141
|
-
});
|
|
3142
|
-
|
|
3143
|
-
/**
|
|
3144
|
-
* @internal
|
|
3145
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3146
|
-
*/
|
|
3147
|
-
export namespace UpdatePrompt2Prompts1$ {
|
|
3148
|
-
/** @deprecated use `UpdatePrompt2Prompts1$inboundSchema` instead. */
|
|
3149
|
-
export const inboundSchema = UpdatePrompt2Prompts1$inboundSchema;
|
|
3150
|
-
/** @deprecated use `UpdatePrompt2Prompts1$outboundSchema` instead. */
|
|
3151
|
-
export const outboundSchema = UpdatePrompt2Prompts1$outboundSchema;
|
|
3152
|
-
/** @deprecated use `UpdatePrompt2Prompts1$Outbound` instead. */
|
|
3153
|
-
export type Outbound = UpdatePrompt2Prompts1$Outbound;
|
|
3154
|
-
}
|
|
3155
|
-
|
|
3156
|
-
export function updatePrompt2Prompts1ToJSON(
|
|
3157
|
-
updatePrompt2Prompts1: UpdatePrompt2Prompts1,
|
|
3158
|
-
): string {
|
|
3159
|
-
return JSON.stringify(
|
|
3160
|
-
UpdatePrompt2Prompts1$outboundSchema.parse(updatePrompt2Prompts1),
|
|
3161
|
-
);
|
|
3162
|
-
}
|
|
3163
|
-
|
|
3164
|
-
export function updatePrompt2Prompts1FromJSON(
|
|
3165
|
-
jsonString: string,
|
|
3166
|
-
): SafeParseResult<UpdatePrompt2Prompts1, SDKValidationError> {
|
|
3167
|
-
return safeParse(
|
|
3168
|
-
jsonString,
|
|
3169
|
-
(x) => UpdatePrompt2Prompts1$inboundSchema.parse(JSON.parse(x)),
|
|
3170
|
-
`Failed to parse 'UpdatePrompt2Prompts1' from JSON`,
|
|
3171
|
-
);
|
|
3172
|
-
}
|
|
3173
|
-
|
|
3174
|
-
/** @internal */
|
|
3175
|
-
export const UpdatePromptContentPrompts2$inboundSchema: z.ZodType<
|
|
3176
|
-
UpdatePromptContentPrompts2,
|
|
3177
|
-
z.ZodTypeDef,
|
|
3178
|
-
unknown
|
|
3179
|
-
> = z.union([
|
|
3180
|
-
z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
|
|
3181
|
-
z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
|
|
3182
|
-
]);
|
|
3183
|
-
|
|
3184
|
-
/** @internal */
|
|
3185
|
-
export type UpdatePromptContentPrompts2$Outbound =
|
|
3186
|
-
| UpdatePrompt2Prompts1$Outbound
|
|
3187
|
-
| UpdatePrompt2Prompts2$Outbound;
|
|
3188
|
-
|
|
3189
|
-
/** @internal */
|
|
3190
|
-
export const UpdatePromptContentPrompts2$outboundSchema: z.ZodType<
|
|
3191
|
-
UpdatePromptContentPrompts2$Outbound,
|
|
3192
|
-
z.ZodTypeDef,
|
|
3193
|
-
UpdatePromptContentPrompts2
|
|
3194
|
-
> = z.union([
|
|
3195
|
-
z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
|
|
3196
|
-
z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
|
|
3197
|
-
]);
|
|
3198
|
-
|
|
3199
|
-
/**
|
|
3200
|
-
* @internal
|
|
3201
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3202
|
-
*/
|
|
3203
|
-
export namespace UpdatePromptContentPrompts2$ {
|
|
3204
|
-
/** @deprecated use `UpdatePromptContentPrompts2$inboundSchema` instead. */
|
|
3205
|
-
export const inboundSchema = UpdatePromptContentPrompts2$inboundSchema;
|
|
3206
|
-
/** @deprecated use `UpdatePromptContentPrompts2$outboundSchema` instead. */
|
|
3207
|
-
export const outboundSchema = UpdatePromptContentPrompts2$outboundSchema;
|
|
3208
|
-
/** @deprecated use `UpdatePromptContentPrompts2$Outbound` instead. */
|
|
3209
|
-
export type Outbound = UpdatePromptContentPrompts2$Outbound;
|
|
3210
|
-
}
|
|
3211
|
-
|
|
3212
|
-
export function updatePromptContentPrompts2ToJSON(
|
|
3213
|
-
updatePromptContentPrompts2: UpdatePromptContentPrompts2,
|
|
3214
|
-
): string {
|
|
3215
|
-
return JSON.stringify(
|
|
3216
|
-
UpdatePromptContentPrompts2$outboundSchema.parse(
|
|
3217
|
-
updatePromptContentPrompts2,
|
|
3218
|
-
),
|
|
3219
|
-
);
|
|
3220
|
-
}
|
|
3221
|
-
|
|
3222
|
-
export function updatePromptContentPrompts2FromJSON(
|
|
3223
|
-
jsonString: string,
|
|
3224
|
-
): SafeParseResult<UpdatePromptContentPrompts2, SDKValidationError> {
|
|
3225
|
-
return safeParse(
|
|
3226
|
-
jsonString,
|
|
3227
|
-
(x) => UpdatePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)),
|
|
3228
|
-
`Failed to parse 'UpdatePromptContentPrompts2' from JSON`,
|
|
3229
|
-
);
|
|
3230
|
-
}
|
|
3231
|
-
|
|
3232
|
-
/** @internal */
|
|
3233
|
-
export const UpdatePromptPromptsContent$inboundSchema: z.ZodType<
|
|
3234
|
-
UpdatePromptPromptsContent,
|
|
3235
|
-
z.ZodTypeDef,
|
|
3236
|
-
unknown
|
|
3237
|
-
> = z.union([
|
|
3238
|
-
z.string(),
|
|
3239
|
-
z.array(z.union([
|
|
3240
|
-
z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
|
|
3241
|
-
z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
|
|
3242
|
-
])),
|
|
3243
|
-
]);
|
|
3244
|
-
|
|
3245
|
-
/** @internal */
|
|
3246
|
-
export type UpdatePromptPromptsContent$Outbound =
|
|
3247
|
-
| string
|
|
3248
|
-
| Array<UpdatePrompt2Prompts1$Outbound | UpdatePrompt2Prompts2$Outbound>;
|
|
3249
|
-
|
|
3250
|
-
/** @internal */
|
|
3251
|
-
export const UpdatePromptPromptsContent$outboundSchema: z.ZodType<
|
|
3252
|
-
UpdatePromptPromptsContent$Outbound,
|
|
3253
|
-
z.ZodTypeDef,
|
|
3254
|
-
UpdatePromptPromptsContent
|
|
3255
|
-
> = z.union([
|
|
3256
|
-
z.string(),
|
|
3257
|
-
z.array(z.union([
|
|
3258
|
-
z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
|
|
3259
|
-
z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
|
|
3260
|
-
])),
|
|
3261
|
-
]);
|
|
3262
|
-
|
|
3263
|
-
/**
|
|
3264
|
-
* @internal
|
|
3265
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3266
|
-
*/
|
|
3267
|
-
export namespace UpdatePromptPromptsContent$ {
|
|
3268
|
-
/** @deprecated use `UpdatePromptPromptsContent$inboundSchema` instead. */
|
|
3269
|
-
export const inboundSchema = UpdatePromptPromptsContent$inboundSchema;
|
|
3270
|
-
/** @deprecated use `UpdatePromptPromptsContent$outboundSchema` instead. */
|
|
3271
|
-
export const outboundSchema = UpdatePromptPromptsContent$outboundSchema;
|
|
3272
|
-
/** @deprecated use `UpdatePromptPromptsContent$Outbound` instead. */
|
|
3273
|
-
export type Outbound = UpdatePromptPromptsContent$Outbound;
|
|
3274
|
-
}
|
|
3275
|
-
|
|
3276
|
-
export function updatePromptPromptsContentToJSON(
|
|
3277
|
-
updatePromptPromptsContent: UpdatePromptPromptsContent,
|
|
3278
|
-
): string {
|
|
3279
|
-
return JSON.stringify(
|
|
3280
|
-
UpdatePromptPromptsContent$outboundSchema.parse(updatePromptPromptsContent),
|
|
3281
|
-
);
|
|
3282
|
-
}
|
|
3283
|
-
|
|
3284
|
-
export function updatePromptPromptsContentFromJSON(
|
|
3285
|
-
jsonString: string,
|
|
3286
|
-
): SafeParseResult<UpdatePromptPromptsContent, SDKValidationError> {
|
|
3287
|
-
return safeParse(
|
|
3288
|
-
jsonString,
|
|
3289
|
-
(x) => UpdatePromptPromptsContent$inboundSchema.parse(JSON.parse(x)),
|
|
3290
|
-
`Failed to parse 'UpdatePromptPromptsContent' from JSON`,
|
|
3291
|
-
);
|
|
3292
|
-
}
|
|
3293
|
-
|
|
3294
|
-
/** @internal */
|
|
3295
|
-
export const UpdatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
3296
|
-
typeof UpdatePromptPromptsResponseType
|
|
3297
|
-
> = z.nativeEnum(UpdatePromptPromptsResponseType);
|
|
3298
|
-
|
|
3299
|
-
/** @internal */
|
|
3300
|
-
export const UpdatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<
|
|
3301
|
-
typeof UpdatePromptPromptsResponseType
|
|
3302
|
-
> = UpdatePromptPromptsResponseType$inboundSchema;
|
|
3303
|
-
|
|
3304
|
-
/**
|
|
3305
|
-
* @internal
|
|
3306
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3307
|
-
*/
|
|
3308
|
-
export namespace UpdatePromptPromptsResponseType$ {
|
|
3309
|
-
/** @deprecated use `UpdatePromptPromptsResponseType$inboundSchema` instead. */
|
|
3310
|
-
export const inboundSchema = UpdatePromptPromptsResponseType$inboundSchema;
|
|
3311
|
-
/** @deprecated use `UpdatePromptPromptsResponseType$outboundSchema` instead. */
|
|
3312
|
-
export const outboundSchema = UpdatePromptPromptsResponseType$outboundSchema;
|
|
3313
|
-
}
|
|
3314
|
-
|
|
3315
|
-
/** @internal */
|
|
3316
|
-
export const UpdatePromptPromptsFunction$inboundSchema: z.ZodType<
|
|
3317
|
-
UpdatePromptPromptsFunction,
|
|
3318
|
-
z.ZodTypeDef,
|
|
3319
|
-
unknown
|
|
3320
|
-
> = z.object({
|
|
3321
|
-
name: z.string(),
|
|
3322
|
-
arguments: z.string(),
|
|
3323
|
-
});
|
|
3324
|
-
|
|
3325
|
-
/** @internal */
|
|
3326
|
-
export type UpdatePromptPromptsFunction$Outbound = {
|
|
3327
|
-
name: string;
|
|
3328
|
-
arguments: string;
|
|
3329
|
-
};
|
|
3330
|
-
|
|
3331
|
-
/** @internal */
|
|
3332
|
-
export const UpdatePromptPromptsFunction$outboundSchema: z.ZodType<
|
|
3333
|
-
UpdatePromptPromptsFunction$Outbound,
|
|
3334
|
-
z.ZodTypeDef,
|
|
3335
|
-
UpdatePromptPromptsFunction
|
|
3336
|
-
> = z.object({
|
|
3337
|
-
name: z.string(),
|
|
3338
|
-
arguments: z.string(),
|
|
3339
|
-
});
|
|
3340
|
-
|
|
3341
|
-
/**
|
|
3342
|
-
* @internal
|
|
3343
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3344
|
-
*/
|
|
3345
|
-
export namespace UpdatePromptPromptsFunction$ {
|
|
3346
|
-
/** @deprecated use `UpdatePromptPromptsFunction$inboundSchema` instead. */
|
|
3347
|
-
export const inboundSchema = UpdatePromptPromptsFunction$inboundSchema;
|
|
3348
|
-
/** @deprecated use `UpdatePromptPromptsFunction$outboundSchema` instead. */
|
|
3349
|
-
export const outboundSchema = UpdatePromptPromptsFunction$outboundSchema;
|
|
3350
|
-
/** @deprecated use `UpdatePromptPromptsFunction$Outbound` instead. */
|
|
3351
|
-
export type Outbound = UpdatePromptPromptsFunction$Outbound;
|
|
3352
|
-
}
|
|
3353
|
-
|
|
3354
|
-
export function updatePromptPromptsFunctionToJSON(
|
|
3355
|
-
updatePromptPromptsFunction: UpdatePromptPromptsFunction,
|
|
3356
|
-
): string {
|
|
3357
|
-
return JSON.stringify(
|
|
3358
|
-
UpdatePromptPromptsFunction$outboundSchema.parse(
|
|
3359
|
-
updatePromptPromptsFunction,
|
|
3360
|
-
),
|
|
3361
|
-
);
|
|
3362
|
-
}
|
|
3363
|
-
|
|
3364
|
-
export function updatePromptPromptsFunctionFromJSON(
|
|
3365
|
-
jsonString: string,
|
|
3366
|
-
): SafeParseResult<UpdatePromptPromptsFunction, SDKValidationError> {
|
|
3367
|
-
return safeParse(
|
|
3368
|
-
jsonString,
|
|
3369
|
-
(x) => UpdatePromptPromptsFunction$inboundSchema.parse(JSON.parse(x)),
|
|
3370
|
-
`Failed to parse 'UpdatePromptPromptsFunction' from JSON`,
|
|
3371
|
-
);
|
|
3372
|
-
}
|
|
3373
|
-
|
|
3374
|
-
/** @internal */
|
|
3375
|
-
export const UpdatePromptPromptsToolCalls$inboundSchema: z.ZodType<
|
|
3376
|
-
UpdatePromptPromptsToolCalls,
|
|
3377
|
-
z.ZodTypeDef,
|
|
3378
|
-
unknown
|
|
3379
|
-
> = z.object({
|
|
3380
|
-
id: z.string().optional(),
|
|
3381
|
-
index: z.number().optional(),
|
|
3382
|
-
type: UpdatePromptPromptsResponseType$inboundSchema,
|
|
3383
|
-
function: z.lazy(() => UpdatePromptPromptsFunction$inboundSchema),
|
|
3384
|
-
});
|
|
3385
|
-
|
|
3386
|
-
/** @internal */
|
|
3387
|
-
export type UpdatePromptPromptsToolCalls$Outbound = {
|
|
3388
|
-
id?: string | undefined;
|
|
3389
|
-
index?: number | undefined;
|
|
3390
|
-
type: string;
|
|
3391
|
-
function: UpdatePromptPromptsFunction$Outbound;
|
|
3392
|
-
};
|
|
3393
|
-
|
|
3394
|
-
/** @internal */
|
|
3395
|
-
export const UpdatePromptPromptsToolCalls$outboundSchema: z.ZodType<
|
|
3396
|
-
UpdatePromptPromptsToolCalls$Outbound,
|
|
3397
|
-
z.ZodTypeDef,
|
|
3398
|
-
UpdatePromptPromptsToolCalls
|
|
3399
|
-
> = z.object({
|
|
3400
|
-
id: z.string().optional(),
|
|
3401
|
-
index: z.number().optional(),
|
|
3402
|
-
type: UpdatePromptPromptsResponseType$outboundSchema,
|
|
3403
|
-
function: z.lazy(() => UpdatePromptPromptsFunction$outboundSchema),
|
|
3404
|
-
});
|
|
3405
|
-
|
|
3406
|
-
/**
|
|
3407
|
-
* @internal
|
|
3408
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3409
|
-
*/
|
|
3410
|
-
export namespace UpdatePromptPromptsToolCalls$ {
|
|
3411
|
-
/** @deprecated use `UpdatePromptPromptsToolCalls$inboundSchema` instead. */
|
|
3412
|
-
export const inboundSchema = UpdatePromptPromptsToolCalls$inboundSchema;
|
|
3413
|
-
/** @deprecated use `UpdatePromptPromptsToolCalls$outboundSchema` instead. */
|
|
3414
|
-
export const outboundSchema = UpdatePromptPromptsToolCalls$outboundSchema;
|
|
3415
|
-
/** @deprecated use `UpdatePromptPromptsToolCalls$Outbound` instead. */
|
|
3416
|
-
export type Outbound = UpdatePromptPromptsToolCalls$Outbound;
|
|
3417
|
-
}
|
|
3418
|
-
|
|
3419
|
-
export function updatePromptPromptsToolCallsToJSON(
|
|
3420
|
-
updatePromptPromptsToolCalls: UpdatePromptPromptsToolCalls,
|
|
3421
|
-
): string {
|
|
3422
|
-
return JSON.stringify(
|
|
3423
|
-
UpdatePromptPromptsToolCalls$outboundSchema.parse(
|
|
3424
|
-
updatePromptPromptsToolCalls,
|
|
3425
|
-
),
|
|
3426
|
-
);
|
|
3427
|
-
}
|
|
3428
|
-
|
|
3429
|
-
export function updatePromptPromptsToolCallsFromJSON(
|
|
3430
|
-
jsonString: string,
|
|
3431
|
-
): SafeParseResult<UpdatePromptPromptsToolCalls, SDKValidationError> {
|
|
3432
|
-
return safeParse(
|
|
3433
|
-
jsonString,
|
|
3434
|
-
(x) => UpdatePromptPromptsToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
3435
|
-
`Failed to parse 'UpdatePromptPromptsToolCalls' from JSON`,
|
|
3436
|
-
);
|
|
3437
|
-
}
|
|
3438
|
-
|
|
3439
|
-
/** @internal */
|
|
3440
|
-
export const UpdatePromptPromptsMessages$inboundSchema: z.ZodType<
|
|
3441
|
-
UpdatePromptPromptsMessages,
|
|
3442
|
-
z.ZodTypeDef,
|
|
3443
|
-
unknown
|
|
3444
|
-
> = z.object({
|
|
3445
|
-
role: UpdatePromptPromptsRole$inboundSchema,
|
|
3446
|
-
content: z.union([
|
|
3447
|
-
z.string(),
|
|
3448
|
-
z.array(z.union([
|
|
3449
|
-
z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
|
|
3450
|
-
z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
|
|
3451
|
-
])),
|
|
3452
|
-
]),
|
|
3453
|
-
tool_calls: z.array(z.lazy(() => UpdatePromptPromptsToolCalls$inboundSchema))
|
|
3454
|
-
.optional(),
|
|
3455
|
-
}).transform((v) => {
|
|
3456
|
-
return remap$(v, {
|
|
3457
|
-
"tool_calls": "toolCalls",
|
|
3458
|
-
});
|
|
3459
|
-
});
|
|
3460
|
-
|
|
3461
|
-
/** @internal */
|
|
3462
|
-
export type UpdatePromptPromptsMessages$Outbound = {
|
|
3463
|
-
role: string;
|
|
3464
|
-
content:
|
|
3465
|
-
| string
|
|
3466
|
-
| Array<UpdatePrompt2Prompts1$Outbound | UpdatePrompt2Prompts2$Outbound>;
|
|
3467
|
-
tool_calls?: Array<UpdatePromptPromptsToolCalls$Outbound> | undefined;
|
|
3468
|
-
};
|
|
3469
|
-
|
|
3470
|
-
/** @internal */
|
|
3471
|
-
export const UpdatePromptPromptsMessages$outboundSchema: z.ZodType<
|
|
3472
|
-
UpdatePromptPromptsMessages$Outbound,
|
|
3473
|
-
z.ZodTypeDef,
|
|
3474
|
-
UpdatePromptPromptsMessages
|
|
3475
|
-
> = z.object({
|
|
3476
|
-
role: UpdatePromptPromptsRole$outboundSchema,
|
|
3477
|
-
content: z.union([
|
|
3478
|
-
z.string(),
|
|
3479
|
-
z.array(z.union([
|
|
3480
|
-
z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
|
|
3481
|
-
z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
|
|
3482
|
-
])),
|
|
3483
|
-
]),
|
|
3484
|
-
toolCalls: z.array(z.lazy(() => UpdatePromptPromptsToolCalls$outboundSchema))
|
|
3485
|
-
.optional(),
|
|
3486
|
-
}).transform((v) => {
|
|
3487
|
-
return remap$(v, {
|
|
3488
|
-
toolCalls: "tool_calls",
|
|
3489
|
-
});
|
|
3490
|
-
});
|
|
3491
|
-
|
|
3492
|
-
/**
|
|
3493
|
-
* @internal
|
|
3494
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3495
|
-
*/
|
|
3496
|
-
export namespace UpdatePromptPromptsMessages$ {
|
|
3497
|
-
/** @deprecated use `UpdatePromptPromptsMessages$inboundSchema` instead. */
|
|
3498
|
-
export const inboundSchema = UpdatePromptPromptsMessages$inboundSchema;
|
|
3499
|
-
/** @deprecated use `UpdatePromptPromptsMessages$outboundSchema` instead. */
|
|
3500
|
-
export const outboundSchema = UpdatePromptPromptsMessages$outboundSchema;
|
|
3501
|
-
/** @deprecated use `UpdatePromptPromptsMessages$Outbound` instead. */
|
|
3502
|
-
export type Outbound = UpdatePromptPromptsMessages$Outbound;
|
|
3503
|
-
}
|
|
3504
|
-
|
|
3505
|
-
export function updatePromptPromptsMessagesToJSON(
|
|
3506
|
-
updatePromptPromptsMessages: UpdatePromptPromptsMessages,
|
|
3507
|
-
): string {
|
|
3508
|
-
return JSON.stringify(
|
|
3509
|
-
UpdatePromptPromptsMessages$outboundSchema.parse(
|
|
3510
|
-
updatePromptPromptsMessages,
|
|
3511
|
-
),
|
|
3512
|
-
);
|
|
3513
|
-
}
|
|
3514
|
-
|
|
3515
|
-
export function updatePromptPromptsMessagesFromJSON(
|
|
3516
|
-
jsonString: string,
|
|
3517
|
-
): SafeParseResult<UpdatePromptPromptsMessages, SDKValidationError> {
|
|
3518
|
-
return safeParse(
|
|
3519
|
-
jsonString,
|
|
3520
|
-
(x) => UpdatePromptPromptsMessages$inboundSchema.parse(JSON.parse(x)),
|
|
3521
|
-
`Failed to parse 'UpdatePromptPromptsMessages' from JSON`,
|
|
3522
|
-
);
|
|
3523
|
-
}
|
|
3524
|
-
|
|
3525
|
-
/** @internal */
|
|
3526
|
-
export const UpdatePromptPromptConfig$inboundSchema: z.ZodType<
|
|
3527
|
-
UpdatePromptPromptConfig,
|
|
3528
|
-
z.ZodTypeDef,
|
|
3529
|
-
unknown
|
|
3530
|
-
> = z.object({
|
|
3531
|
-
stream: z.boolean().optional(),
|
|
3532
|
-
model: z.string().optional(),
|
|
3533
|
-
model_db_id: z.string().optional(),
|
|
3534
|
-
model_type: UpdatePromptModelType$inboundSchema.optional(),
|
|
3535
|
-
model_parameters: z.lazy(() => UpdatePromptModelParameters$inboundSchema)
|
|
3536
|
-
.optional(),
|
|
3537
|
-
provider: UpdatePromptProvider$inboundSchema.optional(),
|
|
3538
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
3539
|
-
version: z.string().optional(),
|
|
3540
|
-
messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$inboundSchema)),
|
|
3541
|
-
}).transform((v) => {
|
|
3542
|
-
return remap$(v, {
|
|
3543
|
-
"model_db_id": "modelDbId",
|
|
3544
|
-
"model_type": "modelType",
|
|
3545
|
-
"model_parameters": "modelParameters",
|
|
3546
|
-
"integration_id": "integrationId",
|
|
3547
|
-
});
|
|
3548
|
-
});
|
|
3549
|
-
|
|
3550
|
-
/** @internal */
|
|
3551
|
-
export type UpdatePromptPromptConfig$Outbound = {
|
|
3552
|
-
stream?: boolean | undefined;
|
|
3553
|
-
model?: string | undefined;
|
|
3554
|
-
model_db_id?: string | undefined;
|
|
3555
|
-
model_type?: string | undefined;
|
|
3556
|
-
model_parameters?: UpdatePromptModelParameters$Outbound | undefined;
|
|
3557
|
-
provider?: string | undefined;
|
|
3558
|
-
integration_id?: string | null | undefined;
|
|
3559
|
-
version?: string | undefined;
|
|
3560
|
-
messages: Array<UpdatePromptPromptsMessages$Outbound>;
|
|
3561
|
-
};
|
|
3562
|
-
|
|
3563
|
-
/** @internal */
|
|
3564
|
-
export const UpdatePromptPromptConfig$outboundSchema: z.ZodType<
|
|
3565
|
-
UpdatePromptPromptConfig$Outbound,
|
|
3566
|
-
z.ZodTypeDef,
|
|
3567
|
-
UpdatePromptPromptConfig
|
|
3568
|
-
> = z.object({
|
|
3569
|
-
stream: z.boolean().optional(),
|
|
3570
|
-
model: z.string().optional(),
|
|
3571
|
-
modelDbId: z.string().optional(),
|
|
3572
|
-
modelType: UpdatePromptModelType$outboundSchema.optional(),
|
|
3573
|
-
modelParameters: z.lazy(() => UpdatePromptModelParameters$outboundSchema)
|
|
3574
|
-
.optional(),
|
|
3575
|
-
provider: UpdatePromptProvider$outboundSchema.optional(),
|
|
3576
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
3577
|
-
version: z.string().optional(),
|
|
3578
|
-
messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$outboundSchema)),
|
|
3579
|
-
}).transform((v) => {
|
|
3580
|
-
return remap$(v, {
|
|
3581
|
-
modelDbId: "model_db_id",
|
|
3582
|
-
modelType: "model_type",
|
|
3583
|
-
modelParameters: "model_parameters",
|
|
3584
|
-
integrationId: "integration_id",
|
|
3585
|
-
});
|
|
3586
|
-
});
|
|
3587
|
-
|
|
3588
|
-
/**
|
|
3589
|
-
* @internal
|
|
3590
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3591
|
-
*/
|
|
3592
|
-
export namespace UpdatePromptPromptConfig$ {
|
|
3593
|
-
/** @deprecated use `UpdatePromptPromptConfig$inboundSchema` instead. */
|
|
3594
|
-
export const inboundSchema = UpdatePromptPromptConfig$inboundSchema;
|
|
3595
|
-
/** @deprecated use `UpdatePromptPromptConfig$outboundSchema` instead. */
|
|
3596
|
-
export const outboundSchema = UpdatePromptPromptConfig$outboundSchema;
|
|
3597
|
-
/** @deprecated use `UpdatePromptPromptConfig$Outbound` instead. */
|
|
3598
|
-
export type Outbound = UpdatePromptPromptConfig$Outbound;
|
|
3599
|
-
}
|
|
3600
|
-
|
|
3601
|
-
export function updatePromptPromptConfigToJSON(
|
|
3602
|
-
updatePromptPromptConfig: UpdatePromptPromptConfig,
|
|
3603
|
-
): string {
|
|
3604
|
-
return JSON.stringify(
|
|
3605
|
-
UpdatePromptPromptConfig$outboundSchema.parse(updatePromptPromptConfig),
|
|
3606
|
-
);
|
|
3607
|
-
}
|
|
3608
|
-
|
|
3609
|
-
export function updatePromptPromptConfigFromJSON(
|
|
3610
|
-
jsonString: string,
|
|
3611
|
-
): SafeParseResult<UpdatePromptPromptConfig, SDKValidationError> {
|
|
3612
|
-
return safeParse(
|
|
3613
|
-
jsonString,
|
|
3614
|
-
(x) => UpdatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
3615
|
-
`Failed to parse 'UpdatePromptPromptConfig' from JSON`,
|
|
3616
|
-
);
|
|
3617
|
-
}
|
|
3618
|
-
|
|
3619
|
-
/** @internal */
|
|
3620
|
-
export const UpdatePromptUseCases$inboundSchema: z.ZodNativeEnum<
|
|
3621
|
-
typeof UpdatePromptUseCases
|
|
3622
|
-
> = z.nativeEnum(UpdatePromptUseCases);
|
|
3623
|
-
|
|
3624
|
-
/** @internal */
|
|
3625
|
-
export const UpdatePromptUseCases$outboundSchema: z.ZodNativeEnum<
|
|
3626
|
-
typeof UpdatePromptUseCases
|
|
3627
|
-
> = UpdatePromptUseCases$inboundSchema;
|
|
3628
|
-
|
|
3629
|
-
/**
|
|
3630
|
-
* @internal
|
|
3631
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3632
|
-
*/
|
|
3633
|
-
export namespace UpdatePromptUseCases$ {
|
|
3634
|
-
/** @deprecated use `UpdatePromptUseCases$inboundSchema` instead. */
|
|
3635
|
-
export const inboundSchema = UpdatePromptUseCases$inboundSchema;
|
|
3636
|
-
/** @deprecated use `UpdatePromptUseCases$outboundSchema` instead. */
|
|
3637
|
-
export const outboundSchema = UpdatePromptUseCases$outboundSchema;
|
|
3638
|
-
}
|
|
3639
|
-
|
|
3640
|
-
/** @internal */
|
|
3641
|
-
export const UpdatePromptLanguage$inboundSchema: z.ZodNativeEnum<
|
|
3642
|
-
typeof UpdatePromptLanguage
|
|
3643
|
-
> = z.nativeEnum(UpdatePromptLanguage);
|
|
3644
|
-
|
|
3645
|
-
/** @internal */
|
|
3646
|
-
export const UpdatePromptLanguage$outboundSchema: z.ZodNativeEnum<
|
|
3647
|
-
typeof UpdatePromptLanguage
|
|
3648
|
-
> = UpdatePromptLanguage$inboundSchema;
|
|
3649
|
-
|
|
3650
|
-
/**
|
|
3651
|
-
* @internal
|
|
3652
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3653
|
-
*/
|
|
3654
|
-
export namespace UpdatePromptLanguage$ {
|
|
3655
|
-
/** @deprecated use `UpdatePromptLanguage$inboundSchema` instead. */
|
|
3656
|
-
export const inboundSchema = UpdatePromptLanguage$inboundSchema;
|
|
3657
|
-
/** @deprecated use `UpdatePromptLanguage$outboundSchema` instead. */
|
|
3658
|
-
export const outboundSchema = UpdatePromptLanguage$outboundSchema;
|
|
3659
|
-
}
|
|
3660
|
-
|
|
3661
|
-
/** @internal */
|
|
3662
|
-
export const UpdatePromptPromptsMetadata$inboundSchema: z.ZodType<
|
|
3663
|
-
UpdatePromptPromptsMetadata,
|
|
3664
|
-
z.ZodTypeDef,
|
|
3665
|
-
unknown
|
|
3666
|
-
> = z.object({
|
|
3667
|
-
use_cases: z.array(UpdatePromptUseCases$inboundSchema).optional(),
|
|
3668
|
-
language: UpdatePromptLanguage$inboundSchema.optional(),
|
|
3669
|
-
}).transform((v) => {
|
|
3670
|
-
return remap$(v, {
|
|
3671
|
-
"use_cases": "useCases",
|
|
3672
|
-
});
|
|
3673
|
-
});
|
|
3674
|
-
|
|
3675
|
-
/** @internal */
|
|
3676
|
-
export type UpdatePromptPromptsMetadata$Outbound = {
|
|
3677
|
-
use_cases?: Array<string> | undefined;
|
|
3678
|
-
language?: string | undefined;
|
|
3679
|
-
};
|
|
3680
|
-
|
|
3681
|
-
/** @internal */
|
|
3682
|
-
export const UpdatePromptPromptsMetadata$outboundSchema: z.ZodType<
|
|
3683
|
-
UpdatePromptPromptsMetadata$Outbound,
|
|
3684
|
-
z.ZodTypeDef,
|
|
3685
|
-
UpdatePromptPromptsMetadata
|
|
3686
|
-
> = z.object({
|
|
3687
|
-
useCases: z.array(UpdatePromptUseCases$outboundSchema).optional(),
|
|
3688
|
-
language: UpdatePromptLanguage$outboundSchema.optional(),
|
|
3689
|
-
}).transform((v) => {
|
|
3690
|
-
return remap$(v, {
|
|
3691
|
-
useCases: "use_cases",
|
|
3692
|
-
});
|
|
3693
|
-
});
|
|
3694
|
-
|
|
3695
|
-
/**
|
|
3696
|
-
* @internal
|
|
3697
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3698
|
-
*/
|
|
3699
|
-
export namespace UpdatePromptPromptsMetadata$ {
|
|
3700
|
-
/** @deprecated use `UpdatePromptPromptsMetadata$inboundSchema` instead. */
|
|
3701
|
-
export const inboundSchema = UpdatePromptPromptsMetadata$inboundSchema;
|
|
3702
|
-
/** @deprecated use `UpdatePromptPromptsMetadata$outboundSchema` instead. */
|
|
3703
|
-
export const outboundSchema = UpdatePromptPromptsMetadata$outboundSchema;
|
|
3704
|
-
/** @deprecated use `UpdatePromptPromptsMetadata$Outbound` instead. */
|
|
3705
|
-
export type Outbound = UpdatePromptPromptsMetadata$Outbound;
|
|
3706
|
-
}
|
|
3707
|
-
|
|
3708
|
-
export function updatePromptPromptsMetadataToJSON(
|
|
3709
|
-
updatePromptPromptsMetadata: UpdatePromptPromptsMetadata,
|
|
3710
|
-
): string {
|
|
3711
|
-
return JSON.stringify(
|
|
3712
|
-
UpdatePromptPromptsMetadata$outboundSchema.parse(
|
|
3713
|
-
updatePromptPromptsMetadata,
|
|
3714
|
-
),
|
|
3715
|
-
);
|
|
3716
|
-
}
|
|
3717
|
-
|
|
3718
|
-
export function updatePromptPromptsMetadataFromJSON(
|
|
3719
|
-
jsonString: string,
|
|
3720
|
-
): SafeParseResult<UpdatePromptPromptsMetadata, SDKValidationError> {
|
|
3721
|
-
return safeParse(
|
|
3722
|
-
jsonString,
|
|
3723
|
-
(x) => UpdatePromptPromptsMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
3724
|
-
`Failed to parse 'UpdatePromptPromptsMetadata' from JSON`,
|
|
3725
|
-
);
|
|
3726
|
-
}
|
|
3727
|
-
|
|
3728
|
-
/** @internal */
|
|
3729
|
-
export const UpdatePromptResponseBody$inboundSchema: z.ZodType<
|
|
3730
|
-
UpdatePromptResponseBody,
|
|
3731
|
-
z.ZodTypeDef,
|
|
3732
|
-
unknown
|
|
3733
|
-
> = z.object({
|
|
3734
|
-
_id: z.string(),
|
|
3735
|
-
type: UpdatePromptPromptsType$inboundSchema,
|
|
3736
|
-
owner: z.string(),
|
|
3737
|
-
domain_id: z.string(),
|
|
3738
|
-
created: z.string(),
|
|
3739
|
-
updated: z.string(),
|
|
3740
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
3741
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
3742
|
-
display_name: z.string(),
|
|
3743
|
-
description: z.nullable(z.string()).optional(),
|
|
3744
|
-
prompt_config: z.lazy(() => UpdatePromptPromptConfig$inboundSchema),
|
|
3745
|
-
metadata: z.lazy(() => UpdatePromptPromptsMetadata$inboundSchema).optional(),
|
|
3746
|
-
}).transform((v) => {
|
|
3747
|
-
return remap$(v, {
|
|
3748
|
-
"_id": "id",
|
|
3749
|
-
"domain_id": "domainId",
|
|
3750
|
-
"created_by_id": "createdById",
|
|
3751
|
-
"updated_by_id": "updatedById",
|
|
3752
|
-
"display_name": "displayName",
|
|
3753
|
-
"prompt_config": "promptConfig",
|
|
3754
|
-
});
|
|
3755
|
-
});
|
|
3756
|
-
|
|
3757
|
-
/** @internal */
|
|
3758
|
-
export type UpdatePromptResponseBody$Outbound = {
|
|
3759
|
-
_id: string;
|
|
3760
|
-
type: string;
|
|
3761
|
-
owner: string;
|
|
3762
|
-
domain_id: string;
|
|
3763
|
-
created: string;
|
|
3764
|
-
updated: string;
|
|
3765
|
-
created_by_id?: string | null | undefined;
|
|
3766
|
-
updated_by_id?: string | null | undefined;
|
|
3767
|
-
display_name: string;
|
|
3768
|
-
description?: string | null | undefined;
|
|
3769
|
-
prompt_config: UpdatePromptPromptConfig$Outbound;
|
|
3770
|
-
metadata?: UpdatePromptPromptsMetadata$Outbound | undefined;
|
|
3771
|
-
};
|
|
3772
|
-
|
|
3773
|
-
/** @internal */
|
|
3774
|
-
export const UpdatePromptResponseBody$outboundSchema: z.ZodType<
|
|
3775
|
-
UpdatePromptResponseBody$Outbound,
|
|
3776
|
-
z.ZodTypeDef,
|
|
3777
|
-
UpdatePromptResponseBody
|
|
3778
|
-
> = z.object({
|
|
3779
|
-
id: z.string(),
|
|
3780
|
-
type: UpdatePromptPromptsType$outboundSchema,
|
|
3781
|
-
owner: z.string(),
|
|
3782
|
-
domainId: z.string(),
|
|
3783
|
-
created: z.string(),
|
|
3784
|
-
updated: z.string(),
|
|
3785
|
-
createdById: z.nullable(z.string()).optional(),
|
|
3786
|
-
updatedById: z.nullable(z.string()).optional(),
|
|
3787
|
-
displayName: z.string(),
|
|
3788
|
-
description: z.nullable(z.string()).optional(),
|
|
3789
|
-
promptConfig: z.lazy(() => UpdatePromptPromptConfig$outboundSchema),
|
|
3790
|
-
metadata: z.lazy(() => UpdatePromptPromptsMetadata$outboundSchema).optional(),
|
|
3791
|
-
}).transform((v) => {
|
|
3792
|
-
return remap$(v, {
|
|
3793
|
-
id: "_id",
|
|
3794
|
-
domainId: "domain_id",
|
|
3795
|
-
createdById: "created_by_id",
|
|
3796
|
-
updatedById: "updated_by_id",
|
|
3797
|
-
displayName: "display_name",
|
|
3798
|
-
promptConfig: "prompt_config",
|
|
3799
|
-
});
|
|
3800
|
-
});
|
|
3801
|
-
|
|
3802
|
-
/**
|
|
3803
|
-
* @internal
|
|
3804
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3805
|
-
*/
|
|
3806
|
-
export namespace UpdatePromptResponseBody$ {
|
|
3807
|
-
/** @deprecated use `UpdatePromptResponseBody$inboundSchema` instead. */
|
|
3808
|
-
export const inboundSchema = UpdatePromptResponseBody$inboundSchema;
|
|
3809
|
-
/** @deprecated use `UpdatePromptResponseBody$outboundSchema` instead. */
|
|
3810
|
-
export const outboundSchema = UpdatePromptResponseBody$outboundSchema;
|
|
3811
|
-
/** @deprecated use `UpdatePromptResponseBody$Outbound` instead. */
|
|
3812
|
-
export type Outbound = UpdatePromptResponseBody$Outbound;
|
|
3813
|
-
}
|
|
3814
|
-
|
|
3815
|
-
export function updatePromptResponseBodyToJSON(
|
|
3816
|
-
updatePromptResponseBody: UpdatePromptResponseBody,
|
|
3817
|
-
): string {
|
|
3818
|
-
return JSON.stringify(
|
|
3819
|
-
UpdatePromptResponseBody$outboundSchema.parse(updatePromptResponseBody),
|
|
3820
|
-
);
|
|
3821
|
-
}
|
|
3822
|
-
|
|
3823
|
-
export function updatePromptResponseBodyFromJSON(
|
|
3824
|
-
jsonString: string,
|
|
3825
|
-
): SafeParseResult<UpdatePromptResponseBody, SDKValidationError> {
|
|
3826
|
-
return safeParse(
|
|
3827
|
-
jsonString,
|
|
3828
|
-
(x) => UpdatePromptResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
3829
|
-
`Failed to parse 'UpdatePromptResponseBody' from JSON`,
|
|
3830
|
-
);
|
|
3831
|
-
}
|