@orq-ai/node 3.3.10 → 3.3.13

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 (182) hide show
  1. package/bin/mcp-server.js +39 -39
  2. package/bin/mcp-server.js.map +21 -21
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/mcp-server/mcp-server.js +1 -1
  7. package/mcp-server/server.js +1 -1
  8. package/models/operations/bulkcreatedatapoints.js +2 -2
  9. package/models/operations/createcontact.js +2 -2
  10. package/models/operations/createdataset.js +2 -2
  11. package/models/operations/createdatasetitem.js +2 -2
  12. package/models/operations/createdatasource.js +2 -2
  13. package/models/operations/fileget.js +2 -2
  14. package/models/operations/filelist.js +2 -2
  15. package/models/operations/fileupload.js +2 -2
  16. package/models/operations/listdatasetdatapoints.js +2 -2
  17. package/models/operations/listdatasets.js +2 -2
  18. package/models/operations/listdatasources.js +2 -2
  19. package/models/operations/retrievedatapoint.js +2 -2
  20. package/models/operations/retrievedataset.js +2 -2
  21. package/models/operations/retrievedatasource.js +2 -2
  22. package/models/operations/updatedatapoint.js +2 -2
  23. package/models/operations/updatedataset.js +2 -2
  24. package/models/operations/updatedatasource.js +2 -2
  25. package/package.json +1 -1
  26. package/packages/orq-rc/FUNCTIONS.md +2 -4
  27. package/packages/orq-rc/README.md +68 -17
  28. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -83
  29. package/packages/orq-rc/docs/sdks/memorystores/README.md +1211 -0
  30. package/packages/orq-rc/docs/sdks/orq/README.md +74 -0
  31. package/packages/orq-rc/docs/sdks/sessions/README.md +385 -0
  32. package/packages/orq-rc/docs/sdks/tools/README.md +425 -0
  33. package/packages/orq-rc/jsr.json +1 -1
  34. package/packages/orq-rc/package-lock.json +2 -2
  35. package/packages/orq-rc/package.json +1 -1
  36. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +165 -0
  37. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +169 -0
  38. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +164 -0
  39. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +162 -0
  40. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +178 -0
  41. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +173 -0
  42. package/packages/orq-rc/src/funcs/memoryStoresList.ts +172 -0
  43. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +175 -0
  44. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +170 -0
  45. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +171 -0
  46. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +172 -0
  47. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +167 -0
  48. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +162 -0
  49. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +173 -0
  50. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +168 -0
  51. package/packages/orq-rc/src/funcs/postV2TracesSessionsCount.ts +155 -0
  52. package/packages/orq-rc/src/funcs/sessionsCreate.ts +159 -0
  53. package/packages/orq-rc/src/funcs/sessionsDelete.ts +170 -0
  54. package/packages/orq-rc/src/funcs/sessionsGet.ts +169 -0
  55. package/packages/orq-rc/src/funcs/sessionsList.ts +157 -0
  56. package/packages/orq-rc/src/funcs/sessionsUpdate.ts +170 -0
  57. package/packages/orq-rc/src/funcs/toolsCreate.ts +157 -0
  58. package/packages/orq-rc/src/funcs/toolsDelete.ts +161 -0
  59. package/packages/orq-rc/src/funcs/toolsList.ts +170 -0
  60. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +160 -0
  61. package/packages/orq-rc/src/funcs/{knowledgeSearch.ts → toolsUpdate.ts} +18 -15
  62. package/packages/orq-rc/src/lib/config.ts +3 -3
  63. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  64. package/packages/orq-rc/src/mcp-server/prompts.ts +8 -1
  65. package/packages/orq-rc/src/mcp-server/resources.ts +16 -2
  66. package/packages/orq-rc/src/mcp-server/server.ts +55 -5
  67. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +35 -0
  68. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +37 -0
  69. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +37 -0
  70. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +35 -0
  71. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +40 -0
  72. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +40 -0
  73. package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +37 -0
  74. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +37 -0
  75. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +37 -0
  76. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +37 -0
  77. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +37 -0
  78. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +37 -0
  79. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +37 -0
  80. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +37 -0
  81. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +37 -0
  82. package/packages/orq-rc/src/mcp-server/tools/postV2TracesSessionsCount.ts +36 -0
  83. package/packages/orq-rc/src/mcp-server/tools/sessionsCreate.ts +37 -0
  84. package/packages/orq-rc/src/mcp-server/tools/sessionsDelete.ts +35 -0
  85. package/packages/orq-rc/src/mcp-server/tools/{knowledgeSearch.ts → sessionsGet.ts} +8 -6
  86. package/packages/orq-rc/src/mcp-server/tools/sessionsList.ts +37 -0
  87. package/packages/orq-rc/src/mcp-server/tools/sessionsUpdate.ts +37 -0
  88. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
  89. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
  90. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
  91. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
  92. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
  93. package/packages/orq-rc/src/mcp-server/tools.ts +6 -3
  94. package/packages/orq-rc/src/models/components/deployments.ts +124 -29
  95. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
  96. package/packages/orq-rc/src/models/operations/createchunk.ts +99 -41
  97. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  99. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/createdatasource.ts +10 -10
  101. package/packages/orq-rc/src/models/operations/createknowledge.ts +175 -14
  102. package/packages/orq-rc/src/models/operations/creatememory.ts +265 -0
  103. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +284 -0
  104. package/packages/orq-rc/src/models/operations/creatememorystore.ts +1619 -0
  105. package/packages/orq-rc/src/models/operations/createprompt.ts +6 -6
  106. package/packages/orq-rc/src/models/operations/createsession.ts +632 -0
  107. package/packages/orq-rc/src/models/operations/createtool.ts +2297 -0
  108. package/packages/orq-rc/src/models/operations/deletememory.ts +87 -0
  109. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +98 -0
  110. package/packages/orq-rc/src/models/operations/deletememorystore.ts +78 -0
  111. package/packages/orq-rc/src/models/operations/deletesession.ts +78 -0
  112. package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
  113. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +57 -35
  114. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +124 -29
  115. package/packages/orq-rc/src/models/operations/deployments.ts +3 -3
  116. package/packages/orq-rc/src/models/operations/deploymentstream.ts +135 -30
  117. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  118. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  119. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  120. package/packages/orq-rc/src/models/operations/getallmemories.ts +315 -0
  121. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +335 -0
  122. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +1061 -0
  123. package/packages/orq-rc/src/models/operations/getallprompts.ts +3 -3
  124. package/packages/orq-rc/src/models/operations/getalltools.ts +1382 -0
  125. package/packages/orq-rc/src/models/operations/getonechunk.ts +8 -8
  126. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +92 -8
  127. package/packages/orq-rc/src/models/operations/getoneprompt.ts +3 -3
  128. package/packages/orq-rc/src/models/operations/getpromptversion.ts +3 -3
  129. package/packages/orq-rc/src/models/operations/getsession.ts +400 -0
  130. package/packages/orq-rc/src/models/operations/index.ts +26 -1
  131. package/packages/orq-rc/src/models/operations/listchunks.ts +8 -8
  132. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  133. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  134. package/packages/orq-rc/src/models/operations/listdatasources.ts +10 -10
  135. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +94 -8
  136. package/packages/orq-rc/src/models/operations/listpromptversions.ts +3 -3
  137. package/packages/orq-rc/src/models/operations/listsessions.ts +6732 -0
  138. package/packages/orq-rc/src/models/operations/postv2tracessessionscount.ts +7043 -0
  139. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  140. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  141. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +10 -10
  142. package/packages/orq-rc/src/models/operations/retrievememory.ts +198 -0
  143. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +217 -0
  144. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +944 -0
  145. package/packages/orq-rc/src/models/operations/retrievetool.ts +1350 -0
  146. package/packages/orq-rc/src/models/operations/updatechunk.ts +10 -10
  147. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  148. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  149. package/packages/orq-rc/src/models/operations/updatedatasource.ts +10 -10
  150. package/packages/orq-rc/src/models/operations/updateknowledge.ts +201 -20
  151. package/packages/orq-rc/src/models/operations/updatememory.ts +274 -0
  152. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +293 -0
  153. package/packages/orq-rc/src/models/operations/updatememorystore.ts +1148 -0
  154. package/packages/orq-rc/src/models/operations/updateprompt.ts +6 -6
  155. package/packages/orq-rc/src/models/operations/updatesession.ts +731 -0
  156. package/packages/orq-rc/src/models/operations/updatetool.ts +2464 -0
  157. package/packages/orq-rc/src/sdk/knowledge.ts +0 -15
  158. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  159. package/packages/orq-rc/src/sdk/sdk.ts +36 -1
  160. package/packages/orq-rc/src/sdk/sessions.ts +99 -0
  161. package/packages/orq-rc/src/sdk/tools.ts +99 -0
  162. package/src/lib/config.ts +2 -2
  163. package/src/mcp-server/mcp-server.ts +1 -1
  164. package/src/mcp-server/server.ts +1 -1
  165. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  166. package/src/models/operations/createcontact.ts +2 -2
  167. package/src/models/operations/createdataset.ts +2 -2
  168. package/src/models/operations/createdatasetitem.ts +2 -2
  169. package/src/models/operations/createdatasource.ts +2 -2
  170. package/src/models/operations/fileget.ts +2 -2
  171. package/src/models/operations/filelist.ts +2 -2
  172. package/src/models/operations/fileupload.ts +2 -2
  173. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  174. package/src/models/operations/listdatasets.ts +2 -2
  175. package/src/models/operations/listdatasources.ts +2 -2
  176. package/src/models/operations/retrievedatapoint.ts +2 -2
  177. package/src/models/operations/retrievedataset.ts +2 -2
  178. package/src/models/operations/retrievedatasource.ts +2 -2
  179. package/src/models/operations/updatedatapoint.ts +2 -2
  180. package/src/models/operations/updatedataset.ts +2 -2
  181. package/src/models/operations/updatedatasource.ts +2 -2
  182. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1673
@@ -0,0 +1,1148 @@
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 Model17 = {
13
+ JinaJinaEmbeddingsV3: "jina/jina-embeddings-v3",
14
+ } as const;
15
+ export type Model17 = ClosedEnum<typeof Model17>;
16
+
17
+ export const Model16 = {
18
+ JinaJinaClipV2: "jina/jina-clip-v2",
19
+ } as const;
20
+ export type Model16 = ClosedEnum<typeof Model16>;
21
+
22
+ export const Model15 = {
23
+ JinaJinaEmbeddingsV2BaseDe: "jina/jina-embeddings-v2-base-de",
24
+ } as const;
25
+ export type Model15 = ClosedEnum<typeof Model15>;
26
+
27
+ export const Model14 = {
28
+ JinaJinaEmbeddingsV2BaseCode: "jina/jina-embeddings-v2-base-code",
29
+ } as const;
30
+ export type Model14 = ClosedEnum<typeof Model14>;
31
+
32
+ export const Model13 = {
33
+ JinaJinaEmbeddingsV2BaseZh: "jina/jina-embeddings-v2-base-zh",
34
+ } as const;
35
+ export type Model13 = ClosedEnum<typeof Model13>;
36
+
37
+ export const Model12 = {
38
+ JinaJinaEmbeddingsV2BaseEn: "jina/jina-embeddings-v2-base-en",
39
+ } as const;
40
+ export type Model12 = ClosedEnum<typeof Model12>;
41
+
42
+ export const Model11 = {
43
+ JinaJinaEmbeddingsV2BaseEs: "jina/jina-embeddings-v2-base-es",
44
+ } as const;
45
+ export type Model11 = ClosedEnum<typeof Model11>;
46
+
47
+ export const Model10 = {
48
+ JinaJinaClipV1: "jina/jina-clip-v1",
49
+ } as const;
50
+ export type Model10 = ClosedEnum<typeof Model10>;
51
+
52
+ export const Model9 = {
53
+ GoogleAiTextEmbedding004: "google-ai/text-embedding-004",
54
+ } as const;
55
+ export type Model9 = ClosedEnum<typeof Model9>;
56
+
57
+ export const Model8 = {
58
+ OpenaiTextEmbeddingAda002: "openai/text-embedding-ada-002",
59
+ } as const;
60
+ export type Model8 = ClosedEnum<typeof Model8>;
61
+
62
+ export const Model7 = {
63
+ OpenaiTextEmbedding3Small: "openai/text-embedding-3-small",
64
+ } as const;
65
+ export type Model7 = ClosedEnum<typeof Model7>;
66
+
67
+ export const Model6 = {
68
+ OpenaiTextEmbedding3Large: "openai/text-embedding-3-large",
69
+ } as const;
70
+ export type Model6 = ClosedEnum<typeof Model6>;
71
+
72
+ export const Model5 = {
73
+ AzureTextEmbeddingAda002: "azure/text-embedding-ada-002",
74
+ } as const;
75
+ export type Model5 = ClosedEnum<typeof Model5>;
76
+
77
+ export const Model4 = {
78
+ CohereEmbedEnglishV30: "cohere/embed-english-v3.0",
79
+ } as const;
80
+ export type Model4 = ClosedEnum<typeof Model4>;
81
+
82
+ export const UpdateMemoryStoreModel3 = {
83
+ CohereEmbedEnglishLightV30: "cohere/embed-english-light-v3.0",
84
+ } as const;
85
+ export type UpdateMemoryStoreModel3 = ClosedEnum<
86
+ typeof UpdateMemoryStoreModel3
87
+ >;
88
+
89
+ export const UpdateMemoryStoreModel2 = {
90
+ CohereEmbedMultilingualLightV30: "cohere/embed-multilingual-light-v3.0",
91
+ } as const;
92
+ export type UpdateMemoryStoreModel2 = ClosedEnum<
93
+ typeof UpdateMemoryStoreModel2
94
+ >;
95
+
96
+ export const UpdateMemoryStoreModel1 = {
97
+ CohereEmbedMultilingualV30: "cohere/embed-multilingual-v3.0",
98
+ } as const;
99
+ export type UpdateMemoryStoreModel1 = ClosedEnum<
100
+ typeof UpdateMemoryStoreModel1
101
+ >;
102
+
103
+ export type UpdateMemoryStoreModel =
104
+ | UpdateMemoryStoreModel1
105
+ | UpdateMemoryStoreModel2
106
+ | UpdateMemoryStoreModel3
107
+ | Model4
108
+ | Model5
109
+ | Model6
110
+ | Model7
111
+ | Model8
112
+ | Model9
113
+ | Model10
114
+ | Model11
115
+ | Model12
116
+ | Model13
117
+ | Model14
118
+ | Model15
119
+ | Model16
120
+ | Model17;
121
+
122
+ export type UpdateMemoryStoreEmbeddingConfig = {
123
+ model:
124
+ | UpdateMemoryStoreModel1
125
+ | UpdateMemoryStoreModel2
126
+ | UpdateMemoryStoreModel3
127
+ | Model4
128
+ | Model5
129
+ | Model6
130
+ | Model7
131
+ | Model8
132
+ | Model9
133
+ | Model10
134
+ | Model11
135
+ | Model12
136
+ | Model13
137
+ | Model14
138
+ | Model15
139
+ | Model16
140
+ | Model17;
141
+ };
142
+
143
+ export type UpdateMemoryStoreRequestBody = {
144
+ embeddingConfig: UpdateMemoryStoreEmbeddingConfig;
145
+ /**
146
+ * The description of the memory store. Be as precise as possible to help the AI to understand the purpose of the memory store.
147
+ */
148
+ description: string;
149
+ /**
150
+ * 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.
151
+ */
152
+ ttl?: number | undefined;
153
+ /**
154
+ * 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.
155
+ */
156
+ path: string;
157
+ };
158
+
159
+ export type UpdateMemoryStoreRequest = {
160
+ /**
161
+ * The unique key identifier of the memory store
162
+ */
163
+ memoryStoreKey: string;
164
+ requestBody?: UpdateMemoryStoreRequestBody | undefined;
165
+ };
166
+
167
+ /**
168
+ * The provider of the AI service
169
+ */
170
+ export const UpdateMemoryStoreProvider = {
171
+ Cohere: "cohere",
172
+ Openai: "openai",
173
+ Anthropic: "anthropic",
174
+ Huggingface: "huggingface",
175
+ Replicate: "replicate",
176
+ Google: "google",
177
+ GoogleAi: "google-ai",
178
+ Azure: "azure",
179
+ Aws: "aws",
180
+ Anyscale: "anyscale",
181
+ Perplexity: "perplexity",
182
+ Groq: "groq",
183
+ Fal: "fal",
184
+ Leonardoai: "leonardoai",
185
+ Nvidia: "nvidia",
186
+ Jina: "jina",
187
+ Togetherai: "togetherai",
188
+ Elevenlabs: "elevenlabs",
189
+ } as const;
190
+ /**
191
+ * The provider of the AI service
192
+ */
193
+ export type UpdateMemoryStoreProvider = ClosedEnum<
194
+ typeof UpdateMemoryStoreProvider
195
+ >;
196
+
197
+ export type UpdateMemoryStoreMemoryStoresEmbeddingConfig = {
198
+ modelId: string;
199
+ integrationId?: string | undefined;
200
+ /**
201
+ * Number of results to return
202
+ */
203
+ topK?: number | undefined;
204
+ /**
205
+ * The provider of the AI service
206
+ */
207
+ provider: UpdateMemoryStoreProvider;
208
+ };
209
+
210
+ /**
211
+ * Memory store successfully updated.
212
+ */
213
+ export type UpdateMemoryStoreResponseBody = {
214
+ /**
215
+ * The unique identifier of the memory store
216
+ */
217
+ id: string;
218
+ /**
219
+ * The unique key of the memory store. The key is unique and inmmutable and cannot be repeated within the same workspace.
220
+ */
221
+ key: string;
222
+ /**
223
+ * The project unique identifier. This entity is assigned based on the provided `path` property
224
+ */
225
+ projectId: string;
226
+ /**
227
+ * The description of the memory store. Be as precise as possible to help the AI to understand the purpose of the memory store.
228
+ */
229
+ description: string;
230
+ /**
231
+ * The user ID of the creator
232
+ */
233
+ createdById?: string | undefined;
234
+ /**
235
+ * The user ID of the last updater
236
+ */
237
+ updatedById?: string | undefined;
238
+ /**
239
+ * The creation date of the memory store
240
+ */
241
+ created: string;
242
+ /**
243
+ * The last update date of the memory store
244
+ */
245
+ updated: string;
246
+ /**
247
+ * 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.
248
+ */
249
+ ttl?: number | undefined;
250
+ embeddingConfig: UpdateMemoryStoreMemoryStoresEmbeddingConfig;
251
+ };
252
+
253
+ /** @internal */
254
+ export const Model17$inboundSchema: z.ZodNativeEnum<typeof Model17> = z
255
+ .nativeEnum(Model17);
256
+
257
+ /** @internal */
258
+ export const Model17$outboundSchema: z.ZodNativeEnum<typeof Model17> =
259
+ Model17$inboundSchema;
260
+
261
+ /**
262
+ * @internal
263
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
264
+ */
265
+ export namespace Model17$ {
266
+ /** @deprecated use `Model17$inboundSchema` instead. */
267
+ export const inboundSchema = Model17$inboundSchema;
268
+ /** @deprecated use `Model17$outboundSchema` instead. */
269
+ export const outboundSchema = Model17$outboundSchema;
270
+ }
271
+
272
+ /** @internal */
273
+ export const Model16$inboundSchema: z.ZodNativeEnum<typeof Model16> = z
274
+ .nativeEnum(Model16);
275
+
276
+ /** @internal */
277
+ export const Model16$outboundSchema: z.ZodNativeEnum<typeof Model16> =
278
+ Model16$inboundSchema;
279
+
280
+ /**
281
+ * @internal
282
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
283
+ */
284
+ export namespace Model16$ {
285
+ /** @deprecated use `Model16$inboundSchema` instead. */
286
+ export const inboundSchema = Model16$inboundSchema;
287
+ /** @deprecated use `Model16$outboundSchema` instead. */
288
+ export const outboundSchema = Model16$outboundSchema;
289
+ }
290
+
291
+ /** @internal */
292
+ export const Model15$inboundSchema: z.ZodNativeEnum<typeof Model15> = z
293
+ .nativeEnum(Model15);
294
+
295
+ /** @internal */
296
+ export const Model15$outboundSchema: z.ZodNativeEnum<typeof Model15> =
297
+ Model15$inboundSchema;
298
+
299
+ /**
300
+ * @internal
301
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
302
+ */
303
+ export namespace Model15$ {
304
+ /** @deprecated use `Model15$inboundSchema` instead. */
305
+ export const inboundSchema = Model15$inboundSchema;
306
+ /** @deprecated use `Model15$outboundSchema` instead. */
307
+ export const outboundSchema = Model15$outboundSchema;
308
+ }
309
+
310
+ /** @internal */
311
+ export const Model14$inboundSchema: z.ZodNativeEnum<typeof Model14> = z
312
+ .nativeEnum(Model14);
313
+
314
+ /** @internal */
315
+ export const Model14$outboundSchema: z.ZodNativeEnum<typeof Model14> =
316
+ Model14$inboundSchema;
317
+
318
+ /**
319
+ * @internal
320
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
321
+ */
322
+ export namespace Model14$ {
323
+ /** @deprecated use `Model14$inboundSchema` instead. */
324
+ export const inboundSchema = Model14$inboundSchema;
325
+ /** @deprecated use `Model14$outboundSchema` instead. */
326
+ export const outboundSchema = Model14$outboundSchema;
327
+ }
328
+
329
+ /** @internal */
330
+ export const Model13$inboundSchema: z.ZodNativeEnum<typeof Model13> = z
331
+ .nativeEnum(Model13);
332
+
333
+ /** @internal */
334
+ export const Model13$outboundSchema: z.ZodNativeEnum<typeof Model13> =
335
+ Model13$inboundSchema;
336
+
337
+ /**
338
+ * @internal
339
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
340
+ */
341
+ export namespace Model13$ {
342
+ /** @deprecated use `Model13$inboundSchema` instead. */
343
+ export const inboundSchema = Model13$inboundSchema;
344
+ /** @deprecated use `Model13$outboundSchema` instead. */
345
+ export const outboundSchema = Model13$outboundSchema;
346
+ }
347
+
348
+ /** @internal */
349
+ export const Model12$inboundSchema: z.ZodNativeEnum<typeof Model12> = z
350
+ .nativeEnum(Model12);
351
+
352
+ /** @internal */
353
+ export const Model12$outboundSchema: z.ZodNativeEnum<typeof Model12> =
354
+ Model12$inboundSchema;
355
+
356
+ /**
357
+ * @internal
358
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
359
+ */
360
+ export namespace Model12$ {
361
+ /** @deprecated use `Model12$inboundSchema` instead. */
362
+ export const inboundSchema = Model12$inboundSchema;
363
+ /** @deprecated use `Model12$outboundSchema` instead. */
364
+ export const outboundSchema = Model12$outboundSchema;
365
+ }
366
+
367
+ /** @internal */
368
+ export const Model11$inboundSchema: z.ZodNativeEnum<typeof Model11> = z
369
+ .nativeEnum(Model11);
370
+
371
+ /** @internal */
372
+ export const Model11$outboundSchema: z.ZodNativeEnum<typeof Model11> =
373
+ Model11$inboundSchema;
374
+
375
+ /**
376
+ * @internal
377
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
378
+ */
379
+ export namespace Model11$ {
380
+ /** @deprecated use `Model11$inboundSchema` instead. */
381
+ export const inboundSchema = Model11$inboundSchema;
382
+ /** @deprecated use `Model11$outboundSchema` instead. */
383
+ export const outboundSchema = Model11$outboundSchema;
384
+ }
385
+
386
+ /** @internal */
387
+ export const Model10$inboundSchema: z.ZodNativeEnum<typeof Model10> = z
388
+ .nativeEnum(Model10);
389
+
390
+ /** @internal */
391
+ export const Model10$outboundSchema: z.ZodNativeEnum<typeof Model10> =
392
+ Model10$inboundSchema;
393
+
394
+ /**
395
+ * @internal
396
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
397
+ */
398
+ export namespace Model10$ {
399
+ /** @deprecated use `Model10$inboundSchema` instead. */
400
+ export const inboundSchema = Model10$inboundSchema;
401
+ /** @deprecated use `Model10$outboundSchema` instead. */
402
+ export const outboundSchema = Model10$outboundSchema;
403
+ }
404
+
405
+ /** @internal */
406
+ export const Model9$inboundSchema: z.ZodNativeEnum<typeof Model9> = z
407
+ .nativeEnum(Model9);
408
+
409
+ /** @internal */
410
+ export const Model9$outboundSchema: z.ZodNativeEnum<typeof Model9> =
411
+ Model9$inboundSchema;
412
+
413
+ /**
414
+ * @internal
415
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
416
+ */
417
+ export namespace Model9$ {
418
+ /** @deprecated use `Model9$inboundSchema` instead. */
419
+ export const inboundSchema = Model9$inboundSchema;
420
+ /** @deprecated use `Model9$outboundSchema` instead. */
421
+ export const outboundSchema = Model9$outboundSchema;
422
+ }
423
+
424
+ /** @internal */
425
+ export const Model8$inboundSchema: z.ZodNativeEnum<typeof Model8> = z
426
+ .nativeEnum(Model8);
427
+
428
+ /** @internal */
429
+ export const Model8$outboundSchema: z.ZodNativeEnum<typeof Model8> =
430
+ Model8$inboundSchema;
431
+
432
+ /**
433
+ * @internal
434
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
435
+ */
436
+ export namespace Model8$ {
437
+ /** @deprecated use `Model8$inboundSchema` instead. */
438
+ export const inboundSchema = Model8$inboundSchema;
439
+ /** @deprecated use `Model8$outboundSchema` instead. */
440
+ export const outboundSchema = Model8$outboundSchema;
441
+ }
442
+
443
+ /** @internal */
444
+ export const Model7$inboundSchema: z.ZodNativeEnum<typeof Model7> = z
445
+ .nativeEnum(Model7);
446
+
447
+ /** @internal */
448
+ export const Model7$outboundSchema: z.ZodNativeEnum<typeof Model7> =
449
+ Model7$inboundSchema;
450
+
451
+ /**
452
+ * @internal
453
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
454
+ */
455
+ export namespace Model7$ {
456
+ /** @deprecated use `Model7$inboundSchema` instead. */
457
+ export const inboundSchema = Model7$inboundSchema;
458
+ /** @deprecated use `Model7$outboundSchema` instead. */
459
+ export const outboundSchema = Model7$outboundSchema;
460
+ }
461
+
462
+ /** @internal */
463
+ export const Model6$inboundSchema: z.ZodNativeEnum<typeof Model6> = z
464
+ .nativeEnum(Model6);
465
+
466
+ /** @internal */
467
+ export const Model6$outboundSchema: z.ZodNativeEnum<typeof Model6> =
468
+ Model6$inboundSchema;
469
+
470
+ /**
471
+ * @internal
472
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
473
+ */
474
+ export namespace Model6$ {
475
+ /** @deprecated use `Model6$inboundSchema` instead. */
476
+ export const inboundSchema = Model6$inboundSchema;
477
+ /** @deprecated use `Model6$outboundSchema` instead. */
478
+ export const outboundSchema = Model6$outboundSchema;
479
+ }
480
+
481
+ /** @internal */
482
+ export const Model5$inboundSchema: z.ZodNativeEnum<typeof Model5> = z
483
+ .nativeEnum(Model5);
484
+
485
+ /** @internal */
486
+ export const Model5$outboundSchema: z.ZodNativeEnum<typeof Model5> =
487
+ Model5$inboundSchema;
488
+
489
+ /**
490
+ * @internal
491
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
492
+ */
493
+ export namespace Model5$ {
494
+ /** @deprecated use `Model5$inboundSchema` instead. */
495
+ export const inboundSchema = Model5$inboundSchema;
496
+ /** @deprecated use `Model5$outboundSchema` instead. */
497
+ export const outboundSchema = Model5$outboundSchema;
498
+ }
499
+
500
+ /** @internal */
501
+ export const Model4$inboundSchema: z.ZodNativeEnum<typeof Model4> = z
502
+ .nativeEnum(Model4);
503
+
504
+ /** @internal */
505
+ export const Model4$outboundSchema: z.ZodNativeEnum<typeof Model4> =
506
+ Model4$inboundSchema;
507
+
508
+ /**
509
+ * @internal
510
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
511
+ */
512
+ export namespace Model4$ {
513
+ /** @deprecated use `Model4$inboundSchema` instead. */
514
+ export const inboundSchema = Model4$inboundSchema;
515
+ /** @deprecated use `Model4$outboundSchema` instead. */
516
+ export const outboundSchema = Model4$outboundSchema;
517
+ }
518
+
519
+ /** @internal */
520
+ export const UpdateMemoryStoreModel3$inboundSchema: z.ZodNativeEnum<
521
+ typeof UpdateMemoryStoreModel3
522
+ > = z.nativeEnum(UpdateMemoryStoreModel3);
523
+
524
+ /** @internal */
525
+ export const UpdateMemoryStoreModel3$outboundSchema: z.ZodNativeEnum<
526
+ typeof UpdateMemoryStoreModel3
527
+ > = UpdateMemoryStoreModel3$inboundSchema;
528
+
529
+ /**
530
+ * @internal
531
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
532
+ */
533
+ export namespace UpdateMemoryStoreModel3$ {
534
+ /** @deprecated use `UpdateMemoryStoreModel3$inboundSchema` instead. */
535
+ export const inboundSchema = UpdateMemoryStoreModel3$inboundSchema;
536
+ /** @deprecated use `UpdateMemoryStoreModel3$outboundSchema` instead. */
537
+ export const outboundSchema = UpdateMemoryStoreModel3$outboundSchema;
538
+ }
539
+
540
+ /** @internal */
541
+ export const UpdateMemoryStoreModel2$inboundSchema: z.ZodNativeEnum<
542
+ typeof UpdateMemoryStoreModel2
543
+ > = z.nativeEnum(UpdateMemoryStoreModel2);
544
+
545
+ /** @internal */
546
+ export const UpdateMemoryStoreModel2$outboundSchema: z.ZodNativeEnum<
547
+ typeof UpdateMemoryStoreModel2
548
+ > = UpdateMemoryStoreModel2$inboundSchema;
549
+
550
+ /**
551
+ * @internal
552
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
553
+ */
554
+ export namespace UpdateMemoryStoreModel2$ {
555
+ /** @deprecated use `UpdateMemoryStoreModel2$inboundSchema` instead. */
556
+ export const inboundSchema = UpdateMemoryStoreModel2$inboundSchema;
557
+ /** @deprecated use `UpdateMemoryStoreModel2$outboundSchema` instead. */
558
+ export const outboundSchema = UpdateMemoryStoreModel2$outboundSchema;
559
+ }
560
+
561
+ /** @internal */
562
+ export const UpdateMemoryStoreModel1$inboundSchema: z.ZodNativeEnum<
563
+ typeof UpdateMemoryStoreModel1
564
+ > = z.nativeEnum(UpdateMemoryStoreModel1);
565
+
566
+ /** @internal */
567
+ export const UpdateMemoryStoreModel1$outboundSchema: z.ZodNativeEnum<
568
+ typeof UpdateMemoryStoreModel1
569
+ > = UpdateMemoryStoreModel1$inboundSchema;
570
+
571
+ /**
572
+ * @internal
573
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
574
+ */
575
+ export namespace UpdateMemoryStoreModel1$ {
576
+ /** @deprecated use `UpdateMemoryStoreModel1$inboundSchema` instead. */
577
+ export const inboundSchema = UpdateMemoryStoreModel1$inboundSchema;
578
+ /** @deprecated use `UpdateMemoryStoreModel1$outboundSchema` instead. */
579
+ export const outboundSchema = UpdateMemoryStoreModel1$outboundSchema;
580
+ }
581
+
582
+ /** @internal */
583
+ export const UpdateMemoryStoreModel$inboundSchema: z.ZodType<
584
+ UpdateMemoryStoreModel,
585
+ z.ZodTypeDef,
586
+ unknown
587
+ > = z.union([
588
+ UpdateMemoryStoreModel1$inboundSchema,
589
+ UpdateMemoryStoreModel2$inboundSchema,
590
+ UpdateMemoryStoreModel3$inboundSchema,
591
+ Model4$inboundSchema,
592
+ Model5$inboundSchema,
593
+ Model6$inboundSchema,
594
+ Model7$inboundSchema,
595
+ Model8$inboundSchema,
596
+ Model9$inboundSchema,
597
+ Model10$inboundSchema,
598
+ Model11$inboundSchema,
599
+ Model12$inboundSchema,
600
+ Model13$inboundSchema,
601
+ Model14$inboundSchema,
602
+ Model15$inboundSchema,
603
+ Model16$inboundSchema,
604
+ Model17$inboundSchema,
605
+ ]);
606
+
607
+ /** @internal */
608
+ export type UpdateMemoryStoreModel$Outbound =
609
+ | string
610
+ | string
611
+ | string
612
+ | string
613
+ | string
614
+ | string
615
+ | string
616
+ | string
617
+ | string
618
+ | string
619
+ | string
620
+ | string
621
+ | string
622
+ | string
623
+ | string
624
+ | string
625
+ | string;
626
+
627
+ /** @internal */
628
+ export const UpdateMemoryStoreModel$outboundSchema: z.ZodType<
629
+ UpdateMemoryStoreModel$Outbound,
630
+ z.ZodTypeDef,
631
+ UpdateMemoryStoreModel
632
+ > = z.union([
633
+ UpdateMemoryStoreModel1$outboundSchema,
634
+ UpdateMemoryStoreModel2$outboundSchema,
635
+ UpdateMemoryStoreModel3$outboundSchema,
636
+ Model4$outboundSchema,
637
+ Model5$outboundSchema,
638
+ Model6$outboundSchema,
639
+ Model7$outboundSchema,
640
+ Model8$outboundSchema,
641
+ Model9$outboundSchema,
642
+ Model10$outboundSchema,
643
+ Model11$outboundSchema,
644
+ Model12$outboundSchema,
645
+ Model13$outboundSchema,
646
+ Model14$outboundSchema,
647
+ Model15$outboundSchema,
648
+ Model16$outboundSchema,
649
+ Model17$outboundSchema,
650
+ ]);
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 UpdateMemoryStoreModel$ {
657
+ /** @deprecated use `UpdateMemoryStoreModel$inboundSchema` instead. */
658
+ export const inboundSchema = UpdateMemoryStoreModel$inboundSchema;
659
+ /** @deprecated use `UpdateMemoryStoreModel$outboundSchema` instead. */
660
+ export const outboundSchema = UpdateMemoryStoreModel$outboundSchema;
661
+ /** @deprecated use `UpdateMemoryStoreModel$Outbound` instead. */
662
+ export type Outbound = UpdateMemoryStoreModel$Outbound;
663
+ }
664
+
665
+ export function updateMemoryStoreModelToJSON(
666
+ updateMemoryStoreModel: UpdateMemoryStoreModel,
667
+ ): string {
668
+ return JSON.stringify(
669
+ UpdateMemoryStoreModel$outboundSchema.parse(updateMemoryStoreModel),
670
+ );
671
+ }
672
+
673
+ export function updateMemoryStoreModelFromJSON(
674
+ jsonString: string,
675
+ ): SafeParseResult<UpdateMemoryStoreModel, SDKValidationError> {
676
+ return safeParse(
677
+ jsonString,
678
+ (x) => UpdateMemoryStoreModel$inboundSchema.parse(JSON.parse(x)),
679
+ `Failed to parse 'UpdateMemoryStoreModel' from JSON`,
680
+ );
681
+ }
682
+
683
+ /** @internal */
684
+ export const UpdateMemoryStoreEmbeddingConfig$inboundSchema: z.ZodType<
685
+ UpdateMemoryStoreEmbeddingConfig,
686
+ z.ZodTypeDef,
687
+ unknown
688
+ > = z.object({
689
+ model: z.union([
690
+ UpdateMemoryStoreModel1$inboundSchema,
691
+ UpdateMemoryStoreModel2$inboundSchema,
692
+ UpdateMemoryStoreModel3$inboundSchema,
693
+ Model4$inboundSchema,
694
+ Model5$inboundSchema,
695
+ Model6$inboundSchema,
696
+ Model7$inboundSchema,
697
+ Model8$inboundSchema,
698
+ Model9$inboundSchema,
699
+ Model10$inboundSchema,
700
+ Model11$inboundSchema,
701
+ Model12$inboundSchema,
702
+ Model13$inboundSchema,
703
+ Model14$inboundSchema,
704
+ Model15$inboundSchema,
705
+ Model16$inboundSchema,
706
+ Model17$inboundSchema,
707
+ ]),
708
+ });
709
+
710
+ /** @internal */
711
+ export type UpdateMemoryStoreEmbeddingConfig$Outbound = {
712
+ model:
713
+ | string
714
+ | string
715
+ | string
716
+ | string
717
+ | string
718
+ | string
719
+ | string
720
+ | string
721
+ | string
722
+ | string
723
+ | string
724
+ | string
725
+ | string
726
+ | string
727
+ | string
728
+ | string
729
+ | string;
730
+ };
731
+
732
+ /** @internal */
733
+ export const UpdateMemoryStoreEmbeddingConfig$outboundSchema: z.ZodType<
734
+ UpdateMemoryStoreEmbeddingConfig$Outbound,
735
+ z.ZodTypeDef,
736
+ UpdateMemoryStoreEmbeddingConfig
737
+ > = z.object({
738
+ model: z.union([
739
+ UpdateMemoryStoreModel1$outboundSchema,
740
+ UpdateMemoryStoreModel2$outboundSchema,
741
+ UpdateMemoryStoreModel3$outboundSchema,
742
+ Model4$outboundSchema,
743
+ Model5$outboundSchema,
744
+ Model6$outboundSchema,
745
+ Model7$outboundSchema,
746
+ Model8$outboundSchema,
747
+ Model9$outboundSchema,
748
+ Model10$outboundSchema,
749
+ Model11$outboundSchema,
750
+ Model12$outboundSchema,
751
+ Model13$outboundSchema,
752
+ Model14$outboundSchema,
753
+ Model15$outboundSchema,
754
+ Model16$outboundSchema,
755
+ Model17$outboundSchema,
756
+ ]),
757
+ });
758
+
759
+ /**
760
+ * @internal
761
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
762
+ */
763
+ export namespace UpdateMemoryStoreEmbeddingConfig$ {
764
+ /** @deprecated use `UpdateMemoryStoreEmbeddingConfig$inboundSchema` instead. */
765
+ export const inboundSchema = UpdateMemoryStoreEmbeddingConfig$inboundSchema;
766
+ /** @deprecated use `UpdateMemoryStoreEmbeddingConfig$outboundSchema` instead. */
767
+ export const outboundSchema = UpdateMemoryStoreEmbeddingConfig$outboundSchema;
768
+ /** @deprecated use `UpdateMemoryStoreEmbeddingConfig$Outbound` instead. */
769
+ export type Outbound = UpdateMemoryStoreEmbeddingConfig$Outbound;
770
+ }
771
+
772
+ export function updateMemoryStoreEmbeddingConfigToJSON(
773
+ updateMemoryStoreEmbeddingConfig: UpdateMemoryStoreEmbeddingConfig,
774
+ ): string {
775
+ return JSON.stringify(
776
+ UpdateMemoryStoreEmbeddingConfig$outboundSchema.parse(
777
+ updateMemoryStoreEmbeddingConfig,
778
+ ),
779
+ );
780
+ }
781
+
782
+ export function updateMemoryStoreEmbeddingConfigFromJSON(
783
+ jsonString: string,
784
+ ): SafeParseResult<UpdateMemoryStoreEmbeddingConfig, SDKValidationError> {
785
+ return safeParse(
786
+ jsonString,
787
+ (x) => UpdateMemoryStoreEmbeddingConfig$inboundSchema.parse(JSON.parse(x)),
788
+ `Failed to parse 'UpdateMemoryStoreEmbeddingConfig' from JSON`,
789
+ );
790
+ }
791
+
792
+ /** @internal */
793
+ export const UpdateMemoryStoreRequestBody$inboundSchema: z.ZodType<
794
+ UpdateMemoryStoreRequestBody,
795
+ z.ZodTypeDef,
796
+ unknown
797
+ > = z.object({
798
+ embedding_config: z.lazy(() =>
799
+ UpdateMemoryStoreEmbeddingConfig$inboundSchema
800
+ ),
801
+ description: z.string(),
802
+ ttl: z.number().optional(),
803
+ path: z.string(),
804
+ }).transform((v) => {
805
+ return remap$(v, {
806
+ "embedding_config": "embeddingConfig",
807
+ });
808
+ });
809
+
810
+ /** @internal */
811
+ export type UpdateMemoryStoreRequestBody$Outbound = {
812
+ embedding_config: UpdateMemoryStoreEmbeddingConfig$Outbound;
813
+ description: string;
814
+ ttl?: number | undefined;
815
+ path: string;
816
+ };
817
+
818
+ /** @internal */
819
+ export const UpdateMemoryStoreRequestBody$outboundSchema: z.ZodType<
820
+ UpdateMemoryStoreRequestBody$Outbound,
821
+ z.ZodTypeDef,
822
+ UpdateMemoryStoreRequestBody
823
+ > = z.object({
824
+ embeddingConfig: z.lazy(() =>
825
+ UpdateMemoryStoreEmbeddingConfig$outboundSchema
826
+ ),
827
+ description: z.string(),
828
+ ttl: z.number().optional(),
829
+ path: z.string(),
830
+ }).transform((v) => {
831
+ return remap$(v, {
832
+ embeddingConfig: "embedding_config",
833
+ });
834
+ });
835
+
836
+ /**
837
+ * @internal
838
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
839
+ */
840
+ export namespace UpdateMemoryStoreRequestBody$ {
841
+ /** @deprecated use `UpdateMemoryStoreRequestBody$inboundSchema` instead. */
842
+ export const inboundSchema = UpdateMemoryStoreRequestBody$inboundSchema;
843
+ /** @deprecated use `UpdateMemoryStoreRequestBody$outboundSchema` instead. */
844
+ export const outboundSchema = UpdateMemoryStoreRequestBody$outboundSchema;
845
+ /** @deprecated use `UpdateMemoryStoreRequestBody$Outbound` instead. */
846
+ export type Outbound = UpdateMemoryStoreRequestBody$Outbound;
847
+ }
848
+
849
+ export function updateMemoryStoreRequestBodyToJSON(
850
+ updateMemoryStoreRequestBody: UpdateMemoryStoreRequestBody,
851
+ ): string {
852
+ return JSON.stringify(
853
+ UpdateMemoryStoreRequestBody$outboundSchema.parse(
854
+ updateMemoryStoreRequestBody,
855
+ ),
856
+ );
857
+ }
858
+
859
+ export function updateMemoryStoreRequestBodyFromJSON(
860
+ jsonString: string,
861
+ ): SafeParseResult<UpdateMemoryStoreRequestBody, SDKValidationError> {
862
+ return safeParse(
863
+ jsonString,
864
+ (x) => UpdateMemoryStoreRequestBody$inboundSchema.parse(JSON.parse(x)),
865
+ `Failed to parse 'UpdateMemoryStoreRequestBody' from JSON`,
866
+ );
867
+ }
868
+
869
+ /** @internal */
870
+ export const UpdateMemoryStoreRequest$inboundSchema: z.ZodType<
871
+ UpdateMemoryStoreRequest,
872
+ z.ZodTypeDef,
873
+ unknown
874
+ > = z.object({
875
+ memory_store_key: z.string(),
876
+ RequestBody: z.lazy(() => UpdateMemoryStoreRequestBody$inboundSchema)
877
+ .optional(),
878
+ }).transform((v) => {
879
+ return remap$(v, {
880
+ "memory_store_key": "memoryStoreKey",
881
+ "RequestBody": "requestBody",
882
+ });
883
+ });
884
+
885
+ /** @internal */
886
+ export type UpdateMemoryStoreRequest$Outbound = {
887
+ memory_store_key: string;
888
+ RequestBody?: UpdateMemoryStoreRequestBody$Outbound | undefined;
889
+ };
890
+
891
+ /** @internal */
892
+ export const UpdateMemoryStoreRequest$outboundSchema: z.ZodType<
893
+ UpdateMemoryStoreRequest$Outbound,
894
+ z.ZodTypeDef,
895
+ UpdateMemoryStoreRequest
896
+ > = z.object({
897
+ memoryStoreKey: z.string(),
898
+ requestBody: z.lazy(() => UpdateMemoryStoreRequestBody$outboundSchema)
899
+ .optional(),
900
+ }).transform((v) => {
901
+ return remap$(v, {
902
+ memoryStoreKey: "memory_store_key",
903
+ requestBody: "RequestBody",
904
+ });
905
+ });
906
+
907
+ /**
908
+ * @internal
909
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
910
+ */
911
+ export namespace UpdateMemoryStoreRequest$ {
912
+ /** @deprecated use `UpdateMemoryStoreRequest$inboundSchema` instead. */
913
+ export const inboundSchema = UpdateMemoryStoreRequest$inboundSchema;
914
+ /** @deprecated use `UpdateMemoryStoreRequest$outboundSchema` instead. */
915
+ export const outboundSchema = UpdateMemoryStoreRequest$outboundSchema;
916
+ /** @deprecated use `UpdateMemoryStoreRequest$Outbound` instead. */
917
+ export type Outbound = UpdateMemoryStoreRequest$Outbound;
918
+ }
919
+
920
+ export function updateMemoryStoreRequestToJSON(
921
+ updateMemoryStoreRequest: UpdateMemoryStoreRequest,
922
+ ): string {
923
+ return JSON.stringify(
924
+ UpdateMemoryStoreRequest$outboundSchema.parse(updateMemoryStoreRequest),
925
+ );
926
+ }
927
+
928
+ export function updateMemoryStoreRequestFromJSON(
929
+ jsonString: string,
930
+ ): SafeParseResult<UpdateMemoryStoreRequest, SDKValidationError> {
931
+ return safeParse(
932
+ jsonString,
933
+ (x) => UpdateMemoryStoreRequest$inboundSchema.parse(JSON.parse(x)),
934
+ `Failed to parse 'UpdateMemoryStoreRequest' from JSON`,
935
+ );
936
+ }
937
+
938
+ /** @internal */
939
+ export const UpdateMemoryStoreProvider$inboundSchema: z.ZodNativeEnum<
940
+ typeof UpdateMemoryStoreProvider
941
+ > = z.nativeEnum(UpdateMemoryStoreProvider);
942
+
943
+ /** @internal */
944
+ export const UpdateMemoryStoreProvider$outboundSchema: z.ZodNativeEnum<
945
+ typeof UpdateMemoryStoreProvider
946
+ > = UpdateMemoryStoreProvider$inboundSchema;
947
+
948
+ /**
949
+ * @internal
950
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
951
+ */
952
+ export namespace UpdateMemoryStoreProvider$ {
953
+ /** @deprecated use `UpdateMemoryStoreProvider$inboundSchema` instead. */
954
+ export const inboundSchema = UpdateMemoryStoreProvider$inboundSchema;
955
+ /** @deprecated use `UpdateMemoryStoreProvider$outboundSchema` instead. */
956
+ export const outboundSchema = UpdateMemoryStoreProvider$outboundSchema;
957
+ }
958
+
959
+ /** @internal */
960
+ export const UpdateMemoryStoreMemoryStoresEmbeddingConfig$inboundSchema:
961
+ z.ZodType<
962
+ UpdateMemoryStoreMemoryStoresEmbeddingConfig,
963
+ z.ZodTypeDef,
964
+ unknown
965
+ > = z.object({
966
+ model_id: z.string(),
967
+ integration_id: z.string().optional(),
968
+ top_k: z.number().optional(),
969
+ provider: UpdateMemoryStoreProvider$inboundSchema,
970
+ }).transform((v) => {
971
+ return remap$(v, {
972
+ "model_id": "modelId",
973
+ "integration_id": "integrationId",
974
+ "top_k": "topK",
975
+ });
976
+ });
977
+
978
+ /** @internal */
979
+ export type UpdateMemoryStoreMemoryStoresEmbeddingConfig$Outbound = {
980
+ model_id: string;
981
+ integration_id?: string | undefined;
982
+ top_k?: number | undefined;
983
+ provider: string;
984
+ };
985
+
986
+ /** @internal */
987
+ export const UpdateMemoryStoreMemoryStoresEmbeddingConfig$outboundSchema:
988
+ z.ZodType<
989
+ UpdateMemoryStoreMemoryStoresEmbeddingConfig$Outbound,
990
+ z.ZodTypeDef,
991
+ UpdateMemoryStoreMemoryStoresEmbeddingConfig
992
+ > = z.object({
993
+ modelId: z.string(),
994
+ integrationId: z.string().optional(),
995
+ topK: z.number().optional(),
996
+ provider: UpdateMemoryStoreProvider$outboundSchema,
997
+ }).transform((v) => {
998
+ return remap$(v, {
999
+ modelId: "model_id",
1000
+ integrationId: "integration_id",
1001
+ topK: "top_k",
1002
+ });
1003
+ });
1004
+
1005
+ /**
1006
+ * @internal
1007
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1008
+ */
1009
+ export namespace UpdateMemoryStoreMemoryStoresEmbeddingConfig$ {
1010
+ /** @deprecated use `UpdateMemoryStoreMemoryStoresEmbeddingConfig$inboundSchema` instead. */
1011
+ export const inboundSchema =
1012
+ UpdateMemoryStoreMemoryStoresEmbeddingConfig$inboundSchema;
1013
+ /** @deprecated use `UpdateMemoryStoreMemoryStoresEmbeddingConfig$outboundSchema` instead. */
1014
+ export const outboundSchema =
1015
+ UpdateMemoryStoreMemoryStoresEmbeddingConfig$outboundSchema;
1016
+ /** @deprecated use `UpdateMemoryStoreMemoryStoresEmbeddingConfig$Outbound` instead. */
1017
+ export type Outbound = UpdateMemoryStoreMemoryStoresEmbeddingConfig$Outbound;
1018
+ }
1019
+
1020
+ export function updateMemoryStoreMemoryStoresEmbeddingConfigToJSON(
1021
+ updateMemoryStoreMemoryStoresEmbeddingConfig:
1022
+ UpdateMemoryStoreMemoryStoresEmbeddingConfig,
1023
+ ): string {
1024
+ return JSON.stringify(
1025
+ UpdateMemoryStoreMemoryStoresEmbeddingConfig$outboundSchema.parse(
1026
+ updateMemoryStoreMemoryStoresEmbeddingConfig,
1027
+ ),
1028
+ );
1029
+ }
1030
+
1031
+ export function updateMemoryStoreMemoryStoresEmbeddingConfigFromJSON(
1032
+ jsonString: string,
1033
+ ): SafeParseResult<
1034
+ UpdateMemoryStoreMemoryStoresEmbeddingConfig,
1035
+ SDKValidationError
1036
+ > {
1037
+ return safeParse(
1038
+ jsonString,
1039
+ (x) =>
1040
+ UpdateMemoryStoreMemoryStoresEmbeddingConfig$inboundSchema.parse(
1041
+ JSON.parse(x),
1042
+ ),
1043
+ `Failed to parse 'UpdateMemoryStoreMemoryStoresEmbeddingConfig' from JSON`,
1044
+ );
1045
+ }
1046
+
1047
+ /** @internal */
1048
+ export const UpdateMemoryStoreResponseBody$inboundSchema: z.ZodType<
1049
+ UpdateMemoryStoreResponseBody,
1050
+ z.ZodTypeDef,
1051
+ unknown
1052
+ > = z.object({
1053
+ _id: z.string(),
1054
+ key: z.string(),
1055
+ project_id: z.string(),
1056
+ description: z.string(),
1057
+ created_by_id: z.string().optional(),
1058
+ updated_by_id: z.string().optional(),
1059
+ created: z.string(),
1060
+ updated: z.string(),
1061
+ ttl: z.number().optional(),
1062
+ embedding_config: z.lazy(() =>
1063
+ UpdateMemoryStoreMemoryStoresEmbeddingConfig$inboundSchema
1064
+ ),
1065
+ }).transform((v) => {
1066
+ return remap$(v, {
1067
+ "_id": "id",
1068
+ "project_id": "projectId",
1069
+ "created_by_id": "createdById",
1070
+ "updated_by_id": "updatedById",
1071
+ "embedding_config": "embeddingConfig",
1072
+ });
1073
+ });
1074
+
1075
+ /** @internal */
1076
+ export type UpdateMemoryStoreResponseBody$Outbound = {
1077
+ _id: string;
1078
+ key: string;
1079
+ project_id: string;
1080
+ description: string;
1081
+ created_by_id?: string | undefined;
1082
+ updated_by_id?: string | undefined;
1083
+ created: string;
1084
+ updated: string;
1085
+ ttl?: number | undefined;
1086
+ embedding_config: UpdateMemoryStoreMemoryStoresEmbeddingConfig$Outbound;
1087
+ };
1088
+
1089
+ /** @internal */
1090
+ export const UpdateMemoryStoreResponseBody$outboundSchema: z.ZodType<
1091
+ UpdateMemoryStoreResponseBody$Outbound,
1092
+ z.ZodTypeDef,
1093
+ UpdateMemoryStoreResponseBody
1094
+ > = z.object({
1095
+ id: z.string(),
1096
+ key: z.string(),
1097
+ projectId: z.string(),
1098
+ description: z.string(),
1099
+ createdById: z.string().optional(),
1100
+ updatedById: z.string().optional(),
1101
+ created: z.string(),
1102
+ updated: z.string(),
1103
+ ttl: z.number().optional(),
1104
+ embeddingConfig: z.lazy(() =>
1105
+ UpdateMemoryStoreMemoryStoresEmbeddingConfig$outboundSchema
1106
+ ),
1107
+ }).transform((v) => {
1108
+ return remap$(v, {
1109
+ id: "_id",
1110
+ projectId: "project_id",
1111
+ createdById: "created_by_id",
1112
+ updatedById: "updated_by_id",
1113
+ embeddingConfig: "embedding_config",
1114
+ });
1115
+ });
1116
+
1117
+ /**
1118
+ * @internal
1119
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1120
+ */
1121
+ export namespace UpdateMemoryStoreResponseBody$ {
1122
+ /** @deprecated use `UpdateMemoryStoreResponseBody$inboundSchema` instead. */
1123
+ export const inboundSchema = UpdateMemoryStoreResponseBody$inboundSchema;
1124
+ /** @deprecated use `UpdateMemoryStoreResponseBody$outboundSchema` instead. */
1125
+ export const outboundSchema = UpdateMemoryStoreResponseBody$outboundSchema;
1126
+ /** @deprecated use `UpdateMemoryStoreResponseBody$Outbound` instead. */
1127
+ export type Outbound = UpdateMemoryStoreResponseBody$Outbound;
1128
+ }
1129
+
1130
+ export function updateMemoryStoreResponseBodyToJSON(
1131
+ updateMemoryStoreResponseBody: UpdateMemoryStoreResponseBody,
1132
+ ): string {
1133
+ return JSON.stringify(
1134
+ UpdateMemoryStoreResponseBody$outboundSchema.parse(
1135
+ updateMemoryStoreResponseBody,
1136
+ ),
1137
+ );
1138
+ }
1139
+
1140
+ export function updateMemoryStoreResponseBodyFromJSON(
1141
+ jsonString: string,
1142
+ ): SafeParseResult<UpdateMemoryStoreResponseBody, SDKValidationError> {
1143
+ return safeParse(
1144
+ jsonString,
1145
+ (x) => UpdateMemoryStoreResponseBody$inboundSchema.parse(JSON.parse(x)),
1146
+ `Failed to parse 'UpdateMemoryStoreResponseBody' from JSON`,
1147
+ );
1148
+ }