@orq-ai/node 3.1.6 → 3.2.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -38
- package/docs/sdks/deployments/README.md +0 -81
- package/jsr.json +1 -2
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +1 -4
- package/lib/matchers.js.map +1 -1
- package/models/operations/createcontact.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/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.js.map +1 -1
- package/package.json +3 -2
- package/sdk/deployments.d.ts +0 -8
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +0 -10
- package/sdk/deployments.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/lib/matchers.ts +1 -4
- package/src/models/operations/createcontact.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/index.ts +0 -1
- package/src/sdk/deployments.ts +0 -19
- package/funcs/deploymentsStream.d.ts +0 -16
- package/funcs/deploymentsStream.d.ts.map +0 -1
- package/funcs/deploymentsStream.js +0 -126
- package/funcs/deploymentsStream.js.map +0 -1
- package/lib/event-streams.d.ts +0 -17
- package/lib/event-streams.d.ts.map +0 -1
- package/lib/event-streams.js +0 -220
- package/lib/event-streams.js.map +0 -1
- package/models/operations/deploymentstream.d.ts +0 -1622
- package/models/operations/deploymentstream.d.ts.map +0 -1
- package/models/operations/deploymentstream.js +0 -1571
- package/models/operations/deploymentstream.js.map +0 -1
- package/packages/orq-rc/FUNCTIONS.md +0 -106
- package/packages/orq-rc/README.md +0 -559
- 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/deployments/README.md +0 -316
- 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/promptsnippets/README.md +0 -534
- package/packages/orq-rc/docs/sdks/remoteconfig/README.md +0 -80
- package/packages/orq-rc/jsr.json +0 -28
- package/packages/orq-rc/package-lock.json +0 -1861
- package/packages/orq-rc/package.json +0 -31
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -126
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -134
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -142
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -141
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -134
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -150
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -126
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -130
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -129
- package/packages/orq-rc/src/funcs/filesList.ts +0 -131
- package/packages/orq-rc/src/funcs/filesUpload.ts +0 -149
- package/packages/orq-rc/src/funcs/promptSnippetsCreate.ts +0 -128
- package/packages/orq-rc/src/funcs/promptSnippetsDelete.ts +0 -131
- package/packages/orq-rc/src/funcs/promptSnippetsGet.ts +0 -130
- package/packages/orq-rc/src/funcs/promptSnippetsGetByKey.ts +0 -132
- package/packages/orq-rc/src/funcs/promptSnippetsList.ts +0 -132
- package/packages/orq-rc/src/funcs/promptSnippetsUpdate.ts +0 -139
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -126
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -130
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -146
- package/packages/orq-rc/src/funcs/promptsList.ts +0 -133
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -139
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -132
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -138
- package/packages/orq-rc/src/funcs/remoteconfigGetConfig.ts +0 -127
- 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 -109
- 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/event-streams.ts +0 -264
- 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 -325
- package/packages/orq-rc/src/lib/primitives.ts +0 -136
- 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 -400
- package/packages/orq-rc/src/lib/security.ts +0 -254
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/models/components/deployments.ts +0 -1666
- 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 -11
- 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/errors/updatepromptsnippet.ts +0 -71
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -3819
- package/packages/orq-rc/src/models/operations/createpromptsnippet.ts +0 -6239
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
- package/packages/orq-rc/src/models/operations/deletepromptsnippet.ts +0 -69
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -1790
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -3527
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1144
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2148
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -3062
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -222
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -321
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -322
- package/packages/orq-rc/src/models/operations/findonebykeypromptsnippet.ts +0 -4483
- package/packages/orq-rc/src/models/operations/findonepromptsnippet.ts +0 -4343
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2116
- package/packages/orq-rc/src/models/operations/getallpromptsnippets.ts +0 -4472
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1982
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2012
- package/packages/orq-rc/src/models/operations/index.ts +0 -29
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2146
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -3917
- package/packages/orq-rc/src/models/operations/updatepromptsnippet.ts +0 -6544
- package/packages/orq-rc/src/sdk/contacts.ts +0 -27
- package/packages/orq-rc/src/sdk/deployments.ts +0 -89
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -72
- 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/promptsnippets.ts +0 -99
- package/packages/orq-rc/src/sdk/remoteconfig.ts +0 -24
- package/packages/orq-rc/src/sdk/sdk.ts +0 -49
- 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
- package/src/funcs/deploymentsStream.ts +0 -151
- package/src/lib/event-streams.ts +0 -264
- package/src/models/operations/deploymentstream.ts +0 -3062
|
@@ -1,4472 +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
|
-
export type GetAllPromptSnippetsRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
15
|
-
*/
|
|
16
|
-
limit?: number | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
|
|
19
|
-
*/
|
|
20
|
-
startingAfter?: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
23
|
-
*/
|
|
24
|
-
endingBefore?: string | undefined;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const GetAllPromptSnippetsObject = {
|
|
28
|
-
List: "list",
|
|
29
|
-
} as const;
|
|
30
|
-
export type GetAllPromptSnippetsObject = ClosedEnum<
|
|
31
|
-
typeof GetAllPromptSnippetsObject
|
|
32
|
-
>;
|
|
33
|
-
|
|
34
|
-
export const GetAllPromptSnippetsOwner2 = {
|
|
35
|
-
Vendor: "vendor",
|
|
36
|
-
} as const;
|
|
37
|
-
export type GetAllPromptSnippetsOwner2 = ClosedEnum<
|
|
38
|
-
typeof GetAllPromptSnippetsOwner2
|
|
39
|
-
>;
|
|
40
|
-
|
|
41
|
-
export type GetAllPromptSnippetsOwner = string | GetAllPromptSnippetsOwner2;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* The type of the model
|
|
45
|
-
*/
|
|
46
|
-
export const GetAllPromptSnippetsModelType = {
|
|
47
|
-
Chat: "chat",
|
|
48
|
-
Completion: "completion",
|
|
49
|
-
Embedding: "embedding",
|
|
50
|
-
Vision: "vision",
|
|
51
|
-
Image: "image",
|
|
52
|
-
Tts: "tts",
|
|
53
|
-
Stt: "stt",
|
|
54
|
-
Rerank: "rerank",
|
|
55
|
-
Moderations: "moderations",
|
|
56
|
-
} as const;
|
|
57
|
-
/**
|
|
58
|
-
* The type of the model
|
|
59
|
-
*/
|
|
60
|
-
export type GetAllPromptSnippetsModelType = ClosedEnum<
|
|
61
|
-
typeof GetAllPromptSnippetsModelType
|
|
62
|
-
>;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Only supported on `image` models.
|
|
66
|
-
*/
|
|
67
|
-
export const GetAllPromptSnippetsFormat = {
|
|
68
|
-
Url: "url",
|
|
69
|
-
B64Json: "b64_json",
|
|
70
|
-
Text: "text",
|
|
71
|
-
JsonObject: "json_object",
|
|
72
|
-
} as const;
|
|
73
|
-
/**
|
|
74
|
-
* Only supported on `image` models.
|
|
75
|
-
*/
|
|
76
|
-
export type GetAllPromptSnippetsFormat = ClosedEnum<
|
|
77
|
-
typeof GetAllPromptSnippetsFormat
|
|
78
|
-
>;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Only supported on `image` models.
|
|
82
|
-
*/
|
|
83
|
-
export const GetAllPromptSnippetsQuality = {
|
|
84
|
-
Standard: "standard",
|
|
85
|
-
Hd: "hd",
|
|
86
|
-
} as const;
|
|
87
|
-
/**
|
|
88
|
-
* Only supported on `image` models.
|
|
89
|
-
*/
|
|
90
|
-
export type GetAllPromptSnippetsQuality = ClosedEnum<
|
|
91
|
-
typeof GetAllPromptSnippetsQuality
|
|
92
|
-
>;
|
|
93
|
-
|
|
94
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippetsType = {
|
|
95
|
-
JsonObject: "json_object",
|
|
96
|
-
} as const;
|
|
97
|
-
export type GetAllPromptSnippetsResponseFormatPromptSnippetsType = ClosedEnum<
|
|
98
|
-
typeof GetAllPromptSnippetsResponseFormatPromptSnippetsType
|
|
99
|
-
>;
|
|
100
|
-
|
|
101
|
-
export type GetAllPromptSnippetsResponseFormat2 = {
|
|
102
|
-
type: GetAllPromptSnippetsResponseFormatPromptSnippetsType;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export const GetAllPromptSnippetsResponseFormatType = {
|
|
106
|
-
JsonSchema: "json_schema",
|
|
107
|
-
} as const;
|
|
108
|
-
export type GetAllPromptSnippetsResponseFormatType = ClosedEnum<
|
|
109
|
-
typeof GetAllPromptSnippetsResponseFormatType
|
|
110
|
-
>;
|
|
111
|
-
|
|
112
|
-
export type GetAllPromptSnippetsResponseFormatJsonSchema = {
|
|
113
|
-
name: string;
|
|
114
|
-
strict: boolean;
|
|
115
|
-
schema: { [k: string]: any };
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
export type GetAllPromptSnippetsResponseFormat1 = {
|
|
119
|
-
type: GetAllPromptSnippetsResponseFormatType;
|
|
120
|
-
jsonSchema: GetAllPromptSnippetsResponseFormatJsonSchema;
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* An object specifying the format that the model must output.
|
|
125
|
-
*
|
|
126
|
-
* @remarks
|
|
127
|
-
*
|
|
128
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
129
|
-
*
|
|
130
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
131
|
-
*
|
|
132
|
-
* 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.
|
|
133
|
-
*/
|
|
134
|
-
export type GetAllPromptSnippetsResponseFormat =
|
|
135
|
-
| GetAllPromptSnippetsResponseFormat2
|
|
136
|
-
| GetAllPromptSnippetsResponseFormat1;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
140
|
-
*/
|
|
141
|
-
export const GetAllPromptSnippetsPhotoRealVersion = {
|
|
142
|
-
V1: "v1",
|
|
143
|
-
V2: "v2",
|
|
144
|
-
} as const;
|
|
145
|
-
/**
|
|
146
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
147
|
-
*/
|
|
148
|
-
export type GetAllPromptSnippetsPhotoRealVersion = ClosedEnum<
|
|
149
|
-
typeof GetAllPromptSnippetsPhotoRealVersion
|
|
150
|
-
>;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* The format to return the embeddings
|
|
154
|
-
*/
|
|
155
|
-
export const GetAllPromptSnippetsEncodingFormat = {
|
|
156
|
-
Float: "float",
|
|
157
|
-
Base64: "base64",
|
|
158
|
-
} as const;
|
|
159
|
-
/**
|
|
160
|
-
* The format to return the embeddings
|
|
161
|
-
*/
|
|
162
|
-
export type GetAllPromptSnippetsEncodingFormat = ClosedEnum<
|
|
163
|
-
typeof GetAllPromptSnippetsEncodingFormat
|
|
164
|
-
>;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
168
|
-
*/
|
|
169
|
-
export const GetAllPromptSnippetsReasoningEffort = {
|
|
170
|
-
Low: "low",
|
|
171
|
-
Medium: "medium",
|
|
172
|
-
High: "high",
|
|
173
|
-
} as const;
|
|
174
|
-
/**
|
|
175
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
176
|
-
*/
|
|
177
|
-
export type GetAllPromptSnippetsReasoningEffort = ClosedEnum<
|
|
178
|
-
typeof GetAllPromptSnippetsReasoningEffort
|
|
179
|
-
>;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Model Parameters: Not all parameters apply to every model
|
|
183
|
-
*/
|
|
184
|
-
export type GetAllPromptSnippetsModelParameters = {
|
|
185
|
-
/**
|
|
186
|
-
* Only supported on `chat` and `completion` models.
|
|
187
|
-
*/
|
|
188
|
-
temperature?: number | undefined;
|
|
189
|
-
/**
|
|
190
|
-
* Only supported on `chat` and `completion` models.
|
|
191
|
-
*/
|
|
192
|
-
maxTokens?: number | undefined;
|
|
193
|
-
/**
|
|
194
|
-
* Only supported on `chat` and `completion` models.
|
|
195
|
-
*/
|
|
196
|
-
topK?: number | undefined;
|
|
197
|
-
/**
|
|
198
|
-
* Only supported on `chat` and `completion` models.
|
|
199
|
-
*/
|
|
200
|
-
topP?: number | undefined;
|
|
201
|
-
/**
|
|
202
|
-
* Only supported on `chat` and `completion` models.
|
|
203
|
-
*/
|
|
204
|
-
frequencyPenalty?: number | undefined;
|
|
205
|
-
/**
|
|
206
|
-
* Only supported on `chat` and `completion` models.
|
|
207
|
-
*/
|
|
208
|
-
presencePenalty?: number | undefined;
|
|
209
|
-
/**
|
|
210
|
-
* Only supported on `image` models.
|
|
211
|
-
*/
|
|
212
|
-
numImages?: number | undefined;
|
|
213
|
-
/**
|
|
214
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
215
|
-
*/
|
|
216
|
-
seed?: number | undefined;
|
|
217
|
-
/**
|
|
218
|
-
* Only supported on `image` models.
|
|
219
|
-
*/
|
|
220
|
-
format?: GetAllPromptSnippetsFormat | undefined;
|
|
221
|
-
/**
|
|
222
|
-
* Only supported on `image` models.
|
|
223
|
-
*/
|
|
224
|
-
dimensions?: string | undefined;
|
|
225
|
-
/**
|
|
226
|
-
* Only supported on `image` models.
|
|
227
|
-
*/
|
|
228
|
-
quality?: GetAllPromptSnippetsQuality | undefined;
|
|
229
|
-
/**
|
|
230
|
-
* Only supported on `image` models.
|
|
231
|
-
*/
|
|
232
|
-
style?: string | undefined;
|
|
233
|
-
/**
|
|
234
|
-
* An object specifying the format that the model must output.
|
|
235
|
-
*
|
|
236
|
-
* @remarks
|
|
237
|
-
*
|
|
238
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
239
|
-
*
|
|
240
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
241
|
-
*
|
|
242
|
-
* 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.
|
|
243
|
-
*/
|
|
244
|
-
responseFormat?:
|
|
245
|
-
| GetAllPromptSnippetsResponseFormat2
|
|
246
|
-
| GetAllPromptSnippetsResponseFormat1
|
|
247
|
-
| null
|
|
248
|
-
| undefined;
|
|
249
|
-
/**
|
|
250
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
251
|
-
*/
|
|
252
|
-
photoRealVersion?: GetAllPromptSnippetsPhotoRealVersion | undefined;
|
|
253
|
-
/**
|
|
254
|
-
* The format to return the embeddings
|
|
255
|
-
*/
|
|
256
|
-
encodingFormat?: GetAllPromptSnippetsEncodingFormat | undefined;
|
|
257
|
-
/**
|
|
258
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
259
|
-
*/
|
|
260
|
-
reasoningEffort?: GetAllPromptSnippetsReasoningEffort | undefined;
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
export const GetAllPromptSnippetsProvider = {
|
|
264
|
-
Cohere: "cohere",
|
|
265
|
-
Openai: "openai",
|
|
266
|
-
Anthropic: "anthropic",
|
|
267
|
-
Huggingface: "huggingface",
|
|
268
|
-
Replicate: "replicate",
|
|
269
|
-
Google: "google",
|
|
270
|
-
GoogleAi: "google-ai",
|
|
271
|
-
Azure: "azure",
|
|
272
|
-
Aws: "aws",
|
|
273
|
-
Anyscale: "anyscale",
|
|
274
|
-
Perplexity: "perplexity",
|
|
275
|
-
Groq: "groq",
|
|
276
|
-
Fal: "fal",
|
|
277
|
-
Leonardoai: "leonardoai",
|
|
278
|
-
Nvidia: "nvidia",
|
|
279
|
-
Jina: "jina",
|
|
280
|
-
Togetherai: "togetherai",
|
|
281
|
-
Elevenlabs: "elevenlabs",
|
|
282
|
-
} as const;
|
|
283
|
-
export type GetAllPromptSnippetsProvider = ClosedEnum<
|
|
284
|
-
typeof GetAllPromptSnippetsProvider
|
|
285
|
-
>;
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* The role of the prompt message
|
|
289
|
-
*/
|
|
290
|
-
export const GetAllPromptSnippetsRole = {
|
|
291
|
-
System: "system",
|
|
292
|
-
Assistant: "assistant",
|
|
293
|
-
User: "user",
|
|
294
|
-
Exception: "exception",
|
|
295
|
-
Tool: "tool",
|
|
296
|
-
Prompt: "prompt",
|
|
297
|
-
Correction: "correction",
|
|
298
|
-
ExpectedOutput: "expected_output",
|
|
299
|
-
} as const;
|
|
300
|
-
/**
|
|
301
|
-
* The role of the prompt message
|
|
302
|
-
*/
|
|
303
|
-
export type GetAllPromptSnippetsRole = ClosedEnum<
|
|
304
|
-
typeof GetAllPromptSnippetsRole
|
|
305
|
-
>;
|
|
306
|
-
|
|
307
|
-
export const GetAllPromptSnippets2PromptSnippetsType = {
|
|
308
|
-
ImageUrl: "image_url",
|
|
309
|
-
} as const;
|
|
310
|
-
export type GetAllPromptSnippets2PromptSnippetsType = ClosedEnum<
|
|
311
|
-
typeof GetAllPromptSnippets2PromptSnippetsType
|
|
312
|
-
>;
|
|
313
|
-
|
|
314
|
-
export type GetAllPromptSnippets2ImageUrl = {
|
|
315
|
-
/**
|
|
316
|
-
* The orq.ai id of the image
|
|
317
|
-
*/
|
|
318
|
-
id?: string | undefined;
|
|
319
|
-
/**
|
|
320
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
321
|
-
*/
|
|
322
|
-
url: string;
|
|
323
|
-
/**
|
|
324
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
325
|
-
*/
|
|
326
|
-
detail?: string | undefined;
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
331
|
-
*/
|
|
332
|
-
export type GetAllPromptSnippets22 = {
|
|
333
|
-
type: GetAllPromptSnippets2PromptSnippetsType;
|
|
334
|
-
imageUrl: GetAllPromptSnippets2ImageUrl;
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
export const GetAllPromptSnippets2Type = {
|
|
338
|
-
Text: "text",
|
|
339
|
-
} as const;
|
|
340
|
-
export type GetAllPromptSnippets2Type = ClosedEnum<
|
|
341
|
-
typeof GetAllPromptSnippets2Type
|
|
342
|
-
>;
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* Text content part of a prompt message
|
|
346
|
-
*/
|
|
347
|
-
export type GetAllPromptSnippets21 = {
|
|
348
|
-
type: GetAllPromptSnippets2Type;
|
|
349
|
-
text: string;
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
export type GetAllPromptSnippetsContent2 =
|
|
353
|
-
| GetAllPromptSnippets21
|
|
354
|
-
| GetAllPromptSnippets22;
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* 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.
|
|
358
|
-
*/
|
|
359
|
-
export type GetAllPromptSnippetsContent =
|
|
360
|
-
| string
|
|
361
|
-
| Array<GetAllPromptSnippets21 | GetAllPromptSnippets22>;
|
|
362
|
-
|
|
363
|
-
export const GetAllPromptSnippetsPromptSnippetsType = {
|
|
364
|
-
Function: "function",
|
|
365
|
-
} as const;
|
|
366
|
-
export type GetAllPromptSnippetsPromptSnippetsType = ClosedEnum<
|
|
367
|
-
typeof GetAllPromptSnippetsPromptSnippetsType
|
|
368
|
-
>;
|
|
369
|
-
|
|
370
|
-
export type GetAllPromptSnippetsFunction = {
|
|
371
|
-
name: string;
|
|
372
|
-
/**
|
|
373
|
-
* JSON string arguments for the functions
|
|
374
|
-
*/
|
|
375
|
-
arguments: string;
|
|
376
|
-
};
|
|
377
|
-
|
|
378
|
-
export type GetAllPromptSnippetsToolCalls = {
|
|
379
|
-
id?: string | undefined;
|
|
380
|
-
index?: number | undefined;
|
|
381
|
-
type: GetAllPromptSnippetsPromptSnippetsType;
|
|
382
|
-
function: GetAllPromptSnippetsFunction;
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
export type GetAllPromptSnippetsMessages = {
|
|
386
|
-
/**
|
|
387
|
-
* The role of the prompt message
|
|
388
|
-
*/
|
|
389
|
-
role: GetAllPromptSnippetsRole;
|
|
390
|
-
/**
|
|
391
|
-
* 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.
|
|
392
|
-
*/
|
|
393
|
-
content: string | Array<GetAllPromptSnippets21 | GetAllPromptSnippets22>;
|
|
394
|
-
toolCalls?: Array<GetAllPromptSnippetsToolCalls> | undefined;
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* A list of messages compatible with the openAI schema
|
|
399
|
-
*/
|
|
400
|
-
export type GetAllPromptSnippetsPromptConfig = {
|
|
401
|
-
stream?: boolean | undefined;
|
|
402
|
-
model?: string | undefined;
|
|
403
|
-
/**
|
|
404
|
-
* The id of the resource
|
|
405
|
-
*/
|
|
406
|
-
modelDbId?: string | undefined;
|
|
407
|
-
/**
|
|
408
|
-
* The type of the model
|
|
409
|
-
*/
|
|
410
|
-
modelType?: GetAllPromptSnippetsModelType | undefined;
|
|
411
|
-
/**
|
|
412
|
-
* Model Parameters: Not all parameters apply to every model
|
|
413
|
-
*/
|
|
414
|
-
modelParameters?: GetAllPromptSnippetsModelParameters | undefined;
|
|
415
|
-
provider?: GetAllPromptSnippetsProvider | undefined;
|
|
416
|
-
/**
|
|
417
|
-
* The id of the resource
|
|
418
|
-
*/
|
|
419
|
-
integrationId?: string | null | undefined;
|
|
420
|
-
version?: string | undefined;
|
|
421
|
-
messages: Array<GetAllPromptSnippetsMessages>;
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
export const GetAllPromptSnippetsUseCases = {
|
|
425
|
-
Agents: "Agents",
|
|
426
|
-
AgentsSimulations: "Agents simulations",
|
|
427
|
-
APIInteraction: "API interaction",
|
|
428
|
-
AutonomousAgents: "Autonomous Agents",
|
|
429
|
-
Chatbots: "Chatbots",
|
|
430
|
-
Classification: "Classification",
|
|
431
|
-
CodeUnderstanding: "Code understanding",
|
|
432
|
-
CodeWriting: "Code writing",
|
|
433
|
-
DocumentsQA: "Documents QA",
|
|
434
|
-
Conversation: "Conversation",
|
|
435
|
-
Extraction: "Extraction",
|
|
436
|
-
MultiModal: "Multi-modal",
|
|
437
|
-
SelfChecking: "Self-checking",
|
|
438
|
-
Sql: "SQL",
|
|
439
|
-
Summarization: "Summarization",
|
|
440
|
-
Tagging: "Tagging",
|
|
441
|
-
} as const;
|
|
442
|
-
export type GetAllPromptSnippetsUseCases = ClosedEnum<
|
|
443
|
-
typeof GetAllPromptSnippetsUseCases
|
|
444
|
-
>;
|
|
445
|
-
|
|
446
|
-
/**
|
|
447
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
448
|
-
*/
|
|
449
|
-
export const GetAllPromptSnippetsLanguage = {
|
|
450
|
-
Chinese: "Chinese",
|
|
451
|
-
Dutch: "Dutch",
|
|
452
|
-
English: "English",
|
|
453
|
-
French: "French",
|
|
454
|
-
German: "German",
|
|
455
|
-
Russian: "Russian",
|
|
456
|
-
Spanish: "Spanish",
|
|
457
|
-
} as const;
|
|
458
|
-
/**
|
|
459
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
460
|
-
*/
|
|
461
|
-
export type GetAllPromptSnippetsLanguage = ClosedEnum<
|
|
462
|
-
typeof GetAllPromptSnippetsLanguage
|
|
463
|
-
>;
|
|
464
|
-
|
|
465
|
-
export type GetAllPromptSnippetsMetadata = {
|
|
466
|
-
/**
|
|
467
|
-
* 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
|
|
468
|
-
*/
|
|
469
|
-
useCases?: Array<GetAllPromptSnippetsUseCases> | undefined;
|
|
470
|
-
/**
|
|
471
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
472
|
-
*/
|
|
473
|
-
language?: GetAllPromptSnippetsLanguage | undefined;
|
|
474
|
-
};
|
|
475
|
-
|
|
476
|
-
export const GetAllPromptSnippetsType = {
|
|
477
|
-
Snippet: "snippet",
|
|
478
|
-
} as const;
|
|
479
|
-
export type GetAllPromptSnippetsType = ClosedEnum<
|
|
480
|
-
typeof GetAllPromptSnippetsType
|
|
481
|
-
>;
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* The type of the model
|
|
485
|
-
*/
|
|
486
|
-
export const GetAllPromptSnippetsPromptSnippetsModelType = {
|
|
487
|
-
Chat: "chat",
|
|
488
|
-
Completion: "completion",
|
|
489
|
-
Embedding: "embedding",
|
|
490
|
-
Vision: "vision",
|
|
491
|
-
Image: "image",
|
|
492
|
-
Tts: "tts",
|
|
493
|
-
Stt: "stt",
|
|
494
|
-
Rerank: "rerank",
|
|
495
|
-
Moderations: "moderations",
|
|
496
|
-
} as const;
|
|
497
|
-
/**
|
|
498
|
-
* The type of the model
|
|
499
|
-
*/
|
|
500
|
-
export type GetAllPromptSnippetsPromptSnippetsModelType = ClosedEnum<
|
|
501
|
-
typeof GetAllPromptSnippetsPromptSnippetsModelType
|
|
502
|
-
>;
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
* Only supported on `image` models.
|
|
506
|
-
*/
|
|
507
|
-
export const GetAllPromptSnippetsPromptSnippetsFormat = {
|
|
508
|
-
Url: "url",
|
|
509
|
-
B64Json: "b64_json",
|
|
510
|
-
Text: "text",
|
|
511
|
-
JsonObject: "json_object",
|
|
512
|
-
} as const;
|
|
513
|
-
/**
|
|
514
|
-
* Only supported on `image` models.
|
|
515
|
-
*/
|
|
516
|
-
export type GetAllPromptSnippetsPromptSnippetsFormat = ClosedEnum<
|
|
517
|
-
typeof GetAllPromptSnippetsPromptSnippetsFormat
|
|
518
|
-
>;
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* Only supported on `image` models.
|
|
522
|
-
*/
|
|
523
|
-
export const GetAllPromptSnippetsPromptSnippetsQuality = {
|
|
524
|
-
Standard: "standard",
|
|
525
|
-
Hd: "hd",
|
|
526
|
-
} as const;
|
|
527
|
-
/**
|
|
528
|
-
* Only supported on `image` models.
|
|
529
|
-
*/
|
|
530
|
-
export type GetAllPromptSnippetsPromptSnippetsQuality = ClosedEnum<
|
|
531
|
-
typeof GetAllPromptSnippetsPromptSnippetsQuality
|
|
532
|
-
>;
|
|
533
|
-
|
|
534
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type = {
|
|
535
|
-
JsonObject: "json_object",
|
|
536
|
-
} as const;
|
|
537
|
-
export type GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type =
|
|
538
|
-
ClosedEnum<
|
|
539
|
-
typeof GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type
|
|
540
|
-
>;
|
|
541
|
-
|
|
542
|
-
export type GetAllPromptSnippetsResponseFormatPromptSnippets2 = {
|
|
543
|
-
type: GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type;
|
|
544
|
-
};
|
|
545
|
-
|
|
546
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType = {
|
|
547
|
-
JsonSchema: "json_schema",
|
|
548
|
-
} as const;
|
|
549
|
-
export type GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType =
|
|
550
|
-
ClosedEnum<
|
|
551
|
-
typeof GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType
|
|
552
|
-
>;
|
|
553
|
-
|
|
554
|
-
export type GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema = {
|
|
555
|
-
name: string;
|
|
556
|
-
strict: boolean;
|
|
557
|
-
schema: { [k: string]: any };
|
|
558
|
-
};
|
|
559
|
-
|
|
560
|
-
export type GetAllPromptSnippetsResponseFormatPromptSnippets1 = {
|
|
561
|
-
type: GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType;
|
|
562
|
-
jsonSchema: GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema;
|
|
563
|
-
};
|
|
564
|
-
|
|
565
|
-
/**
|
|
566
|
-
* An object specifying the format that the model must output.
|
|
567
|
-
*
|
|
568
|
-
* @remarks
|
|
569
|
-
*
|
|
570
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
571
|
-
*
|
|
572
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
573
|
-
*
|
|
574
|
-
* 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.
|
|
575
|
-
*/
|
|
576
|
-
export type GetAllPromptSnippetsPromptSnippetsResponseFormat =
|
|
577
|
-
| GetAllPromptSnippetsResponseFormatPromptSnippets2
|
|
578
|
-
| GetAllPromptSnippetsResponseFormatPromptSnippets1;
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
582
|
-
*/
|
|
583
|
-
export const GetAllPromptSnippetsPromptSnippetsPhotoRealVersion = {
|
|
584
|
-
V1: "v1",
|
|
585
|
-
V2: "v2",
|
|
586
|
-
} as const;
|
|
587
|
-
/**
|
|
588
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
589
|
-
*/
|
|
590
|
-
export type GetAllPromptSnippetsPromptSnippetsPhotoRealVersion = ClosedEnum<
|
|
591
|
-
typeof GetAllPromptSnippetsPromptSnippetsPhotoRealVersion
|
|
592
|
-
>;
|
|
593
|
-
|
|
594
|
-
/**
|
|
595
|
-
* The format to return the embeddings
|
|
596
|
-
*/
|
|
597
|
-
export const GetAllPromptSnippetsPromptSnippetsEncodingFormat = {
|
|
598
|
-
Float: "float",
|
|
599
|
-
Base64: "base64",
|
|
600
|
-
} as const;
|
|
601
|
-
/**
|
|
602
|
-
* The format to return the embeddings
|
|
603
|
-
*/
|
|
604
|
-
export type GetAllPromptSnippetsPromptSnippetsEncodingFormat = ClosedEnum<
|
|
605
|
-
typeof GetAllPromptSnippetsPromptSnippetsEncodingFormat
|
|
606
|
-
>;
|
|
607
|
-
|
|
608
|
-
/**
|
|
609
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
610
|
-
*/
|
|
611
|
-
export const GetAllPromptSnippetsPromptSnippetsReasoningEffort = {
|
|
612
|
-
Low: "low",
|
|
613
|
-
Medium: "medium",
|
|
614
|
-
High: "high",
|
|
615
|
-
} as const;
|
|
616
|
-
/**
|
|
617
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
618
|
-
*/
|
|
619
|
-
export type GetAllPromptSnippetsPromptSnippetsReasoningEffort = ClosedEnum<
|
|
620
|
-
typeof GetAllPromptSnippetsPromptSnippetsReasoningEffort
|
|
621
|
-
>;
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* Model Parameters: Not all parameters apply to every model
|
|
625
|
-
*/
|
|
626
|
-
export type GetAllPromptSnippetsPromptSnippetsModelParameters = {
|
|
627
|
-
/**
|
|
628
|
-
* Only supported on `chat` and `completion` models.
|
|
629
|
-
*/
|
|
630
|
-
temperature?: number | undefined;
|
|
631
|
-
/**
|
|
632
|
-
* Only supported on `chat` and `completion` models.
|
|
633
|
-
*/
|
|
634
|
-
maxTokens?: number | undefined;
|
|
635
|
-
/**
|
|
636
|
-
* Only supported on `chat` and `completion` models.
|
|
637
|
-
*/
|
|
638
|
-
topK?: number | undefined;
|
|
639
|
-
/**
|
|
640
|
-
* Only supported on `chat` and `completion` models.
|
|
641
|
-
*/
|
|
642
|
-
topP?: number | undefined;
|
|
643
|
-
/**
|
|
644
|
-
* Only supported on `chat` and `completion` models.
|
|
645
|
-
*/
|
|
646
|
-
frequencyPenalty?: number | undefined;
|
|
647
|
-
/**
|
|
648
|
-
* Only supported on `chat` and `completion` models.
|
|
649
|
-
*/
|
|
650
|
-
presencePenalty?: number | undefined;
|
|
651
|
-
/**
|
|
652
|
-
* Only supported on `image` models.
|
|
653
|
-
*/
|
|
654
|
-
numImages?: number | undefined;
|
|
655
|
-
/**
|
|
656
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
657
|
-
*/
|
|
658
|
-
seed?: number | undefined;
|
|
659
|
-
/**
|
|
660
|
-
* Only supported on `image` models.
|
|
661
|
-
*/
|
|
662
|
-
format?: GetAllPromptSnippetsPromptSnippetsFormat | undefined;
|
|
663
|
-
/**
|
|
664
|
-
* Only supported on `image` models.
|
|
665
|
-
*/
|
|
666
|
-
dimensions?: string | undefined;
|
|
667
|
-
/**
|
|
668
|
-
* Only supported on `image` models.
|
|
669
|
-
*/
|
|
670
|
-
quality?: GetAllPromptSnippetsPromptSnippetsQuality | undefined;
|
|
671
|
-
/**
|
|
672
|
-
* Only supported on `image` models.
|
|
673
|
-
*/
|
|
674
|
-
style?: string | undefined;
|
|
675
|
-
/**
|
|
676
|
-
* An object specifying the format that the model must output.
|
|
677
|
-
*
|
|
678
|
-
* @remarks
|
|
679
|
-
*
|
|
680
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
681
|
-
*
|
|
682
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
683
|
-
*
|
|
684
|
-
* 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.
|
|
685
|
-
*/
|
|
686
|
-
responseFormat?:
|
|
687
|
-
| GetAllPromptSnippetsResponseFormatPromptSnippets2
|
|
688
|
-
| GetAllPromptSnippetsResponseFormatPromptSnippets1
|
|
689
|
-
| null
|
|
690
|
-
| undefined;
|
|
691
|
-
/**
|
|
692
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
693
|
-
*/
|
|
694
|
-
photoRealVersion?:
|
|
695
|
-
| GetAllPromptSnippetsPromptSnippetsPhotoRealVersion
|
|
696
|
-
| undefined;
|
|
697
|
-
/**
|
|
698
|
-
* The format to return the embeddings
|
|
699
|
-
*/
|
|
700
|
-
encodingFormat?: GetAllPromptSnippetsPromptSnippetsEncodingFormat | undefined;
|
|
701
|
-
/**
|
|
702
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
703
|
-
*/
|
|
704
|
-
reasoningEffort?:
|
|
705
|
-
| GetAllPromptSnippetsPromptSnippetsReasoningEffort
|
|
706
|
-
| undefined;
|
|
707
|
-
};
|
|
708
|
-
|
|
709
|
-
export const GetAllPromptSnippetsPromptSnippetsProvider = {
|
|
710
|
-
Cohere: "cohere",
|
|
711
|
-
Openai: "openai",
|
|
712
|
-
Anthropic: "anthropic",
|
|
713
|
-
Huggingface: "huggingface",
|
|
714
|
-
Replicate: "replicate",
|
|
715
|
-
Google: "google",
|
|
716
|
-
GoogleAi: "google-ai",
|
|
717
|
-
Azure: "azure",
|
|
718
|
-
Aws: "aws",
|
|
719
|
-
Anyscale: "anyscale",
|
|
720
|
-
Perplexity: "perplexity",
|
|
721
|
-
Groq: "groq",
|
|
722
|
-
Fal: "fal",
|
|
723
|
-
Leonardoai: "leonardoai",
|
|
724
|
-
Nvidia: "nvidia",
|
|
725
|
-
Jina: "jina",
|
|
726
|
-
Togetherai: "togetherai",
|
|
727
|
-
Elevenlabs: "elevenlabs",
|
|
728
|
-
} as const;
|
|
729
|
-
export type GetAllPromptSnippetsPromptSnippetsProvider = ClosedEnum<
|
|
730
|
-
typeof GetAllPromptSnippetsPromptSnippetsProvider
|
|
731
|
-
>;
|
|
732
|
-
|
|
733
|
-
/**
|
|
734
|
-
* The role of the prompt message
|
|
735
|
-
*/
|
|
736
|
-
export const GetAllPromptSnippetsPromptSnippetsRole = {
|
|
737
|
-
System: "system",
|
|
738
|
-
Assistant: "assistant",
|
|
739
|
-
User: "user",
|
|
740
|
-
Exception: "exception",
|
|
741
|
-
Tool: "tool",
|
|
742
|
-
Prompt: "prompt",
|
|
743
|
-
Correction: "correction",
|
|
744
|
-
ExpectedOutput: "expected_output",
|
|
745
|
-
} as const;
|
|
746
|
-
/**
|
|
747
|
-
* The role of the prompt message
|
|
748
|
-
*/
|
|
749
|
-
export type GetAllPromptSnippetsPromptSnippetsRole = ClosedEnum<
|
|
750
|
-
typeof GetAllPromptSnippetsPromptSnippetsRole
|
|
751
|
-
>;
|
|
752
|
-
|
|
753
|
-
export const GetAllPromptSnippets2PromptSnippetsResponse200Type = {
|
|
754
|
-
ImageUrl: "image_url",
|
|
755
|
-
} as const;
|
|
756
|
-
export type GetAllPromptSnippets2PromptSnippetsResponse200Type = ClosedEnum<
|
|
757
|
-
typeof GetAllPromptSnippets2PromptSnippetsResponse200Type
|
|
758
|
-
>;
|
|
759
|
-
|
|
760
|
-
export type GetAllPromptSnippets2PromptSnippetsImageUrl = {
|
|
761
|
-
/**
|
|
762
|
-
* The orq.ai id of the image
|
|
763
|
-
*/
|
|
764
|
-
id?: string | undefined;
|
|
765
|
-
/**
|
|
766
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
767
|
-
*/
|
|
768
|
-
url: string;
|
|
769
|
-
/**
|
|
770
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
771
|
-
*/
|
|
772
|
-
detail?: string | undefined;
|
|
773
|
-
};
|
|
774
|
-
|
|
775
|
-
/**
|
|
776
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
777
|
-
*/
|
|
778
|
-
export type GetAllPromptSnippets2PromptSnippets2 = {
|
|
779
|
-
type: GetAllPromptSnippets2PromptSnippetsResponse200Type;
|
|
780
|
-
imageUrl: GetAllPromptSnippets2PromptSnippetsImageUrl;
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
export const GetAllPromptSnippets2PromptSnippetsResponseType = {
|
|
784
|
-
Text: "text",
|
|
785
|
-
} as const;
|
|
786
|
-
export type GetAllPromptSnippets2PromptSnippetsResponseType = ClosedEnum<
|
|
787
|
-
typeof GetAllPromptSnippets2PromptSnippetsResponseType
|
|
788
|
-
>;
|
|
789
|
-
|
|
790
|
-
/**
|
|
791
|
-
* Text content part of a prompt message
|
|
792
|
-
*/
|
|
793
|
-
export type GetAllPromptSnippets2PromptSnippets1 = {
|
|
794
|
-
type: GetAllPromptSnippets2PromptSnippetsResponseType;
|
|
795
|
-
text: string;
|
|
796
|
-
};
|
|
797
|
-
|
|
798
|
-
export type GetAllPromptSnippetsContentPromptSnippets2 =
|
|
799
|
-
| GetAllPromptSnippets2PromptSnippets1
|
|
800
|
-
| GetAllPromptSnippets2PromptSnippets2;
|
|
801
|
-
|
|
802
|
-
/**
|
|
803
|
-
* 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.
|
|
804
|
-
*/
|
|
805
|
-
export type GetAllPromptSnippetsPromptSnippetsContent =
|
|
806
|
-
| string
|
|
807
|
-
| Array<
|
|
808
|
-
GetAllPromptSnippets2PromptSnippets1 | GetAllPromptSnippets2PromptSnippets2
|
|
809
|
-
>;
|
|
810
|
-
|
|
811
|
-
export const GetAllPromptSnippetsPromptSnippetsResponseType = {
|
|
812
|
-
Function: "function",
|
|
813
|
-
} as const;
|
|
814
|
-
export type GetAllPromptSnippetsPromptSnippetsResponseType = ClosedEnum<
|
|
815
|
-
typeof GetAllPromptSnippetsPromptSnippetsResponseType
|
|
816
|
-
>;
|
|
817
|
-
|
|
818
|
-
export type GetAllPromptSnippetsPromptSnippetsFunction = {
|
|
819
|
-
name: string;
|
|
820
|
-
/**
|
|
821
|
-
* JSON string arguments for the functions
|
|
822
|
-
*/
|
|
823
|
-
arguments: string;
|
|
824
|
-
};
|
|
825
|
-
|
|
826
|
-
export type GetAllPromptSnippetsPromptSnippetsToolCalls = {
|
|
827
|
-
id?: string | undefined;
|
|
828
|
-
index?: number | undefined;
|
|
829
|
-
type: GetAllPromptSnippetsPromptSnippetsResponseType;
|
|
830
|
-
function: GetAllPromptSnippetsPromptSnippetsFunction;
|
|
831
|
-
};
|
|
832
|
-
|
|
833
|
-
export type GetAllPromptSnippetsPromptSnippetsMessages = {
|
|
834
|
-
/**
|
|
835
|
-
* The role of the prompt message
|
|
836
|
-
*/
|
|
837
|
-
role: GetAllPromptSnippetsPromptSnippetsRole;
|
|
838
|
-
/**
|
|
839
|
-
* 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.
|
|
840
|
-
*/
|
|
841
|
-
content:
|
|
842
|
-
| string
|
|
843
|
-
| Array<
|
|
844
|
-
| GetAllPromptSnippets2PromptSnippets1
|
|
845
|
-
| GetAllPromptSnippets2PromptSnippets2
|
|
846
|
-
>;
|
|
847
|
-
toolCalls?: Array<GetAllPromptSnippetsPromptSnippetsToolCalls> | undefined;
|
|
848
|
-
};
|
|
849
|
-
|
|
850
|
-
/**
|
|
851
|
-
* A list of messages compatible with the openAI schema
|
|
852
|
-
*/
|
|
853
|
-
export type GetAllPromptSnippetsPromptSnippetsPromptConfig = {
|
|
854
|
-
stream?: boolean | undefined;
|
|
855
|
-
model?: string | undefined;
|
|
856
|
-
/**
|
|
857
|
-
* The id of the resource
|
|
858
|
-
*/
|
|
859
|
-
modelDbId?: string | undefined;
|
|
860
|
-
/**
|
|
861
|
-
* The type of the model
|
|
862
|
-
*/
|
|
863
|
-
modelType?: GetAllPromptSnippetsPromptSnippetsModelType | undefined;
|
|
864
|
-
/**
|
|
865
|
-
* Model Parameters: Not all parameters apply to every model
|
|
866
|
-
*/
|
|
867
|
-
modelParameters?:
|
|
868
|
-
| GetAllPromptSnippetsPromptSnippetsModelParameters
|
|
869
|
-
| undefined;
|
|
870
|
-
provider?: GetAllPromptSnippetsPromptSnippetsProvider | undefined;
|
|
871
|
-
/**
|
|
872
|
-
* The id of the resource
|
|
873
|
-
*/
|
|
874
|
-
integrationId?: string | null | undefined;
|
|
875
|
-
version?: string | undefined;
|
|
876
|
-
messages: Array<GetAllPromptSnippetsPromptSnippetsMessages>;
|
|
877
|
-
};
|
|
878
|
-
|
|
879
|
-
export const GetAllPromptSnippetsPromptSnippetsUseCases = {
|
|
880
|
-
Agents: "Agents",
|
|
881
|
-
AgentsSimulations: "Agents simulations",
|
|
882
|
-
APIInteraction: "API interaction",
|
|
883
|
-
AutonomousAgents: "Autonomous Agents",
|
|
884
|
-
Chatbots: "Chatbots",
|
|
885
|
-
Classification: "Classification",
|
|
886
|
-
CodeUnderstanding: "Code understanding",
|
|
887
|
-
CodeWriting: "Code writing",
|
|
888
|
-
DocumentsQA: "Documents QA",
|
|
889
|
-
Conversation: "Conversation",
|
|
890
|
-
Extraction: "Extraction",
|
|
891
|
-
MultiModal: "Multi-modal",
|
|
892
|
-
SelfChecking: "Self-checking",
|
|
893
|
-
Sql: "SQL",
|
|
894
|
-
Summarization: "Summarization",
|
|
895
|
-
Tagging: "Tagging",
|
|
896
|
-
} as const;
|
|
897
|
-
export type GetAllPromptSnippetsPromptSnippetsUseCases = ClosedEnum<
|
|
898
|
-
typeof GetAllPromptSnippetsPromptSnippetsUseCases
|
|
899
|
-
>;
|
|
900
|
-
|
|
901
|
-
/**
|
|
902
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
903
|
-
*/
|
|
904
|
-
export const GetAllPromptSnippetsPromptSnippetsLanguage = {
|
|
905
|
-
Chinese: "Chinese",
|
|
906
|
-
Dutch: "Dutch",
|
|
907
|
-
English: "English",
|
|
908
|
-
French: "French",
|
|
909
|
-
German: "German",
|
|
910
|
-
Russian: "Russian",
|
|
911
|
-
Spanish: "Spanish",
|
|
912
|
-
} as const;
|
|
913
|
-
/**
|
|
914
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
915
|
-
*/
|
|
916
|
-
export type GetAllPromptSnippetsPromptSnippetsLanguage = ClosedEnum<
|
|
917
|
-
typeof GetAllPromptSnippetsPromptSnippetsLanguage
|
|
918
|
-
>;
|
|
919
|
-
|
|
920
|
-
export type GetAllPromptSnippetsPromptSnippetsMetadata = {
|
|
921
|
-
/**
|
|
922
|
-
* 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
|
|
923
|
-
*/
|
|
924
|
-
useCases?: Array<GetAllPromptSnippetsPromptSnippetsUseCases> | undefined;
|
|
925
|
-
/**
|
|
926
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
927
|
-
*/
|
|
928
|
-
language?: GetAllPromptSnippetsPromptSnippetsLanguage | undefined;
|
|
929
|
-
};
|
|
930
|
-
|
|
931
|
-
/**
|
|
932
|
-
* Prompt version model returned from the API
|
|
933
|
-
*/
|
|
934
|
-
export type GetAllPromptSnippetsVersions = {
|
|
935
|
-
id: string;
|
|
936
|
-
/**
|
|
937
|
-
* The prompt snippet’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
|
|
938
|
-
*/
|
|
939
|
-
description?: string | null | undefined;
|
|
940
|
-
/**
|
|
941
|
-
* A list of messages compatible with the openAI schema
|
|
942
|
-
*/
|
|
943
|
-
promptConfig: GetAllPromptSnippetsPromptSnippetsPromptConfig;
|
|
944
|
-
metadata: GetAllPromptSnippetsPromptSnippetsMetadata;
|
|
945
|
-
createdById: string;
|
|
946
|
-
updatedById: string;
|
|
947
|
-
timestamp: string;
|
|
948
|
-
};
|
|
949
|
-
|
|
950
|
-
/**
|
|
951
|
-
* Prompt snippet model returned from the API
|
|
952
|
-
*/
|
|
953
|
-
export type GetAllPromptSnippetsData = {
|
|
954
|
-
id: string;
|
|
955
|
-
owner: string | GetAllPromptSnippetsOwner2;
|
|
956
|
-
domainId: string;
|
|
957
|
-
key: string;
|
|
958
|
-
/**
|
|
959
|
-
* The prompt snippet’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
|
|
960
|
-
*/
|
|
961
|
-
description?: string | null | undefined;
|
|
962
|
-
/**
|
|
963
|
-
* A list of messages compatible with the openAI schema
|
|
964
|
-
*/
|
|
965
|
-
promptConfig: GetAllPromptSnippetsPromptConfig;
|
|
966
|
-
metadata: GetAllPromptSnippetsMetadata;
|
|
967
|
-
createdById: string;
|
|
968
|
-
updatedById: string;
|
|
969
|
-
/**
|
|
970
|
-
* The date and time the resource was created
|
|
971
|
-
*/
|
|
972
|
-
created?: Date | undefined;
|
|
973
|
-
/**
|
|
974
|
-
* The date and time the resource was last updated
|
|
975
|
-
*/
|
|
976
|
-
updated?: Date | undefined;
|
|
977
|
-
type: GetAllPromptSnippetsType;
|
|
978
|
-
versions: Array<GetAllPromptSnippetsVersions>;
|
|
979
|
-
};
|
|
980
|
-
|
|
981
|
-
/**
|
|
982
|
-
* Prompt snippets retrieved.
|
|
983
|
-
*/
|
|
984
|
-
export type GetAllPromptSnippetsResponseBody = {
|
|
985
|
-
object: GetAllPromptSnippetsObject;
|
|
986
|
-
data: Array<GetAllPromptSnippetsData>;
|
|
987
|
-
hasMore: boolean;
|
|
988
|
-
};
|
|
989
|
-
|
|
990
|
-
/** @internal */
|
|
991
|
-
export const GetAllPromptSnippetsRequest$inboundSchema: z.ZodType<
|
|
992
|
-
GetAllPromptSnippetsRequest,
|
|
993
|
-
z.ZodTypeDef,
|
|
994
|
-
unknown
|
|
995
|
-
> = z.object({
|
|
996
|
-
limit: z.number().default(10),
|
|
997
|
-
starting_after: z.string().optional(),
|
|
998
|
-
ending_before: z.string().optional(),
|
|
999
|
-
}).transform((v) => {
|
|
1000
|
-
return remap$(v, {
|
|
1001
|
-
"starting_after": "startingAfter",
|
|
1002
|
-
"ending_before": "endingBefore",
|
|
1003
|
-
});
|
|
1004
|
-
});
|
|
1005
|
-
|
|
1006
|
-
/** @internal */
|
|
1007
|
-
export type GetAllPromptSnippetsRequest$Outbound = {
|
|
1008
|
-
limit: number;
|
|
1009
|
-
starting_after?: string | undefined;
|
|
1010
|
-
ending_before?: string | undefined;
|
|
1011
|
-
};
|
|
1012
|
-
|
|
1013
|
-
/** @internal */
|
|
1014
|
-
export const GetAllPromptSnippetsRequest$outboundSchema: z.ZodType<
|
|
1015
|
-
GetAllPromptSnippetsRequest$Outbound,
|
|
1016
|
-
z.ZodTypeDef,
|
|
1017
|
-
GetAllPromptSnippetsRequest
|
|
1018
|
-
> = z.object({
|
|
1019
|
-
limit: z.number().default(10),
|
|
1020
|
-
startingAfter: z.string().optional(),
|
|
1021
|
-
endingBefore: z.string().optional(),
|
|
1022
|
-
}).transform((v) => {
|
|
1023
|
-
return remap$(v, {
|
|
1024
|
-
startingAfter: "starting_after",
|
|
1025
|
-
endingBefore: "ending_before",
|
|
1026
|
-
});
|
|
1027
|
-
});
|
|
1028
|
-
|
|
1029
|
-
/**
|
|
1030
|
-
* @internal
|
|
1031
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1032
|
-
*/
|
|
1033
|
-
export namespace GetAllPromptSnippetsRequest$ {
|
|
1034
|
-
/** @deprecated use `GetAllPromptSnippetsRequest$inboundSchema` instead. */
|
|
1035
|
-
export const inboundSchema = GetAllPromptSnippetsRequest$inboundSchema;
|
|
1036
|
-
/** @deprecated use `GetAllPromptSnippetsRequest$outboundSchema` instead. */
|
|
1037
|
-
export const outboundSchema = GetAllPromptSnippetsRequest$outboundSchema;
|
|
1038
|
-
/** @deprecated use `GetAllPromptSnippetsRequest$Outbound` instead. */
|
|
1039
|
-
export type Outbound = GetAllPromptSnippetsRequest$Outbound;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
export function getAllPromptSnippetsRequestToJSON(
|
|
1043
|
-
getAllPromptSnippetsRequest: GetAllPromptSnippetsRequest,
|
|
1044
|
-
): string {
|
|
1045
|
-
return JSON.stringify(
|
|
1046
|
-
GetAllPromptSnippetsRequest$outboundSchema.parse(
|
|
1047
|
-
getAllPromptSnippetsRequest,
|
|
1048
|
-
),
|
|
1049
|
-
);
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
export function getAllPromptSnippetsRequestFromJSON(
|
|
1053
|
-
jsonString: string,
|
|
1054
|
-
): SafeParseResult<GetAllPromptSnippetsRequest, SDKValidationError> {
|
|
1055
|
-
return safeParse(
|
|
1056
|
-
jsonString,
|
|
1057
|
-
(x) => GetAllPromptSnippetsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
1058
|
-
`Failed to parse 'GetAllPromptSnippetsRequest' from JSON`,
|
|
1059
|
-
);
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
/** @internal */
|
|
1063
|
-
export const GetAllPromptSnippetsObject$inboundSchema: z.ZodNativeEnum<
|
|
1064
|
-
typeof GetAllPromptSnippetsObject
|
|
1065
|
-
> = z.nativeEnum(GetAllPromptSnippetsObject);
|
|
1066
|
-
|
|
1067
|
-
/** @internal */
|
|
1068
|
-
export const GetAllPromptSnippetsObject$outboundSchema: z.ZodNativeEnum<
|
|
1069
|
-
typeof GetAllPromptSnippetsObject
|
|
1070
|
-
> = GetAllPromptSnippetsObject$inboundSchema;
|
|
1071
|
-
|
|
1072
|
-
/**
|
|
1073
|
-
* @internal
|
|
1074
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1075
|
-
*/
|
|
1076
|
-
export namespace GetAllPromptSnippetsObject$ {
|
|
1077
|
-
/** @deprecated use `GetAllPromptSnippetsObject$inboundSchema` instead. */
|
|
1078
|
-
export const inboundSchema = GetAllPromptSnippetsObject$inboundSchema;
|
|
1079
|
-
/** @deprecated use `GetAllPromptSnippetsObject$outboundSchema` instead. */
|
|
1080
|
-
export const outboundSchema = GetAllPromptSnippetsObject$outboundSchema;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
/** @internal */
|
|
1084
|
-
export const GetAllPromptSnippetsOwner2$inboundSchema: z.ZodNativeEnum<
|
|
1085
|
-
typeof GetAllPromptSnippetsOwner2
|
|
1086
|
-
> = z.nativeEnum(GetAllPromptSnippetsOwner2);
|
|
1087
|
-
|
|
1088
|
-
/** @internal */
|
|
1089
|
-
export const GetAllPromptSnippetsOwner2$outboundSchema: z.ZodNativeEnum<
|
|
1090
|
-
typeof GetAllPromptSnippetsOwner2
|
|
1091
|
-
> = GetAllPromptSnippetsOwner2$inboundSchema;
|
|
1092
|
-
|
|
1093
|
-
/**
|
|
1094
|
-
* @internal
|
|
1095
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1096
|
-
*/
|
|
1097
|
-
export namespace GetAllPromptSnippetsOwner2$ {
|
|
1098
|
-
/** @deprecated use `GetAllPromptSnippetsOwner2$inboundSchema` instead. */
|
|
1099
|
-
export const inboundSchema = GetAllPromptSnippetsOwner2$inboundSchema;
|
|
1100
|
-
/** @deprecated use `GetAllPromptSnippetsOwner2$outboundSchema` instead. */
|
|
1101
|
-
export const outboundSchema = GetAllPromptSnippetsOwner2$outboundSchema;
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
/** @internal */
|
|
1105
|
-
export const GetAllPromptSnippetsOwner$inboundSchema: z.ZodType<
|
|
1106
|
-
GetAllPromptSnippetsOwner,
|
|
1107
|
-
z.ZodTypeDef,
|
|
1108
|
-
unknown
|
|
1109
|
-
> = z.union([z.string(), GetAllPromptSnippetsOwner2$inboundSchema]);
|
|
1110
|
-
|
|
1111
|
-
/** @internal */
|
|
1112
|
-
export type GetAllPromptSnippetsOwner$Outbound = string | string;
|
|
1113
|
-
|
|
1114
|
-
/** @internal */
|
|
1115
|
-
export const GetAllPromptSnippetsOwner$outboundSchema: z.ZodType<
|
|
1116
|
-
GetAllPromptSnippetsOwner$Outbound,
|
|
1117
|
-
z.ZodTypeDef,
|
|
1118
|
-
GetAllPromptSnippetsOwner
|
|
1119
|
-
> = z.union([z.string(), GetAllPromptSnippetsOwner2$outboundSchema]);
|
|
1120
|
-
|
|
1121
|
-
/**
|
|
1122
|
-
* @internal
|
|
1123
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1124
|
-
*/
|
|
1125
|
-
export namespace GetAllPromptSnippetsOwner$ {
|
|
1126
|
-
/** @deprecated use `GetAllPromptSnippetsOwner$inboundSchema` instead. */
|
|
1127
|
-
export const inboundSchema = GetAllPromptSnippetsOwner$inboundSchema;
|
|
1128
|
-
/** @deprecated use `GetAllPromptSnippetsOwner$outboundSchema` instead. */
|
|
1129
|
-
export const outboundSchema = GetAllPromptSnippetsOwner$outboundSchema;
|
|
1130
|
-
/** @deprecated use `GetAllPromptSnippetsOwner$Outbound` instead. */
|
|
1131
|
-
export type Outbound = GetAllPromptSnippetsOwner$Outbound;
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
export function getAllPromptSnippetsOwnerToJSON(
|
|
1135
|
-
getAllPromptSnippetsOwner: GetAllPromptSnippetsOwner,
|
|
1136
|
-
): string {
|
|
1137
|
-
return JSON.stringify(
|
|
1138
|
-
GetAllPromptSnippetsOwner$outboundSchema.parse(getAllPromptSnippetsOwner),
|
|
1139
|
-
);
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
export function getAllPromptSnippetsOwnerFromJSON(
|
|
1143
|
-
jsonString: string,
|
|
1144
|
-
): SafeParseResult<GetAllPromptSnippetsOwner, SDKValidationError> {
|
|
1145
|
-
return safeParse(
|
|
1146
|
-
jsonString,
|
|
1147
|
-
(x) => GetAllPromptSnippetsOwner$inboundSchema.parse(JSON.parse(x)),
|
|
1148
|
-
`Failed to parse 'GetAllPromptSnippetsOwner' from JSON`,
|
|
1149
|
-
);
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
/** @internal */
|
|
1153
|
-
export const GetAllPromptSnippetsModelType$inboundSchema: z.ZodNativeEnum<
|
|
1154
|
-
typeof GetAllPromptSnippetsModelType
|
|
1155
|
-
> = z.nativeEnum(GetAllPromptSnippetsModelType);
|
|
1156
|
-
|
|
1157
|
-
/** @internal */
|
|
1158
|
-
export const GetAllPromptSnippetsModelType$outboundSchema: z.ZodNativeEnum<
|
|
1159
|
-
typeof GetAllPromptSnippetsModelType
|
|
1160
|
-
> = GetAllPromptSnippetsModelType$inboundSchema;
|
|
1161
|
-
|
|
1162
|
-
/**
|
|
1163
|
-
* @internal
|
|
1164
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1165
|
-
*/
|
|
1166
|
-
export namespace GetAllPromptSnippetsModelType$ {
|
|
1167
|
-
/** @deprecated use `GetAllPromptSnippetsModelType$inboundSchema` instead. */
|
|
1168
|
-
export const inboundSchema = GetAllPromptSnippetsModelType$inboundSchema;
|
|
1169
|
-
/** @deprecated use `GetAllPromptSnippetsModelType$outboundSchema` instead. */
|
|
1170
|
-
export const outboundSchema = GetAllPromptSnippetsModelType$outboundSchema;
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
/** @internal */
|
|
1174
|
-
export const GetAllPromptSnippetsFormat$inboundSchema: z.ZodNativeEnum<
|
|
1175
|
-
typeof GetAllPromptSnippetsFormat
|
|
1176
|
-
> = z.nativeEnum(GetAllPromptSnippetsFormat);
|
|
1177
|
-
|
|
1178
|
-
/** @internal */
|
|
1179
|
-
export const GetAllPromptSnippetsFormat$outboundSchema: z.ZodNativeEnum<
|
|
1180
|
-
typeof GetAllPromptSnippetsFormat
|
|
1181
|
-
> = GetAllPromptSnippetsFormat$inboundSchema;
|
|
1182
|
-
|
|
1183
|
-
/**
|
|
1184
|
-
* @internal
|
|
1185
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1186
|
-
*/
|
|
1187
|
-
export namespace GetAllPromptSnippetsFormat$ {
|
|
1188
|
-
/** @deprecated use `GetAllPromptSnippetsFormat$inboundSchema` instead. */
|
|
1189
|
-
export const inboundSchema = GetAllPromptSnippetsFormat$inboundSchema;
|
|
1190
|
-
/** @deprecated use `GetAllPromptSnippetsFormat$outboundSchema` instead. */
|
|
1191
|
-
export const outboundSchema = GetAllPromptSnippetsFormat$outboundSchema;
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
/** @internal */
|
|
1195
|
-
export const GetAllPromptSnippetsQuality$inboundSchema: z.ZodNativeEnum<
|
|
1196
|
-
typeof GetAllPromptSnippetsQuality
|
|
1197
|
-
> = z.nativeEnum(GetAllPromptSnippetsQuality);
|
|
1198
|
-
|
|
1199
|
-
/** @internal */
|
|
1200
|
-
export const GetAllPromptSnippetsQuality$outboundSchema: z.ZodNativeEnum<
|
|
1201
|
-
typeof GetAllPromptSnippetsQuality
|
|
1202
|
-
> = GetAllPromptSnippetsQuality$inboundSchema;
|
|
1203
|
-
|
|
1204
|
-
/**
|
|
1205
|
-
* @internal
|
|
1206
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1207
|
-
*/
|
|
1208
|
-
export namespace GetAllPromptSnippetsQuality$ {
|
|
1209
|
-
/** @deprecated use `GetAllPromptSnippetsQuality$inboundSchema` instead. */
|
|
1210
|
-
export const inboundSchema = GetAllPromptSnippetsQuality$inboundSchema;
|
|
1211
|
-
/** @deprecated use `GetAllPromptSnippetsQuality$outboundSchema` instead. */
|
|
1212
|
-
export const outboundSchema = GetAllPromptSnippetsQuality$outboundSchema;
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
/** @internal */
|
|
1216
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippetsType$inboundSchema:
|
|
1217
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsResponseFormatPromptSnippetsType> =
|
|
1218
|
-
z.nativeEnum(GetAllPromptSnippetsResponseFormatPromptSnippetsType);
|
|
1219
|
-
|
|
1220
|
-
/** @internal */
|
|
1221
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippetsType$outboundSchema:
|
|
1222
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsResponseFormatPromptSnippetsType> =
|
|
1223
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsType$inboundSchema;
|
|
1224
|
-
|
|
1225
|
-
/**
|
|
1226
|
-
* @internal
|
|
1227
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1228
|
-
*/
|
|
1229
|
-
export namespace GetAllPromptSnippetsResponseFormatPromptSnippetsType$ {
|
|
1230
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsType$inboundSchema` instead. */
|
|
1231
|
-
export const inboundSchema =
|
|
1232
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsType$inboundSchema;
|
|
1233
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsType$outboundSchema` instead. */
|
|
1234
|
-
export const outboundSchema =
|
|
1235
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsType$outboundSchema;
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
/** @internal */
|
|
1239
|
-
export const GetAllPromptSnippetsResponseFormat2$inboundSchema: z.ZodType<
|
|
1240
|
-
GetAllPromptSnippetsResponseFormat2,
|
|
1241
|
-
z.ZodTypeDef,
|
|
1242
|
-
unknown
|
|
1243
|
-
> = z.object({
|
|
1244
|
-
type: GetAllPromptSnippetsResponseFormatPromptSnippetsType$inboundSchema,
|
|
1245
|
-
});
|
|
1246
|
-
|
|
1247
|
-
/** @internal */
|
|
1248
|
-
export type GetAllPromptSnippetsResponseFormat2$Outbound = {
|
|
1249
|
-
type: string;
|
|
1250
|
-
};
|
|
1251
|
-
|
|
1252
|
-
/** @internal */
|
|
1253
|
-
export const GetAllPromptSnippetsResponseFormat2$outboundSchema: z.ZodType<
|
|
1254
|
-
GetAllPromptSnippetsResponseFormat2$Outbound,
|
|
1255
|
-
z.ZodTypeDef,
|
|
1256
|
-
GetAllPromptSnippetsResponseFormat2
|
|
1257
|
-
> = z.object({
|
|
1258
|
-
type: GetAllPromptSnippetsResponseFormatPromptSnippetsType$outboundSchema,
|
|
1259
|
-
});
|
|
1260
|
-
|
|
1261
|
-
/**
|
|
1262
|
-
* @internal
|
|
1263
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1264
|
-
*/
|
|
1265
|
-
export namespace GetAllPromptSnippetsResponseFormat2$ {
|
|
1266
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormat2$inboundSchema` instead. */
|
|
1267
|
-
export const inboundSchema =
|
|
1268
|
-
GetAllPromptSnippetsResponseFormat2$inboundSchema;
|
|
1269
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormat2$outboundSchema` instead. */
|
|
1270
|
-
export const outboundSchema =
|
|
1271
|
-
GetAllPromptSnippetsResponseFormat2$outboundSchema;
|
|
1272
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormat2$Outbound` instead. */
|
|
1273
|
-
export type Outbound = GetAllPromptSnippetsResponseFormat2$Outbound;
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
export function getAllPromptSnippetsResponseFormat2ToJSON(
|
|
1277
|
-
getAllPromptSnippetsResponseFormat2: GetAllPromptSnippetsResponseFormat2,
|
|
1278
|
-
): string {
|
|
1279
|
-
return JSON.stringify(
|
|
1280
|
-
GetAllPromptSnippetsResponseFormat2$outboundSchema.parse(
|
|
1281
|
-
getAllPromptSnippetsResponseFormat2,
|
|
1282
|
-
),
|
|
1283
|
-
);
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
export function getAllPromptSnippetsResponseFormat2FromJSON(
|
|
1287
|
-
jsonString: string,
|
|
1288
|
-
): SafeParseResult<GetAllPromptSnippetsResponseFormat2, SDKValidationError> {
|
|
1289
|
-
return safeParse(
|
|
1290
|
-
jsonString,
|
|
1291
|
-
(x) =>
|
|
1292
|
-
GetAllPromptSnippetsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
1293
|
-
`Failed to parse 'GetAllPromptSnippetsResponseFormat2' from JSON`,
|
|
1294
|
-
);
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
/** @internal */
|
|
1298
|
-
export const GetAllPromptSnippetsResponseFormatType$inboundSchema:
|
|
1299
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsResponseFormatType> = z.nativeEnum(
|
|
1300
|
-
GetAllPromptSnippetsResponseFormatType,
|
|
1301
|
-
);
|
|
1302
|
-
|
|
1303
|
-
/** @internal */
|
|
1304
|
-
export const GetAllPromptSnippetsResponseFormatType$outboundSchema:
|
|
1305
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsResponseFormatType> =
|
|
1306
|
-
GetAllPromptSnippetsResponseFormatType$inboundSchema;
|
|
1307
|
-
|
|
1308
|
-
/**
|
|
1309
|
-
* @internal
|
|
1310
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1311
|
-
*/
|
|
1312
|
-
export namespace GetAllPromptSnippetsResponseFormatType$ {
|
|
1313
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatType$inboundSchema` instead. */
|
|
1314
|
-
export const inboundSchema =
|
|
1315
|
-
GetAllPromptSnippetsResponseFormatType$inboundSchema;
|
|
1316
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatType$outboundSchema` instead. */
|
|
1317
|
-
export const outboundSchema =
|
|
1318
|
-
GetAllPromptSnippetsResponseFormatType$outboundSchema;
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
/** @internal */
|
|
1322
|
-
export const GetAllPromptSnippetsResponseFormatJsonSchema$inboundSchema:
|
|
1323
|
-
z.ZodType<
|
|
1324
|
-
GetAllPromptSnippetsResponseFormatJsonSchema,
|
|
1325
|
-
z.ZodTypeDef,
|
|
1326
|
-
unknown
|
|
1327
|
-
> = z.object({
|
|
1328
|
-
name: z.string(),
|
|
1329
|
-
strict: z.boolean(),
|
|
1330
|
-
schema: z.record(z.any()),
|
|
1331
|
-
});
|
|
1332
|
-
|
|
1333
|
-
/** @internal */
|
|
1334
|
-
export type GetAllPromptSnippetsResponseFormatJsonSchema$Outbound = {
|
|
1335
|
-
name: string;
|
|
1336
|
-
strict: boolean;
|
|
1337
|
-
schema: { [k: string]: any };
|
|
1338
|
-
};
|
|
1339
|
-
|
|
1340
|
-
/** @internal */
|
|
1341
|
-
export const GetAllPromptSnippetsResponseFormatJsonSchema$outboundSchema:
|
|
1342
|
-
z.ZodType<
|
|
1343
|
-
GetAllPromptSnippetsResponseFormatJsonSchema$Outbound,
|
|
1344
|
-
z.ZodTypeDef,
|
|
1345
|
-
GetAllPromptSnippetsResponseFormatJsonSchema
|
|
1346
|
-
> = z.object({
|
|
1347
|
-
name: z.string(),
|
|
1348
|
-
strict: z.boolean(),
|
|
1349
|
-
schema: z.record(z.any()),
|
|
1350
|
-
});
|
|
1351
|
-
|
|
1352
|
-
/**
|
|
1353
|
-
* @internal
|
|
1354
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1355
|
-
*/
|
|
1356
|
-
export namespace GetAllPromptSnippetsResponseFormatJsonSchema$ {
|
|
1357
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatJsonSchema$inboundSchema` instead. */
|
|
1358
|
-
export const inboundSchema =
|
|
1359
|
-
GetAllPromptSnippetsResponseFormatJsonSchema$inboundSchema;
|
|
1360
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatJsonSchema$outboundSchema` instead. */
|
|
1361
|
-
export const outboundSchema =
|
|
1362
|
-
GetAllPromptSnippetsResponseFormatJsonSchema$outboundSchema;
|
|
1363
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatJsonSchema$Outbound` instead. */
|
|
1364
|
-
export type Outbound = GetAllPromptSnippetsResponseFormatJsonSchema$Outbound;
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
export function getAllPromptSnippetsResponseFormatJsonSchemaToJSON(
|
|
1368
|
-
getAllPromptSnippetsResponseFormatJsonSchema:
|
|
1369
|
-
GetAllPromptSnippetsResponseFormatJsonSchema,
|
|
1370
|
-
): string {
|
|
1371
|
-
return JSON.stringify(
|
|
1372
|
-
GetAllPromptSnippetsResponseFormatJsonSchema$outboundSchema.parse(
|
|
1373
|
-
getAllPromptSnippetsResponseFormatJsonSchema,
|
|
1374
|
-
),
|
|
1375
|
-
);
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
export function getAllPromptSnippetsResponseFormatJsonSchemaFromJSON(
|
|
1379
|
-
jsonString: string,
|
|
1380
|
-
): SafeParseResult<
|
|
1381
|
-
GetAllPromptSnippetsResponseFormatJsonSchema,
|
|
1382
|
-
SDKValidationError
|
|
1383
|
-
> {
|
|
1384
|
-
return safeParse(
|
|
1385
|
-
jsonString,
|
|
1386
|
-
(x) =>
|
|
1387
|
-
GetAllPromptSnippetsResponseFormatJsonSchema$inboundSchema.parse(
|
|
1388
|
-
JSON.parse(x),
|
|
1389
|
-
),
|
|
1390
|
-
`Failed to parse 'GetAllPromptSnippetsResponseFormatJsonSchema' from JSON`,
|
|
1391
|
-
);
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
/** @internal */
|
|
1395
|
-
export const GetAllPromptSnippetsResponseFormat1$inboundSchema: z.ZodType<
|
|
1396
|
-
GetAllPromptSnippetsResponseFormat1,
|
|
1397
|
-
z.ZodTypeDef,
|
|
1398
|
-
unknown
|
|
1399
|
-
> = z.object({
|
|
1400
|
-
type: GetAllPromptSnippetsResponseFormatType$inboundSchema,
|
|
1401
|
-
json_schema: z.lazy(() =>
|
|
1402
|
-
GetAllPromptSnippetsResponseFormatJsonSchema$inboundSchema
|
|
1403
|
-
),
|
|
1404
|
-
}).transform((v) => {
|
|
1405
|
-
return remap$(v, {
|
|
1406
|
-
"json_schema": "jsonSchema",
|
|
1407
|
-
});
|
|
1408
|
-
});
|
|
1409
|
-
|
|
1410
|
-
/** @internal */
|
|
1411
|
-
export type GetAllPromptSnippetsResponseFormat1$Outbound = {
|
|
1412
|
-
type: string;
|
|
1413
|
-
json_schema: GetAllPromptSnippetsResponseFormatJsonSchema$Outbound;
|
|
1414
|
-
};
|
|
1415
|
-
|
|
1416
|
-
/** @internal */
|
|
1417
|
-
export const GetAllPromptSnippetsResponseFormat1$outboundSchema: z.ZodType<
|
|
1418
|
-
GetAllPromptSnippetsResponseFormat1$Outbound,
|
|
1419
|
-
z.ZodTypeDef,
|
|
1420
|
-
GetAllPromptSnippetsResponseFormat1
|
|
1421
|
-
> = z.object({
|
|
1422
|
-
type: GetAllPromptSnippetsResponseFormatType$outboundSchema,
|
|
1423
|
-
jsonSchema: z.lazy(() =>
|
|
1424
|
-
GetAllPromptSnippetsResponseFormatJsonSchema$outboundSchema
|
|
1425
|
-
),
|
|
1426
|
-
}).transform((v) => {
|
|
1427
|
-
return remap$(v, {
|
|
1428
|
-
jsonSchema: "json_schema",
|
|
1429
|
-
});
|
|
1430
|
-
});
|
|
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 GetAllPromptSnippetsResponseFormat1$ {
|
|
1437
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormat1$inboundSchema` instead. */
|
|
1438
|
-
export const inboundSchema =
|
|
1439
|
-
GetAllPromptSnippetsResponseFormat1$inboundSchema;
|
|
1440
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormat1$outboundSchema` instead. */
|
|
1441
|
-
export const outboundSchema =
|
|
1442
|
-
GetAllPromptSnippetsResponseFormat1$outboundSchema;
|
|
1443
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormat1$Outbound` instead. */
|
|
1444
|
-
export type Outbound = GetAllPromptSnippetsResponseFormat1$Outbound;
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
export function getAllPromptSnippetsResponseFormat1ToJSON(
|
|
1448
|
-
getAllPromptSnippetsResponseFormat1: GetAllPromptSnippetsResponseFormat1,
|
|
1449
|
-
): string {
|
|
1450
|
-
return JSON.stringify(
|
|
1451
|
-
GetAllPromptSnippetsResponseFormat1$outboundSchema.parse(
|
|
1452
|
-
getAllPromptSnippetsResponseFormat1,
|
|
1453
|
-
),
|
|
1454
|
-
);
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
export function getAllPromptSnippetsResponseFormat1FromJSON(
|
|
1458
|
-
jsonString: string,
|
|
1459
|
-
): SafeParseResult<GetAllPromptSnippetsResponseFormat1, SDKValidationError> {
|
|
1460
|
-
return safeParse(
|
|
1461
|
-
jsonString,
|
|
1462
|
-
(x) =>
|
|
1463
|
-
GetAllPromptSnippetsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
1464
|
-
`Failed to parse 'GetAllPromptSnippetsResponseFormat1' from JSON`,
|
|
1465
|
-
);
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
/** @internal */
|
|
1469
|
-
export const GetAllPromptSnippetsResponseFormat$inboundSchema: z.ZodType<
|
|
1470
|
-
GetAllPromptSnippetsResponseFormat,
|
|
1471
|
-
z.ZodTypeDef,
|
|
1472
|
-
unknown
|
|
1473
|
-
> = z.union([
|
|
1474
|
-
z.lazy(() => GetAllPromptSnippetsResponseFormat2$inboundSchema),
|
|
1475
|
-
z.lazy(() => GetAllPromptSnippetsResponseFormat1$inboundSchema),
|
|
1476
|
-
]);
|
|
1477
|
-
|
|
1478
|
-
/** @internal */
|
|
1479
|
-
export type GetAllPromptSnippetsResponseFormat$Outbound =
|
|
1480
|
-
| GetAllPromptSnippetsResponseFormat2$Outbound
|
|
1481
|
-
| GetAllPromptSnippetsResponseFormat1$Outbound;
|
|
1482
|
-
|
|
1483
|
-
/** @internal */
|
|
1484
|
-
export const GetAllPromptSnippetsResponseFormat$outboundSchema: z.ZodType<
|
|
1485
|
-
GetAllPromptSnippetsResponseFormat$Outbound,
|
|
1486
|
-
z.ZodTypeDef,
|
|
1487
|
-
GetAllPromptSnippetsResponseFormat
|
|
1488
|
-
> = z.union([
|
|
1489
|
-
z.lazy(() => GetAllPromptSnippetsResponseFormat2$outboundSchema),
|
|
1490
|
-
z.lazy(() => GetAllPromptSnippetsResponseFormat1$outboundSchema),
|
|
1491
|
-
]);
|
|
1492
|
-
|
|
1493
|
-
/**
|
|
1494
|
-
* @internal
|
|
1495
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1496
|
-
*/
|
|
1497
|
-
export namespace GetAllPromptSnippetsResponseFormat$ {
|
|
1498
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormat$inboundSchema` instead. */
|
|
1499
|
-
export const inboundSchema = GetAllPromptSnippetsResponseFormat$inboundSchema;
|
|
1500
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormat$outboundSchema` instead. */
|
|
1501
|
-
export const outboundSchema =
|
|
1502
|
-
GetAllPromptSnippetsResponseFormat$outboundSchema;
|
|
1503
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormat$Outbound` instead. */
|
|
1504
|
-
export type Outbound = GetAllPromptSnippetsResponseFormat$Outbound;
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
export function getAllPromptSnippetsResponseFormatToJSON(
|
|
1508
|
-
getAllPromptSnippetsResponseFormat: GetAllPromptSnippetsResponseFormat,
|
|
1509
|
-
): string {
|
|
1510
|
-
return JSON.stringify(
|
|
1511
|
-
GetAllPromptSnippetsResponseFormat$outboundSchema.parse(
|
|
1512
|
-
getAllPromptSnippetsResponseFormat,
|
|
1513
|
-
),
|
|
1514
|
-
);
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
|
-
export function getAllPromptSnippetsResponseFormatFromJSON(
|
|
1518
|
-
jsonString: string,
|
|
1519
|
-
): SafeParseResult<GetAllPromptSnippetsResponseFormat, SDKValidationError> {
|
|
1520
|
-
return safeParse(
|
|
1521
|
-
jsonString,
|
|
1522
|
-
(x) =>
|
|
1523
|
-
GetAllPromptSnippetsResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1524
|
-
`Failed to parse 'GetAllPromptSnippetsResponseFormat' from JSON`,
|
|
1525
|
-
);
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
/** @internal */
|
|
1529
|
-
export const GetAllPromptSnippetsPhotoRealVersion$inboundSchema:
|
|
1530
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPhotoRealVersion> = z.nativeEnum(
|
|
1531
|
-
GetAllPromptSnippetsPhotoRealVersion,
|
|
1532
|
-
);
|
|
1533
|
-
|
|
1534
|
-
/** @internal */
|
|
1535
|
-
export const GetAllPromptSnippetsPhotoRealVersion$outboundSchema:
|
|
1536
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPhotoRealVersion> =
|
|
1537
|
-
GetAllPromptSnippetsPhotoRealVersion$inboundSchema;
|
|
1538
|
-
|
|
1539
|
-
/**
|
|
1540
|
-
* @internal
|
|
1541
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1542
|
-
*/
|
|
1543
|
-
export namespace GetAllPromptSnippetsPhotoRealVersion$ {
|
|
1544
|
-
/** @deprecated use `GetAllPromptSnippetsPhotoRealVersion$inboundSchema` instead. */
|
|
1545
|
-
export const inboundSchema =
|
|
1546
|
-
GetAllPromptSnippetsPhotoRealVersion$inboundSchema;
|
|
1547
|
-
/** @deprecated use `GetAllPromptSnippetsPhotoRealVersion$outboundSchema` instead. */
|
|
1548
|
-
export const outboundSchema =
|
|
1549
|
-
GetAllPromptSnippetsPhotoRealVersion$outboundSchema;
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
/** @internal */
|
|
1553
|
-
export const GetAllPromptSnippetsEncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
1554
|
-
typeof GetAllPromptSnippetsEncodingFormat
|
|
1555
|
-
> = z.nativeEnum(GetAllPromptSnippetsEncodingFormat);
|
|
1556
|
-
|
|
1557
|
-
/** @internal */
|
|
1558
|
-
export const GetAllPromptSnippetsEncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
1559
|
-
typeof GetAllPromptSnippetsEncodingFormat
|
|
1560
|
-
> = GetAllPromptSnippetsEncodingFormat$inboundSchema;
|
|
1561
|
-
|
|
1562
|
-
/**
|
|
1563
|
-
* @internal
|
|
1564
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1565
|
-
*/
|
|
1566
|
-
export namespace GetAllPromptSnippetsEncodingFormat$ {
|
|
1567
|
-
/** @deprecated use `GetAllPromptSnippetsEncodingFormat$inboundSchema` instead. */
|
|
1568
|
-
export const inboundSchema = GetAllPromptSnippetsEncodingFormat$inboundSchema;
|
|
1569
|
-
/** @deprecated use `GetAllPromptSnippetsEncodingFormat$outboundSchema` instead. */
|
|
1570
|
-
export const outboundSchema =
|
|
1571
|
-
GetAllPromptSnippetsEncodingFormat$outboundSchema;
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
/** @internal */
|
|
1575
|
-
export const GetAllPromptSnippetsReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1576
|
-
typeof GetAllPromptSnippetsReasoningEffort
|
|
1577
|
-
> = z.nativeEnum(GetAllPromptSnippetsReasoningEffort);
|
|
1578
|
-
|
|
1579
|
-
/** @internal */
|
|
1580
|
-
export const GetAllPromptSnippetsReasoningEffort$outboundSchema:
|
|
1581
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsReasoningEffort> =
|
|
1582
|
-
GetAllPromptSnippetsReasoningEffort$inboundSchema;
|
|
1583
|
-
|
|
1584
|
-
/**
|
|
1585
|
-
* @internal
|
|
1586
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1587
|
-
*/
|
|
1588
|
-
export namespace GetAllPromptSnippetsReasoningEffort$ {
|
|
1589
|
-
/** @deprecated use `GetAllPromptSnippetsReasoningEffort$inboundSchema` instead. */
|
|
1590
|
-
export const inboundSchema =
|
|
1591
|
-
GetAllPromptSnippetsReasoningEffort$inboundSchema;
|
|
1592
|
-
/** @deprecated use `GetAllPromptSnippetsReasoningEffort$outboundSchema` instead. */
|
|
1593
|
-
export const outboundSchema =
|
|
1594
|
-
GetAllPromptSnippetsReasoningEffort$outboundSchema;
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
/** @internal */
|
|
1598
|
-
export const GetAllPromptSnippetsModelParameters$inboundSchema: z.ZodType<
|
|
1599
|
-
GetAllPromptSnippetsModelParameters,
|
|
1600
|
-
z.ZodTypeDef,
|
|
1601
|
-
unknown
|
|
1602
|
-
> = z.object({
|
|
1603
|
-
temperature: z.number().optional(),
|
|
1604
|
-
maxTokens: z.number().optional(),
|
|
1605
|
-
topK: z.number().optional(),
|
|
1606
|
-
topP: z.number().optional(),
|
|
1607
|
-
frequencyPenalty: z.number().optional(),
|
|
1608
|
-
presencePenalty: z.number().optional(),
|
|
1609
|
-
numImages: z.number().optional(),
|
|
1610
|
-
seed: z.number().optional(),
|
|
1611
|
-
format: GetAllPromptSnippetsFormat$inboundSchema.optional(),
|
|
1612
|
-
dimensions: z.string().optional(),
|
|
1613
|
-
quality: GetAllPromptSnippetsQuality$inboundSchema.optional(),
|
|
1614
|
-
style: z.string().optional(),
|
|
1615
|
-
responseFormat: z.nullable(
|
|
1616
|
-
z.union([
|
|
1617
|
-
z.lazy(() => GetAllPromptSnippetsResponseFormat2$inboundSchema),
|
|
1618
|
-
z.lazy(() => GetAllPromptSnippetsResponseFormat1$inboundSchema),
|
|
1619
|
-
]),
|
|
1620
|
-
).optional(),
|
|
1621
|
-
photoRealVersion: GetAllPromptSnippetsPhotoRealVersion$inboundSchema
|
|
1622
|
-
.optional(),
|
|
1623
|
-
encoding_format: GetAllPromptSnippetsEncodingFormat$inboundSchema.optional(),
|
|
1624
|
-
reasoningEffort: GetAllPromptSnippetsReasoningEffort$inboundSchema.optional(),
|
|
1625
|
-
}).transform((v) => {
|
|
1626
|
-
return remap$(v, {
|
|
1627
|
-
"encoding_format": "encodingFormat",
|
|
1628
|
-
});
|
|
1629
|
-
});
|
|
1630
|
-
|
|
1631
|
-
/** @internal */
|
|
1632
|
-
export type GetAllPromptSnippetsModelParameters$Outbound = {
|
|
1633
|
-
temperature?: number | undefined;
|
|
1634
|
-
maxTokens?: number | undefined;
|
|
1635
|
-
topK?: number | undefined;
|
|
1636
|
-
topP?: number | undefined;
|
|
1637
|
-
frequencyPenalty?: number | undefined;
|
|
1638
|
-
presencePenalty?: number | undefined;
|
|
1639
|
-
numImages?: number | undefined;
|
|
1640
|
-
seed?: number | undefined;
|
|
1641
|
-
format?: string | undefined;
|
|
1642
|
-
dimensions?: string | undefined;
|
|
1643
|
-
quality?: string | undefined;
|
|
1644
|
-
style?: string | undefined;
|
|
1645
|
-
responseFormat?:
|
|
1646
|
-
| GetAllPromptSnippetsResponseFormat2$Outbound
|
|
1647
|
-
| GetAllPromptSnippetsResponseFormat1$Outbound
|
|
1648
|
-
| null
|
|
1649
|
-
| undefined;
|
|
1650
|
-
photoRealVersion?: string | undefined;
|
|
1651
|
-
encoding_format?: string | undefined;
|
|
1652
|
-
reasoningEffort?: string | undefined;
|
|
1653
|
-
};
|
|
1654
|
-
|
|
1655
|
-
/** @internal */
|
|
1656
|
-
export const GetAllPromptSnippetsModelParameters$outboundSchema: z.ZodType<
|
|
1657
|
-
GetAllPromptSnippetsModelParameters$Outbound,
|
|
1658
|
-
z.ZodTypeDef,
|
|
1659
|
-
GetAllPromptSnippetsModelParameters
|
|
1660
|
-
> = z.object({
|
|
1661
|
-
temperature: z.number().optional(),
|
|
1662
|
-
maxTokens: z.number().optional(),
|
|
1663
|
-
topK: z.number().optional(),
|
|
1664
|
-
topP: z.number().optional(),
|
|
1665
|
-
frequencyPenalty: z.number().optional(),
|
|
1666
|
-
presencePenalty: z.number().optional(),
|
|
1667
|
-
numImages: z.number().optional(),
|
|
1668
|
-
seed: z.number().optional(),
|
|
1669
|
-
format: GetAllPromptSnippetsFormat$outboundSchema.optional(),
|
|
1670
|
-
dimensions: z.string().optional(),
|
|
1671
|
-
quality: GetAllPromptSnippetsQuality$outboundSchema.optional(),
|
|
1672
|
-
style: z.string().optional(),
|
|
1673
|
-
responseFormat: z.nullable(
|
|
1674
|
-
z.union([
|
|
1675
|
-
z.lazy(() => GetAllPromptSnippetsResponseFormat2$outboundSchema),
|
|
1676
|
-
z.lazy(() => GetAllPromptSnippetsResponseFormat1$outboundSchema),
|
|
1677
|
-
]),
|
|
1678
|
-
).optional(),
|
|
1679
|
-
photoRealVersion: GetAllPromptSnippetsPhotoRealVersion$outboundSchema
|
|
1680
|
-
.optional(),
|
|
1681
|
-
encodingFormat: GetAllPromptSnippetsEncodingFormat$outboundSchema.optional(),
|
|
1682
|
-
reasoningEffort: GetAllPromptSnippetsReasoningEffort$outboundSchema
|
|
1683
|
-
.optional(),
|
|
1684
|
-
}).transform((v) => {
|
|
1685
|
-
return remap$(v, {
|
|
1686
|
-
encodingFormat: "encoding_format",
|
|
1687
|
-
});
|
|
1688
|
-
});
|
|
1689
|
-
|
|
1690
|
-
/**
|
|
1691
|
-
* @internal
|
|
1692
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1693
|
-
*/
|
|
1694
|
-
export namespace GetAllPromptSnippetsModelParameters$ {
|
|
1695
|
-
/** @deprecated use `GetAllPromptSnippetsModelParameters$inboundSchema` instead. */
|
|
1696
|
-
export const inboundSchema =
|
|
1697
|
-
GetAllPromptSnippetsModelParameters$inboundSchema;
|
|
1698
|
-
/** @deprecated use `GetAllPromptSnippetsModelParameters$outboundSchema` instead. */
|
|
1699
|
-
export const outboundSchema =
|
|
1700
|
-
GetAllPromptSnippetsModelParameters$outboundSchema;
|
|
1701
|
-
/** @deprecated use `GetAllPromptSnippetsModelParameters$Outbound` instead. */
|
|
1702
|
-
export type Outbound = GetAllPromptSnippetsModelParameters$Outbound;
|
|
1703
|
-
}
|
|
1704
|
-
|
|
1705
|
-
export function getAllPromptSnippetsModelParametersToJSON(
|
|
1706
|
-
getAllPromptSnippetsModelParameters: GetAllPromptSnippetsModelParameters,
|
|
1707
|
-
): string {
|
|
1708
|
-
return JSON.stringify(
|
|
1709
|
-
GetAllPromptSnippetsModelParameters$outboundSchema.parse(
|
|
1710
|
-
getAllPromptSnippetsModelParameters,
|
|
1711
|
-
),
|
|
1712
|
-
);
|
|
1713
|
-
}
|
|
1714
|
-
|
|
1715
|
-
export function getAllPromptSnippetsModelParametersFromJSON(
|
|
1716
|
-
jsonString: string,
|
|
1717
|
-
): SafeParseResult<GetAllPromptSnippetsModelParameters, SDKValidationError> {
|
|
1718
|
-
return safeParse(
|
|
1719
|
-
jsonString,
|
|
1720
|
-
(x) =>
|
|
1721
|
-
GetAllPromptSnippetsModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1722
|
-
`Failed to parse 'GetAllPromptSnippetsModelParameters' from JSON`,
|
|
1723
|
-
);
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
/** @internal */
|
|
1727
|
-
export const GetAllPromptSnippetsProvider$inboundSchema: z.ZodNativeEnum<
|
|
1728
|
-
typeof GetAllPromptSnippetsProvider
|
|
1729
|
-
> = z.nativeEnum(GetAllPromptSnippetsProvider);
|
|
1730
|
-
|
|
1731
|
-
/** @internal */
|
|
1732
|
-
export const GetAllPromptSnippetsProvider$outboundSchema: z.ZodNativeEnum<
|
|
1733
|
-
typeof GetAllPromptSnippetsProvider
|
|
1734
|
-
> = GetAllPromptSnippetsProvider$inboundSchema;
|
|
1735
|
-
|
|
1736
|
-
/**
|
|
1737
|
-
* @internal
|
|
1738
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1739
|
-
*/
|
|
1740
|
-
export namespace GetAllPromptSnippetsProvider$ {
|
|
1741
|
-
/** @deprecated use `GetAllPromptSnippetsProvider$inboundSchema` instead. */
|
|
1742
|
-
export const inboundSchema = GetAllPromptSnippetsProvider$inboundSchema;
|
|
1743
|
-
/** @deprecated use `GetAllPromptSnippetsProvider$outboundSchema` instead. */
|
|
1744
|
-
export const outboundSchema = GetAllPromptSnippetsProvider$outboundSchema;
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1747
|
-
/** @internal */
|
|
1748
|
-
export const GetAllPromptSnippetsRole$inboundSchema: z.ZodNativeEnum<
|
|
1749
|
-
typeof GetAllPromptSnippetsRole
|
|
1750
|
-
> = z.nativeEnum(GetAllPromptSnippetsRole);
|
|
1751
|
-
|
|
1752
|
-
/** @internal */
|
|
1753
|
-
export const GetAllPromptSnippetsRole$outboundSchema: z.ZodNativeEnum<
|
|
1754
|
-
typeof GetAllPromptSnippetsRole
|
|
1755
|
-
> = GetAllPromptSnippetsRole$inboundSchema;
|
|
1756
|
-
|
|
1757
|
-
/**
|
|
1758
|
-
* @internal
|
|
1759
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1760
|
-
*/
|
|
1761
|
-
export namespace GetAllPromptSnippetsRole$ {
|
|
1762
|
-
/** @deprecated use `GetAllPromptSnippetsRole$inboundSchema` instead. */
|
|
1763
|
-
export const inboundSchema = GetAllPromptSnippetsRole$inboundSchema;
|
|
1764
|
-
/** @deprecated use `GetAllPromptSnippetsRole$outboundSchema` instead. */
|
|
1765
|
-
export const outboundSchema = GetAllPromptSnippetsRole$outboundSchema;
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1768
|
-
/** @internal */
|
|
1769
|
-
export const GetAllPromptSnippets2PromptSnippetsType$inboundSchema:
|
|
1770
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippets2PromptSnippetsType> = z
|
|
1771
|
-
.nativeEnum(GetAllPromptSnippets2PromptSnippetsType);
|
|
1772
|
-
|
|
1773
|
-
/** @internal */
|
|
1774
|
-
export const GetAllPromptSnippets2PromptSnippetsType$outboundSchema:
|
|
1775
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippets2PromptSnippetsType> =
|
|
1776
|
-
GetAllPromptSnippets2PromptSnippetsType$inboundSchema;
|
|
1777
|
-
|
|
1778
|
-
/**
|
|
1779
|
-
* @internal
|
|
1780
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1781
|
-
*/
|
|
1782
|
-
export namespace GetAllPromptSnippets2PromptSnippetsType$ {
|
|
1783
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippetsType$inboundSchema` instead. */
|
|
1784
|
-
export const inboundSchema =
|
|
1785
|
-
GetAllPromptSnippets2PromptSnippetsType$inboundSchema;
|
|
1786
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippetsType$outboundSchema` instead. */
|
|
1787
|
-
export const outboundSchema =
|
|
1788
|
-
GetAllPromptSnippets2PromptSnippetsType$outboundSchema;
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
/** @internal */
|
|
1792
|
-
export const GetAllPromptSnippets2ImageUrl$inboundSchema: z.ZodType<
|
|
1793
|
-
GetAllPromptSnippets2ImageUrl,
|
|
1794
|
-
z.ZodTypeDef,
|
|
1795
|
-
unknown
|
|
1796
|
-
> = z.object({
|
|
1797
|
-
id: z.string().optional(),
|
|
1798
|
-
url: z.string(),
|
|
1799
|
-
detail: z.string().optional(),
|
|
1800
|
-
});
|
|
1801
|
-
|
|
1802
|
-
/** @internal */
|
|
1803
|
-
export type GetAllPromptSnippets2ImageUrl$Outbound = {
|
|
1804
|
-
id?: string | undefined;
|
|
1805
|
-
url: string;
|
|
1806
|
-
detail?: string | undefined;
|
|
1807
|
-
};
|
|
1808
|
-
|
|
1809
|
-
/** @internal */
|
|
1810
|
-
export const GetAllPromptSnippets2ImageUrl$outboundSchema: z.ZodType<
|
|
1811
|
-
GetAllPromptSnippets2ImageUrl$Outbound,
|
|
1812
|
-
z.ZodTypeDef,
|
|
1813
|
-
GetAllPromptSnippets2ImageUrl
|
|
1814
|
-
> = z.object({
|
|
1815
|
-
id: z.string().optional(),
|
|
1816
|
-
url: z.string(),
|
|
1817
|
-
detail: z.string().optional(),
|
|
1818
|
-
});
|
|
1819
|
-
|
|
1820
|
-
/**
|
|
1821
|
-
* @internal
|
|
1822
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1823
|
-
*/
|
|
1824
|
-
export namespace GetAllPromptSnippets2ImageUrl$ {
|
|
1825
|
-
/** @deprecated use `GetAllPromptSnippets2ImageUrl$inboundSchema` instead. */
|
|
1826
|
-
export const inboundSchema = GetAllPromptSnippets2ImageUrl$inboundSchema;
|
|
1827
|
-
/** @deprecated use `GetAllPromptSnippets2ImageUrl$outboundSchema` instead. */
|
|
1828
|
-
export const outboundSchema = GetAllPromptSnippets2ImageUrl$outboundSchema;
|
|
1829
|
-
/** @deprecated use `GetAllPromptSnippets2ImageUrl$Outbound` instead. */
|
|
1830
|
-
export type Outbound = GetAllPromptSnippets2ImageUrl$Outbound;
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
export function getAllPromptSnippets2ImageUrlToJSON(
|
|
1834
|
-
getAllPromptSnippets2ImageUrl: GetAllPromptSnippets2ImageUrl,
|
|
1835
|
-
): string {
|
|
1836
|
-
return JSON.stringify(
|
|
1837
|
-
GetAllPromptSnippets2ImageUrl$outboundSchema.parse(
|
|
1838
|
-
getAllPromptSnippets2ImageUrl,
|
|
1839
|
-
),
|
|
1840
|
-
);
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
export function getAllPromptSnippets2ImageUrlFromJSON(
|
|
1844
|
-
jsonString: string,
|
|
1845
|
-
): SafeParseResult<GetAllPromptSnippets2ImageUrl, SDKValidationError> {
|
|
1846
|
-
return safeParse(
|
|
1847
|
-
jsonString,
|
|
1848
|
-
(x) => GetAllPromptSnippets2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1849
|
-
`Failed to parse 'GetAllPromptSnippets2ImageUrl' from JSON`,
|
|
1850
|
-
);
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
/** @internal */
|
|
1854
|
-
export const GetAllPromptSnippets22$inboundSchema: z.ZodType<
|
|
1855
|
-
GetAllPromptSnippets22,
|
|
1856
|
-
z.ZodTypeDef,
|
|
1857
|
-
unknown
|
|
1858
|
-
> = z.object({
|
|
1859
|
-
type: GetAllPromptSnippets2PromptSnippetsType$inboundSchema,
|
|
1860
|
-
image_url: z.lazy(() => GetAllPromptSnippets2ImageUrl$inboundSchema),
|
|
1861
|
-
}).transform((v) => {
|
|
1862
|
-
return remap$(v, {
|
|
1863
|
-
"image_url": "imageUrl",
|
|
1864
|
-
});
|
|
1865
|
-
});
|
|
1866
|
-
|
|
1867
|
-
/** @internal */
|
|
1868
|
-
export type GetAllPromptSnippets22$Outbound = {
|
|
1869
|
-
type: string;
|
|
1870
|
-
image_url: GetAllPromptSnippets2ImageUrl$Outbound;
|
|
1871
|
-
};
|
|
1872
|
-
|
|
1873
|
-
/** @internal */
|
|
1874
|
-
export const GetAllPromptSnippets22$outboundSchema: z.ZodType<
|
|
1875
|
-
GetAllPromptSnippets22$Outbound,
|
|
1876
|
-
z.ZodTypeDef,
|
|
1877
|
-
GetAllPromptSnippets22
|
|
1878
|
-
> = z.object({
|
|
1879
|
-
type: GetAllPromptSnippets2PromptSnippetsType$outboundSchema,
|
|
1880
|
-
imageUrl: z.lazy(() => GetAllPromptSnippets2ImageUrl$outboundSchema),
|
|
1881
|
-
}).transform((v) => {
|
|
1882
|
-
return remap$(v, {
|
|
1883
|
-
imageUrl: "image_url",
|
|
1884
|
-
});
|
|
1885
|
-
});
|
|
1886
|
-
|
|
1887
|
-
/**
|
|
1888
|
-
* @internal
|
|
1889
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1890
|
-
*/
|
|
1891
|
-
export namespace GetAllPromptSnippets22$ {
|
|
1892
|
-
/** @deprecated use `GetAllPromptSnippets22$inboundSchema` instead. */
|
|
1893
|
-
export const inboundSchema = GetAllPromptSnippets22$inboundSchema;
|
|
1894
|
-
/** @deprecated use `GetAllPromptSnippets22$outboundSchema` instead. */
|
|
1895
|
-
export const outboundSchema = GetAllPromptSnippets22$outboundSchema;
|
|
1896
|
-
/** @deprecated use `GetAllPromptSnippets22$Outbound` instead. */
|
|
1897
|
-
export type Outbound = GetAllPromptSnippets22$Outbound;
|
|
1898
|
-
}
|
|
1899
|
-
|
|
1900
|
-
export function getAllPromptSnippets22ToJSON(
|
|
1901
|
-
getAllPromptSnippets22: GetAllPromptSnippets22,
|
|
1902
|
-
): string {
|
|
1903
|
-
return JSON.stringify(
|
|
1904
|
-
GetAllPromptSnippets22$outboundSchema.parse(getAllPromptSnippets22),
|
|
1905
|
-
);
|
|
1906
|
-
}
|
|
1907
|
-
|
|
1908
|
-
export function getAllPromptSnippets22FromJSON(
|
|
1909
|
-
jsonString: string,
|
|
1910
|
-
): SafeParseResult<GetAllPromptSnippets22, SDKValidationError> {
|
|
1911
|
-
return safeParse(
|
|
1912
|
-
jsonString,
|
|
1913
|
-
(x) => GetAllPromptSnippets22$inboundSchema.parse(JSON.parse(x)),
|
|
1914
|
-
`Failed to parse 'GetAllPromptSnippets22' from JSON`,
|
|
1915
|
-
);
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
/** @internal */
|
|
1919
|
-
export const GetAllPromptSnippets2Type$inboundSchema: z.ZodNativeEnum<
|
|
1920
|
-
typeof GetAllPromptSnippets2Type
|
|
1921
|
-
> = z.nativeEnum(GetAllPromptSnippets2Type);
|
|
1922
|
-
|
|
1923
|
-
/** @internal */
|
|
1924
|
-
export const GetAllPromptSnippets2Type$outboundSchema: z.ZodNativeEnum<
|
|
1925
|
-
typeof GetAllPromptSnippets2Type
|
|
1926
|
-
> = GetAllPromptSnippets2Type$inboundSchema;
|
|
1927
|
-
|
|
1928
|
-
/**
|
|
1929
|
-
* @internal
|
|
1930
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1931
|
-
*/
|
|
1932
|
-
export namespace GetAllPromptSnippets2Type$ {
|
|
1933
|
-
/** @deprecated use `GetAllPromptSnippets2Type$inboundSchema` instead. */
|
|
1934
|
-
export const inboundSchema = GetAllPromptSnippets2Type$inboundSchema;
|
|
1935
|
-
/** @deprecated use `GetAllPromptSnippets2Type$outboundSchema` instead. */
|
|
1936
|
-
export const outboundSchema = GetAllPromptSnippets2Type$outboundSchema;
|
|
1937
|
-
}
|
|
1938
|
-
|
|
1939
|
-
/** @internal */
|
|
1940
|
-
export const GetAllPromptSnippets21$inboundSchema: z.ZodType<
|
|
1941
|
-
GetAllPromptSnippets21,
|
|
1942
|
-
z.ZodTypeDef,
|
|
1943
|
-
unknown
|
|
1944
|
-
> = z.object({
|
|
1945
|
-
type: GetAllPromptSnippets2Type$inboundSchema,
|
|
1946
|
-
text: z.string(),
|
|
1947
|
-
});
|
|
1948
|
-
|
|
1949
|
-
/** @internal */
|
|
1950
|
-
export type GetAllPromptSnippets21$Outbound = {
|
|
1951
|
-
type: string;
|
|
1952
|
-
text: string;
|
|
1953
|
-
};
|
|
1954
|
-
|
|
1955
|
-
/** @internal */
|
|
1956
|
-
export const GetAllPromptSnippets21$outboundSchema: z.ZodType<
|
|
1957
|
-
GetAllPromptSnippets21$Outbound,
|
|
1958
|
-
z.ZodTypeDef,
|
|
1959
|
-
GetAllPromptSnippets21
|
|
1960
|
-
> = z.object({
|
|
1961
|
-
type: GetAllPromptSnippets2Type$outboundSchema,
|
|
1962
|
-
text: z.string(),
|
|
1963
|
-
});
|
|
1964
|
-
|
|
1965
|
-
/**
|
|
1966
|
-
* @internal
|
|
1967
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1968
|
-
*/
|
|
1969
|
-
export namespace GetAllPromptSnippets21$ {
|
|
1970
|
-
/** @deprecated use `GetAllPromptSnippets21$inboundSchema` instead. */
|
|
1971
|
-
export const inboundSchema = GetAllPromptSnippets21$inboundSchema;
|
|
1972
|
-
/** @deprecated use `GetAllPromptSnippets21$outboundSchema` instead. */
|
|
1973
|
-
export const outboundSchema = GetAllPromptSnippets21$outboundSchema;
|
|
1974
|
-
/** @deprecated use `GetAllPromptSnippets21$Outbound` instead. */
|
|
1975
|
-
export type Outbound = GetAllPromptSnippets21$Outbound;
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
export function getAllPromptSnippets21ToJSON(
|
|
1979
|
-
getAllPromptSnippets21: GetAllPromptSnippets21,
|
|
1980
|
-
): string {
|
|
1981
|
-
return JSON.stringify(
|
|
1982
|
-
GetAllPromptSnippets21$outboundSchema.parse(getAllPromptSnippets21),
|
|
1983
|
-
);
|
|
1984
|
-
}
|
|
1985
|
-
|
|
1986
|
-
export function getAllPromptSnippets21FromJSON(
|
|
1987
|
-
jsonString: string,
|
|
1988
|
-
): SafeParseResult<GetAllPromptSnippets21, SDKValidationError> {
|
|
1989
|
-
return safeParse(
|
|
1990
|
-
jsonString,
|
|
1991
|
-
(x) => GetAllPromptSnippets21$inboundSchema.parse(JSON.parse(x)),
|
|
1992
|
-
`Failed to parse 'GetAllPromptSnippets21' from JSON`,
|
|
1993
|
-
);
|
|
1994
|
-
}
|
|
1995
|
-
|
|
1996
|
-
/** @internal */
|
|
1997
|
-
export const GetAllPromptSnippetsContent2$inboundSchema: z.ZodType<
|
|
1998
|
-
GetAllPromptSnippetsContent2,
|
|
1999
|
-
z.ZodTypeDef,
|
|
2000
|
-
unknown
|
|
2001
|
-
> = z.union([
|
|
2002
|
-
z.lazy(() => GetAllPromptSnippets21$inboundSchema),
|
|
2003
|
-
z.lazy(() => GetAllPromptSnippets22$inboundSchema),
|
|
2004
|
-
]);
|
|
2005
|
-
|
|
2006
|
-
/** @internal */
|
|
2007
|
-
export type GetAllPromptSnippetsContent2$Outbound =
|
|
2008
|
-
| GetAllPromptSnippets21$Outbound
|
|
2009
|
-
| GetAllPromptSnippets22$Outbound;
|
|
2010
|
-
|
|
2011
|
-
/** @internal */
|
|
2012
|
-
export const GetAllPromptSnippetsContent2$outboundSchema: z.ZodType<
|
|
2013
|
-
GetAllPromptSnippetsContent2$Outbound,
|
|
2014
|
-
z.ZodTypeDef,
|
|
2015
|
-
GetAllPromptSnippetsContent2
|
|
2016
|
-
> = z.union([
|
|
2017
|
-
z.lazy(() => GetAllPromptSnippets21$outboundSchema),
|
|
2018
|
-
z.lazy(() => GetAllPromptSnippets22$outboundSchema),
|
|
2019
|
-
]);
|
|
2020
|
-
|
|
2021
|
-
/**
|
|
2022
|
-
* @internal
|
|
2023
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2024
|
-
*/
|
|
2025
|
-
export namespace GetAllPromptSnippetsContent2$ {
|
|
2026
|
-
/** @deprecated use `GetAllPromptSnippetsContent2$inboundSchema` instead. */
|
|
2027
|
-
export const inboundSchema = GetAllPromptSnippetsContent2$inboundSchema;
|
|
2028
|
-
/** @deprecated use `GetAllPromptSnippetsContent2$outboundSchema` instead. */
|
|
2029
|
-
export const outboundSchema = GetAllPromptSnippetsContent2$outboundSchema;
|
|
2030
|
-
/** @deprecated use `GetAllPromptSnippetsContent2$Outbound` instead. */
|
|
2031
|
-
export type Outbound = GetAllPromptSnippetsContent2$Outbound;
|
|
2032
|
-
}
|
|
2033
|
-
|
|
2034
|
-
export function getAllPromptSnippetsContent2ToJSON(
|
|
2035
|
-
getAllPromptSnippetsContent2: GetAllPromptSnippetsContent2,
|
|
2036
|
-
): string {
|
|
2037
|
-
return JSON.stringify(
|
|
2038
|
-
GetAllPromptSnippetsContent2$outboundSchema.parse(
|
|
2039
|
-
getAllPromptSnippetsContent2,
|
|
2040
|
-
),
|
|
2041
|
-
);
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
export function getAllPromptSnippetsContent2FromJSON(
|
|
2045
|
-
jsonString: string,
|
|
2046
|
-
): SafeParseResult<GetAllPromptSnippetsContent2, SDKValidationError> {
|
|
2047
|
-
return safeParse(
|
|
2048
|
-
jsonString,
|
|
2049
|
-
(x) => GetAllPromptSnippetsContent2$inboundSchema.parse(JSON.parse(x)),
|
|
2050
|
-
`Failed to parse 'GetAllPromptSnippetsContent2' from JSON`,
|
|
2051
|
-
);
|
|
2052
|
-
}
|
|
2053
|
-
|
|
2054
|
-
/** @internal */
|
|
2055
|
-
export const GetAllPromptSnippetsContent$inboundSchema: z.ZodType<
|
|
2056
|
-
GetAllPromptSnippetsContent,
|
|
2057
|
-
z.ZodTypeDef,
|
|
2058
|
-
unknown
|
|
2059
|
-
> = z.union([
|
|
2060
|
-
z.string(),
|
|
2061
|
-
z.array(z.union([
|
|
2062
|
-
z.lazy(() => GetAllPromptSnippets21$inboundSchema),
|
|
2063
|
-
z.lazy(() => GetAllPromptSnippets22$inboundSchema),
|
|
2064
|
-
])),
|
|
2065
|
-
]);
|
|
2066
|
-
|
|
2067
|
-
/** @internal */
|
|
2068
|
-
export type GetAllPromptSnippetsContent$Outbound =
|
|
2069
|
-
| string
|
|
2070
|
-
| Array<GetAllPromptSnippets21$Outbound | GetAllPromptSnippets22$Outbound>;
|
|
2071
|
-
|
|
2072
|
-
/** @internal */
|
|
2073
|
-
export const GetAllPromptSnippetsContent$outboundSchema: z.ZodType<
|
|
2074
|
-
GetAllPromptSnippetsContent$Outbound,
|
|
2075
|
-
z.ZodTypeDef,
|
|
2076
|
-
GetAllPromptSnippetsContent
|
|
2077
|
-
> = z.union([
|
|
2078
|
-
z.string(),
|
|
2079
|
-
z.array(z.union([
|
|
2080
|
-
z.lazy(() => GetAllPromptSnippets21$outboundSchema),
|
|
2081
|
-
z.lazy(() => GetAllPromptSnippets22$outboundSchema),
|
|
2082
|
-
])),
|
|
2083
|
-
]);
|
|
2084
|
-
|
|
2085
|
-
/**
|
|
2086
|
-
* @internal
|
|
2087
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2088
|
-
*/
|
|
2089
|
-
export namespace GetAllPromptSnippetsContent$ {
|
|
2090
|
-
/** @deprecated use `GetAllPromptSnippetsContent$inboundSchema` instead. */
|
|
2091
|
-
export const inboundSchema = GetAllPromptSnippetsContent$inboundSchema;
|
|
2092
|
-
/** @deprecated use `GetAllPromptSnippetsContent$outboundSchema` instead. */
|
|
2093
|
-
export const outboundSchema = GetAllPromptSnippetsContent$outboundSchema;
|
|
2094
|
-
/** @deprecated use `GetAllPromptSnippetsContent$Outbound` instead. */
|
|
2095
|
-
export type Outbound = GetAllPromptSnippetsContent$Outbound;
|
|
2096
|
-
}
|
|
2097
|
-
|
|
2098
|
-
export function getAllPromptSnippetsContentToJSON(
|
|
2099
|
-
getAllPromptSnippetsContent: GetAllPromptSnippetsContent,
|
|
2100
|
-
): string {
|
|
2101
|
-
return JSON.stringify(
|
|
2102
|
-
GetAllPromptSnippetsContent$outboundSchema.parse(
|
|
2103
|
-
getAllPromptSnippetsContent,
|
|
2104
|
-
),
|
|
2105
|
-
);
|
|
2106
|
-
}
|
|
2107
|
-
|
|
2108
|
-
export function getAllPromptSnippetsContentFromJSON(
|
|
2109
|
-
jsonString: string,
|
|
2110
|
-
): SafeParseResult<GetAllPromptSnippetsContent, SDKValidationError> {
|
|
2111
|
-
return safeParse(
|
|
2112
|
-
jsonString,
|
|
2113
|
-
(x) => GetAllPromptSnippetsContent$inboundSchema.parse(JSON.parse(x)),
|
|
2114
|
-
`Failed to parse 'GetAllPromptSnippetsContent' from JSON`,
|
|
2115
|
-
);
|
|
2116
|
-
}
|
|
2117
|
-
|
|
2118
|
-
/** @internal */
|
|
2119
|
-
export const GetAllPromptSnippetsPromptSnippetsType$inboundSchema:
|
|
2120
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsType> = z.nativeEnum(
|
|
2121
|
-
GetAllPromptSnippetsPromptSnippetsType,
|
|
2122
|
-
);
|
|
2123
|
-
|
|
2124
|
-
/** @internal */
|
|
2125
|
-
export const GetAllPromptSnippetsPromptSnippetsType$outboundSchema:
|
|
2126
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsType> =
|
|
2127
|
-
GetAllPromptSnippetsPromptSnippetsType$inboundSchema;
|
|
2128
|
-
|
|
2129
|
-
/**
|
|
2130
|
-
* @internal
|
|
2131
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2132
|
-
*/
|
|
2133
|
-
export namespace GetAllPromptSnippetsPromptSnippetsType$ {
|
|
2134
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsType$inboundSchema` instead. */
|
|
2135
|
-
export const inboundSchema =
|
|
2136
|
-
GetAllPromptSnippetsPromptSnippetsType$inboundSchema;
|
|
2137
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsType$outboundSchema` instead. */
|
|
2138
|
-
export const outboundSchema =
|
|
2139
|
-
GetAllPromptSnippetsPromptSnippetsType$outboundSchema;
|
|
2140
|
-
}
|
|
2141
|
-
|
|
2142
|
-
/** @internal */
|
|
2143
|
-
export const GetAllPromptSnippetsFunction$inboundSchema: z.ZodType<
|
|
2144
|
-
GetAllPromptSnippetsFunction,
|
|
2145
|
-
z.ZodTypeDef,
|
|
2146
|
-
unknown
|
|
2147
|
-
> = z.object({
|
|
2148
|
-
name: z.string(),
|
|
2149
|
-
arguments: z.string(),
|
|
2150
|
-
});
|
|
2151
|
-
|
|
2152
|
-
/** @internal */
|
|
2153
|
-
export type GetAllPromptSnippetsFunction$Outbound = {
|
|
2154
|
-
name: string;
|
|
2155
|
-
arguments: string;
|
|
2156
|
-
};
|
|
2157
|
-
|
|
2158
|
-
/** @internal */
|
|
2159
|
-
export const GetAllPromptSnippetsFunction$outboundSchema: z.ZodType<
|
|
2160
|
-
GetAllPromptSnippetsFunction$Outbound,
|
|
2161
|
-
z.ZodTypeDef,
|
|
2162
|
-
GetAllPromptSnippetsFunction
|
|
2163
|
-
> = z.object({
|
|
2164
|
-
name: z.string(),
|
|
2165
|
-
arguments: z.string(),
|
|
2166
|
-
});
|
|
2167
|
-
|
|
2168
|
-
/**
|
|
2169
|
-
* @internal
|
|
2170
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2171
|
-
*/
|
|
2172
|
-
export namespace GetAllPromptSnippetsFunction$ {
|
|
2173
|
-
/** @deprecated use `GetAllPromptSnippetsFunction$inboundSchema` instead. */
|
|
2174
|
-
export const inboundSchema = GetAllPromptSnippetsFunction$inboundSchema;
|
|
2175
|
-
/** @deprecated use `GetAllPromptSnippetsFunction$outboundSchema` instead. */
|
|
2176
|
-
export const outboundSchema = GetAllPromptSnippetsFunction$outboundSchema;
|
|
2177
|
-
/** @deprecated use `GetAllPromptSnippetsFunction$Outbound` instead. */
|
|
2178
|
-
export type Outbound = GetAllPromptSnippetsFunction$Outbound;
|
|
2179
|
-
}
|
|
2180
|
-
|
|
2181
|
-
export function getAllPromptSnippetsFunctionToJSON(
|
|
2182
|
-
getAllPromptSnippetsFunction: GetAllPromptSnippetsFunction,
|
|
2183
|
-
): string {
|
|
2184
|
-
return JSON.stringify(
|
|
2185
|
-
GetAllPromptSnippetsFunction$outboundSchema.parse(
|
|
2186
|
-
getAllPromptSnippetsFunction,
|
|
2187
|
-
),
|
|
2188
|
-
);
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
|
-
export function getAllPromptSnippetsFunctionFromJSON(
|
|
2192
|
-
jsonString: string,
|
|
2193
|
-
): SafeParseResult<GetAllPromptSnippetsFunction, SDKValidationError> {
|
|
2194
|
-
return safeParse(
|
|
2195
|
-
jsonString,
|
|
2196
|
-
(x) => GetAllPromptSnippetsFunction$inboundSchema.parse(JSON.parse(x)),
|
|
2197
|
-
`Failed to parse 'GetAllPromptSnippetsFunction' from JSON`,
|
|
2198
|
-
);
|
|
2199
|
-
}
|
|
2200
|
-
|
|
2201
|
-
/** @internal */
|
|
2202
|
-
export const GetAllPromptSnippetsToolCalls$inboundSchema: z.ZodType<
|
|
2203
|
-
GetAllPromptSnippetsToolCalls,
|
|
2204
|
-
z.ZodTypeDef,
|
|
2205
|
-
unknown
|
|
2206
|
-
> = z.object({
|
|
2207
|
-
id: z.string().optional(),
|
|
2208
|
-
index: z.number().optional(),
|
|
2209
|
-
type: GetAllPromptSnippetsPromptSnippetsType$inboundSchema,
|
|
2210
|
-
function: z.lazy(() => GetAllPromptSnippetsFunction$inboundSchema),
|
|
2211
|
-
});
|
|
2212
|
-
|
|
2213
|
-
/** @internal */
|
|
2214
|
-
export type GetAllPromptSnippetsToolCalls$Outbound = {
|
|
2215
|
-
id?: string | undefined;
|
|
2216
|
-
index?: number | undefined;
|
|
2217
|
-
type: string;
|
|
2218
|
-
function: GetAllPromptSnippetsFunction$Outbound;
|
|
2219
|
-
};
|
|
2220
|
-
|
|
2221
|
-
/** @internal */
|
|
2222
|
-
export const GetAllPromptSnippetsToolCalls$outboundSchema: z.ZodType<
|
|
2223
|
-
GetAllPromptSnippetsToolCalls$Outbound,
|
|
2224
|
-
z.ZodTypeDef,
|
|
2225
|
-
GetAllPromptSnippetsToolCalls
|
|
2226
|
-
> = z.object({
|
|
2227
|
-
id: z.string().optional(),
|
|
2228
|
-
index: z.number().optional(),
|
|
2229
|
-
type: GetAllPromptSnippetsPromptSnippetsType$outboundSchema,
|
|
2230
|
-
function: z.lazy(() => GetAllPromptSnippetsFunction$outboundSchema),
|
|
2231
|
-
});
|
|
2232
|
-
|
|
2233
|
-
/**
|
|
2234
|
-
* @internal
|
|
2235
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2236
|
-
*/
|
|
2237
|
-
export namespace GetAllPromptSnippetsToolCalls$ {
|
|
2238
|
-
/** @deprecated use `GetAllPromptSnippetsToolCalls$inboundSchema` instead. */
|
|
2239
|
-
export const inboundSchema = GetAllPromptSnippetsToolCalls$inboundSchema;
|
|
2240
|
-
/** @deprecated use `GetAllPromptSnippetsToolCalls$outboundSchema` instead. */
|
|
2241
|
-
export const outboundSchema = GetAllPromptSnippetsToolCalls$outboundSchema;
|
|
2242
|
-
/** @deprecated use `GetAllPromptSnippetsToolCalls$Outbound` instead. */
|
|
2243
|
-
export type Outbound = GetAllPromptSnippetsToolCalls$Outbound;
|
|
2244
|
-
}
|
|
2245
|
-
|
|
2246
|
-
export function getAllPromptSnippetsToolCallsToJSON(
|
|
2247
|
-
getAllPromptSnippetsToolCalls: GetAllPromptSnippetsToolCalls,
|
|
2248
|
-
): string {
|
|
2249
|
-
return JSON.stringify(
|
|
2250
|
-
GetAllPromptSnippetsToolCalls$outboundSchema.parse(
|
|
2251
|
-
getAllPromptSnippetsToolCalls,
|
|
2252
|
-
),
|
|
2253
|
-
);
|
|
2254
|
-
}
|
|
2255
|
-
|
|
2256
|
-
export function getAllPromptSnippetsToolCallsFromJSON(
|
|
2257
|
-
jsonString: string,
|
|
2258
|
-
): SafeParseResult<GetAllPromptSnippetsToolCalls, SDKValidationError> {
|
|
2259
|
-
return safeParse(
|
|
2260
|
-
jsonString,
|
|
2261
|
-
(x) => GetAllPromptSnippetsToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
2262
|
-
`Failed to parse 'GetAllPromptSnippetsToolCalls' from JSON`,
|
|
2263
|
-
);
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
|
-
/** @internal */
|
|
2267
|
-
export const GetAllPromptSnippetsMessages$inboundSchema: z.ZodType<
|
|
2268
|
-
GetAllPromptSnippetsMessages,
|
|
2269
|
-
z.ZodTypeDef,
|
|
2270
|
-
unknown
|
|
2271
|
-
> = z.object({
|
|
2272
|
-
role: GetAllPromptSnippetsRole$inboundSchema,
|
|
2273
|
-
content: z.union([
|
|
2274
|
-
z.string(),
|
|
2275
|
-
z.array(z.union([
|
|
2276
|
-
z.lazy(() => GetAllPromptSnippets21$inboundSchema),
|
|
2277
|
-
z.lazy(() => GetAllPromptSnippets22$inboundSchema),
|
|
2278
|
-
])),
|
|
2279
|
-
]),
|
|
2280
|
-
tool_calls: z.array(z.lazy(() => GetAllPromptSnippetsToolCalls$inboundSchema))
|
|
2281
|
-
.optional(),
|
|
2282
|
-
}).transform((v) => {
|
|
2283
|
-
return remap$(v, {
|
|
2284
|
-
"tool_calls": "toolCalls",
|
|
2285
|
-
});
|
|
2286
|
-
});
|
|
2287
|
-
|
|
2288
|
-
/** @internal */
|
|
2289
|
-
export type GetAllPromptSnippetsMessages$Outbound = {
|
|
2290
|
-
role: string;
|
|
2291
|
-
content:
|
|
2292
|
-
| string
|
|
2293
|
-
| Array<GetAllPromptSnippets21$Outbound | GetAllPromptSnippets22$Outbound>;
|
|
2294
|
-
tool_calls?: Array<GetAllPromptSnippetsToolCalls$Outbound> | undefined;
|
|
2295
|
-
};
|
|
2296
|
-
|
|
2297
|
-
/** @internal */
|
|
2298
|
-
export const GetAllPromptSnippetsMessages$outboundSchema: z.ZodType<
|
|
2299
|
-
GetAllPromptSnippetsMessages$Outbound,
|
|
2300
|
-
z.ZodTypeDef,
|
|
2301
|
-
GetAllPromptSnippetsMessages
|
|
2302
|
-
> = z.object({
|
|
2303
|
-
role: GetAllPromptSnippetsRole$outboundSchema,
|
|
2304
|
-
content: z.union([
|
|
2305
|
-
z.string(),
|
|
2306
|
-
z.array(z.union([
|
|
2307
|
-
z.lazy(() => GetAllPromptSnippets21$outboundSchema),
|
|
2308
|
-
z.lazy(() => GetAllPromptSnippets22$outboundSchema),
|
|
2309
|
-
])),
|
|
2310
|
-
]),
|
|
2311
|
-
toolCalls: z.array(z.lazy(() => GetAllPromptSnippetsToolCalls$outboundSchema))
|
|
2312
|
-
.optional(),
|
|
2313
|
-
}).transform((v) => {
|
|
2314
|
-
return remap$(v, {
|
|
2315
|
-
toolCalls: "tool_calls",
|
|
2316
|
-
});
|
|
2317
|
-
});
|
|
2318
|
-
|
|
2319
|
-
/**
|
|
2320
|
-
* @internal
|
|
2321
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2322
|
-
*/
|
|
2323
|
-
export namespace GetAllPromptSnippetsMessages$ {
|
|
2324
|
-
/** @deprecated use `GetAllPromptSnippetsMessages$inboundSchema` instead. */
|
|
2325
|
-
export const inboundSchema = GetAllPromptSnippetsMessages$inboundSchema;
|
|
2326
|
-
/** @deprecated use `GetAllPromptSnippetsMessages$outboundSchema` instead. */
|
|
2327
|
-
export const outboundSchema = GetAllPromptSnippetsMessages$outboundSchema;
|
|
2328
|
-
/** @deprecated use `GetAllPromptSnippetsMessages$Outbound` instead. */
|
|
2329
|
-
export type Outbound = GetAllPromptSnippetsMessages$Outbound;
|
|
2330
|
-
}
|
|
2331
|
-
|
|
2332
|
-
export function getAllPromptSnippetsMessagesToJSON(
|
|
2333
|
-
getAllPromptSnippetsMessages: GetAllPromptSnippetsMessages,
|
|
2334
|
-
): string {
|
|
2335
|
-
return JSON.stringify(
|
|
2336
|
-
GetAllPromptSnippetsMessages$outboundSchema.parse(
|
|
2337
|
-
getAllPromptSnippetsMessages,
|
|
2338
|
-
),
|
|
2339
|
-
);
|
|
2340
|
-
}
|
|
2341
|
-
|
|
2342
|
-
export function getAllPromptSnippetsMessagesFromJSON(
|
|
2343
|
-
jsonString: string,
|
|
2344
|
-
): SafeParseResult<GetAllPromptSnippetsMessages, SDKValidationError> {
|
|
2345
|
-
return safeParse(
|
|
2346
|
-
jsonString,
|
|
2347
|
-
(x) => GetAllPromptSnippetsMessages$inboundSchema.parse(JSON.parse(x)),
|
|
2348
|
-
`Failed to parse 'GetAllPromptSnippetsMessages' from JSON`,
|
|
2349
|
-
);
|
|
2350
|
-
}
|
|
2351
|
-
|
|
2352
|
-
/** @internal */
|
|
2353
|
-
export const GetAllPromptSnippetsPromptConfig$inboundSchema: z.ZodType<
|
|
2354
|
-
GetAllPromptSnippetsPromptConfig,
|
|
2355
|
-
z.ZodTypeDef,
|
|
2356
|
-
unknown
|
|
2357
|
-
> = z.object({
|
|
2358
|
-
stream: z.boolean().optional(),
|
|
2359
|
-
model: z.string().optional(),
|
|
2360
|
-
model_db_id: z.string().optional(),
|
|
2361
|
-
model_type: GetAllPromptSnippetsModelType$inboundSchema.optional(),
|
|
2362
|
-
model_parameters: z.lazy(() =>
|
|
2363
|
-
GetAllPromptSnippetsModelParameters$inboundSchema
|
|
2364
|
-
).optional(),
|
|
2365
|
-
provider: GetAllPromptSnippetsProvider$inboundSchema.optional(),
|
|
2366
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
2367
|
-
version: z.string().optional(),
|
|
2368
|
-
messages: z.array(z.lazy(() => GetAllPromptSnippetsMessages$inboundSchema)),
|
|
2369
|
-
}).transform((v) => {
|
|
2370
|
-
return remap$(v, {
|
|
2371
|
-
"model_db_id": "modelDbId",
|
|
2372
|
-
"model_type": "modelType",
|
|
2373
|
-
"model_parameters": "modelParameters",
|
|
2374
|
-
"integration_id": "integrationId",
|
|
2375
|
-
});
|
|
2376
|
-
});
|
|
2377
|
-
|
|
2378
|
-
/** @internal */
|
|
2379
|
-
export type GetAllPromptSnippetsPromptConfig$Outbound = {
|
|
2380
|
-
stream?: boolean | undefined;
|
|
2381
|
-
model?: string | undefined;
|
|
2382
|
-
model_db_id?: string | undefined;
|
|
2383
|
-
model_type?: string | undefined;
|
|
2384
|
-
model_parameters?: GetAllPromptSnippetsModelParameters$Outbound | undefined;
|
|
2385
|
-
provider?: string | undefined;
|
|
2386
|
-
integration_id?: string | null | undefined;
|
|
2387
|
-
version?: string | undefined;
|
|
2388
|
-
messages: Array<GetAllPromptSnippetsMessages$Outbound>;
|
|
2389
|
-
};
|
|
2390
|
-
|
|
2391
|
-
/** @internal */
|
|
2392
|
-
export const GetAllPromptSnippetsPromptConfig$outboundSchema: z.ZodType<
|
|
2393
|
-
GetAllPromptSnippetsPromptConfig$Outbound,
|
|
2394
|
-
z.ZodTypeDef,
|
|
2395
|
-
GetAllPromptSnippetsPromptConfig
|
|
2396
|
-
> = z.object({
|
|
2397
|
-
stream: z.boolean().optional(),
|
|
2398
|
-
model: z.string().optional(),
|
|
2399
|
-
modelDbId: z.string().optional(),
|
|
2400
|
-
modelType: GetAllPromptSnippetsModelType$outboundSchema.optional(),
|
|
2401
|
-
modelParameters: z.lazy(() =>
|
|
2402
|
-
GetAllPromptSnippetsModelParameters$outboundSchema
|
|
2403
|
-
).optional(),
|
|
2404
|
-
provider: GetAllPromptSnippetsProvider$outboundSchema.optional(),
|
|
2405
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
2406
|
-
version: z.string().optional(),
|
|
2407
|
-
messages: z.array(z.lazy(() => GetAllPromptSnippetsMessages$outboundSchema)),
|
|
2408
|
-
}).transform((v) => {
|
|
2409
|
-
return remap$(v, {
|
|
2410
|
-
modelDbId: "model_db_id",
|
|
2411
|
-
modelType: "model_type",
|
|
2412
|
-
modelParameters: "model_parameters",
|
|
2413
|
-
integrationId: "integration_id",
|
|
2414
|
-
});
|
|
2415
|
-
});
|
|
2416
|
-
|
|
2417
|
-
/**
|
|
2418
|
-
* @internal
|
|
2419
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2420
|
-
*/
|
|
2421
|
-
export namespace GetAllPromptSnippetsPromptConfig$ {
|
|
2422
|
-
/** @deprecated use `GetAllPromptSnippetsPromptConfig$inboundSchema` instead. */
|
|
2423
|
-
export const inboundSchema = GetAllPromptSnippetsPromptConfig$inboundSchema;
|
|
2424
|
-
/** @deprecated use `GetAllPromptSnippetsPromptConfig$outboundSchema` instead. */
|
|
2425
|
-
export const outboundSchema = GetAllPromptSnippetsPromptConfig$outboundSchema;
|
|
2426
|
-
/** @deprecated use `GetAllPromptSnippetsPromptConfig$Outbound` instead. */
|
|
2427
|
-
export type Outbound = GetAllPromptSnippetsPromptConfig$Outbound;
|
|
2428
|
-
}
|
|
2429
|
-
|
|
2430
|
-
export function getAllPromptSnippetsPromptConfigToJSON(
|
|
2431
|
-
getAllPromptSnippetsPromptConfig: GetAllPromptSnippetsPromptConfig,
|
|
2432
|
-
): string {
|
|
2433
|
-
return JSON.stringify(
|
|
2434
|
-
GetAllPromptSnippetsPromptConfig$outboundSchema.parse(
|
|
2435
|
-
getAllPromptSnippetsPromptConfig,
|
|
2436
|
-
),
|
|
2437
|
-
);
|
|
2438
|
-
}
|
|
2439
|
-
|
|
2440
|
-
export function getAllPromptSnippetsPromptConfigFromJSON(
|
|
2441
|
-
jsonString: string,
|
|
2442
|
-
): SafeParseResult<GetAllPromptSnippetsPromptConfig, SDKValidationError> {
|
|
2443
|
-
return safeParse(
|
|
2444
|
-
jsonString,
|
|
2445
|
-
(x) => GetAllPromptSnippetsPromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
2446
|
-
`Failed to parse 'GetAllPromptSnippetsPromptConfig' from JSON`,
|
|
2447
|
-
);
|
|
2448
|
-
}
|
|
2449
|
-
|
|
2450
|
-
/** @internal */
|
|
2451
|
-
export const GetAllPromptSnippetsUseCases$inboundSchema: z.ZodNativeEnum<
|
|
2452
|
-
typeof GetAllPromptSnippetsUseCases
|
|
2453
|
-
> = z.nativeEnum(GetAllPromptSnippetsUseCases);
|
|
2454
|
-
|
|
2455
|
-
/** @internal */
|
|
2456
|
-
export const GetAllPromptSnippetsUseCases$outboundSchema: z.ZodNativeEnum<
|
|
2457
|
-
typeof GetAllPromptSnippetsUseCases
|
|
2458
|
-
> = GetAllPromptSnippetsUseCases$inboundSchema;
|
|
2459
|
-
|
|
2460
|
-
/**
|
|
2461
|
-
* @internal
|
|
2462
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2463
|
-
*/
|
|
2464
|
-
export namespace GetAllPromptSnippetsUseCases$ {
|
|
2465
|
-
/** @deprecated use `GetAllPromptSnippetsUseCases$inboundSchema` instead. */
|
|
2466
|
-
export const inboundSchema = GetAllPromptSnippetsUseCases$inboundSchema;
|
|
2467
|
-
/** @deprecated use `GetAllPromptSnippetsUseCases$outboundSchema` instead. */
|
|
2468
|
-
export const outboundSchema = GetAllPromptSnippetsUseCases$outboundSchema;
|
|
2469
|
-
}
|
|
2470
|
-
|
|
2471
|
-
/** @internal */
|
|
2472
|
-
export const GetAllPromptSnippetsLanguage$inboundSchema: z.ZodNativeEnum<
|
|
2473
|
-
typeof GetAllPromptSnippetsLanguage
|
|
2474
|
-
> = z.nativeEnum(GetAllPromptSnippetsLanguage);
|
|
2475
|
-
|
|
2476
|
-
/** @internal */
|
|
2477
|
-
export const GetAllPromptSnippetsLanguage$outboundSchema: z.ZodNativeEnum<
|
|
2478
|
-
typeof GetAllPromptSnippetsLanguage
|
|
2479
|
-
> = GetAllPromptSnippetsLanguage$inboundSchema;
|
|
2480
|
-
|
|
2481
|
-
/**
|
|
2482
|
-
* @internal
|
|
2483
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2484
|
-
*/
|
|
2485
|
-
export namespace GetAllPromptSnippetsLanguage$ {
|
|
2486
|
-
/** @deprecated use `GetAllPromptSnippetsLanguage$inboundSchema` instead. */
|
|
2487
|
-
export const inboundSchema = GetAllPromptSnippetsLanguage$inboundSchema;
|
|
2488
|
-
/** @deprecated use `GetAllPromptSnippetsLanguage$outboundSchema` instead. */
|
|
2489
|
-
export const outboundSchema = GetAllPromptSnippetsLanguage$outboundSchema;
|
|
2490
|
-
}
|
|
2491
|
-
|
|
2492
|
-
/** @internal */
|
|
2493
|
-
export const GetAllPromptSnippetsMetadata$inboundSchema: z.ZodType<
|
|
2494
|
-
GetAllPromptSnippetsMetadata,
|
|
2495
|
-
z.ZodTypeDef,
|
|
2496
|
-
unknown
|
|
2497
|
-
> = z.object({
|
|
2498
|
-
use_cases: z.array(GetAllPromptSnippetsUseCases$inboundSchema).optional(),
|
|
2499
|
-
language: GetAllPromptSnippetsLanguage$inboundSchema.optional(),
|
|
2500
|
-
}).transform((v) => {
|
|
2501
|
-
return remap$(v, {
|
|
2502
|
-
"use_cases": "useCases",
|
|
2503
|
-
});
|
|
2504
|
-
});
|
|
2505
|
-
|
|
2506
|
-
/** @internal */
|
|
2507
|
-
export type GetAllPromptSnippetsMetadata$Outbound = {
|
|
2508
|
-
use_cases?: Array<string> | undefined;
|
|
2509
|
-
language?: string | undefined;
|
|
2510
|
-
};
|
|
2511
|
-
|
|
2512
|
-
/** @internal */
|
|
2513
|
-
export const GetAllPromptSnippetsMetadata$outboundSchema: z.ZodType<
|
|
2514
|
-
GetAllPromptSnippetsMetadata$Outbound,
|
|
2515
|
-
z.ZodTypeDef,
|
|
2516
|
-
GetAllPromptSnippetsMetadata
|
|
2517
|
-
> = z.object({
|
|
2518
|
-
useCases: z.array(GetAllPromptSnippetsUseCases$outboundSchema).optional(),
|
|
2519
|
-
language: GetAllPromptSnippetsLanguage$outboundSchema.optional(),
|
|
2520
|
-
}).transform((v) => {
|
|
2521
|
-
return remap$(v, {
|
|
2522
|
-
useCases: "use_cases",
|
|
2523
|
-
});
|
|
2524
|
-
});
|
|
2525
|
-
|
|
2526
|
-
/**
|
|
2527
|
-
* @internal
|
|
2528
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2529
|
-
*/
|
|
2530
|
-
export namespace GetAllPromptSnippetsMetadata$ {
|
|
2531
|
-
/** @deprecated use `GetAllPromptSnippetsMetadata$inboundSchema` instead. */
|
|
2532
|
-
export const inboundSchema = GetAllPromptSnippetsMetadata$inboundSchema;
|
|
2533
|
-
/** @deprecated use `GetAllPromptSnippetsMetadata$outboundSchema` instead. */
|
|
2534
|
-
export const outboundSchema = GetAllPromptSnippetsMetadata$outboundSchema;
|
|
2535
|
-
/** @deprecated use `GetAllPromptSnippetsMetadata$Outbound` instead. */
|
|
2536
|
-
export type Outbound = GetAllPromptSnippetsMetadata$Outbound;
|
|
2537
|
-
}
|
|
2538
|
-
|
|
2539
|
-
export function getAllPromptSnippetsMetadataToJSON(
|
|
2540
|
-
getAllPromptSnippetsMetadata: GetAllPromptSnippetsMetadata,
|
|
2541
|
-
): string {
|
|
2542
|
-
return JSON.stringify(
|
|
2543
|
-
GetAllPromptSnippetsMetadata$outboundSchema.parse(
|
|
2544
|
-
getAllPromptSnippetsMetadata,
|
|
2545
|
-
),
|
|
2546
|
-
);
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
|
-
export function getAllPromptSnippetsMetadataFromJSON(
|
|
2550
|
-
jsonString: string,
|
|
2551
|
-
): SafeParseResult<GetAllPromptSnippetsMetadata, SDKValidationError> {
|
|
2552
|
-
return safeParse(
|
|
2553
|
-
jsonString,
|
|
2554
|
-
(x) => GetAllPromptSnippetsMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
2555
|
-
`Failed to parse 'GetAllPromptSnippetsMetadata' from JSON`,
|
|
2556
|
-
);
|
|
2557
|
-
}
|
|
2558
|
-
|
|
2559
|
-
/** @internal */
|
|
2560
|
-
export const GetAllPromptSnippetsType$inboundSchema: z.ZodNativeEnum<
|
|
2561
|
-
typeof GetAllPromptSnippetsType
|
|
2562
|
-
> = z.nativeEnum(GetAllPromptSnippetsType);
|
|
2563
|
-
|
|
2564
|
-
/** @internal */
|
|
2565
|
-
export const GetAllPromptSnippetsType$outboundSchema: z.ZodNativeEnum<
|
|
2566
|
-
typeof GetAllPromptSnippetsType
|
|
2567
|
-
> = GetAllPromptSnippetsType$inboundSchema;
|
|
2568
|
-
|
|
2569
|
-
/**
|
|
2570
|
-
* @internal
|
|
2571
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2572
|
-
*/
|
|
2573
|
-
export namespace GetAllPromptSnippetsType$ {
|
|
2574
|
-
/** @deprecated use `GetAllPromptSnippetsType$inboundSchema` instead. */
|
|
2575
|
-
export const inboundSchema = GetAllPromptSnippetsType$inboundSchema;
|
|
2576
|
-
/** @deprecated use `GetAllPromptSnippetsType$outboundSchema` instead. */
|
|
2577
|
-
export const outboundSchema = GetAllPromptSnippetsType$outboundSchema;
|
|
2578
|
-
}
|
|
2579
|
-
|
|
2580
|
-
/** @internal */
|
|
2581
|
-
export const GetAllPromptSnippetsPromptSnippetsModelType$inboundSchema:
|
|
2582
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsModelType> = z
|
|
2583
|
-
.nativeEnum(GetAllPromptSnippetsPromptSnippetsModelType);
|
|
2584
|
-
|
|
2585
|
-
/** @internal */
|
|
2586
|
-
export const GetAllPromptSnippetsPromptSnippetsModelType$outboundSchema:
|
|
2587
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsModelType> =
|
|
2588
|
-
GetAllPromptSnippetsPromptSnippetsModelType$inboundSchema;
|
|
2589
|
-
|
|
2590
|
-
/**
|
|
2591
|
-
* @internal
|
|
2592
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2593
|
-
*/
|
|
2594
|
-
export namespace GetAllPromptSnippetsPromptSnippetsModelType$ {
|
|
2595
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsModelType$inboundSchema` instead. */
|
|
2596
|
-
export const inboundSchema =
|
|
2597
|
-
GetAllPromptSnippetsPromptSnippetsModelType$inboundSchema;
|
|
2598
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsModelType$outboundSchema` instead. */
|
|
2599
|
-
export const outboundSchema =
|
|
2600
|
-
GetAllPromptSnippetsPromptSnippetsModelType$outboundSchema;
|
|
2601
|
-
}
|
|
2602
|
-
|
|
2603
|
-
/** @internal */
|
|
2604
|
-
export const GetAllPromptSnippetsPromptSnippetsFormat$inboundSchema:
|
|
2605
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsFormat> = z
|
|
2606
|
-
.nativeEnum(GetAllPromptSnippetsPromptSnippetsFormat);
|
|
2607
|
-
|
|
2608
|
-
/** @internal */
|
|
2609
|
-
export const GetAllPromptSnippetsPromptSnippetsFormat$outboundSchema:
|
|
2610
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsFormat> =
|
|
2611
|
-
GetAllPromptSnippetsPromptSnippetsFormat$inboundSchema;
|
|
2612
|
-
|
|
2613
|
-
/**
|
|
2614
|
-
* @internal
|
|
2615
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2616
|
-
*/
|
|
2617
|
-
export namespace GetAllPromptSnippetsPromptSnippetsFormat$ {
|
|
2618
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsFormat$inboundSchema` instead. */
|
|
2619
|
-
export const inboundSchema =
|
|
2620
|
-
GetAllPromptSnippetsPromptSnippetsFormat$inboundSchema;
|
|
2621
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsFormat$outboundSchema` instead. */
|
|
2622
|
-
export const outboundSchema =
|
|
2623
|
-
GetAllPromptSnippetsPromptSnippetsFormat$outboundSchema;
|
|
2624
|
-
}
|
|
2625
|
-
|
|
2626
|
-
/** @internal */
|
|
2627
|
-
export const GetAllPromptSnippetsPromptSnippetsQuality$inboundSchema:
|
|
2628
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsQuality> = z
|
|
2629
|
-
.nativeEnum(GetAllPromptSnippetsPromptSnippetsQuality);
|
|
2630
|
-
|
|
2631
|
-
/** @internal */
|
|
2632
|
-
export const GetAllPromptSnippetsPromptSnippetsQuality$outboundSchema:
|
|
2633
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsQuality> =
|
|
2634
|
-
GetAllPromptSnippetsPromptSnippetsQuality$inboundSchema;
|
|
2635
|
-
|
|
2636
|
-
/**
|
|
2637
|
-
* @internal
|
|
2638
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2639
|
-
*/
|
|
2640
|
-
export namespace GetAllPromptSnippetsPromptSnippetsQuality$ {
|
|
2641
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsQuality$inboundSchema` instead. */
|
|
2642
|
-
export const inboundSchema =
|
|
2643
|
-
GetAllPromptSnippetsPromptSnippetsQuality$inboundSchema;
|
|
2644
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsQuality$outboundSchema` instead. */
|
|
2645
|
-
export const outboundSchema =
|
|
2646
|
-
GetAllPromptSnippetsPromptSnippetsQuality$outboundSchema;
|
|
2647
|
-
}
|
|
2648
|
-
|
|
2649
|
-
/** @internal */
|
|
2650
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$inboundSchema:
|
|
2651
|
-
z.ZodNativeEnum<
|
|
2652
|
-
typeof GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type
|
|
2653
|
-
> = z.nativeEnum(
|
|
2654
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type,
|
|
2655
|
-
);
|
|
2656
|
-
|
|
2657
|
-
/** @internal */
|
|
2658
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$outboundSchema:
|
|
2659
|
-
z.ZodNativeEnum<
|
|
2660
|
-
typeof GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type
|
|
2661
|
-
> =
|
|
2662
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$inboundSchema;
|
|
2663
|
-
|
|
2664
|
-
/**
|
|
2665
|
-
* @internal
|
|
2666
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2667
|
-
*/
|
|
2668
|
-
export namespace GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$ {
|
|
2669
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$inboundSchema` instead. */
|
|
2670
|
-
export const inboundSchema =
|
|
2671
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$inboundSchema;
|
|
2672
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$outboundSchema` instead. */
|
|
2673
|
-
export const outboundSchema =
|
|
2674
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$outboundSchema;
|
|
2675
|
-
}
|
|
2676
|
-
|
|
2677
|
-
/** @internal */
|
|
2678
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippets2$inboundSchema:
|
|
2679
|
-
z.ZodType<
|
|
2680
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets2,
|
|
2681
|
-
z.ZodTypeDef,
|
|
2682
|
-
unknown
|
|
2683
|
-
> = z.object({
|
|
2684
|
-
type:
|
|
2685
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$inboundSchema,
|
|
2686
|
-
});
|
|
2687
|
-
|
|
2688
|
-
/** @internal */
|
|
2689
|
-
export type GetAllPromptSnippetsResponseFormatPromptSnippets2$Outbound = {
|
|
2690
|
-
type: string;
|
|
2691
|
-
};
|
|
2692
|
-
|
|
2693
|
-
/** @internal */
|
|
2694
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippets2$outboundSchema:
|
|
2695
|
-
z.ZodType<
|
|
2696
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets2$Outbound,
|
|
2697
|
-
z.ZodTypeDef,
|
|
2698
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets2
|
|
2699
|
-
> = z.object({
|
|
2700
|
-
type:
|
|
2701
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$outboundSchema,
|
|
2702
|
-
});
|
|
2703
|
-
|
|
2704
|
-
/**
|
|
2705
|
-
* @internal
|
|
2706
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2707
|
-
*/
|
|
2708
|
-
export namespace GetAllPromptSnippetsResponseFormatPromptSnippets2$ {
|
|
2709
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippets2$inboundSchema` instead. */
|
|
2710
|
-
export const inboundSchema =
|
|
2711
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets2$inboundSchema;
|
|
2712
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippets2$outboundSchema` instead. */
|
|
2713
|
-
export const outboundSchema =
|
|
2714
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets2$outboundSchema;
|
|
2715
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippets2$Outbound` instead. */
|
|
2716
|
-
export type Outbound =
|
|
2717
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets2$Outbound;
|
|
2718
|
-
}
|
|
2719
|
-
|
|
2720
|
-
export function getAllPromptSnippetsResponseFormatPromptSnippets2ToJSON(
|
|
2721
|
-
getAllPromptSnippetsResponseFormatPromptSnippets2:
|
|
2722
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets2,
|
|
2723
|
-
): string {
|
|
2724
|
-
return JSON.stringify(
|
|
2725
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets2$outboundSchema.parse(
|
|
2726
|
-
getAllPromptSnippetsResponseFormatPromptSnippets2,
|
|
2727
|
-
),
|
|
2728
|
-
);
|
|
2729
|
-
}
|
|
2730
|
-
|
|
2731
|
-
export function getAllPromptSnippetsResponseFormatPromptSnippets2FromJSON(
|
|
2732
|
-
jsonString: string,
|
|
2733
|
-
): SafeParseResult<
|
|
2734
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets2,
|
|
2735
|
-
SDKValidationError
|
|
2736
|
-
> {
|
|
2737
|
-
return safeParse(
|
|
2738
|
-
jsonString,
|
|
2739
|
-
(x) =>
|
|
2740
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets2$inboundSchema.parse(
|
|
2741
|
-
JSON.parse(x),
|
|
2742
|
-
),
|
|
2743
|
-
`Failed to parse 'GetAllPromptSnippetsResponseFormatPromptSnippets2' from JSON`,
|
|
2744
|
-
);
|
|
2745
|
-
}
|
|
2746
|
-
|
|
2747
|
-
/** @internal */
|
|
2748
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$inboundSchema:
|
|
2749
|
-
z.ZodNativeEnum<
|
|
2750
|
-
typeof GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType
|
|
2751
|
-
> = z.nativeEnum(
|
|
2752
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType,
|
|
2753
|
-
);
|
|
2754
|
-
|
|
2755
|
-
/** @internal */
|
|
2756
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$outboundSchema:
|
|
2757
|
-
z.ZodNativeEnum<
|
|
2758
|
-
typeof GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType
|
|
2759
|
-
> =
|
|
2760
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$inboundSchema;
|
|
2761
|
-
|
|
2762
|
-
/**
|
|
2763
|
-
* @internal
|
|
2764
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2765
|
-
*/
|
|
2766
|
-
export namespace GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$ {
|
|
2767
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$inboundSchema` instead. */
|
|
2768
|
-
export const inboundSchema =
|
|
2769
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$inboundSchema;
|
|
2770
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$outboundSchema` instead. */
|
|
2771
|
-
export const outboundSchema =
|
|
2772
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$outboundSchema;
|
|
2773
|
-
}
|
|
2774
|
-
|
|
2775
|
-
/** @internal */
|
|
2776
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$inboundSchema:
|
|
2777
|
-
z.ZodType<
|
|
2778
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema,
|
|
2779
|
-
z.ZodTypeDef,
|
|
2780
|
-
unknown
|
|
2781
|
-
> = z.object({
|
|
2782
|
-
name: z.string(),
|
|
2783
|
-
strict: z.boolean(),
|
|
2784
|
-
schema: z.record(z.any()),
|
|
2785
|
-
});
|
|
2786
|
-
|
|
2787
|
-
/** @internal */
|
|
2788
|
-
export type GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$Outbound =
|
|
2789
|
-
{
|
|
2790
|
-
name: string;
|
|
2791
|
-
strict: boolean;
|
|
2792
|
-
schema: { [k: string]: any };
|
|
2793
|
-
};
|
|
2794
|
-
|
|
2795
|
-
/** @internal */
|
|
2796
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$outboundSchema:
|
|
2797
|
-
z.ZodType<
|
|
2798
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$Outbound,
|
|
2799
|
-
z.ZodTypeDef,
|
|
2800
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema
|
|
2801
|
-
> = z.object({
|
|
2802
|
-
name: z.string(),
|
|
2803
|
-
strict: z.boolean(),
|
|
2804
|
-
schema: z.record(z.any()),
|
|
2805
|
-
});
|
|
2806
|
-
|
|
2807
|
-
/**
|
|
2808
|
-
* @internal
|
|
2809
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2810
|
-
*/
|
|
2811
|
-
export namespace GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$ {
|
|
2812
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$inboundSchema` instead. */
|
|
2813
|
-
export const inboundSchema =
|
|
2814
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$inboundSchema;
|
|
2815
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$outboundSchema` instead. */
|
|
2816
|
-
export const outboundSchema =
|
|
2817
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$outboundSchema;
|
|
2818
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$Outbound` instead. */
|
|
2819
|
-
export type Outbound =
|
|
2820
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$Outbound;
|
|
2821
|
-
}
|
|
2822
|
-
|
|
2823
|
-
export function getAllPromptSnippetsResponseFormatPromptSnippetsJsonSchemaToJSON(
|
|
2824
|
-
getAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema:
|
|
2825
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema,
|
|
2826
|
-
): string {
|
|
2827
|
-
return JSON.stringify(
|
|
2828
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$outboundSchema
|
|
2829
|
-
.parse(getAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema),
|
|
2830
|
-
);
|
|
2831
|
-
}
|
|
2832
|
-
|
|
2833
|
-
export function getAllPromptSnippetsResponseFormatPromptSnippetsJsonSchemaFromJSON(
|
|
2834
|
-
jsonString: string,
|
|
2835
|
-
): SafeParseResult<
|
|
2836
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema,
|
|
2837
|
-
SDKValidationError
|
|
2838
|
-
> {
|
|
2839
|
-
return safeParse(
|
|
2840
|
-
jsonString,
|
|
2841
|
-
(x) =>
|
|
2842
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$inboundSchema
|
|
2843
|
-
.parse(JSON.parse(x)),
|
|
2844
|
-
`Failed to parse 'GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema' from JSON`,
|
|
2845
|
-
);
|
|
2846
|
-
}
|
|
2847
|
-
|
|
2848
|
-
/** @internal */
|
|
2849
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippets1$inboundSchema:
|
|
2850
|
-
z.ZodType<
|
|
2851
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets1,
|
|
2852
|
-
z.ZodTypeDef,
|
|
2853
|
-
unknown
|
|
2854
|
-
> = z.object({
|
|
2855
|
-
type:
|
|
2856
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$inboundSchema,
|
|
2857
|
-
json_schema: z.lazy(() =>
|
|
2858
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$inboundSchema
|
|
2859
|
-
),
|
|
2860
|
-
}).transform((v) => {
|
|
2861
|
-
return remap$(v, {
|
|
2862
|
-
"json_schema": "jsonSchema",
|
|
2863
|
-
});
|
|
2864
|
-
});
|
|
2865
|
-
|
|
2866
|
-
/** @internal */
|
|
2867
|
-
export type GetAllPromptSnippetsResponseFormatPromptSnippets1$Outbound = {
|
|
2868
|
-
type: string;
|
|
2869
|
-
json_schema:
|
|
2870
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$Outbound;
|
|
2871
|
-
};
|
|
2872
|
-
|
|
2873
|
-
/** @internal */
|
|
2874
|
-
export const GetAllPromptSnippetsResponseFormatPromptSnippets1$outboundSchema:
|
|
2875
|
-
z.ZodType<
|
|
2876
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets1$Outbound,
|
|
2877
|
-
z.ZodTypeDef,
|
|
2878
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets1
|
|
2879
|
-
> = z.object({
|
|
2880
|
-
type:
|
|
2881
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$outboundSchema,
|
|
2882
|
-
jsonSchema: z.lazy(() =>
|
|
2883
|
-
GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$outboundSchema
|
|
2884
|
-
),
|
|
2885
|
-
}).transform((v) => {
|
|
2886
|
-
return remap$(v, {
|
|
2887
|
-
jsonSchema: "json_schema",
|
|
2888
|
-
});
|
|
2889
|
-
});
|
|
2890
|
-
|
|
2891
|
-
/**
|
|
2892
|
-
* @internal
|
|
2893
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2894
|
-
*/
|
|
2895
|
-
export namespace GetAllPromptSnippetsResponseFormatPromptSnippets1$ {
|
|
2896
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippets1$inboundSchema` instead. */
|
|
2897
|
-
export const inboundSchema =
|
|
2898
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets1$inboundSchema;
|
|
2899
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippets1$outboundSchema` instead. */
|
|
2900
|
-
export const outboundSchema =
|
|
2901
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets1$outboundSchema;
|
|
2902
|
-
/** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippets1$Outbound` instead. */
|
|
2903
|
-
export type Outbound =
|
|
2904
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets1$Outbound;
|
|
2905
|
-
}
|
|
2906
|
-
|
|
2907
|
-
export function getAllPromptSnippetsResponseFormatPromptSnippets1ToJSON(
|
|
2908
|
-
getAllPromptSnippetsResponseFormatPromptSnippets1:
|
|
2909
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets1,
|
|
2910
|
-
): string {
|
|
2911
|
-
return JSON.stringify(
|
|
2912
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets1$outboundSchema.parse(
|
|
2913
|
-
getAllPromptSnippetsResponseFormatPromptSnippets1,
|
|
2914
|
-
),
|
|
2915
|
-
);
|
|
2916
|
-
}
|
|
2917
|
-
|
|
2918
|
-
export function getAllPromptSnippetsResponseFormatPromptSnippets1FromJSON(
|
|
2919
|
-
jsonString: string,
|
|
2920
|
-
): SafeParseResult<
|
|
2921
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets1,
|
|
2922
|
-
SDKValidationError
|
|
2923
|
-
> {
|
|
2924
|
-
return safeParse(
|
|
2925
|
-
jsonString,
|
|
2926
|
-
(x) =>
|
|
2927
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets1$inboundSchema.parse(
|
|
2928
|
-
JSON.parse(x),
|
|
2929
|
-
),
|
|
2930
|
-
`Failed to parse 'GetAllPromptSnippetsResponseFormatPromptSnippets1' from JSON`,
|
|
2931
|
-
);
|
|
2932
|
-
}
|
|
2933
|
-
|
|
2934
|
-
/** @internal */
|
|
2935
|
-
export const GetAllPromptSnippetsPromptSnippetsResponseFormat$inboundSchema:
|
|
2936
|
-
z.ZodType<
|
|
2937
|
-
GetAllPromptSnippetsPromptSnippetsResponseFormat,
|
|
2938
|
-
z.ZodTypeDef,
|
|
2939
|
-
unknown
|
|
2940
|
-
> = z.union([
|
|
2941
|
-
z.lazy(() =>
|
|
2942
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets2$inboundSchema
|
|
2943
|
-
),
|
|
2944
|
-
z.lazy(() =>
|
|
2945
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets1$inboundSchema
|
|
2946
|
-
),
|
|
2947
|
-
]);
|
|
2948
|
-
|
|
2949
|
-
/** @internal */
|
|
2950
|
-
export type GetAllPromptSnippetsPromptSnippetsResponseFormat$Outbound =
|
|
2951
|
-
| GetAllPromptSnippetsResponseFormatPromptSnippets2$Outbound
|
|
2952
|
-
| GetAllPromptSnippetsResponseFormatPromptSnippets1$Outbound;
|
|
2953
|
-
|
|
2954
|
-
/** @internal */
|
|
2955
|
-
export const GetAllPromptSnippetsPromptSnippetsResponseFormat$outboundSchema:
|
|
2956
|
-
z.ZodType<
|
|
2957
|
-
GetAllPromptSnippetsPromptSnippetsResponseFormat$Outbound,
|
|
2958
|
-
z.ZodTypeDef,
|
|
2959
|
-
GetAllPromptSnippetsPromptSnippetsResponseFormat
|
|
2960
|
-
> = z.union([
|
|
2961
|
-
z.lazy(() =>
|
|
2962
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets2$outboundSchema
|
|
2963
|
-
),
|
|
2964
|
-
z.lazy(() =>
|
|
2965
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets1$outboundSchema
|
|
2966
|
-
),
|
|
2967
|
-
]);
|
|
2968
|
-
|
|
2969
|
-
/**
|
|
2970
|
-
* @internal
|
|
2971
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2972
|
-
*/
|
|
2973
|
-
export namespace GetAllPromptSnippetsPromptSnippetsResponseFormat$ {
|
|
2974
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsResponseFormat$inboundSchema` instead. */
|
|
2975
|
-
export const inboundSchema =
|
|
2976
|
-
GetAllPromptSnippetsPromptSnippetsResponseFormat$inboundSchema;
|
|
2977
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsResponseFormat$outboundSchema` instead. */
|
|
2978
|
-
export const outboundSchema =
|
|
2979
|
-
GetAllPromptSnippetsPromptSnippetsResponseFormat$outboundSchema;
|
|
2980
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsResponseFormat$Outbound` instead. */
|
|
2981
|
-
export type Outbound =
|
|
2982
|
-
GetAllPromptSnippetsPromptSnippetsResponseFormat$Outbound;
|
|
2983
|
-
}
|
|
2984
|
-
|
|
2985
|
-
export function getAllPromptSnippetsPromptSnippetsResponseFormatToJSON(
|
|
2986
|
-
getAllPromptSnippetsPromptSnippetsResponseFormat:
|
|
2987
|
-
GetAllPromptSnippetsPromptSnippetsResponseFormat,
|
|
2988
|
-
): string {
|
|
2989
|
-
return JSON.stringify(
|
|
2990
|
-
GetAllPromptSnippetsPromptSnippetsResponseFormat$outboundSchema.parse(
|
|
2991
|
-
getAllPromptSnippetsPromptSnippetsResponseFormat,
|
|
2992
|
-
),
|
|
2993
|
-
);
|
|
2994
|
-
}
|
|
2995
|
-
|
|
2996
|
-
export function getAllPromptSnippetsPromptSnippetsResponseFormatFromJSON(
|
|
2997
|
-
jsonString: string,
|
|
2998
|
-
): SafeParseResult<
|
|
2999
|
-
GetAllPromptSnippetsPromptSnippetsResponseFormat,
|
|
3000
|
-
SDKValidationError
|
|
3001
|
-
> {
|
|
3002
|
-
return safeParse(
|
|
3003
|
-
jsonString,
|
|
3004
|
-
(x) =>
|
|
3005
|
-
GetAllPromptSnippetsPromptSnippetsResponseFormat$inboundSchema.parse(
|
|
3006
|
-
JSON.parse(x),
|
|
3007
|
-
),
|
|
3008
|
-
`Failed to parse 'GetAllPromptSnippetsPromptSnippetsResponseFormat' from JSON`,
|
|
3009
|
-
);
|
|
3010
|
-
}
|
|
3011
|
-
|
|
3012
|
-
/** @internal */
|
|
3013
|
-
export const GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$inboundSchema:
|
|
3014
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsPhotoRealVersion> = z
|
|
3015
|
-
.nativeEnum(GetAllPromptSnippetsPromptSnippetsPhotoRealVersion);
|
|
3016
|
-
|
|
3017
|
-
/** @internal */
|
|
3018
|
-
export const GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$outboundSchema:
|
|
3019
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsPhotoRealVersion> =
|
|
3020
|
-
GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$inboundSchema;
|
|
3021
|
-
|
|
3022
|
-
/**
|
|
3023
|
-
* @internal
|
|
3024
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3025
|
-
*/
|
|
3026
|
-
export namespace GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$ {
|
|
3027
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$inboundSchema` instead. */
|
|
3028
|
-
export const inboundSchema =
|
|
3029
|
-
GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$inboundSchema;
|
|
3030
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$outboundSchema` instead. */
|
|
3031
|
-
export const outboundSchema =
|
|
3032
|
-
GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$outboundSchema;
|
|
3033
|
-
}
|
|
3034
|
-
|
|
3035
|
-
/** @internal */
|
|
3036
|
-
export const GetAllPromptSnippetsPromptSnippetsEncodingFormat$inboundSchema:
|
|
3037
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsEncodingFormat> = z
|
|
3038
|
-
.nativeEnum(GetAllPromptSnippetsPromptSnippetsEncodingFormat);
|
|
3039
|
-
|
|
3040
|
-
/** @internal */
|
|
3041
|
-
export const GetAllPromptSnippetsPromptSnippetsEncodingFormat$outboundSchema:
|
|
3042
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsEncodingFormat> =
|
|
3043
|
-
GetAllPromptSnippetsPromptSnippetsEncodingFormat$inboundSchema;
|
|
3044
|
-
|
|
3045
|
-
/**
|
|
3046
|
-
* @internal
|
|
3047
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3048
|
-
*/
|
|
3049
|
-
export namespace GetAllPromptSnippetsPromptSnippetsEncodingFormat$ {
|
|
3050
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsEncodingFormat$inboundSchema` instead. */
|
|
3051
|
-
export const inboundSchema =
|
|
3052
|
-
GetAllPromptSnippetsPromptSnippetsEncodingFormat$inboundSchema;
|
|
3053
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsEncodingFormat$outboundSchema` instead. */
|
|
3054
|
-
export const outboundSchema =
|
|
3055
|
-
GetAllPromptSnippetsPromptSnippetsEncodingFormat$outboundSchema;
|
|
3056
|
-
}
|
|
3057
|
-
|
|
3058
|
-
/** @internal */
|
|
3059
|
-
export const GetAllPromptSnippetsPromptSnippetsReasoningEffort$inboundSchema:
|
|
3060
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsReasoningEffort> = z
|
|
3061
|
-
.nativeEnum(GetAllPromptSnippetsPromptSnippetsReasoningEffort);
|
|
3062
|
-
|
|
3063
|
-
/** @internal */
|
|
3064
|
-
export const GetAllPromptSnippetsPromptSnippetsReasoningEffort$outboundSchema:
|
|
3065
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsReasoningEffort> =
|
|
3066
|
-
GetAllPromptSnippetsPromptSnippetsReasoningEffort$inboundSchema;
|
|
3067
|
-
|
|
3068
|
-
/**
|
|
3069
|
-
* @internal
|
|
3070
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3071
|
-
*/
|
|
3072
|
-
export namespace GetAllPromptSnippetsPromptSnippetsReasoningEffort$ {
|
|
3073
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsReasoningEffort$inboundSchema` instead. */
|
|
3074
|
-
export const inboundSchema =
|
|
3075
|
-
GetAllPromptSnippetsPromptSnippetsReasoningEffort$inboundSchema;
|
|
3076
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsReasoningEffort$outboundSchema` instead. */
|
|
3077
|
-
export const outboundSchema =
|
|
3078
|
-
GetAllPromptSnippetsPromptSnippetsReasoningEffort$outboundSchema;
|
|
3079
|
-
}
|
|
3080
|
-
|
|
3081
|
-
/** @internal */
|
|
3082
|
-
export const GetAllPromptSnippetsPromptSnippetsModelParameters$inboundSchema:
|
|
3083
|
-
z.ZodType<
|
|
3084
|
-
GetAllPromptSnippetsPromptSnippetsModelParameters,
|
|
3085
|
-
z.ZodTypeDef,
|
|
3086
|
-
unknown
|
|
3087
|
-
> = z.object({
|
|
3088
|
-
temperature: z.number().optional(),
|
|
3089
|
-
maxTokens: z.number().optional(),
|
|
3090
|
-
topK: z.number().optional(),
|
|
3091
|
-
topP: z.number().optional(),
|
|
3092
|
-
frequencyPenalty: z.number().optional(),
|
|
3093
|
-
presencePenalty: z.number().optional(),
|
|
3094
|
-
numImages: z.number().optional(),
|
|
3095
|
-
seed: z.number().optional(),
|
|
3096
|
-
format: GetAllPromptSnippetsPromptSnippetsFormat$inboundSchema.optional(),
|
|
3097
|
-
dimensions: z.string().optional(),
|
|
3098
|
-
quality: GetAllPromptSnippetsPromptSnippetsQuality$inboundSchema.optional(),
|
|
3099
|
-
style: z.string().optional(),
|
|
3100
|
-
responseFormat: z.nullable(
|
|
3101
|
-
z.union([
|
|
3102
|
-
z.lazy(() =>
|
|
3103
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets2$inboundSchema
|
|
3104
|
-
),
|
|
3105
|
-
z.lazy(() =>
|
|
3106
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets1$inboundSchema
|
|
3107
|
-
),
|
|
3108
|
-
]),
|
|
3109
|
-
).optional(),
|
|
3110
|
-
photoRealVersion:
|
|
3111
|
-
GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$inboundSchema
|
|
3112
|
-
.optional(),
|
|
3113
|
-
encoding_format:
|
|
3114
|
-
GetAllPromptSnippetsPromptSnippetsEncodingFormat$inboundSchema.optional(),
|
|
3115
|
-
reasoningEffort:
|
|
3116
|
-
GetAllPromptSnippetsPromptSnippetsReasoningEffort$inboundSchema
|
|
3117
|
-
.optional(),
|
|
3118
|
-
}).transform((v) => {
|
|
3119
|
-
return remap$(v, {
|
|
3120
|
-
"encoding_format": "encodingFormat",
|
|
3121
|
-
});
|
|
3122
|
-
});
|
|
3123
|
-
|
|
3124
|
-
/** @internal */
|
|
3125
|
-
export type GetAllPromptSnippetsPromptSnippetsModelParameters$Outbound = {
|
|
3126
|
-
temperature?: number | undefined;
|
|
3127
|
-
maxTokens?: number | undefined;
|
|
3128
|
-
topK?: number | undefined;
|
|
3129
|
-
topP?: number | undefined;
|
|
3130
|
-
frequencyPenalty?: number | undefined;
|
|
3131
|
-
presencePenalty?: number | undefined;
|
|
3132
|
-
numImages?: number | undefined;
|
|
3133
|
-
seed?: number | undefined;
|
|
3134
|
-
format?: string | undefined;
|
|
3135
|
-
dimensions?: string | undefined;
|
|
3136
|
-
quality?: string | undefined;
|
|
3137
|
-
style?: string | undefined;
|
|
3138
|
-
responseFormat?:
|
|
3139
|
-
| GetAllPromptSnippetsResponseFormatPromptSnippets2$Outbound
|
|
3140
|
-
| GetAllPromptSnippetsResponseFormatPromptSnippets1$Outbound
|
|
3141
|
-
| null
|
|
3142
|
-
| undefined;
|
|
3143
|
-
photoRealVersion?: string | undefined;
|
|
3144
|
-
encoding_format?: string | undefined;
|
|
3145
|
-
reasoningEffort?: string | undefined;
|
|
3146
|
-
};
|
|
3147
|
-
|
|
3148
|
-
/** @internal */
|
|
3149
|
-
export const GetAllPromptSnippetsPromptSnippetsModelParameters$outboundSchema:
|
|
3150
|
-
z.ZodType<
|
|
3151
|
-
GetAllPromptSnippetsPromptSnippetsModelParameters$Outbound,
|
|
3152
|
-
z.ZodTypeDef,
|
|
3153
|
-
GetAllPromptSnippetsPromptSnippetsModelParameters
|
|
3154
|
-
> = z.object({
|
|
3155
|
-
temperature: z.number().optional(),
|
|
3156
|
-
maxTokens: z.number().optional(),
|
|
3157
|
-
topK: z.number().optional(),
|
|
3158
|
-
topP: z.number().optional(),
|
|
3159
|
-
frequencyPenalty: z.number().optional(),
|
|
3160
|
-
presencePenalty: z.number().optional(),
|
|
3161
|
-
numImages: z.number().optional(),
|
|
3162
|
-
seed: z.number().optional(),
|
|
3163
|
-
format: GetAllPromptSnippetsPromptSnippetsFormat$outboundSchema.optional(),
|
|
3164
|
-
dimensions: z.string().optional(),
|
|
3165
|
-
quality: GetAllPromptSnippetsPromptSnippetsQuality$outboundSchema
|
|
3166
|
-
.optional(),
|
|
3167
|
-
style: z.string().optional(),
|
|
3168
|
-
responseFormat: z.nullable(
|
|
3169
|
-
z.union([
|
|
3170
|
-
z.lazy(() =>
|
|
3171
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets2$outboundSchema
|
|
3172
|
-
),
|
|
3173
|
-
z.lazy(() =>
|
|
3174
|
-
GetAllPromptSnippetsResponseFormatPromptSnippets1$outboundSchema
|
|
3175
|
-
),
|
|
3176
|
-
]),
|
|
3177
|
-
).optional(),
|
|
3178
|
-
photoRealVersion:
|
|
3179
|
-
GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$outboundSchema
|
|
3180
|
-
.optional(),
|
|
3181
|
-
encodingFormat:
|
|
3182
|
-
GetAllPromptSnippetsPromptSnippetsEncodingFormat$outboundSchema
|
|
3183
|
-
.optional(),
|
|
3184
|
-
reasoningEffort:
|
|
3185
|
-
GetAllPromptSnippetsPromptSnippetsReasoningEffort$outboundSchema
|
|
3186
|
-
.optional(),
|
|
3187
|
-
}).transform((v) => {
|
|
3188
|
-
return remap$(v, {
|
|
3189
|
-
encodingFormat: "encoding_format",
|
|
3190
|
-
});
|
|
3191
|
-
});
|
|
3192
|
-
|
|
3193
|
-
/**
|
|
3194
|
-
* @internal
|
|
3195
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3196
|
-
*/
|
|
3197
|
-
export namespace GetAllPromptSnippetsPromptSnippetsModelParameters$ {
|
|
3198
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsModelParameters$inboundSchema` instead. */
|
|
3199
|
-
export const inboundSchema =
|
|
3200
|
-
GetAllPromptSnippetsPromptSnippetsModelParameters$inboundSchema;
|
|
3201
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsModelParameters$outboundSchema` instead. */
|
|
3202
|
-
export const outboundSchema =
|
|
3203
|
-
GetAllPromptSnippetsPromptSnippetsModelParameters$outboundSchema;
|
|
3204
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsModelParameters$Outbound` instead. */
|
|
3205
|
-
export type Outbound =
|
|
3206
|
-
GetAllPromptSnippetsPromptSnippetsModelParameters$Outbound;
|
|
3207
|
-
}
|
|
3208
|
-
|
|
3209
|
-
export function getAllPromptSnippetsPromptSnippetsModelParametersToJSON(
|
|
3210
|
-
getAllPromptSnippetsPromptSnippetsModelParameters:
|
|
3211
|
-
GetAllPromptSnippetsPromptSnippetsModelParameters,
|
|
3212
|
-
): string {
|
|
3213
|
-
return JSON.stringify(
|
|
3214
|
-
GetAllPromptSnippetsPromptSnippetsModelParameters$outboundSchema.parse(
|
|
3215
|
-
getAllPromptSnippetsPromptSnippetsModelParameters,
|
|
3216
|
-
),
|
|
3217
|
-
);
|
|
3218
|
-
}
|
|
3219
|
-
|
|
3220
|
-
export function getAllPromptSnippetsPromptSnippetsModelParametersFromJSON(
|
|
3221
|
-
jsonString: string,
|
|
3222
|
-
): SafeParseResult<
|
|
3223
|
-
GetAllPromptSnippetsPromptSnippetsModelParameters,
|
|
3224
|
-
SDKValidationError
|
|
3225
|
-
> {
|
|
3226
|
-
return safeParse(
|
|
3227
|
-
jsonString,
|
|
3228
|
-
(x) =>
|
|
3229
|
-
GetAllPromptSnippetsPromptSnippetsModelParameters$inboundSchema.parse(
|
|
3230
|
-
JSON.parse(x),
|
|
3231
|
-
),
|
|
3232
|
-
`Failed to parse 'GetAllPromptSnippetsPromptSnippetsModelParameters' from JSON`,
|
|
3233
|
-
);
|
|
3234
|
-
}
|
|
3235
|
-
|
|
3236
|
-
/** @internal */
|
|
3237
|
-
export const GetAllPromptSnippetsPromptSnippetsProvider$inboundSchema:
|
|
3238
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsProvider> = z
|
|
3239
|
-
.nativeEnum(GetAllPromptSnippetsPromptSnippetsProvider);
|
|
3240
|
-
|
|
3241
|
-
/** @internal */
|
|
3242
|
-
export const GetAllPromptSnippetsPromptSnippetsProvider$outboundSchema:
|
|
3243
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsProvider> =
|
|
3244
|
-
GetAllPromptSnippetsPromptSnippetsProvider$inboundSchema;
|
|
3245
|
-
|
|
3246
|
-
/**
|
|
3247
|
-
* @internal
|
|
3248
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3249
|
-
*/
|
|
3250
|
-
export namespace GetAllPromptSnippetsPromptSnippetsProvider$ {
|
|
3251
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsProvider$inboundSchema` instead. */
|
|
3252
|
-
export const inboundSchema =
|
|
3253
|
-
GetAllPromptSnippetsPromptSnippetsProvider$inboundSchema;
|
|
3254
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsProvider$outboundSchema` instead. */
|
|
3255
|
-
export const outboundSchema =
|
|
3256
|
-
GetAllPromptSnippetsPromptSnippetsProvider$outboundSchema;
|
|
3257
|
-
}
|
|
3258
|
-
|
|
3259
|
-
/** @internal */
|
|
3260
|
-
export const GetAllPromptSnippetsPromptSnippetsRole$inboundSchema:
|
|
3261
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsRole> = z.nativeEnum(
|
|
3262
|
-
GetAllPromptSnippetsPromptSnippetsRole,
|
|
3263
|
-
);
|
|
3264
|
-
|
|
3265
|
-
/** @internal */
|
|
3266
|
-
export const GetAllPromptSnippetsPromptSnippetsRole$outboundSchema:
|
|
3267
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsRole> =
|
|
3268
|
-
GetAllPromptSnippetsPromptSnippetsRole$inboundSchema;
|
|
3269
|
-
|
|
3270
|
-
/**
|
|
3271
|
-
* @internal
|
|
3272
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3273
|
-
*/
|
|
3274
|
-
export namespace GetAllPromptSnippetsPromptSnippetsRole$ {
|
|
3275
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsRole$inboundSchema` instead. */
|
|
3276
|
-
export const inboundSchema =
|
|
3277
|
-
GetAllPromptSnippetsPromptSnippetsRole$inboundSchema;
|
|
3278
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsRole$outboundSchema` instead. */
|
|
3279
|
-
export const outboundSchema =
|
|
3280
|
-
GetAllPromptSnippetsPromptSnippetsRole$outboundSchema;
|
|
3281
|
-
}
|
|
3282
|
-
|
|
3283
|
-
/** @internal */
|
|
3284
|
-
export const GetAllPromptSnippets2PromptSnippetsResponse200Type$inboundSchema:
|
|
3285
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippets2PromptSnippetsResponse200Type> = z
|
|
3286
|
-
.nativeEnum(GetAllPromptSnippets2PromptSnippetsResponse200Type);
|
|
3287
|
-
|
|
3288
|
-
/** @internal */
|
|
3289
|
-
export const GetAllPromptSnippets2PromptSnippetsResponse200Type$outboundSchema:
|
|
3290
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippets2PromptSnippetsResponse200Type> =
|
|
3291
|
-
GetAllPromptSnippets2PromptSnippetsResponse200Type$inboundSchema;
|
|
3292
|
-
|
|
3293
|
-
/**
|
|
3294
|
-
* @internal
|
|
3295
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3296
|
-
*/
|
|
3297
|
-
export namespace GetAllPromptSnippets2PromptSnippetsResponse200Type$ {
|
|
3298
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippetsResponse200Type$inboundSchema` instead. */
|
|
3299
|
-
export const inboundSchema =
|
|
3300
|
-
GetAllPromptSnippets2PromptSnippetsResponse200Type$inboundSchema;
|
|
3301
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippetsResponse200Type$outboundSchema` instead. */
|
|
3302
|
-
export const outboundSchema =
|
|
3303
|
-
GetAllPromptSnippets2PromptSnippetsResponse200Type$outboundSchema;
|
|
3304
|
-
}
|
|
3305
|
-
|
|
3306
|
-
/** @internal */
|
|
3307
|
-
export const GetAllPromptSnippets2PromptSnippetsImageUrl$inboundSchema:
|
|
3308
|
-
z.ZodType<
|
|
3309
|
-
GetAllPromptSnippets2PromptSnippetsImageUrl,
|
|
3310
|
-
z.ZodTypeDef,
|
|
3311
|
-
unknown
|
|
3312
|
-
> = z.object({
|
|
3313
|
-
id: z.string().optional(),
|
|
3314
|
-
url: z.string(),
|
|
3315
|
-
detail: z.string().optional(),
|
|
3316
|
-
});
|
|
3317
|
-
|
|
3318
|
-
/** @internal */
|
|
3319
|
-
export type GetAllPromptSnippets2PromptSnippetsImageUrl$Outbound = {
|
|
3320
|
-
id?: string | undefined;
|
|
3321
|
-
url: string;
|
|
3322
|
-
detail?: string | undefined;
|
|
3323
|
-
};
|
|
3324
|
-
|
|
3325
|
-
/** @internal */
|
|
3326
|
-
export const GetAllPromptSnippets2PromptSnippetsImageUrl$outboundSchema:
|
|
3327
|
-
z.ZodType<
|
|
3328
|
-
GetAllPromptSnippets2PromptSnippetsImageUrl$Outbound,
|
|
3329
|
-
z.ZodTypeDef,
|
|
3330
|
-
GetAllPromptSnippets2PromptSnippetsImageUrl
|
|
3331
|
-
> = z.object({
|
|
3332
|
-
id: z.string().optional(),
|
|
3333
|
-
url: z.string(),
|
|
3334
|
-
detail: z.string().optional(),
|
|
3335
|
-
});
|
|
3336
|
-
|
|
3337
|
-
/**
|
|
3338
|
-
* @internal
|
|
3339
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3340
|
-
*/
|
|
3341
|
-
export namespace GetAllPromptSnippets2PromptSnippetsImageUrl$ {
|
|
3342
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippetsImageUrl$inboundSchema` instead. */
|
|
3343
|
-
export const inboundSchema =
|
|
3344
|
-
GetAllPromptSnippets2PromptSnippetsImageUrl$inboundSchema;
|
|
3345
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippetsImageUrl$outboundSchema` instead. */
|
|
3346
|
-
export const outboundSchema =
|
|
3347
|
-
GetAllPromptSnippets2PromptSnippetsImageUrl$outboundSchema;
|
|
3348
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippetsImageUrl$Outbound` instead. */
|
|
3349
|
-
export type Outbound = GetAllPromptSnippets2PromptSnippetsImageUrl$Outbound;
|
|
3350
|
-
}
|
|
3351
|
-
|
|
3352
|
-
export function getAllPromptSnippets2PromptSnippetsImageUrlToJSON(
|
|
3353
|
-
getAllPromptSnippets2PromptSnippetsImageUrl:
|
|
3354
|
-
GetAllPromptSnippets2PromptSnippetsImageUrl,
|
|
3355
|
-
): string {
|
|
3356
|
-
return JSON.stringify(
|
|
3357
|
-
GetAllPromptSnippets2PromptSnippetsImageUrl$outboundSchema.parse(
|
|
3358
|
-
getAllPromptSnippets2PromptSnippetsImageUrl,
|
|
3359
|
-
),
|
|
3360
|
-
);
|
|
3361
|
-
}
|
|
3362
|
-
|
|
3363
|
-
export function getAllPromptSnippets2PromptSnippetsImageUrlFromJSON(
|
|
3364
|
-
jsonString: string,
|
|
3365
|
-
): SafeParseResult<
|
|
3366
|
-
GetAllPromptSnippets2PromptSnippetsImageUrl,
|
|
3367
|
-
SDKValidationError
|
|
3368
|
-
> {
|
|
3369
|
-
return safeParse(
|
|
3370
|
-
jsonString,
|
|
3371
|
-
(x) =>
|
|
3372
|
-
GetAllPromptSnippets2PromptSnippetsImageUrl$inboundSchema.parse(
|
|
3373
|
-
JSON.parse(x),
|
|
3374
|
-
),
|
|
3375
|
-
`Failed to parse 'GetAllPromptSnippets2PromptSnippetsImageUrl' from JSON`,
|
|
3376
|
-
);
|
|
3377
|
-
}
|
|
3378
|
-
|
|
3379
|
-
/** @internal */
|
|
3380
|
-
export const GetAllPromptSnippets2PromptSnippets2$inboundSchema: z.ZodType<
|
|
3381
|
-
GetAllPromptSnippets2PromptSnippets2,
|
|
3382
|
-
z.ZodTypeDef,
|
|
3383
|
-
unknown
|
|
3384
|
-
> = z.object({
|
|
3385
|
-
type: GetAllPromptSnippets2PromptSnippetsResponse200Type$inboundSchema,
|
|
3386
|
-
image_url: z.lazy(() =>
|
|
3387
|
-
GetAllPromptSnippets2PromptSnippetsImageUrl$inboundSchema
|
|
3388
|
-
),
|
|
3389
|
-
}).transform((v) => {
|
|
3390
|
-
return remap$(v, {
|
|
3391
|
-
"image_url": "imageUrl",
|
|
3392
|
-
});
|
|
3393
|
-
});
|
|
3394
|
-
|
|
3395
|
-
/** @internal */
|
|
3396
|
-
export type GetAllPromptSnippets2PromptSnippets2$Outbound = {
|
|
3397
|
-
type: string;
|
|
3398
|
-
image_url: GetAllPromptSnippets2PromptSnippetsImageUrl$Outbound;
|
|
3399
|
-
};
|
|
3400
|
-
|
|
3401
|
-
/** @internal */
|
|
3402
|
-
export const GetAllPromptSnippets2PromptSnippets2$outboundSchema: z.ZodType<
|
|
3403
|
-
GetAllPromptSnippets2PromptSnippets2$Outbound,
|
|
3404
|
-
z.ZodTypeDef,
|
|
3405
|
-
GetAllPromptSnippets2PromptSnippets2
|
|
3406
|
-
> = z.object({
|
|
3407
|
-
type: GetAllPromptSnippets2PromptSnippetsResponse200Type$outboundSchema,
|
|
3408
|
-
imageUrl: z.lazy(() =>
|
|
3409
|
-
GetAllPromptSnippets2PromptSnippetsImageUrl$outboundSchema
|
|
3410
|
-
),
|
|
3411
|
-
}).transform((v) => {
|
|
3412
|
-
return remap$(v, {
|
|
3413
|
-
imageUrl: "image_url",
|
|
3414
|
-
});
|
|
3415
|
-
});
|
|
3416
|
-
|
|
3417
|
-
/**
|
|
3418
|
-
* @internal
|
|
3419
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3420
|
-
*/
|
|
3421
|
-
export namespace GetAllPromptSnippets2PromptSnippets2$ {
|
|
3422
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippets2$inboundSchema` instead. */
|
|
3423
|
-
export const inboundSchema =
|
|
3424
|
-
GetAllPromptSnippets2PromptSnippets2$inboundSchema;
|
|
3425
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippets2$outboundSchema` instead. */
|
|
3426
|
-
export const outboundSchema =
|
|
3427
|
-
GetAllPromptSnippets2PromptSnippets2$outboundSchema;
|
|
3428
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippets2$Outbound` instead. */
|
|
3429
|
-
export type Outbound = GetAllPromptSnippets2PromptSnippets2$Outbound;
|
|
3430
|
-
}
|
|
3431
|
-
|
|
3432
|
-
export function getAllPromptSnippets2PromptSnippets2ToJSON(
|
|
3433
|
-
getAllPromptSnippets2PromptSnippets2: GetAllPromptSnippets2PromptSnippets2,
|
|
3434
|
-
): string {
|
|
3435
|
-
return JSON.stringify(
|
|
3436
|
-
GetAllPromptSnippets2PromptSnippets2$outboundSchema.parse(
|
|
3437
|
-
getAllPromptSnippets2PromptSnippets2,
|
|
3438
|
-
),
|
|
3439
|
-
);
|
|
3440
|
-
}
|
|
3441
|
-
|
|
3442
|
-
export function getAllPromptSnippets2PromptSnippets2FromJSON(
|
|
3443
|
-
jsonString: string,
|
|
3444
|
-
): SafeParseResult<GetAllPromptSnippets2PromptSnippets2, SDKValidationError> {
|
|
3445
|
-
return safeParse(
|
|
3446
|
-
jsonString,
|
|
3447
|
-
(x) =>
|
|
3448
|
-
GetAllPromptSnippets2PromptSnippets2$inboundSchema.parse(JSON.parse(x)),
|
|
3449
|
-
`Failed to parse 'GetAllPromptSnippets2PromptSnippets2' from JSON`,
|
|
3450
|
-
);
|
|
3451
|
-
}
|
|
3452
|
-
|
|
3453
|
-
/** @internal */
|
|
3454
|
-
export const GetAllPromptSnippets2PromptSnippetsResponseType$inboundSchema:
|
|
3455
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippets2PromptSnippetsResponseType> = z
|
|
3456
|
-
.nativeEnum(GetAllPromptSnippets2PromptSnippetsResponseType);
|
|
3457
|
-
|
|
3458
|
-
/** @internal */
|
|
3459
|
-
export const GetAllPromptSnippets2PromptSnippetsResponseType$outboundSchema:
|
|
3460
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippets2PromptSnippetsResponseType> =
|
|
3461
|
-
GetAllPromptSnippets2PromptSnippetsResponseType$inboundSchema;
|
|
3462
|
-
|
|
3463
|
-
/**
|
|
3464
|
-
* @internal
|
|
3465
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3466
|
-
*/
|
|
3467
|
-
export namespace GetAllPromptSnippets2PromptSnippetsResponseType$ {
|
|
3468
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippetsResponseType$inboundSchema` instead. */
|
|
3469
|
-
export const inboundSchema =
|
|
3470
|
-
GetAllPromptSnippets2PromptSnippetsResponseType$inboundSchema;
|
|
3471
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippetsResponseType$outboundSchema` instead. */
|
|
3472
|
-
export const outboundSchema =
|
|
3473
|
-
GetAllPromptSnippets2PromptSnippetsResponseType$outboundSchema;
|
|
3474
|
-
}
|
|
3475
|
-
|
|
3476
|
-
/** @internal */
|
|
3477
|
-
export const GetAllPromptSnippets2PromptSnippets1$inboundSchema: z.ZodType<
|
|
3478
|
-
GetAllPromptSnippets2PromptSnippets1,
|
|
3479
|
-
z.ZodTypeDef,
|
|
3480
|
-
unknown
|
|
3481
|
-
> = z.object({
|
|
3482
|
-
type: GetAllPromptSnippets2PromptSnippetsResponseType$inboundSchema,
|
|
3483
|
-
text: z.string(),
|
|
3484
|
-
});
|
|
3485
|
-
|
|
3486
|
-
/** @internal */
|
|
3487
|
-
export type GetAllPromptSnippets2PromptSnippets1$Outbound = {
|
|
3488
|
-
type: string;
|
|
3489
|
-
text: string;
|
|
3490
|
-
};
|
|
3491
|
-
|
|
3492
|
-
/** @internal */
|
|
3493
|
-
export const GetAllPromptSnippets2PromptSnippets1$outboundSchema: z.ZodType<
|
|
3494
|
-
GetAllPromptSnippets2PromptSnippets1$Outbound,
|
|
3495
|
-
z.ZodTypeDef,
|
|
3496
|
-
GetAllPromptSnippets2PromptSnippets1
|
|
3497
|
-
> = z.object({
|
|
3498
|
-
type: GetAllPromptSnippets2PromptSnippetsResponseType$outboundSchema,
|
|
3499
|
-
text: z.string(),
|
|
3500
|
-
});
|
|
3501
|
-
|
|
3502
|
-
/**
|
|
3503
|
-
* @internal
|
|
3504
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3505
|
-
*/
|
|
3506
|
-
export namespace GetAllPromptSnippets2PromptSnippets1$ {
|
|
3507
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippets1$inboundSchema` instead. */
|
|
3508
|
-
export const inboundSchema =
|
|
3509
|
-
GetAllPromptSnippets2PromptSnippets1$inboundSchema;
|
|
3510
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippets1$outboundSchema` instead. */
|
|
3511
|
-
export const outboundSchema =
|
|
3512
|
-
GetAllPromptSnippets2PromptSnippets1$outboundSchema;
|
|
3513
|
-
/** @deprecated use `GetAllPromptSnippets2PromptSnippets1$Outbound` instead. */
|
|
3514
|
-
export type Outbound = GetAllPromptSnippets2PromptSnippets1$Outbound;
|
|
3515
|
-
}
|
|
3516
|
-
|
|
3517
|
-
export function getAllPromptSnippets2PromptSnippets1ToJSON(
|
|
3518
|
-
getAllPromptSnippets2PromptSnippets1: GetAllPromptSnippets2PromptSnippets1,
|
|
3519
|
-
): string {
|
|
3520
|
-
return JSON.stringify(
|
|
3521
|
-
GetAllPromptSnippets2PromptSnippets1$outboundSchema.parse(
|
|
3522
|
-
getAllPromptSnippets2PromptSnippets1,
|
|
3523
|
-
),
|
|
3524
|
-
);
|
|
3525
|
-
}
|
|
3526
|
-
|
|
3527
|
-
export function getAllPromptSnippets2PromptSnippets1FromJSON(
|
|
3528
|
-
jsonString: string,
|
|
3529
|
-
): SafeParseResult<GetAllPromptSnippets2PromptSnippets1, SDKValidationError> {
|
|
3530
|
-
return safeParse(
|
|
3531
|
-
jsonString,
|
|
3532
|
-
(x) =>
|
|
3533
|
-
GetAllPromptSnippets2PromptSnippets1$inboundSchema.parse(JSON.parse(x)),
|
|
3534
|
-
`Failed to parse 'GetAllPromptSnippets2PromptSnippets1' from JSON`,
|
|
3535
|
-
);
|
|
3536
|
-
}
|
|
3537
|
-
|
|
3538
|
-
/** @internal */
|
|
3539
|
-
export const GetAllPromptSnippetsContentPromptSnippets2$inboundSchema:
|
|
3540
|
-
z.ZodType<GetAllPromptSnippetsContentPromptSnippets2, z.ZodTypeDef, unknown> =
|
|
3541
|
-
z.union([
|
|
3542
|
-
z.lazy(() => GetAllPromptSnippets2PromptSnippets1$inboundSchema),
|
|
3543
|
-
z.lazy(() => GetAllPromptSnippets2PromptSnippets2$inboundSchema),
|
|
3544
|
-
]);
|
|
3545
|
-
|
|
3546
|
-
/** @internal */
|
|
3547
|
-
export type GetAllPromptSnippetsContentPromptSnippets2$Outbound =
|
|
3548
|
-
| GetAllPromptSnippets2PromptSnippets1$Outbound
|
|
3549
|
-
| GetAllPromptSnippets2PromptSnippets2$Outbound;
|
|
3550
|
-
|
|
3551
|
-
/** @internal */
|
|
3552
|
-
export const GetAllPromptSnippetsContentPromptSnippets2$outboundSchema:
|
|
3553
|
-
z.ZodType<
|
|
3554
|
-
GetAllPromptSnippetsContentPromptSnippets2$Outbound,
|
|
3555
|
-
z.ZodTypeDef,
|
|
3556
|
-
GetAllPromptSnippetsContentPromptSnippets2
|
|
3557
|
-
> = z.union([
|
|
3558
|
-
z.lazy(() => GetAllPromptSnippets2PromptSnippets1$outboundSchema),
|
|
3559
|
-
z.lazy(() => GetAllPromptSnippets2PromptSnippets2$outboundSchema),
|
|
3560
|
-
]);
|
|
3561
|
-
|
|
3562
|
-
/**
|
|
3563
|
-
* @internal
|
|
3564
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3565
|
-
*/
|
|
3566
|
-
export namespace GetAllPromptSnippetsContentPromptSnippets2$ {
|
|
3567
|
-
/** @deprecated use `GetAllPromptSnippetsContentPromptSnippets2$inboundSchema` instead. */
|
|
3568
|
-
export const inboundSchema =
|
|
3569
|
-
GetAllPromptSnippetsContentPromptSnippets2$inboundSchema;
|
|
3570
|
-
/** @deprecated use `GetAllPromptSnippetsContentPromptSnippets2$outboundSchema` instead. */
|
|
3571
|
-
export const outboundSchema =
|
|
3572
|
-
GetAllPromptSnippetsContentPromptSnippets2$outboundSchema;
|
|
3573
|
-
/** @deprecated use `GetAllPromptSnippetsContentPromptSnippets2$Outbound` instead. */
|
|
3574
|
-
export type Outbound = GetAllPromptSnippetsContentPromptSnippets2$Outbound;
|
|
3575
|
-
}
|
|
3576
|
-
|
|
3577
|
-
export function getAllPromptSnippetsContentPromptSnippets2ToJSON(
|
|
3578
|
-
getAllPromptSnippetsContentPromptSnippets2:
|
|
3579
|
-
GetAllPromptSnippetsContentPromptSnippets2,
|
|
3580
|
-
): string {
|
|
3581
|
-
return JSON.stringify(
|
|
3582
|
-
GetAllPromptSnippetsContentPromptSnippets2$outboundSchema.parse(
|
|
3583
|
-
getAllPromptSnippetsContentPromptSnippets2,
|
|
3584
|
-
),
|
|
3585
|
-
);
|
|
3586
|
-
}
|
|
3587
|
-
|
|
3588
|
-
export function getAllPromptSnippetsContentPromptSnippets2FromJSON(
|
|
3589
|
-
jsonString: string,
|
|
3590
|
-
): SafeParseResult<
|
|
3591
|
-
GetAllPromptSnippetsContentPromptSnippets2,
|
|
3592
|
-
SDKValidationError
|
|
3593
|
-
> {
|
|
3594
|
-
return safeParse(
|
|
3595
|
-
jsonString,
|
|
3596
|
-
(x) =>
|
|
3597
|
-
GetAllPromptSnippetsContentPromptSnippets2$inboundSchema.parse(
|
|
3598
|
-
JSON.parse(x),
|
|
3599
|
-
),
|
|
3600
|
-
`Failed to parse 'GetAllPromptSnippetsContentPromptSnippets2' from JSON`,
|
|
3601
|
-
);
|
|
3602
|
-
}
|
|
3603
|
-
|
|
3604
|
-
/** @internal */
|
|
3605
|
-
export const GetAllPromptSnippetsPromptSnippetsContent$inboundSchema: z.ZodType<
|
|
3606
|
-
GetAllPromptSnippetsPromptSnippetsContent,
|
|
3607
|
-
z.ZodTypeDef,
|
|
3608
|
-
unknown
|
|
3609
|
-
> = z.union([
|
|
3610
|
-
z.string(),
|
|
3611
|
-
z.array(z.union([
|
|
3612
|
-
z.lazy(() => GetAllPromptSnippets2PromptSnippets1$inboundSchema),
|
|
3613
|
-
z.lazy(() => GetAllPromptSnippets2PromptSnippets2$inboundSchema),
|
|
3614
|
-
])),
|
|
3615
|
-
]);
|
|
3616
|
-
|
|
3617
|
-
/** @internal */
|
|
3618
|
-
export type GetAllPromptSnippetsPromptSnippetsContent$Outbound =
|
|
3619
|
-
| string
|
|
3620
|
-
| Array<
|
|
3621
|
-
| GetAllPromptSnippets2PromptSnippets1$Outbound
|
|
3622
|
-
| GetAllPromptSnippets2PromptSnippets2$Outbound
|
|
3623
|
-
>;
|
|
3624
|
-
|
|
3625
|
-
/** @internal */
|
|
3626
|
-
export const GetAllPromptSnippetsPromptSnippetsContent$outboundSchema:
|
|
3627
|
-
z.ZodType<
|
|
3628
|
-
GetAllPromptSnippetsPromptSnippetsContent$Outbound,
|
|
3629
|
-
z.ZodTypeDef,
|
|
3630
|
-
GetAllPromptSnippetsPromptSnippetsContent
|
|
3631
|
-
> = z.union([
|
|
3632
|
-
z.string(),
|
|
3633
|
-
z.array(z.union([
|
|
3634
|
-
z.lazy(() => GetAllPromptSnippets2PromptSnippets1$outboundSchema),
|
|
3635
|
-
z.lazy(() => GetAllPromptSnippets2PromptSnippets2$outboundSchema),
|
|
3636
|
-
])),
|
|
3637
|
-
]);
|
|
3638
|
-
|
|
3639
|
-
/**
|
|
3640
|
-
* @internal
|
|
3641
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3642
|
-
*/
|
|
3643
|
-
export namespace GetAllPromptSnippetsPromptSnippetsContent$ {
|
|
3644
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsContent$inboundSchema` instead. */
|
|
3645
|
-
export const inboundSchema =
|
|
3646
|
-
GetAllPromptSnippetsPromptSnippetsContent$inboundSchema;
|
|
3647
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsContent$outboundSchema` instead. */
|
|
3648
|
-
export const outboundSchema =
|
|
3649
|
-
GetAllPromptSnippetsPromptSnippetsContent$outboundSchema;
|
|
3650
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsContent$Outbound` instead. */
|
|
3651
|
-
export type Outbound = GetAllPromptSnippetsPromptSnippetsContent$Outbound;
|
|
3652
|
-
}
|
|
3653
|
-
|
|
3654
|
-
export function getAllPromptSnippetsPromptSnippetsContentToJSON(
|
|
3655
|
-
getAllPromptSnippetsPromptSnippetsContent:
|
|
3656
|
-
GetAllPromptSnippetsPromptSnippetsContent,
|
|
3657
|
-
): string {
|
|
3658
|
-
return JSON.stringify(
|
|
3659
|
-
GetAllPromptSnippetsPromptSnippetsContent$outboundSchema.parse(
|
|
3660
|
-
getAllPromptSnippetsPromptSnippetsContent,
|
|
3661
|
-
),
|
|
3662
|
-
);
|
|
3663
|
-
}
|
|
3664
|
-
|
|
3665
|
-
export function getAllPromptSnippetsPromptSnippetsContentFromJSON(
|
|
3666
|
-
jsonString: string,
|
|
3667
|
-
): SafeParseResult<
|
|
3668
|
-
GetAllPromptSnippetsPromptSnippetsContent,
|
|
3669
|
-
SDKValidationError
|
|
3670
|
-
> {
|
|
3671
|
-
return safeParse(
|
|
3672
|
-
jsonString,
|
|
3673
|
-
(x) =>
|
|
3674
|
-
GetAllPromptSnippetsPromptSnippetsContent$inboundSchema.parse(
|
|
3675
|
-
JSON.parse(x),
|
|
3676
|
-
),
|
|
3677
|
-
`Failed to parse 'GetAllPromptSnippetsPromptSnippetsContent' from JSON`,
|
|
3678
|
-
);
|
|
3679
|
-
}
|
|
3680
|
-
|
|
3681
|
-
/** @internal */
|
|
3682
|
-
export const GetAllPromptSnippetsPromptSnippetsResponseType$inboundSchema:
|
|
3683
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsResponseType> = z
|
|
3684
|
-
.nativeEnum(GetAllPromptSnippetsPromptSnippetsResponseType);
|
|
3685
|
-
|
|
3686
|
-
/** @internal */
|
|
3687
|
-
export const GetAllPromptSnippetsPromptSnippetsResponseType$outboundSchema:
|
|
3688
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsResponseType> =
|
|
3689
|
-
GetAllPromptSnippetsPromptSnippetsResponseType$inboundSchema;
|
|
3690
|
-
|
|
3691
|
-
/**
|
|
3692
|
-
* @internal
|
|
3693
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3694
|
-
*/
|
|
3695
|
-
export namespace GetAllPromptSnippetsPromptSnippetsResponseType$ {
|
|
3696
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsResponseType$inboundSchema` instead. */
|
|
3697
|
-
export const inboundSchema =
|
|
3698
|
-
GetAllPromptSnippetsPromptSnippetsResponseType$inboundSchema;
|
|
3699
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsResponseType$outboundSchema` instead. */
|
|
3700
|
-
export const outboundSchema =
|
|
3701
|
-
GetAllPromptSnippetsPromptSnippetsResponseType$outboundSchema;
|
|
3702
|
-
}
|
|
3703
|
-
|
|
3704
|
-
/** @internal */
|
|
3705
|
-
export const GetAllPromptSnippetsPromptSnippetsFunction$inboundSchema:
|
|
3706
|
-
z.ZodType<GetAllPromptSnippetsPromptSnippetsFunction, z.ZodTypeDef, unknown> =
|
|
3707
|
-
z.object({
|
|
3708
|
-
name: z.string(),
|
|
3709
|
-
arguments: z.string(),
|
|
3710
|
-
});
|
|
3711
|
-
|
|
3712
|
-
/** @internal */
|
|
3713
|
-
export type GetAllPromptSnippetsPromptSnippetsFunction$Outbound = {
|
|
3714
|
-
name: string;
|
|
3715
|
-
arguments: string;
|
|
3716
|
-
};
|
|
3717
|
-
|
|
3718
|
-
/** @internal */
|
|
3719
|
-
export const GetAllPromptSnippetsPromptSnippetsFunction$outboundSchema:
|
|
3720
|
-
z.ZodType<
|
|
3721
|
-
GetAllPromptSnippetsPromptSnippetsFunction$Outbound,
|
|
3722
|
-
z.ZodTypeDef,
|
|
3723
|
-
GetAllPromptSnippetsPromptSnippetsFunction
|
|
3724
|
-
> = z.object({
|
|
3725
|
-
name: z.string(),
|
|
3726
|
-
arguments: z.string(),
|
|
3727
|
-
});
|
|
3728
|
-
|
|
3729
|
-
/**
|
|
3730
|
-
* @internal
|
|
3731
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3732
|
-
*/
|
|
3733
|
-
export namespace GetAllPromptSnippetsPromptSnippetsFunction$ {
|
|
3734
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsFunction$inboundSchema` instead. */
|
|
3735
|
-
export const inboundSchema =
|
|
3736
|
-
GetAllPromptSnippetsPromptSnippetsFunction$inboundSchema;
|
|
3737
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsFunction$outboundSchema` instead. */
|
|
3738
|
-
export const outboundSchema =
|
|
3739
|
-
GetAllPromptSnippetsPromptSnippetsFunction$outboundSchema;
|
|
3740
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsFunction$Outbound` instead. */
|
|
3741
|
-
export type Outbound = GetAllPromptSnippetsPromptSnippetsFunction$Outbound;
|
|
3742
|
-
}
|
|
3743
|
-
|
|
3744
|
-
export function getAllPromptSnippetsPromptSnippetsFunctionToJSON(
|
|
3745
|
-
getAllPromptSnippetsPromptSnippetsFunction:
|
|
3746
|
-
GetAllPromptSnippetsPromptSnippetsFunction,
|
|
3747
|
-
): string {
|
|
3748
|
-
return JSON.stringify(
|
|
3749
|
-
GetAllPromptSnippetsPromptSnippetsFunction$outboundSchema.parse(
|
|
3750
|
-
getAllPromptSnippetsPromptSnippetsFunction,
|
|
3751
|
-
),
|
|
3752
|
-
);
|
|
3753
|
-
}
|
|
3754
|
-
|
|
3755
|
-
export function getAllPromptSnippetsPromptSnippetsFunctionFromJSON(
|
|
3756
|
-
jsonString: string,
|
|
3757
|
-
): SafeParseResult<
|
|
3758
|
-
GetAllPromptSnippetsPromptSnippetsFunction,
|
|
3759
|
-
SDKValidationError
|
|
3760
|
-
> {
|
|
3761
|
-
return safeParse(
|
|
3762
|
-
jsonString,
|
|
3763
|
-
(x) =>
|
|
3764
|
-
GetAllPromptSnippetsPromptSnippetsFunction$inboundSchema.parse(
|
|
3765
|
-
JSON.parse(x),
|
|
3766
|
-
),
|
|
3767
|
-
`Failed to parse 'GetAllPromptSnippetsPromptSnippetsFunction' from JSON`,
|
|
3768
|
-
);
|
|
3769
|
-
}
|
|
3770
|
-
|
|
3771
|
-
/** @internal */
|
|
3772
|
-
export const GetAllPromptSnippetsPromptSnippetsToolCalls$inboundSchema:
|
|
3773
|
-
z.ZodType<
|
|
3774
|
-
GetAllPromptSnippetsPromptSnippetsToolCalls,
|
|
3775
|
-
z.ZodTypeDef,
|
|
3776
|
-
unknown
|
|
3777
|
-
> = z.object({
|
|
3778
|
-
id: z.string().optional(),
|
|
3779
|
-
index: z.number().optional(),
|
|
3780
|
-
type: GetAllPromptSnippetsPromptSnippetsResponseType$inboundSchema,
|
|
3781
|
-
function: z.lazy(() =>
|
|
3782
|
-
GetAllPromptSnippetsPromptSnippetsFunction$inboundSchema
|
|
3783
|
-
),
|
|
3784
|
-
});
|
|
3785
|
-
|
|
3786
|
-
/** @internal */
|
|
3787
|
-
export type GetAllPromptSnippetsPromptSnippetsToolCalls$Outbound = {
|
|
3788
|
-
id?: string | undefined;
|
|
3789
|
-
index?: number | undefined;
|
|
3790
|
-
type: string;
|
|
3791
|
-
function: GetAllPromptSnippetsPromptSnippetsFunction$Outbound;
|
|
3792
|
-
};
|
|
3793
|
-
|
|
3794
|
-
/** @internal */
|
|
3795
|
-
export const GetAllPromptSnippetsPromptSnippetsToolCalls$outboundSchema:
|
|
3796
|
-
z.ZodType<
|
|
3797
|
-
GetAllPromptSnippetsPromptSnippetsToolCalls$Outbound,
|
|
3798
|
-
z.ZodTypeDef,
|
|
3799
|
-
GetAllPromptSnippetsPromptSnippetsToolCalls
|
|
3800
|
-
> = z.object({
|
|
3801
|
-
id: z.string().optional(),
|
|
3802
|
-
index: z.number().optional(),
|
|
3803
|
-
type: GetAllPromptSnippetsPromptSnippetsResponseType$outboundSchema,
|
|
3804
|
-
function: z.lazy(() =>
|
|
3805
|
-
GetAllPromptSnippetsPromptSnippetsFunction$outboundSchema
|
|
3806
|
-
),
|
|
3807
|
-
});
|
|
3808
|
-
|
|
3809
|
-
/**
|
|
3810
|
-
* @internal
|
|
3811
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3812
|
-
*/
|
|
3813
|
-
export namespace GetAllPromptSnippetsPromptSnippetsToolCalls$ {
|
|
3814
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsToolCalls$inboundSchema` instead. */
|
|
3815
|
-
export const inboundSchema =
|
|
3816
|
-
GetAllPromptSnippetsPromptSnippetsToolCalls$inboundSchema;
|
|
3817
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsToolCalls$outboundSchema` instead. */
|
|
3818
|
-
export const outboundSchema =
|
|
3819
|
-
GetAllPromptSnippetsPromptSnippetsToolCalls$outboundSchema;
|
|
3820
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsToolCalls$Outbound` instead. */
|
|
3821
|
-
export type Outbound = GetAllPromptSnippetsPromptSnippetsToolCalls$Outbound;
|
|
3822
|
-
}
|
|
3823
|
-
|
|
3824
|
-
export function getAllPromptSnippetsPromptSnippetsToolCallsToJSON(
|
|
3825
|
-
getAllPromptSnippetsPromptSnippetsToolCalls:
|
|
3826
|
-
GetAllPromptSnippetsPromptSnippetsToolCalls,
|
|
3827
|
-
): string {
|
|
3828
|
-
return JSON.stringify(
|
|
3829
|
-
GetAllPromptSnippetsPromptSnippetsToolCalls$outboundSchema.parse(
|
|
3830
|
-
getAllPromptSnippetsPromptSnippetsToolCalls,
|
|
3831
|
-
),
|
|
3832
|
-
);
|
|
3833
|
-
}
|
|
3834
|
-
|
|
3835
|
-
export function getAllPromptSnippetsPromptSnippetsToolCallsFromJSON(
|
|
3836
|
-
jsonString: string,
|
|
3837
|
-
): SafeParseResult<
|
|
3838
|
-
GetAllPromptSnippetsPromptSnippetsToolCalls,
|
|
3839
|
-
SDKValidationError
|
|
3840
|
-
> {
|
|
3841
|
-
return safeParse(
|
|
3842
|
-
jsonString,
|
|
3843
|
-
(x) =>
|
|
3844
|
-
GetAllPromptSnippetsPromptSnippetsToolCalls$inboundSchema.parse(
|
|
3845
|
-
JSON.parse(x),
|
|
3846
|
-
),
|
|
3847
|
-
`Failed to parse 'GetAllPromptSnippetsPromptSnippetsToolCalls' from JSON`,
|
|
3848
|
-
);
|
|
3849
|
-
}
|
|
3850
|
-
|
|
3851
|
-
/** @internal */
|
|
3852
|
-
export const GetAllPromptSnippetsPromptSnippetsMessages$inboundSchema:
|
|
3853
|
-
z.ZodType<GetAllPromptSnippetsPromptSnippetsMessages, z.ZodTypeDef, unknown> =
|
|
3854
|
-
z.object({
|
|
3855
|
-
role: GetAllPromptSnippetsPromptSnippetsRole$inboundSchema,
|
|
3856
|
-
content: z.union([
|
|
3857
|
-
z.string(),
|
|
3858
|
-
z.array(z.union([
|
|
3859
|
-
z.lazy(() => GetAllPromptSnippets2PromptSnippets1$inboundSchema),
|
|
3860
|
-
z.lazy(() => GetAllPromptSnippets2PromptSnippets2$inboundSchema),
|
|
3861
|
-
])),
|
|
3862
|
-
]),
|
|
3863
|
-
tool_calls: z.array(
|
|
3864
|
-
z.lazy(() => GetAllPromptSnippetsPromptSnippetsToolCalls$inboundSchema),
|
|
3865
|
-
).optional(),
|
|
3866
|
-
}).transform((v) => {
|
|
3867
|
-
return remap$(v, {
|
|
3868
|
-
"tool_calls": "toolCalls",
|
|
3869
|
-
});
|
|
3870
|
-
});
|
|
3871
|
-
|
|
3872
|
-
/** @internal */
|
|
3873
|
-
export type GetAllPromptSnippetsPromptSnippetsMessages$Outbound = {
|
|
3874
|
-
role: string;
|
|
3875
|
-
content:
|
|
3876
|
-
| string
|
|
3877
|
-
| Array<
|
|
3878
|
-
| GetAllPromptSnippets2PromptSnippets1$Outbound
|
|
3879
|
-
| GetAllPromptSnippets2PromptSnippets2$Outbound
|
|
3880
|
-
>;
|
|
3881
|
-
tool_calls?:
|
|
3882
|
-
| Array<GetAllPromptSnippetsPromptSnippetsToolCalls$Outbound>
|
|
3883
|
-
| undefined;
|
|
3884
|
-
};
|
|
3885
|
-
|
|
3886
|
-
/** @internal */
|
|
3887
|
-
export const GetAllPromptSnippetsPromptSnippetsMessages$outboundSchema:
|
|
3888
|
-
z.ZodType<
|
|
3889
|
-
GetAllPromptSnippetsPromptSnippetsMessages$Outbound,
|
|
3890
|
-
z.ZodTypeDef,
|
|
3891
|
-
GetAllPromptSnippetsPromptSnippetsMessages
|
|
3892
|
-
> = z.object({
|
|
3893
|
-
role: GetAllPromptSnippetsPromptSnippetsRole$outboundSchema,
|
|
3894
|
-
content: z.union([
|
|
3895
|
-
z.string(),
|
|
3896
|
-
z.array(z.union([
|
|
3897
|
-
z.lazy(() => GetAllPromptSnippets2PromptSnippets1$outboundSchema),
|
|
3898
|
-
z.lazy(() => GetAllPromptSnippets2PromptSnippets2$outboundSchema),
|
|
3899
|
-
])),
|
|
3900
|
-
]),
|
|
3901
|
-
toolCalls: z.array(
|
|
3902
|
-
z.lazy(() => GetAllPromptSnippetsPromptSnippetsToolCalls$outboundSchema),
|
|
3903
|
-
).optional(),
|
|
3904
|
-
}).transform((v) => {
|
|
3905
|
-
return remap$(v, {
|
|
3906
|
-
toolCalls: "tool_calls",
|
|
3907
|
-
});
|
|
3908
|
-
});
|
|
3909
|
-
|
|
3910
|
-
/**
|
|
3911
|
-
* @internal
|
|
3912
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3913
|
-
*/
|
|
3914
|
-
export namespace GetAllPromptSnippetsPromptSnippetsMessages$ {
|
|
3915
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsMessages$inboundSchema` instead. */
|
|
3916
|
-
export const inboundSchema =
|
|
3917
|
-
GetAllPromptSnippetsPromptSnippetsMessages$inboundSchema;
|
|
3918
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsMessages$outboundSchema` instead. */
|
|
3919
|
-
export const outboundSchema =
|
|
3920
|
-
GetAllPromptSnippetsPromptSnippetsMessages$outboundSchema;
|
|
3921
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsMessages$Outbound` instead. */
|
|
3922
|
-
export type Outbound = GetAllPromptSnippetsPromptSnippetsMessages$Outbound;
|
|
3923
|
-
}
|
|
3924
|
-
|
|
3925
|
-
export function getAllPromptSnippetsPromptSnippetsMessagesToJSON(
|
|
3926
|
-
getAllPromptSnippetsPromptSnippetsMessages:
|
|
3927
|
-
GetAllPromptSnippetsPromptSnippetsMessages,
|
|
3928
|
-
): string {
|
|
3929
|
-
return JSON.stringify(
|
|
3930
|
-
GetAllPromptSnippetsPromptSnippetsMessages$outboundSchema.parse(
|
|
3931
|
-
getAllPromptSnippetsPromptSnippetsMessages,
|
|
3932
|
-
),
|
|
3933
|
-
);
|
|
3934
|
-
}
|
|
3935
|
-
|
|
3936
|
-
export function getAllPromptSnippetsPromptSnippetsMessagesFromJSON(
|
|
3937
|
-
jsonString: string,
|
|
3938
|
-
): SafeParseResult<
|
|
3939
|
-
GetAllPromptSnippetsPromptSnippetsMessages,
|
|
3940
|
-
SDKValidationError
|
|
3941
|
-
> {
|
|
3942
|
-
return safeParse(
|
|
3943
|
-
jsonString,
|
|
3944
|
-
(x) =>
|
|
3945
|
-
GetAllPromptSnippetsPromptSnippetsMessages$inboundSchema.parse(
|
|
3946
|
-
JSON.parse(x),
|
|
3947
|
-
),
|
|
3948
|
-
`Failed to parse 'GetAllPromptSnippetsPromptSnippetsMessages' from JSON`,
|
|
3949
|
-
);
|
|
3950
|
-
}
|
|
3951
|
-
|
|
3952
|
-
/** @internal */
|
|
3953
|
-
export const GetAllPromptSnippetsPromptSnippetsPromptConfig$inboundSchema:
|
|
3954
|
-
z.ZodType<
|
|
3955
|
-
GetAllPromptSnippetsPromptSnippetsPromptConfig,
|
|
3956
|
-
z.ZodTypeDef,
|
|
3957
|
-
unknown
|
|
3958
|
-
> = z.object({
|
|
3959
|
-
stream: z.boolean().optional(),
|
|
3960
|
-
model: z.string().optional(),
|
|
3961
|
-
model_db_id: z.string().optional(),
|
|
3962
|
-
model_type: GetAllPromptSnippetsPromptSnippetsModelType$inboundSchema
|
|
3963
|
-
.optional(),
|
|
3964
|
-
model_parameters: z.lazy(() =>
|
|
3965
|
-
GetAllPromptSnippetsPromptSnippetsModelParameters$inboundSchema
|
|
3966
|
-
).optional(),
|
|
3967
|
-
provider: GetAllPromptSnippetsPromptSnippetsProvider$inboundSchema
|
|
3968
|
-
.optional(),
|
|
3969
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
3970
|
-
version: z.string().optional(),
|
|
3971
|
-
messages: z.array(
|
|
3972
|
-
z.lazy(() => GetAllPromptSnippetsPromptSnippetsMessages$inboundSchema),
|
|
3973
|
-
),
|
|
3974
|
-
}).transform((v) => {
|
|
3975
|
-
return remap$(v, {
|
|
3976
|
-
"model_db_id": "modelDbId",
|
|
3977
|
-
"model_type": "modelType",
|
|
3978
|
-
"model_parameters": "modelParameters",
|
|
3979
|
-
"integration_id": "integrationId",
|
|
3980
|
-
});
|
|
3981
|
-
});
|
|
3982
|
-
|
|
3983
|
-
/** @internal */
|
|
3984
|
-
export type GetAllPromptSnippetsPromptSnippetsPromptConfig$Outbound = {
|
|
3985
|
-
stream?: boolean | undefined;
|
|
3986
|
-
model?: string | undefined;
|
|
3987
|
-
model_db_id?: string | undefined;
|
|
3988
|
-
model_type?: string | undefined;
|
|
3989
|
-
model_parameters?:
|
|
3990
|
-
| GetAllPromptSnippetsPromptSnippetsModelParameters$Outbound
|
|
3991
|
-
| undefined;
|
|
3992
|
-
provider?: string | undefined;
|
|
3993
|
-
integration_id?: string | null | undefined;
|
|
3994
|
-
version?: string | undefined;
|
|
3995
|
-
messages: Array<GetAllPromptSnippetsPromptSnippetsMessages$Outbound>;
|
|
3996
|
-
};
|
|
3997
|
-
|
|
3998
|
-
/** @internal */
|
|
3999
|
-
export const GetAllPromptSnippetsPromptSnippetsPromptConfig$outboundSchema:
|
|
4000
|
-
z.ZodType<
|
|
4001
|
-
GetAllPromptSnippetsPromptSnippetsPromptConfig$Outbound,
|
|
4002
|
-
z.ZodTypeDef,
|
|
4003
|
-
GetAllPromptSnippetsPromptSnippetsPromptConfig
|
|
4004
|
-
> = z.object({
|
|
4005
|
-
stream: z.boolean().optional(),
|
|
4006
|
-
model: z.string().optional(),
|
|
4007
|
-
modelDbId: z.string().optional(),
|
|
4008
|
-
modelType: GetAllPromptSnippetsPromptSnippetsModelType$outboundSchema
|
|
4009
|
-
.optional(),
|
|
4010
|
-
modelParameters: z.lazy(() =>
|
|
4011
|
-
GetAllPromptSnippetsPromptSnippetsModelParameters$outboundSchema
|
|
4012
|
-
).optional(),
|
|
4013
|
-
provider: GetAllPromptSnippetsPromptSnippetsProvider$outboundSchema
|
|
4014
|
-
.optional(),
|
|
4015
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
4016
|
-
version: z.string().optional(),
|
|
4017
|
-
messages: z.array(
|
|
4018
|
-
z.lazy(() => GetAllPromptSnippetsPromptSnippetsMessages$outboundSchema),
|
|
4019
|
-
),
|
|
4020
|
-
}).transform((v) => {
|
|
4021
|
-
return remap$(v, {
|
|
4022
|
-
modelDbId: "model_db_id",
|
|
4023
|
-
modelType: "model_type",
|
|
4024
|
-
modelParameters: "model_parameters",
|
|
4025
|
-
integrationId: "integration_id",
|
|
4026
|
-
});
|
|
4027
|
-
});
|
|
4028
|
-
|
|
4029
|
-
/**
|
|
4030
|
-
* @internal
|
|
4031
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4032
|
-
*/
|
|
4033
|
-
export namespace GetAllPromptSnippetsPromptSnippetsPromptConfig$ {
|
|
4034
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsPromptConfig$inboundSchema` instead. */
|
|
4035
|
-
export const inboundSchema =
|
|
4036
|
-
GetAllPromptSnippetsPromptSnippetsPromptConfig$inboundSchema;
|
|
4037
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsPromptConfig$outboundSchema` instead. */
|
|
4038
|
-
export const outboundSchema =
|
|
4039
|
-
GetAllPromptSnippetsPromptSnippetsPromptConfig$outboundSchema;
|
|
4040
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsPromptConfig$Outbound` instead. */
|
|
4041
|
-
export type Outbound =
|
|
4042
|
-
GetAllPromptSnippetsPromptSnippetsPromptConfig$Outbound;
|
|
4043
|
-
}
|
|
4044
|
-
|
|
4045
|
-
export function getAllPromptSnippetsPromptSnippetsPromptConfigToJSON(
|
|
4046
|
-
getAllPromptSnippetsPromptSnippetsPromptConfig:
|
|
4047
|
-
GetAllPromptSnippetsPromptSnippetsPromptConfig,
|
|
4048
|
-
): string {
|
|
4049
|
-
return JSON.stringify(
|
|
4050
|
-
GetAllPromptSnippetsPromptSnippetsPromptConfig$outboundSchema.parse(
|
|
4051
|
-
getAllPromptSnippetsPromptSnippetsPromptConfig,
|
|
4052
|
-
),
|
|
4053
|
-
);
|
|
4054
|
-
}
|
|
4055
|
-
|
|
4056
|
-
export function getAllPromptSnippetsPromptSnippetsPromptConfigFromJSON(
|
|
4057
|
-
jsonString: string,
|
|
4058
|
-
): SafeParseResult<
|
|
4059
|
-
GetAllPromptSnippetsPromptSnippetsPromptConfig,
|
|
4060
|
-
SDKValidationError
|
|
4061
|
-
> {
|
|
4062
|
-
return safeParse(
|
|
4063
|
-
jsonString,
|
|
4064
|
-
(x) =>
|
|
4065
|
-
GetAllPromptSnippetsPromptSnippetsPromptConfig$inboundSchema.parse(
|
|
4066
|
-
JSON.parse(x),
|
|
4067
|
-
),
|
|
4068
|
-
`Failed to parse 'GetAllPromptSnippetsPromptSnippetsPromptConfig' from JSON`,
|
|
4069
|
-
);
|
|
4070
|
-
}
|
|
4071
|
-
|
|
4072
|
-
/** @internal */
|
|
4073
|
-
export const GetAllPromptSnippetsPromptSnippetsUseCases$inboundSchema:
|
|
4074
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsUseCases> = z
|
|
4075
|
-
.nativeEnum(GetAllPromptSnippetsPromptSnippetsUseCases);
|
|
4076
|
-
|
|
4077
|
-
/** @internal */
|
|
4078
|
-
export const GetAllPromptSnippetsPromptSnippetsUseCases$outboundSchema:
|
|
4079
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsUseCases> =
|
|
4080
|
-
GetAllPromptSnippetsPromptSnippetsUseCases$inboundSchema;
|
|
4081
|
-
|
|
4082
|
-
/**
|
|
4083
|
-
* @internal
|
|
4084
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4085
|
-
*/
|
|
4086
|
-
export namespace GetAllPromptSnippetsPromptSnippetsUseCases$ {
|
|
4087
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsUseCases$inboundSchema` instead. */
|
|
4088
|
-
export const inboundSchema =
|
|
4089
|
-
GetAllPromptSnippetsPromptSnippetsUseCases$inboundSchema;
|
|
4090
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsUseCases$outboundSchema` instead. */
|
|
4091
|
-
export const outboundSchema =
|
|
4092
|
-
GetAllPromptSnippetsPromptSnippetsUseCases$outboundSchema;
|
|
4093
|
-
}
|
|
4094
|
-
|
|
4095
|
-
/** @internal */
|
|
4096
|
-
export const GetAllPromptSnippetsPromptSnippetsLanguage$inboundSchema:
|
|
4097
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsLanguage> = z
|
|
4098
|
-
.nativeEnum(GetAllPromptSnippetsPromptSnippetsLanguage);
|
|
4099
|
-
|
|
4100
|
-
/** @internal */
|
|
4101
|
-
export const GetAllPromptSnippetsPromptSnippetsLanguage$outboundSchema:
|
|
4102
|
-
z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsLanguage> =
|
|
4103
|
-
GetAllPromptSnippetsPromptSnippetsLanguage$inboundSchema;
|
|
4104
|
-
|
|
4105
|
-
/**
|
|
4106
|
-
* @internal
|
|
4107
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4108
|
-
*/
|
|
4109
|
-
export namespace GetAllPromptSnippetsPromptSnippetsLanguage$ {
|
|
4110
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsLanguage$inboundSchema` instead. */
|
|
4111
|
-
export const inboundSchema =
|
|
4112
|
-
GetAllPromptSnippetsPromptSnippetsLanguage$inboundSchema;
|
|
4113
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsLanguage$outboundSchema` instead. */
|
|
4114
|
-
export const outboundSchema =
|
|
4115
|
-
GetAllPromptSnippetsPromptSnippetsLanguage$outboundSchema;
|
|
4116
|
-
}
|
|
4117
|
-
|
|
4118
|
-
/** @internal */
|
|
4119
|
-
export const GetAllPromptSnippetsPromptSnippetsMetadata$inboundSchema:
|
|
4120
|
-
z.ZodType<GetAllPromptSnippetsPromptSnippetsMetadata, z.ZodTypeDef, unknown> =
|
|
4121
|
-
z.object({
|
|
4122
|
-
use_cases: z.array(
|
|
4123
|
-
GetAllPromptSnippetsPromptSnippetsUseCases$inboundSchema,
|
|
4124
|
-
).optional(),
|
|
4125
|
-
language: GetAllPromptSnippetsPromptSnippetsLanguage$inboundSchema
|
|
4126
|
-
.optional(),
|
|
4127
|
-
}).transform((v) => {
|
|
4128
|
-
return remap$(v, {
|
|
4129
|
-
"use_cases": "useCases",
|
|
4130
|
-
});
|
|
4131
|
-
});
|
|
4132
|
-
|
|
4133
|
-
/** @internal */
|
|
4134
|
-
export type GetAllPromptSnippetsPromptSnippetsMetadata$Outbound = {
|
|
4135
|
-
use_cases?: Array<string> | undefined;
|
|
4136
|
-
language?: string | undefined;
|
|
4137
|
-
};
|
|
4138
|
-
|
|
4139
|
-
/** @internal */
|
|
4140
|
-
export const GetAllPromptSnippetsPromptSnippetsMetadata$outboundSchema:
|
|
4141
|
-
z.ZodType<
|
|
4142
|
-
GetAllPromptSnippetsPromptSnippetsMetadata$Outbound,
|
|
4143
|
-
z.ZodTypeDef,
|
|
4144
|
-
GetAllPromptSnippetsPromptSnippetsMetadata
|
|
4145
|
-
> = z.object({
|
|
4146
|
-
useCases: z.array(GetAllPromptSnippetsPromptSnippetsUseCases$outboundSchema)
|
|
4147
|
-
.optional(),
|
|
4148
|
-
language: GetAllPromptSnippetsPromptSnippetsLanguage$outboundSchema
|
|
4149
|
-
.optional(),
|
|
4150
|
-
}).transform((v) => {
|
|
4151
|
-
return remap$(v, {
|
|
4152
|
-
useCases: "use_cases",
|
|
4153
|
-
});
|
|
4154
|
-
});
|
|
4155
|
-
|
|
4156
|
-
/**
|
|
4157
|
-
* @internal
|
|
4158
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4159
|
-
*/
|
|
4160
|
-
export namespace GetAllPromptSnippetsPromptSnippetsMetadata$ {
|
|
4161
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsMetadata$inboundSchema` instead. */
|
|
4162
|
-
export const inboundSchema =
|
|
4163
|
-
GetAllPromptSnippetsPromptSnippetsMetadata$inboundSchema;
|
|
4164
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsMetadata$outboundSchema` instead. */
|
|
4165
|
-
export const outboundSchema =
|
|
4166
|
-
GetAllPromptSnippetsPromptSnippetsMetadata$outboundSchema;
|
|
4167
|
-
/** @deprecated use `GetAllPromptSnippetsPromptSnippetsMetadata$Outbound` instead. */
|
|
4168
|
-
export type Outbound = GetAllPromptSnippetsPromptSnippetsMetadata$Outbound;
|
|
4169
|
-
}
|
|
4170
|
-
|
|
4171
|
-
export function getAllPromptSnippetsPromptSnippetsMetadataToJSON(
|
|
4172
|
-
getAllPromptSnippetsPromptSnippetsMetadata:
|
|
4173
|
-
GetAllPromptSnippetsPromptSnippetsMetadata,
|
|
4174
|
-
): string {
|
|
4175
|
-
return JSON.stringify(
|
|
4176
|
-
GetAllPromptSnippetsPromptSnippetsMetadata$outboundSchema.parse(
|
|
4177
|
-
getAllPromptSnippetsPromptSnippetsMetadata,
|
|
4178
|
-
),
|
|
4179
|
-
);
|
|
4180
|
-
}
|
|
4181
|
-
|
|
4182
|
-
export function getAllPromptSnippetsPromptSnippetsMetadataFromJSON(
|
|
4183
|
-
jsonString: string,
|
|
4184
|
-
): SafeParseResult<
|
|
4185
|
-
GetAllPromptSnippetsPromptSnippetsMetadata,
|
|
4186
|
-
SDKValidationError
|
|
4187
|
-
> {
|
|
4188
|
-
return safeParse(
|
|
4189
|
-
jsonString,
|
|
4190
|
-
(x) =>
|
|
4191
|
-
GetAllPromptSnippetsPromptSnippetsMetadata$inboundSchema.parse(
|
|
4192
|
-
JSON.parse(x),
|
|
4193
|
-
),
|
|
4194
|
-
`Failed to parse 'GetAllPromptSnippetsPromptSnippetsMetadata' from JSON`,
|
|
4195
|
-
);
|
|
4196
|
-
}
|
|
4197
|
-
|
|
4198
|
-
/** @internal */
|
|
4199
|
-
export const GetAllPromptSnippetsVersions$inboundSchema: z.ZodType<
|
|
4200
|
-
GetAllPromptSnippetsVersions,
|
|
4201
|
-
z.ZodTypeDef,
|
|
4202
|
-
unknown
|
|
4203
|
-
> = z.object({
|
|
4204
|
-
_id: z.string(),
|
|
4205
|
-
description: z.nullable(z.string()).optional(),
|
|
4206
|
-
prompt_config: z.lazy(() =>
|
|
4207
|
-
GetAllPromptSnippetsPromptSnippetsPromptConfig$inboundSchema
|
|
4208
|
-
),
|
|
4209
|
-
metadata: z.lazy(() =>
|
|
4210
|
-
GetAllPromptSnippetsPromptSnippetsMetadata$inboundSchema
|
|
4211
|
-
),
|
|
4212
|
-
created_by_id: z.string(),
|
|
4213
|
-
updated_by_id: z.string(),
|
|
4214
|
-
timestamp: z.string(),
|
|
4215
|
-
}).transform((v) => {
|
|
4216
|
-
return remap$(v, {
|
|
4217
|
-
"_id": "id",
|
|
4218
|
-
"prompt_config": "promptConfig",
|
|
4219
|
-
"created_by_id": "createdById",
|
|
4220
|
-
"updated_by_id": "updatedById",
|
|
4221
|
-
});
|
|
4222
|
-
});
|
|
4223
|
-
|
|
4224
|
-
/** @internal */
|
|
4225
|
-
export type GetAllPromptSnippetsVersions$Outbound = {
|
|
4226
|
-
_id: string;
|
|
4227
|
-
description?: string | null | undefined;
|
|
4228
|
-
prompt_config: GetAllPromptSnippetsPromptSnippetsPromptConfig$Outbound;
|
|
4229
|
-
metadata: GetAllPromptSnippetsPromptSnippetsMetadata$Outbound;
|
|
4230
|
-
created_by_id: string;
|
|
4231
|
-
updated_by_id: string;
|
|
4232
|
-
timestamp: string;
|
|
4233
|
-
};
|
|
4234
|
-
|
|
4235
|
-
/** @internal */
|
|
4236
|
-
export const GetAllPromptSnippetsVersions$outboundSchema: z.ZodType<
|
|
4237
|
-
GetAllPromptSnippetsVersions$Outbound,
|
|
4238
|
-
z.ZodTypeDef,
|
|
4239
|
-
GetAllPromptSnippetsVersions
|
|
4240
|
-
> = z.object({
|
|
4241
|
-
id: z.string(),
|
|
4242
|
-
description: z.nullable(z.string()).optional(),
|
|
4243
|
-
promptConfig: z.lazy(() =>
|
|
4244
|
-
GetAllPromptSnippetsPromptSnippetsPromptConfig$outboundSchema
|
|
4245
|
-
),
|
|
4246
|
-
metadata: z.lazy(() =>
|
|
4247
|
-
GetAllPromptSnippetsPromptSnippetsMetadata$outboundSchema
|
|
4248
|
-
),
|
|
4249
|
-
createdById: z.string(),
|
|
4250
|
-
updatedById: z.string(),
|
|
4251
|
-
timestamp: z.string(),
|
|
4252
|
-
}).transform((v) => {
|
|
4253
|
-
return remap$(v, {
|
|
4254
|
-
id: "_id",
|
|
4255
|
-
promptConfig: "prompt_config",
|
|
4256
|
-
createdById: "created_by_id",
|
|
4257
|
-
updatedById: "updated_by_id",
|
|
4258
|
-
});
|
|
4259
|
-
});
|
|
4260
|
-
|
|
4261
|
-
/**
|
|
4262
|
-
* @internal
|
|
4263
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4264
|
-
*/
|
|
4265
|
-
export namespace GetAllPromptSnippetsVersions$ {
|
|
4266
|
-
/** @deprecated use `GetAllPromptSnippetsVersions$inboundSchema` instead. */
|
|
4267
|
-
export const inboundSchema = GetAllPromptSnippetsVersions$inboundSchema;
|
|
4268
|
-
/** @deprecated use `GetAllPromptSnippetsVersions$outboundSchema` instead. */
|
|
4269
|
-
export const outboundSchema = GetAllPromptSnippetsVersions$outboundSchema;
|
|
4270
|
-
/** @deprecated use `GetAllPromptSnippetsVersions$Outbound` instead. */
|
|
4271
|
-
export type Outbound = GetAllPromptSnippetsVersions$Outbound;
|
|
4272
|
-
}
|
|
4273
|
-
|
|
4274
|
-
export function getAllPromptSnippetsVersionsToJSON(
|
|
4275
|
-
getAllPromptSnippetsVersions: GetAllPromptSnippetsVersions,
|
|
4276
|
-
): string {
|
|
4277
|
-
return JSON.stringify(
|
|
4278
|
-
GetAllPromptSnippetsVersions$outboundSchema.parse(
|
|
4279
|
-
getAllPromptSnippetsVersions,
|
|
4280
|
-
),
|
|
4281
|
-
);
|
|
4282
|
-
}
|
|
4283
|
-
|
|
4284
|
-
export function getAllPromptSnippetsVersionsFromJSON(
|
|
4285
|
-
jsonString: string,
|
|
4286
|
-
): SafeParseResult<GetAllPromptSnippetsVersions, SDKValidationError> {
|
|
4287
|
-
return safeParse(
|
|
4288
|
-
jsonString,
|
|
4289
|
-
(x) => GetAllPromptSnippetsVersions$inboundSchema.parse(JSON.parse(x)),
|
|
4290
|
-
`Failed to parse 'GetAllPromptSnippetsVersions' from JSON`,
|
|
4291
|
-
);
|
|
4292
|
-
}
|
|
4293
|
-
|
|
4294
|
-
/** @internal */
|
|
4295
|
-
export const GetAllPromptSnippetsData$inboundSchema: z.ZodType<
|
|
4296
|
-
GetAllPromptSnippetsData,
|
|
4297
|
-
z.ZodTypeDef,
|
|
4298
|
-
unknown
|
|
4299
|
-
> = z.object({
|
|
4300
|
-
_id: z.string(),
|
|
4301
|
-
owner: z.union([z.string(), GetAllPromptSnippetsOwner2$inboundSchema]),
|
|
4302
|
-
domain_id: z.string(),
|
|
4303
|
-
key: z.string(),
|
|
4304
|
-
description: z.nullable(z.string()).optional(),
|
|
4305
|
-
prompt_config: z.lazy(() => GetAllPromptSnippetsPromptConfig$inboundSchema),
|
|
4306
|
-
metadata: z.lazy(() => GetAllPromptSnippetsMetadata$inboundSchema),
|
|
4307
|
-
created_by_id: z.string(),
|
|
4308
|
-
updated_by_id: z.string(),
|
|
4309
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
4310
|
-
.optional(),
|
|
4311
|
-
updated: z.string().datetime({ offset: true }).default(
|
|
4312
|
-
"2025-02-11T15:57:59.882Z",
|
|
4313
|
-
).transform(v => new Date(v)),
|
|
4314
|
-
type: GetAllPromptSnippetsType$inboundSchema,
|
|
4315
|
-
versions: z.array(z.lazy(() => GetAllPromptSnippetsVersions$inboundSchema)),
|
|
4316
|
-
}).transform((v) => {
|
|
4317
|
-
return remap$(v, {
|
|
4318
|
-
"_id": "id",
|
|
4319
|
-
"domain_id": "domainId",
|
|
4320
|
-
"prompt_config": "promptConfig",
|
|
4321
|
-
"created_by_id": "createdById",
|
|
4322
|
-
"updated_by_id": "updatedById",
|
|
4323
|
-
});
|
|
4324
|
-
});
|
|
4325
|
-
|
|
4326
|
-
/** @internal */
|
|
4327
|
-
export type GetAllPromptSnippetsData$Outbound = {
|
|
4328
|
-
_id: string;
|
|
4329
|
-
owner: string | string;
|
|
4330
|
-
domain_id: string;
|
|
4331
|
-
key: string;
|
|
4332
|
-
description?: string | null | undefined;
|
|
4333
|
-
prompt_config: GetAllPromptSnippetsPromptConfig$Outbound;
|
|
4334
|
-
metadata: GetAllPromptSnippetsMetadata$Outbound;
|
|
4335
|
-
created_by_id: string;
|
|
4336
|
-
updated_by_id: string;
|
|
4337
|
-
created?: string | undefined;
|
|
4338
|
-
updated: string;
|
|
4339
|
-
type: string;
|
|
4340
|
-
versions: Array<GetAllPromptSnippetsVersions$Outbound>;
|
|
4341
|
-
};
|
|
4342
|
-
|
|
4343
|
-
/** @internal */
|
|
4344
|
-
export const GetAllPromptSnippetsData$outboundSchema: z.ZodType<
|
|
4345
|
-
GetAllPromptSnippetsData$Outbound,
|
|
4346
|
-
z.ZodTypeDef,
|
|
4347
|
-
GetAllPromptSnippetsData
|
|
4348
|
-
> = z.object({
|
|
4349
|
-
id: z.string(),
|
|
4350
|
-
owner: z.union([z.string(), GetAllPromptSnippetsOwner2$outboundSchema]),
|
|
4351
|
-
domainId: z.string(),
|
|
4352
|
-
key: z.string(),
|
|
4353
|
-
description: z.nullable(z.string()).optional(),
|
|
4354
|
-
promptConfig: z.lazy(() => GetAllPromptSnippetsPromptConfig$outboundSchema),
|
|
4355
|
-
metadata: z.lazy(() => GetAllPromptSnippetsMetadata$outboundSchema),
|
|
4356
|
-
createdById: z.string(),
|
|
4357
|
-
updatedById: z.string(),
|
|
4358
|
-
created: z.date().transform(v => v.toISOString()).optional(),
|
|
4359
|
-
updated: z.date().default(() => new Date("2025-02-11T15:57:59.882Z"))
|
|
4360
|
-
.transform(v => v.toISOString()),
|
|
4361
|
-
type: GetAllPromptSnippetsType$outboundSchema,
|
|
4362
|
-
versions: z.array(z.lazy(() => GetAllPromptSnippetsVersions$outboundSchema)),
|
|
4363
|
-
}).transform((v) => {
|
|
4364
|
-
return remap$(v, {
|
|
4365
|
-
id: "_id",
|
|
4366
|
-
domainId: "domain_id",
|
|
4367
|
-
promptConfig: "prompt_config",
|
|
4368
|
-
createdById: "created_by_id",
|
|
4369
|
-
updatedById: "updated_by_id",
|
|
4370
|
-
});
|
|
4371
|
-
});
|
|
4372
|
-
|
|
4373
|
-
/**
|
|
4374
|
-
* @internal
|
|
4375
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4376
|
-
*/
|
|
4377
|
-
export namespace GetAllPromptSnippetsData$ {
|
|
4378
|
-
/** @deprecated use `GetAllPromptSnippetsData$inboundSchema` instead. */
|
|
4379
|
-
export const inboundSchema = GetAllPromptSnippetsData$inboundSchema;
|
|
4380
|
-
/** @deprecated use `GetAllPromptSnippetsData$outboundSchema` instead. */
|
|
4381
|
-
export const outboundSchema = GetAllPromptSnippetsData$outboundSchema;
|
|
4382
|
-
/** @deprecated use `GetAllPromptSnippetsData$Outbound` instead. */
|
|
4383
|
-
export type Outbound = GetAllPromptSnippetsData$Outbound;
|
|
4384
|
-
}
|
|
4385
|
-
|
|
4386
|
-
export function getAllPromptSnippetsDataToJSON(
|
|
4387
|
-
getAllPromptSnippetsData: GetAllPromptSnippetsData,
|
|
4388
|
-
): string {
|
|
4389
|
-
return JSON.stringify(
|
|
4390
|
-
GetAllPromptSnippetsData$outboundSchema.parse(getAllPromptSnippetsData),
|
|
4391
|
-
);
|
|
4392
|
-
}
|
|
4393
|
-
|
|
4394
|
-
export function getAllPromptSnippetsDataFromJSON(
|
|
4395
|
-
jsonString: string,
|
|
4396
|
-
): SafeParseResult<GetAllPromptSnippetsData, SDKValidationError> {
|
|
4397
|
-
return safeParse(
|
|
4398
|
-
jsonString,
|
|
4399
|
-
(x) => GetAllPromptSnippetsData$inboundSchema.parse(JSON.parse(x)),
|
|
4400
|
-
`Failed to parse 'GetAllPromptSnippetsData' from JSON`,
|
|
4401
|
-
);
|
|
4402
|
-
}
|
|
4403
|
-
|
|
4404
|
-
/** @internal */
|
|
4405
|
-
export const GetAllPromptSnippetsResponseBody$inboundSchema: z.ZodType<
|
|
4406
|
-
GetAllPromptSnippetsResponseBody,
|
|
4407
|
-
z.ZodTypeDef,
|
|
4408
|
-
unknown
|
|
4409
|
-
> = z.object({
|
|
4410
|
-
object: GetAllPromptSnippetsObject$inboundSchema,
|
|
4411
|
-
data: z.array(z.lazy(() => GetAllPromptSnippetsData$inboundSchema)),
|
|
4412
|
-
has_more: z.boolean(),
|
|
4413
|
-
}).transform((v) => {
|
|
4414
|
-
return remap$(v, {
|
|
4415
|
-
"has_more": "hasMore",
|
|
4416
|
-
});
|
|
4417
|
-
});
|
|
4418
|
-
|
|
4419
|
-
/** @internal */
|
|
4420
|
-
export type GetAllPromptSnippetsResponseBody$Outbound = {
|
|
4421
|
-
object: string;
|
|
4422
|
-
data: Array<GetAllPromptSnippetsData$Outbound>;
|
|
4423
|
-
has_more: boolean;
|
|
4424
|
-
};
|
|
4425
|
-
|
|
4426
|
-
/** @internal */
|
|
4427
|
-
export const GetAllPromptSnippetsResponseBody$outboundSchema: z.ZodType<
|
|
4428
|
-
GetAllPromptSnippetsResponseBody$Outbound,
|
|
4429
|
-
z.ZodTypeDef,
|
|
4430
|
-
GetAllPromptSnippetsResponseBody
|
|
4431
|
-
> = z.object({
|
|
4432
|
-
object: GetAllPromptSnippetsObject$outboundSchema,
|
|
4433
|
-
data: z.array(z.lazy(() => GetAllPromptSnippetsData$outboundSchema)),
|
|
4434
|
-
hasMore: z.boolean(),
|
|
4435
|
-
}).transform((v) => {
|
|
4436
|
-
return remap$(v, {
|
|
4437
|
-
hasMore: "has_more",
|
|
4438
|
-
});
|
|
4439
|
-
});
|
|
4440
|
-
|
|
4441
|
-
/**
|
|
4442
|
-
* @internal
|
|
4443
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4444
|
-
*/
|
|
4445
|
-
export namespace GetAllPromptSnippetsResponseBody$ {
|
|
4446
|
-
/** @deprecated use `GetAllPromptSnippetsResponseBody$inboundSchema` instead. */
|
|
4447
|
-
export const inboundSchema = GetAllPromptSnippetsResponseBody$inboundSchema;
|
|
4448
|
-
/** @deprecated use `GetAllPromptSnippetsResponseBody$outboundSchema` instead. */
|
|
4449
|
-
export const outboundSchema = GetAllPromptSnippetsResponseBody$outboundSchema;
|
|
4450
|
-
/** @deprecated use `GetAllPromptSnippetsResponseBody$Outbound` instead. */
|
|
4451
|
-
export type Outbound = GetAllPromptSnippetsResponseBody$Outbound;
|
|
4452
|
-
}
|
|
4453
|
-
|
|
4454
|
-
export function getAllPromptSnippetsResponseBodyToJSON(
|
|
4455
|
-
getAllPromptSnippetsResponseBody: GetAllPromptSnippetsResponseBody,
|
|
4456
|
-
): string {
|
|
4457
|
-
return JSON.stringify(
|
|
4458
|
-
GetAllPromptSnippetsResponseBody$outboundSchema.parse(
|
|
4459
|
-
getAllPromptSnippetsResponseBody,
|
|
4460
|
-
),
|
|
4461
|
-
);
|
|
4462
|
-
}
|
|
4463
|
-
|
|
4464
|
-
export function getAllPromptSnippetsResponseBodyFromJSON(
|
|
4465
|
-
jsonString: string,
|
|
4466
|
-
): SafeParseResult<GetAllPromptSnippetsResponseBody, SDKValidationError> {
|
|
4467
|
-
return safeParse(
|
|
4468
|
-
jsonString,
|
|
4469
|
-
(x) => GetAllPromptSnippetsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
4470
|
-
`Failed to parse 'GetAllPromptSnippetsResponseBody' from JSON`,
|
|
4471
|
-
);
|
|
4472
|
-
}
|