@orq-ai/node 3.12.3 → 3.12.5

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 (197) hide show
  1. package/bin/mcp-server.js +112 -112
  2. package/bin/mcp-server.js.map +30 -30
  3. package/examples/contactsCreate.example.ts +1 -1
  4. package/examples/package-lock.json +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/server.js +1 -1
  10. package/models/operations/createbudget.js +2 -2
  11. package/models/operations/createcontact.js +2 -2
  12. package/models/operations/createdataset.js +2 -2
  13. package/models/operations/createdatasetitem.js +2 -2
  14. package/models/operations/createdatasource.js +2 -2
  15. package/models/operations/createeval.js +16 -16
  16. package/models/operations/fileget.js +2 -2
  17. package/models/operations/filelist.js +2 -2
  18. package/models/operations/fileupload.js +2 -2
  19. package/models/operations/getbudget.js +2 -2
  20. package/models/operations/getevals.js +28 -28
  21. package/models/operations/listbudgets.js +2 -2
  22. package/models/operations/listcontacts.js +2 -2
  23. package/models/operations/listdatasetdatapoints.js +2 -2
  24. package/models/operations/listdatasets.js +2 -2
  25. package/models/operations/listdatasources.js +2 -2
  26. package/models/operations/retrievecontact.js +2 -2
  27. package/models/operations/retrievedatapoint.js +2 -2
  28. package/models/operations/retrievedataset.js +2 -2
  29. package/models/operations/retrievedatasource.js +2 -2
  30. package/models/operations/updatebudget.js +2 -2
  31. package/models/operations/updatecontact.js +2 -2
  32. package/models/operations/updatedatapoint.js +2 -2
  33. package/models/operations/updatedataset.js +2 -2
  34. package/models/operations/updatedatasource.js +2 -2
  35. package/models/operations/updateeval.js +16 -16
  36. package/package.json +1 -1
  37. package/packages/orq-rc/FUNCTIONS.md +9 -19
  38. package/packages/orq-rc/README.md +180 -181
  39. package/packages/orq-rc/docs/sdks/agents/README.md +702 -0
  40. package/packages/orq-rc/docs/sdks/budgets/README.md +5 -5
  41. package/packages/orq-rc/docs/sdks/memorystores/README.md +1172 -0
  42. package/packages/orq-rc/docs/sdks/orq/README.md +81 -0
  43. package/packages/orq-rc/examples/package-lock.json +1 -1
  44. package/packages/orq-rc/examples/postV2AgentsInternal.example.ts +30 -0
  45. package/packages/orq-rc/jsr.json +1 -1
  46. package/packages/orq-rc/package-lock.json +2 -2
  47. package/packages/orq-rc/package.json +1 -1
  48. package/packages/orq-rc/src/funcs/agentsList.ts +167 -0
  49. package/packages/orq-rc/src/funcs/agentsListActions.ts +169 -0
  50. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +175 -0
  51. package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +173 -0
  52. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +179 -0
  53. package/packages/orq-rc/src/funcs/agentsReviewAction.ts +177 -0
  54. package/packages/orq-rc/src/funcs/agentsRun.ts +163 -0
  55. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +187 -0
  56. package/packages/orq-rc/src/funcs/budgetsCreate.ts +1 -1
  57. package/packages/orq-rc/src/funcs/budgetsGet.ts +2 -2
  58. package/packages/orq-rc/src/funcs/budgetsList.ts +2 -2
  59. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +171 -0
  60. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +175 -0
  61. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +170 -0
  62. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +168 -0
  63. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +184 -0
  64. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +179 -0
  65. package/packages/orq-rc/src/funcs/memoryStoresList.ts +178 -0
  66. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +181 -0
  67. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +176 -0
  68. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +177 -0
  69. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +178 -0
  70. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +173 -0
  71. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +168 -0
  72. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +179 -0
  73. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +174 -0
  74. package/packages/orq-rc/src/funcs/postV2AgentsInternal.ts +159 -0
  75. package/packages/orq-rc/src/lib/config.ts +3 -3
  76. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  77. package/packages/orq-rc/src/mcp-server/server.ts +49 -1
  78. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +37 -0
  79. package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +35 -0
  80. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +37 -0
  81. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +35 -0
  82. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +37 -0
  83. package/packages/orq-rc/src/mcp-server/tools/agentsReviewAction.ts +37 -0
  84. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +37 -0
  85. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +37 -0
  86. package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +1 -1
  87. package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +2 -2
  88. package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +2 -2
  89. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +35 -0
  90. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +37 -0
  91. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +37 -0
  92. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +35 -0
  93. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +40 -0
  94. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +40 -0
  95. package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +37 -0
  96. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +37 -0
  97. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +37 -0
  98. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +37 -0
  99. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +37 -0
  100. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +37 -0
  101. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +37 -0
  102. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +37 -0
  103. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +37 -0
  104. package/packages/orq-rc/src/mcp-server/tools/postV2AgentsInternal.ts +33 -0
  105. package/packages/orq-rc/src/models/errors/getagent.ts +80 -0
  106. package/packages/orq-rc/src/models/errors/getagenttask.ts +80 -0
  107. package/packages/orq-rc/src/models/errors/index.ts +3 -0
  108. package/packages/orq-rc/src/models/errors/streamrunagent.ts +80 -0
  109. package/packages/orq-rc/src/models/operations/createbudget.ts +57 -58
  110. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  111. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  113. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  114. package/packages/orq-rc/src/models/operations/createeval.ts +6383 -1075
  115. package/packages/orq-rc/src/models/operations/creatememory.ts +265 -0
  116. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +284 -0
  117. package/packages/orq-rc/src/models/operations/creatememorystore.ts +1956 -0
  118. package/packages/orq-rc/src/models/operations/deletememory.ts +87 -0
  119. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +98 -0
  120. package/packages/orq-rc/src/models/operations/deletememorystore.ts +78 -0
  121. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +36 -27
  122. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +31 -24
  123. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  124. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  125. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  126. package/packages/orq-rc/src/models/operations/getagent.ts +1171 -0
  127. package/packages/orq-rc/src/models/operations/getagenttask.ts +257 -0
  128. package/packages/orq-rc/src/models/operations/getallmemories.ts +315 -0
  129. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +335 -0
  130. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +1241 -0
  131. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -11
  132. package/packages/orq-rc/src/models/operations/getevals.ts +1362 -1166
  133. package/packages/orq-rc/src/models/operations/index.ts +24 -0
  134. package/packages/orq-rc/src/models/operations/listactions.ts +517 -0
  135. package/packages/orq-rc/src/models/operations/listagents.ts +1335 -0
  136. package/packages/orq-rc/src/models/operations/listbudgets.ts +5 -15
  137. package/packages/orq-rc/src/models/operations/listchunks.ts +21 -21
  138. package/packages/orq-rc/src/models/operations/listcontacts.ts +44 -37
  139. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  140. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  141. package/packages/orq-rc/src/models/operations/listdatasources.ts +29 -22
  142. package/packages/orq-rc/src/models/operations/postv2agentsinternal.ts +103 -0
  143. package/packages/orq-rc/src/models/operations/retrieveaction.ts +419 -0
  144. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  145. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  146. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  147. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  148. package/packages/orq-rc/src/models/operations/retrievememory.ts +198 -0
  149. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +217 -0
  150. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +1124 -0
  151. package/packages/orq-rc/src/models/operations/reviewaction.ts +258 -0
  152. package/packages/orq-rc/src/models/operations/runagent.ts +3428 -0
  153. package/packages/orq-rc/src/models/operations/streamrunagent.ts +3361 -0
  154. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -11
  155. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  156. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  157. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  158. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  159. package/packages/orq-rc/src/models/operations/updateeval.ts +6627 -1224
  160. package/packages/orq-rc/src/models/operations/updatememory.ts +274 -0
  161. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +293 -0
  162. package/packages/orq-rc/src/models/operations/updatememorystore.ts +1348 -0
  163. package/packages/orq-rc/src/models/operations/updateprompt.ts +64 -19
  164. package/packages/orq-rc/src/sdk/agents.ts +148 -0
  165. package/packages/orq-rc/src/sdk/budgets.ts +5 -5
  166. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  167. package/packages/orq-rc/src/sdk/sdk.ts +27 -1
  168. package/src/lib/config.ts +3 -3
  169. package/src/mcp-server/mcp-server.ts +1 -1
  170. package/src/mcp-server/server.ts +1 -1
  171. package/src/models/operations/createbudget.ts +2 -2
  172. package/src/models/operations/createcontact.ts +2 -2
  173. package/src/models/operations/createdataset.ts +2 -2
  174. package/src/models/operations/createdatasetitem.ts +2 -2
  175. package/src/models/operations/createdatasource.ts +2 -2
  176. package/src/models/operations/createeval.ts +16 -16
  177. package/src/models/operations/fileget.ts +2 -2
  178. package/src/models/operations/filelist.ts +2 -2
  179. package/src/models/operations/fileupload.ts +2 -2
  180. package/src/models/operations/getbudget.ts +2 -2
  181. package/src/models/operations/getevals.ts +28 -28
  182. package/src/models/operations/listbudgets.ts +2 -2
  183. package/src/models/operations/listcontacts.ts +2 -2
  184. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  185. package/src/models/operations/listdatasets.ts +2 -2
  186. package/src/models/operations/listdatasources.ts +2 -2
  187. package/src/models/operations/retrievecontact.ts +2 -2
  188. package/src/models/operations/retrievedatapoint.ts +2 -2
  189. package/src/models/operations/retrievedataset.ts +2 -2
  190. package/src/models/operations/retrievedatasource.ts +2 -2
  191. package/src/models/operations/updatebudget.ts +2 -2
  192. package/src/models/operations/updatecontact.ts +2 -2
  193. package/src/models/operations/updatedatapoint.ts +2 -2
  194. package/src/models/operations/updatedataset.ts +2 -2
  195. package/src/models/operations/updatedatasource.ts +2 -2
  196. package/src/models/operations/updateeval.ts +16 -16
  197. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
@@ -0,0 +1,1956 @@
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 const TwentyTwo = {
13
+ JinaJinaEmbeddingsV3: "jina/jina-embeddings-v3",
14
+ } as const;
15
+ export type TwentyTwo = ClosedEnum<typeof TwentyTwo>;
16
+
17
+ export const TwentyOne = {
18
+ JinaJinaClipV2: "jina/jina-clip-v2",
19
+ } as const;
20
+ export type TwentyOne = ClosedEnum<typeof TwentyOne>;
21
+
22
+ export const Twenty = {
23
+ JinaJinaEmbeddingsV2BaseDe: "jina/jina-embeddings-v2-base-de",
24
+ } as const;
25
+ export type Twenty = ClosedEnum<typeof Twenty>;
26
+
27
+ export const Nineteen = {
28
+ JinaJinaEmbeddingsV2BaseCode: "jina/jina-embeddings-v2-base-code",
29
+ } as const;
30
+ export type Nineteen = ClosedEnum<typeof Nineteen>;
31
+
32
+ export const Eighteen = {
33
+ JinaJinaEmbeddingsV2BaseZh: "jina/jina-embeddings-v2-base-zh",
34
+ } as const;
35
+ export type Eighteen = ClosedEnum<typeof Eighteen>;
36
+
37
+ export const Seventeen = {
38
+ JinaJinaEmbeddingsV2BaseEn: "jina/jina-embeddings-v2-base-en",
39
+ } as const;
40
+ export type Seventeen = ClosedEnum<typeof Seventeen>;
41
+
42
+ export const Sixteen = {
43
+ JinaJinaEmbeddingsV2BaseEs: "jina/jina-embeddings-v2-base-es",
44
+ } as const;
45
+ export type Sixteen = ClosedEnum<typeof Sixteen>;
46
+
47
+ export const Fifteen = {
48
+ JinaJinaClipV1: "jina/jina-clip-v1",
49
+ } as const;
50
+ export type Fifteen = ClosedEnum<typeof Fifteen>;
51
+
52
+ export const Fourteen = {
53
+ GoogleAiTextEmbedding004: "google-ai/text-embedding-004",
54
+ } as const;
55
+ export type Fourteen = ClosedEnum<typeof Fourteen>;
56
+
57
+ export const Thirteen = {
58
+ GoogleMultimodalembeddingAt001: "google/multimodalembedding@001",
59
+ } as const;
60
+ export type Thirteen = ClosedEnum<typeof Thirteen>;
61
+
62
+ export const Model12 = {
63
+ GoogleTextMultilingualEmbedding002: "google/text-multilingual-embedding-002",
64
+ } as const;
65
+ export type Model12 = ClosedEnum<typeof Model12>;
66
+
67
+ export const Model11 = {
68
+ GoogleTextEmbedding005: "google/text-embedding-005",
69
+ } as const;
70
+ export type Model11 = ClosedEnum<typeof Model11>;
71
+
72
+ export const Model10 = {
73
+ GoogleGeminiEmbedding001: "google/gemini-embedding-001",
74
+ } as const;
75
+ export type Model10 = ClosedEnum<typeof Model10>;
76
+
77
+ export const Model9 = {
78
+ OpenaiTextEmbeddingAda002: "openai/text-embedding-ada-002",
79
+ } as const;
80
+ export type Model9 = ClosedEnum<typeof Model9>;
81
+
82
+ export const Model8 = {
83
+ OpenaiTextEmbedding3Small: "openai/text-embedding-3-small",
84
+ } as const;
85
+ export type Model8 = ClosedEnum<typeof Model8>;
86
+
87
+ export const Model7 = {
88
+ OpenaiTextEmbedding3Large: "openai/text-embedding-3-large",
89
+ } as const;
90
+ export type Model7 = ClosedEnum<typeof Model7>;
91
+
92
+ export const Model6 = {
93
+ AzureTextEmbedding3Small: "azure/text-embedding-3-small",
94
+ } as const;
95
+ export type Model6 = ClosedEnum<typeof Model6>;
96
+
97
+ export const Model5 = {
98
+ AzureTextEmbeddingAda002: "azure/text-embedding-ada-002",
99
+ } as const;
100
+ export type Model5 = ClosedEnum<typeof Model5>;
101
+
102
+ export const Model4 = {
103
+ CohereEmbedEnglishV30: "cohere/embed-english-v3.0",
104
+ } as const;
105
+ export type Model4 = ClosedEnum<typeof Model4>;
106
+
107
+ export const Model3 = {
108
+ CohereEmbedEnglishLightV30: "cohere/embed-english-light-v3.0",
109
+ } as const;
110
+ export type Model3 = ClosedEnum<typeof Model3>;
111
+
112
+ export const Model2 = {
113
+ CohereEmbedMultilingualLightV30: "cohere/embed-multilingual-light-v3.0",
114
+ } as const;
115
+ export type Model2 = ClosedEnum<typeof Model2>;
116
+
117
+ export const Model1 = {
118
+ CohereEmbedMultilingualV30: "cohere/embed-multilingual-v3.0",
119
+ } as const;
120
+ export type Model1 = ClosedEnum<typeof Model1>;
121
+
122
+ export type Model =
123
+ | Model1
124
+ | Model2
125
+ | Model3
126
+ | Model4
127
+ | Model5
128
+ | Model6
129
+ | Model7
130
+ | Model8
131
+ | Model9
132
+ | Model10
133
+ | Model11
134
+ | Model12
135
+ | Thirteen
136
+ | Fourteen
137
+ | Fifteen
138
+ | Sixteen
139
+ | Seventeen
140
+ | Eighteen
141
+ | Nineteen
142
+ | Twenty
143
+ | TwentyOne
144
+ | TwentyTwo;
145
+
146
+ export type EmbeddingConfig = {
147
+ model:
148
+ | Model1
149
+ | Model2
150
+ | Model3
151
+ | Model4
152
+ | Model5
153
+ | Model6
154
+ | Model7
155
+ | Model8
156
+ | Model9
157
+ | Model10
158
+ | Model11
159
+ | Model12
160
+ | Thirteen
161
+ | Fourteen
162
+ | Fifteen
163
+ | Sixteen
164
+ | Seventeen
165
+ | Eighteen
166
+ | Nineteen
167
+ | Twenty
168
+ | TwentyOne
169
+ | TwentyTwo;
170
+ };
171
+
172
+ export type CreateMemoryStoreRequestBody = {
173
+ /**
174
+ * The unique key of the memory store. The key is unique and inmmutable and cannot be repeated within the same workspace.
175
+ */
176
+ key: string;
177
+ embeddingConfig: EmbeddingConfig;
178
+ /**
179
+ * The description of the memory store. Be as precise as possible to help the AI to understand the purpose of the memory store.
180
+ */
181
+ description: string;
182
+ /**
183
+ * The default time to live of every memory document created within the memory store. Useful to control if the documents in the memory should be store for short or long term.
184
+ */
185
+ ttl?: number | undefined;
186
+ /**
187
+ * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
188
+ */
189
+ path: string;
190
+ };
191
+
192
+ export const CreateMemoryStoreModel22 = {
193
+ JinaJinaEmbeddingsV3: "jina/jina-embeddings-v3",
194
+ } as const;
195
+ export type CreateMemoryStoreModel22 = ClosedEnum<
196
+ typeof CreateMemoryStoreModel22
197
+ >;
198
+
199
+ export const CreateMemoryStoreModel21 = {
200
+ JinaJinaClipV2: "jina/jina-clip-v2",
201
+ } as const;
202
+ export type CreateMemoryStoreModel21 = ClosedEnum<
203
+ typeof CreateMemoryStoreModel21
204
+ >;
205
+
206
+ export const CreateMemoryStoreModel20 = {
207
+ JinaJinaEmbeddingsV2BaseDe: "jina/jina-embeddings-v2-base-de",
208
+ } as const;
209
+ export type CreateMemoryStoreModel20 = ClosedEnum<
210
+ typeof CreateMemoryStoreModel20
211
+ >;
212
+
213
+ export const CreateMemoryStoreModel19 = {
214
+ JinaJinaEmbeddingsV2BaseCode: "jina/jina-embeddings-v2-base-code",
215
+ } as const;
216
+ export type CreateMemoryStoreModel19 = ClosedEnum<
217
+ typeof CreateMemoryStoreModel19
218
+ >;
219
+
220
+ export const CreateMemoryStoreModel18 = {
221
+ JinaJinaEmbeddingsV2BaseZh: "jina/jina-embeddings-v2-base-zh",
222
+ } as const;
223
+ export type CreateMemoryStoreModel18 = ClosedEnum<
224
+ typeof CreateMemoryStoreModel18
225
+ >;
226
+
227
+ export const CreateMemoryStoreModel17 = {
228
+ JinaJinaEmbeddingsV2BaseEn: "jina/jina-embeddings-v2-base-en",
229
+ } as const;
230
+ export type CreateMemoryStoreModel17 = ClosedEnum<
231
+ typeof CreateMemoryStoreModel17
232
+ >;
233
+
234
+ export const CreateMemoryStoreModel16 = {
235
+ JinaJinaEmbeddingsV2BaseEs: "jina/jina-embeddings-v2-base-es",
236
+ } as const;
237
+ export type CreateMemoryStoreModel16 = ClosedEnum<
238
+ typeof CreateMemoryStoreModel16
239
+ >;
240
+
241
+ export const CreateMemoryStoreModel15 = {
242
+ JinaJinaClipV1: "jina/jina-clip-v1",
243
+ } as const;
244
+ export type CreateMemoryStoreModel15 = ClosedEnum<
245
+ typeof CreateMemoryStoreModel15
246
+ >;
247
+
248
+ export const CreateMemoryStoreModel14 = {
249
+ GoogleAiTextEmbedding004: "google-ai/text-embedding-004",
250
+ } as const;
251
+ export type CreateMemoryStoreModel14 = ClosedEnum<
252
+ typeof CreateMemoryStoreModel14
253
+ >;
254
+
255
+ export const CreateMemoryStoreModel13 = {
256
+ GoogleMultimodalembeddingAt001: "google/multimodalembedding@001",
257
+ } as const;
258
+ export type CreateMemoryStoreModel13 = ClosedEnum<
259
+ typeof CreateMemoryStoreModel13
260
+ >;
261
+
262
+ export const CreateMemoryStoreModel12 = {
263
+ GoogleTextMultilingualEmbedding002: "google/text-multilingual-embedding-002",
264
+ } as const;
265
+ export type CreateMemoryStoreModel12 = ClosedEnum<
266
+ typeof CreateMemoryStoreModel12
267
+ >;
268
+
269
+ export const CreateMemoryStoreModel11 = {
270
+ GoogleTextEmbedding005: "google/text-embedding-005",
271
+ } as const;
272
+ export type CreateMemoryStoreModel11 = ClosedEnum<
273
+ typeof CreateMemoryStoreModel11
274
+ >;
275
+
276
+ export const CreateMemoryStoreModel10 = {
277
+ GoogleGeminiEmbedding001: "google/gemini-embedding-001",
278
+ } as const;
279
+ export type CreateMemoryStoreModel10 = ClosedEnum<
280
+ typeof CreateMemoryStoreModel10
281
+ >;
282
+
283
+ export const CreateMemoryStoreModel9 = {
284
+ OpenaiTextEmbeddingAda002: "openai/text-embedding-ada-002",
285
+ } as const;
286
+ export type CreateMemoryStoreModel9 = ClosedEnum<
287
+ typeof CreateMemoryStoreModel9
288
+ >;
289
+
290
+ export const CreateMemoryStoreModel8 = {
291
+ OpenaiTextEmbedding3Small: "openai/text-embedding-3-small",
292
+ } as const;
293
+ export type CreateMemoryStoreModel8 = ClosedEnum<
294
+ typeof CreateMemoryStoreModel8
295
+ >;
296
+
297
+ export const CreateMemoryStoreModel7 = {
298
+ OpenaiTextEmbedding3Large: "openai/text-embedding-3-large",
299
+ } as const;
300
+ export type CreateMemoryStoreModel7 = ClosedEnum<
301
+ typeof CreateMemoryStoreModel7
302
+ >;
303
+
304
+ export const CreateMemoryStoreModel6 = {
305
+ AzureTextEmbedding3Small: "azure/text-embedding-3-small",
306
+ } as const;
307
+ export type CreateMemoryStoreModel6 = ClosedEnum<
308
+ typeof CreateMemoryStoreModel6
309
+ >;
310
+
311
+ export const CreateMemoryStoreModel5 = {
312
+ AzureTextEmbeddingAda002: "azure/text-embedding-ada-002",
313
+ } as const;
314
+ export type CreateMemoryStoreModel5 = ClosedEnum<
315
+ typeof CreateMemoryStoreModel5
316
+ >;
317
+
318
+ export const CreateMemoryStoreModel4 = {
319
+ CohereEmbedEnglishV30: "cohere/embed-english-v3.0",
320
+ } as const;
321
+ export type CreateMemoryStoreModel4 = ClosedEnum<
322
+ typeof CreateMemoryStoreModel4
323
+ >;
324
+
325
+ export const CreateMemoryStoreModel3 = {
326
+ CohereEmbedEnglishLightV30: "cohere/embed-english-light-v3.0",
327
+ } as const;
328
+ export type CreateMemoryStoreModel3 = ClosedEnum<
329
+ typeof CreateMemoryStoreModel3
330
+ >;
331
+
332
+ export const CreateMemoryStoreModel2 = {
333
+ CohereEmbedMultilingualLightV30: "cohere/embed-multilingual-light-v3.0",
334
+ } as const;
335
+ export type CreateMemoryStoreModel2 = ClosedEnum<
336
+ typeof CreateMemoryStoreModel2
337
+ >;
338
+
339
+ export const CreateMemoryStoreModel1 = {
340
+ CohereEmbedMultilingualV30: "cohere/embed-multilingual-v3.0",
341
+ } as const;
342
+ export type CreateMemoryStoreModel1 = ClosedEnum<
343
+ typeof CreateMemoryStoreModel1
344
+ >;
345
+
346
+ export type CreateMemoryStoreModel =
347
+ | CreateMemoryStoreModel1
348
+ | CreateMemoryStoreModel2
349
+ | CreateMemoryStoreModel3
350
+ | CreateMemoryStoreModel4
351
+ | CreateMemoryStoreModel5
352
+ | CreateMemoryStoreModel6
353
+ | CreateMemoryStoreModel7
354
+ | CreateMemoryStoreModel8
355
+ | CreateMemoryStoreModel9
356
+ | CreateMemoryStoreModel10
357
+ | CreateMemoryStoreModel11
358
+ | CreateMemoryStoreModel12
359
+ | CreateMemoryStoreModel13
360
+ | CreateMemoryStoreModel14
361
+ | CreateMemoryStoreModel15
362
+ | CreateMemoryStoreModel16
363
+ | CreateMemoryStoreModel17
364
+ | CreateMemoryStoreModel18
365
+ | CreateMemoryStoreModel19
366
+ | CreateMemoryStoreModel20
367
+ | CreateMemoryStoreModel21
368
+ | CreateMemoryStoreModel22;
369
+
370
+ export type CreateMemoryStoreEmbeddingConfig = {
371
+ model:
372
+ | CreateMemoryStoreModel1
373
+ | CreateMemoryStoreModel2
374
+ | CreateMemoryStoreModel3
375
+ | CreateMemoryStoreModel4
376
+ | CreateMemoryStoreModel5
377
+ | CreateMemoryStoreModel6
378
+ | CreateMemoryStoreModel7
379
+ | CreateMemoryStoreModel8
380
+ | CreateMemoryStoreModel9
381
+ | CreateMemoryStoreModel10
382
+ | CreateMemoryStoreModel11
383
+ | CreateMemoryStoreModel12
384
+ | CreateMemoryStoreModel13
385
+ | CreateMemoryStoreModel14
386
+ | CreateMemoryStoreModel15
387
+ | CreateMemoryStoreModel16
388
+ | CreateMemoryStoreModel17
389
+ | CreateMemoryStoreModel18
390
+ | CreateMemoryStoreModel19
391
+ | CreateMemoryStoreModel20
392
+ | CreateMemoryStoreModel21
393
+ | CreateMemoryStoreModel22;
394
+ };
395
+
396
+ /**
397
+ * Memory store successfully created with the specified configuration.
398
+ */
399
+ export type CreateMemoryStoreResponseBody = {
400
+ /**
401
+ * The unique identifier of the memory store
402
+ */
403
+ id: string;
404
+ /**
405
+ * The unique key of the memory store. The key is unique and inmmutable and cannot be repeated within the same workspace.
406
+ */
407
+ key: string;
408
+ /**
409
+ * The description of the memory store. Be as precise as possible to help the AI to understand the purpose of the memory store.
410
+ */
411
+ description: string;
412
+ /**
413
+ * The user ID of the creator
414
+ */
415
+ createdById?: string | undefined;
416
+ /**
417
+ * The user ID of the last updater
418
+ */
419
+ updatedById?: string | undefined;
420
+ /**
421
+ * The creation date of the memory store
422
+ */
423
+ created: string;
424
+ /**
425
+ * The last update date of the memory store
426
+ */
427
+ updated: string;
428
+ /**
429
+ * The default time to live of every memory document created within the memory store. Useful to control if the documents in the memory should be store for short or long term.
430
+ */
431
+ ttl?: number | undefined;
432
+ embeddingConfig: CreateMemoryStoreEmbeddingConfig;
433
+ };
434
+
435
+ /** @internal */
436
+ export const TwentyTwo$inboundSchema: z.ZodNativeEnum<typeof TwentyTwo> = z
437
+ .nativeEnum(TwentyTwo);
438
+
439
+ /** @internal */
440
+ export const TwentyTwo$outboundSchema: z.ZodNativeEnum<typeof TwentyTwo> =
441
+ TwentyTwo$inboundSchema;
442
+
443
+ /**
444
+ * @internal
445
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
446
+ */
447
+ export namespace TwentyTwo$ {
448
+ /** @deprecated use `TwentyTwo$inboundSchema` instead. */
449
+ export const inboundSchema = TwentyTwo$inboundSchema;
450
+ /** @deprecated use `TwentyTwo$outboundSchema` instead. */
451
+ export const outboundSchema = TwentyTwo$outboundSchema;
452
+ }
453
+
454
+ /** @internal */
455
+ export const TwentyOne$inboundSchema: z.ZodNativeEnum<typeof TwentyOne> = z
456
+ .nativeEnum(TwentyOne);
457
+
458
+ /** @internal */
459
+ export const TwentyOne$outboundSchema: z.ZodNativeEnum<typeof TwentyOne> =
460
+ TwentyOne$inboundSchema;
461
+
462
+ /**
463
+ * @internal
464
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
465
+ */
466
+ export namespace TwentyOne$ {
467
+ /** @deprecated use `TwentyOne$inboundSchema` instead. */
468
+ export const inboundSchema = TwentyOne$inboundSchema;
469
+ /** @deprecated use `TwentyOne$outboundSchema` instead. */
470
+ export const outboundSchema = TwentyOne$outboundSchema;
471
+ }
472
+
473
+ /** @internal */
474
+ export const Twenty$inboundSchema: z.ZodNativeEnum<typeof Twenty> = z
475
+ .nativeEnum(Twenty);
476
+
477
+ /** @internal */
478
+ export const Twenty$outboundSchema: z.ZodNativeEnum<typeof Twenty> =
479
+ Twenty$inboundSchema;
480
+
481
+ /**
482
+ * @internal
483
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
484
+ */
485
+ export namespace Twenty$ {
486
+ /** @deprecated use `Twenty$inboundSchema` instead. */
487
+ export const inboundSchema = Twenty$inboundSchema;
488
+ /** @deprecated use `Twenty$outboundSchema` instead. */
489
+ export const outboundSchema = Twenty$outboundSchema;
490
+ }
491
+
492
+ /** @internal */
493
+ export const Nineteen$inboundSchema: z.ZodNativeEnum<typeof Nineteen> = z
494
+ .nativeEnum(Nineteen);
495
+
496
+ /** @internal */
497
+ export const Nineteen$outboundSchema: z.ZodNativeEnum<typeof Nineteen> =
498
+ Nineteen$inboundSchema;
499
+
500
+ /**
501
+ * @internal
502
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
503
+ */
504
+ export namespace Nineteen$ {
505
+ /** @deprecated use `Nineteen$inboundSchema` instead. */
506
+ export const inboundSchema = Nineteen$inboundSchema;
507
+ /** @deprecated use `Nineteen$outboundSchema` instead. */
508
+ export const outboundSchema = Nineteen$outboundSchema;
509
+ }
510
+
511
+ /** @internal */
512
+ export const Eighteen$inboundSchema: z.ZodNativeEnum<typeof Eighteen> = z
513
+ .nativeEnum(Eighteen);
514
+
515
+ /** @internal */
516
+ export const Eighteen$outboundSchema: z.ZodNativeEnum<typeof Eighteen> =
517
+ Eighteen$inboundSchema;
518
+
519
+ /**
520
+ * @internal
521
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
522
+ */
523
+ export namespace Eighteen$ {
524
+ /** @deprecated use `Eighteen$inboundSchema` instead. */
525
+ export const inboundSchema = Eighteen$inboundSchema;
526
+ /** @deprecated use `Eighteen$outboundSchema` instead. */
527
+ export const outboundSchema = Eighteen$outboundSchema;
528
+ }
529
+
530
+ /** @internal */
531
+ export const Seventeen$inboundSchema: z.ZodNativeEnum<typeof Seventeen> = z
532
+ .nativeEnum(Seventeen);
533
+
534
+ /** @internal */
535
+ export const Seventeen$outboundSchema: z.ZodNativeEnum<typeof Seventeen> =
536
+ Seventeen$inboundSchema;
537
+
538
+ /**
539
+ * @internal
540
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
541
+ */
542
+ export namespace Seventeen$ {
543
+ /** @deprecated use `Seventeen$inboundSchema` instead. */
544
+ export const inboundSchema = Seventeen$inboundSchema;
545
+ /** @deprecated use `Seventeen$outboundSchema` instead. */
546
+ export const outboundSchema = Seventeen$outboundSchema;
547
+ }
548
+
549
+ /** @internal */
550
+ export const Sixteen$inboundSchema: z.ZodNativeEnum<typeof Sixteen> = z
551
+ .nativeEnum(Sixteen);
552
+
553
+ /** @internal */
554
+ export const Sixteen$outboundSchema: z.ZodNativeEnum<typeof Sixteen> =
555
+ Sixteen$inboundSchema;
556
+
557
+ /**
558
+ * @internal
559
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
560
+ */
561
+ export namespace Sixteen$ {
562
+ /** @deprecated use `Sixteen$inboundSchema` instead. */
563
+ export const inboundSchema = Sixteen$inboundSchema;
564
+ /** @deprecated use `Sixteen$outboundSchema` instead. */
565
+ export const outboundSchema = Sixteen$outboundSchema;
566
+ }
567
+
568
+ /** @internal */
569
+ export const Fifteen$inboundSchema: z.ZodNativeEnum<typeof Fifteen> = z
570
+ .nativeEnum(Fifteen);
571
+
572
+ /** @internal */
573
+ export const Fifteen$outboundSchema: z.ZodNativeEnum<typeof Fifteen> =
574
+ Fifteen$inboundSchema;
575
+
576
+ /**
577
+ * @internal
578
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
579
+ */
580
+ export namespace Fifteen$ {
581
+ /** @deprecated use `Fifteen$inboundSchema` instead. */
582
+ export const inboundSchema = Fifteen$inboundSchema;
583
+ /** @deprecated use `Fifteen$outboundSchema` instead. */
584
+ export const outboundSchema = Fifteen$outboundSchema;
585
+ }
586
+
587
+ /** @internal */
588
+ export const Fourteen$inboundSchema: z.ZodNativeEnum<typeof Fourteen> = z
589
+ .nativeEnum(Fourteen);
590
+
591
+ /** @internal */
592
+ export const Fourteen$outboundSchema: z.ZodNativeEnum<typeof Fourteen> =
593
+ Fourteen$inboundSchema;
594
+
595
+ /**
596
+ * @internal
597
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
598
+ */
599
+ export namespace Fourteen$ {
600
+ /** @deprecated use `Fourteen$inboundSchema` instead. */
601
+ export const inboundSchema = Fourteen$inboundSchema;
602
+ /** @deprecated use `Fourteen$outboundSchema` instead. */
603
+ export const outboundSchema = Fourteen$outboundSchema;
604
+ }
605
+
606
+ /** @internal */
607
+ export const Thirteen$inboundSchema: z.ZodNativeEnum<typeof Thirteen> = z
608
+ .nativeEnum(Thirteen);
609
+
610
+ /** @internal */
611
+ export const Thirteen$outboundSchema: z.ZodNativeEnum<typeof Thirteen> =
612
+ Thirteen$inboundSchema;
613
+
614
+ /**
615
+ * @internal
616
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
617
+ */
618
+ export namespace Thirteen$ {
619
+ /** @deprecated use `Thirteen$inboundSchema` instead. */
620
+ export const inboundSchema = Thirteen$inboundSchema;
621
+ /** @deprecated use `Thirteen$outboundSchema` instead. */
622
+ export const outboundSchema = Thirteen$outboundSchema;
623
+ }
624
+
625
+ /** @internal */
626
+ export const Model12$inboundSchema: z.ZodNativeEnum<typeof Model12> = z
627
+ .nativeEnum(Model12);
628
+
629
+ /** @internal */
630
+ export const Model12$outboundSchema: z.ZodNativeEnum<typeof Model12> =
631
+ Model12$inboundSchema;
632
+
633
+ /**
634
+ * @internal
635
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
636
+ */
637
+ export namespace Model12$ {
638
+ /** @deprecated use `Model12$inboundSchema` instead. */
639
+ export const inboundSchema = Model12$inboundSchema;
640
+ /** @deprecated use `Model12$outboundSchema` instead. */
641
+ export const outboundSchema = Model12$outboundSchema;
642
+ }
643
+
644
+ /** @internal */
645
+ export const Model11$inboundSchema: z.ZodNativeEnum<typeof Model11> = z
646
+ .nativeEnum(Model11);
647
+
648
+ /** @internal */
649
+ export const Model11$outboundSchema: z.ZodNativeEnum<typeof Model11> =
650
+ Model11$inboundSchema;
651
+
652
+ /**
653
+ * @internal
654
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
655
+ */
656
+ export namespace Model11$ {
657
+ /** @deprecated use `Model11$inboundSchema` instead. */
658
+ export const inboundSchema = Model11$inboundSchema;
659
+ /** @deprecated use `Model11$outboundSchema` instead. */
660
+ export const outboundSchema = Model11$outboundSchema;
661
+ }
662
+
663
+ /** @internal */
664
+ export const Model10$inboundSchema: z.ZodNativeEnum<typeof Model10> = z
665
+ .nativeEnum(Model10);
666
+
667
+ /** @internal */
668
+ export const Model10$outboundSchema: z.ZodNativeEnum<typeof Model10> =
669
+ Model10$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 Model10$ {
676
+ /** @deprecated use `Model10$inboundSchema` instead. */
677
+ export const inboundSchema = Model10$inboundSchema;
678
+ /** @deprecated use `Model10$outboundSchema` instead. */
679
+ export const outboundSchema = Model10$outboundSchema;
680
+ }
681
+
682
+ /** @internal */
683
+ export const Model9$inboundSchema: z.ZodNativeEnum<typeof Model9> = z
684
+ .nativeEnum(Model9);
685
+
686
+ /** @internal */
687
+ export const Model9$outboundSchema: z.ZodNativeEnum<typeof Model9> =
688
+ Model9$inboundSchema;
689
+
690
+ /**
691
+ * @internal
692
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
693
+ */
694
+ export namespace Model9$ {
695
+ /** @deprecated use `Model9$inboundSchema` instead. */
696
+ export const inboundSchema = Model9$inboundSchema;
697
+ /** @deprecated use `Model9$outboundSchema` instead. */
698
+ export const outboundSchema = Model9$outboundSchema;
699
+ }
700
+
701
+ /** @internal */
702
+ export const Model8$inboundSchema: z.ZodNativeEnum<typeof Model8> = z
703
+ .nativeEnum(Model8);
704
+
705
+ /** @internal */
706
+ export const Model8$outboundSchema: z.ZodNativeEnum<typeof Model8> =
707
+ Model8$inboundSchema;
708
+
709
+ /**
710
+ * @internal
711
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
712
+ */
713
+ export namespace Model8$ {
714
+ /** @deprecated use `Model8$inboundSchema` instead. */
715
+ export const inboundSchema = Model8$inboundSchema;
716
+ /** @deprecated use `Model8$outboundSchema` instead. */
717
+ export const outboundSchema = Model8$outboundSchema;
718
+ }
719
+
720
+ /** @internal */
721
+ export const Model7$inboundSchema: z.ZodNativeEnum<typeof Model7> = z
722
+ .nativeEnum(Model7);
723
+
724
+ /** @internal */
725
+ export const Model7$outboundSchema: z.ZodNativeEnum<typeof Model7> =
726
+ Model7$inboundSchema;
727
+
728
+ /**
729
+ * @internal
730
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
731
+ */
732
+ export namespace Model7$ {
733
+ /** @deprecated use `Model7$inboundSchema` instead. */
734
+ export const inboundSchema = Model7$inboundSchema;
735
+ /** @deprecated use `Model7$outboundSchema` instead. */
736
+ export const outboundSchema = Model7$outboundSchema;
737
+ }
738
+
739
+ /** @internal */
740
+ export const Model6$inboundSchema: z.ZodNativeEnum<typeof Model6> = z
741
+ .nativeEnum(Model6);
742
+
743
+ /** @internal */
744
+ export const Model6$outboundSchema: z.ZodNativeEnum<typeof Model6> =
745
+ Model6$inboundSchema;
746
+
747
+ /**
748
+ * @internal
749
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
750
+ */
751
+ export namespace Model6$ {
752
+ /** @deprecated use `Model6$inboundSchema` instead. */
753
+ export const inboundSchema = Model6$inboundSchema;
754
+ /** @deprecated use `Model6$outboundSchema` instead. */
755
+ export const outboundSchema = Model6$outboundSchema;
756
+ }
757
+
758
+ /** @internal */
759
+ export const Model5$inboundSchema: z.ZodNativeEnum<typeof Model5> = z
760
+ .nativeEnum(Model5);
761
+
762
+ /** @internal */
763
+ export const Model5$outboundSchema: z.ZodNativeEnum<typeof Model5> =
764
+ Model5$inboundSchema;
765
+
766
+ /**
767
+ * @internal
768
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
769
+ */
770
+ export namespace Model5$ {
771
+ /** @deprecated use `Model5$inboundSchema` instead. */
772
+ export const inboundSchema = Model5$inboundSchema;
773
+ /** @deprecated use `Model5$outboundSchema` instead. */
774
+ export const outboundSchema = Model5$outboundSchema;
775
+ }
776
+
777
+ /** @internal */
778
+ export const Model4$inboundSchema: z.ZodNativeEnum<typeof Model4> = z
779
+ .nativeEnum(Model4);
780
+
781
+ /** @internal */
782
+ export const Model4$outboundSchema: z.ZodNativeEnum<typeof Model4> =
783
+ Model4$inboundSchema;
784
+
785
+ /**
786
+ * @internal
787
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
788
+ */
789
+ export namespace Model4$ {
790
+ /** @deprecated use `Model4$inboundSchema` instead. */
791
+ export const inboundSchema = Model4$inboundSchema;
792
+ /** @deprecated use `Model4$outboundSchema` instead. */
793
+ export const outboundSchema = Model4$outboundSchema;
794
+ }
795
+
796
+ /** @internal */
797
+ export const Model3$inboundSchema: z.ZodNativeEnum<typeof Model3> = z
798
+ .nativeEnum(Model3);
799
+
800
+ /** @internal */
801
+ export const Model3$outboundSchema: z.ZodNativeEnum<typeof Model3> =
802
+ Model3$inboundSchema;
803
+
804
+ /**
805
+ * @internal
806
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
807
+ */
808
+ export namespace Model3$ {
809
+ /** @deprecated use `Model3$inboundSchema` instead. */
810
+ export const inboundSchema = Model3$inboundSchema;
811
+ /** @deprecated use `Model3$outboundSchema` instead. */
812
+ export const outboundSchema = Model3$outboundSchema;
813
+ }
814
+
815
+ /** @internal */
816
+ export const Model2$inboundSchema: z.ZodNativeEnum<typeof Model2> = z
817
+ .nativeEnum(Model2);
818
+
819
+ /** @internal */
820
+ export const Model2$outboundSchema: z.ZodNativeEnum<typeof Model2> =
821
+ Model2$inboundSchema;
822
+
823
+ /**
824
+ * @internal
825
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
826
+ */
827
+ export namespace Model2$ {
828
+ /** @deprecated use `Model2$inboundSchema` instead. */
829
+ export const inboundSchema = Model2$inboundSchema;
830
+ /** @deprecated use `Model2$outboundSchema` instead. */
831
+ export const outboundSchema = Model2$outboundSchema;
832
+ }
833
+
834
+ /** @internal */
835
+ export const Model1$inboundSchema: z.ZodNativeEnum<typeof Model1> = z
836
+ .nativeEnum(Model1);
837
+
838
+ /** @internal */
839
+ export const Model1$outboundSchema: z.ZodNativeEnum<typeof Model1> =
840
+ Model1$inboundSchema;
841
+
842
+ /**
843
+ * @internal
844
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
845
+ */
846
+ export namespace Model1$ {
847
+ /** @deprecated use `Model1$inboundSchema` instead. */
848
+ export const inboundSchema = Model1$inboundSchema;
849
+ /** @deprecated use `Model1$outboundSchema` instead. */
850
+ export const outboundSchema = Model1$outboundSchema;
851
+ }
852
+
853
+ /** @internal */
854
+ export const Model$inboundSchema: z.ZodType<Model, z.ZodTypeDef, unknown> = z
855
+ .union([
856
+ Model1$inboundSchema,
857
+ Model2$inboundSchema,
858
+ Model3$inboundSchema,
859
+ Model4$inboundSchema,
860
+ Model5$inboundSchema,
861
+ Model6$inboundSchema,
862
+ Model7$inboundSchema,
863
+ Model8$inboundSchema,
864
+ Model9$inboundSchema,
865
+ Model10$inboundSchema,
866
+ Model11$inboundSchema,
867
+ Model12$inboundSchema,
868
+ Thirteen$inboundSchema,
869
+ Fourteen$inboundSchema,
870
+ Fifteen$inboundSchema,
871
+ Sixteen$inboundSchema,
872
+ Seventeen$inboundSchema,
873
+ Eighteen$inboundSchema,
874
+ Nineteen$inboundSchema,
875
+ Twenty$inboundSchema,
876
+ TwentyOne$inboundSchema,
877
+ TwentyTwo$inboundSchema,
878
+ ]);
879
+
880
+ /** @internal */
881
+ export type Model$Outbound =
882
+ | string
883
+ | string
884
+ | string
885
+ | string
886
+ | string
887
+ | string
888
+ | string
889
+ | string
890
+ | string
891
+ | string
892
+ | string
893
+ | string
894
+ | string
895
+ | string
896
+ | string
897
+ | string
898
+ | string
899
+ | string
900
+ | string
901
+ | string
902
+ | string
903
+ | string;
904
+
905
+ /** @internal */
906
+ export const Model$outboundSchema: z.ZodType<
907
+ Model$Outbound,
908
+ z.ZodTypeDef,
909
+ Model
910
+ > = z.union([
911
+ Model1$outboundSchema,
912
+ Model2$outboundSchema,
913
+ Model3$outboundSchema,
914
+ Model4$outboundSchema,
915
+ Model5$outboundSchema,
916
+ Model6$outboundSchema,
917
+ Model7$outboundSchema,
918
+ Model8$outboundSchema,
919
+ Model9$outboundSchema,
920
+ Model10$outboundSchema,
921
+ Model11$outboundSchema,
922
+ Model12$outboundSchema,
923
+ Thirteen$outboundSchema,
924
+ Fourteen$outboundSchema,
925
+ Fifteen$outboundSchema,
926
+ Sixteen$outboundSchema,
927
+ Seventeen$outboundSchema,
928
+ Eighteen$outboundSchema,
929
+ Nineteen$outboundSchema,
930
+ Twenty$outboundSchema,
931
+ TwentyOne$outboundSchema,
932
+ TwentyTwo$outboundSchema,
933
+ ]);
934
+
935
+ /**
936
+ * @internal
937
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
938
+ */
939
+ export namespace Model$ {
940
+ /** @deprecated use `Model$inboundSchema` instead. */
941
+ export const inboundSchema = Model$inboundSchema;
942
+ /** @deprecated use `Model$outboundSchema` instead. */
943
+ export const outboundSchema = Model$outboundSchema;
944
+ /** @deprecated use `Model$Outbound` instead. */
945
+ export type Outbound = Model$Outbound;
946
+ }
947
+
948
+ export function modelToJSON(model: Model): string {
949
+ return JSON.stringify(Model$outboundSchema.parse(model));
950
+ }
951
+
952
+ export function modelFromJSON(
953
+ jsonString: string,
954
+ ): SafeParseResult<Model, SDKValidationError> {
955
+ return safeParse(
956
+ jsonString,
957
+ (x) => Model$inboundSchema.parse(JSON.parse(x)),
958
+ `Failed to parse 'Model' from JSON`,
959
+ );
960
+ }
961
+
962
+ /** @internal */
963
+ export const EmbeddingConfig$inboundSchema: z.ZodType<
964
+ EmbeddingConfig,
965
+ z.ZodTypeDef,
966
+ unknown
967
+ > = z.object({
968
+ model: z.union([
969
+ Model1$inboundSchema,
970
+ Model2$inboundSchema,
971
+ Model3$inboundSchema,
972
+ Model4$inboundSchema,
973
+ Model5$inboundSchema,
974
+ Model6$inboundSchema,
975
+ Model7$inboundSchema,
976
+ Model8$inboundSchema,
977
+ Model9$inboundSchema,
978
+ Model10$inboundSchema,
979
+ Model11$inboundSchema,
980
+ Model12$inboundSchema,
981
+ Thirteen$inboundSchema,
982
+ Fourteen$inboundSchema,
983
+ Fifteen$inboundSchema,
984
+ Sixteen$inboundSchema,
985
+ Seventeen$inboundSchema,
986
+ Eighteen$inboundSchema,
987
+ Nineteen$inboundSchema,
988
+ Twenty$inboundSchema,
989
+ TwentyOne$inboundSchema,
990
+ TwentyTwo$inboundSchema,
991
+ ]),
992
+ });
993
+
994
+ /** @internal */
995
+ export type EmbeddingConfig$Outbound = {
996
+ model:
997
+ | string
998
+ | string
999
+ | string
1000
+ | string
1001
+ | string
1002
+ | string
1003
+ | string
1004
+ | string
1005
+ | string
1006
+ | string
1007
+ | string
1008
+ | string
1009
+ | string
1010
+ | string
1011
+ | string
1012
+ | string
1013
+ | string
1014
+ | string
1015
+ | string
1016
+ | string
1017
+ | string
1018
+ | string;
1019
+ };
1020
+
1021
+ /** @internal */
1022
+ export const EmbeddingConfig$outboundSchema: z.ZodType<
1023
+ EmbeddingConfig$Outbound,
1024
+ z.ZodTypeDef,
1025
+ EmbeddingConfig
1026
+ > = z.object({
1027
+ model: z.union([
1028
+ Model1$outboundSchema,
1029
+ Model2$outboundSchema,
1030
+ Model3$outboundSchema,
1031
+ Model4$outboundSchema,
1032
+ Model5$outboundSchema,
1033
+ Model6$outboundSchema,
1034
+ Model7$outboundSchema,
1035
+ Model8$outboundSchema,
1036
+ Model9$outboundSchema,
1037
+ Model10$outboundSchema,
1038
+ Model11$outboundSchema,
1039
+ Model12$outboundSchema,
1040
+ Thirteen$outboundSchema,
1041
+ Fourteen$outboundSchema,
1042
+ Fifteen$outboundSchema,
1043
+ Sixteen$outboundSchema,
1044
+ Seventeen$outboundSchema,
1045
+ Eighteen$outboundSchema,
1046
+ Nineteen$outboundSchema,
1047
+ Twenty$outboundSchema,
1048
+ TwentyOne$outboundSchema,
1049
+ TwentyTwo$outboundSchema,
1050
+ ]),
1051
+ });
1052
+
1053
+ /**
1054
+ * @internal
1055
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1056
+ */
1057
+ export namespace EmbeddingConfig$ {
1058
+ /** @deprecated use `EmbeddingConfig$inboundSchema` instead. */
1059
+ export const inboundSchema = EmbeddingConfig$inboundSchema;
1060
+ /** @deprecated use `EmbeddingConfig$outboundSchema` instead. */
1061
+ export const outboundSchema = EmbeddingConfig$outboundSchema;
1062
+ /** @deprecated use `EmbeddingConfig$Outbound` instead. */
1063
+ export type Outbound = EmbeddingConfig$Outbound;
1064
+ }
1065
+
1066
+ export function embeddingConfigToJSON(
1067
+ embeddingConfig: EmbeddingConfig,
1068
+ ): string {
1069
+ return JSON.stringify(EmbeddingConfig$outboundSchema.parse(embeddingConfig));
1070
+ }
1071
+
1072
+ export function embeddingConfigFromJSON(
1073
+ jsonString: string,
1074
+ ): SafeParseResult<EmbeddingConfig, SDKValidationError> {
1075
+ return safeParse(
1076
+ jsonString,
1077
+ (x) => EmbeddingConfig$inboundSchema.parse(JSON.parse(x)),
1078
+ `Failed to parse 'EmbeddingConfig' from JSON`,
1079
+ );
1080
+ }
1081
+
1082
+ /** @internal */
1083
+ export const CreateMemoryStoreRequestBody$inboundSchema: z.ZodType<
1084
+ CreateMemoryStoreRequestBody,
1085
+ z.ZodTypeDef,
1086
+ unknown
1087
+ > = z.object({
1088
+ key: z.string(),
1089
+ embedding_config: z.lazy(() => EmbeddingConfig$inboundSchema),
1090
+ description: z.string(),
1091
+ ttl: z.number().optional(),
1092
+ path: z.string(),
1093
+ }).transform((v) => {
1094
+ return remap$(v, {
1095
+ "embedding_config": "embeddingConfig",
1096
+ });
1097
+ });
1098
+
1099
+ /** @internal */
1100
+ export type CreateMemoryStoreRequestBody$Outbound = {
1101
+ key: string;
1102
+ embedding_config: EmbeddingConfig$Outbound;
1103
+ description: string;
1104
+ ttl?: number | undefined;
1105
+ path: string;
1106
+ };
1107
+
1108
+ /** @internal */
1109
+ export const CreateMemoryStoreRequestBody$outboundSchema: z.ZodType<
1110
+ CreateMemoryStoreRequestBody$Outbound,
1111
+ z.ZodTypeDef,
1112
+ CreateMemoryStoreRequestBody
1113
+ > = z.object({
1114
+ key: z.string(),
1115
+ embeddingConfig: z.lazy(() => EmbeddingConfig$outboundSchema),
1116
+ description: z.string(),
1117
+ ttl: z.number().optional(),
1118
+ path: z.string(),
1119
+ }).transform((v) => {
1120
+ return remap$(v, {
1121
+ embeddingConfig: "embedding_config",
1122
+ });
1123
+ });
1124
+
1125
+ /**
1126
+ * @internal
1127
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1128
+ */
1129
+ export namespace CreateMemoryStoreRequestBody$ {
1130
+ /** @deprecated use `CreateMemoryStoreRequestBody$inboundSchema` instead. */
1131
+ export const inboundSchema = CreateMemoryStoreRequestBody$inboundSchema;
1132
+ /** @deprecated use `CreateMemoryStoreRequestBody$outboundSchema` instead. */
1133
+ export const outboundSchema = CreateMemoryStoreRequestBody$outboundSchema;
1134
+ /** @deprecated use `CreateMemoryStoreRequestBody$Outbound` instead. */
1135
+ export type Outbound = CreateMemoryStoreRequestBody$Outbound;
1136
+ }
1137
+
1138
+ export function createMemoryStoreRequestBodyToJSON(
1139
+ createMemoryStoreRequestBody: CreateMemoryStoreRequestBody,
1140
+ ): string {
1141
+ return JSON.stringify(
1142
+ CreateMemoryStoreRequestBody$outboundSchema.parse(
1143
+ createMemoryStoreRequestBody,
1144
+ ),
1145
+ );
1146
+ }
1147
+
1148
+ export function createMemoryStoreRequestBodyFromJSON(
1149
+ jsonString: string,
1150
+ ): SafeParseResult<CreateMemoryStoreRequestBody, SDKValidationError> {
1151
+ return safeParse(
1152
+ jsonString,
1153
+ (x) => CreateMemoryStoreRequestBody$inboundSchema.parse(JSON.parse(x)),
1154
+ `Failed to parse 'CreateMemoryStoreRequestBody' from JSON`,
1155
+ );
1156
+ }
1157
+
1158
+ /** @internal */
1159
+ export const CreateMemoryStoreModel22$inboundSchema: z.ZodNativeEnum<
1160
+ typeof CreateMemoryStoreModel22
1161
+ > = z.nativeEnum(CreateMemoryStoreModel22);
1162
+
1163
+ /** @internal */
1164
+ export const CreateMemoryStoreModel22$outboundSchema: z.ZodNativeEnum<
1165
+ typeof CreateMemoryStoreModel22
1166
+ > = CreateMemoryStoreModel22$inboundSchema;
1167
+
1168
+ /**
1169
+ * @internal
1170
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1171
+ */
1172
+ export namespace CreateMemoryStoreModel22$ {
1173
+ /** @deprecated use `CreateMemoryStoreModel22$inboundSchema` instead. */
1174
+ export const inboundSchema = CreateMemoryStoreModel22$inboundSchema;
1175
+ /** @deprecated use `CreateMemoryStoreModel22$outboundSchema` instead. */
1176
+ export const outboundSchema = CreateMemoryStoreModel22$outboundSchema;
1177
+ }
1178
+
1179
+ /** @internal */
1180
+ export const CreateMemoryStoreModel21$inboundSchema: z.ZodNativeEnum<
1181
+ typeof CreateMemoryStoreModel21
1182
+ > = z.nativeEnum(CreateMemoryStoreModel21);
1183
+
1184
+ /** @internal */
1185
+ export const CreateMemoryStoreModel21$outboundSchema: z.ZodNativeEnum<
1186
+ typeof CreateMemoryStoreModel21
1187
+ > = CreateMemoryStoreModel21$inboundSchema;
1188
+
1189
+ /**
1190
+ * @internal
1191
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1192
+ */
1193
+ export namespace CreateMemoryStoreModel21$ {
1194
+ /** @deprecated use `CreateMemoryStoreModel21$inboundSchema` instead. */
1195
+ export const inboundSchema = CreateMemoryStoreModel21$inboundSchema;
1196
+ /** @deprecated use `CreateMemoryStoreModel21$outboundSchema` instead. */
1197
+ export const outboundSchema = CreateMemoryStoreModel21$outboundSchema;
1198
+ }
1199
+
1200
+ /** @internal */
1201
+ export const CreateMemoryStoreModel20$inboundSchema: z.ZodNativeEnum<
1202
+ typeof CreateMemoryStoreModel20
1203
+ > = z.nativeEnum(CreateMemoryStoreModel20);
1204
+
1205
+ /** @internal */
1206
+ export const CreateMemoryStoreModel20$outboundSchema: z.ZodNativeEnum<
1207
+ typeof CreateMemoryStoreModel20
1208
+ > = CreateMemoryStoreModel20$inboundSchema;
1209
+
1210
+ /**
1211
+ * @internal
1212
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1213
+ */
1214
+ export namespace CreateMemoryStoreModel20$ {
1215
+ /** @deprecated use `CreateMemoryStoreModel20$inboundSchema` instead. */
1216
+ export const inboundSchema = CreateMemoryStoreModel20$inboundSchema;
1217
+ /** @deprecated use `CreateMemoryStoreModel20$outboundSchema` instead. */
1218
+ export const outboundSchema = CreateMemoryStoreModel20$outboundSchema;
1219
+ }
1220
+
1221
+ /** @internal */
1222
+ export const CreateMemoryStoreModel19$inboundSchema: z.ZodNativeEnum<
1223
+ typeof CreateMemoryStoreModel19
1224
+ > = z.nativeEnum(CreateMemoryStoreModel19);
1225
+
1226
+ /** @internal */
1227
+ export const CreateMemoryStoreModel19$outboundSchema: z.ZodNativeEnum<
1228
+ typeof CreateMemoryStoreModel19
1229
+ > = CreateMemoryStoreModel19$inboundSchema;
1230
+
1231
+ /**
1232
+ * @internal
1233
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1234
+ */
1235
+ export namespace CreateMemoryStoreModel19$ {
1236
+ /** @deprecated use `CreateMemoryStoreModel19$inboundSchema` instead. */
1237
+ export const inboundSchema = CreateMemoryStoreModel19$inboundSchema;
1238
+ /** @deprecated use `CreateMemoryStoreModel19$outboundSchema` instead. */
1239
+ export const outboundSchema = CreateMemoryStoreModel19$outboundSchema;
1240
+ }
1241
+
1242
+ /** @internal */
1243
+ export const CreateMemoryStoreModel18$inboundSchema: z.ZodNativeEnum<
1244
+ typeof CreateMemoryStoreModel18
1245
+ > = z.nativeEnum(CreateMemoryStoreModel18);
1246
+
1247
+ /** @internal */
1248
+ export const CreateMemoryStoreModel18$outboundSchema: z.ZodNativeEnum<
1249
+ typeof CreateMemoryStoreModel18
1250
+ > = CreateMemoryStoreModel18$inboundSchema;
1251
+
1252
+ /**
1253
+ * @internal
1254
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1255
+ */
1256
+ export namespace CreateMemoryStoreModel18$ {
1257
+ /** @deprecated use `CreateMemoryStoreModel18$inboundSchema` instead. */
1258
+ export const inboundSchema = CreateMemoryStoreModel18$inboundSchema;
1259
+ /** @deprecated use `CreateMemoryStoreModel18$outboundSchema` instead. */
1260
+ export const outboundSchema = CreateMemoryStoreModel18$outboundSchema;
1261
+ }
1262
+
1263
+ /** @internal */
1264
+ export const CreateMemoryStoreModel17$inboundSchema: z.ZodNativeEnum<
1265
+ typeof CreateMemoryStoreModel17
1266
+ > = z.nativeEnum(CreateMemoryStoreModel17);
1267
+
1268
+ /** @internal */
1269
+ export const CreateMemoryStoreModel17$outboundSchema: z.ZodNativeEnum<
1270
+ typeof CreateMemoryStoreModel17
1271
+ > = CreateMemoryStoreModel17$inboundSchema;
1272
+
1273
+ /**
1274
+ * @internal
1275
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1276
+ */
1277
+ export namespace CreateMemoryStoreModel17$ {
1278
+ /** @deprecated use `CreateMemoryStoreModel17$inboundSchema` instead. */
1279
+ export const inboundSchema = CreateMemoryStoreModel17$inboundSchema;
1280
+ /** @deprecated use `CreateMemoryStoreModel17$outboundSchema` instead. */
1281
+ export const outboundSchema = CreateMemoryStoreModel17$outboundSchema;
1282
+ }
1283
+
1284
+ /** @internal */
1285
+ export const CreateMemoryStoreModel16$inboundSchema: z.ZodNativeEnum<
1286
+ typeof CreateMemoryStoreModel16
1287
+ > = z.nativeEnum(CreateMemoryStoreModel16);
1288
+
1289
+ /** @internal */
1290
+ export const CreateMemoryStoreModel16$outboundSchema: z.ZodNativeEnum<
1291
+ typeof CreateMemoryStoreModel16
1292
+ > = CreateMemoryStoreModel16$inboundSchema;
1293
+
1294
+ /**
1295
+ * @internal
1296
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1297
+ */
1298
+ export namespace CreateMemoryStoreModel16$ {
1299
+ /** @deprecated use `CreateMemoryStoreModel16$inboundSchema` instead. */
1300
+ export const inboundSchema = CreateMemoryStoreModel16$inboundSchema;
1301
+ /** @deprecated use `CreateMemoryStoreModel16$outboundSchema` instead. */
1302
+ export const outboundSchema = CreateMemoryStoreModel16$outboundSchema;
1303
+ }
1304
+
1305
+ /** @internal */
1306
+ export const CreateMemoryStoreModel15$inboundSchema: z.ZodNativeEnum<
1307
+ typeof CreateMemoryStoreModel15
1308
+ > = z.nativeEnum(CreateMemoryStoreModel15);
1309
+
1310
+ /** @internal */
1311
+ export const CreateMemoryStoreModel15$outboundSchema: z.ZodNativeEnum<
1312
+ typeof CreateMemoryStoreModel15
1313
+ > = CreateMemoryStoreModel15$inboundSchema;
1314
+
1315
+ /**
1316
+ * @internal
1317
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1318
+ */
1319
+ export namespace CreateMemoryStoreModel15$ {
1320
+ /** @deprecated use `CreateMemoryStoreModel15$inboundSchema` instead. */
1321
+ export const inboundSchema = CreateMemoryStoreModel15$inboundSchema;
1322
+ /** @deprecated use `CreateMemoryStoreModel15$outboundSchema` instead. */
1323
+ export const outboundSchema = CreateMemoryStoreModel15$outboundSchema;
1324
+ }
1325
+
1326
+ /** @internal */
1327
+ export const CreateMemoryStoreModel14$inboundSchema: z.ZodNativeEnum<
1328
+ typeof CreateMemoryStoreModel14
1329
+ > = z.nativeEnum(CreateMemoryStoreModel14);
1330
+
1331
+ /** @internal */
1332
+ export const CreateMemoryStoreModel14$outboundSchema: z.ZodNativeEnum<
1333
+ typeof CreateMemoryStoreModel14
1334
+ > = CreateMemoryStoreModel14$inboundSchema;
1335
+
1336
+ /**
1337
+ * @internal
1338
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1339
+ */
1340
+ export namespace CreateMemoryStoreModel14$ {
1341
+ /** @deprecated use `CreateMemoryStoreModel14$inboundSchema` instead. */
1342
+ export const inboundSchema = CreateMemoryStoreModel14$inboundSchema;
1343
+ /** @deprecated use `CreateMemoryStoreModel14$outboundSchema` instead. */
1344
+ export const outboundSchema = CreateMemoryStoreModel14$outboundSchema;
1345
+ }
1346
+
1347
+ /** @internal */
1348
+ export const CreateMemoryStoreModel13$inboundSchema: z.ZodNativeEnum<
1349
+ typeof CreateMemoryStoreModel13
1350
+ > = z.nativeEnum(CreateMemoryStoreModel13);
1351
+
1352
+ /** @internal */
1353
+ export const CreateMemoryStoreModel13$outboundSchema: z.ZodNativeEnum<
1354
+ typeof CreateMemoryStoreModel13
1355
+ > = CreateMemoryStoreModel13$inboundSchema;
1356
+
1357
+ /**
1358
+ * @internal
1359
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1360
+ */
1361
+ export namespace CreateMemoryStoreModel13$ {
1362
+ /** @deprecated use `CreateMemoryStoreModel13$inboundSchema` instead. */
1363
+ export const inboundSchema = CreateMemoryStoreModel13$inboundSchema;
1364
+ /** @deprecated use `CreateMemoryStoreModel13$outboundSchema` instead. */
1365
+ export const outboundSchema = CreateMemoryStoreModel13$outboundSchema;
1366
+ }
1367
+
1368
+ /** @internal */
1369
+ export const CreateMemoryStoreModel12$inboundSchema: z.ZodNativeEnum<
1370
+ typeof CreateMemoryStoreModel12
1371
+ > = z.nativeEnum(CreateMemoryStoreModel12);
1372
+
1373
+ /** @internal */
1374
+ export const CreateMemoryStoreModel12$outboundSchema: z.ZodNativeEnum<
1375
+ typeof CreateMemoryStoreModel12
1376
+ > = CreateMemoryStoreModel12$inboundSchema;
1377
+
1378
+ /**
1379
+ * @internal
1380
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1381
+ */
1382
+ export namespace CreateMemoryStoreModel12$ {
1383
+ /** @deprecated use `CreateMemoryStoreModel12$inboundSchema` instead. */
1384
+ export const inboundSchema = CreateMemoryStoreModel12$inboundSchema;
1385
+ /** @deprecated use `CreateMemoryStoreModel12$outboundSchema` instead. */
1386
+ export const outboundSchema = CreateMemoryStoreModel12$outboundSchema;
1387
+ }
1388
+
1389
+ /** @internal */
1390
+ export const CreateMemoryStoreModel11$inboundSchema: z.ZodNativeEnum<
1391
+ typeof CreateMemoryStoreModel11
1392
+ > = z.nativeEnum(CreateMemoryStoreModel11);
1393
+
1394
+ /** @internal */
1395
+ export const CreateMemoryStoreModel11$outboundSchema: z.ZodNativeEnum<
1396
+ typeof CreateMemoryStoreModel11
1397
+ > = CreateMemoryStoreModel11$inboundSchema;
1398
+
1399
+ /**
1400
+ * @internal
1401
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1402
+ */
1403
+ export namespace CreateMemoryStoreModel11$ {
1404
+ /** @deprecated use `CreateMemoryStoreModel11$inboundSchema` instead. */
1405
+ export const inboundSchema = CreateMemoryStoreModel11$inboundSchema;
1406
+ /** @deprecated use `CreateMemoryStoreModel11$outboundSchema` instead. */
1407
+ export const outboundSchema = CreateMemoryStoreModel11$outboundSchema;
1408
+ }
1409
+
1410
+ /** @internal */
1411
+ export const CreateMemoryStoreModel10$inboundSchema: z.ZodNativeEnum<
1412
+ typeof CreateMemoryStoreModel10
1413
+ > = z.nativeEnum(CreateMemoryStoreModel10);
1414
+
1415
+ /** @internal */
1416
+ export const CreateMemoryStoreModel10$outboundSchema: z.ZodNativeEnum<
1417
+ typeof CreateMemoryStoreModel10
1418
+ > = CreateMemoryStoreModel10$inboundSchema;
1419
+
1420
+ /**
1421
+ * @internal
1422
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1423
+ */
1424
+ export namespace CreateMemoryStoreModel10$ {
1425
+ /** @deprecated use `CreateMemoryStoreModel10$inboundSchema` instead. */
1426
+ export const inboundSchema = CreateMemoryStoreModel10$inboundSchema;
1427
+ /** @deprecated use `CreateMemoryStoreModel10$outboundSchema` instead. */
1428
+ export const outboundSchema = CreateMemoryStoreModel10$outboundSchema;
1429
+ }
1430
+
1431
+ /** @internal */
1432
+ export const CreateMemoryStoreModel9$inboundSchema: z.ZodNativeEnum<
1433
+ typeof CreateMemoryStoreModel9
1434
+ > = z.nativeEnum(CreateMemoryStoreModel9);
1435
+
1436
+ /** @internal */
1437
+ export const CreateMemoryStoreModel9$outboundSchema: z.ZodNativeEnum<
1438
+ typeof CreateMemoryStoreModel9
1439
+ > = CreateMemoryStoreModel9$inboundSchema;
1440
+
1441
+ /**
1442
+ * @internal
1443
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1444
+ */
1445
+ export namespace CreateMemoryStoreModel9$ {
1446
+ /** @deprecated use `CreateMemoryStoreModel9$inboundSchema` instead. */
1447
+ export const inboundSchema = CreateMemoryStoreModel9$inboundSchema;
1448
+ /** @deprecated use `CreateMemoryStoreModel9$outboundSchema` instead. */
1449
+ export const outboundSchema = CreateMemoryStoreModel9$outboundSchema;
1450
+ }
1451
+
1452
+ /** @internal */
1453
+ export const CreateMemoryStoreModel8$inboundSchema: z.ZodNativeEnum<
1454
+ typeof CreateMemoryStoreModel8
1455
+ > = z.nativeEnum(CreateMemoryStoreModel8);
1456
+
1457
+ /** @internal */
1458
+ export const CreateMemoryStoreModel8$outboundSchema: z.ZodNativeEnum<
1459
+ typeof CreateMemoryStoreModel8
1460
+ > = CreateMemoryStoreModel8$inboundSchema;
1461
+
1462
+ /**
1463
+ * @internal
1464
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1465
+ */
1466
+ export namespace CreateMemoryStoreModel8$ {
1467
+ /** @deprecated use `CreateMemoryStoreModel8$inboundSchema` instead. */
1468
+ export const inboundSchema = CreateMemoryStoreModel8$inboundSchema;
1469
+ /** @deprecated use `CreateMemoryStoreModel8$outboundSchema` instead. */
1470
+ export const outboundSchema = CreateMemoryStoreModel8$outboundSchema;
1471
+ }
1472
+
1473
+ /** @internal */
1474
+ export const CreateMemoryStoreModel7$inboundSchema: z.ZodNativeEnum<
1475
+ typeof CreateMemoryStoreModel7
1476
+ > = z.nativeEnum(CreateMemoryStoreModel7);
1477
+
1478
+ /** @internal */
1479
+ export const CreateMemoryStoreModel7$outboundSchema: z.ZodNativeEnum<
1480
+ typeof CreateMemoryStoreModel7
1481
+ > = CreateMemoryStoreModel7$inboundSchema;
1482
+
1483
+ /**
1484
+ * @internal
1485
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1486
+ */
1487
+ export namespace CreateMemoryStoreModel7$ {
1488
+ /** @deprecated use `CreateMemoryStoreModel7$inboundSchema` instead. */
1489
+ export const inboundSchema = CreateMemoryStoreModel7$inboundSchema;
1490
+ /** @deprecated use `CreateMemoryStoreModel7$outboundSchema` instead. */
1491
+ export const outboundSchema = CreateMemoryStoreModel7$outboundSchema;
1492
+ }
1493
+
1494
+ /** @internal */
1495
+ export const CreateMemoryStoreModel6$inboundSchema: z.ZodNativeEnum<
1496
+ typeof CreateMemoryStoreModel6
1497
+ > = z.nativeEnum(CreateMemoryStoreModel6);
1498
+
1499
+ /** @internal */
1500
+ export const CreateMemoryStoreModel6$outboundSchema: z.ZodNativeEnum<
1501
+ typeof CreateMemoryStoreModel6
1502
+ > = CreateMemoryStoreModel6$inboundSchema;
1503
+
1504
+ /**
1505
+ * @internal
1506
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1507
+ */
1508
+ export namespace CreateMemoryStoreModel6$ {
1509
+ /** @deprecated use `CreateMemoryStoreModel6$inboundSchema` instead. */
1510
+ export const inboundSchema = CreateMemoryStoreModel6$inboundSchema;
1511
+ /** @deprecated use `CreateMemoryStoreModel6$outboundSchema` instead. */
1512
+ export const outboundSchema = CreateMemoryStoreModel6$outboundSchema;
1513
+ }
1514
+
1515
+ /** @internal */
1516
+ export const CreateMemoryStoreModel5$inboundSchema: z.ZodNativeEnum<
1517
+ typeof CreateMemoryStoreModel5
1518
+ > = z.nativeEnum(CreateMemoryStoreModel5);
1519
+
1520
+ /** @internal */
1521
+ export const CreateMemoryStoreModel5$outboundSchema: z.ZodNativeEnum<
1522
+ typeof CreateMemoryStoreModel5
1523
+ > = CreateMemoryStoreModel5$inboundSchema;
1524
+
1525
+ /**
1526
+ * @internal
1527
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1528
+ */
1529
+ export namespace CreateMemoryStoreModel5$ {
1530
+ /** @deprecated use `CreateMemoryStoreModel5$inboundSchema` instead. */
1531
+ export const inboundSchema = CreateMemoryStoreModel5$inboundSchema;
1532
+ /** @deprecated use `CreateMemoryStoreModel5$outboundSchema` instead. */
1533
+ export const outboundSchema = CreateMemoryStoreModel5$outboundSchema;
1534
+ }
1535
+
1536
+ /** @internal */
1537
+ export const CreateMemoryStoreModel4$inboundSchema: z.ZodNativeEnum<
1538
+ typeof CreateMemoryStoreModel4
1539
+ > = z.nativeEnum(CreateMemoryStoreModel4);
1540
+
1541
+ /** @internal */
1542
+ export const CreateMemoryStoreModel4$outboundSchema: z.ZodNativeEnum<
1543
+ typeof CreateMemoryStoreModel4
1544
+ > = CreateMemoryStoreModel4$inboundSchema;
1545
+
1546
+ /**
1547
+ * @internal
1548
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1549
+ */
1550
+ export namespace CreateMemoryStoreModel4$ {
1551
+ /** @deprecated use `CreateMemoryStoreModel4$inboundSchema` instead. */
1552
+ export const inboundSchema = CreateMemoryStoreModel4$inboundSchema;
1553
+ /** @deprecated use `CreateMemoryStoreModel4$outboundSchema` instead. */
1554
+ export const outboundSchema = CreateMemoryStoreModel4$outboundSchema;
1555
+ }
1556
+
1557
+ /** @internal */
1558
+ export const CreateMemoryStoreModel3$inboundSchema: z.ZodNativeEnum<
1559
+ typeof CreateMemoryStoreModel3
1560
+ > = z.nativeEnum(CreateMemoryStoreModel3);
1561
+
1562
+ /** @internal */
1563
+ export const CreateMemoryStoreModel3$outboundSchema: z.ZodNativeEnum<
1564
+ typeof CreateMemoryStoreModel3
1565
+ > = CreateMemoryStoreModel3$inboundSchema;
1566
+
1567
+ /**
1568
+ * @internal
1569
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1570
+ */
1571
+ export namespace CreateMemoryStoreModel3$ {
1572
+ /** @deprecated use `CreateMemoryStoreModel3$inboundSchema` instead. */
1573
+ export const inboundSchema = CreateMemoryStoreModel3$inboundSchema;
1574
+ /** @deprecated use `CreateMemoryStoreModel3$outboundSchema` instead. */
1575
+ export const outboundSchema = CreateMemoryStoreModel3$outboundSchema;
1576
+ }
1577
+
1578
+ /** @internal */
1579
+ export const CreateMemoryStoreModel2$inboundSchema: z.ZodNativeEnum<
1580
+ typeof CreateMemoryStoreModel2
1581
+ > = z.nativeEnum(CreateMemoryStoreModel2);
1582
+
1583
+ /** @internal */
1584
+ export const CreateMemoryStoreModel2$outboundSchema: z.ZodNativeEnum<
1585
+ typeof CreateMemoryStoreModel2
1586
+ > = CreateMemoryStoreModel2$inboundSchema;
1587
+
1588
+ /**
1589
+ * @internal
1590
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1591
+ */
1592
+ export namespace CreateMemoryStoreModel2$ {
1593
+ /** @deprecated use `CreateMemoryStoreModel2$inboundSchema` instead. */
1594
+ export const inboundSchema = CreateMemoryStoreModel2$inboundSchema;
1595
+ /** @deprecated use `CreateMemoryStoreModel2$outboundSchema` instead. */
1596
+ export const outboundSchema = CreateMemoryStoreModel2$outboundSchema;
1597
+ }
1598
+
1599
+ /** @internal */
1600
+ export const CreateMemoryStoreModel1$inboundSchema: z.ZodNativeEnum<
1601
+ typeof CreateMemoryStoreModel1
1602
+ > = z.nativeEnum(CreateMemoryStoreModel1);
1603
+
1604
+ /** @internal */
1605
+ export const CreateMemoryStoreModel1$outboundSchema: z.ZodNativeEnum<
1606
+ typeof CreateMemoryStoreModel1
1607
+ > = CreateMemoryStoreModel1$inboundSchema;
1608
+
1609
+ /**
1610
+ * @internal
1611
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1612
+ */
1613
+ export namespace CreateMemoryStoreModel1$ {
1614
+ /** @deprecated use `CreateMemoryStoreModel1$inboundSchema` instead. */
1615
+ export const inboundSchema = CreateMemoryStoreModel1$inboundSchema;
1616
+ /** @deprecated use `CreateMemoryStoreModel1$outboundSchema` instead. */
1617
+ export const outboundSchema = CreateMemoryStoreModel1$outboundSchema;
1618
+ }
1619
+
1620
+ /** @internal */
1621
+ export const CreateMemoryStoreModel$inboundSchema: z.ZodType<
1622
+ CreateMemoryStoreModel,
1623
+ z.ZodTypeDef,
1624
+ unknown
1625
+ > = z.union([
1626
+ CreateMemoryStoreModel1$inboundSchema,
1627
+ CreateMemoryStoreModel2$inboundSchema,
1628
+ CreateMemoryStoreModel3$inboundSchema,
1629
+ CreateMemoryStoreModel4$inboundSchema,
1630
+ CreateMemoryStoreModel5$inboundSchema,
1631
+ CreateMemoryStoreModel6$inboundSchema,
1632
+ CreateMemoryStoreModel7$inboundSchema,
1633
+ CreateMemoryStoreModel8$inboundSchema,
1634
+ CreateMemoryStoreModel9$inboundSchema,
1635
+ CreateMemoryStoreModel10$inboundSchema,
1636
+ CreateMemoryStoreModel11$inboundSchema,
1637
+ CreateMemoryStoreModel12$inboundSchema,
1638
+ CreateMemoryStoreModel13$inboundSchema,
1639
+ CreateMemoryStoreModel14$inboundSchema,
1640
+ CreateMemoryStoreModel15$inboundSchema,
1641
+ CreateMemoryStoreModel16$inboundSchema,
1642
+ CreateMemoryStoreModel17$inboundSchema,
1643
+ CreateMemoryStoreModel18$inboundSchema,
1644
+ CreateMemoryStoreModel19$inboundSchema,
1645
+ CreateMemoryStoreModel20$inboundSchema,
1646
+ CreateMemoryStoreModel21$inboundSchema,
1647
+ CreateMemoryStoreModel22$inboundSchema,
1648
+ ]);
1649
+
1650
+ /** @internal */
1651
+ export type CreateMemoryStoreModel$Outbound =
1652
+ | string
1653
+ | string
1654
+ | string
1655
+ | string
1656
+ | string
1657
+ | string
1658
+ | string
1659
+ | string
1660
+ | string
1661
+ | string
1662
+ | string
1663
+ | string
1664
+ | string
1665
+ | string
1666
+ | string
1667
+ | string
1668
+ | string
1669
+ | string
1670
+ | string
1671
+ | string
1672
+ | string
1673
+ | string;
1674
+
1675
+ /** @internal */
1676
+ export const CreateMemoryStoreModel$outboundSchema: z.ZodType<
1677
+ CreateMemoryStoreModel$Outbound,
1678
+ z.ZodTypeDef,
1679
+ CreateMemoryStoreModel
1680
+ > = z.union([
1681
+ CreateMemoryStoreModel1$outboundSchema,
1682
+ CreateMemoryStoreModel2$outboundSchema,
1683
+ CreateMemoryStoreModel3$outboundSchema,
1684
+ CreateMemoryStoreModel4$outboundSchema,
1685
+ CreateMemoryStoreModel5$outboundSchema,
1686
+ CreateMemoryStoreModel6$outboundSchema,
1687
+ CreateMemoryStoreModel7$outboundSchema,
1688
+ CreateMemoryStoreModel8$outboundSchema,
1689
+ CreateMemoryStoreModel9$outboundSchema,
1690
+ CreateMemoryStoreModel10$outboundSchema,
1691
+ CreateMemoryStoreModel11$outboundSchema,
1692
+ CreateMemoryStoreModel12$outboundSchema,
1693
+ CreateMemoryStoreModel13$outboundSchema,
1694
+ CreateMemoryStoreModel14$outboundSchema,
1695
+ CreateMemoryStoreModel15$outboundSchema,
1696
+ CreateMemoryStoreModel16$outboundSchema,
1697
+ CreateMemoryStoreModel17$outboundSchema,
1698
+ CreateMemoryStoreModel18$outboundSchema,
1699
+ CreateMemoryStoreModel19$outboundSchema,
1700
+ CreateMemoryStoreModel20$outboundSchema,
1701
+ CreateMemoryStoreModel21$outboundSchema,
1702
+ CreateMemoryStoreModel22$outboundSchema,
1703
+ ]);
1704
+
1705
+ /**
1706
+ * @internal
1707
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1708
+ */
1709
+ export namespace CreateMemoryStoreModel$ {
1710
+ /** @deprecated use `CreateMemoryStoreModel$inboundSchema` instead. */
1711
+ export const inboundSchema = CreateMemoryStoreModel$inboundSchema;
1712
+ /** @deprecated use `CreateMemoryStoreModel$outboundSchema` instead. */
1713
+ export const outboundSchema = CreateMemoryStoreModel$outboundSchema;
1714
+ /** @deprecated use `CreateMemoryStoreModel$Outbound` instead. */
1715
+ export type Outbound = CreateMemoryStoreModel$Outbound;
1716
+ }
1717
+
1718
+ export function createMemoryStoreModelToJSON(
1719
+ createMemoryStoreModel: CreateMemoryStoreModel,
1720
+ ): string {
1721
+ return JSON.stringify(
1722
+ CreateMemoryStoreModel$outboundSchema.parse(createMemoryStoreModel),
1723
+ );
1724
+ }
1725
+
1726
+ export function createMemoryStoreModelFromJSON(
1727
+ jsonString: string,
1728
+ ): SafeParseResult<CreateMemoryStoreModel, SDKValidationError> {
1729
+ return safeParse(
1730
+ jsonString,
1731
+ (x) => CreateMemoryStoreModel$inboundSchema.parse(JSON.parse(x)),
1732
+ `Failed to parse 'CreateMemoryStoreModel' from JSON`,
1733
+ );
1734
+ }
1735
+
1736
+ /** @internal */
1737
+ export const CreateMemoryStoreEmbeddingConfig$inboundSchema: z.ZodType<
1738
+ CreateMemoryStoreEmbeddingConfig,
1739
+ z.ZodTypeDef,
1740
+ unknown
1741
+ > = z.object({
1742
+ model: z.union([
1743
+ CreateMemoryStoreModel1$inboundSchema,
1744
+ CreateMemoryStoreModel2$inboundSchema,
1745
+ CreateMemoryStoreModel3$inboundSchema,
1746
+ CreateMemoryStoreModel4$inboundSchema,
1747
+ CreateMemoryStoreModel5$inboundSchema,
1748
+ CreateMemoryStoreModel6$inboundSchema,
1749
+ CreateMemoryStoreModel7$inboundSchema,
1750
+ CreateMemoryStoreModel8$inboundSchema,
1751
+ CreateMemoryStoreModel9$inboundSchema,
1752
+ CreateMemoryStoreModel10$inboundSchema,
1753
+ CreateMemoryStoreModel11$inboundSchema,
1754
+ CreateMemoryStoreModel12$inboundSchema,
1755
+ CreateMemoryStoreModel13$inboundSchema,
1756
+ CreateMemoryStoreModel14$inboundSchema,
1757
+ CreateMemoryStoreModel15$inboundSchema,
1758
+ CreateMemoryStoreModel16$inboundSchema,
1759
+ CreateMemoryStoreModel17$inboundSchema,
1760
+ CreateMemoryStoreModel18$inboundSchema,
1761
+ CreateMemoryStoreModel19$inboundSchema,
1762
+ CreateMemoryStoreModel20$inboundSchema,
1763
+ CreateMemoryStoreModel21$inboundSchema,
1764
+ CreateMemoryStoreModel22$inboundSchema,
1765
+ ]),
1766
+ });
1767
+
1768
+ /** @internal */
1769
+ export type CreateMemoryStoreEmbeddingConfig$Outbound = {
1770
+ model:
1771
+ | string
1772
+ | string
1773
+ | string
1774
+ | string
1775
+ | string
1776
+ | string
1777
+ | string
1778
+ | string
1779
+ | string
1780
+ | string
1781
+ | string
1782
+ | string
1783
+ | string
1784
+ | string
1785
+ | string
1786
+ | string
1787
+ | string
1788
+ | string
1789
+ | string
1790
+ | string
1791
+ | string
1792
+ | string;
1793
+ };
1794
+
1795
+ /** @internal */
1796
+ export const CreateMemoryStoreEmbeddingConfig$outboundSchema: z.ZodType<
1797
+ CreateMemoryStoreEmbeddingConfig$Outbound,
1798
+ z.ZodTypeDef,
1799
+ CreateMemoryStoreEmbeddingConfig
1800
+ > = z.object({
1801
+ model: z.union([
1802
+ CreateMemoryStoreModel1$outboundSchema,
1803
+ CreateMemoryStoreModel2$outboundSchema,
1804
+ CreateMemoryStoreModel3$outboundSchema,
1805
+ CreateMemoryStoreModel4$outboundSchema,
1806
+ CreateMemoryStoreModel5$outboundSchema,
1807
+ CreateMemoryStoreModel6$outboundSchema,
1808
+ CreateMemoryStoreModel7$outboundSchema,
1809
+ CreateMemoryStoreModel8$outboundSchema,
1810
+ CreateMemoryStoreModel9$outboundSchema,
1811
+ CreateMemoryStoreModel10$outboundSchema,
1812
+ CreateMemoryStoreModel11$outboundSchema,
1813
+ CreateMemoryStoreModel12$outboundSchema,
1814
+ CreateMemoryStoreModel13$outboundSchema,
1815
+ CreateMemoryStoreModel14$outboundSchema,
1816
+ CreateMemoryStoreModel15$outboundSchema,
1817
+ CreateMemoryStoreModel16$outboundSchema,
1818
+ CreateMemoryStoreModel17$outboundSchema,
1819
+ CreateMemoryStoreModel18$outboundSchema,
1820
+ CreateMemoryStoreModel19$outboundSchema,
1821
+ CreateMemoryStoreModel20$outboundSchema,
1822
+ CreateMemoryStoreModel21$outboundSchema,
1823
+ CreateMemoryStoreModel22$outboundSchema,
1824
+ ]),
1825
+ });
1826
+
1827
+ /**
1828
+ * @internal
1829
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1830
+ */
1831
+ export namespace CreateMemoryStoreEmbeddingConfig$ {
1832
+ /** @deprecated use `CreateMemoryStoreEmbeddingConfig$inboundSchema` instead. */
1833
+ export const inboundSchema = CreateMemoryStoreEmbeddingConfig$inboundSchema;
1834
+ /** @deprecated use `CreateMemoryStoreEmbeddingConfig$outboundSchema` instead. */
1835
+ export const outboundSchema = CreateMemoryStoreEmbeddingConfig$outboundSchema;
1836
+ /** @deprecated use `CreateMemoryStoreEmbeddingConfig$Outbound` instead. */
1837
+ export type Outbound = CreateMemoryStoreEmbeddingConfig$Outbound;
1838
+ }
1839
+
1840
+ export function createMemoryStoreEmbeddingConfigToJSON(
1841
+ createMemoryStoreEmbeddingConfig: CreateMemoryStoreEmbeddingConfig,
1842
+ ): string {
1843
+ return JSON.stringify(
1844
+ CreateMemoryStoreEmbeddingConfig$outboundSchema.parse(
1845
+ createMemoryStoreEmbeddingConfig,
1846
+ ),
1847
+ );
1848
+ }
1849
+
1850
+ export function createMemoryStoreEmbeddingConfigFromJSON(
1851
+ jsonString: string,
1852
+ ): SafeParseResult<CreateMemoryStoreEmbeddingConfig, SDKValidationError> {
1853
+ return safeParse(
1854
+ jsonString,
1855
+ (x) => CreateMemoryStoreEmbeddingConfig$inboundSchema.parse(JSON.parse(x)),
1856
+ `Failed to parse 'CreateMemoryStoreEmbeddingConfig' from JSON`,
1857
+ );
1858
+ }
1859
+
1860
+ /** @internal */
1861
+ export const CreateMemoryStoreResponseBody$inboundSchema: z.ZodType<
1862
+ CreateMemoryStoreResponseBody,
1863
+ z.ZodTypeDef,
1864
+ unknown
1865
+ > = z.object({
1866
+ _id: z.string(),
1867
+ key: z.string(),
1868
+ description: z.string(),
1869
+ created_by_id: z.string().optional(),
1870
+ updated_by_id: z.string().optional(),
1871
+ created: z.string(),
1872
+ updated: z.string(),
1873
+ ttl: z.number().optional(),
1874
+ embedding_config: z.lazy(() =>
1875
+ CreateMemoryStoreEmbeddingConfig$inboundSchema
1876
+ ),
1877
+ }).transform((v) => {
1878
+ return remap$(v, {
1879
+ "_id": "id",
1880
+ "created_by_id": "createdById",
1881
+ "updated_by_id": "updatedById",
1882
+ "embedding_config": "embeddingConfig",
1883
+ });
1884
+ });
1885
+
1886
+ /** @internal */
1887
+ export type CreateMemoryStoreResponseBody$Outbound = {
1888
+ _id: string;
1889
+ key: string;
1890
+ description: string;
1891
+ created_by_id?: string | undefined;
1892
+ updated_by_id?: string | undefined;
1893
+ created: string;
1894
+ updated: string;
1895
+ ttl?: number | undefined;
1896
+ embedding_config: CreateMemoryStoreEmbeddingConfig$Outbound;
1897
+ };
1898
+
1899
+ /** @internal */
1900
+ export const CreateMemoryStoreResponseBody$outboundSchema: z.ZodType<
1901
+ CreateMemoryStoreResponseBody$Outbound,
1902
+ z.ZodTypeDef,
1903
+ CreateMemoryStoreResponseBody
1904
+ > = z.object({
1905
+ id: z.string(),
1906
+ key: z.string(),
1907
+ description: z.string(),
1908
+ createdById: z.string().optional(),
1909
+ updatedById: z.string().optional(),
1910
+ created: z.string(),
1911
+ updated: z.string(),
1912
+ ttl: z.number().optional(),
1913
+ embeddingConfig: z.lazy(() =>
1914
+ CreateMemoryStoreEmbeddingConfig$outboundSchema
1915
+ ),
1916
+ }).transform((v) => {
1917
+ return remap$(v, {
1918
+ id: "_id",
1919
+ createdById: "created_by_id",
1920
+ updatedById: "updated_by_id",
1921
+ embeddingConfig: "embedding_config",
1922
+ });
1923
+ });
1924
+
1925
+ /**
1926
+ * @internal
1927
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1928
+ */
1929
+ export namespace CreateMemoryStoreResponseBody$ {
1930
+ /** @deprecated use `CreateMemoryStoreResponseBody$inboundSchema` instead. */
1931
+ export const inboundSchema = CreateMemoryStoreResponseBody$inboundSchema;
1932
+ /** @deprecated use `CreateMemoryStoreResponseBody$outboundSchema` instead. */
1933
+ export const outboundSchema = CreateMemoryStoreResponseBody$outboundSchema;
1934
+ /** @deprecated use `CreateMemoryStoreResponseBody$Outbound` instead. */
1935
+ export type Outbound = CreateMemoryStoreResponseBody$Outbound;
1936
+ }
1937
+
1938
+ export function createMemoryStoreResponseBodyToJSON(
1939
+ createMemoryStoreResponseBody: CreateMemoryStoreResponseBody,
1940
+ ): string {
1941
+ return JSON.stringify(
1942
+ CreateMemoryStoreResponseBody$outboundSchema.parse(
1943
+ createMemoryStoreResponseBody,
1944
+ ),
1945
+ );
1946
+ }
1947
+
1948
+ export function createMemoryStoreResponseBodyFromJSON(
1949
+ jsonString: string,
1950
+ ): SafeParseResult<CreateMemoryStoreResponseBody, SDKValidationError> {
1951
+ return safeParse(
1952
+ jsonString,
1953
+ (x) => CreateMemoryStoreResponseBody$inboundSchema.parse(JSON.parse(x)),
1954
+ `Failed to parse 'CreateMemoryStoreResponseBody' from JSON`,
1955
+ );
1956
+ }