@orq-ai/node 4.0.0-rc.44 → 4.0.0-rc.46

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 (177) hide show
  1. package/bin/mcp-server.js +727 -1532
  2. package/bin/mcp-server.js.map +56 -56
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createagent.d.ts +88 -8
  10. package/models/operations/createagent.d.ts.map +1 -1
  11. package/models/operations/createagent.js +85 -18
  12. package/models/operations/createagent.js.map +1 -1
  13. package/models/operations/createbudget.js +2 -2
  14. package/models/operations/createcontact.js +2 -2
  15. package/models/operations/createdataset.js +2 -2
  16. package/models/operations/createdatasetitem.js +8 -8
  17. package/models/operations/createdatasource.js +2 -2
  18. package/models/operations/createeval.d.ts +106 -106
  19. package/models/operations/createeval.d.ts.map +1 -1
  20. package/models/operations/createeval.js +242 -234
  21. package/models/operations/createeval.js.map +1 -1
  22. package/models/operations/creatememorystore.d.ts +10 -391
  23. package/models/operations/creatememorystore.d.ts.map +1 -1
  24. package/models/operations/creatememorystore.js +5 -565
  25. package/models/operations/creatememorystore.js.map +1 -1
  26. package/models/operations/createprompt.d.ts +40 -0
  27. package/models/operations/createprompt.d.ts.map +1 -1
  28. package/models/operations/createprompt.js +33 -7
  29. package/models/operations/createprompt.js.map +1 -1
  30. package/models/operations/createtool.js +12 -12
  31. package/models/operations/deploymentgetconfig.d.ts +20 -0
  32. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  33. package/models/operations/deploymentgetconfig.js +22 -8
  34. package/models/operations/deploymentgetconfig.js.map +1 -1
  35. package/models/operations/deployments.d.ts +20 -0
  36. package/models/operations/deployments.d.ts.map +1 -1
  37. package/models/operations/deployments.js +16 -3
  38. package/models/operations/deployments.js.map +1 -1
  39. package/models/operations/duplicateagent.d.ts +40 -0
  40. package/models/operations/duplicateagent.d.ts.map +1 -1
  41. package/models/operations/duplicateagent.js +36 -3
  42. package/models/operations/duplicateagent.js.map +1 -1
  43. package/models/operations/duplicatetool.js +12 -12
  44. package/models/operations/fileget.js +2 -2
  45. package/models/operations/filelist.js +2 -2
  46. package/models/operations/fileupload.js +2 -2
  47. package/models/operations/getagent.d.ts +40 -0
  48. package/models/operations/getagent.d.ts.map +1 -1
  49. package/models/operations/getagent.js +36 -3
  50. package/models/operations/getagent.js.map +1 -1
  51. package/models/operations/getallmemorystores.d.ts +5 -195
  52. package/models/operations/getallmemorystores.d.ts.map +1 -1
  53. package/models/operations/getallmemorystores.js +3 -273
  54. package/models/operations/getallmemorystores.js.map +1 -1
  55. package/models/operations/getallprompts.d.ts +20 -0
  56. package/models/operations/getallprompts.d.ts.map +1 -1
  57. package/models/operations/getallprompts.js +16 -3
  58. package/models/operations/getallprompts.js.map +1 -1
  59. package/models/operations/getalltools.js +12 -12
  60. package/models/operations/getbudget.js +2 -2
  61. package/models/operations/getevals.js +28 -28
  62. package/models/operations/getoneprompt.d.ts +20 -0
  63. package/models/operations/getoneprompt.d.ts.map +1 -1
  64. package/models/operations/getoneprompt.js +16 -3
  65. package/models/operations/getoneprompt.js.map +1 -1
  66. package/models/operations/getpromptversion.d.ts +20 -0
  67. package/models/operations/getpromptversion.d.ts.map +1 -1
  68. package/models/operations/getpromptversion.js +16 -2
  69. package/models/operations/getpromptversion.js.map +1 -1
  70. package/models/operations/listagents.d.ts +40 -0
  71. package/models/operations/listagents.d.ts.map +1 -1
  72. package/models/operations/listagents.js +37 -4
  73. package/models/operations/listagents.js.map +1 -1
  74. package/models/operations/listbudgets.js +2 -2
  75. package/models/operations/listcontacts.js +2 -2
  76. package/models/operations/listdatasetdatapoints.js +8 -8
  77. package/models/operations/listdatasets.js +2 -2
  78. package/models/operations/listdatasources.d.ts +5 -5
  79. package/models/operations/listdatasources.d.ts.map +1 -1
  80. package/models/operations/listdatasources.js +4 -4
  81. package/models/operations/listdatasources.js.map +1 -1
  82. package/models/operations/listpromptversions.d.ts +20 -0
  83. package/models/operations/listpromptversions.d.ts.map +1 -1
  84. package/models/operations/listpromptversions.js +16 -3
  85. package/models/operations/listpromptversions.js.map +1 -1
  86. package/models/operations/retrievecontact.js +2 -2
  87. package/models/operations/retrievedatapoint.js +8 -8
  88. package/models/operations/retrievedataset.js +2 -2
  89. package/models/operations/retrievedatasource.js +2 -2
  90. package/models/operations/retrievememorystore.d.ts +5 -196
  91. package/models/operations/retrievememorystore.d.ts.map +1 -1
  92. package/models/operations/retrievememorystore.js +3 -273
  93. package/models/operations/retrievememorystore.js.map +1 -1
  94. package/models/operations/retrievetool.js +12 -12
  95. package/models/operations/runagent.d.ts +40 -0
  96. package/models/operations/runagent.d.ts.map +1 -1
  97. package/models/operations/runagent.js +45 -10
  98. package/models/operations/runagent.js.map +1 -1
  99. package/models/operations/streamrunagent.d.ts +40 -0
  100. package/models/operations/streamrunagent.d.ts.map +1 -1
  101. package/models/operations/streamrunagent.js +44 -9
  102. package/models/operations/streamrunagent.js.map +1 -1
  103. package/models/operations/syncmcptool.js +12 -12
  104. package/models/operations/updateagent.d.ts +80 -0
  105. package/models/operations/updateagent.d.ts.map +1 -1
  106. package/models/operations/updateagent.js +73 -8
  107. package/models/operations/updateagent.js.map +1 -1
  108. package/models/operations/updatebudget.js +2 -2
  109. package/models/operations/updatecontact.js +2 -2
  110. package/models/operations/updatedatapoint.js +8 -8
  111. package/models/operations/updatedataset.js +2 -2
  112. package/models/operations/updatedatasource.js +2 -2
  113. package/models/operations/updateeval.js +28 -28
  114. package/models/operations/updatememorystore.d.ts +5 -195
  115. package/models/operations/updatememorystore.d.ts.map +1 -1
  116. package/models/operations/updatememorystore.js +3 -290
  117. package/models/operations/updatememorystore.js.map +1 -1
  118. package/models/operations/updateprompt.d.ts +40 -0
  119. package/models/operations/updateprompt.d.ts.map +1 -1
  120. package/models/operations/updateprompt.js +33 -7
  121. package/models/operations/updateprompt.js.map +1 -1
  122. package/models/operations/updatetool.js +14 -14
  123. package/package.json +1 -1
  124. package/src/lib/config.ts +2 -2
  125. package/src/mcp-server/mcp-server.ts +1 -1
  126. package/src/mcp-server/server.ts +1 -1
  127. package/src/models/operations/createagent.ts +166 -39
  128. package/src/models/operations/createbudget.ts +2 -2
  129. package/src/models/operations/createcontact.ts +2 -2
  130. package/src/models/operations/createdataset.ts +2 -2
  131. package/src/models/operations/createdatasetitem.ts +8 -8
  132. package/src/models/operations/createdatasource.ts +2 -2
  133. package/src/models/operations/createeval.ts +423 -524
  134. package/src/models/operations/creatememorystore.ts +14 -1094
  135. package/src/models/operations/createprompt.ts +60 -0
  136. package/src/models/operations/createtool.ts +12 -12
  137. package/src/models/operations/deploymentgetconfig.ts +30 -0
  138. package/src/models/operations/deployments.ts +30 -0
  139. package/src/models/operations/duplicateagent.ts +72 -0
  140. package/src/models/operations/duplicatetool.ts +12 -12
  141. package/src/models/operations/fileget.ts +2 -2
  142. package/src/models/operations/filelist.ts +2 -2
  143. package/src/models/operations/fileupload.ts +2 -2
  144. package/src/models/operations/getagent.ts +65 -0
  145. package/src/models/operations/getallmemorystores.ts +7 -595
  146. package/src/models/operations/getallprompts.ts +30 -0
  147. package/src/models/operations/getalltools.ts +12 -12
  148. package/src/models/operations/getbudget.ts +2 -2
  149. package/src/models/operations/getevals.ts +28 -28
  150. package/src/models/operations/getoneprompt.ts +30 -0
  151. package/src/models/operations/getpromptversion.ts +30 -0
  152. package/src/models/operations/listagents.ts +68 -0
  153. package/src/models/operations/listbudgets.ts +2 -2
  154. package/src/models/operations/listcontacts.ts +2 -2
  155. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  156. package/src/models/operations/listdatasets.ts +2 -2
  157. package/src/models/operations/listdatasources.ts +9 -9
  158. package/src/models/operations/listpromptversions.ts +30 -0
  159. package/src/models/operations/retrievecontact.ts +2 -2
  160. package/src/models/operations/retrievedatapoint.ts +8 -8
  161. package/src/models/operations/retrievedataset.ts +2 -2
  162. package/src/models/operations/retrievedatasource.ts +2 -2
  163. package/src/models/operations/retrievememorystore.ts +7 -596
  164. package/src/models/operations/retrievetool.ts +12 -12
  165. package/src/models/operations/runagent.ts +71 -2
  166. package/src/models/operations/streamrunagent.ts +76 -2
  167. package/src/models/operations/syncmcptool.ts +12 -12
  168. package/src/models/operations/updateagent.ts +141 -0
  169. package/src/models/operations/updatebudget.ts +2 -2
  170. package/src/models/operations/updatecontact.ts +2 -2
  171. package/src/models/operations/updatedatapoint.ts +8 -8
  172. package/src/models/operations/updatedataset.ts +2 -2
  173. package/src/models/operations/updatedatasource.ts +2 -2
  174. package/src/models/operations/updateeval.ts +28 -28
  175. package/src/models/operations/updatememorystore.ts +7 -527
  176. package/src/models/operations/updateprompt.ts +60 -0
  177. package/src/models/operations/updatetool.ts +14 -14
@@ -5,175 +5,14 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
10
 
12
- export const TwentyThree = {
13
- JinaJinaEmbeddingsV3: "jina/jina-embeddings-v3",
14
- } as const;
15
- export type TwentyThree = ClosedEnum<typeof TwentyThree>;
16
-
17
- export const TwentyTwo = {
18
- JinaJinaClipV2: "jina/jina-clip-v2",
19
- } as const;
20
- export type TwentyTwo = ClosedEnum<typeof TwentyTwo>;
21
-
22
- export const TwentyOne = {
23
- JinaJinaEmbeddingsV2BaseDe: "jina/jina-embeddings-v2-base-de",
24
- } as const;
25
- export type TwentyOne = ClosedEnum<typeof TwentyOne>;
26
-
27
- export const Twenty = {
28
- JinaJinaEmbeddingsV2BaseCode: "jina/jina-embeddings-v2-base-code",
29
- } as const;
30
- export type Twenty = ClosedEnum<typeof Twenty>;
31
-
32
- export const Nineteen = {
33
- JinaJinaEmbeddingsV2BaseZh: "jina/jina-embeddings-v2-base-zh",
34
- } as const;
35
- export type Nineteen = ClosedEnum<typeof Nineteen>;
36
-
37
- export const Eighteen = {
38
- JinaJinaEmbeddingsV2BaseEn: "jina/jina-embeddings-v2-base-en",
39
- } as const;
40
- export type Eighteen = ClosedEnum<typeof Eighteen>;
41
-
42
- export const Seventeen = {
43
- JinaJinaEmbeddingsV2BaseEs: "jina/jina-embeddings-v2-base-es",
44
- } as const;
45
- export type Seventeen = ClosedEnum<typeof Seventeen>;
46
-
47
- export const Sixteen = {
48
- JinaJinaClipV1: "jina/jina-clip-v1",
49
- } as const;
50
- export type Sixteen = ClosedEnum<typeof Sixteen>;
51
-
52
- export const Fifteen = {
53
- MistralMistralEmbed: "mistral/mistral-embed",
54
- } as const;
55
- export type Fifteen = ClosedEnum<typeof Fifteen>;
56
-
57
- export const Fourteen = {
58
- GoogleAiTextEmbedding004: "google-ai/text-embedding-004",
59
- } as const;
60
- export type Fourteen = ClosedEnum<typeof Fourteen>;
61
-
62
- export const Thirteen = {
63
- GoogleMultimodalembeddingAt001: "google/multimodalembedding@001",
64
- } as const;
65
- export type Thirteen = ClosedEnum<typeof Thirteen>;
66
-
67
- export const Twelve = {
68
- GoogleTextMultilingualEmbedding002: "google/text-multilingual-embedding-002",
69
- } as const;
70
- export type Twelve = ClosedEnum<typeof Twelve>;
71
-
72
- export const Eleven = {
73
- GoogleGeminiEmbedding001: "google/gemini-embedding-001",
74
- } as const;
75
- export type Eleven = ClosedEnum<typeof Eleven>;
76
-
77
- export const Ten = {
78
- OpenaiTextEmbeddingAda002: "openai/text-embedding-ada-002",
79
- } as const;
80
- export type Ten = ClosedEnum<typeof Ten>;
81
-
82
- export const Nine = {
83
- OpenaiTextEmbedding3Small: "openai/text-embedding-3-small",
84
- } as const;
85
- export type Nine = ClosedEnum<typeof Nine>;
86
-
87
- export const Eight = {
88
- OpenaiTextEmbedding3Large: "openai/text-embedding-3-large",
89
- } as const;
90
- export type Eight = ClosedEnum<typeof Eight>;
91
-
92
- export const Seven = {
93
- AzureTextEmbedding3Small: "azure/text-embedding-3-small",
94
- } as const;
95
- export type Seven = ClosedEnum<typeof Seven>;
96
-
97
- export const Model6 = {
98
- AzureTextEmbeddingAda002: "azure/text-embedding-ada-002",
99
- } as const;
100
- export type Model6 = ClosedEnum<typeof Model6>;
101
-
102
- export const Model5 = {
103
- CohereEmbedV40: "cohere/embed-v4.0",
104
- } as const;
105
- export type Model5 = ClosedEnum<typeof Model5>;
106
-
107
- export const Model4 = {
108
- CohereEmbedEnglishV30: "cohere/embed-english-v3.0",
109
- } as const;
110
- export type Model4 = ClosedEnum<typeof Model4>;
111
-
112
- export const Model3 = {
113
- CohereEmbedEnglishLightV30: "cohere/embed-english-light-v3.0",
114
- } as const;
115
- export type Model3 = ClosedEnum<typeof Model3>;
116
-
117
- export const Model2 = {
118
- CohereEmbedMultilingualLightV30: "cohere/embed-multilingual-light-v3.0",
119
- } as const;
120
- export type Model2 = ClosedEnum<typeof Model2>;
121
-
122
- export const Model1 = {
123
- CohereEmbedMultilingualV30: "cohere/embed-multilingual-v3.0",
124
- } as const;
125
- export type Model1 = ClosedEnum<typeof Model1>;
126
-
127
- export type Model =
128
- | Model1
129
- | Model2
130
- | Model3
131
- | Model4
132
- | Model5
133
- | Model6
134
- | Seven
135
- | Eight
136
- | Nine
137
- | Ten
138
- | Eleven
139
- | Twelve
140
- | Thirteen
141
- | Fourteen
142
- | Fifteen
143
- | Sixteen
144
- | Seventeen
145
- | Eighteen
146
- | Nineteen
147
- | Twenty
148
- | TwentyOne
149
- | TwentyTwo
150
- | TwentyThree;
151
-
152
11
  export type EmbeddingConfig = {
153
- model:
154
- | Model1
155
- | Model2
156
- | Model3
157
- | Model4
158
- | Model5
159
- | Model6
160
- | Seven
161
- | Eight
162
- | Nine
163
- | Ten
164
- | Eleven
165
- | Twelve
166
- | Thirteen
167
- | Fourteen
168
- | Fifteen
169
- | Sixteen
170
- | Seventeen
171
- | Eighteen
172
- | Nineteen
173
- | Twenty
174
- | TwentyOne
175
- | TwentyTwo
176
- | TwentyThree;
12
+ /**
13
+ * The embeddings model to use for the knowledge base in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model will be used to embed the chunks when they are added to the knowledge base. Refer to the (Supported models)[/docs/proxy/supported-models] to browse available models.
14
+ */
15
+ model: string;
177
16
  };
178
17
 
179
18
  export type CreateMemoryStoreRequestBody = {
@@ -202,217 +41,11 @@ export type CreateMemoryStoreRequestBody = {
202
41
  path: string;
203
42
  };
204
43
 
205
- export const CreateMemoryStoreModel23 = {
206
- JinaJinaEmbeddingsV3: "jina/jina-embeddings-v3",
207
- } as const;
208
- export type CreateMemoryStoreModel23 = ClosedEnum<
209
- typeof CreateMemoryStoreModel23
210
- >;
211
-
212
- export const CreateMemoryStoreModel22 = {
213
- JinaJinaClipV2: "jina/jina-clip-v2",
214
- } as const;
215
- export type CreateMemoryStoreModel22 = ClosedEnum<
216
- typeof CreateMemoryStoreModel22
217
- >;
218
-
219
- export const CreateMemoryStoreModel21 = {
220
- JinaJinaEmbeddingsV2BaseDe: "jina/jina-embeddings-v2-base-de",
221
- } as const;
222
- export type CreateMemoryStoreModel21 = ClosedEnum<
223
- typeof CreateMemoryStoreModel21
224
- >;
225
-
226
- export const CreateMemoryStoreModel20 = {
227
- JinaJinaEmbeddingsV2BaseCode: "jina/jina-embeddings-v2-base-code",
228
- } as const;
229
- export type CreateMemoryStoreModel20 = ClosedEnum<
230
- typeof CreateMemoryStoreModel20
231
- >;
232
-
233
- export const CreateMemoryStoreModel19 = {
234
- JinaJinaEmbeddingsV2BaseZh: "jina/jina-embeddings-v2-base-zh",
235
- } as const;
236
- export type CreateMemoryStoreModel19 = ClosedEnum<
237
- typeof CreateMemoryStoreModel19
238
- >;
239
-
240
- export const CreateMemoryStoreModel18 = {
241
- JinaJinaEmbeddingsV2BaseEn: "jina/jina-embeddings-v2-base-en",
242
- } as const;
243
- export type CreateMemoryStoreModel18 = ClosedEnum<
244
- typeof CreateMemoryStoreModel18
245
- >;
246
-
247
- export const CreateMemoryStoreModel17 = {
248
- JinaJinaEmbeddingsV2BaseEs: "jina/jina-embeddings-v2-base-es",
249
- } as const;
250
- export type CreateMemoryStoreModel17 = ClosedEnum<
251
- typeof CreateMemoryStoreModel17
252
- >;
253
-
254
- export const CreateMemoryStoreModel16 = {
255
- JinaJinaClipV1: "jina/jina-clip-v1",
256
- } as const;
257
- export type CreateMemoryStoreModel16 = ClosedEnum<
258
- typeof CreateMemoryStoreModel16
259
- >;
260
-
261
- export const CreateMemoryStoreModel15 = {
262
- MistralMistralEmbed: "mistral/mistral-embed",
263
- } as const;
264
- export type CreateMemoryStoreModel15 = ClosedEnum<
265
- typeof CreateMemoryStoreModel15
266
- >;
267
-
268
- export const CreateMemoryStoreModel14 = {
269
- GoogleAiTextEmbedding004: "google-ai/text-embedding-004",
270
- } as const;
271
- export type CreateMemoryStoreModel14 = ClosedEnum<
272
- typeof CreateMemoryStoreModel14
273
- >;
274
-
275
- export const CreateMemoryStoreModel13 = {
276
- GoogleMultimodalembeddingAt001: "google/multimodalembedding@001",
277
- } as const;
278
- export type CreateMemoryStoreModel13 = ClosedEnum<
279
- typeof CreateMemoryStoreModel13
280
- >;
281
-
282
- export const CreateMemoryStoreModel12 = {
283
- GoogleTextMultilingualEmbedding002: "google/text-multilingual-embedding-002",
284
- } as const;
285
- export type CreateMemoryStoreModel12 = ClosedEnum<
286
- typeof CreateMemoryStoreModel12
287
- >;
288
-
289
- export const CreateMemoryStoreModel11 = {
290
- GoogleGeminiEmbedding001: "google/gemini-embedding-001",
291
- } as const;
292
- export type CreateMemoryStoreModel11 = ClosedEnum<
293
- typeof CreateMemoryStoreModel11
294
- >;
295
-
296
- export const CreateMemoryStoreModel10 = {
297
- OpenaiTextEmbeddingAda002: "openai/text-embedding-ada-002",
298
- } as const;
299
- export type CreateMemoryStoreModel10 = ClosedEnum<
300
- typeof CreateMemoryStoreModel10
301
- >;
302
-
303
- export const CreateMemoryStoreModel9 = {
304
- OpenaiTextEmbedding3Small: "openai/text-embedding-3-small",
305
- } as const;
306
- export type CreateMemoryStoreModel9 = ClosedEnum<
307
- typeof CreateMemoryStoreModel9
308
- >;
309
-
310
- export const CreateMemoryStoreModel8 = {
311
- OpenaiTextEmbedding3Large: "openai/text-embedding-3-large",
312
- } as const;
313
- export type CreateMemoryStoreModel8 = ClosedEnum<
314
- typeof CreateMemoryStoreModel8
315
- >;
316
-
317
- export const CreateMemoryStoreModel7 = {
318
- AzureTextEmbedding3Small: "azure/text-embedding-3-small",
319
- } as const;
320
- export type CreateMemoryStoreModel7 = ClosedEnum<
321
- typeof CreateMemoryStoreModel7
322
- >;
323
-
324
- export const CreateMemoryStoreModel6 = {
325
- AzureTextEmbeddingAda002: "azure/text-embedding-ada-002",
326
- } as const;
327
- export type CreateMemoryStoreModel6 = ClosedEnum<
328
- typeof CreateMemoryStoreModel6
329
- >;
330
-
331
- export const CreateMemoryStoreModel5 = {
332
- CohereEmbedV40: "cohere/embed-v4.0",
333
- } as const;
334
- export type CreateMemoryStoreModel5 = ClosedEnum<
335
- typeof CreateMemoryStoreModel5
336
- >;
337
-
338
- export const CreateMemoryStoreModel4 = {
339
- CohereEmbedEnglishV30: "cohere/embed-english-v3.0",
340
- } as const;
341
- export type CreateMemoryStoreModel4 = ClosedEnum<
342
- typeof CreateMemoryStoreModel4
343
- >;
344
-
345
- export const CreateMemoryStoreModel3 = {
346
- CohereEmbedEnglishLightV30: "cohere/embed-english-light-v3.0",
347
- } as const;
348
- export type CreateMemoryStoreModel3 = ClosedEnum<
349
- typeof CreateMemoryStoreModel3
350
- >;
351
-
352
- export const CreateMemoryStoreModel2 = {
353
- CohereEmbedMultilingualLightV30: "cohere/embed-multilingual-light-v3.0",
354
- } as const;
355
- export type CreateMemoryStoreModel2 = ClosedEnum<
356
- typeof CreateMemoryStoreModel2
357
- >;
358
-
359
- export const CreateMemoryStoreModel1 = {
360
- CohereEmbedMultilingualV30: "cohere/embed-multilingual-v3.0",
361
- } as const;
362
- export type CreateMemoryStoreModel1 = ClosedEnum<
363
- typeof CreateMemoryStoreModel1
364
- >;
365
-
366
- export type CreateMemoryStoreModel =
367
- | CreateMemoryStoreModel1
368
- | CreateMemoryStoreModel2
369
- | CreateMemoryStoreModel3
370
- | CreateMemoryStoreModel4
371
- | CreateMemoryStoreModel5
372
- | CreateMemoryStoreModel6
373
- | CreateMemoryStoreModel7
374
- | CreateMemoryStoreModel8
375
- | CreateMemoryStoreModel9
376
- | CreateMemoryStoreModel10
377
- | CreateMemoryStoreModel11
378
- | CreateMemoryStoreModel12
379
- | CreateMemoryStoreModel13
380
- | CreateMemoryStoreModel14
381
- | CreateMemoryStoreModel15
382
- | CreateMemoryStoreModel16
383
- | CreateMemoryStoreModel17
384
- | CreateMemoryStoreModel18
385
- | CreateMemoryStoreModel19
386
- | CreateMemoryStoreModel20
387
- | CreateMemoryStoreModel21
388
- | CreateMemoryStoreModel22
389
- | CreateMemoryStoreModel23;
390
-
391
44
  export type CreateMemoryStoreEmbeddingConfig = {
392
- model:
393
- | CreateMemoryStoreModel1
394
- | CreateMemoryStoreModel2
395
- | CreateMemoryStoreModel3
396
- | CreateMemoryStoreModel4
397
- | CreateMemoryStoreModel5
398
- | CreateMemoryStoreModel6
399
- | CreateMemoryStoreModel7
400
- | CreateMemoryStoreModel8
401
- | CreateMemoryStoreModel9
402
- | CreateMemoryStoreModel10
403
- | CreateMemoryStoreModel11
404
- | CreateMemoryStoreModel12
405
- | CreateMemoryStoreModel13
406
- | CreateMemoryStoreModel14
407
- | CreateMemoryStoreModel15
408
- | CreateMemoryStoreModel16
409
- | CreateMemoryStoreModel17
410
- | CreateMemoryStoreModel18
411
- | CreateMemoryStoreModel19
412
- | CreateMemoryStoreModel20
413
- | CreateMemoryStoreModel21
414
- | CreateMemoryStoreModel22
415
- | CreateMemoryStoreModel23;
45
+ /**
46
+ * The embeddings model to use for the knowledge base in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model will be used to embed the chunks when they are added to the knowledge base. Refer to the (Supported models)[/docs/proxy/supported-models] to browse available models.
47
+ */
48
+ model: string;
416
49
  };
417
50
 
418
51
  /**
@@ -454,324 +87,17 @@ export type CreateMemoryStoreResponseBody = {
454
87
  embeddingConfig: CreateMemoryStoreEmbeddingConfig;
455
88
  };
456
89
 
457
- /** @internal */
458
- export const TwentyThree$inboundSchema: z.ZodNativeEnum<typeof TwentyThree> = z
459
- .nativeEnum(TwentyThree);
460
- /** @internal */
461
- export const TwentyThree$outboundSchema: z.ZodNativeEnum<typeof TwentyThree> =
462
- TwentyThree$inboundSchema;
463
-
464
- /** @internal */
465
- export const TwentyTwo$inboundSchema: z.ZodNativeEnum<typeof TwentyTwo> = z
466
- .nativeEnum(TwentyTwo);
467
- /** @internal */
468
- export const TwentyTwo$outboundSchema: z.ZodNativeEnum<typeof TwentyTwo> =
469
- TwentyTwo$inboundSchema;
470
-
471
- /** @internal */
472
- export const TwentyOne$inboundSchema: z.ZodNativeEnum<typeof TwentyOne> = z
473
- .nativeEnum(TwentyOne);
474
- /** @internal */
475
- export const TwentyOne$outboundSchema: z.ZodNativeEnum<typeof TwentyOne> =
476
- TwentyOne$inboundSchema;
477
-
478
- /** @internal */
479
- export const Twenty$inboundSchema: z.ZodNativeEnum<typeof Twenty> = z
480
- .nativeEnum(Twenty);
481
- /** @internal */
482
- export const Twenty$outboundSchema: z.ZodNativeEnum<typeof Twenty> =
483
- Twenty$inboundSchema;
484
-
485
- /** @internal */
486
- export const Nineteen$inboundSchema: z.ZodNativeEnum<typeof Nineteen> = z
487
- .nativeEnum(Nineteen);
488
- /** @internal */
489
- export const Nineteen$outboundSchema: z.ZodNativeEnum<typeof Nineteen> =
490
- Nineteen$inboundSchema;
491
-
492
- /** @internal */
493
- export const Eighteen$inboundSchema: z.ZodNativeEnum<typeof Eighteen> = z
494
- .nativeEnum(Eighteen);
495
- /** @internal */
496
- export const Eighteen$outboundSchema: z.ZodNativeEnum<typeof Eighteen> =
497
- Eighteen$inboundSchema;
498
-
499
- /** @internal */
500
- export const Seventeen$inboundSchema: z.ZodNativeEnum<typeof Seventeen> = z
501
- .nativeEnum(Seventeen);
502
- /** @internal */
503
- export const Seventeen$outboundSchema: z.ZodNativeEnum<typeof Seventeen> =
504
- Seventeen$inboundSchema;
505
-
506
- /** @internal */
507
- export const Sixteen$inboundSchema: z.ZodNativeEnum<typeof Sixteen> = z
508
- .nativeEnum(Sixteen);
509
- /** @internal */
510
- export const Sixteen$outboundSchema: z.ZodNativeEnum<typeof Sixteen> =
511
- Sixteen$inboundSchema;
512
-
513
- /** @internal */
514
- export const Fifteen$inboundSchema: z.ZodNativeEnum<typeof Fifteen> = z
515
- .nativeEnum(Fifteen);
516
- /** @internal */
517
- export const Fifteen$outboundSchema: z.ZodNativeEnum<typeof Fifteen> =
518
- Fifteen$inboundSchema;
519
-
520
- /** @internal */
521
- export const Fourteen$inboundSchema: z.ZodNativeEnum<typeof Fourteen> = z
522
- .nativeEnum(Fourteen);
523
- /** @internal */
524
- export const Fourteen$outboundSchema: z.ZodNativeEnum<typeof Fourteen> =
525
- Fourteen$inboundSchema;
526
-
527
- /** @internal */
528
- export const Thirteen$inboundSchema: z.ZodNativeEnum<typeof Thirteen> = z
529
- .nativeEnum(Thirteen);
530
- /** @internal */
531
- export const Thirteen$outboundSchema: z.ZodNativeEnum<typeof Thirteen> =
532
- Thirteen$inboundSchema;
533
-
534
- /** @internal */
535
- export const Twelve$inboundSchema: z.ZodNativeEnum<typeof Twelve> = z
536
- .nativeEnum(Twelve);
537
- /** @internal */
538
- export const Twelve$outboundSchema: z.ZodNativeEnum<typeof Twelve> =
539
- Twelve$inboundSchema;
540
-
541
- /** @internal */
542
- export const Eleven$inboundSchema: z.ZodNativeEnum<typeof Eleven> = z
543
- .nativeEnum(Eleven);
544
- /** @internal */
545
- export const Eleven$outboundSchema: z.ZodNativeEnum<typeof Eleven> =
546
- Eleven$inboundSchema;
547
-
548
- /** @internal */
549
- export const Ten$inboundSchema: z.ZodNativeEnum<typeof Ten> = z.nativeEnum(Ten);
550
- /** @internal */
551
- export const Ten$outboundSchema: z.ZodNativeEnum<typeof Ten> =
552
- Ten$inboundSchema;
553
-
554
- /** @internal */
555
- export const Nine$inboundSchema: z.ZodNativeEnum<typeof Nine> = z.nativeEnum(
556
- Nine,
557
- );
558
- /** @internal */
559
- export const Nine$outboundSchema: z.ZodNativeEnum<typeof Nine> =
560
- Nine$inboundSchema;
561
-
562
- /** @internal */
563
- export const Eight$inboundSchema: z.ZodNativeEnum<typeof Eight> = z.nativeEnum(
564
- Eight,
565
- );
566
- /** @internal */
567
- export const Eight$outboundSchema: z.ZodNativeEnum<typeof Eight> =
568
- Eight$inboundSchema;
569
-
570
- /** @internal */
571
- export const Seven$inboundSchema: z.ZodNativeEnum<typeof Seven> = z.nativeEnum(
572
- Seven,
573
- );
574
- /** @internal */
575
- export const Seven$outboundSchema: z.ZodNativeEnum<typeof Seven> =
576
- Seven$inboundSchema;
577
-
578
- /** @internal */
579
- export const Model6$inboundSchema: z.ZodNativeEnum<typeof Model6> = z
580
- .nativeEnum(Model6);
581
- /** @internal */
582
- export const Model6$outboundSchema: z.ZodNativeEnum<typeof Model6> =
583
- Model6$inboundSchema;
584
-
585
- /** @internal */
586
- export const Model5$inboundSchema: z.ZodNativeEnum<typeof Model5> = z
587
- .nativeEnum(Model5);
588
- /** @internal */
589
- export const Model5$outboundSchema: z.ZodNativeEnum<typeof Model5> =
590
- Model5$inboundSchema;
591
-
592
- /** @internal */
593
- export const Model4$inboundSchema: z.ZodNativeEnum<typeof Model4> = z
594
- .nativeEnum(Model4);
595
- /** @internal */
596
- export const Model4$outboundSchema: z.ZodNativeEnum<typeof Model4> =
597
- Model4$inboundSchema;
598
-
599
- /** @internal */
600
- export const Model3$inboundSchema: z.ZodNativeEnum<typeof Model3> = z
601
- .nativeEnum(Model3);
602
- /** @internal */
603
- export const Model3$outboundSchema: z.ZodNativeEnum<typeof Model3> =
604
- Model3$inboundSchema;
605
-
606
- /** @internal */
607
- export const Model2$inboundSchema: z.ZodNativeEnum<typeof Model2> = z
608
- .nativeEnum(Model2);
609
- /** @internal */
610
- export const Model2$outboundSchema: z.ZodNativeEnum<typeof Model2> =
611
- Model2$inboundSchema;
612
-
613
- /** @internal */
614
- export const Model1$inboundSchema: z.ZodNativeEnum<typeof Model1> = z
615
- .nativeEnum(Model1);
616
- /** @internal */
617
- export const Model1$outboundSchema: z.ZodNativeEnum<typeof Model1> =
618
- Model1$inboundSchema;
619
-
620
- /** @internal */
621
- export const Model$inboundSchema: z.ZodType<Model, z.ZodTypeDef, unknown> = z
622
- .union([
623
- Model1$inboundSchema,
624
- Model2$inboundSchema,
625
- Model3$inboundSchema,
626
- Model4$inboundSchema,
627
- Model5$inboundSchema,
628
- Model6$inboundSchema,
629
- Seven$inboundSchema,
630
- Eight$inboundSchema,
631
- Nine$inboundSchema,
632
- Ten$inboundSchema,
633
- Eleven$inboundSchema,
634
- Twelve$inboundSchema,
635
- Thirteen$inboundSchema,
636
- Fourteen$inboundSchema,
637
- Fifteen$inboundSchema,
638
- Sixteen$inboundSchema,
639
- Seventeen$inboundSchema,
640
- Eighteen$inboundSchema,
641
- Nineteen$inboundSchema,
642
- Twenty$inboundSchema,
643
- TwentyOne$inboundSchema,
644
- TwentyTwo$inboundSchema,
645
- TwentyThree$inboundSchema,
646
- ]);
647
- /** @internal */
648
- export type Model$Outbound =
649
- | string
650
- | string
651
- | string
652
- | string
653
- | string
654
- | string
655
- | string
656
- | string
657
- | string
658
- | string
659
- | string
660
- | string
661
- | string
662
- | string
663
- | string
664
- | string
665
- | string
666
- | string
667
- | string
668
- | string
669
- | string
670
- | string
671
- | string;
672
-
673
- /** @internal */
674
- export const Model$outboundSchema: z.ZodType<
675
- Model$Outbound,
676
- z.ZodTypeDef,
677
- Model
678
- > = z.union([
679
- Model1$outboundSchema,
680
- Model2$outboundSchema,
681
- Model3$outboundSchema,
682
- Model4$outboundSchema,
683
- Model5$outboundSchema,
684
- Model6$outboundSchema,
685
- Seven$outboundSchema,
686
- Eight$outboundSchema,
687
- Nine$outboundSchema,
688
- Ten$outboundSchema,
689
- Eleven$outboundSchema,
690
- Twelve$outboundSchema,
691
- Thirteen$outboundSchema,
692
- Fourteen$outboundSchema,
693
- Fifteen$outboundSchema,
694
- Sixteen$outboundSchema,
695
- Seventeen$outboundSchema,
696
- Eighteen$outboundSchema,
697
- Nineteen$outboundSchema,
698
- Twenty$outboundSchema,
699
- TwentyOne$outboundSchema,
700
- TwentyTwo$outboundSchema,
701
- TwentyThree$outboundSchema,
702
- ]);
703
-
704
- export function modelToJSON(model: Model): string {
705
- return JSON.stringify(Model$outboundSchema.parse(model));
706
- }
707
- export function modelFromJSON(
708
- jsonString: string,
709
- ): SafeParseResult<Model, SDKValidationError> {
710
- return safeParse(
711
- jsonString,
712
- (x) => Model$inboundSchema.parse(JSON.parse(x)),
713
- `Failed to parse 'Model' from JSON`,
714
- );
715
- }
716
-
717
90
  /** @internal */
718
91
  export const EmbeddingConfig$inboundSchema: z.ZodType<
719
92
  EmbeddingConfig,
720
93
  z.ZodTypeDef,
721
94
  unknown
722
95
  > = z.object({
723
- model: z.union([
724
- Model1$inboundSchema,
725
- Model2$inboundSchema,
726
- Model3$inboundSchema,
727
- Model4$inboundSchema,
728
- Model5$inboundSchema,
729
- Model6$inboundSchema,
730
- Seven$inboundSchema,
731
- Eight$inboundSchema,
732
- Nine$inboundSchema,
733
- Ten$inboundSchema,
734
- Eleven$inboundSchema,
735
- Twelve$inboundSchema,
736
- Thirteen$inboundSchema,
737
- Fourteen$inboundSchema,
738
- Fifteen$inboundSchema,
739
- Sixteen$inboundSchema,
740
- Seventeen$inboundSchema,
741
- Eighteen$inboundSchema,
742
- Nineteen$inboundSchema,
743
- Twenty$inboundSchema,
744
- TwentyOne$inboundSchema,
745
- TwentyTwo$inboundSchema,
746
- TwentyThree$inboundSchema,
747
- ]),
96
+ model: z.string(),
748
97
  });
749
98
  /** @internal */
750
99
  export type EmbeddingConfig$Outbound = {
751
- model:
752
- | string
753
- | string
754
- | string
755
- | string
756
- | string
757
- | string
758
- | string
759
- | string
760
- | string
761
- | string
762
- | string
763
- | string
764
- | string
765
- | string
766
- | string
767
- | string
768
- | string
769
- | string
770
- | string
771
- | string
772
- | string
773
- | string
774
- | string;
100
+ model: string;
775
101
  };
776
102
 
777
103
  /** @internal */
@@ -780,31 +106,7 @@ export const EmbeddingConfig$outboundSchema: z.ZodType<
780
106
  z.ZodTypeDef,
781
107
  EmbeddingConfig
782
108
  > = z.object({
783
- model: z.union([
784
- Model1$outboundSchema,
785
- Model2$outboundSchema,
786
- Model3$outboundSchema,
787
- Model4$outboundSchema,
788
- Model5$outboundSchema,
789
- Model6$outboundSchema,
790
- Seven$outboundSchema,
791
- Eight$outboundSchema,
792
- Nine$outboundSchema,
793
- Ten$outboundSchema,
794
- Eleven$outboundSchema,
795
- Twelve$outboundSchema,
796
- Thirteen$outboundSchema,
797
- Fourteen$outboundSchema,
798
- Fifteen$outboundSchema,
799
- Sixteen$outboundSchema,
800
- Seventeen$outboundSchema,
801
- Eighteen$outboundSchema,
802
- Nineteen$outboundSchema,
803
- Twenty$outboundSchema,
804
- TwentyOne$outboundSchema,
805
- TwentyTwo$outboundSchema,
806
- TwentyThree$outboundSchema,
807
- ]),
109
+ model: z.string(),
808
110
  });
809
111
 
810
112
  export function embeddingConfigToJSON(
@@ -883,375 +185,17 @@ export function createMemoryStoreRequestBodyFromJSON(
883
185
  );
884
186
  }
885
187
 
886
- /** @internal */
887
- export const CreateMemoryStoreModel23$inboundSchema: z.ZodNativeEnum<
888
- typeof CreateMemoryStoreModel23
889
- > = z.nativeEnum(CreateMemoryStoreModel23);
890
- /** @internal */
891
- export const CreateMemoryStoreModel23$outboundSchema: z.ZodNativeEnum<
892
- typeof CreateMemoryStoreModel23
893
- > = CreateMemoryStoreModel23$inboundSchema;
894
-
895
- /** @internal */
896
- export const CreateMemoryStoreModel22$inboundSchema: z.ZodNativeEnum<
897
- typeof CreateMemoryStoreModel22
898
- > = z.nativeEnum(CreateMemoryStoreModel22);
899
- /** @internal */
900
- export const CreateMemoryStoreModel22$outboundSchema: z.ZodNativeEnum<
901
- typeof CreateMemoryStoreModel22
902
- > = CreateMemoryStoreModel22$inboundSchema;
903
-
904
- /** @internal */
905
- export const CreateMemoryStoreModel21$inboundSchema: z.ZodNativeEnum<
906
- typeof CreateMemoryStoreModel21
907
- > = z.nativeEnum(CreateMemoryStoreModel21);
908
- /** @internal */
909
- export const CreateMemoryStoreModel21$outboundSchema: z.ZodNativeEnum<
910
- typeof CreateMemoryStoreModel21
911
- > = CreateMemoryStoreModel21$inboundSchema;
912
-
913
- /** @internal */
914
- export const CreateMemoryStoreModel20$inboundSchema: z.ZodNativeEnum<
915
- typeof CreateMemoryStoreModel20
916
- > = z.nativeEnum(CreateMemoryStoreModel20);
917
- /** @internal */
918
- export const CreateMemoryStoreModel20$outboundSchema: z.ZodNativeEnum<
919
- typeof CreateMemoryStoreModel20
920
- > = CreateMemoryStoreModel20$inboundSchema;
921
-
922
- /** @internal */
923
- export const CreateMemoryStoreModel19$inboundSchema: z.ZodNativeEnum<
924
- typeof CreateMemoryStoreModel19
925
- > = z.nativeEnum(CreateMemoryStoreModel19);
926
- /** @internal */
927
- export const CreateMemoryStoreModel19$outboundSchema: z.ZodNativeEnum<
928
- typeof CreateMemoryStoreModel19
929
- > = CreateMemoryStoreModel19$inboundSchema;
930
-
931
- /** @internal */
932
- export const CreateMemoryStoreModel18$inboundSchema: z.ZodNativeEnum<
933
- typeof CreateMemoryStoreModel18
934
- > = z.nativeEnum(CreateMemoryStoreModel18);
935
- /** @internal */
936
- export const CreateMemoryStoreModel18$outboundSchema: z.ZodNativeEnum<
937
- typeof CreateMemoryStoreModel18
938
- > = CreateMemoryStoreModel18$inboundSchema;
939
-
940
- /** @internal */
941
- export const CreateMemoryStoreModel17$inboundSchema: z.ZodNativeEnum<
942
- typeof CreateMemoryStoreModel17
943
- > = z.nativeEnum(CreateMemoryStoreModel17);
944
- /** @internal */
945
- export const CreateMemoryStoreModel17$outboundSchema: z.ZodNativeEnum<
946
- typeof CreateMemoryStoreModel17
947
- > = CreateMemoryStoreModel17$inboundSchema;
948
-
949
- /** @internal */
950
- export const CreateMemoryStoreModel16$inboundSchema: z.ZodNativeEnum<
951
- typeof CreateMemoryStoreModel16
952
- > = z.nativeEnum(CreateMemoryStoreModel16);
953
- /** @internal */
954
- export const CreateMemoryStoreModel16$outboundSchema: z.ZodNativeEnum<
955
- typeof CreateMemoryStoreModel16
956
- > = CreateMemoryStoreModel16$inboundSchema;
957
-
958
- /** @internal */
959
- export const CreateMemoryStoreModel15$inboundSchema: z.ZodNativeEnum<
960
- typeof CreateMemoryStoreModel15
961
- > = z.nativeEnum(CreateMemoryStoreModel15);
962
- /** @internal */
963
- export const CreateMemoryStoreModel15$outboundSchema: z.ZodNativeEnum<
964
- typeof CreateMemoryStoreModel15
965
- > = CreateMemoryStoreModel15$inboundSchema;
966
-
967
- /** @internal */
968
- export const CreateMemoryStoreModel14$inboundSchema: z.ZodNativeEnum<
969
- typeof CreateMemoryStoreModel14
970
- > = z.nativeEnum(CreateMemoryStoreModel14);
971
- /** @internal */
972
- export const CreateMemoryStoreModel14$outboundSchema: z.ZodNativeEnum<
973
- typeof CreateMemoryStoreModel14
974
- > = CreateMemoryStoreModel14$inboundSchema;
975
-
976
- /** @internal */
977
- export const CreateMemoryStoreModel13$inboundSchema: z.ZodNativeEnum<
978
- typeof CreateMemoryStoreModel13
979
- > = z.nativeEnum(CreateMemoryStoreModel13);
980
- /** @internal */
981
- export const CreateMemoryStoreModel13$outboundSchema: z.ZodNativeEnum<
982
- typeof CreateMemoryStoreModel13
983
- > = CreateMemoryStoreModel13$inboundSchema;
984
-
985
- /** @internal */
986
- export const CreateMemoryStoreModel12$inboundSchema: z.ZodNativeEnum<
987
- typeof CreateMemoryStoreModel12
988
- > = z.nativeEnum(CreateMemoryStoreModel12);
989
- /** @internal */
990
- export const CreateMemoryStoreModel12$outboundSchema: z.ZodNativeEnum<
991
- typeof CreateMemoryStoreModel12
992
- > = CreateMemoryStoreModel12$inboundSchema;
993
-
994
- /** @internal */
995
- export const CreateMemoryStoreModel11$inboundSchema: z.ZodNativeEnum<
996
- typeof CreateMemoryStoreModel11
997
- > = z.nativeEnum(CreateMemoryStoreModel11);
998
- /** @internal */
999
- export const CreateMemoryStoreModel11$outboundSchema: z.ZodNativeEnum<
1000
- typeof CreateMemoryStoreModel11
1001
- > = CreateMemoryStoreModel11$inboundSchema;
1002
-
1003
- /** @internal */
1004
- export const CreateMemoryStoreModel10$inboundSchema: z.ZodNativeEnum<
1005
- typeof CreateMemoryStoreModel10
1006
- > = z.nativeEnum(CreateMemoryStoreModel10);
1007
- /** @internal */
1008
- export const CreateMemoryStoreModel10$outboundSchema: z.ZodNativeEnum<
1009
- typeof CreateMemoryStoreModel10
1010
- > = CreateMemoryStoreModel10$inboundSchema;
1011
-
1012
- /** @internal */
1013
- export const CreateMemoryStoreModel9$inboundSchema: z.ZodNativeEnum<
1014
- typeof CreateMemoryStoreModel9
1015
- > = z.nativeEnum(CreateMemoryStoreModel9);
1016
- /** @internal */
1017
- export const CreateMemoryStoreModel9$outboundSchema: z.ZodNativeEnum<
1018
- typeof CreateMemoryStoreModel9
1019
- > = CreateMemoryStoreModel9$inboundSchema;
1020
-
1021
- /** @internal */
1022
- export const CreateMemoryStoreModel8$inboundSchema: z.ZodNativeEnum<
1023
- typeof CreateMemoryStoreModel8
1024
- > = z.nativeEnum(CreateMemoryStoreModel8);
1025
- /** @internal */
1026
- export const CreateMemoryStoreModel8$outboundSchema: z.ZodNativeEnum<
1027
- typeof CreateMemoryStoreModel8
1028
- > = CreateMemoryStoreModel8$inboundSchema;
1029
-
1030
- /** @internal */
1031
- export const CreateMemoryStoreModel7$inboundSchema: z.ZodNativeEnum<
1032
- typeof CreateMemoryStoreModel7
1033
- > = z.nativeEnum(CreateMemoryStoreModel7);
1034
- /** @internal */
1035
- export const CreateMemoryStoreModel7$outboundSchema: z.ZodNativeEnum<
1036
- typeof CreateMemoryStoreModel7
1037
- > = CreateMemoryStoreModel7$inboundSchema;
1038
-
1039
- /** @internal */
1040
- export const CreateMemoryStoreModel6$inboundSchema: z.ZodNativeEnum<
1041
- typeof CreateMemoryStoreModel6
1042
- > = z.nativeEnum(CreateMemoryStoreModel6);
1043
- /** @internal */
1044
- export const CreateMemoryStoreModel6$outboundSchema: z.ZodNativeEnum<
1045
- typeof CreateMemoryStoreModel6
1046
- > = CreateMemoryStoreModel6$inboundSchema;
1047
-
1048
- /** @internal */
1049
- export const CreateMemoryStoreModel5$inboundSchema: z.ZodNativeEnum<
1050
- typeof CreateMemoryStoreModel5
1051
- > = z.nativeEnum(CreateMemoryStoreModel5);
1052
- /** @internal */
1053
- export const CreateMemoryStoreModel5$outboundSchema: z.ZodNativeEnum<
1054
- typeof CreateMemoryStoreModel5
1055
- > = CreateMemoryStoreModel5$inboundSchema;
1056
-
1057
- /** @internal */
1058
- export const CreateMemoryStoreModel4$inboundSchema: z.ZodNativeEnum<
1059
- typeof CreateMemoryStoreModel4
1060
- > = z.nativeEnum(CreateMemoryStoreModel4);
1061
- /** @internal */
1062
- export const CreateMemoryStoreModel4$outboundSchema: z.ZodNativeEnum<
1063
- typeof CreateMemoryStoreModel4
1064
- > = CreateMemoryStoreModel4$inboundSchema;
1065
-
1066
- /** @internal */
1067
- export const CreateMemoryStoreModel3$inboundSchema: z.ZodNativeEnum<
1068
- typeof CreateMemoryStoreModel3
1069
- > = z.nativeEnum(CreateMemoryStoreModel3);
1070
- /** @internal */
1071
- export const CreateMemoryStoreModel3$outboundSchema: z.ZodNativeEnum<
1072
- typeof CreateMemoryStoreModel3
1073
- > = CreateMemoryStoreModel3$inboundSchema;
1074
-
1075
- /** @internal */
1076
- export const CreateMemoryStoreModel2$inboundSchema: z.ZodNativeEnum<
1077
- typeof CreateMemoryStoreModel2
1078
- > = z.nativeEnum(CreateMemoryStoreModel2);
1079
- /** @internal */
1080
- export const CreateMemoryStoreModel2$outboundSchema: z.ZodNativeEnum<
1081
- typeof CreateMemoryStoreModel2
1082
- > = CreateMemoryStoreModel2$inboundSchema;
1083
-
1084
- /** @internal */
1085
- export const CreateMemoryStoreModel1$inboundSchema: z.ZodNativeEnum<
1086
- typeof CreateMemoryStoreModel1
1087
- > = z.nativeEnum(CreateMemoryStoreModel1);
1088
- /** @internal */
1089
- export const CreateMemoryStoreModel1$outboundSchema: z.ZodNativeEnum<
1090
- typeof CreateMemoryStoreModel1
1091
- > = CreateMemoryStoreModel1$inboundSchema;
1092
-
1093
- /** @internal */
1094
- export const CreateMemoryStoreModel$inboundSchema: z.ZodType<
1095
- CreateMemoryStoreModel,
1096
- z.ZodTypeDef,
1097
- unknown
1098
- > = z.union([
1099
- CreateMemoryStoreModel1$inboundSchema,
1100
- CreateMemoryStoreModel2$inboundSchema,
1101
- CreateMemoryStoreModel3$inboundSchema,
1102
- CreateMemoryStoreModel4$inboundSchema,
1103
- CreateMemoryStoreModel5$inboundSchema,
1104
- CreateMemoryStoreModel6$inboundSchema,
1105
- CreateMemoryStoreModel7$inboundSchema,
1106
- CreateMemoryStoreModel8$inboundSchema,
1107
- CreateMemoryStoreModel9$inboundSchema,
1108
- CreateMemoryStoreModel10$inboundSchema,
1109
- CreateMemoryStoreModel11$inboundSchema,
1110
- CreateMemoryStoreModel12$inboundSchema,
1111
- CreateMemoryStoreModel13$inboundSchema,
1112
- CreateMemoryStoreModel14$inboundSchema,
1113
- CreateMemoryStoreModel15$inboundSchema,
1114
- CreateMemoryStoreModel16$inboundSchema,
1115
- CreateMemoryStoreModel17$inboundSchema,
1116
- CreateMemoryStoreModel18$inboundSchema,
1117
- CreateMemoryStoreModel19$inboundSchema,
1118
- CreateMemoryStoreModel20$inboundSchema,
1119
- CreateMemoryStoreModel21$inboundSchema,
1120
- CreateMemoryStoreModel22$inboundSchema,
1121
- CreateMemoryStoreModel23$inboundSchema,
1122
- ]);
1123
- /** @internal */
1124
- export type CreateMemoryStoreModel$Outbound =
1125
- | string
1126
- | string
1127
- | string
1128
- | string
1129
- | string
1130
- | string
1131
- | string
1132
- | string
1133
- | string
1134
- | string
1135
- | string
1136
- | string
1137
- | string
1138
- | string
1139
- | string
1140
- | string
1141
- | string
1142
- | string
1143
- | string
1144
- | string
1145
- | string
1146
- | string
1147
- | string;
1148
-
1149
- /** @internal */
1150
- export const CreateMemoryStoreModel$outboundSchema: z.ZodType<
1151
- CreateMemoryStoreModel$Outbound,
1152
- z.ZodTypeDef,
1153
- CreateMemoryStoreModel
1154
- > = z.union([
1155
- CreateMemoryStoreModel1$outboundSchema,
1156
- CreateMemoryStoreModel2$outboundSchema,
1157
- CreateMemoryStoreModel3$outboundSchema,
1158
- CreateMemoryStoreModel4$outboundSchema,
1159
- CreateMemoryStoreModel5$outboundSchema,
1160
- CreateMemoryStoreModel6$outboundSchema,
1161
- CreateMemoryStoreModel7$outboundSchema,
1162
- CreateMemoryStoreModel8$outboundSchema,
1163
- CreateMemoryStoreModel9$outboundSchema,
1164
- CreateMemoryStoreModel10$outboundSchema,
1165
- CreateMemoryStoreModel11$outboundSchema,
1166
- CreateMemoryStoreModel12$outboundSchema,
1167
- CreateMemoryStoreModel13$outboundSchema,
1168
- CreateMemoryStoreModel14$outboundSchema,
1169
- CreateMemoryStoreModel15$outboundSchema,
1170
- CreateMemoryStoreModel16$outboundSchema,
1171
- CreateMemoryStoreModel17$outboundSchema,
1172
- CreateMemoryStoreModel18$outboundSchema,
1173
- CreateMemoryStoreModel19$outboundSchema,
1174
- CreateMemoryStoreModel20$outboundSchema,
1175
- CreateMemoryStoreModel21$outboundSchema,
1176
- CreateMemoryStoreModel22$outboundSchema,
1177
- CreateMemoryStoreModel23$outboundSchema,
1178
- ]);
1179
-
1180
- export function createMemoryStoreModelToJSON(
1181
- createMemoryStoreModel: CreateMemoryStoreModel,
1182
- ): string {
1183
- return JSON.stringify(
1184
- CreateMemoryStoreModel$outboundSchema.parse(createMemoryStoreModel),
1185
- );
1186
- }
1187
- export function createMemoryStoreModelFromJSON(
1188
- jsonString: string,
1189
- ): SafeParseResult<CreateMemoryStoreModel, SDKValidationError> {
1190
- return safeParse(
1191
- jsonString,
1192
- (x) => CreateMemoryStoreModel$inboundSchema.parse(JSON.parse(x)),
1193
- `Failed to parse 'CreateMemoryStoreModel' from JSON`,
1194
- );
1195
- }
1196
-
1197
188
  /** @internal */
1198
189
  export const CreateMemoryStoreEmbeddingConfig$inboundSchema: z.ZodType<
1199
190
  CreateMemoryStoreEmbeddingConfig,
1200
191
  z.ZodTypeDef,
1201
192
  unknown
1202
193
  > = z.object({
1203
- model: z.union([
1204
- CreateMemoryStoreModel1$inboundSchema,
1205
- CreateMemoryStoreModel2$inboundSchema,
1206
- CreateMemoryStoreModel3$inboundSchema,
1207
- CreateMemoryStoreModel4$inboundSchema,
1208
- CreateMemoryStoreModel5$inboundSchema,
1209
- CreateMemoryStoreModel6$inboundSchema,
1210
- CreateMemoryStoreModel7$inboundSchema,
1211
- CreateMemoryStoreModel8$inboundSchema,
1212
- CreateMemoryStoreModel9$inboundSchema,
1213
- CreateMemoryStoreModel10$inboundSchema,
1214
- CreateMemoryStoreModel11$inboundSchema,
1215
- CreateMemoryStoreModel12$inboundSchema,
1216
- CreateMemoryStoreModel13$inboundSchema,
1217
- CreateMemoryStoreModel14$inboundSchema,
1218
- CreateMemoryStoreModel15$inboundSchema,
1219
- CreateMemoryStoreModel16$inboundSchema,
1220
- CreateMemoryStoreModel17$inboundSchema,
1221
- CreateMemoryStoreModel18$inboundSchema,
1222
- CreateMemoryStoreModel19$inboundSchema,
1223
- CreateMemoryStoreModel20$inboundSchema,
1224
- CreateMemoryStoreModel21$inboundSchema,
1225
- CreateMemoryStoreModel22$inboundSchema,
1226
- CreateMemoryStoreModel23$inboundSchema,
1227
- ]),
194
+ model: z.string(),
1228
195
  });
1229
196
  /** @internal */
1230
197
  export type CreateMemoryStoreEmbeddingConfig$Outbound = {
1231
- model:
1232
- | string
1233
- | string
1234
- | string
1235
- | string
1236
- | string
1237
- | string
1238
- | string
1239
- | string
1240
- | string
1241
- | string
1242
- | string
1243
- | string
1244
- | string
1245
- | string
1246
- | string
1247
- | string
1248
- | string
1249
- | string
1250
- | string
1251
- | string
1252
- | string
1253
- | string
1254
- | string;
198
+ model: string;
1255
199
  };
1256
200
 
1257
201
  /** @internal */
@@ -1260,31 +204,7 @@ export const CreateMemoryStoreEmbeddingConfig$outboundSchema: z.ZodType<
1260
204
  z.ZodTypeDef,
1261
205
  CreateMemoryStoreEmbeddingConfig
1262
206
  > = z.object({
1263
- model: z.union([
1264
- CreateMemoryStoreModel1$outboundSchema,
1265
- CreateMemoryStoreModel2$outboundSchema,
1266
- CreateMemoryStoreModel3$outboundSchema,
1267
- CreateMemoryStoreModel4$outboundSchema,
1268
- CreateMemoryStoreModel5$outboundSchema,
1269
- CreateMemoryStoreModel6$outboundSchema,
1270
- CreateMemoryStoreModel7$outboundSchema,
1271
- CreateMemoryStoreModel8$outboundSchema,
1272
- CreateMemoryStoreModel9$outboundSchema,
1273
- CreateMemoryStoreModel10$outboundSchema,
1274
- CreateMemoryStoreModel11$outboundSchema,
1275
- CreateMemoryStoreModel12$outboundSchema,
1276
- CreateMemoryStoreModel13$outboundSchema,
1277
- CreateMemoryStoreModel14$outboundSchema,
1278
- CreateMemoryStoreModel15$outboundSchema,
1279
- CreateMemoryStoreModel16$outboundSchema,
1280
- CreateMemoryStoreModel17$outboundSchema,
1281
- CreateMemoryStoreModel18$outboundSchema,
1282
- CreateMemoryStoreModel19$outboundSchema,
1283
- CreateMemoryStoreModel20$outboundSchema,
1284
- CreateMemoryStoreModel21$outboundSchema,
1285
- CreateMemoryStoreModel22$outboundSchema,
1286
- CreateMemoryStoreModel23$outboundSchema,
1287
- ]),
207
+ model: z.string(),
1288
208
  });
1289
209
 
1290
210
  export function createMemoryStoreEmbeddingConfigToJSON(