@orq-ai/node 3.13.7 → 3.13.9

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 (170) hide show
  1. package/bin/mcp-server.js +215 -229
  2. package/bin/mcp-server.js.map +44 -44
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/components/deployments.d.ts +0 -6
  10. package/models/components/deployments.d.ts.map +1 -1
  11. package/models/components/deployments.js +0 -2
  12. package/models/components/deployments.js.map +1 -1
  13. package/models/operations/createbudget.js +2 -2
  14. package/models/operations/createcontact.js +2 -2
  15. package/models/operations/createdataset.js +2 -2
  16. package/models/operations/createdatasetitem.d.ts +0 -6
  17. package/models/operations/createdatasetitem.d.ts.map +1 -1
  18. package/models/operations/createdatasetitem.js +2 -4
  19. package/models/operations/createdatasetitem.js.map +1 -1
  20. package/models/operations/createdatasource.js +2 -2
  21. package/models/operations/createeval.js +28 -28
  22. package/models/operations/createtool.js +14 -14
  23. package/models/operations/deploymentcreatemetric.d.ts +0 -6
  24. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  25. package/models/operations/deploymentcreatemetric.js +0 -2
  26. package/models/operations/deploymentcreatemetric.js.map +1 -1
  27. package/models/operations/deploymentgetconfig.d.ts +0 -6
  28. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  29. package/models/operations/deploymentgetconfig.js +0 -2
  30. package/models/operations/deploymentgetconfig.js.map +1 -1
  31. package/models/operations/deploymentstream.d.ts +0 -6
  32. package/models/operations/deploymentstream.d.ts.map +1 -1
  33. package/models/operations/deploymentstream.js +0 -2
  34. package/models/operations/deploymentstream.js.map +1 -1
  35. package/models/operations/duplicatetool.js +10 -10
  36. package/models/operations/fileget.js +2 -2
  37. package/models/operations/filelist.js +2 -2
  38. package/models/operations/fileupload.js +2 -2
  39. package/models/operations/getagent.js +2 -2
  40. package/models/operations/getalltools.js +10 -10
  41. package/models/operations/getbudget.js +2 -2
  42. package/models/operations/getevals.js +28 -28
  43. package/models/operations/listagents.js +2 -2
  44. package/models/operations/listbudgets.js +2 -2
  45. package/models/operations/listcontacts.js +2 -2
  46. package/models/operations/listdatasetdatapoints.d.ts +0 -3
  47. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  48. package/models/operations/listdatasetdatapoints.js +2 -3
  49. package/models/operations/listdatasetdatapoints.js.map +1 -1
  50. package/models/operations/listdatasets.js +2 -2
  51. package/models/operations/listdatasources.js +2 -2
  52. package/models/operations/retrievecontact.js +2 -2
  53. package/models/operations/retrievedatapoint.d.ts +0 -3
  54. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  55. package/models/operations/retrievedatapoint.js +2 -3
  56. package/models/operations/retrievedatapoint.js.map +1 -1
  57. package/models/operations/retrievedataset.js +2 -2
  58. package/models/operations/retrievedatasource.js +2 -2
  59. package/models/operations/retrievetool.js +10 -10
  60. package/models/operations/runagent.js +2 -2
  61. package/models/operations/streamrunagent.js +2 -2
  62. package/models/operations/updatebudget.js +2 -2
  63. package/models/operations/updatecontact.js +2 -2
  64. package/models/operations/updatedatapoint.d.ts +0 -6
  65. package/models/operations/updatedatapoint.d.ts.map +1 -1
  66. package/models/operations/updatedatapoint.js +2 -4
  67. package/models/operations/updatedatapoint.js.map +1 -1
  68. package/models/operations/updatedataset.js +2 -2
  69. package/models/operations/updatedatasource.js +2 -2
  70. package/models/operations/updateeval.js +28 -28
  71. package/models/operations/updatetool.js +14 -14
  72. package/package.json +1 -1
  73. package/packages/orq-rc/docs/sdks/knowledge/README.md +6 -0
  74. package/packages/orq-rc/examples/package-lock.json +1 -1
  75. package/packages/orq-rc/jsr.json +1 -1
  76. package/packages/orq-rc/package-lock.json +2 -2
  77. package/packages/orq-rc/package.json +1 -1
  78. package/packages/orq-rc/src/lib/config.ts +2 -2
  79. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  80. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  81. package/packages/orq-rc/src/models/components/deployments.ts +0 -2
  82. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/createdataset.ts +9 -3
  85. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -10
  86. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  87. package/packages/orq-rc/src/models/operations/createeval.ts +236 -201
  88. package/packages/orq-rc/src/models/operations/createknowledge.ts +1231 -275
  89. package/packages/orq-rc/src/models/operations/creatememorystore.ts +7 -1
  90. package/packages/orq-rc/src/models/operations/createprompt.ts +7 -1
  91. package/packages/orq-rc/src/models/operations/createtool.ts +192 -116
  92. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2
  93. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -2
  94. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -2
  95. package/packages/orq-rc/src/models/operations/duplicatetool.ts +45 -15
  96. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  99. package/packages/orq-rc/src/models/operations/getagent.ts +9 -3
  100. package/packages/orq-rc/src/models/operations/getalltools.ts +167 -118
  101. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/getevals.ts +157 -143
  103. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +912 -166
  104. package/packages/orq-rc/src/models/operations/listagents.ts +9 -3
  105. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  106. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  107. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -9
  108. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  109. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  110. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +755 -150
  111. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -9
  113. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  114. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  115. package/packages/orq-rc/src/models/operations/retrievetool.ts +45 -15
  116. package/packages/orq-rc/src/models/operations/runagent.ts +7 -1
  117. package/packages/orq-rc/src/models/operations/searchknowledge.ts +49 -62
  118. package/packages/orq-rc/src/models/operations/streamrunagent.ts +7 -1
  119. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  120. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -10
  122. package/packages/orq-rc/src/models/operations/updatedataset.ts +9 -3
  123. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  124. package/packages/orq-rc/src/models/operations/updateeval.ts +56 -32
  125. package/packages/orq-rc/src/models/operations/updateknowledge.ts +1710 -367
  126. package/packages/orq-rc/src/models/operations/updatememorystore.ts +7 -1
  127. package/packages/orq-rc/src/models/operations/updateprompt.ts +7 -1
  128. package/packages/orq-rc/src/models/operations/updatetool.ts +80 -20
  129. package/src/lib/config.ts +2 -2
  130. package/src/mcp-server/mcp-server.ts +1 -1
  131. package/src/mcp-server/server.ts +1 -1
  132. package/src/models/components/deployments.ts +0 -2
  133. package/src/models/operations/createbudget.ts +2 -2
  134. package/src/models/operations/createcontact.ts +2 -2
  135. package/src/models/operations/createdataset.ts +2 -2
  136. package/src/models/operations/createdatasetitem.ts +2 -4
  137. package/src/models/operations/createdatasource.ts +2 -2
  138. package/src/models/operations/createeval.ts +28 -28
  139. package/src/models/operations/createtool.ts +14 -14
  140. package/src/models/operations/deploymentcreatemetric.ts +0 -2
  141. package/src/models/operations/deploymentgetconfig.ts +0 -2
  142. package/src/models/operations/deploymentstream.ts +0 -2
  143. package/src/models/operations/duplicatetool.ts +10 -10
  144. package/src/models/operations/fileget.ts +2 -2
  145. package/src/models/operations/filelist.ts +2 -2
  146. package/src/models/operations/fileupload.ts +2 -2
  147. package/src/models/operations/getagent.ts +2 -2
  148. package/src/models/operations/getalltools.ts +10 -10
  149. package/src/models/operations/getbudget.ts +2 -2
  150. package/src/models/operations/getevals.ts +28 -28
  151. package/src/models/operations/listagents.ts +2 -2
  152. package/src/models/operations/listbudgets.ts +2 -2
  153. package/src/models/operations/listcontacts.ts +2 -2
  154. package/src/models/operations/listdatasetdatapoints.ts +2 -3
  155. package/src/models/operations/listdatasets.ts +2 -2
  156. package/src/models/operations/listdatasources.ts +2 -2
  157. package/src/models/operations/retrievecontact.ts +2 -2
  158. package/src/models/operations/retrievedatapoint.ts +2 -3
  159. package/src/models/operations/retrievedataset.ts +2 -2
  160. package/src/models/operations/retrievedatasource.ts +2 -2
  161. package/src/models/operations/retrievetool.ts +10 -10
  162. package/src/models/operations/runagent.ts +2 -2
  163. package/src/models/operations/streamrunagent.ts +2 -2
  164. package/src/models/operations/updatebudget.ts +2 -2
  165. package/src/models/operations/updatecontact.ts +2 -2
  166. package/src/models/operations/updatedatapoint.ts +2 -4
  167. package/src/models/operations/updatedataset.ts +2 -2
  168. package/src/models/operations/updatedatasource.ts +2 -2
  169. package/src/models/operations/updateeval.ts +28 -28
  170. package/src/models/operations/updatetool.ts +14 -14
@@ -16,10 +16,138 @@ export type GetOneKnowledgeRequest = {
16
16
  knowledgeId: string;
17
17
  };
18
18
 
19
+ export const GetOneKnowledgeResponseBodyKnowledgeType = {
20
+ External: "external",
21
+ } as const;
22
+ export type GetOneKnowledgeResponseBodyKnowledgeType = ClosedEnum<
23
+ typeof GetOneKnowledgeResponseBodyKnowledgeType
24
+ >;
25
+
26
+ /**
27
+ * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
28
+ */
29
+ export type GetOneKnowledgeResponseBodyKnowledgeRerankConfig = {
30
+ /**
31
+ * The number of results to return by the reranking model
32
+ */
33
+ topK?: number | undefined;
34
+ /**
35
+ * The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
36
+ */
37
+ rerankThreshold?: number | undefined;
38
+ /**
39
+ * The rerank model to use for the knowledge base.
40
+ */
41
+ rerankModel: string;
42
+ };
43
+
44
+ /**
45
+ * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
46
+ */
47
+ export type GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig = {
48
+ /**
49
+ * The model to use for the Agentic RAG
50
+ */
51
+ model: string;
52
+ };
53
+
54
+ /**
55
+ * The retrieval settings for the knowledge base.
56
+ */
57
+ export type GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings = {
58
+ /**
59
+ * The number of results to return from the search.
60
+ */
61
+ topK?: number | undefined;
62
+ /**
63
+ * The threshold value used to filter the search results, only documents with a relevance score greater than the threshold will be returned
64
+ */
65
+ threshold?: number | undefined;
66
+ /**
67
+ * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
68
+ */
69
+ rerankConfig?:
70
+ | GetOneKnowledgeResponseBodyKnowledgeRerankConfig
71
+ | null
72
+ | undefined;
73
+ /**
74
+ * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
75
+ */
76
+ agenticRagConfig?:
77
+ | GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig
78
+ | null
79
+ | undefined;
80
+ };
81
+
82
+ export type GetOneKnowledgeResponseBodyExternalConfig = {
83
+ /**
84
+ * The name of the external knowledge base.
85
+ */
86
+ name: string;
87
+ /**
88
+ * The API URL of the external knowledge base.
89
+ */
90
+ apiUrl: string;
91
+ };
92
+
93
+ export type GetOneKnowledgeResponseBody2 = {
94
+ /**
95
+ * The unique identifier of the knowledge base.
96
+ */
97
+ id: string;
98
+ /**
99
+ * The creation date of the knowledge base.
100
+ */
101
+ created: string;
102
+ /**
103
+ * The description of the knowledge base.
104
+ */
105
+ description?: string | undefined;
106
+ /**
107
+ * The unique key of the knowledge base.
108
+ */
109
+ key: string;
110
+ /**
111
+ * The project/domain ID of the knowledge base.
112
+ */
113
+ domainId: string;
114
+ /**
115
+ * Entity storage path in the format: `project/folder/subfolder/...`
116
+ *
117
+ * @remarks
118
+ *
119
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
120
+ *
121
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
122
+ */
123
+ path?: string | undefined;
124
+ createdById?: string | null | undefined;
125
+ updatedById?: string | null | undefined;
126
+ /**
127
+ * The last update date of the knowledge base.
128
+ */
129
+ updated: string;
130
+ type?: GetOneKnowledgeResponseBodyKnowledgeType | undefined;
131
+ /**
132
+ * The retrieval settings for the knowledge base.
133
+ */
134
+ retrievalSettings?:
135
+ | GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings
136
+ | undefined;
137
+ externalConfig: GetOneKnowledgeResponseBodyExternalConfig;
138
+ };
139
+
140
+ export const GetOneKnowledgeResponseBodyType = {
141
+ Internal: "internal",
142
+ } as const;
143
+ export type GetOneKnowledgeResponseBodyType = ClosedEnum<
144
+ typeof GetOneKnowledgeResponseBodyType
145
+ >;
146
+
19
147
  /**
20
148
  * The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
21
149
  */
22
- export const GetOneKnowledgeRetrievalType = {
150
+ export const GetOneKnowledgeResponseBodyRetrievalType = {
23
151
  VectorSearch: "vector_search",
24
152
  KeywordSearch: "keyword_search",
25
153
  HybridSearch: "hybrid_search",
@@ -27,14 +155,14 @@ export const GetOneKnowledgeRetrievalType = {
27
155
  /**
28
156
  * The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
29
157
  */
30
- export type GetOneKnowledgeRetrievalType = ClosedEnum<
31
- typeof GetOneKnowledgeRetrievalType
158
+ export type GetOneKnowledgeResponseBodyRetrievalType = ClosedEnum<
159
+ typeof GetOneKnowledgeResponseBodyRetrievalType
32
160
  >;
33
161
 
34
162
  /**
35
163
  * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
36
164
  */
37
- export type GetOneKnowledgeRerankConfig = {
165
+ export type GetOneKnowledgeResponseBodyRerankConfig = {
38
166
  /**
39
167
  * The number of results to return by the reranking model
40
168
  */
@@ -52,7 +180,7 @@ export type GetOneKnowledgeRerankConfig = {
52
180
  /**
53
181
  * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
54
182
  */
55
- export type GetOneKnowledgeAgenticRagConfig = {
183
+ export type GetOneKnowledgeResponseBodyAgenticRagConfig = {
56
184
  /**
57
185
  * The model to use for the Agentic RAG
58
186
  */
@@ -62,11 +190,11 @@ export type GetOneKnowledgeAgenticRagConfig = {
62
190
  /**
63
191
  * The retrieval settings for the knowledge base. If not provider, Hybrid Search will be used as a default query strategy.
64
192
  */
65
- export type GetOneKnowledgeRetrievalSettings = {
193
+ export type GetOneKnowledgeResponseBodyRetrievalSettings = {
66
194
  /**
67
195
  * The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
68
196
  */
69
- retrievalType?: GetOneKnowledgeRetrievalType | undefined;
197
+ retrievalType?: GetOneKnowledgeResponseBodyRetrievalType | undefined;
70
198
  /**
71
199
  * The number of results to return from the search.
72
200
  */
@@ -78,17 +206,17 @@ export type GetOneKnowledgeRetrievalSettings = {
78
206
  /**
79
207
  * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
80
208
  */
81
- rerankConfig?: GetOneKnowledgeRerankConfig | null | undefined;
209
+ rerankConfig?: GetOneKnowledgeResponseBodyRerankConfig | null | undefined;
82
210
  /**
83
211
  * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
84
212
  */
85
- agenticRagConfig?: GetOneKnowledgeAgenticRagConfig | null | undefined;
213
+ agenticRagConfig?:
214
+ | GetOneKnowledgeResponseBodyAgenticRagConfig
215
+ | null
216
+ | undefined;
86
217
  };
87
218
 
88
- /**
89
- * Knowledge Base object
90
- */
91
- export type GetOneKnowledgeResponseBody = {
219
+ export type GetOneKnowledgeResponseBody1 = {
92
220
  /**
93
221
  * The unique identifier of the knowledge base.
94
222
  */
@@ -105,30 +233,44 @@ export type GetOneKnowledgeResponseBody = {
105
233
  * The unique key of the knowledge base.
106
234
  */
107
235
  key: string;
108
- /**
109
- * The embeddings model used for the knowledge base.
110
- */
111
- model: string;
112
236
  /**
113
237
  * The project/domain ID of the knowledge base.
114
238
  */
115
239
  domainId: string;
116
240
  /**
117
- * 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.
241
+ * Entity storage path in the format: `project/folder/subfolder/...`
242
+ *
243
+ * @remarks
244
+ *
245
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
246
+ *
247
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
118
248
  */
119
249
  path?: string | undefined;
120
- /**
121
- * The retrieval settings for the knowledge base. If not provider, Hybrid Search will be used as a default query strategy.
122
- */
123
- retrievalSettings?: GetOneKnowledgeRetrievalSettings | undefined;
124
250
  createdById?: string | null | undefined;
125
251
  updatedById?: string | null | undefined;
126
252
  /**
127
253
  * The last update date of the knowledge base.
128
254
  */
129
255
  updated: string;
256
+ type?: GetOneKnowledgeResponseBodyType | undefined;
257
+ /**
258
+ * The retrieval settings for the knowledge base. If not provider, Hybrid Search will be used as a default query strategy.
259
+ */
260
+ retrievalSettings?: GetOneKnowledgeResponseBodyRetrievalSettings | undefined;
261
+ /**
262
+ * The embeddings model used for the knowledge base.
263
+ */
264
+ model: string;
130
265
  };
131
266
 
267
+ /**
268
+ * Knowledge base retrieved
269
+ */
270
+ export type GetOneKnowledgeResponseBody =
271
+ | GetOneKnowledgeResponseBody1
272
+ | GetOneKnowledgeResponseBody2;
273
+
132
274
  /** @internal */
133
275
  export const GetOneKnowledgeRequest$inboundSchema: z.ZodType<
134
276
  GetOneKnowledgeRequest,
@@ -192,29 +334,538 @@ export function getOneKnowledgeRequestFromJSON(
192
334
  }
193
335
 
194
336
  /** @internal */
195
- export const GetOneKnowledgeRetrievalType$inboundSchema: z.ZodNativeEnum<
196
- typeof GetOneKnowledgeRetrievalType
197
- > = z.nativeEnum(GetOneKnowledgeRetrievalType);
337
+ export const GetOneKnowledgeResponseBodyKnowledgeType$inboundSchema:
338
+ z.ZodNativeEnum<typeof GetOneKnowledgeResponseBodyKnowledgeType> = z
339
+ .nativeEnum(GetOneKnowledgeResponseBodyKnowledgeType);
340
+
341
+ /** @internal */
342
+ export const GetOneKnowledgeResponseBodyKnowledgeType$outboundSchema:
343
+ z.ZodNativeEnum<typeof GetOneKnowledgeResponseBodyKnowledgeType> =
344
+ GetOneKnowledgeResponseBodyKnowledgeType$inboundSchema;
345
+
346
+ /**
347
+ * @internal
348
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
349
+ */
350
+ export namespace GetOneKnowledgeResponseBodyKnowledgeType$ {
351
+ /** @deprecated use `GetOneKnowledgeResponseBodyKnowledgeType$inboundSchema` instead. */
352
+ export const inboundSchema =
353
+ GetOneKnowledgeResponseBodyKnowledgeType$inboundSchema;
354
+ /** @deprecated use `GetOneKnowledgeResponseBodyKnowledgeType$outboundSchema` instead. */
355
+ export const outboundSchema =
356
+ GetOneKnowledgeResponseBodyKnowledgeType$outboundSchema;
357
+ }
358
+
359
+ /** @internal */
360
+ export const GetOneKnowledgeResponseBodyKnowledgeRerankConfig$inboundSchema:
361
+ z.ZodType<
362
+ GetOneKnowledgeResponseBodyKnowledgeRerankConfig,
363
+ z.ZodTypeDef,
364
+ unknown
365
+ > = z.object({
366
+ top_k: z.number().int().default(5),
367
+ rerank_threshold: z.number().default(0.5),
368
+ rerank_model: z.string(),
369
+ }).transform((v) => {
370
+ return remap$(v, {
371
+ "top_k": "topK",
372
+ "rerank_threshold": "rerankThreshold",
373
+ "rerank_model": "rerankModel",
374
+ });
375
+ });
376
+
377
+ /** @internal */
378
+ export type GetOneKnowledgeResponseBodyKnowledgeRerankConfig$Outbound = {
379
+ top_k: number;
380
+ rerank_threshold: number;
381
+ rerank_model: string;
382
+ };
383
+
384
+ /** @internal */
385
+ export const GetOneKnowledgeResponseBodyKnowledgeRerankConfig$outboundSchema:
386
+ z.ZodType<
387
+ GetOneKnowledgeResponseBodyKnowledgeRerankConfig$Outbound,
388
+ z.ZodTypeDef,
389
+ GetOneKnowledgeResponseBodyKnowledgeRerankConfig
390
+ > = z.object({
391
+ topK: z.number().int().default(5),
392
+ rerankThreshold: z.number().default(0.5),
393
+ rerankModel: z.string(),
394
+ }).transform((v) => {
395
+ return remap$(v, {
396
+ topK: "top_k",
397
+ rerankThreshold: "rerank_threshold",
398
+ rerankModel: "rerank_model",
399
+ });
400
+ });
401
+
402
+ /**
403
+ * @internal
404
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
405
+ */
406
+ export namespace GetOneKnowledgeResponseBodyKnowledgeRerankConfig$ {
407
+ /** @deprecated use `GetOneKnowledgeResponseBodyKnowledgeRerankConfig$inboundSchema` instead. */
408
+ export const inboundSchema =
409
+ GetOneKnowledgeResponseBodyKnowledgeRerankConfig$inboundSchema;
410
+ /** @deprecated use `GetOneKnowledgeResponseBodyKnowledgeRerankConfig$outboundSchema` instead. */
411
+ export const outboundSchema =
412
+ GetOneKnowledgeResponseBodyKnowledgeRerankConfig$outboundSchema;
413
+ /** @deprecated use `GetOneKnowledgeResponseBodyKnowledgeRerankConfig$Outbound` instead. */
414
+ export type Outbound =
415
+ GetOneKnowledgeResponseBodyKnowledgeRerankConfig$Outbound;
416
+ }
417
+
418
+ export function getOneKnowledgeResponseBodyKnowledgeRerankConfigToJSON(
419
+ getOneKnowledgeResponseBodyKnowledgeRerankConfig:
420
+ GetOneKnowledgeResponseBodyKnowledgeRerankConfig,
421
+ ): string {
422
+ return JSON.stringify(
423
+ GetOneKnowledgeResponseBodyKnowledgeRerankConfig$outboundSchema.parse(
424
+ getOneKnowledgeResponseBodyKnowledgeRerankConfig,
425
+ ),
426
+ );
427
+ }
428
+
429
+ export function getOneKnowledgeResponseBodyKnowledgeRerankConfigFromJSON(
430
+ jsonString: string,
431
+ ): SafeParseResult<
432
+ GetOneKnowledgeResponseBodyKnowledgeRerankConfig,
433
+ SDKValidationError
434
+ > {
435
+ return safeParse(
436
+ jsonString,
437
+ (x) =>
438
+ GetOneKnowledgeResponseBodyKnowledgeRerankConfig$inboundSchema.parse(
439
+ JSON.parse(x),
440
+ ),
441
+ `Failed to parse 'GetOneKnowledgeResponseBodyKnowledgeRerankConfig' from JSON`,
442
+ );
443
+ }
444
+
445
+ /** @internal */
446
+ export const GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$inboundSchema:
447
+ z.ZodType<
448
+ GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig,
449
+ z.ZodTypeDef,
450
+ unknown
451
+ > = z.object({
452
+ model: z.string(),
453
+ });
454
+
455
+ /** @internal */
456
+ export type GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$Outbound = {
457
+ model: string;
458
+ };
459
+
460
+ /** @internal */
461
+ export const GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$outboundSchema:
462
+ z.ZodType<
463
+ GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$Outbound,
464
+ z.ZodTypeDef,
465
+ GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig
466
+ > = z.object({
467
+ model: z.string(),
468
+ });
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 GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$ {
475
+ /** @deprecated use `GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$inboundSchema` instead. */
476
+ export const inboundSchema =
477
+ GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$inboundSchema;
478
+ /** @deprecated use `GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$outboundSchema` instead. */
479
+ export const outboundSchema =
480
+ GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$outboundSchema;
481
+ /** @deprecated use `GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$Outbound` instead. */
482
+ export type Outbound =
483
+ GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$Outbound;
484
+ }
485
+
486
+ export function getOneKnowledgeResponseBodyKnowledgeAgenticRagConfigToJSON(
487
+ getOneKnowledgeResponseBodyKnowledgeAgenticRagConfig:
488
+ GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig,
489
+ ): string {
490
+ return JSON.stringify(
491
+ GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$outboundSchema.parse(
492
+ getOneKnowledgeResponseBodyKnowledgeAgenticRagConfig,
493
+ ),
494
+ );
495
+ }
496
+
497
+ export function getOneKnowledgeResponseBodyKnowledgeAgenticRagConfigFromJSON(
498
+ jsonString: string,
499
+ ): SafeParseResult<
500
+ GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig,
501
+ SDKValidationError
502
+ > {
503
+ return safeParse(
504
+ jsonString,
505
+ (x) =>
506
+ GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$inboundSchema.parse(
507
+ JSON.parse(x),
508
+ ),
509
+ `Failed to parse 'GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig' from JSON`,
510
+ );
511
+ }
512
+
513
+ /** @internal */
514
+ export const GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$inboundSchema:
515
+ z.ZodType<
516
+ GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings,
517
+ z.ZodTypeDef,
518
+ unknown
519
+ > = z.object({
520
+ top_k: z.number().int().default(5),
521
+ threshold: z.number().default(0),
522
+ rerank_config: z.nullable(
523
+ z.lazy(() =>
524
+ GetOneKnowledgeResponseBodyKnowledgeRerankConfig$inboundSchema
525
+ ),
526
+ ).optional(),
527
+ agentic_rag_config: z.nullable(
528
+ z.lazy(() =>
529
+ GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$inboundSchema
530
+ ),
531
+ ).optional(),
532
+ }).transform((v) => {
533
+ return remap$(v, {
534
+ "top_k": "topK",
535
+ "rerank_config": "rerankConfig",
536
+ "agentic_rag_config": "agenticRagConfig",
537
+ });
538
+ });
539
+
540
+ /** @internal */
541
+ export type GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$Outbound = {
542
+ top_k: number;
543
+ threshold: number;
544
+ rerank_config?:
545
+ | GetOneKnowledgeResponseBodyKnowledgeRerankConfig$Outbound
546
+ | null
547
+ | undefined;
548
+ agentic_rag_config?:
549
+ | GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$Outbound
550
+ | null
551
+ | undefined;
552
+ };
553
+
554
+ /** @internal */
555
+ export const GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$outboundSchema:
556
+ z.ZodType<
557
+ GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$Outbound,
558
+ z.ZodTypeDef,
559
+ GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings
560
+ > = z.object({
561
+ topK: z.number().int().default(5),
562
+ threshold: z.number().default(0),
563
+ rerankConfig: z.nullable(
564
+ z.lazy(() =>
565
+ GetOneKnowledgeResponseBodyKnowledgeRerankConfig$outboundSchema
566
+ ),
567
+ ).optional(),
568
+ agenticRagConfig: z.nullable(
569
+ z.lazy(() =>
570
+ GetOneKnowledgeResponseBodyKnowledgeAgenticRagConfig$outboundSchema
571
+ ),
572
+ ).optional(),
573
+ }).transform((v) => {
574
+ return remap$(v, {
575
+ topK: "top_k",
576
+ rerankConfig: "rerank_config",
577
+ agenticRagConfig: "agentic_rag_config",
578
+ });
579
+ });
580
+
581
+ /**
582
+ * @internal
583
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
584
+ */
585
+ export namespace GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$ {
586
+ /** @deprecated use `GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$inboundSchema` instead. */
587
+ export const inboundSchema =
588
+ GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$inboundSchema;
589
+ /** @deprecated use `GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$outboundSchema` instead. */
590
+ export const outboundSchema =
591
+ GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$outboundSchema;
592
+ /** @deprecated use `GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$Outbound` instead. */
593
+ export type Outbound =
594
+ GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$Outbound;
595
+ }
596
+
597
+ export function getOneKnowledgeResponseBodyKnowledgeRetrievalSettingsToJSON(
598
+ getOneKnowledgeResponseBodyKnowledgeRetrievalSettings:
599
+ GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings,
600
+ ): string {
601
+ return JSON.stringify(
602
+ GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$outboundSchema.parse(
603
+ getOneKnowledgeResponseBodyKnowledgeRetrievalSettings,
604
+ ),
605
+ );
606
+ }
607
+
608
+ export function getOneKnowledgeResponseBodyKnowledgeRetrievalSettingsFromJSON(
609
+ jsonString: string,
610
+ ): SafeParseResult<
611
+ GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings,
612
+ SDKValidationError
613
+ > {
614
+ return safeParse(
615
+ jsonString,
616
+ (x) =>
617
+ GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$inboundSchema.parse(
618
+ JSON.parse(x),
619
+ ),
620
+ `Failed to parse 'GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings' from JSON`,
621
+ );
622
+ }
623
+
624
+ /** @internal */
625
+ export const GetOneKnowledgeResponseBodyExternalConfig$inboundSchema: z.ZodType<
626
+ GetOneKnowledgeResponseBodyExternalConfig,
627
+ z.ZodTypeDef,
628
+ unknown
629
+ > = z.object({
630
+ name: z.string(),
631
+ api_url: z.string(),
632
+ }).transform((v) => {
633
+ return remap$(v, {
634
+ "api_url": "apiUrl",
635
+ });
636
+ });
198
637
 
199
638
  /** @internal */
200
- export const GetOneKnowledgeRetrievalType$outboundSchema: z.ZodNativeEnum<
201
- typeof GetOneKnowledgeRetrievalType
202
- > = GetOneKnowledgeRetrievalType$inboundSchema;
639
+ export type GetOneKnowledgeResponseBodyExternalConfig$Outbound = {
640
+ name: string;
641
+ api_url: string;
642
+ };
643
+
644
+ /** @internal */
645
+ export const GetOneKnowledgeResponseBodyExternalConfig$outboundSchema:
646
+ z.ZodType<
647
+ GetOneKnowledgeResponseBodyExternalConfig$Outbound,
648
+ z.ZodTypeDef,
649
+ GetOneKnowledgeResponseBodyExternalConfig
650
+ > = z.object({
651
+ name: z.string(),
652
+ apiUrl: z.string(),
653
+ }).transform((v) => {
654
+ return remap$(v, {
655
+ apiUrl: "api_url",
656
+ });
657
+ });
203
658
 
204
659
  /**
205
660
  * @internal
206
661
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
207
662
  */
208
- export namespace GetOneKnowledgeRetrievalType$ {
209
- /** @deprecated use `GetOneKnowledgeRetrievalType$inboundSchema` instead. */
210
- export const inboundSchema = GetOneKnowledgeRetrievalType$inboundSchema;
211
- /** @deprecated use `GetOneKnowledgeRetrievalType$outboundSchema` instead. */
212
- export const outboundSchema = GetOneKnowledgeRetrievalType$outboundSchema;
663
+ export namespace GetOneKnowledgeResponseBodyExternalConfig$ {
664
+ /** @deprecated use `GetOneKnowledgeResponseBodyExternalConfig$inboundSchema` instead. */
665
+ export const inboundSchema =
666
+ GetOneKnowledgeResponseBodyExternalConfig$inboundSchema;
667
+ /** @deprecated use `GetOneKnowledgeResponseBodyExternalConfig$outboundSchema` instead. */
668
+ export const outboundSchema =
669
+ GetOneKnowledgeResponseBodyExternalConfig$outboundSchema;
670
+ /** @deprecated use `GetOneKnowledgeResponseBodyExternalConfig$Outbound` instead. */
671
+ export type Outbound = GetOneKnowledgeResponseBodyExternalConfig$Outbound;
672
+ }
673
+
674
+ export function getOneKnowledgeResponseBodyExternalConfigToJSON(
675
+ getOneKnowledgeResponseBodyExternalConfig:
676
+ GetOneKnowledgeResponseBodyExternalConfig,
677
+ ): string {
678
+ return JSON.stringify(
679
+ GetOneKnowledgeResponseBodyExternalConfig$outboundSchema.parse(
680
+ getOneKnowledgeResponseBodyExternalConfig,
681
+ ),
682
+ );
683
+ }
684
+
685
+ export function getOneKnowledgeResponseBodyExternalConfigFromJSON(
686
+ jsonString: string,
687
+ ): SafeParseResult<
688
+ GetOneKnowledgeResponseBodyExternalConfig,
689
+ SDKValidationError
690
+ > {
691
+ return safeParse(
692
+ jsonString,
693
+ (x) =>
694
+ GetOneKnowledgeResponseBodyExternalConfig$inboundSchema.parse(
695
+ JSON.parse(x),
696
+ ),
697
+ `Failed to parse 'GetOneKnowledgeResponseBodyExternalConfig' from JSON`,
698
+ );
213
699
  }
214
700
 
215
701
  /** @internal */
216
- export const GetOneKnowledgeRerankConfig$inboundSchema: z.ZodType<
217
- GetOneKnowledgeRerankConfig,
702
+ export const GetOneKnowledgeResponseBody2$inboundSchema: z.ZodType<
703
+ GetOneKnowledgeResponseBody2,
704
+ z.ZodTypeDef,
705
+ unknown
706
+ > = z.object({
707
+ _id: z.string(),
708
+ created: z.string(),
709
+ description: z.string().optional(),
710
+ key: z.string(),
711
+ domain_id: z.string(),
712
+ path: z.string().optional(),
713
+ created_by_id: z.nullable(z.string()).optional(),
714
+ updated_by_id: z.nullable(z.string()).optional(),
715
+ updated: z.string(),
716
+ type: GetOneKnowledgeResponseBodyKnowledgeType$inboundSchema.default(
717
+ "external",
718
+ ),
719
+ retrieval_settings: z.lazy(() =>
720
+ GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$inboundSchema
721
+ ).optional(),
722
+ external_config: z.lazy(() =>
723
+ GetOneKnowledgeResponseBodyExternalConfig$inboundSchema
724
+ ),
725
+ }).transform((v) => {
726
+ return remap$(v, {
727
+ "_id": "id",
728
+ "domain_id": "domainId",
729
+ "created_by_id": "createdById",
730
+ "updated_by_id": "updatedById",
731
+ "retrieval_settings": "retrievalSettings",
732
+ "external_config": "externalConfig",
733
+ });
734
+ });
735
+
736
+ /** @internal */
737
+ export type GetOneKnowledgeResponseBody2$Outbound = {
738
+ _id: string;
739
+ created: string;
740
+ description?: string | undefined;
741
+ key: string;
742
+ domain_id: string;
743
+ path?: string | undefined;
744
+ created_by_id?: string | null | undefined;
745
+ updated_by_id?: string | null | undefined;
746
+ updated: string;
747
+ type: string;
748
+ retrieval_settings?:
749
+ | GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$Outbound
750
+ | undefined;
751
+ external_config: GetOneKnowledgeResponseBodyExternalConfig$Outbound;
752
+ };
753
+
754
+ /** @internal */
755
+ export const GetOneKnowledgeResponseBody2$outboundSchema: z.ZodType<
756
+ GetOneKnowledgeResponseBody2$Outbound,
757
+ z.ZodTypeDef,
758
+ GetOneKnowledgeResponseBody2
759
+ > = z.object({
760
+ id: z.string(),
761
+ created: z.string(),
762
+ description: z.string().optional(),
763
+ key: z.string(),
764
+ domainId: z.string(),
765
+ path: z.string().optional(),
766
+ createdById: z.nullable(z.string()).optional(),
767
+ updatedById: z.nullable(z.string()).optional(),
768
+ updated: z.string(),
769
+ type: GetOneKnowledgeResponseBodyKnowledgeType$outboundSchema.default(
770
+ "external",
771
+ ),
772
+ retrievalSettings: z.lazy(() =>
773
+ GetOneKnowledgeResponseBodyKnowledgeRetrievalSettings$outboundSchema
774
+ ).optional(),
775
+ externalConfig: z.lazy(() =>
776
+ GetOneKnowledgeResponseBodyExternalConfig$outboundSchema
777
+ ),
778
+ }).transform((v) => {
779
+ return remap$(v, {
780
+ id: "_id",
781
+ domainId: "domain_id",
782
+ createdById: "created_by_id",
783
+ updatedById: "updated_by_id",
784
+ retrievalSettings: "retrieval_settings",
785
+ externalConfig: "external_config",
786
+ });
787
+ });
788
+
789
+ /**
790
+ * @internal
791
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
792
+ */
793
+ export namespace GetOneKnowledgeResponseBody2$ {
794
+ /** @deprecated use `GetOneKnowledgeResponseBody2$inboundSchema` instead. */
795
+ export const inboundSchema = GetOneKnowledgeResponseBody2$inboundSchema;
796
+ /** @deprecated use `GetOneKnowledgeResponseBody2$outboundSchema` instead. */
797
+ export const outboundSchema = GetOneKnowledgeResponseBody2$outboundSchema;
798
+ /** @deprecated use `GetOneKnowledgeResponseBody2$Outbound` instead. */
799
+ export type Outbound = GetOneKnowledgeResponseBody2$Outbound;
800
+ }
801
+
802
+ export function getOneKnowledgeResponseBody2ToJSON(
803
+ getOneKnowledgeResponseBody2: GetOneKnowledgeResponseBody2,
804
+ ): string {
805
+ return JSON.stringify(
806
+ GetOneKnowledgeResponseBody2$outboundSchema.parse(
807
+ getOneKnowledgeResponseBody2,
808
+ ),
809
+ );
810
+ }
811
+
812
+ export function getOneKnowledgeResponseBody2FromJSON(
813
+ jsonString: string,
814
+ ): SafeParseResult<GetOneKnowledgeResponseBody2, SDKValidationError> {
815
+ return safeParse(
816
+ jsonString,
817
+ (x) => GetOneKnowledgeResponseBody2$inboundSchema.parse(JSON.parse(x)),
818
+ `Failed to parse 'GetOneKnowledgeResponseBody2' from JSON`,
819
+ );
820
+ }
821
+
822
+ /** @internal */
823
+ export const GetOneKnowledgeResponseBodyType$inboundSchema: z.ZodNativeEnum<
824
+ typeof GetOneKnowledgeResponseBodyType
825
+ > = z.nativeEnum(GetOneKnowledgeResponseBodyType);
826
+
827
+ /** @internal */
828
+ export const GetOneKnowledgeResponseBodyType$outboundSchema: z.ZodNativeEnum<
829
+ typeof GetOneKnowledgeResponseBodyType
830
+ > = GetOneKnowledgeResponseBodyType$inboundSchema;
831
+
832
+ /**
833
+ * @internal
834
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
835
+ */
836
+ export namespace GetOneKnowledgeResponseBodyType$ {
837
+ /** @deprecated use `GetOneKnowledgeResponseBodyType$inboundSchema` instead. */
838
+ export const inboundSchema = GetOneKnowledgeResponseBodyType$inboundSchema;
839
+ /** @deprecated use `GetOneKnowledgeResponseBodyType$outboundSchema` instead. */
840
+ export const outboundSchema = GetOneKnowledgeResponseBodyType$outboundSchema;
841
+ }
842
+
843
+ /** @internal */
844
+ export const GetOneKnowledgeResponseBodyRetrievalType$inboundSchema:
845
+ z.ZodNativeEnum<typeof GetOneKnowledgeResponseBodyRetrievalType> = z
846
+ .nativeEnum(GetOneKnowledgeResponseBodyRetrievalType);
847
+
848
+ /** @internal */
849
+ export const GetOneKnowledgeResponseBodyRetrievalType$outboundSchema:
850
+ z.ZodNativeEnum<typeof GetOneKnowledgeResponseBodyRetrievalType> =
851
+ GetOneKnowledgeResponseBodyRetrievalType$inboundSchema;
852
+
853
+ /**
854
+ * @internal
855
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
856
+ */
857
+ export namespace GetOneKnowledgeResponseBodyRetrievalType$ {
858
+ /** @deprecated use `GetOneKnowledgeResponseBodyRetrievalType$inboundSchema` instead. */
859
+ export const inboundSchema =
860
+ GetOneKnowledgeResponseBodyRetrievalType$inboundSchema;
861
+ /** @deprecated use `GetOneKnowledgeResponseBodyRetrievalType$outboundSchema` instead. */
862
+ export const outboundSchema =
863
+ GetOneKnowledgeResponseBodyRetrievalType$outboundSchema;
864
+ }
865
+
866
+ /** @internal */
867
+ export const GetOneKnowledgeResponseBodyRerankConfig$inboundSchema: z.ZodType<
868
+ GetOneKnowledgeResponseBodyRerankConfig,
218
869
  z.ZodTypeDef,
219
870
  unknown
220
871
  > = z.object({
@@ -230,17 +881,17 @@ export const GetOneKnowledgeRerankConfig$inboundSchema: z.ZodType<
230
881
  });
231
882
 
232
883
  /** @internal */
233
- export type GetOneKnowledgeRerankConfig$Outbound = {
884
+ export type GetOneKnowledgeResponseBodyRerankConfig$Outbound = {
234
885
  top_k: number;
235
886
  rerank_threshold: number;
236
887
  rerank_model: string;
237
888
  };
238
889
 
239
890
  /** @internal */
240
- export const GetOneKnowledgeRerankConfig$outboundSchema: z.ZodType<
241
- GetOneKnowledgeRerankConfig$Outbound,
891
+ export const GetOneKnowledgeResponseBodyRerankConfig$outboundSchema: z.ZodType<
892
+ GetOneKnowledgeResponseBodyRerankConfig$Outbound,
242
893
  z.ZodTypeDef,
243
- GetOneKnowledgeRerankConfig
894
+ GetOneKnowledgeResponseBodyRerankConfig
244
895
  > = z.object({
245
896
  topK: z.number().int().default(5),
246
897
  rerankThreshold: z.number().default(0.5),
@@ -257,191 +908,223 @@ export const GetOneKnowledgeRerankConfig$outboundSchema: z.ZodType<
257
908
  * @internal
258
909
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
259
910
  */
260
- export namespace GetOneKnowledgeRerankConfig$ {
261
- /** @deprecated use `GetOneKnowledgeRerankConfig$inboundSchema` instead. */
262
- export const inboundSchema = GetOneKnowledgeRerankConfig$inboundSchema;
263
- /** @deprecated use `GetOneKnowledgeRerankConfig$outboundSchema` instead. */
264
- export const outboundSchema = GetOneKnowledgeRerankConfig$outboundSchema;
265
- /** @deprecated use `GetOneKnowledgeRerankConfig$Outbound` instead. */
266
- export type Outbound = GetOneKnowledgeRerankConfig$Outbound;
911
+ export namespace GetOneKnowledgeResponseBodyRerankConfig$ {
912
+ /** @deprecated use `GetOneKnowledgeResponseBodyRerankConfig$inboundSchema` instead. */
913
+ export const inboundSchema =
914
+ GetOneKnowledgeResponseBodyRerankConfig$inboundSchema;
915
+ /** @deprecated use `GetOneKnowledgeResponseBodyRerankConfig$outboundSchema` instead. */
916
+ export const outboundSchema =
917
+ GetOneKnowledgeResponseBodyRerankConfig$outboundSchema;
918
+ /** @deprecated use `GetOneKnowledgeResponseBodyRerankConfig$Outbound` instead. */
919
+ export type Outbound = GetOneKnowledgeResponseBodyRerankConfig$Outbound;
267
920
  }
268
921
 
269
- export function getOneKnowledgeRerankConfigToJSON(
270
- getOneKnowledgeRerankConfig: GetOneKnowledgeRerankConfig,
922
+ export function getOneKnowledgeResponseBodyRerankConfigToJSON(
923
+ getOneKnowledgeResponseBodyRerankConfig:
924
+ GetOneKnowledgeResponseBodyRerankConfig,
271
925
  ): string {
272
926
  return JSON.stringify(
273
- GetOneKnowledgeRerankConfig$outboundSchema.parse(
274
- getOneKnowledgeRerankConfig,
927
+ GetOneKnowledgeResponseBodyRerankConfig$outboundSchema.parse(
928
+ getOneKnowledgeResponseBodyRerankConfig,
275
929
  ),
276
930
  );
277
931
  }
278
932
 
279
- export function getOneKnowledgeRerankConfigFromJSON(
933
+ export function getOneKnowledgeResponseBodyRerankConfigFromJSON(
280
934
  jsonString: string,
281
- ): SafeParseResult<GetOneKnowledgeRerankConfig, SDKValidationError> {
935
+ ): SafeParseResult<
936
+ GetOneKnowledgeResponseBodyRerankConfig,
937
+ SDKValidationError
938
+ > {
282
939
  return safeParse(
283
940
  jsonString,
284
- (x) => GetOneKnowledgeRerankConfig$inboundSchema.parse(JSON.parse(x)),
285
- `Failed to parse 'GetOneKnowledgeRerankConfig' from JSON`,
941
+ (x) =>
942
+ GetOneKnowledgeResponseBodyRerankConfig$inboundSchema.parse(
943
+ JSON.parse(x),
944
+ ),
945
+ `Failed to parse 'GetOneKnowledgeResponseBodyRerankConfig' from JSON`,
286
946
  );
287
947
  }
288
948
 
289
949
  /** @internal */
290
- export const GetOneKnowledgeAgenticRagConfig$inboundSchema: z.ZodType<
291
- GetOneKnowledgeAgenticRagConfig,
292
- z.ZodTypeDef,
293
- unknown
294
- > = z.object({
295
- model: z.string(),
296
- });
950
+ export const GetOneKnowledgeResponseBodyAgenticRagConfig$inboundSchema:
951
+ z.ZodType<
952
+ GetOneKnowledgeResponseBodyAgenticRagConfig,
953
+ z.ZodTypeDef,
954
+ unknown
955
+ > = z.object({
956
+ model: z.string(),
957
+ });
297
958
 
298
959
  /** @internal */
299
- export type GetOneKnowledgeAgenticRagConfig$Outbound = {
960
+ export type GetOneKnowledgeResponseBodyAgenticRagConfig$Outbound = {
300
961
  model: string;
301
962
  };
302
963
 
303
964
  /** @internal */
304
- export const GetOneKnowledgeAgenticRagConfig$outboundSchema: z.ZodType<
305
- GetOneKnowledgeAgenticRagConfig$Outbound,
306
- z.ZodTypeDef,
307
- GetOneKnowledgeAgenticRagConfig
308
- > = z.object({
309
- model: z.string(),
310
- });
965
+ export const GetOneKnowledgeResponseBodyAgenticRagConfig$outboundSchema:
966
+ z.ZodType<
967
+ GetOneKnowledgeResponseBodyAgenticRagConfig$Outbound,
968
+ z.ZodTypeDef,
969
+ GetOneKnowledgeResponseBodyAgenticRagConfig
970
+ > = z.object({
971
+ model: z.string(),
972
+ });
311
973
 
312
974
  /**
313
975
  * @internal
314
976
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
315
977
  */
316
- export namespace GetOneKnowledgeAgenticRagConfig$ {
317
- /** @deprecated use `GetOneKnowledgeAgenticRagConfig$inboundSchema` instead. */
318
- export const inboundSchema = GetOneKnowledgeAgenticRagConfig$inboundSchema;
319
- /** @deprecated use `GetOneKnowledgeAgenticRagConfig$outboundSchema` instead. */
320
- export const outboundSchema = GetOneKnowledgeAgenticRagConfig$outboundSchema;
321
- /** @deprecated use `GetOneKnowledgeAgenticRagConfig$Outbound` instead. */
322
- export type Outbound = GetOneKnowledgeAgenticRagConfig$Outbound;
978
+ export namespace GetOneKnowledgeResponseBodyAgenticRagConfig$ {
979
+ /** @deprecated use `GetOneKnowledgeResponseBodyAgenticRagConfig$inboundSchema` instead. */
980
+ export const inboundSchema =
981
+ GetOneKnowledgeResponseBodyAgenticRagConfig$inboundSchema;
982
+ /** @deprecated use `GetOneKnowledgeResponseBodyAgenticRagConfig$outboundSchema` instead. */
983
+ export const outboundSchema =
984
+ GetOneKnowledgeResponseBodyAgenticRagConfig$outboundSchema;
985
+ /** @deprecated use `GetOneKnowledgeResponseBodyAgenticRagConfig$Outbound` instead. */
986
+ export type Outbound = GetOneKnowledgeResponseBodyAgenticRagConfig$Outbound;
323
987
  }
324
988
 
325
- export function getOneKnowledgeAgenticRagConfigToJSON(
326
- getOneKnowledgeAgenticRagConfig: GetOneKnowledgeAgenticRagConfig,
989
+ export function getOneKnowledgeResponseBodyAgenticRagConfigToJSON(
990
+ getOneKnowledgeResponseBodyAgenticRagConfig:
991
+ GetOneKnowledgeResponseBodyAgenticRagConfig,
327
992
  ): string {
328
993
  return JSON.stringify(
329
- GetOneKnowledgeAgenticRagConfig$outboundSchema.parse(
330
- getOneKnowledgeAgenticRagConfig,
994
+ GetOneKnowledgeResponseBodyAgenticRagConfig$outboundSchema.parse(
995
+ getOneKnowledgeResponseBodyAgenticRagConfig,
331
996
  ),
332
997
  );
333
998
  }
334
999
 
335
- export function getOneKnowledgeAgenticRagConfigFromJSON(
1000
+ export function getOneKnowledgeResponseBodyAgenticRagConfigFromJSON(
336
1001
  jsonString: string,
337
- ): SafeParseResult<GetOneKnowledgeAgenticRagConfig, SDKValidationError> {
1002
+ ): SafeParseResult<
1003
+ GetOneKnowledgeResponseBodyAgenticRagConfig,
1004
+ SDKValidationError
1005
+ > {
338
1006
  return safeParse(
339
1007
  jsonString,
340
- (x) => GetOneKnowledgeAgenticRagConfig$inboundSchema.parse(JSON.parse(x)),
341
- `Failed to parse 'GetOneKnowledgeAgenticRagConfig' from JSON`,
1008
+ (x) =>
1009
+ GetOneKnowledgeResponseBodyAgenticRagConfig$inboundSchema.parse(
1010
+ JSON.parse(x),
1011
+ ),
1012
+ `Failed to parse 'GetOneKnowledgeResponseBodyAgenticRagConfig' from JSON`,
342
1013
  );
343
1014
  }
344
1015
 
345
1016
  /** @internal */
346
- export const GetOneKnowledgeRetrievalSettings$inboundSchema: z.ZodType<
347
- GetOneKnowledgeRetrievalSettings,
348
- z.ZodTypeDef,
349
- unknown
350
- > = z.object({
351
- retrieval_type: GetOneKnowledgeRetrievalType$inboundSchema.default(
352
- "hybrid_search",
353
- ),
354
- top_k: z.number().int().default(5),
355
- threshold: z.number().default(0),
356
- rerank_config: z.nullable(
357
- z.lazy(() => GetOneKnowledgeRerankConfig$inboundSchema),
358
- ).optional(),
359
- agentic_rag_config: z.nullable(
360
- z.lazy(() => GetOneKnowledgeAgenticRagConfig$inboundSchema),
361
- ).optional(),
362
- }).transform((v) => {
363
- return remap$(v, {
364
- "retrieval_type": "retrievalType",
365
- "top_k": "topK",
366
- "rerank_config": "rerankConfig",
367
- "agentic_rag_config": "agenticRagConfig",
1017
+ export const GetOneKnowledgeResponseBodyRetrievalSettings$inboundSchema:
1018
+ z.ZodType<
1019
+ GetOneKnowledgeResponseBodyRetrievalSettings,
1020
+ z.ZodTypeDef,
1021
+ unknown
1022
+ > = z.object({
1023
+ retrieval_type: GetOneKnowledgeResponseBodyRetrievalType$inboundSchema
1024
+ .default("hybrid_search"),
1025
+ top_k: z.number().int().default(5),
1026
+ threshold: z.number().default(0),
1027
+ rerank_config: z.nullable(
1028
+ z.lazy(() => GetOneKnowledgeResponseBodyRerankConfig$inboundSchema),
1029
+ ).optional(),
1030
+ agentic_rag_config: z.nullable(
1031
+ z.lazy(() => GetOneKnowledgeResponseBodyAgenticRagConfig$inboundSchema),
1032
+ ).optional(),
1033
+ }).transform((v) => {
1034
+ return remap$(v, {
1035
+ "retrieval_type": "retrievalType",
1036
+ "top_k": "topK",
1037
+ "rerank_config": "rerankConfig",
1038
+ "agentic_rag_config": "agenticRagConfig",
1039
+ });
368
1040
  });
369
- });
370
1041
 
371
1042
  /** @internal */
372
- export type GetOneKnowledgeRetrievalSettings$Outbound = {
1043
+ export type GetOneKnowledgeResponseBodyRetrievalSettings$Outbound = {
373
1044
  retrieval_type: string;
374
1045
  top_k: number;
375
1046
  threshold: number;
376
- rerank_config?: GetOneKnowledgeRerankConfig$Outbound | null | undefined;
1047
+ rerank_config?:
1048
+ | GetOneKnowledgeResponseBodyRerankConfig$Outbound
1049
+ | null
1050
+ | undefined;
377
1051
  agentic_rag_config?:
378
- | GetOneKnowledgeAgenticRagConfig$Outbound
1052
+ | GetOneKnowledgeResponseBodyAgenticRagConfig$Outbound
379
1053
  | null
380
1054
  | undefined;
381
1055
  };
382
1056
 
383
1057
  /** @internal */
384
- export const GetOneKnowledgeRetrievalSettings$outboundSchema: z.ZodType<
385
- GetOneKnowledgeRetrievalSettings$Outbound,
386
- z.ZodTypeDef,
387
- GetOneKnowledgeRetrievalSettings
388
- > = z.object({
389
- retrievalType: GetOneKnowledgeRetrievalType$outboundSchema.default(
390
- "hybrid_search",
391
- ),
392
- topK: z.number().int().default(5),
393
- threshold: z.number().default(0),
394
- rerankConfig: z.nullable(
395
- z.lazy(() => GetOneKnowledgeRerankConfig$outboundSchema),
396
- ).optional(),
397
- agenticRagConfig: z.nullable(
398
- z.lazy(() => GetOneKnowledgeAgenticRagConfig$outboundSchema),
399
- ).optional(),
400
- }).transform((v) => {
401
- return remap$(v, {
402
- retrievalType: "retrieval_type",
403
- topK: "top_k",
404
- rerankConfig: "rerank_config",
405
- agenticRagConfig: "agentic_rag_config",
1058
+ export const GetOneKnowledgeResponseBodyRetrievalSettings$outboundSchema:
1059
+ z.ZodType<
1060
+ GetOneKnowledgeResponseBodyRetrievalSettings$Outbound,
1061
+ z.ZodTypeDef,
1062
+ GetOneKnowledgeResponseBodyRetrievalSettings
1063
+ > = z.object({
1064
+ retrievalType: GetOneKnowledgeResponseBodyRetrievalType$outboundSchema
1065
+ .default("hybrid_search"),
1066
+ topK: z.number().int().default(5),
1067
+ threshold: z.number().default(0),
1068
+ rerankConfig: z.nullable(
1069
+ z.lazy(() => GetOneKnowledgeResponseBodyRerankConfig$outboundSchema),
1070
+ ).optional(),
1071
+ agenticRagConfig: z.nullable(
1072
+ z.lazy(() => GetOneKnowledgeResponseBodyAgenticRagConfig$outboundSchema),
1073
+ ).optional(),
1074
+ }).transform((v) => {
1075
+ return remap$(v, {
1076
+ retrievalType: "retrieval_type",
1077
+ topK: "top_k",
1078
+ rerankConfig: "rerank_config",
1079
+ agenticRagConfig: "agentic_rag_config",
1080
+ });
406
1081
  });
407
- });
408
1082
 
409
1083
  /**
410
1084
  * @internal
411
1085
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
412
1086
  */
413
- export namespace GetOneKnowledgeRetrievalSettings$ {
414
- /** @deprecated use `GetOneKnowledgeRetrievalSettings$inboundSchema` instead. */
415
- export const inboundSchema = GetOneKnowledgeRetrievalSettings$inboundSchema;
416
- /** @deprecated use `GetOneKnowledgeRetrievalSettings$outboundSchema` instead. */
417
- export const outboundSchema = GetOneKnowledgeRetrievalSettings$outboundSchema;
418
- /** @deprecated use `GetOneKnowledgeRetrievalSettings$Outbound` instead. */
419
- export type Outbound = GetOneKnowledgeRetrievalSettings$Outbound;
1087
+ export namespace GetOneKnowledgeResponseBodyRetrievalSettings$ {
1088
+ /** @deprecated use `GetOneKnowledgeResponseBodyRetrievalSettings$inboundSchema` instead. */
1089
+ export const inboundSchema =
1090
+ GetOneKnowledgeResponseBodyRetrievalSettings$inboundSchema;
1091
+ /** @deprecated use `GetOneKnowledgeResponseBodyRetrievalSettings$outboundSchema` instead. */
1092
+ export const outboundSchema =
1093
+ GetOneKnowledgeResponseBodyRetrievalSettings$outboundSchema;
1094
+ /** @deprecated use `GetOneKnowledgeResponseBodyRetrievalSettings$Outbound` instead. */
1095
+ export type Outbound = GetOneKnowledgeResponseBodyRetrievalSettings$Outbound;
420
1096
  }
421
1097
 
422
- export function getOneKnowledgeRetrievalSettingsToJSON(
423
- getOneKnowledgeRetrievalSettings: GetOneKnowledgeRetrievalSettings,
1098
+ export function getOneKnowledgeResponseBodyRetrievalSettingsToJSON(
1099
+ getOneKnowledgeResponseBodyRetrievalSettings:
1100
+ GetOneKnowledgeResponseBodyRetrievalSettings,
424
1101
  ): string {
425
1102
  return JSON.stringify(
426
- GetOneKnowledgeRetrievalSettings$outboundSchema.parse(
427
- getOneKnowledgeRetrievalSettings,
1103
+ GetOneKnowledgeResponseBodyRetrievalSettings$outboundSchema.parse(
1104
+ getOneKnowledgeResponseBodyRetrievalSettings,
428
1105
  ),
429
1106
  );
430
1107
  }
431
1108
 
432
- export function getOneKnowledgeRetrievalSettingsFromJSON(
1109
+ export function getOneKnowledgeResponseBodyRetrievalSettingsFromJSON(
433
1110
  jsonString: string,
434
- ): SafeParseResult<GetOneKnowledgeRetrievalSettings, SDKValidationError> {
1111
+ ): SafeParseResult<
1112
+ GetOneKnowledgeResponseBodyRetrievalSettings,
1113
+ SDKValidationError
1114
+ > {
435
1115
  return safeParse(
436
1116
  jsonString,
437
- (x) => GetOneKnowledgeRetrievalSettings$inboundSchema.parse(JSON.parse(x)),
438
- `Failed to parse 'GetOneKnowledgeRetrievalSettings' from JSON`,
1117
+ (x) =>
1118
+ GetOneKnowledgeResponseBodyRetrievalSettings$inboundSchema.parse(
1119
+ JSON.parse(x),
1120
+ ),
1121
+ `Failed to parse 'GetOneKnowledgeResponseBodyRetrievalSettings' from JSON`,
439
1122
  );
440
1123
  }
441
1124
 
442
1125
  /** @internal */
443
- export const GetOneKnowledgeResponseBody$inboundSchema: z.ZodType<
444
- GetOneKnowledgeResponseBody,
1126
+ export const GetOneKnowledgeResponseBody1$inboundSchema: z.ZodType<
1127
+ GetOneKnowledgeResponseBody1,
445
1128
  z.ZodTypeDef,
446
1129
  unknown
447
1130
  > = z.object({
@@ -449,69 +1132,132 @@ export const GetOneKnowledgeResponseBody$inboundSchema: z.ZodType<
449
1132
  created: z.string(),
450
1133
  description: z.string().optional(),
451
1134
  key: z.string(),
452
- model: z.string(),
453
1135
  domain_id: z.string(),
454
1136
  path: z.string().optional(),
455
- retrieval_settings: z.lazy(() =>
456
- GetOneKnowledgeRetrievalSettings$inboundSchema
457
- ).optional(),
458
1137
  created_by_id: z.nullable(z.string()).optional(),
459
1138
  updated_by_id: z.nullable(z.string()).optional(),
460
1139
  updated: z.string(),
1140
+ type: GetOneKnowledgeResponseBodyType$inboundSchema.default("internal"),
1141
+ retrieval_settings: z.lazy(() =>
1142
+ GetOneKnowledgeResponseBodyRetrievalSettings$inboundSchema
1143
+ ).optional(),
1144
+ model: z.string(),
461
1145
  }).transform((v) => {
462
1146
  return remap$(v, {
463
1147
  "_id": "id",
464
1148
  "domain_id": "domainId",
465
- "retrieval_settings": "retrievalSettings",
466
1149
  "created_by_id": "createdById",
467
1150
  "updated_by_id": "updatedById",
1151
+ "retrieval_settings": "retrievalSettings",
468
1152
  });
469
1153
  });
470
1154
 
471
1155
  /** @internal */
472
- export type GetOneKnowledgeResponseBody$Outbound = {
1156
+ export type GetOneKnowledgeResponseBody1$Outbound = {
473
1157
  _id: string;
474
1158
  created: string;
475
1159
  description?: string | undefined;
476
1160
  key: string;
477
- model: string;
478
1161
  domain_id: string;
479
1162
  path?: string | undefined;
480
- retrieval_settings?: GetOneKnowledgeRetrievalSettings$Outbound | undefined;
481
1163
  created_by_id?: string | null | undefined;
482
1164
  updated_by_id?: string | null | undefined;
483
1165
  updated: string;
1166
+ type: string;
1167
+ retrieval_settings?:
1168
+ | GetOneKnowledgeResponseBodyRetrievalSettings$Outbound
1169
+ | undefined;
1170
+ model: string;
484
1171
  };
485
1172
 
486
1173
  /** @internal */
487
- export const GetOneKnowledgeResponseBody$outboundSchema: z.ZodType<
488
- GetOneKnowledgeResponseBody$Outbound,
1174
+ export const GetOneKnowledgeResponseBody1$outboundSchema: z.ZodType<
1175
+ GetOneKnowledgeResponseBody1$Outbound,
489
1176
  z.ZodTypeDef,
490
- GetOneKnowledgeResponseBody
1177
+ GetOneKnowledgeResponseBody1
491
1178
  > = z.object({
492
1179
  id: z.string(),
493
1180
  created: z.string(),
494
1181
  description: z.string().optional(),
495
1182
  key: z.string(),
496
- model: z.string(),
497
1183
  domainId: z.string(),
498
1184
  path: z.string().optional(),
499
- retrievalSettings: z.lazy(() =>
500
- GetOneKnowledgeRetrievalSettings$outboundSchema
501
- ).optional(),
502
1185
  createdById: z.nullable(z.string()).optional(),
503
1186
  updatedById: z.nullable(z.string()).optional(),
504
1187
  updated: z.string(),
1188
+ type: GetOneKnowledgeResponseBodyType$outboundSchema.default("internal"),
1189
+ retrievalSettings: z.lazy(() =>
1190
+ GetOneKnowledgeResponseBodyRetrievalSettings$outboundSchema
1191
+ ).optional(),
1192
+ model: z.string(),
505
1193
  }).transform((v) => {
506
1194
  return remap$(v, {
507
1195
  id: "_id",
508
1196
  domainId: "domain_id",
509
- retrievalSettings: "retrieval_settings",
510
1197
  createdById: "created_by_id",
511
1198
  updatedById: "updated_by_id",
1199
+ retrievalSettings: "retrieval_settings",
512
1200
  });
513
1201
  });
514
1202
 
1203
+ /**
1204
+ * @internal
1205
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1206
+ */
1207
+ export namespace GetOneKnowledgeResponseBody1$ {
1208
+ /** @deprecated use `GetOneKnowledgeResponseBody1$inboundSchema` instead. */
1209
+ export const inboundSchema = GetOneKnowledgeResponseBody1$inboundSchema;
1210
+ /** @deprecated use `GetOneKnowledgeResponseBody1$outboundSchema` instead. */
1211
+ export const outboundSchema = GetOneKnowledgeResponseBody1$outboundSchema;
1212
+ /** @deprecated use `GetOneKnowledgeResponseBody1$Outbound` instead. */
1213
+ export type Outbound = GetOneKnowledgeResponseBody1$Outbound;
1214
+ }
1215
+
1216
+ export function getOneKnowledgeResponseBody1ToJSON(
1217
+ getOneKnowledgeResponseBody1: GetOneKnowledgeResponseBody1,
1218
+ ): string {
1219
+ return JSON.stringify(
1220
+ GetOneKnowledgeResponseBody1$outboundSchema.parse(
1221
+ getOneKnowledgeResponseBody1,
1222
+ ),
1223
+ );
1224
+ }
1225
+
1226
+ export function getOneKnowledgeResponseBody1FromJSON(
1227
+ jsonString: string,
1228
+ ): SafeParseResult<GetOneKnowledgeResponseBody1, SDKValidationError> {
1229
+ return safeParse(
1230
+ jsonString,
1231
+ (x) => GetOneKnowledgeResponseBody1$inboundSchema.parse(JSON.parse(x)),
1232
+ `Failed to parse 'GetOneKnowledgeResponseBody1' from JSON`,
1233
+ );
1234
+ }
1235
+
1236
+ /** @internal */
1237
+ export const GetOneKnowledgeResponseBody$inboundSchema: z.ZodType<
1238
+ GetOneKnowledgeResponseBody,
1239
+ z.ZodTypeDef,
1240
+ unknown
1241
+ > = z.union([
1242
+ z.lazy(() => GetOneKnowledgeResponseBody1$inboundSchema),
1243
+ z.lazy(() => GetOneKnowledgeResponseBody2$inboundSchema),
1244
+ ]);
1245
+
1246
+ /** @internal */
1247
+ export type GetOneKnowledgeResponseBody$Outbound =
1248
+ | GetOneKnowledgeResponseBody1$Outbound
1249
+ | GetOneKnowledgeResponseBody2$Outbound;
1250
+
1251
+ /** @internal */
1252
+ export const GetOneKnowledgeResponseBody$outboundSchema: z.ZodType<
1253
+ GetOneKnowledgeResponseBody$Outbound,
1254
+ z.ZodTypeDef,
1255
+ GetOneKnowledgeResponseBody
1256
+ > = z.union([
1257
+ z.lazy(() => GetOneKnowledgeResponseBody1$outboundSchema),
1258
+ z.lazy(() => GetOneKnowledgeResponseBody2$outboundSchema),
1259
+ ]);
1260
+
515
1261
  /**
516
1262
  * @internal
517
1263
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.