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