@orq-ai/node 3.1.7 → 3.2.0-rc.4

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.
Files changed (147) hide show
  1. package/README.md +0 -38
  2. package/docs/sdks/deployments/README.md +0 -81
  3. package/jsr.json +1 -2
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/lib/config.js.map +1 -1
  7. package/lib/matchers.d.ts.map +1 -1
  8. package/lib/matchers.js +1 -4
  9. package/lib/matchers.js.map +1 -1
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/fileget.js +2 -2
  12. package/models/operations/filelist.js +2 -2
  13. package/models/operations/fileupload.js +2 -2
  14. package/models/operations/index.d.ts +0 -1
  15. package/models/operations/index.d.ts.map +1 -1
  16. package/models/operations/index.js +0 -1
  17. package/models/operations/index.js.map +1 -1
  18. package/package.json +3 -2
  19. package/sdk/deployments.d.ts +0 -8
  20. package/sdk/deployments.d.ts.map +1 -1
  21. package/sdk/deployments.js +0 -10
  22. package/sdk/deployments.js.map +1 -1
  23. package/src/lib/config.ts +2 -2
  24. package/src/lib/matchers.ts +1 -4
  25. package/src/models/operations/createcontact.ts +2 -2
  26. package/src/models/operations/fileget.ts +2 -2
  27. package/src/models/operations/filelist.ts +2 -2
  28. package/src/models/operations/fileupload.ts +2 -2
  29. package/src/models/operations/index.ts +0 -1
  30. package/src/sdk/deployments.ts +0 -19
  31. package/funcs/deploymentsStream.d.ts +0 -16
  32. package/funcs/deploymentsStream.d.ts.map +0 -1
  33. package/funcs/deploymentsStream.js +0 -126
  34. package/funcs/deploymentsStream.js.map +0 -1
  35. package/lib/event-streams.d.ts +0 -17
  36. package/lib/event-streams.d.ts.map +0 -1
  37. package/lib/event-streams.js +0 -220
  38. package/lib/event-streams.js.map +0 -1
  39. package/models/operations/deploymentstream.d.ts +0 -1622
  40. package/models/operations/deploymentstream.d.ts.map +0 -1
  41. package/models/operations/deploymentstream.js +0 -1571
  42. package/models/operations/deploymentstream.js.map +0 -1
  43. package/packages/orq-rc/FUNCTIONS.md +0 -106
  44. package/packages/orq-rc/README.md +0 -506
  45. package/packages/orq-rc/RUNTIMES.md +0 -48
  46. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -84
  47. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -235
  48. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -92
  49. package/packages/orq-rc/docs/sdks/files/README.md +0 -305
  50. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -86
  51. package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
  52. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -608
  53. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -80
  54. package/packages/orq-rc/jsr.json +0 -27
  55. package/packages/orq-rc/package-lock.json +0 -1861
  56. package/packages/orq-rc/package.json +0 -31
  57. package/packages/orq-rc/src/core.ts +0 -13
  58. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -127
  59. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -135
  60. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -143
  61. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -142
  62. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -135
  63. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -127
  64. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -150
  65. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -131
  66. package/packages/orq-rc/src/funcs/filesGet.ts +0 -133
  67. package/packages/orq-rc/src/funcs/filesList.ts +0 -134
  68. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -127
  69. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -131
  70. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -147
  71. package/packages/orq-rc/src/funcs/promptsList.ts +0 -134
  72. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -140
  73. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -133
  74. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -139
  75. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -128
  76. package/packages/orq-rc/src/hooks/global.ts +0 -44
  77. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  78. package/packages/orq-rc/src/hooks/index.ts +0 -6
  79. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  80. package/packages/orq-rc/src/hooks/types.ts +0 -110
  81. package/packages/orq-rc/src/index.ts +0 -7
  82. package/packages/orq-rc/src/lib/base64.ts +0 -37
  83. package/packages/orq-rc/src/lib/config.ts +0 -70
  84. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  85. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  86. package/packages/orq-rc/src/lib/env.ts +0 -73
  87. package/packages/orq-rc/src/lib/files.ts +0 -40
  88. package/packages/orq-rc/src/lib/http.ts +0 -323
  89. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  90. package/packages/orq-rc/src/lib/logger.ts +0 -9
  91. package/packages/orq-rc/src/lib/matchers.ts +0 -322
  92. package/packages/orq-rc/src/lib/primitives.ts +0 -136
  93. package/packages/orq-rc/src/lib/retries.ts +0 -218
  94. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  95. package/packages/orq-rc/src/lib/sdks.ts +0 -400
  96. package/packages/orq-rc/src/lib/security.ts +0 -253
  97. package/packages/orq-rc/src/lib/url.ts +0 -33
  98. package/packages/orq-rc/src/models/components/deployments.ts +0 -1666
  99. package/packages/orq-rc/src/models/components/index.ts +0 -6
  100. package/packages/orq-rc/src/models/components/security.ts +0 -71
  101. package/packages/orq-rc/src/models/errors/apierror.ts +0 -27
  102. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -71
  103. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -82
  104. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  105. package/packages/orq-rc/src/models/errors/index.ts +0 -10
  106. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -97
  107. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -71
  108. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
  109. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  110. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -3717
  111. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  112. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -1790
  113. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -3527
  114. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1144
  115. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2148
  116. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  117. package/packages/orq-rc/src/models/operations/fileget.ts +0 -222
  118. package/packages/orq-rc/src/models/operations/filelist.ts +0 -336
  119. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -322
  120. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2116
  121. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1982
  122. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2012
  123. package/packages/orq-rc/src/models/operations/index.ts +0 -22
  124. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2146
  125. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  126. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -3900
  127. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  128. package/packages/orq-rc/src/sdk/deployments.ts +0 -70
  129. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  130. package/packages/orq-rc/src/sdk/files.ts +0 -78
  131. package/packages/orq-rc/src/sdk/index.ts +0 -5
  132. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  133. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  134. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  135. package/packages/orq-rc/src/sdk/sdk.ts +0 -43
  136. package/packages/orq-rc/src/types/blobs.ts +0 -31
  137. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  138. package/packages/orq-rc/src/types/enums.ts +0 -16
  139. package/packages/orq-rc/src/types/fp.ts +0 -50
  140. package/packages/orq-rc/src/types/index.ts +0 -11
  141. package/packages/orq-rc/src/types/operations.ts +0 -105
  142. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  143. package/packages/orq-rc/src/types/streams.ts +0 -21
  144. package/packages/orq-rc/tsconfig.json +0 -41
  145. package/src/funcs/deploymentsStream.ts +0 -151
  146. package/src/lib/event-streams.ts +0 -264
  147. package/src/models/operations/deploymentstream.ts +0 -3062
@@ -1,2116 +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 GetAllPromptsRequest = {
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 GetAllPromptsObject = {
28
- List: "list",
29
- } as const;
30
- export type GetAllPromptsObject = ClosedEnum<typeof GetAllPromptsObject>;
31
-
32
- export const GetAllPromptsType = {
33
- Prompt: "prompt",
34
- } as const;
35
- export type GetAllPromptsType = ClosedEnum<typeof GetAllPromptsType>;
36
-
37
- /**
38
- * The type of the model
39
- */
40
- export const GetAllPromptsModelType = {
41
- Chat: "chat",
42
- Completion: "completion",
43
- Embedding: "embedding",
44
- Vision: "vision",
45
- Image: "image",
46
- Tts: "tts",
47
- Stt: "stt",
48
- Rerank: "rerank",
49
- Moderations: "moderations",
50
- } as const;
51
- /**
52
- * The type of the model
53
- */
54
- export type GetAllPromptsModelType = ClosedEnum<typeof GetAllPromptsModelType>;
55
-
56
- /**
57
- * Only supported on `image` models.
58
- */
59
- export const GetAllPromptsFormat = {
60
- Url: "url",
61
- B64Json: "b64_json",
62
- Text: "text",
63
- JsonObject: "json_object",
64
- } as const;
65
- /**
66
- * Only supported on `image` models.
67
- */
68
- export type GetAllPromptsFormat = ClosedEnum<typeof GetAllPromptsFormat>;
69
-
70
- /**
71
- * Only supported on `image` models.
72
- */
73
- export const GetAllPromptsQuality = {
74
- Standard: "standard",
75
- Hd: "hd",
76
- } as const;
77
- /**
78
- * Only supported on `image` models.
79
- */
80
- export type GetAllPromptsQuality = ClosedEnum<typeof GetAllPromptsQuality>;
81
-
82
- export const GetAllPromptsResponseFormatPromptsType = {
83
- JsonObject: "json_object",
84
- } as const;
85
- export type GetAllPromptsResponseFormatPromptsType = ClosedEnum<
86
- typeof GetAllPromptsResponseFormatPromptsType
87
- >;
88
-
89
- export type GetAllPromptsResponseFormat2 = {
90
- type: GetAllPromptsResponseFormatPromptsType;
91
- };
92
-
93
- export const GetAllPromptsResponseFormatType = {
94
- JsonSchema: "json_schema",
95
- } as const;
96
- export type GetAllPromptsResponseFormatType = ClosedEnum<
97
- typeof GetAllPromptsResponseFormatType
98
- >;
99
-
100
- export type GetAllPromptsResponseFormatJsonSchema = {
101
- name: string;
102
- strict: boolean;
103
- schema: { [k: string]: any };
104
- };
105
-
106
- export type GetAllPromptsResponseFormat1 = {
107
- type: GetAllPromptsResponseFormatType;
108
- jsonSchema: GetAllPromptsResponseFormatJsonSchema;
109
- };
110
-
111
- /**
112
- * An object specifying the format that the model must output.
113
- *
114
- * @remarks
115
- *
116
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
117
- *
118
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
119
- *
120
- * 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.
121
- */
122
- export type GetAllPromptsResponseFormat =
123
- | GetAllPromptsResponseFormat2
124
- | GetAllPromptsResponseFormat1;
125
-
126
- /**
127
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
128
- */
129
- export const GetAllPromptsPhotoRealVersion = {
130
- V1: "v1",
131
- V2: "v2",
132
- } as const;
133
- /**
134
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
135
- */
136
- export type GetAllPromptsPhotoRealVersion = ClosedEnum<
137
- typeof GetAllPromptsPhotoRealVersion
138
- >;
139
-
140
- /**
141
- * The format to return the embeddings
142
- */
143
- export const GetAllPromptsEncodingFormat = {
144
- Float: "float",
145
- Base64: "base64",
146
- } as const;
147
- /**
148
- * The format to return the embeddings
149
- */
150
- export type GetAllPromptsEncodingFormat = ClosedEnum<
151
- typeof GetAllPromptsEncodingFormat
152
- >;
153
-
154
- /**
155
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
156
- */
157
- export const GetAllPromptsReasoningEffort = {
158
- Low: "low",
159
- Medium: "medium",
160
- High: "high",
161
- } as const;
162
- /**
163
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
164
- */
165
- export type GetAllPromptsReasoningEffort = ClosedEnum<
166
- typeof GetAllPromptsReasoningEffort
167
- >;
168
-
169
- /**
170
- * Model Parameters: Not all parameters apply to every model
171
- */
172
- export type GetAllPromptsModelParameters = {
173
- /**
174
- * Only supported on `chat` and `completion` models.
175
- */
176
- temperature?: number | undefined;
177
- /**
178
- * Only supported on `chat` and `completion` models.
179
- */
180
- maxTokens?: number | undefined;
181
- /**
182
- * Only supported on `chat` and `completion` models.
183
- */
184
- topK?: number | undefined;
185
- /**
186
- * Only supported on `chat` and `completion` models.
187
- */
188
- topP?: number | undefined;
189
- /**
190
- * Only supported on `chat` and `completion` models.
191
- */
192
- frequencyPenalty?: number | undefined;
193
- /**
194
- * Only supported on `chat` and `completion` models.
195
- */
196
- presencePenalty?: number | undefined;
197
- /**
198
- * Only supported on `image` models.
199
- */
200
- numImages?: number | undefined;
201
- /**
202
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
203
- */
204
- seed?: number | undefined;
205
- /**
206
- * Only supported on `image` models.
207
- */
208
- format?: GetAllPromptsFormat | undefined;
209
- /**
210
- * Only supported on `image` models.
211
- */
212
- dimensions?: string | undefined;
213
- /**
214
- * Only supported on `image` models.
215
- */
216
- quality?: GetAllPromptsQuality | undefined;
217
- /**
218
- * Only supported on `image` models.
219
- */
220
- style?: string | undefined;
221
- /**
222
- * An object specifying the format that the model must output.
223
- *
224
- * @remarks
225
- *
226
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
227
- *
228
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
229
- *
230
- * 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.
231
- */
232
- responseFormat?:
233
- | GetAllPromptsResponseFormat2
234
- | GetAllPromptsResponseFormat1
235
- | null
236
- | undefined;
237
- /**
238
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
239
- */
240
- photoRealVersion?: GetAllPromptsPhotoRealVersion | undefined;
241
- /**
242
- * The format to return the embeddings
243
- */
244
- encodingFormat?: GetAllPromptsEncodingFormat | undefined;
245
- /**
246
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
247
- */
248
- reasoningEffort?: GetAllPromptsReasoningEffort | undefined;
249
- };
250
-
251
- export const GetAllPromptsProvider = {
252
- Cohere: "cohere",
253
- Openai: "openai",
254
- Anthropic: "anthropic",
255
- Huggingface: "huggingface",
256
- Replicate: "replicate",
257
- Google: "google",
258
- GoogleAi: "google-ai",
259
- Azure: "azure",
260
- Aws: "aws",
261
- Anyscale: "anyscale",
262
- Perplexity: "perplexity",
263
- Groq: "groq",
264
- Fal: "fal",
265
- Leonardoai: "leonardoai",
266
- Nvidia: "nvidia",
267
- Jina: "jina",
268
- Togetherai: "togetherai",
269
- Elevenlabs: "elevenlabs",
270
- } as const;
271
- export type GetAllPromptsProvider = ClosedEnum<typeof GetAllPromptsProvider>;
272
-
273
- /**
274
- * The role of the prompt message
275
- */
276
- export const GetAllPromptsRole = {
277
- System: "system",
278
- Assistant: "assistant",
279
- User: "user",
280
- Exception: "exception",
281
- Tool: "tool",
282
- Prompt: "prompt",
283
- Correction: "correction",
284
- ExpectedOutput: "expected_output",
285
- } as const;
286
- /**
287
- * The role of the prompt message
288
- */
289
- export type GetAllPromptsRole = ClosedEnum<typeof GetAllPromptsRole>;
290
-
291
- export const GetAllPrompts2PromptsType = {
292
- ImageUrl: "image_url",
293
- } as const;
294
- export type GetAllPrompts2PromptsType = ClosedEnum<
295
- typeof GetAllPrompts2PromptsType
296
- >;
297
-
298
- export type GetAllPrompts2ImageUrl = {
299
- /**
300
- * The orq.ai id of the image
301
- */
302
- id?: string | undefined;
303
- /**
304
- * Either a URL of the image or the base64 encoded data URI.
305
- */
306
- url: string;
307
- /**
308
- * Specifies the detail level of the image. Currently only supported with OpenAI models
309
- */
310
- detail?: string | undefined;
311
- };
312
-
313
- /**
314
- * The image part of the prompt message. Only supported with vision models.
315
- */
316
- export type GetAllPrompts22 = {
317
- type: GetAllPrompts2PromptsType;
318
- imageUrl: GetAllPrompts2ImageUrl;
319
- };
320
-
321
- export const GetAllPrompts2Type = {
322
- Text: "text",
323
- } as const;
324
- export type GetAllPrompts2Type = ClosedEnum<typeof GetAllPrompts2Type>;
325
-
326
- /**
327
- * Text content part of a prompt message
328
- */
329
- export type GetAllPrompts21 = {
330
- type: GetAllPrompts2Type;
331
- text: string;
332
- };
333
-
334
- export type GetAllPromptsContent2 = GetAllPrompts21 | GetAllPrompts22;
335
-
336
- /**
337
- * 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.
338
- */
339
- export type GetAllPromptsContent =
340
- | string
341
- | Array<GetAllPrompts21 | GetAllPrompts22>;
342
-
343
- export const GetAllPromptsPromptsType = {
344
- Function: "function",
345
- } as const;
346
- export type GetAllPromptsPromptsType = ClosedEnum<
347
- typeof GetAllPromptsPromptsType
348
- >;
349
-
350
- export type GetAllPromptsFunction = {
351
- name: string;
352
- /**
353
- * JSON string arguments for the functions
354
- */
355
- arguments: string;
356
- };
357
-
358
- export type GetAllPromptsToolCalls = {
359
- id?: string | undefined;
360
- index?: number | undefined;
361
- type: GetAllPromptsPromptsType;
362
- function: GetAllPromptsFunction;
363
- };
364
-
365
- export type GetAllPromptsMessages = {
366
- /**
367
- * The role of the prompt message
368
- */
369
- role: GetAllPromptsRole;
370
- /**
371
- * 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.
372
- */
373
- content: string | Array<GetAllPrompts21 | GetAllPrompts22>;
374
- toolCalls?: Array<GetAllPromptsToolCalls> | undefined;
375
- };
376
-
377
- /**
378
- * A list of messages compatible with the openAI schema
379
- */
380
- export type GetAllPromptsPromptConfig = {
381
- stream?: boolean | undefined;
382
- model?: string | undefined;
383
- /**
384
- * The id of the resource
385
- */
386
- modelDbId?: string | undefined;
387
- /**
388
- * The type of the model
389
- */
390
- modelType?: GetAllPromptsModelType | undefined;
391
- /**
392
- * Model Parameters: Not all parameters apply to every model
393
- */
394
- modelParameters?: GetAllPromptsModelParameters | undefined;
395
- provider?: GetAllPromptsProvider | undefined;
396
- /**
397
- * The id of the resource
398
- */
399
- integrationId?: string | null | undefined;
400
- version?: string | undefined;
401
- messages: Array<GetAllPromptsMessages>;
402
- };
403
-
404
- export const GetAllPromptsUseCases = {
405
- Agents: "Agents",
406
- AgentsSimulations: "Agents simulations",
407
- APIInteraction: "API interaction",
408
- AutonomousAgents: "Autonomous Agents",
409
- Chatbots: "Chatbots",
410
- Classification: "Classification",
411
- CodeUnderstanding: "Code understanding",
412
- CodeWriting: "Code writing",
413
- DocumentsQA: "Documents QA",
414
- Conversation: "Conversation",
415
- Extraction: "Extraction",
416
- MultiModal: "Multi-modal",
417
- SelfChecking: "Self-checking",
418
- Sql: "SQL",
419
- Summarization: "Summarization",
420
- Tagging: "Tagging",
421
- } as const;
422
- export type GetAllPromptsUseCases = ClosedEnum<typeof GetAllPromptsUseCases>;
423
-
424
- /**
425
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
426
- */
427
- export const GetAllPromptsLanguage = {
428
- Chinese: "Chinese",
429
- Dutch: "Dutch",
430
- English: "English",
431
- French: "French",
432
- German: "German",
433
- Russian: "Russian",
434
- Spanish: "Spanish",
435
- } as const;
436
- /**
437
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
438
- */
439
- export type GetAllPromptsLanguage = ClosedEnum<typeof GetAllPromptsLanguage>;
440
-
441
- export type GetAllPromptsMetadata = {
442
- /**
443
- * 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
444
- */
445
- useCases?: Array<GetAllPromptsUseCases> | undefined;
446
- /**
447
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
448
- */
449
- language?: GetAllPromptsLanguage | undefined;
450
- };
451
-
452
- export type GetAllPromptsData = {
453
- id: string;
454
- type: GetAllPromptsType;
455
- owner: string;
456
- domainId: string;
457
- created: string;
458
- updated: string;
459
- createdById?: string | undefined;
460
- updatedById?: string | undefined;
461
- /**
462
- * The prompt’s name, meant to be displayable in the UI.
463
- */
464
- displayName: string;
465
- /**
466
- * The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
467
- */
468
- description?: string | null | undefined;
469
- /**
470
- * A list of messages compatible with the openAI schema
471
- */
472
- promptConfig: GetAllPromptsPromptConfig;
473
- metadata?: GetAllPromptsMetadata | undefined;
474
- };
475
-
476
- /**
477
- * Prompts retrieved.
478
- */
479
- export type GetAllPromptsResponseBody = {
480
- object: GetAllPromptsObject;
481
- data: Array<GetAllPromptsData>;
482
- hasMore: boolean;
483
- };
484
-
485
- /** @internal */
486
- export const GetAllPromptsRequest$inboundSchema: z.ZodType<
487
- GetAllPromptsRequest,
488
- z.ZodTypeDef,
489
- unknown
490
- > = z.object({
491
- limit: z.number().default(10),
492
- starting_after: z.string().optional(),
493
- ending_before: z.string().optional(),
494
- }).transform((v) => {
495
- return remap$(v, {
496
- "starting_after": "startingAfter",
497
- "ending_before": "endingBefore",
498
- });
499
- });
500
-
501
- /** @internal */
502
- export type GetAllPromptsRequest$Outbound = {
503
- limit: number;
504
- starting_after?: string | undefined;
505
- ending_before?: string | undefined;
506
- };
507
-
508
- /** @internal */
509
- export const GetAllPromptsRequest$outboundSchema: z.ZodType<
510
- GetAllPromptsRequest$Outbound,
511
- z.ZodTypeDef,
512
- GetAllPromptsRequest
513
- > = z.object({
514
- limit: z.number().default(10),
515
- startingAfter: z.string().optional(),
516
- endingBefore: z.string().optional(),
517
- }).transform((v) => {
518
- return remap$(v, {
519
- startingAfter: "starting_after",
520
- endingBefore: "ending_before",
521
- });
522
- });
523
-
524
- /**
525
- * @internal
526
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
527
- */
528
- export namespace GetAllPromptsRequest$ {
529
- /** @deprecated use `GetAllPromptsRequest$inboundSchema` instead. */
530
- export const inboundSchema = GetAllPromptsRequest$inboundSchema;
531
- /** @deprecated use `GetAllPromptsRequest$outboundSchema` instead. */
532
- export const outboundSchema = GetAllPromptsRequest$outboundSchema;
533
- /** @deprecated use `GetAllPromptsRequest$Outbound` instead. */
534
- export type Outbound = GetAllPromptsRequest$Outbound;
535
- }
536
-
537
- export function getAllPromptsRequestToJSON(
538
- getAllPromptsRequest: GetAllPromptsRequest,
539
- ): string {
540
- return JSON.stringify(
541
- GetAllPromptsRequest$outboundSchema.parse(getAllPromptsRequest),
542
- );
543
- }
544
-
545
- export function getAllPromptsRequestFromJSON(
546
- jsonString: string,
547
- ): SafeParseResult<GetAllPromptsRequest, SDKValidationError> {
548
- return safeParse(
549
- jsonString,
550
- (x) => GetAllPromptsRequest$inboundSchema.parse(JSON.parse(x)),
551
- `Failed to parse 'GetAllPromptsRequest' from JSON`,
552
- );
553
- }
554
-
555
- /** @internal */
556
- export const GetAllPromptsObject$inboundSchema: z.ZodNativeEnum<
557
- typeof GetAllPromptsObject
558
- > = z.nativeEnum(GetAllPromptsObject);
559
-
560
- /** @internal */
561
- export const GetAllPromptsObject$outboundSchema: z.ZodNativeEnum<
562
- typeof GetAllPromptsObject
563
- > = GetAllPromptsObject$inboundSchema;
564
-
565
- /**
566
- * @internal
567
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
568
- */
569
- export namespace GetAllPromptsObject$ {
570
- /** @deprecated use `GetAllPromptsObject$inboundSchema` instead. */
571
- export const inboundSchema = GetAllPromptsObject$inboundSchema;
572
- /** @deprecated use `GetAllPromptsObject$outboundSchema` instead. */
573
- export const outboundSchema = GetAllPromptsObject$outboundSchema;
574
- }
575
-
576
- /** @internal */
577
- export const GetAllPromptsType$inboundSchema: z.ZodNativeEnum<
578
- typeof GetAllPromptsType
579
- > = z.nativeEnum(GetAllPromptsType);
580
-
581
- /** @internal */
582
- export const GetAllPromptsType$outboundSchema: z.ZodNativeEnum<
583
- typeof GetAllPromptsType
584
- > = GetAllPromptsType$inboundSchema;
585
-
586
- /**
587
- * @internal
588
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
589
- */
590
- export namespace GetAllPromptsType$ {
591
- /** @deprecated use `GetAllPromptsType$inboundSchema` instead. */
592
- export const inboundSchema = GetAllPromptsType$inboundSchema;
593
- /** @deprecated use `GetAllPromptsType$outboundSchema` instead. */
594
- export const outboundSchema = GetAllPromptsType$outboundSchema;
595
- }
596
-
597
- /** @internal */
598
- export const GetAllPromptsModelType$inboundSchema: z.ZodNativeEnum<
599
- typeof GetAllPromptsModelType
600
- > = z.nativeEnum(GetAllPromptsModelType);
601
-
602
- /** @internal */
603
- export const GetAllPromptsModelType$outboundSchema: z.ZodNativeEnum<
604
- typeof GetAllPromptsModelType
605
- > = GetAllPromptsModelType$inboundSchema;
606
-
607
- /**
608
- * @internal
609
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
610
- */
611
- export namespace GetAllPromptsModelType$ {
612
- /** @deprecated use `GetAllPromptsModelType$inboundSchema` instead. */
613
- export const inboundSchema = GetAllPromptsModelType$inboundSchema;
614
- /** @deprecated use `GetAllPromptsModelType$outboundSchema` instead. */
615
- export const outboundSchema = GetAllPromptsModelType$outboundSchema;
616
- }
617
-
618
- /** @internal */
619
- export const GetAllPromptsFormat$inboundSchema: z.ZodNativeEnum<
620
- typeof GetAllPromptsFormat
621
- > = z.nativeEnum(GetAllPromptsFormat);
622
-
623
- /** @internal */
624
- export const GetAllPromptsFormat$outboundSchema: z.ZodNativeEnum<
625
- typeof GetAllPromptsFormat
626
- > = GetAllPromptsFormat$inboundSchema;
627
-
628
- /**
629
- * @internal
630
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
631
- */
632
- export namespace GetAllPromptsFormat$ {
633
- /** @deprecated use `GetAllPromptsFormat$inboundSchema` instead. */
634
- export const inboundSchema = GetAllPromptsFormat$inboundSchema;
635
- /** @deprecated use `GetAllPromptsFormat$outboundSchema` instead. */
636
- export const outboundSchema = GetAllPromptsFormat$outboundSchema;
637
- }
638
-
639
- /** @internal */
640
- export const GetAllPromptsQuality$inboundSchema: z.ZodNativeEnum<
641
- typeof GetAllPromptsQuality
642
- > = z.nativeEnum(GetAllPromptsQuality);
643
-
644
- /** @internal */
645
- export const GetAllPromptsQuality$outboundSchema: z.ZodNativeEnum<
646
- typeof GetAllPromptsQuality
647
- > = GetAllPromptsQuality$inboundSchema;
648
-
649
- /**
650
- * @internal
651
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
652
- */
653
- export namespace GetAllPromptsQuality$ {
654
- /** @deprecated use `GetAllPromptsQuality$inboundSchema` instead. */
655
- export const inboundSchema = GetAllPromptsQuality$inboundSchema;
656
- /** @deprecated use `GetAllPromptsQuality$outboundSchema` instead. */
657
- export const outboundSchema = GetAllPromptsQuality$outboundSchema;
658
- }
659
-
660
- /** @internal */
661
- export const GetAllPromptsResponseFormatPromptsType$inboundSchema:
662
- z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsType> = z.nativeEnum(
663
- GetAllPromptsResponseFormatPromptsType,
664
- );
665
-
666
- /** @internal */
667
- export const GetAllPromptsResponseFormatPromptsType$outboundSchema:
668
- z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsType> =
669
- GetAllPromptsResponseFormatPromptsType$inboundSchema;
670
-
671
- /**
672
- * @internal
673
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
674
- */
675
- export namespace GetAllPromptsResponseFormatPromptsType$ {
676
- /** @deprecated use `GetAllPromptsResponseFormatPromptsType$inboundSchema` instead. */
677
- export const inboundSchema =
678
- GetAllPromptsResponseFormatPromptsType$inboundSchema;
679
- /** @deprecated use `GetAllPromptsResponseFormatPromptsType$outboundSchema` instead. */
680
- export const outboundSchema =
681
- GetAllPromptsResponseFormatPromptsType$outboundSchema;
682
- }
683
-
684
- /** @internal */
685
- export const GetAllPromptsResponseFormat2$inboundSchema: z.ZodType<
686
- GetAllPromptsResponseFormat2,
687
- z.ZodTypeDef,
688
- unknown
689
- > = z.object({
690
- type: GetAllPromptsResponseFormatPromptsType$inboundSchema,
691
- });
692
-
693
- /** @internal */
694
- export type GetAllPromptsResponseFormat2$Outbound = {
695
- type: string;
696
- };
697
-
698
- /** @internal */
699
- export const GetAllPromptsResponseFormat2$outboundSchema: z.ZodType<
700
- GetAllPromptsResponseFormat2$Outbound,
701
- z.ZodTypeDef,
702
- GetAllPromptsResponseFormat2
703
- > = z.object({
704
- type: GetAllPromptsResponseFormatPromptsType$outboundSchema,
705
- });
706
-
707
- /**
708
- * @internal
709
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
710
- */
711
- export namespace GetAllPromptsResponseFormat2$ {
712
- /** @deprecated use `GetAllPromptsResponseFormat2$inboundSchema` instead. */
713
- export const inboundSchema = GetAllPromptsResponseFormat2$inboundSchema;
714
- /** @deprecated use `GetAllPromptsResponseFormat2$outboundSchema` instead. */
715
- export const outboundSchema = GetAllPromptsResponseFormat2$outboundSchema;
716
- /** @deprecated use `GetAllPromptsResponseFormat2$Outbound` instead. */
717
- export type Outbound = GetAllPromptsResponseFormat2$Outbound;
718
- }
719
-
720
- export function getAllPromptsResponseFormat2ToJSON(
721
- getAllPromptsResponseFormat2: GetAllPromptsResponseFormat2,
722
- ): string {
723
- return JSON.stringify(
724
- GetAllPromptsResponseFormat2$outboundSchema.parse(
725
- getAllPromptsResponseFormat2,
726
- ),
727
- );
728
- }
729
-
730
- export function getAllPromptsResponseFormat2FromJSON(
731
- jsonString: string,
732
- ): SafeParseResult<GetAllPromptsResponseFormat2, SDKValidationError> {
733
- return safeParse(
734
- jsonString,
735
- (x) => GetAllPromptsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
736
- `Failed to parse 'GetAllPromptsResponseFormat2' from JSON`,
737
- );
738
- }
739
-
740
- /** @internal */
741
- export const GetAllPromptsResponseFormatType$inboundSchema: z.ZodNativeEnum<
742
- typeof GetAllPromptsResponseFormatType
743
- > = z.nativeEnum(GetAllPromptsResponseFormatType);
744
-
745
- /** @internal */
746
- export const GetAllPromptsResponseFormatType$outboundSchema: z.ZodNativeEnum<
747
- typeof GetAllPromptsResponseFormatType
748
- > = GetAllPromptsResponseFormatType$inboundSchema;
749
-
750
- /**
751
- * @internal
752
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
753
- */
754
- export namespace GetAllPromptsResponseFormatType$ {
755
- /** @deprecated use `GetAllPromptsResponseFormatType$inboundSchema` instead. */
756
- export const inboundSchema = GetAllPromptsResponseFormatType$inboundSchema;
757
- /** @deprecated use `GetAllPromptsResponseFormatType$outboundSchema` instead. */
758
- export const outboundSchema = GetAllPromptsResponseFormatType$outboundSchema;
759
- }
760
-
761
- /** @internal */
762
- export const GetAllPromptsResponseFormatJsonSchema$inboundSchema: z.ZodType<
763
- GetAllPromptsResponseFormatJsonSchema,
764
- z.ZodTypeDef,
765
- unknown
766
- > = z.object({
767
- name: z.string(),
768
- strict: z.boolean(),
769
- schema: z.record(z.any()),
770
- });
771
-
772
- /** @internal */
773
- export type GetAllPromptsResponseFormatJsonSchema$Outbound = {
774
- name: string;
775
- strict: boolean;
776
- schema: { [k: string]: any };
777
- };
778
-
779
- /** @internal */
780
- export const GetAllPromptsResponseFormatJsonSchema$outboundSchema: z.ZodType<
781
- GetAllPromptsResponseFormatJsonSchema$Outbound,
782
- z.ZodTypeDef,
783
- GetAllPromptsResponseFormatJsonSchema
784
- > = z.object({
785
- name: z.string(),
786
- strict: z.boolean(),
787
- schema: z.record(z.any()),
788
- });
789
-
790
- /**
791
- * @internal
792
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
793
- */
794
- export namespace GetAllPromptsResponseFormatJsonSchema$ {
795
- /** @deprecated use `GetAllPromptsResponseFormatJsonSchema$inboundSchema` instead. */
796
- export const inboundSchema =
797
- GetAllPromptsResponseFormatJsonSchema$inboundSchema;
798
- /** @deprecated use `GetAllPromptsResponseFormatJsonSchema$outboundSchema` instead. */
799
- export const outboundSchema =
800
- GetAllPromptsResponseFormatJsonSchema$outboundSchema;
801
- /** @deprecated use `GetAllPromptsResponseFormatJsonSchema$Outbound` instead. */
802
- export type Outbound = GetAllPromptsResponseFormatJsonSchema$Outbound;
803
- }
804
-
805
- export function getAllPromptsResponseFormatJsonSchemaToJSON(
806
- getAllPromptsResponseFormatJsonSchema: GetAllPromptsResponseFormatJsonSchema,
807
- ): string {
808
- return JSON.stringify(
809
- GetAllPromptsResponseFormatJsonSchema$outboundSchema.parse(
810
- getAllPromptsResponseFormatJsonSchema,
811
- ),
812
- );
813
- }
814
-
815
- export function getAllPromptsResponseFormatJsonSchemaFromJSON(
816
- jsonString: string,
817
- ): SafeParseResult<GetAllPromptsResponseFormatJsonSchema, SDKValidationError> {
818
- return safeParse(
819
- jsonString,
820
- (x) =>
821
- GetAllPromptsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
822
- `Failed to parse 'GetAllPromptsResponseFormatJsonSchema' from JSON`,
823
- );
824
- }
825
-
826
- /** @internal */
827
- export const GetAllPromptsResponseFormat1$inboundSchema: z.ZodType<
828
- GetAllPromptsResponseFormat1,
829
- z.ZodTypeDef,
830
- unknown
831
- > = z.object({
832
- type: GetAllPromptsResponseFormatType$inboundSchema,
833
- json_schema: z.lazy(() =>
834
- GetAllPromptsResponseFormatJsonSchema$inboundSchema
835
- ),
836
- }).transform((v) => {
837
- return remap$(v, {
838
- "json_schema": "jsonSchema",
839
- });
840
- });
841
-
842
- /** @internal */
843
- export type GetAllPromptsResponseFormat1$Outbound = {
844
- type: string;
845
- json_schema: GetAllPromptsResponseFormatJsonSchema$Outbound;
846
- };
847
-
848
- /** @internal */
849
- export const GetAllPromptsResponseFormat1$outboundSchema: z.ZodType<
850
- GetAllPromptsResponseFormat1$Outbound,
851
- z.ZodTypeDef,
852
- GetAllPromptsResponseFormat1
853
- > = z.object({
854
- type: GetAllPromptsResponseFormatType$outboundSchema,
855
- jsonSchema: z.lazy(() =>
856
- GetAllPromptsResponseFormatJsonSchema$outboundSchema
857
- ),
858
- }).transform((v) => {
859
- return remap$(v, {
860
- jsonSchema: "json_schema",
861
- });
862
- });
863
-
864
- /**
865
- * @internal
866
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
867
- */
868
- export namespace GetAllPromptsResponseFormat1$ {
869
- /** @deprecated use `GetAllPromptsResponseFormat1$inboundSchema` instead. */
870
- export const inboundSchema = GetAllPromptsResponseFormat1$inboundSchema;
871
- /** @deprecated use `GetAllPromptsResponseFormat1$outboundSchema` instead. */
872
- export const outboundSchema = GetAllPromptsResponseFormat1$outboundSchema;
873
- /** @deprecated use `GetAllPromptsResponseFormat1$Outbound` instead. */
874
- export type Outbound = GetAllPromptsResponseFormat1$Outbound;
875
- }
876
-
877
- export function getAllPromptsResponseFormat1ToJSON(
878
- getAllPromptsResponseFormat1: GetAllPromptsResponseFormat1,
879
- ): string {
880
- return JSON.stringify(
881
- GetAllPromptsResponseFormat1$outboundSchema.parse(
882
- getAllPromptsResponseFormat1,
883
- ),
884
- );
885
- }
886
-
887
- export function getAllPromptsResponseFormat1FromJSON(
888
- jsonString: string,
889
- ): SafeParseResult<GetAllPromptsResponseFormat1, SDKValidationError> {
890
- return safeParse(
891
- jsonString,
892
- (x) => GetAllPromptsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
893
- `Failed to parse 'GetAllPromptsResponseFormat1' from JSON`,
894
- );
895
- }
896
-
897
- /** @internal */
898
- export const GetAllPromptsResponseFormat$inboundSchema: z.ZodType<
899
- GetAllPromptsResponseFormat,
900
- z.ZodTypeDef,
901
- unknown
902
- > = z.union([
903
- z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
904
- z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
905
- ]);
906
-
907
- /** @internal */
908
- export type GetAllPromptsResponseFormat$Outbound =
909
- | GetAllPromptsResponseFormat2$Outbound
910
- | GetAllPromptsResponseFormat1$Outbound;
911
-
912
- /** @internal */
913
- export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
914
- GetAllPromptsResponseFormat$Outbound,
915
- z.ZodTypeDef,
916
- GetAllPromptsResponseFormat
917
- > = z.union([
918
- z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
919
- z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
920
- ]);
921
-
922
- /**
923
- * @internal
924
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
925
- */
926
- export namespace GetAllPromptsResponseFormat$ {
927
- /** @deprecated use `GetAllPromptsResponseFormat$inboundSchema` instead. */
928
- export const inboundSchema = GetAllPromptsResponseFormat$inboundSchema;
929
- /** @deprecated use `GetAllPromptsResponseFormat$outboundSchema` instead. */
930
- export const outboundSchema = GetAllPromptsResponseFormat$outboundSchema;
931
- /** @deprecated use `GetAllPromptsResponseFormat$Outbound` instead. */
932
- export type Outbound = GetAllPromptsResponseFormat$Outbound;
933
- }
934
-
935
- export function getAllPromptsResponseFormatToJSON(
936
- getAllPromptsResponseFormat: GetAllPromptsResponseFormat,
937
- ): string {
938
- return JSON.stringify(
939
- GetAllPromptsResponseFormat$outboundSchema.parse(
940
- getAllPromptsResponseFormat,
941
- ),
942
- );
943
- }
944
-
945
- export function getAllPromptsResponseFormatFromJSON(
946
- jsonString: string,
947
- ): SafeParseResult<GetAllPromptsResponseFormat, SDKValidationError> {
948
- return safeParse(
949
- jsonString,
950
- (x) => GetAllPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
951
- `Failed to parse 'GetAllPromptsResponseFormat' from JSON`,
952
- );
953
- }
954
-
955
- /** @internal */
956
- export const GetAllPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
957
- typeof GetAllPromptsPhotoRealVersion
958
- > = z.nativeEnum(GetAllPromptsPhotoRealVersion);
959
-
960
- /** @internal */
961
- export const GetAllPromptsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
962
- typeof GetAllPromptsPhotoRealVersion
963
- > = GetAllPromptsPhotoRealVersion$inboundSchema;
964
-
965
- /**
966
- * @internal
967
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
968
- */
969
- export namespace GetAllPromptsPhotoRealVersion$ {
970
- /** @deprecated use `GetAllPromptsPhotoRealVersion$inboundSchema` instead. */
971
- export const inboundSchema = GetAllPromptsPhotoRealVersion$inboundSchema;
972
- /** @deprecated use `GetAllPromptsPhotoRealVersion$outboundSchema` instead. */
973
- export const outboundSchema = GetAllPromptsPhotoRealVersion$outboundSchema;
974
- }
975
-
976
- /** @internal */
977
- export const GetAllPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
978
- typeof GetAllPromptsEncodingFormat
979
- > = z.nativeEnum(GetAllPromptsEncodingFormat);
980
-
981
- /** @internal */
982
- export const GetAllPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
983
- typeof GetAllPromptsEncodingFormat
984
- > = GetAllPromptsEncodingFormat$inboundSchema;
985
-
986
- /**
987
- * @internal
988
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
989
- */
990
- export namespace GetAllPromptsEncodingFormat$ {
991
- /** @deprecated use `GetAllPromptsEncodingFormat$inboundSchema` instead. */
992
- export const inboundSchema = GetAllPromptsEncodingFormat$inboundSchema;
993
- /** @deprecated use `GetAllPromptsEncodingFormat$outboundSchema` instead. */
994
- export const outboundSchema = GetAllPromptsEncodingFormat$outboundSchema;
995
- }
996
-
997
- /** @internal */
998
- export const GetAllPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
999
- typeof GetAllPromptsReasoningEffort
1000
- > = z.nativeEnum(GetAllPromptsReasoningEffort);
1001
-
1002
- /** @internal */
1003
- export const GetAllPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
1004
- typeof GetAllPromptsReasoningEffort
1005
- > = GetAllPromptsReasoningEffort$inboundSchema;
1006
-
1007
- /**
1008
- * @internal
1009
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1010
- */
1011
- export namespace GetAllPromptsReasoningEffort$ {
1012
- /** @deprecated use `GetAllPromptsReasoningEffort$inboundSchema` instead. */
1013
- export const inboundSchema = GetAllPromptsReasoningEffort$inboundSchema;
1014
- /** @deprecated use `GetAllPromptsReasoningEffort$outboundSchema` instead. */
1015
- export const outboundSchema = GetAllPromptsReasoningEffort$outboundSchema;
1016
- }
1017
-
1018
- /** @internal */
1019
- export const GetAllPromptsModelParameters$inboundSchema: z.ZodType<
1020
- GetAllPromptsModelParameters,
1021
- z.ZodTypeDef,
1022
- unknown
1023
- > = z.object({
1024
- temperature: z.number().optional(),
1025
- maxTokens: z.number().optional(),
1026
- topK: z.number().optional(),
1027
- topP: z.number().optional(),
1028
- frequencyPenalty: z.number().optional(),
1029
- presencePenalty: z.number().optional(),
1030
- numImages: z.number().optional(),
1031
- seed: z.number().optional(),
1032
- format: GetAllPromptsFormat$inboundSchema.optional(),
1033
- dimensions: z.string().optional(),
1034
- quality: GetAllPromptsQuality$inboundSchema.optional(),
1035
- style: z.string().optional(),
1036
- responseFormat: z.nullable(
1037
- z.union([
1038
- z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
1039
- z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
1040
- ]),
1041
- ).optional(),
1042
- photoRealVersion: GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
1043
- encoding_format: GetAllPromptsEncodingFormat$inboundSchema.optional(),
1044
- reasoningEffort: GetAllPromptsReasoningEffort$inboundSchema.optional(),
1045
- }).transform((v) => {
1046
- return remap$(v, {
1047
- "encoding_format": "encodingFormat",
1048
- });
1049
- });
1050
-
1051
- /** @internal */
1052
- export type GetAllPromptsModelParameters$Outbound = {
1053
- temperature?: number | undefined;
1054
- maxTokens?: number | undefined;
1055
- topK?: number | undefined;
1056
- topP?: number | undefined;
1057
- frequencyPenalty?: number | undefined;
1058
- presencePenalty?: number | undefined;
1059
- numImages?: number | undefined;
1060
- seed?: number | undefined;
1061
- format?: string | undefined;
1062
- dimensions?: string | undefined;
1063
- quality?: string | undefined;
1064
- style?: string | undefined;
1065
- responseFormat?:
1066
- | GetAllPromptsResponseFormat2$Outbound
1067
- | GetAllPromptsResponseFormat1$Outbound
1068
- | null
1069
- | undefined;
1070
- photoRealVersion?: string | undefined;
1071
- encoding_format?: string | undefined;
1072
- reasoningEffort?: string | undefined;
1073
- };
1074
-
1075
- /** @internal */
1076
- export const GetAllPromptsModelParameters$outboundSchema: z.ZodType<
1077
- GetAllPromptsModelParameters$Outbound,
1078
- z.ZodTypeDef,
1079
- GetAllPromptsModelParameters
1080
- > = z.object({
1081
- temperature: z.number().optional(),
1082
- maxTokens: z.number().optional(),
1083
- topK: z.number().optional(),
1084
- topP: z.number().optional(),
1085
- frequencyPenalty: z.number().optional(),
1086
- presencePenalty: z.number().optional(),
1087
- numImages: z.number().optional(),
1088
- seed: z.number().optional(),
1089
- format: GetAllPromptsFormat$outboundSchema.optional(),
1090
- dimensions: z.string().optional(),
1091
- quality: GetAllPromptsQuality$outboundSchema.optional(),
1092
- style: z.string().optional(),
1093
- responseFormat: z.nullable(
1094
- z.union([
1095
- z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
1096
- z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
1097
- ]),
1098
- ).optional(),
1099
- photoRealVersion: GetAllPromptsPhotoRealVersion$outboundSchema.optional(),
1100
- encodingFormat: GetAllPromptsEncodingFormat$outboundSchema.optional(),
1101
- reasoningEffort: GetAllPromptsReasoningEffort$outboundSchema.optional(),
1102
- }).transform((v) => {
1103
- return remap$(v, {
1104
- encodingFormat: "encoding_format",
1105
- });
1106
- });
1107
-
1108
- /**
1109
- * @internal
1110
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1111
- */
1112
- export namespace GetAllPromptsModelParameters$ {
1113
- /** @deprecated use `GetAllPromptsModelParameters$inboundSchema` instead. */
1114
- export const inboundSchema = GetAllPromptsModelParameters$inboundSchema;
1115
- /** @deprecated use `GetAllPromptsModelParameters$outboundSchema` instead. */
1116
- export const outboundSchema = GetAllPromptsModelParameters$outboundSchema;
1117
- /** @deprecated use `GetAllPromptsModelParameters$Outbound` instead. */
1118
- export type Outbound = GetAllPromptsModelParameters$Outbound;
1119
- }
1120
-
1121
- export function getAllPromptsModelParametersToJSON(
1122
- getAllPromptsModelParameters: GetAllPromptsModelParameters,
1123
- ): string {
1124
- return JSON.stringify(
1125
- GetAllPromptsModelParameters$outboundSchema.parse(
1126
- getAllPromptsModelParameters,
1127
- ),
1128
- );
1129
- }
1130
-
1131
- export function getAllPromptsModelParametersFromJSON(
1132
- jsonString: string,
1133
- ): SafeParseResult<GetAllPromptsModelParameters, SDKValidationError> {
1134
- return safeParse(
1135
- jsonString,
1136
- (x) => GetAllPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
1137
- `Failed to parse 'GetAllPromptsModelParameters' from JSON`,
1138
- );
1139
- }
1140
-
1141
- /** @internal */
1142
- export const GetAllPromptsProvider$inboundSchema: z.ZodNativeEnum<
1143
- typeof GetAllPromptsProvider
1144
- > = z.nativeEnum(GetAllPromptsProvider);
1145
-
1146
- /** @internal */
1147
- export const GetAllPromptsProvider$outboundSchema: z.ZodNativeEnum<
1148
- typeof GetAllPromptsProvider
1149
- > = GetAllPromptsProvider$inboundSchema;
1150
-
1151
- /**
1152
- * @internal
1153
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1154
- */
1155
- export namespace GetAllPromptsProvider$ {
1156
- /** @deprecated use `GetAllPromptsProvider$inboundSchema` instead. */
1157
- export const inboundSchema = GetAllPromptsProvider$inboundSchema;
1158
- /** @deprecated use `GetAllPromptsProvider$outboundSchema` instead. */
1159
- export const outboundSchema = GetAllPromptsProvider$outboundSchema;
1160
- }
1161
-
1162
- /** @internal */
1163
- export const GetAllPromptsRole$inboundSchema: z.ZodNativeEnum<
1164
- typeof GetAllPromptsRole
1165
- > = z.nativeEnum(GetAllPromptsRole);
1166
-
1167
- /** @internal */
1168
- export const GetAllPromptsRole$outboundSchema: z.ZodNativeEnum<
1169
- typeof GetAllPromptsRole
1170
- > = GetAllPromptsRole$inboundSchema;
1171
-
1172
- /**
1173
- * @internal
1174
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1175
- */
1176
- export namespace GetAllPromptsRole$ {
1177
- /** @deprecated use `GetAllPromptsRole$inboundSchema` instead. */
1178
- export const inboundSchema = GetAllPromptsRole$inboundSchema;
1179
- /** @deprecated use `GetAllPromptsRole$outboundSchema` instead. */
1180
- export const outboundSchema = GetAllPromptsRole$outboundSchema;
1181
- }
1182
-
1183
- /** @internal */
1184
- export const GetAllPrompts2PromptsType$inboundSchema: z.ZodNativeEnum<
1185
- typeof GetAllPrompts2PromptsType
1186
- > = z.nativeEnum(GetAllPrompts2PromptsType);
1187
-
1188
- /** @internal */
1189
- export const GetAllPrompts2PromptsType$outboundSchema: z.ZodNativeEnum<
1190
- typeof GetAllPrompts2PromptsType
1191
- > = GetAllPrompts2PromptsType$inboundSchema;
1192
-
1193
- /**
1194
- * @internal
1195
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1196
- */
1197
- export namespace GetAllPrompts2PromptsType$ {
1198
- /** @deprecated use `GetAllPrompts2PromptsType$inboundSchema` instead. */
1199
- export const inboundSchema = GetAllPrompts2PromptsType$inboundSchema;
1200
- /** @deprecated use `GetAllPrompts2PromptsType$outboundSchema` instead. */
1201
- export const outboundSchema = GetAllPrompts2PromptsType$outboundSchema;
1202
- }
1203
-
1204
- /** @internal */
1205
- export const GetAllPrompts2ImageUrl$inboundSchema: z.ZodType<
1206
- GetAllPrompts2ImageUrl,
1207
- z.ZodTypeDef,
1208
- unknown
1209
- > = z.object({
1210
- id: z.string().optional(),
1211
- url: z.string(),
1212
- detail: z.string().optional(),
1213
- });
1214
-
1215
- /** @internal */
1216
- export type GetAllPrompts2ImageUrl$Outbound = {
1217
- id?: string | undefined;
1218
- url: string;
1219
- detail?: string | undefined;
1220
- };
1221
-
1222
- /** @internal */
1223
- export const GetAllPrompts2ImageUrl$outboundSchema: z.ZodType<
1224
- GetAllPrompts2ImageUrl$Outbound,
1225
- z.ZodTypeDef,
1226
- GetAllPrompts2ImageUrl
1227
- > = z.object({
1228
- id: z.string().optional(),
1229
- url: z.string(),
1230
- detail: z.string().optional(),
1231
- });
1232
-
1233
- /**
1234
- * @internal
1235
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1236
- */
1237
- export namespace GetAllPrompts2ImageUrl$ {
1238
- /** @deprecated use `GetAllPrompts2ImageUrl$inboundSchema` instead. */
1239
- export const inboundSchema = GetAllPrompts2ImageUrl$inboundSchema;
1240
- /** @deprecated use `GetAllPrompts2ImageUrl$outboundSchema` instead. */
1241
- export const outboundSchema = GetAllPrompts2ImageUrl$outboundSchema;
1242
- /** @deprecated use `GetAllPrompts2ImageUrl$Outbound` instead. */
1243
- export type Outbound = GetAllPrompts2ImageUrl$Outbound;
1244
- }
1245
-
1246
- export function getAllPrompts2ImageUrlToJSON(
1247
- getAllPrompts2ImageUrl: GetAllPrompts2ImageUrl,
1248
- ): string {
1249
- return JSON.stringify(
1250
- GetAllPrompts2ImageUrl$outboundSchema.parse(getAllPrompts2ImageUrl),
1251
- );
1252
- }
1253
-
1254
- export function getAllPrompts2ImageUrlFromJSON(
1255
- jsonString: string,
1256
- ): SafeParseResult<GetAllPrompts2ImageUrl, SDKValidationError> {
1257
- return safeParse(
1258
- jsonString,
1259
- (x) => GetAllPrompts2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1260
- `Failed to parse 'GetAllPrompts2ImageUrl' from JSON`,
1261
- );
1262
- }
1263
-
1264
- /** @internal */
1265
- export const GetAllPrompts22$inboundSchema: z.ZodType<
1266
- GetAllPrompts22,
1267
- z.ZodTypeDef,
1268
- unknown
1269
- > = z.object({
1270
- type: GetAllPrompts2PromptsType$inboundSchema,
1271
- image_url: z.lazy(() => GetAllPrompts2ImageUrl$inboundSchema),
1272
- }).transform((v) => {
1273
- return remap$(v, {
1274
- "image_url": "imageUrl",
1275
- });
1276
- });
1277
-
1278
- /** @internal */
1279
- export type GetAllPrompts22$Outbound = {
1280
- type: string;
1281
- image_url: GetAllPrompts2ImageUrl$Outbound;
1282
- };
1283
-
1284
- /** @internal */
1285
- export const GetAllPrompts22$outboundSchema: z.ZodType<
1286
- GetAllPrompts22$Outbound,
1287
- z.ZodTypeDef,
1288
- GetAllPrompts22
1289
- > = z.object({
1290
- type: GetAllPrompts2PromptsType$outboundSchema,
1291
- imageUrl: z.lazy(() => GetAllPrompts2ImageUrl$outboundSchema),
1292
- }).transform((v) => {
1293
- return remap$(v, {
1294
- imageUrl: "image_url",
1295
- });
1296
- });
1297
-
1298
- /**
1299
- * @internal
1300
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1301
- */
1302
- export namespace GetAllPrompts22$ {
1303
- /** @deprecated use `GetAllPrompts22$inboundSchema` instead. */
1304
- export const inboundSchema = GetAllPrompts22$inboundSchema;
1305
- /** @deprecated use `GetAllPrompts22$outboundSchema` instead. */
1306
- export const outboundSchema = GetAllPrompts22$outboundSchema;
1307
- /** @deprecated use `GetAllPrompts22$Outbound` instead. */
1308
- export type Outbound = GetAllPrompts22$Outbound;
1309
- }
1310
-
1311
- export function getAllPrompts22ToJSON(
1312
- getAllPrompts22: GetAllPrompts22,
1313
- ): string {
1314
- return JSON.stringify(GetAllPrompts22$outboundSchema.parse(getAllPrompts22));
1315
- }
1316
-
1317
- export function getAllPrompts22FromJSON(
1318
- jsonString: string,
1319
- ): SafeParseResult<GetAllPrompts22, SDKValidationError> {
1320
- return safeParse(
1321
- jsonString,
1322
- (x) => GetAllPrompts22$inboundSchema.parse(JSON.parse(x)),
1323
- `Failed to parse 'GetAllPrompts22' from JSON`,
1324
- );
1325
- }
1326
-
1327
- /** @internal */
1328
- export const GetAllPrompts2Type$inboundSchema: z.ZodNativeEnum<
1329
- typeof GetAllPrompts2Type
1330
- > = z.nativeEnum(GetAllPrompts2Type);
1331
-
1332
- /** @internal */
1333
- export const GetAllPrompts2Type$outboundSchema: z.ZodNativeEnum<
1334
- typeof GetAllPrompts2Type
1335
- > = GetAllPrompts2Type$inboundSchema;
1336
-
1337
- /**
1338
- * @internal
1339
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1340
- */
1341
- export namespace GetAllPrompts2Type$ {
1342
- /** @deprecated use `GetAllPrompts2Type$inboundSchema` instead. */
1343
- export const inboundSchema = GetAllPrompts2Type$inboundSchema;
1344
- /** @deprecated use `GetAllPrompts2Type$outboundSchema` instead. */
1345
- export const outboundSchema = GetAllPrompts2Type$outboundSchema;
1346
- }
1347
-
1348
- /** @internal */
1349
- export const GetAllPrompts21$inboundSchema: z.ZodType<
1350
- GetAllPrompts21,
1351
- z.ZodTypeDef,
1352
- unknown
1353
- > = z.object({
1354
- type: GetAllPrompts2Type$inboundSchema,
1355
- text: z.string(),
1356
- });
1357
-
1358
- /** @internal */
1359
- export type GetAllPrompts21$Outbound = {
1360
- type: string;
1361
- text: string;
1362
- };
1363
-
1364
- /** @internal */
1365
- export const GetAllPrompts21$outboundSchema: z.ZodType<
1366
- GetAllPrompts21$Outbound,
1367
- z.ZodTypeDef,
1368
- GetAllPrompts21
1369
- > = z.object({
1370
- type: GetAllPrompts2Type$outboundSchema,
1371
- text: z.string(),
1372
- });
1373
-
1374
- /**
1375
- * @internal
1376
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1377
- */
1378
- export namespace GetAllPrompts21$ {
1379
- /** @deprecated use `GetAllPrompts21$inboundSchema` instead. */
1380
- export const inboundSchema = GetAllPrompts21$inboundSchema;
1381
- /** @deprecated use `GetAllPrompts21$outboundSchema` instead. */
1382
- export const outboundSchema = GetAllPrompts21$outboundSchema;
1383
- /** @deprecated use `GetAllPrompts21$Outbound` instead. */
1384
- export type Outbound = GetAllPrompts21$Outbound;
1385
- }
1386
-
1387
- export function getAllPrompts21ToJSON(
1388
- getAllPrompts21: GetAllPrompts21,
1389
- ): string {
1390
- return JSON.stringify(GetAllPrompts21$outboundSchema.parse(getAllPrompts21));
1391
- }
1392
-
1393
- export function getAllPrompts21FromJSON(
1394
- jsonString: string,
1395
- ): SafeParseResult<GetAllPrompts21, SDKValidationError> {
1396
- return safeParse(
1397
- jsonString,
1398
- (x) => GetAllPrompts21$inboundSchema.parse(JSON.parse(x)),
1399
- `Failed to parse 'GetAllPrompts21' from JSON`,
1400
- );
1401
- }
1402
-
1403
- /** @internal */
1404
- export const GetAllPromptsContent2$inboundSchema: z.ZodType<
1405
- GetAllPromptsContent2,
1406
- z.ZodTypeDef,
1407
- unknown
1408
- > = z.union([
1409
- z.lazy(() => GetAllPrompts21$inboundSchema),
1410
- z.lazy(() => GetAllPrompts22$inboundSchema),
1411
- ]);
1412
-
1413
- /** @internal */
1414
- export type GetAllPromptsContent2$Outbound =
1415
- | GetAllPrompts21$Outbound
1416
- | GetAllPrompts22$Outbound;
1417
-
1418
- /** @internal */
1419
- export const GetAllPromptsContent2$outboundSchema: z.ZodType<
1420
- GetAllPromptsContent2$Outbound,
1421
- z.ZodTypeDef,
1422
- GetAllPromptsContent2
1423
- > = z.union([
1424
- z.lazy(() => GetAllPrompts21$outboundSchema),
1425
- z.lazy(() => GetAllPrompts22$outboundSchema),
1426
- ]);
1427
-
1428
- /**
1429
- * @internal
1430
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1431
- */
1432
- export namespace GetAllPromptsContent2$ {
1433
- /** @deprecated use `GetAllPromptsContent2$inboundSchema` instead. */
1434
- export const inboundSchema = GetAllPromptsContent2$inboundSchema;
1435
- /** @deprecated use `GetAllPromptsContent2$outboundSchema` instead. */
1436
- export const outboundSchema = GetAllPromptsContent2$outboundSchema;
1437
- /** @deprecated use `GetAllPromptsContent2$Outbound` instead. */
1438
- export type Outbound = GetAllPromptsContent2$Outbound;
1439
- }
1440
-
1441
- export function getAllPromptsContent2ToJSON(
1442
- getAllPromptsContent2: GetAllPromptsContent2,
1443
- ): string {
1444
- return JSON.stringify(
1445
- GetAllPromptsContent2$outboundSchema.parse(getAllPromptsContent2),
1446
- );
1447
- }
1448
-
1449
- export function getAllPromptsContent2FromJSON(
1450
- jsonString: string,
1451
- ): SafeParseResult<GetAllPromptsContent2, SDKValidationError> {
1452
- return safeParse(
1453
- jsonString,
1454
- (x) => GetAllPromptsContent2$inboundSchema.parse(JSON.parse(x)),
1455
- `Failed to parse 'GetAllPromptsContent2' from JSON`,
1456
- );
1457
- }
1458
-
1459
- /** @internal */
1460
- export const GetAllPromptsContent$inboundSchema: z.ZodType<
1461
- GetAllPromptsContent,
1462
- z.ZodTypeDef,
1463
- unknown
1464
- > = z.union([
1465
- z.string(),
1466
- z.array(z.union([
1467
- z.lazy(() => GetAllPrompts21$inboundSchema),
1468
- z.lazy(() => GetAllPrompts22$inboundSchema),
1469
- ])),
1470
- ]);
1471
-
1472
- /** @internal */
1473
- export type GetAllPromptsContent$Outbound =
1474
- | string
1475
- | Array<GetAllPrompts21$Outbound | GetAllPrompts22$Outbound>;
1476
-
1477
- /** @internal */
1478
- export const GetAllPromptsContent$outboundSchema: z.ZodType<
1479
- GetAllPromptsContent$Outbound,
1480
- z.ZodTypeDef,
1481
- GetAllPromptsContent
1482
- > = z.union([
1483
- z.string(),
1484
- z.array(z.union([
1485
- z.lazy(() => GetAllPrompts21$outboundSchema),
1486
- z.lazy(() => GetAllPrompts22$outboundSchema),
1487
- ])),
1488
- ]);
1489
-
1490
- /**
1491
- * @internal
1492
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1493
- */
1494
- export namespace GetAllPromptsContent$ {
1495
- /** @deprecated use `GetAllPromptsContent$inboundSchema` instead. */
1496
- export const inboundSchema = GetAllPromptsContent$inboundSchema;
1497
- /** @deprecated use `GetAllPromptsContent$outboundSchema` instead. */
1498
- export const outboundSchema = GetAllPromptsContent$outboundSchema;
1499
- /** @deprecated use `GetAllPromptsContent$Outbound` instead. */
1500
- export type Outbound = GetAllPromptsContent$Outbound;
1501
- }
1502
-
1503
- export function getAllPromptsContentToJSON(
1504
- getAllPromptsContent: GetAllPromptsContent,
1505
- ): string {
1506
- return JSON.stringify(
1507
- GetAllPromptsContent$outboundSchema.parse(getAllPromptsContent),
1508
- );
1509
- }
1510
-
1511
- export function getAllPromptsContentFromJSON(
1512
- jsonString: string,
1513
- ): SafeParseResult<GetAllPromptsContent, SDKValidationError> {
1514
- return safeParse(
1515
- jsonString,
1516
- (x) => GetAllPromptsContent$inboundSchema.parse(JSON.parse(x)),
1517
- `Failed to parse 'GetAllPromptsContent' from JSON`,
1518
- );
1519
- }
1520
-
1521
- /** @internal */
1522
- export const GetAllPromptsPromptsType$inboundSchema: z.ZodNativeEnum<
1523
- typeof GetAllPromptsPromptsType
1524
- > = z.nativeEnum(GetAllPromptsPromptsType);
1525
-
1526
- /** @internal */
1527
- export const GetAllPromptsPromptsType$outboundSchema: z.ZodNativeEnum<
1528
- typeof GetAllPromptsPromptsType
1529
- > = GetAllPromptsPromptsType$inboundSchema;
1530
-
1531
- /**
1532
- * @internal
1533
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1534
- */
1535
- export namespace GetAllPromptsPromptsType$ {
1536
- /** @deprecated use `GetAllPromptsPromptsType$inboundSchema` instead. */
1537
- export const inboundSchema = GetAllPromptsPromptsType$inboundSchema;
1538
- /** @deprecated use `GetAllPromptsPromptsType$outboundSchema` instead. */
1539
- export const outboundSchema = GetAllPromptsPromptsType$outboundSchema;
1540
- }
1541
-
1542
- /** @internal */
1543
- export const GetAllPromptsFunction$inboundSchema: z.ZodType<
1544
- GetAllPromptsFunction,
1545
- z.ZodTypeDef,
1546
- unknown
1547
- > = z.object({
1548
- name: z.string(),
1549
- arguments: z.string(),
1550
- });
1551
-
1552
- /** @internal */
1553
- export type GetAllPromptsFunction$Outbound = {
1554
- name: string;
1555
- arguments: string;
1556
- };
1557
-
1558
- /** @internal */
1559
- export const GetAllPromptsFunction$outboundSchema: z.ZodType<
1560
- GetAllPromptsFunction$Outbound,
1561
- z.ZodTypeDef,
1562
- GetAllPromptsFunction
1563
- > = z.object({
1564
- name: z.string(),
1565
- arguments: z.string(),
1566
- });
1567
-
1568
- /**
1569
- * @internal
1570
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1571
- */
1572
- export namespace GetAllPromptsFunction$ {
1573
- /** @deprecated use `GetAllPromptsFunction$inboundSchema` instead. */
1574
- export const inboundSchema = GetAllPromptsFunction$inboundSchema;
1575
- /** @deprecated use `GetAllPromptsFunction$outboundSchema` instead. */
1576
- export const outboundSchema = GetAllPromptsFunction$outboundSchema;
1577
- /** @deprecated use `GetAllPromptsFunction$Outbound` instead. */
1578
- export type Outbound = GetAllPromptsFunction$Outbound;
1579
- }
1580
-
1581
- export function getAllPromptsFunctionToJSON(
1582
- getAllPromptsFunction: GetAllPromptsFunction,
1583
- ): string {
1584
- return JSON.stringify(
1585
- GetAllPromptsFunction$outboundSchema.parse(getAllPromptsFunction),
1586
- );
1587
- }
1588
-
1589
- export function getAllPromptsFunctionFromJSON(
1590
- jsonString: string,
1591
- ): SafeParseResult<GetAllPromptsFunction, SDKValidationError> {
1592
- return safeParse(
1593
- jsonString,
1594
- (x) => GetAllPromptsFunction$inboundSchema.parse(JSON.parse(x)),
1595
- `Failed to parse 'GetAllPromptsFunction' from JSON`,
1596
- );
1597
- }
1598
-
1599
- /** @internal */
1600
- export const GetAllPromptsToolCalls$inboundSchema: z.ZodType<
1601
- GetAllPromptsToolCalls,
1602
- z.ZodTypeDef,
1603
- unknown
1604
- > = z.object({
1605
- id: z.string().optional(),
1606
- index: z.number().optional(),
1607
- type: GetAllPromptsPromptsType$inboundSchema,
1608
- function: z.lazy(() => GetAllPromptsFunction$inboundSchema),
1609
- });
1610
-
1611
- /** @internal */
1612
- export type GetAllPromptsToolCalls$Outbound = {
1613
- id?: string | undefined;
1614
- index?: number | undefined;
1615
- type: string;
1616
- function: GetAllPromptsFunction$Outbound;
1617
- };
1618
-
1619
- /** @internal */
1620
- export const GetAllPromptsToolCalls$outboundSchema: z.ZodType<
1621
- GetAllPromptsToolCalls$Outbound,
1622
- z.ZodTypeDef,
1623
- GetAllPromptsToolCalls
1624
- > = z.object({
1625
- id: z.string().optional(),
1626
- index: z.number().optional(),
1627
- type: GetAllPromptsPromptsType$outboundSchema,
1628
- function: z.lazy(() => GetAllPromptsFunction$outboundSchema),
1629
- });
1630
-
1631
- /**
1632
- * @internal
1633
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1634
- */
1635
- export namespace GetAllPromptsToolCalls$ {
1636
- /** @deprecated use `GetAllPromptsToolCalls$inboundSchema` instead. */
1637
- export const inboundSchema = GetAllPromptsToolCalls$inboundSchema;
1638
- /** @deprecated use `GetAllPromptsToolCalls$outboundSchema` instead. */
1639
- export const outboundSchema = GetAllPromptsToolCalls$outboundSchema;
1640
- /** @deprecated use `GetAllPromptsToolCalls$Outbound` instead. */
1641
- export type Outbound = GetAllPromptsToolCalls$Outbound;
1642
- }
1643
-
1644
- export function getAllPromptsToolCallsToJSON(
1645
- getAllPromptsToolCalls: GetAllPromptsToolCalls,
1646
- ): string {
1647
- return JSON.stringify(
1648
- GetAllPromptsToolCalls$outboundSchema.parse(getAllPromptsToolCalls),
1649
- );
1650
- }
1651
-
1652
- export function getAllPromptsToolCallsFromJSON(
1653
- jsonString: string,
1654
- ): SafeParseResult<GetAllPromptsToolCalls, SDKValidationError> {
1655
- return safeParse(
1656
- jsonString,
1657
- (x) => GetAllPromptsToolCalls$inboundSchema.parse(JSON.parse(x)),
1658
- `Failed to parse 'GetAllPromptsToolCalls' from JSON`,
1659
- );
1660
- }
1661
-
1662
- /** @internal */
1663
- export const GetAllPromptsMessages$inboundSchema: z.ZodType<
1664
- GetAllPromptsMessages,
1665
- z.ZodTypeDef,
1666
- unknown
1667
- > = z.object({
1668
- role: GetAllPromptsRole$inboundSchema,
1669
- content: z.union([
1670
- z.string(),
1671
- z.array(z.union([
1672
- z.lazy(() => GetAllPrompts21$inboundSchema),
1673
- z.lazy(() => GetAllPrompts22$inboundSchema),
1674
- ])),
1675
- ]),
1676
- tool_calls: z.array(z.lazy(() => GetAllPromptsToolCalls$inboundSchema))
1677
- .optional(),
1678
- }).transform((v) => {
1679
- return remap$(v, {
1680
- "tool_calls": "toolCalls",
1681
- });
1682
- });
1683
-
1684
- /** @internal */
1685
- export type GetAllPromptsMessages$Outbound = {
1686
- role: string;
1687
- content: string | Array<GetAllPrompts21$Outbound | GetAllPrompts22$Outbound>;
1688
- tool_calls?: Array<GetAllPromptsToolCalls$Outbound> | undefined;
1689
- };
1690
-
1691
- /** @internal */
1692
- export const GetAllPromptsMessages$outboundSchema: z.ZodType<
1693
- GetAllPromptsMessages$Outbound,
1694
- z.ZodTypeDef,
1695
- GetAllPromptsMessages
1696
- > = z.object({
1697
- role: GetAllPromptsRole$outboundSchema,
1698
- content: z.union([
1699
- z.string(),
1700
- z.array(z.union([
1701
- z.lazy(() => GetAllPrompts21$outboundSchema),
1702
- z.lazy(() => GetAllPrompts22$outboundSchema),
1703
- ])),
1704
- ]),
1705
- toolCalls: z.array(z.lazy(() => GetAllPromptsToolCalls$outboundSchema))
1706
- .optional(),
1707
- }).transform((v) => {
1708
- return remap$(v, {
1709
- toolCalls: "tool_calls",
1710
- });
1711
- });
1712
-
1713
- /**
1714
- * @internal
1715
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1716
- */
1717
- export namespace GetAllPromptsMessages$ {
1718
- /** @deprecated use `GetAllPromptsMessages$inboundSchema` instead. */
1719
- export const inboundSchema = GetAllPromptsMessages$inboundSchema;
1720
- /** @deprecated use `GetAllPromptsMessages$outboundSchema` instead. */
1721
- export const outboundSchema = GetAllPromptsMessages$outboundSchema;
1722
- /** @deprecated use `GetAllPromptsMessages$Outbound` instead. */
1723
- export type Outbound = GetAllPromptsMessages$Outbound;
1724
- }
1725
-
1726
- export function getAllPromptsMessagesToJSON(
1727
- getAllPromptsMessages: GetAllPromptsMessages,
1728
- ): string {
1729
- return JSON.stringify(
1730
- GetAllPromptsMessages$outboundSchema.parse(getAllPromptsMessages),
1731
- );
1732
- }
1733
-
1734
- export function getAllPromptsMessagesFromJSON(
1735
- jsonString: string,
1736
- ): SafeParseResult<GetAllPromptsMessages, SDKValidationError> {
1737
- return safeParse(
1738
- jsonString,
1739
- (x) => GetAllPromptsMessages$inboundSchema.parse(JSON.parse(x)),
1740
- `Failed to parse 'GetAllPromptsMessages' from JSON`,
1741
- );
1742
- }
1743
-
1744
- /** @internal */
1745
- export const GetAllPromptsPromptConfig$inboundSchema: z.ZodType<
1746
- GetAllPromptsPromptConfig,
1747
- z.ZodTypeDef,
1748
- unknown
1749
- > = z.object({
1750
- stream: z.boolean().optional(),
1751
- model: z.string().optional(),
1752
- model_db_id: z.string().optional(),
1753
- model_type: GetAllPromptsModelType$inboundSchema.optional(),
1754
- model_parameters: z.lazy(() => GetAllPromptsModelParameters$inboundSchema)
1755
- .optional(),
1756
- provider: GetAllPromptsProvider$inboundSchema.optional(),
1757
- integration_id: z.nullable(z.string()).optional(),
1758
- version: z.string().optional(),
1759
- messages: z.array(z.lazy(() => GetAllPromptsMessages$inboundSchema)),
1760
- }).transform((v) => {
1761
- return remap$(v, {
1762
- "model_db_id": "modelDbId",
1763
- "model_type": "modelType",
1764
- "model_parameters": "modelParameters",
1765
- "integration_id": "integrationId",
1766
- });
1767
- });
1768
-
1769
- /** @internal */
1770
- export type GetAllPromptsPromptConfig$Outbound = {
1771
- stream?: boolean | undefined;
1772
- model?: string | undefined;
1773
- model_db_id?: string | undefined;
1774
- model_type?: string | undefined;
1775
- model_parameters?: GetAllPromptsModelParameters$Outbound | undefined;
1776
- provider?: string | undefined;
1777
- integration_id?: string | null | undefined;
1778
- version?: string | undefined;
1779
- messages: Array<GetAllPromptsMessages$Outbound>;
1780
- };
1781
-
1782
- /** @internal */
1783
- export const GetAllPromptsPromptConfig$outboundSchema: z.ZodType<
1784
- GetAllPromptsPromptConfig$Outbound,
1785
- z.ZodTypeDef,
1786
- GetAllPromptsPromptConfig
1787
- > = z.object({
1788
- stream: z.boolean().optional(),
1789
- model: z.string().optional(),
1790
- modelDbId: z.string().optional(),
1791
- modelType: GetAllPromptsModelType$outboundSchema.optional(),
1792
- modelParameters: z.lazy(() => GetAllPromptsModelParameters$outboundSchema)
1793
- .optional(),
1794
- provider: GetAllPromptsProvider$outboundSchema.optional(),
1795
- integrationId: z.nullable(z.string()).optional(),
1796
- version: z.string().optional(),
1797
- messages: z.array(z.lazy(() => GetAllPromptsMessages$outboundSchema)),
1798
- }).transform((v) => {
1799
- return remap$(v, {
1800
- modelDbId: "model_db_id",
1801
- modelType: "model_type",
1802
- modelParameters: "model_parameters",
1803
- integrationId: "integration_id",
1804
- });
1805
- });
1806
-
1807
- /**
1808
- * @internal
1809
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1810
- */
1811
- export namespace GetAllPromptsPromptConfig$ {
1812
- /** @deprecated use `GetAllPromptsPromptConfig$inboundSchema` instead. */
1813
- export const inboundSchema = GetAllPromptsPromptConfig$inboundSchema;
1814
- /** @deprecated use `GetAllPromptsPromptConfig$outboundSchema` instead. */
1815
- export const outboundSchema = GetAllPromptsPromptConfig$outboundSchema;
1816
- /** @deprecated use `GetAllPromptsPromptConfig$Outbound` instead. */
1817
- export type Outbound = GetAllPromptsPromptConfig$Outbound;
1818
- }
1819
-
1820
- export function getAllPromptsPromptConfigToJSON(
1821
- getAllPromptsPromptConfig: GetAllPromptsPromptConfig,
1822
- ): string {
1823
- return JSON.stringify(
1824
- GetAllPromptsPromptConfig$outboundSchema.parse(getAllPromptsPromptConfig),
1825
- );
1826
- }
1827
-
1828
- export function getAllPromptsPromptConfigFromJSON(
1829
- jsonString: string,
1830
- ): SafeParseResult<GetAllPromptsPromptConfig, SDKValidationError> {
1831
- return safeParse(
1832
- jsonString,
1833
- (x) => GetAllPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
1834
- `Failed to parse 'GetAllPromptsPromptConfig' from JSON`,
1835
- );
1836
- }
1837
-
1838
- /** @internal */
1839
- export const GetAllPromptsUseCases$inboundSchema: z.ZodNativeEnum<
1840
- typeof GetAllPromptsUseCases
1841
- > = z.nativeEnum(GetAllPromptsUseCases);
1842
-
1843
- /** @internal */
1844
- export const GetAllPromptsUseCases$outboundSchema: z.ZodNativeEnum<
1845
- typeof GetAllPromptsUseCases
1846
- > = GetAllPromptsUseCases$inboundSchema;
1847
-
1848
- /**
1849
- * @internal
1850
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1851
- */
1852
- export namespace GetAllPromptsUseCases$ {
1853
- /** @deprecated use `GetAllPromptsUseCases$inboundSchema` instead. */
1854
- export const inboundSchema = GetAllPromptsUseCases$inboundSchema;
1855
- /** @deprecated use `GetAllPromptsUseCases$outboundSchema` instead. */
1856
- export const outboundSchema = GetAllPromptsUseCases$outboundSchema;
1857
- }
1858
-
1859
- /** @internal */
1860
- export const GetAllPromptsLanguage$inboundSchema: z.ZodNativeEnum<
1861
- typeof GetAllPromptsLanguage
1862
- > = z.nativeEnum(GetAllPromptsLanguage);
1863
-
1864
- /** @internal */
1865
- export const GetAllPromptsLanguage$outboundSchema: z.ZodNativeEnum<
1866
- typeof GetAllPromptsLanguage
1867
- > = GetAllPromptsLanguage$inboundSchema;
1868
-
1869
- /**
1870
- * @internal
1871
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1872
- */
1873
- export namespace GetAllPromptsLanguage$ {
1874
- /** @deprecated use `GetAllPromptsLanguage$inboundSchema` instead. */
1875
- export const inboundSchema = GetAllPromptsLanguage$inboundSchema;
1876
- /** @deprecated use `GetAllPromptsLanguage$outboundSchema` instead. */
1877
- export const outboundSchema = GetAllPromptsLanguage$outboundSchema;
1878
- }
1879
-
1880
- /** @internal */
1881
- export const GetAllPromptsMetadata$inboundSchema: z.ZodType<
1882
- GetAllPromptsMetadata,
1883
- z.ZodTypeDef,
1884
- unknown
1885
- > = z.object({
1886
- use_cases: z.array(GetAllPromptsUseCases$inboundSchema).optional(),
1887
- language: GetAllPromptsLanguage$inboundSchema.optional(),
1888
- }).transform((v) => {
1889
- return remap$(v, {
1890
- "use_cases": "useCases",
1891
- });
1892
- });
1893
-
1894
- /** @internal */
1895
- export type GetAllPromptsMetadata$Outbound = {
1896
- use_cases?: Array<string> | undefined;
1897
- language?: string | undefined;
1898
- };
1899
-
1900
- /** @internal */
1901
- export const GetAllPromptsMetadata$outboundSchema: z.ZodType<
1902
- GetAllPromptsMetadata$Outbound,
1903
- z.ZodTypeDef,
1904
- GetAllPromptsMetadata
1905
- > = z.object({
1906
- useCases: z.array(GetAllPromptsUseCases$outboundSchema).optional(),
1907
- language: GetAllPromptsLanguage$outboundSchema.optional(),
1908
- }).transform((v) => {
1909
- return remap$(v, {
1910
- useCases: "use_cases",
1911
- });
1912
- });
1913
-
1914
- /**
1915
- * @internal
1916
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1917
- */
1918
- export namespace GetAllPromptsMetadata$ {
1919
- /** @deprecated use `GetAllPromptsMetadata$inboundSchema` instead. */
1920
- export const inboundSchema = GetAllPromptsMetadata$inboundSchema;
1921
- /** @deprecated use `GetAllPromptsMetadata$outboundSchema` instead. */
1922
- export const outboundSchema = GetAllPromptsMetadata$outboundSchema;
1923
- /** @deprecated use `GetAllPromptsMetadata$Outbound` instead. */
1924
- export type Outbound = GetAllPromptsMetadata$Outbound;
1925
- }
1926
-
1927
- export function getAllPromptsMetadataToJSON(
1928
- getAllPromptsMetadata: GetAllPromptsMetadata,
1929
- ): string {
1930
- return JSON.stringify(
1931
- GetAllPromptsMetadata$outboundSchema.parse(getAllPromptsMetadata),
1932
- );
1933
- }
1934
-
1935
- export function getAllPromptsMetadataFromJSON(
1936
- jsonString: string,
1937
- ): SafeParseResult<GetAllPromptsMetadata, SDKValidationError> {
1938
- return safeParse(
1939
- jsonString,
1940
- (x) => GetAllPromptsMetadata$inboundSchema.parse(JSON.parse(x)),
1941
- `Failed to parse 'GetAllPromptsMetadata' from JSON`,
1942
- );
1943
- }
1944
-
1945
- /** @internal */
1946
- export const GetAllPromptsData$inboundSchema: z.ZodType<
1947
- GetAllPromptsData,
1948
- z.ZodTypeDef,
1949
- unknown
1950
- > = z.object({
1951
- _id: z.string(),
1952
- type: GetAllPromptsType$inboundSchema,
1953
- owner: z.string(),
1954
- domain_id: z.string(),
1955
- created: z.string(),
1956
- updated: z.string(),
1957
- created_by_id: z.string().optional(),
1958
- updated_by_id: z.string().optional(),
1959
- display_name: z.string(),
1960
- description: z.nullable(z.string()).optional(),
1961
- prompt_config: z.lazy(() => GetAllPromptsPromptConfig$inboundSchema),
1962
- metadata: z.lazy(() => GetAllPromptsMetadata$inboundSchema).optional(),
1963
- }).transform((v) => {
1964
- return remap$(v, {
1965
- "_id": "id",
1966
- "domain_id": "domainId",
1967
- "created_by_id": "createdById",
1968
- "updated_by_id": "updatedById",
1969
- "display_name": "displayName",
1970
- "prompt_config": "promptConfig",
1971
- });
1972
- });
1973
-
1974
- /** @internal */
1975
- export type GetAllPromptsData$Outbound = {
1976
- _id: string;
1977
- type: string;
1978
- owner: string;
1979
- domain_id: string;
1980
- created: string;
1981
- updated: string;
1982
- created_by_id?: string | undefined;
1983
- updated_by_id?: string | undefined;
1984
- display_name: string;
1985
- description?: string | null | undefined;
1986
- prompt_config: GetAllPromptsPromptConfig$Outbound;
1987
- metadata?: GetAllPromptsMetadata$Outbound | undefined;
1988
- };
1989
-
1990
- /** @internal */
1991
- export const GetAllPromptsData$outboundSchema: z.ZodType<
1992
- GetAllPromptsData$Outbound,
1993
- z.ZodTypeDef,
1994
- GetAllPromptsData
1995
- > = z.object({
1996
- id: z.string(),
1997
- type: GetAllPromptsType$outboundSchema,
1998
- owner: z.string(),
1999
- domainId: z.string(),
2000
- created: z.string(),
2001
- updated: z.string(),
2002
- createdById: z.string().optional(),
2003
- updatedById: z.string().optional(),
2004
- displayName: z.string(),
2005
- description: z.nullable(z.string()).optional(),
2006
- promptConfig: z.lazy(() => GetAllPromptsPromptConfig$outboundSchema),
2007
- metadata: z.lazy(() => GetAllPromptsMetadata$outboundSchema).optional(),
2008
- }).transform((v) => {
2009
- return remap$(v, {
2010
- id: "_id",
2011
- domainId: "domain_id",
2012
- createdById: "created_by_id",
2013
- updatedById: "updated_by_id",
2014
- displayName: "display_name",
2015
- promptConfig: "prompt_config",
2016
- });
2017
- });
2018
-
2019
- /**
2020
- * @internal
2021
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2022
- */
2023
- export namespace GetAllPromptsData$ {
2024
- /** @deprecated use `GetAllPromptsData$inboundSchema` instead. */
2025
- export const inboundSchema = GetAllPromptsData$inboundSchema;
2026
- /** @deprecated use `GetAllPromptsData$outboundSchema` instead. */
2027
- export const outboundSchema = GetAllPromptsData$outboundSchema;
2028
- /** @deprecated use `GetAllPromptsData$Outbound` instead. */
2029
- export type Outbound = GetAllPromptsData$Outbound;
2030
- }
2031
-
2032
- export function getAllPromptsDataToJSON(
2033
- getAllPromptsData: GetAllPromptsData,
2034
- ): string {
2035
- return JSON.stringify(
2036
- GetAllPromptsData$outboundSchema.parse(getAllPromptsData),
2037
- );
2038
- }
2039
-
2040
- export function getAllPromptsDataFromJSON(
2041
- jsonString: string,
2042
- ): SafeParseResult<GetAllPromptsData, SDKValidationError> {
2043
- return safeParse(
2044
- jsonString,
2045
- (x) => GetAllPromptsData$inboundSchema.parse(JSON.parse(x)),
2046
- `Failed to parse 'GetAllPromptsData' from JSON`,
2047
- );
2048
- }
2049
-
2050
- /** @internal */
2051
- export const GetAllPromptsResponseBody$inboundSchema: z.ZodType<
2052
- GetAllPromptsResponseBody,
2053
- z.ZodTypeDef,
2054
- unknown
2055
- > = z.object({
2056
- object: GetAllPromptsObject$inboundSchema,
2057
- data: z.array(z.lazy(() => GetAllPromptsData$inboundSchema)),
2058
- has_more: z.boolean(),
2059
- }).transform((v) => {
2060
- return remap$(v, {
2061
- "has_more": "hasMore",
2062
- });
2063
- });
2064
-
2065
- /** @internal */
2066
- export type GetAllPromptsResponseBody$Outbound = {
2067
- object: string;
2068
- data: Array<GetAllPromptsData$Outbound>;
2069
- has_more: boolean;
2070
- };
2071
-
2072
- /** @internal */
2073
- export const GetAllPromptsResponseBody$outboundSchema: z.ZodType<
2074
- GetAllPromptsResponseBody$Outbound,
2075
- z.ZodTypeDef,
2076
- GetAllPromptsResponseBody
2077
- > = z.object({
2078
- object: GetAllPromptsObject$outboundSchema,
2079
- data: z.array(z.lazy(() => GetAllPromptsData$outboundSchema)),
2080
- hasMore: z.boolean(),
2081
- }).transform((v) => {
2082
- return remap$(v, {
2083
- hasMore: "has_more",
2084
- });
2085
- });
2086
-
2087
- /**
2088
- * @internal
2089
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2090
- */
2091
- export namespace GetAllPromptsResponseBody$ {
2092
- /** @deprecated use `GetAllPromptsResponseBody$inboundSchema` instead. */
2093
- export const inboundSchema = GetAllPromptsResponseBody$inboundSchema;
2094
- /** @deprecated use `GetAllPromptsResponseBody$outboundSchema` instead. */
2095
- export const outboundSchema = GetAllPromptsResponseBody$outboundSchema;
2096
- /** @deprecated use `GetAllPromptsResponseBody$Outbound` instead. */
2097
- export type Outbound = GetAllPromptsResponseBody$Outbound;
2098
- }
2099
-
2100
- export function getAllPromptsResponseBodyToJSON(
2101
- getAllPromptsResponseBody: GetAllPromptsResponseBody,
2102
- ): string {
2103
- return JSON.stringify(
2104
- GetAllPromptsResponseBody$outboundSchema.parse(getAllPromptsResponseBody),
2105
- );
2106
- }
2107
-
2108
- export function getAllPromptsResponseBodyFromJSON(
2109
- jsonString: string,
2110
- ): SafeParseResult<GetAllPromptsResponseBody, SDKValidationError> {
2111
- return safeParse(
2112
- jsonString,
2113
- (x) => GetAllPromptsResponseBody$inboundSchema.parse(JSON.parse(x)),
2114
- `Failed to parse 'GetAllPromptsResponseBody' from JSON`,
2115
- );
2116
- }