@orq-ai/node 3.2.12 → 3.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +32 -32
- package/bin/mcp-server.js.map +17 -17
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/package.json +1 -1
- package/packages/orq-rc/README.md +4 -2
- package/packages/orq-rc/docs/sdks/datasets/README.md +6 -0
- package/packages/orq-rc/docs/sdks/knowledge/README.md +140 -58
- package/packages/orq-rc/docs/sdks/prompts/README.md +6 -0
- 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/funcs/contactsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsClear.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsList.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsList.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +1 -1
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/filesCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/filesDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/filesGet.ts +1 -1
- package/packages/orq-rc/src/funcs/filesList.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeList.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/{knowledgeRetrieveFileUrl.ts → knowledgeRetrieveChunk.ts} +25 -34
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +164 -0
- package/packages/orq-rc/src/funcs/promptsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsList.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +5 -3
- package/packages/orq-rc/src/mcp-server/tools/{knowledgeRetrieveFileUrl.ts → knowledgeRetrieveChunk.ts} +6 -6
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +35 -0
- package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/createchunk.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createknowledge.ts +324 -2562
- 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/getonechunk.ts +265 -0
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +101 -1282
- package/packages/orq-rc/src/models/operations/index.ts +2 -1
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- 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 +101 -1309
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- 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/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +25 -6
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +345 -0
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +383 -2710
- package/packages/orq-rc/src/models/operations/updateprompt.ts +7 -0
- package/packages/orq-rc/src/sdk/knowledge.ts +30 -15
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/bulkcreatedatapoints.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 -2
- 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/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/getonefileuploadurl.ts +0 -157
|
@@ -9,245 +9,57 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
|
|
14
|
+
*/
|
|
15
|
+
export const UpdateKnowledgeRetrievalType = {
|
|
16
|
+
VectorSearch: "vector_search",
|
|
17
|
+
KeywordSearch: "keyword_search",
|
|
13
18
|
HybridSearch: "hybrid_search",
|
|
14
19
|
} as const;
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
/**
|
|
21
|
+
* The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
|
|
22
|
+
*/
|
|
23
|
+
export type UpdateKnowledgeRetrievalType = ClosedEnum<
|
|
24
|
+
typeof UpdateKnowledgeRetrievalType
|
|
17
25
|
>;
|
|
18
26
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Huggingface: "huggingface",
|
|
24
|
-
Replicate: "replicate",
|
|
25
|
-
Google: "google",
|
|
26
|
-
GoogleAi: "google-ai",
|
|
27
|
-
Azure: "azure",
|
|
28
|
-
Aws: "aws",
|
|
29
|
-
Anyscale: "anyscale",
|
|
30
|
-
Perplexity: "perplexity",
|
|
31
|
-
Groq: "groq",
|
|
32
|
-
Fal: "fal",
|
|
33
|
-
Leonardoai: "leonardoai",
|
|
34
|
-
Nvidia: "nvidia",
|
|
35
|
-
Jina: "jina",
|
|
36
|
-
Togetherai: "togetherai",
|
|
37
|
-
Elevenlabs: "elevenlabs",
|
|
38
|
-
} as const;
|
|
39
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider =
|
|
40
|
-
ClosedEnum<typeof UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider>;
|
|
41
|
-
|
|
42
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelType = {
|
|
43
|
-
Rerank: "rerank",
|
|
44
|
-
} as const;
|
|
45
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelType =
|
|
46
|
-
ClosedEnum<typeof UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelType>;
|
|
47
|
-
|
|
48
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelParameters = {
|
|
27
|
+
/**
|
|
28
|
+
* The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
|
|
29
|
+
*/
|
|
30
|
+
export type UpdateKnowledgeRerankConfig = {
|
|
49
31
|
/**
|
|
50
32
|
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
51
33
|
*/
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput = {
|
|
56
|
-
enabled?: boolean | undefined;
|
|
57
|
-
provider?:
|
|
58
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider
|
|
59
|
-
| undefined;
|
|
60
|
-
/**
|
|
61
|
-
* The name of the model to use
|
|
62
|
-
*/
|
|
63
|
-
model?: string | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* The ID of the model in the database
|
|
66
|
-
*/
|
|
67
|
-
modelDbId?: string | undefined;
|
|
68
|
-
modelType?:
|
|
69
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelType
|
|
70
|
-
| undefined;
|
|
71
|
-
modelParameters?:
|
|
72
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelParameters
|
|
73
|
-
| undefined;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export type UpdateKnowledgeRetrievalSettings3 = {
|
|
77
|
-
type: UpdateKnowledgeRetrievalSettingsKnowledgeRequestType;
|
|
78
|
-
/**
|
|
79
|
-
* Used to filter chunks that are most similar to the query
|
|
80
|
-
*/
|
|
81
|
-
topK?: number | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* Used to filter chunks that are most similar to the query. A value of `0` will be consider disabled.
|
|
84
|
-
*/
|
|
85
|
-
threshold?: number | undefined;
|
|
86
|
-
rerankConfig?:
|
|
87
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput
|
|
88
|
-
| null
|
|
89
|
-
| undefined;
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeType = {
|
|
93
|
-
KeywordSearch: "keyword_search",
|
|
94
|
-
} as const;
|
|
95
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeType = ClosedEnum<
|
|
96
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeType
|
|
97
|
-
>;
|
|
98
|
-
|
|
99
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeProvider = {
|
|
100
|
-
Cohere: "cohere",
|
|
101
|
-
Openai: "openai",
|
|
102
|
-
Anthropic: "anthropic",
|
|
103
|
-
Huggingface: "huggingface",
|
|
104
|
-
Replicate: "replicate",
|
|
105
|
-
Google: "google",
|
|
106
|
-
GoogleAi: "google-ai",
|
|
107
|
-
Azure: "azure",
|
|
108
|
-
Aws: "aws",
|
|
109
|
-
Anyscale: "anyscale",
|
|
110
|
-
Perplexity: "perplexity",
|
|
111
|
-
Groq: "groq",
|
|
112
|
-
Fal: "fal",
|
|
113
|
-
Leonardoai: "leonardoai",
|
|
114
|
-
Nvidia: "nvidia",
|
|
115
|
-
Jina: "jina",
|
|
116
|
-
Togetherai: "togetherai",
|
|
117
|
-
Elevenlabs: "elevenlabs",
|
|
118
|
-
} as const;
|
|
119
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeProvider = ClosedEnum<
|
|
120
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeProvider
|
|
121
|
-
>;
|
|
122
|
-
|
|
123
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeModelType = {
|
|
124
|
-
Rerank: "rerank",
|
|
125
|
-
} as const;
|
|
126
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeModelType = ClosedEnum<
|
|
127
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeModelType
|
|
128
|
-
>;
|
|
129
|
-
|
|
130
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters = {
|
|
34
|
+
rerankThreshold?: number | undefined;
|
|
131
35
|
/**
|
|
132
|
-
* The
|
|
36
|
+
* The rerank model to use for the knowledge base.
|
|
133
37
|
*/
|
|
134
|
-
|
|
38
|
+
rerankModel: string;
|
|
135
39
|
};
|
|
136
40
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
* The name of the model to use
|
|
142
|
-
*/
|
|
143
|
-
model?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The retrieval settings for the knowledge base. If not provider, Hybrid Search will be used as a default query strategy.
|
|
43
|
+
*/
|
|
44
|
+
export type UpdateKnowledgeRetrievalSettings = {
|
|
144
45
|
/**
|
|
145
|
-
* The
|
|
46
|
+
* The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
|
|
146
47
|
*/
|
|
147
|
-
|
|
148
|
-
modelType?: UpdateKnowledgeRetrievalSettingsKnowledgeModelType | undefined;
|
|
149
|
-
modelParameters?:
|
|
150
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters
|
|
151
|
-
| undefined;
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
export type UpdateKnowledgeRetrievalSettings2 = {
|
|
155
|
-
type: UpdateKnowledgeRetrievalSettingsKnowledgeType;
|
|
48
|
+
retrievalType?: UpdateKnowledgeRetrievalType | undefined;
|
|
156
49
|
/**
|
|
157
|
-
*
|
|
50
|
+
* The number of results to return from the search.
|
|
158
51
|
*/
|
|
159
52
|
topK?: number | undefined;
|
|
160
53
|
/**
|
|
161
|
-
*
|
|
162
|
-
*/
|
|
163
|
-
threshold?: number | undefined;
|
|
164
|
-
rerankConfig?:
|
|
165
|
-
| UpdateKnowledgeRetrievalSettingsRerankConfigInput
|
|
166
|
-
| null
|
|
167
|
-
| undefined;
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
export const UpdateKnowledgeRetrievalSettingsType = {
|
|
171
|
-
VectorSearch: "vector_search",
|
|
172
|
-
} as const;
|
|
173
|
-
export type UpdateKnowledgeRetrievalSettingsType = ClosedEnum<
|
|
174
|
-
typeof UpdateKnowledgeRetrievalSettingsType
|
|
175
|
-
>;
|
|
176
|
-
|
|
177
|
-
export const UpdateKnowledgeRetrievalSettingsProvider = {
|
|
178
|
-
Cohere: "cohere",
|
|
179
|
-
Openai: "openai",
|
|
180
|
-
Anthropic: "anthropic",
|
|
181
|
-
Huggingface: "huggingface",
|
|
182
|
-
Replicate: "replicate",
|
|
183
|
-
Google: "google",
|
|
184
|
-
GoogleAi: "google-ai",
|
|
185
|
-
Azure: "azure",
|
|
186
|
-
Aws: "aws",
|
|
187
|
-
Anyscale: "anyscale",
|
|
188
|
-
Perplexity: "perplexity",
|
|
189
|
-
Groq: "groq",
|
|
190
|
-
Fal: "fal",
|
|
191
|
-
Leonardoai: "leonardoai",
|
|
192
|
-
Nvidia: "nvidia",
|
|
193
|
-
Jina: "jina",
|
|
194
|
-
Togetherai: "togetherai",
|
|
195
|
-
Elevenlabs: "elevenlabs",
|
|
196
|
-
} as const;
|
|
197
|
-
export type UpdateKnowledgeRetrievalSettingsProvider = ClosedEnum<
|
|
198
|
-
typeof UpdateKnowledgeRetrievalSettingsProvider
|
|
199
|
-
>;
|
|
200
|
-
|
|
201
|
-
export const UpdateKnowledgeRetrievalSettingsModelType = {
|
|
202
|
-
Rerank: "rerank",
|
|
203
|
-
} as const;
|
|
204
|
-
export type UpdateKnowledgeRetrievalSettingsModelType = ClosedEnum<
|
|
205
|
-
typeof UpdateKnowledgeRetrievalSettingsModelType
|
|
206
|
-
>;
|
|
207
|
-
|
|
208
|
-
export type UpdateKnowledgeRetrievalSettingsModelParameters = {
|
|
209
|
-
/**
|
|
210
|
-
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
54
|
+
* The threshold value used to filter the search results, only documents with a relevance score greater than the threshold will be returned
|
|
211
55
|
*/
|
|
212
56
|
threshold?: number | undefined;
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
export type UpdateKnowledgeRetrievalSettingsRerankConfig = {
|
|
216
|
-
enabled?: boolean | undefined;
|
|
217
|
-
provider?: UpdateKnowledgeRetrievalSettingsProvider | undefined;
|
|
218
|
-
/**
|
|
219
|
-
* The name of the model to use
|
|
220
|
-
*/
|
|
221
|
-
model?: string | undefined;
|
|
222
|
-
/**
|
|
223
|
-
* The ID of the model in the database
|
|
224
|
-
*/
|
|
225
|
-
modelDbId?: string | undefined;
|
|
226
|
-
modelType?: UpdateKnowledgeRetrievalSettingsModelType | undefined;
|
|
227
|
-
modelParameters?: UpdateKnowledgeRetrievalSettingsModelParameters | undefined;
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
export type UpdateKnowledgeRetrievalSettings1 = {
|
|
231
|
-
type: UpdateKnowledgeRetrievalSettingsType;
|
|
232
|
-
/**
|
|
233
|
-
* Used to filter chunks that are most similar to the query
|
|
234
|
-
*/
|
|
235
|
-
topK?: number | undefined;
|
|
236
57
|
/**
|
|
237
|
-
*
|
|
58
|
+
* The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
|
|
238
59
|
*/
|
|
239
|
-
|
|
240
|
-
rerankConfig?:
|
|
241
|
-
| UpdateKnowledgeRetrievalSettingsRerankConfig
|
|
242
|
-
| null
|
|
243
|
-
| undefined;
|
|
60
|
+
rerankConfig?: UpdateKnowledgeRerankConfig | undefined;
|
|
244
61
|
};
|
|
245
62
|
|
|
246
|
-
export type UpdateKnowledgeRetrievalSettings =
|
|
247
|
-
| UpdateKnowledgeRetrievalSettings1
|
|
248
|
-
| UpdateKnowledgeRetrievalSettings2
|
|
249
|
-
| UpdateKnowledgeRetrievalSettings3;
|
|
250
|
-
|
|
251
63
|
export type UpdateKnowledgeRequestBody = {
|
|
252
64
|
/**
|
|
253
65
|
* The description of the knowledge base.
|
|
@@ -256,16 +68,15 @@ export type UpdateKnowledgeRequestBody = {
|
|
|
256
68
|
/**
|
|
257
69
|
* The embeddings model used for the knowledge base. If the models is provided and is different than the previous set model, all the datasources in the knowledge base will be re-embedded.
|
|
258
70
|
*/
|
|
259
|
-
|
|
71
|
+
embeddingModel?: string | undefined;
|
|
260
72
|
/**
|
|
261
73
|
* 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.
|
|
262
74
|
*/
|
|
263
75
|
path?: string | undefined;
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
| undefined;
|
|
76
|
+
/**
|
|
77
|
+
* The retrieval settings for the knowledge base. If not provider, Hybrid Search will be used as a default query strategy.
|
|
78
|
+
*/
|
|
79
|
+
retrievalSettings?: UpdateKnowledgeRetrievalSettings | undefined;
|
|
269
80
|
};
|
|
270
81
|
|
|
271
82
|
export type UpdateKnowledgeRequest = {
|
|
@@ -276,282 +87,57 @@ export type UpdateKnowledgeRequest = {
|
|
|
276
87
|
requestBody: UpdateKnowledgeRequestBody;
|
|
277
88
|
};
|
|
278
89
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType =
|
|
286
|
-
{
|
|
287
|
-
HybridSearch: "hybrid_search",
|
|
288
|
-
} as const;
|
|
289
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType =
|
|
290
|
-
ClosedEnum<
|
|
291
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType
|
|
292
|
-
>;
|
|
293
|
-
|
|
294
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider =
|
|
295
|
-
{
|
|
296
|
-
Cohere: "cohere",
|
|
297
|
-
Openai: "openai",
|
|
298
|
-
Anthropic: "anthropic",
|
|
299
|
-
Huggingface: "huggingface",
|
|
300
|
-
Replicate: "replicate",
|
|
301
|
-
Google: "google",
|
|
302
|
-
GoogleAi: "google-ai",
|
|
303
|
-
Azure: "azure",
|
|
304
|
-
Aws: "aws",
|
|
305
|
-
Anyscale: "anyscale",
|
|
306
|
-
Perplexity: "perplexity",
|
|
307
|
-
Groq: "groq",
|
|
308
|
-
Fal: "fal",
|
|
309
|
-
Leonardoai: "leonardoai",
|
|
310
|
-
Nvidia: "nvidia",
|
|
311
|
-
Jina: "jina",
|
|
312
|
-
Togetherai: "togetherai",
|
|
313
|
-
Elevenlabs: "elevenlabs",
|
|
314
|
-
} as const;
|
|
315
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider =
|
|
316
|
-
ClosedEnum<
|
|
317
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider
|
|
318
|
-
>;
|
|
319
|
-
|
|
320
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType =
|
|
321
|
-
{
|
|
322
|
-
Rerank: "rerank",
|
|
323
|
-
} as const;
|
|
324
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType =
|
|
325
|
-
ClosedEnum<
|
|
326
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType
|
|
327
|
-
>;
|
|
328
|
-
|
|
329
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters =
|
|
330
|
-
{
|
|
331
|
-
/**
|
|
332
|
-
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
333
|
-
*/
|
|
334
|
-
threshold?: number | undefined;
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig = {
|
|
338
|
-
enabled?: boolean | undefined;
|
|
339
|
-
provider?:
|
|
340
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider
|
|
341
|
-
| undefined;
|
|
342
|
-
/**
|
|
343
|
-
* The name of the model to use
|
|
344
|
-
*/
|
|
345
|
-
model?: string | undefined;
|
|
346
|
-
/**
|
|
347
|
-
* The ID of the model in the database
|
|
348
|
-
*/
|
|
349
|
-
modelDbId?: string | undefined;
|
|
350
|
-
modelType?:
|
|
351
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType
|
|
352
|
-
| undefined;
|
|
353
|
-
modelParameters?:
|
|
354
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters
|
|
355
|
-
| undefined;
|
|
356
|
-
/**
|
|
357
|
-
* The id of the resource
|
|
358
|
-
*/
|
|
359
|
-
integrationId?: string | null | undefined;
|
|
360
|
-
};
|
|
361
|
-
|
|
362
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledge3 = {
|
|
363
|
-
type: UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType;
|
|
364
|
-
/**
|
|
365
|
-
* Used to filter chunks that are most similar to the query
|
|
366
|
-
*/
|
|
367
|
-
topK?: number | undefined;
|
|
368
|
-
/**
|
|
369
|
-
* Used to filter chunks that are most similar to the query. A value of `0` will be consider disabled.
|
|
370
|
-
*/
|
|
371
|
-
threshold?: number | undefined;
|
|
372
|
-
rerankConfig?:
|
|
373
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig
|
|
374
|
-
| null
|
|
375
|
-
| undefined;
|
|
376
|
-
};
|
|
377
|
-
|
|
378
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Type = {
|
|
90
|
+
/**
|
|
91
|
+
* The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
|
|
92
|
+
*/
|
|
93
|
+
export const UpdateKnowledgeKnowledgeRetrievalType = {
|
|
94
|
+
VectorSearch: "vector_search",
|
|
379
95
|
KeywordSearch: "keyword_search",
|
|
96
|
+
HybridSearch: "hybrid_search",
|
|
380
97
|
} as const;
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
export
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
Anthropic: "anthropic",
|
|
388
|
-
Huggingface: "huggingface",
|
|
389
|
-
Replicate: "replicate",
|
|
390
|
-
Google: "google",
|
|
391
|
-
GoogleAi: "google-ai",
|
|
392
|
-
Azure: "azure",
|
|
393
|
-
Aws: "aws",
|
|
394
|
-
Anyscale: "anyscale",
|
|
395
|
-
Perplexity: "perplexity",
|
|
396
|
-
Groq: "groq",
|
|
397
|
-
Fal: "fal",
|
|
398
|
-
Leonardoai: "leonardoai",
|
|
399
|
-
Nvidia: "nvidia",
|
|
400
|
-
Jina: "jina",
|
|
401
|
-
Togetherai: "togetherai",
|
|
402
|
-
Elevenlabs: "elevenlabs",
|
|
403
|
-
} as const;
|
|
404
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider =
|
|
405
|
-
ClosedEnum<
|
|
406
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider
|
|
407
|
-
>;
|
|
408
|
-
|
|
409
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType = {
|
|
410
|
-
Rerank: "rerank",
|
|
411
|
-
} as const;
|
|
412
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType =
|
|
413
|
-
ClosedEnum<
|
|
414
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType
|
|
415
|
-
>;
|
|
416
|
-
|
|
417
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters =
|
|
418
|
-
{
|
|
419
|
-
/**
|
|
420
|
-
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
421
|
-
*/
|
|
422
|
-
threshold?: number | undefined;
|
|
423
|
-
};
|
|
98
|
+
/**
|
|
99
|
+
* The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
|
|
100
|
+
*/
|
|
101
|
+
export type UpdateKnowledgeKnowledgeRetrievalType = ClosedEnum<
|
|
102
|
+
typeof UpdateKnowledgeKnowledgeRetrievalType
|
|
103
|
+
>;
|
|
424
104
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
| undefined;
|
|
430
|
-
/**
|
|
431
|
-
* The name of the model to use
|
|
432
|
-
*/
|
|
433
|
-
model?: string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
|
|
107
|
+
*/
|
|
108
|
+
export type UpdateKnowledgeKnowledgeRerankConfig = {
|
|
434
109
|
/**
|
|
435
|
-
* The
|
|
110
|
+
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
436
111
|
*/
|
|
437
|
-
|
|
438
|
-
modelType?:
|
|
439
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType
|
|
440
|
-
| undefined;
|
|
441
|
-
modelParameters?:
|
|
442
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters
|
|
443
|
-
| undefined;
|
|
112
|
+
rerankThreshold?: number | undefined;
|
|
444
113
|
/**
|
|
445
|
-
* The
|
|
114
|
+
* The rerank model to use for the knowledge base.
|
|
446
115
|
*/
|
|
447
|
-
|
|
116
|
+
rerankModel: string;
|
|
448
117
|
};
|
|
449
118
|
|
|
450
|
-
|
|
451
|
-
|
|
119
|
+
/**
|
|
120
|
+
* The retrieval settings for the knowledge base. If not provider, Hybrid Search will be used as a default query strategy.
|
|
121
|
+
*/
|
|
122
|
+
export type UpdateKnowledgeKnowledgeRetrievalSettings = {
|
|
452
123
|
/**
|
|
453
|
-
*
|
|
124
|
+
* The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
|
|
454
125
|
*/
|
|
455
|
-
|
|
126
|
+
retrievalType?: UpdateKnowledgeKnowledgeRetrievalType | undefined;
|
|
456
127
|
/**
|
|
457
|
-
*
|
|
128
|
+
* The number of results to return from the search.
|
|
458
129
|
*/
|
|
459
|
-
|
|
460
|
-
rerankConfig?:
|
|
461
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig
|
|
462
|
-
| null
|
|
463
|
-
| undefined;
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponseType = {
|
|
467
|
-
VectorSearch: "vector_search",
|
|
468
|
-
} as const;
|
|
469
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponseType = ClosedEnum<
|
|
470
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponseType
|
|
471
|
-
>;
|
|
472
|
-
|
|
473
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponseProvider = {
|
|
474
|
-
Cohere: "cohere",
|
|
475
|
-
Openai: "openai",
|
|
476
|
-
Anthropic: "anthropic",
|
|
477
|
-
Huggingface: "huggingface",
|
|
478
|
-
Replicate: "replicate",
|
|
479
|
-
Google: "google",
|
|
480
|
-
GoogleAi: "google-ai",
|
|
481
|
-
Azure: "azure",
|
|
482
|
-
Aws: "aws",
|
|
483
|
-
Anyscale: "anyscale",
|
|
484
|
-
Perplexity: "perplexity",
|
|
485
|
-
Groq: "groq",
|
|
486
|
-
Fal: "fal",
|
|
487
|
-
Leonardoai: "leonardoai",
|
|
488
|
-
Nvidia: "nvidia",
|
|
489
|
-
Jina: "jina",
|
|
490
|
-
Togetherai: "togetherai",
|
|
491
|
-
Elevenlabs: "elevenlabs",
|
|
492
|
-
} as const;
|
|
493
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponseProvider =
|
|
494
|
-
ClosedEnum<typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponseProvider>;
|
|
495
|
-
|
|
496
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelType = {
|
|
497
|
-
Rerank: "rerank",
|
|
498
|
-
} as const;
|
|
499
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelType =
|
|
500
|
-
ClosedEnum<typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelType>;
|
|
501
|
-
|
|
502
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelParameters = {
|
|
130
|
+
topK?: number | undefined;
|
|
503
131
|
/**
|
|
504
|
-
* The threshold value used to filter the
|
|
132
|
+
* The threshold value used to filter the search results, only documents with a relevance score greater than the threshold will be returned
|
|
505
133
|
*/
|
|
506
134
|
threshold?: number | undefined;
|
|
507
|
-
};
|
|
508
|
-
|
|
509
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfig = {
|
|
510
|
-
enabled?: boolean | undefined;
|
|
511
|
-
provider?:
|
|
512
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponseProvider
|
|
513
|
-
| undefined;
|
|
514
|
-
/**
|
|
515
|
-
* The name of the model to use
|
|
516
|
-
*/
|
|
517
|
-
model?: string | undefined;
|
|
518
|
-
/**
|
|
519
|
-
* The ID of the model in the database
|
|
520
|
-
*/
|
|
521
|
-
modelDbId?: string | undefined;
|
|
522
|
-
modelType?:
|
|
523
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelType
|
|
524
|
-
| undefined;
|
|
525
|
-
modelParameters?:
|
|
526
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelParameters
|
|
527
|
-
| undefined;
|
|
528
135
|
/**
|
|
529
|
-
* The
|
|
530
|
-
*/
|
|
531
|
-
integrationId?: string | null | undefined;
|
|
532
|
-
};
|
|
533
|
-
|
|
534
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledge1 = {
|
|
535
|
-
type: UpdateKnowledgeRetrievalSettingsKnowledgeResponseType;
|
|
536
|
-
/**
|
|
537
|
-
* Used to filter chunks that are most similar to the query
|
|
538
|
-
*/
|
|
539
|
-
topK?: number | undefined;
|
|
540
|
-
/**
|
|
541
|
-
* Used to filter chunks that are most similar to the query. A value of `0` will be consider disabled.
|
|
136
|
+
* The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
|
|
542
137
|
*/
|
|
543
|
-
|
|
544
|
-
rerankConfig?:
|
|
545
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfig
|
|
546
|
-
| null
|
|
547
|
-
| undefined;
|
|
138
|
+
rerankConfig?: UpdateKnowledgeKnowledgeRerankConfig | undefined;
|
|
548
139
|
};
|
|
549
140
|
|
|
550
|
-
export type UpdateKnowledgeKnowledgeRetrievalSettings =
|
|
551
|
-
| UpdateKnowledgeRetrievalSettingsKnowledge1
|
|
552
|
-
| UpdateKnowledgeRetrievalSettingsKnowledge2
|
|
553
|
-
| UpdateKnowledgeRetrievalSettingsKnowledge3;
|
|
554
|
-
|
|
555
141
|
/**
|
|
556
142
|
* Knowledge Base object
|
|
557
143
|
*/
|
|
@@ -576,7 +162,6 @@ export type UpdateKnowledgeResponseBody = {
|
|
|
576
162
|
* The unique key of the knowledge base.
|
|
577
163
|
*/
|
|
578
164
|
key: string;
|
|
579
|
-
metadata: UpdateKnowledgeMetadata;
|
|
580
165
|
/**
|
|
581
166
|
* The embeddings model used for the knowledge base.
|
|
582
167
|
*/
|
|
@@ -585,10 +170,10 @@ export type UpdateKnowledgeResponseBody = {
|
|
|
585
170
|
* 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.
|
|
586
171
|
*/
|
|
587
172
|
path?: string | undefined;
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
173
|
+
/**
|
|
174
|
+
* The retrieval settings for the knowledge base. If not provider, Hybrid Search will be used as a default query strategy.
|
|
175
|
+
*/
|
|
176
|
+
retrievalSettings?: UpdateKnowledgeKnowledgeRetrievalSettings | undefined;
|
|
592
177
|
/**
|
|
593
178
|
* The id of the resource
|
|
594
179
|
*/
|
|
@@ -600,2343 +185,415 @@ export type UpdateKnowledgeResponseBody = {
|
|
|
600
185
|
};
|
|
601
186
|
|
|
602
187
|
/** @internal */
|
|
603
|
-
export const
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
/** @internal */
|
|
608
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeRequestType$outboundSchema:
|
|
609
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeRetrievalSettingsKnowledgeRequestType> =
|
|
610
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRequestType$inboundSchema;
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* @internal
|
|
614
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
615
|
-
*/
|
|
616
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeRequestType$ {
|
|
617
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeRequestType$inboundSchema` instead. */
|
|
618
|
-
export const inboundSchema =
|
|
619
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRequestType$inboundSchema;
|
|
620
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeRequestType$outboundSchema` instead. */
|
|
621
|
-
export const outboundSchema =
|
|
622
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRequestType$outboundSchema;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
/** @internal */
|
|
626
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider$inboundSchema:
|
|
627
|
-
z.ZodNativeEnum<
|
|
628
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider
|
|
629
|
-
> = z.nativeEnum(UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider);
|
|
630
|
-
|
|
631
|
-
/** @internal */
|
|
632
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider$outboundSchema:
|
|
633
|
-
z.ZodNativeEnum<
|
|
634
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider
|
|
635
|
-
> = UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider$inboundSchema;
|
|
636
|
-
|
|
637
|
-
/**
|
|
638
|
-
* @internal
|
|
639
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
640
|
-
*/
|
|
641
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider$ {
|
|
642
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider$inboundSchema` instead. */
|
|
643
|
-
export const inboundSchema =
|
|
644
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider$inboundSchema;
|
|
645
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider$outboundSchema` instead. */
|
|
646
|
-
export const outboundSchema =
|
|
647
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider$outboundSchema;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
/** @internal */
|
|
651
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelType$inboundSchema:
|
|
652
|
-
z.ZodNativeEnum<
|
|
653
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelType
|
|
654
|
-
> = z.nativeEnum(UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelType);
|
|
188
|
+
export const UpdateKnowledgeRetrievalType$inboundSchema: z.ZodNativeEnum<
|
|
189
|
+
typeof UpdateKnowledgeRetrievalType
|
|
190
|
+
> = z.nativeEnum(UpdateKnowledgeRetrievalType);
|
|
655
191
|
|
|
656
192
|
/** @internal */
|
|
657
|
-
export const
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
> = UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelType$inboundSchema;
|
|
193
|
+
export const UpdateKnowledgeRetrievalType$outboundSchema: z.ZodNativeEnum<
|
|
194
|
+
typeof UpdateKnowledgeRetrievalType
|
|
195
|
+
> = UpdateKnowledgeRetrievalType$inboundSchema;
|
|
661
196
|
|
|
662
197
|
/**
|
|
663
198
|
* @internal
|
|
664
199
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
665
200
|
*/
|
|
666
|
-
export namespace
|
|
667
|
-
/** @deprecated use `
|
|
668
|
-
export const inboundSchema =
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
export const outboundSchema =
|
|
672
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelType$outboundSchema;
|
|
201
|
+
export namespace UpdateKnowledgeRetrievalType$ {
|
|
202
|
+
/** @deprecated use `UpdateKnowledgeRetrievalType$inboundSchema` instead. */
|
|
203
|
+
export const inboundSchema = UpdateKnowledgeRetrievalType$inboundSchema;
|
|
204
|
+
/** @deprecated use `UpdateKnowledgeRetrievalType$outboundSchema` instead. */
|
|
205
|
+
export const outboundSchema = UpdateKnowledgeRetrievalType$outboundSchema;
|
|
673
206
|
}
|
|
674
207
|
|
|
675
208
|
/** @internal */
|
|
676
|
-
export const
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
209
|
+
export const UpdateKnowledgeRerankConfig$inboundSchema: z.ZodType<
|
|
210
|
+
UpdateKnowledgeRerankConfig,
|
|
211
|
+
z.ZodTypeDef,
|
|
212
|
+
unknown
|
|
213
|
+
> = z.object({
|
|
214
|
+
rerank_threshold: z.number().default(0.5),
|
|
215
|
+
rerank_model: z.string(),
|
|
216
|
+
}).transform((v) => {
|
|
217
|
+
return remap$(v, {
|
|
218
|
+
"rerank_threshold": "rerankThreshold",
|
|
219
|
+
"rerank_model": "rerankModel",
|
|
683
220
|
});
|
|
221
|
+
});
|
|
684
222
|
|
|
685
223
|
/** @internal */
|
|
686
|
-
export type
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
224
|
+
export type UpdateKnowledgeRerankConfig$Outbound = {
|
|
225
|
+
rerank_threshold: number;
|
|
226
|
+
rerank_model: string;
|
|
227
|
+
};
|
|
690
228
|
|
|
691
229
|
/** @internal */
|
|
692
|
-
export const
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
230
|
+
export const UpdateKnowledgeRerankConfig$outboundSchema: z.ZodType<
|
|
231
|
+
UpdateKnowledgeRerankConfig$Outbound,
|
|
232
|
+
z.ZodTypeDef,
|
|
233
|
+
UpdateKnowledgeRerankConfig
|
|
234
|
+
> = z.object({
|
|
235
|
+
rerankThreshold: z.number().default(0.5),
|
|
236
|
+
rerankModel: z.string(),
|
|
237
|
+
}).transform((v) => {
|
|
238
|
+
return remap$(v, {
|
|
239
|
+
rerankThreshold: "rerank_threshold",
|
|
240
|
+
rerankModel: "rerank_model",
|
|
699
241
|
});
|
|
242
|
+
});
|
|
700
243
|
|
|
701
244
|
/**
|
|
702
245
|
* @internal
|
|
703
246
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
704
247
|
*/
|
|
705
|
-
export namespace
|
|
706
|
-
/** @deprecated use `
|
|
707
|
-
export const inboundSchema =
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelParameters$Outbound` instead. */
|
|
713
|
-
export type Outbound =
|
|
714
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelParameters$Outbound;
|
|
248
|
+
export namespace UpdateKnowledgeRerankConfig$ {
|
|
249
|
+
/** @deprecated use `UpdateKnowledgeRerankConfig$inboundSchema` instead. */
|
|
250
|
+
export const inboundSchema = UpdateKnowledgeRerankConfig$inboundSchema;
|
|
251
|
+
/** @deprecated use `UpdateKnowledgeRerankConfig$outboundSchema` instead. */
|
|
252
|
+
export const outboundSchema = UpdateKnowledgeRerankConfig$outboundSchema;
|
|
253
|
+
/** @deprecated use `UpdateKnowledgeRerankConfig$Outbound` instead. */
|
|
254
|
+
export type Outbound = UpdateKnowledgeRerankConfig$Outbound;
|
|
715
255
|
}
|
|
716
256
|
|
|
717
|
-
export function
|
|
718
|
-
|
|
719
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelParameters,
|
|
257
|
+
export function updateKnowledgeRerankConfigToJSON(
|
|
258
|
+
updateKnowledgeRerankConfig: UpdateKnowledgeRerankConfig,
|
|
720
259
|
): string {
|
|
721
260
|
return JSON.stringify(
|
|
722
|
-
|
|
723
|
-
|
|
261
|
+
UpdateKnowledgeRerankConfig$outboundSchema.parse(
|
|
262
|
+
updateKnowledgeRerankConfig,
|
|
263
|
+
),
|
|
724
264
|
);
|
|
725
265
|
}
|
|
726
266
|
|
|
727
|
-
export function
|
|
267
|
+
export function updateKnowledgeRerankConfigFromJSON(
|
|
728
268
|
jsonString: string,
|
|
729
|
-
): SafeParseResult<
|
|
730
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelParameters,
|
|
731
|
-
SDKValidationError
|
|
732
|
-
> {
|
|
269
|
+
): SafeParseResult<UpdateKnowledgeRerankConfig, SDKValidationError> {
|
|
733
270
|
return safeParse(
|
|
734
271
|
jsonString,
|
|
735
|
-
(x) =>
|
|
736
|
-
|
|
737
|
-
.parse(JSON.parse(x)),
|
|
738
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelParameters' from JSON`,
|
|
272
|
+
(x) => UpdateKnowledgeRerankConfig$inboundSchema.parse(JSON.parse(x)),
|
|
273
|
+
`Failed to parse 'UpdateKnowledgeRerankConfig' from JSON`,
|
|
739
274
|
);
|
|
740
275
|
}
|
|
741
276
|
|
|
742
277
|
/** @internal */
|
|
743
|
-
export const
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
).optional(),
|
|
761
|
-
}).transform((v) => {
|
|
762
|
-
return remap$(v, {
|
|
763
|
-
"model_db_id": "modelDbId",
|
|
764
|
-
"model_type": "modelType",
|
|
765
|
-
"model_parameters": "modelParameters",
|
|
766
|
-
});
|
|
278
|
+
export const UpdateKnowledgeRetrievalSettings$inboundSchema: z.ZodType<
|
|
279
|
+
UpdateKnowledgeRetrievalSettings,
|
|
280
|
+
z.ZodTypeDef,
|
|
281
|
+
unknown
|
|
282
|
+
> = z.object({
|
|
283
|
+
retrieval_type: UpdateKnowledgeRetrievalType$inboundSchema.default(
|
|
284
|
+
"hybrid_search",
|
|
285
|
+
),
|
|
286
|
+
top_k: z.number().int().default(5),
|
|
287
|
+
threshold: z.number().default(0),
|
|
288
|
+
rerank_config: z.lazy(() => UpdateKnowledgeRerankConfig$inboundSchema)
|
|
289
|
+
.optional(),
|
|
290
|
+
}).transform((v) => {
|
|
291
|
+
return remap$(v, {
|
|
292
|
+
"retrieval_type": "retrievalType",
|
|
293
|
+
"top_k": "topK",
|
|
294
|
+
"rerank_config": "rerankConfig",
|
|
767
295
|
});
|
|
296
|
+
});
|
|
768
297
|
|
|
769
298
|
/** @internal */
|
|
770
|
-
export type
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
model_type?: string | undefined;
|
|
777
|
-
model_parameters?:
|
|
778
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelParameters$Outbound
|
|
779
|
-
| undefined;
|
|
780
|
-
};
|
|
299
|
+
export type UpdateKnowledgeRetrievalSettings$Outbound = {
|
|
300
|
+
retrieval_type: string;
|
|
301
|
+
top_k: number;
|
|
302
|
+
threshold: number;
|
|
303
|
+
rerank_config?: UpdateKnowledgeRerankConfig$Outbound | undefined;
|
|
304
|
+
};
|
|
781
305
|
|
|
782
306
|
/** @internal */
|
|
783
|
-
export const
|
|
784
|
-
|
|
785
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput$Outbound,
|
|
786
|
-
z.ZodTypeDef,
|
|
787
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput
|
|
788
|
-
> = z.object({
|
|
789
|
-
enabled: z.boolean().optional(),
|
|
790
|
-
provider:
|
|
791
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRequestProvider$outboundSchema
|
|
792
|
-
.optional(),
|
|
793
|
-
model: z.string().optional(),
|
|
794
|
-
modelDbId: z.string().optional(),
|
|
795
|
-
modelType:
|
|
796
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelType$outboundSchema
|
|
797
|
-
.optional(),
|
|
798
|
-
modelParameters: z.lazy(() =>
|
|
799
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRequestModelParameters$outboundSchema
|
|
800
|
-
).optional(),
|
|
801
|
-
}).transform((v) => {
|
|
802
|
-
return remap$(v, {
|
|
803
|
-
modelDbId: "model_db_id",
|
|
804
|
-
modelType: "model_type",
|
|
805
|
-
modelParameters: "model_parameters",
|
|
806
|
-
});
|
|
807
|
-
});
|
|
808
|
-
|
|
809
|
-
/**
|
|
810
|
-
* @internal
|
|
811
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
812
|
-
*/
|
|
813
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput$ {
|
|
814
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput$inboundSchema` instead. */
|
|
815
|
-
export const inboundSchema =
|
|
816
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput$inboundSchema;
|
|
817
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput$outboundSchema` instead. */
|
|
818
|
-
export const outboundSchema =
|
|
819
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput$outboundSchema;
|
|
820
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput$Outbound` instead. */
|
|
821
|
-
export type Outbound =
|
|
822
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput$Outbound;
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
export function updateKnowledgeRetrievalSettingsKnowledgeRerankConfigInputToJSON(
|
|
826
|
-
updateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput:
|
|
827
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput,
|
|
828
|
-
): string {
|
|
829
|
-
return JSON.stringify(
|
|
830
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput$outboundSchema
|
|
831
|
-
.parse(updateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput),
|
|
832
|
-
);
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
export function updateKnowledgeRetrievalSettingsKnowledgeRerankConfigInputFromJSON(
|
|
836
|
-
jsonString: string,
|
|
837
|
-
): SafeParseResult<
|
|
838
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput,
|
|
839
|
-
SDKValidationError
|
|
840
|
-
> {
|
|
841
|
-
return safeParse(
|
|
842
|
-
jsonString,
|
|
843
|
-
(x) =>
|
|
844
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput$inboundSchema
|
|
845
|
-
.parse(JSON.parse(x)),
|
|
846
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput' from JSON`,
|
|
847
|
-
);
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
/** @internal */
|
|
851
|
-
export const UpdateKnowledgeRetrievalSettings3$inboundSchema: z.ZodType<
|
|
852
|
-
UpdateKnowledgeRetrievalSettings3,
|
|
853
|
-
z.ZodTypeDef,
|
|
854
|
-
unknown
|
|
855
|
-
> = z.object({
|
|
856
|
-
type: UpdateKnowledgeRetrievalSettingsKnowledgeRequestType$inboundSchema,
|
|
857
|
-
top_k: z.number().int().default(5),
|
|
858
|
-
threshold: z.number().default(0),
|
|
859
|
-
rerank_config: z.nullable(
|
|
860
|
-
z.lazy(() =>
|
|
861
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput$inboundSchema
|
|
862
|
-
),
|
|
863
|
-
).optional(),
|
|
864
|
-
}).transform((v) => {
|
|
865
|
-
return remap$(v, {
|
|
866
|
-
"top_k": "topK",
|
|
867
|
-
"rerank_config": "rerankConfig",
|
|
868
|
-
});
|
|
869
|
-
});
|
|
870
|
-
|
|
871
|
-
/** @internal */
|
|
872
|
-
export type UpdateKnowledgeRetrievalSettings3$Outbound = {
|
|
873
|
-
type: string;
|
|
874
|
-
top_k: number;
|
|
875
|
-
threshold: number;
|
|
876
|
-
rerank_config?:
|
|
877
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput$Outbound
|
|
878
|
-
| null
|
|
879
|
-
| undefined;
|
|
880
|
-
};
|
|
881
|
-
|
|
882
|
-
/** @internal */
|
|
883
|
-
export const UpdateKnowledgeRetrievalSettings3$outboundSchema: z.ZodType<
|
|
884
|
-
UpdateKnowledgeRetrievalSettings3$Outbound,
|
|
885
|
-
z.ZodTypeDef,
|
|
886
|
-
UpdateKnowledgeRetrievalSettings3
|
|
887
|
-
> = z.object({
|
|
888
|
-
type: UpdateKnowledgeRetrievalSettingsKnowledgeRequestType$outboundSchema,
|
|
889
|
-
topK: z.number().int().default(5),
|
|
890
|
-
threshold: z.number().default(0),
|
|
891
|
-
rerankConfig: z.nullable(
|
|
892
|
-
z.lazy(() =>
|
|
893
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfigInput$outboundSchema
|
|
894
|
-
),
|
|
895
|
-
).optional(),
|
|
896
|
-
}).transform((v) => {
|
|
897
|
-
return remap$(v, {
|
|
898
|
-
topK: "top_k",
|
|
899
|
-
rerankConfig: "rerank_config",
|
|
900
|
-
});
|
|
901
|
-
});
|
|
902
|
-
|
|
903
|
-
/**
|
|
904
|
-
* @internal
|
|
905
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
906
|
-
*/
|
|
907
|
-
export namespace UpdateKnowledgeRetrievalSettings3$ {
|
|
908
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettings3$inboundSchema` instead. */
|
|
909
|
-
export const inboundSchema = UpdateKnowledgeRetrievalSettings3$inboundSchema;
|
|
910
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettings3$outboundSchema` instead. */
|
|
911
|
-
export const outboundSchema =
|
|
912
|
-
UpdateKnowledgeRetrievalSettings3$outboundSchema;
|
|
913
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettings3$Outbound` instead. */
|
|
914
|
-
export type Outbound = UpdateKnowledgeRetrievalSettings3$Outbound;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
export function updateKnowledgeRetrievalSettings3ToJSON(
|
|
918
|
-
updateKnowledgeRetrievalSettings3: UpdateKnowledgeRetrievalSettings3,
|
|
919
|
-
): string {
|
|
920
|
-
return JSON.stringify(
|
|
921
|
-
UpdateKnowledgeRetrievalSettings3$outboundSchema.parse(
|
|
922
|
-
updateKnowledgeRetrievalSettings3,
|
|
923
|
-
),
|
|
924
|
-
);
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
export function updateKnowledgeRetrievalSettings3FromJSON(
|
|
928
|
-
jsonString: string,
|
|
929
|
-
): SafeParseResult<UpdateKnowledgeRetrievalSettings3, SDKValidationError> {
|
|
930
|
-
return safeParse(
|
|
931
|
-
jsonString,
|
|
932
|
-
(x) => UpdateKnowledgeRetrievalSettings3$inboundSchema.parse(JSON.parse(x)),
|
|
933
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettings3' from JSON`,
|
|
934
|
-
);
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
/** @internal */
|
|
938
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeType$inboundSchema:
|
|
939
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeRetrievalSettingsKnowledgeType> = z
|
|
940
|
-
.nativeEnum(UpdateKnowledgeRetrievalSettingsKnowledgeType);
|
|
941
|
-
|
|
942
|
-
/** @internal */
|
|
943
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeType$outboundSchema:
|
|
944
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeRetrievalSettingsKnowledgeType> =
|
|
945
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeType$inboundSchema;
|
|
946
|
-
|
|
947
|
-
/**
|
|
948
|
-
* @internal
|
|
949
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
950
|
-
*/
|
|
951
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeType$ {
|
|
952
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeType$inboundSchema` instead. */
|
|
953
|
-
export const inboundSchema =
|
|
954
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeType$inboundSchema;
|
|
955
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeType$outboundSchema` instead. */
|
|
956
|
-
export const outboundSchema =
|
|
957
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeType$outboundSchema;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
/** @internal */
|
|
961
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeProvider$inboundSchema:
|
|
962
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeRetrievalSettingsKnowledgeProvider> = z
|
|
963
|
-
.nativeEnum(UpdateKnowledgeRetrievalSettingsKnowledgeProvider);
|
|
964
|
-
|
|
965
|
-
/** @internal */
|
|
966
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeProvider$outboundSchema:
|
|
967
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeRetrievalSettingsKnowledgeProvider> =
|
|
968
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeProvider$inboundSchema;
|
|
969
|
-
|
|
970
|
-
/**
|
|
971
|
-
* @internal
|
|
972
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
973
|
-
*/
|
|
974
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeProvider$ {
|
|
975
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeProvider$inboundSchema` instead. */
|
|
976
|
-
export const inboundSchema =
|
|
977
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeProvider$inboundSchema;
|
|
978
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeProvider$outboundSchema` instead. */
|
|
979
|
-
export const outboundSchema =
|
|
980
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeProvider$outboundSchema;
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
/** @internal */
|
|
984
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeModelType$inboundSchema:
|
|
985
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeRetrievalSettingsKnowledgeModelType> = z
|
|
986
|
-
.nativeEnum(UpdateKnowledgeRetrievalSettingsKnowledgeModelType);
|
|
987
|
-
|
|
988
|
-
/** @internal */
|
|
989
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeModelType$outboundSchema:
|
|
990
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeRetrievalSettingsKnowledgeModelType> =
|
|
991
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelType$inboundSchema;
|
|
992
|
-
|
|
993
|
-
/**
|
|
994
|
-
* @internal
|
|
995
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
996
|
-
*/
|
|
997
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeModelType$ {
|
|
998
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeModelType$inboundSchema` instead. */
|
|
999
|
-
export const inboundSchema =
|
|
1000
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelType$inboundSchema;
|
|
1001
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeModelType$outboundSchema` instead. */
|
|
1002
|
-
export const outboundSchema =
|
|
1003
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelType$outboundSchema;
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
/** @internal */
|
|
1007
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$inboundSchema:
|
|
1008
|
-
z.ZodType<
|
|
1009
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters,
|
|
1010
|
-
z.ZodTypeDef,
|
|
1011
|
-
unknown
|
|
1012
|
-
> = z.object({
|
|
1013
|
-
threshold: z.number().optional(),
|
|
1014
|
-
});
|
|
1015
|
-
|
|
1016
|
-
/** @internal */
|
|
1017
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$Outbound =
|
|
1018
|
-
{
|
|
1019
|
-
threshold?: number | undefined;
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
/** @internal */
|
|
1023
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$outboundSchema:
|
|
1024
|
-
z.ZodType<
|
|
1025
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$Outbound,
|
|
1026
|
-
z.ZodTypeDef,
|
|
1027
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters
|
|
1028
|
-
> = z.object({
|
|
1029
|
-
threshold: z.number().optional(),
|
|
1030
|
-
});
|
|
1031
|
-
|
|
1032
|
-
/**
|
|
1033
|
-
* @internal
|
|
1034
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1035
|
-
*/
|
|
1036
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$ {
|
|
1037
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$inboundSchema` instead. */
|
|
1038
|
-
export const inboundSchema =
|
|
1039
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$inboundSchema;
|
|
1040
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$outboundSchema` instead. */
|
|
1041
|
-
export const outboundSchema =
|
|
1042
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$outboundSchema;
|
|
1043
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$Outbound` instead. */
|
|
1044
|
-
export type Outbound =
|
|
1045
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$Outbound;
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
|
-
export function updateKnowledgeRetrievalSettingsKnowledgeModelParametersToJSON(
|
|
1049
|
-
updateKnowledgeRetrievalSettingsKnowledgeModelParameters:
|
|
1050
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters,
|
|
1051
|
-
): string {
|
|
1052
|
-
return JSON.stringify(
|
|
1053
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$outboundSchema
|
|
1054
|
-
.parse(updateKnowledgeRetrievalSettingsKnowledgeModelParameters),
|
|
1055
|
-
);
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
export function updateKnowledgeRetrievalSettingsKnowledgeModelParametersFromJSON(
|
|
1059
|
-
jsonString: string,
|
|
1060
|
-
): SafeParseResult<
|
|
1061
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters,
|
|
1062
|
-
SDKValidationError
|
|
1063
|
-
> {
|
|
1064
|
-
return safeParse(
|
|
1065
|
-
jsonString,
|
|
1066
|
-
(x) =>
|
|
1067
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$inboundSchema
|
|
1068
|
-
.parse(JSON.parse(x)),
|
|
1069
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters' from JSON`,
|
|
1070
|
-
);
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
/** @internal */
|
|
1074
|
-
export const UpdateKnowledgeRetrievalSettingsRerankConfigInput$inboundSchema:
|
|
1075
|
-
z.ZodType<
|
|
1076
|
-
UpdateKnowledgeRetrievalSettingsRerankConfigInput,
|
|
1077
|
-
z.ZodTypeDef,
|
|
1078
|
-
unknown
|
|
1079
|
-
> = z.object({
|
|
1080
|
-
enabled: z.boolean().optional(),
|
|
1081
|
-
provider: UpdateKnowledgeRetrievalSettingsKnowledgeProvider$inboundSchema
|
|
1082
|
-
.optional(),
|
|
1083
|
-
model: z.string().optional(),
|
|
1084
|
-
model_db_id: z.string().optional(),
|
|
1085
|
-
model_type: UpdateKnowledgeRetrievalSettingsKnowledgeModelType$inboundSchema
|
|
1086
|
-
.optional(),
|
|
1087
|
-
model_parameters: z.lazy(() =>
|
|
1088
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$inboundSchema
|
|
1089
|
-
).optional(),
|
|
1090
|
-
}).transform((v) => {
|
|
1091
|
-
return remap$(v, {
|
|
1092
|
-
"model_db_id": "modelDbId",
|
|
1093
|
-
"model_type": "modelType",
|
|
1094
|
-
"model_parameters": "modelParameters",
|
|
1095
|
-
});
|
|
1096
|
-
});
|
|
1097
|
-
|
|
1098
|
-
/** @internal */
|
|
1099
|
-
export type UpdateKnowledgeRetrievalSettingsRerankConfigInput$Outbound = {
|
|
1100
|
-
enabled?: boolean | undefined;
|
|
1101
|
-
provider?: string | undefined;
|
|
1102
|
-
model?: string | undefined;
|
|
1103
|
-
model_db_id?: string | undefined;
|
|
1104
|
-
model_type?: string | undefined;
|
|
1105
|
-
model_parameters?:
|
|
1106
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$Outbound
|
|
1107
|
-
| undefined;
|
|
1108
|
-
};
|
|
1109
|
-
|
|
1110
|
-
/** @internal */
|
|
1111
|
-
export const UpdateKnowledgeRetrievalSettingsRerankConfigInput$outboundSchema:
|
|
1112
|
-
z.ZodType<
|
|
1113
|
-
UpdateKnowledgeRetrievalSettingsRerankConfigInput$Outbound,
|
|
1114
|
-
z.ZodTypeDef,
|
|
1115
|
-
UpdateKnowledgeRetrievalSettingsRerankConfigInput
|
|
1116
|
-
> = z.object({
|
|
1117
|
-
enabled: z.boolean().optional(),
|
|
1118
|
-
provider: UpdateKnowledgeRetrievalSettingsKnowledgeProvider$outboundSchema
|
|
1119
|
-
.optional(),
|
|
1120
|
-
model: z.string().optional(),
|
|
1121
|
-
modelDbId: z.string().optional(),
|
|
1122
|
-
modelType: UpdateKnowledgeRetrievalSettingsKnowledgeModelType$outboundSchema
|
|
1123
|
-
.optional(),
|
|
1124
|
-
modelParameters: z.lazy(() =>
|
|
1125
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeModelParameters$outboundSchema
|
|
1126
|
-
).optional(),
|
|
1127
|
-
}).transform((v) => {
|
|
1128
|
-
return remap$(v, {
|
|
1129
|
-
modelDbId: "model_db_id",
|
|
1130
|
-
modelType: "model_type",
|
|
1131
|
-
modelParameters: "model_parameters",
|
|
1132
|
-
});
|
|
1133
|
-
});
|
|
1134
|
-
|
|
1135
|
-
/**
|
|
1136
|
-
* @internal
|
|
1137
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1138
|
-
*/
|
|
1139
|
-
export namespace UpdateKnowledgeRetrievalSettingsRerankConfigInput$ {
|
|
1140
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsRerankConfigInput$inboundSchema` instead. */
|
|
1141
|
-
export const inboundSchema =
|
|
1142
|
-
UpdateKnowledgeRetrievalSettingsRerankConfigInput$inboundSchema;
|
|
1143
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsRerankConfigInput$outboundSchema` instead. */
|
|
1144
|
-
export const outboundSchema =
|
|
1145
|
-
UpdateKnowledgeRetrievalSettingsRerankConfigInput$outboundSchema;
|
|
1146
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsRerankConfigInput$Outbound` instead. */
|
|
1147
|
-
export type Outbound =
|
|
1148
|
-
UpdateKnowledgeRetrievalSettingsRerankConfigInput$Outbound;
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
export function updateKnowledgeRetrievalSettingsRerankConfigInputToJSON(
|
|
1152
|
-
updateKnowledgeRetrievalSettingsRerankConfigInput:
|
|
1153
|
-
UpdateKnowledgeRetrievalSettingsRerankConfigInput,
|
|
1154
|
-
): string {
|
|
1155
|
-
return JSON.stringify(
|
|
1156
|
-
UpdateKnowledgeRetrievalSettingsRerankConfigInput$outboundSchema.parse(
|
|
1157
|
-
updateKnowledgeRetrievalSettingsRerankConfigInput,
|
|
1158
|
-
),
|
|
1159
|
-
);
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
export function updateKnowledgeRetrievalSettingsRerankConfigInputFromJSON(
|
|
1163
|
-
jsonString: string,
|
|
1164
|
-
): SafeParseResult<
|
|
1165
|
-
UpdateKnowledgeRetrievalSettingsRerankConfigInput,
|
|
1166
|
-
SDKValidationError
|
|
1167
|
-
> {
|
|
1168
|
-
return safeParse(
|
|
1169
|
-
jsonString,
|
|
1170
|
-
(x) =>
|
|
1171
|
-
UpdateKnowledgeRetrievalSettingsRerankConfigInput$inboundSchema.parse(
|
|
1172
|
-
JSON.parse(x),
|
|
1173
|
-
),
|
|
1174
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsRerankConfigInput' from JSON`,
|
|
1175
|
-
);
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
/** @internal */
|
|
1179
|
-
export const UpdateKnowledgeRetrievalSettings2$inboundSchema: z.ZodType<
|
|
1180
|
-
UpdateKnowledgeRetrievalSettings2,
|
|
1181
|
-
z.ZodTypeDef,
|
|
1182
|
-
unknown
|
|
1183
|
-
> = z.object({
|
|
1184
|
-
type: UpdateKnowledgeRetrievalSettingsKnowledgeType$inboundSchema,
|
|
1185
|
-
top_k: z.number().int().default(5),
|
|
1186
|
-
threshold: z.number().default(0),
|
|
1187
|
-
rerank_config: z.nullable(
|
|
1188
|
-
z.lazy(() =>
|
|
1189
|
-
UpdateKnowledgeRetrievalSettingsRerankConfigInput$inboundSchema
|
|
1190
|
-
),
|
|
1191
|
-
).optional(),
|
|
1192
|
-
}).transform((v) => {
|
|
1193
|
-
return remap$(v, {
|
|
1194
|
-
"top_k": "topK",
|
|
1195
|
-
"rerank_config": "rerankConfig",
|
|
1196
|
-
});
|
|
1197
|
-
});
|
|
1198
|
-
|
|
1199
|
-
/** @internal */
|
|
1200
|
-
export type UpdateKnowledgeRetrievalSettings2$Outbound = {
|
|
1201
|
-
type: string;
|
|
1202
|
-
top_k: number;
|
|
1203
|
-
threshold: number;
|
|
1204
|
-
rerank_config?:
|
|
1205
|
-
| UpdateKnowledgeRetrievalSettingsRerankConfigInput$Outbound
|
|
1206
|
-
| null
|
|
1207
|
-
| undefined;
|
|
1208
|
-
};
|
|
1209
|
-
|
|
1210
|
-
/** @internal */
|
|
1211
|
-
export const UpdateKnowledgeRetrievalSettings2$outboundSchema: z.ZodType<
|
|
1212
|
-
UpdateKnowledgeRetrievalSettings2$Outbound,
|
|
307
|
+
export const UpdateKnowledgeRetrievalSettings$outboundSchema: z.ZodType<
|
|
308
|
+
UpdateKnowledgeRetrievalSettings$Outbound,
|
|
1213
309
|
z.ZodTypeDef,
|
|
1214
|
-
|
|
310
|
+
UpdateKnowledgeRetrievalSettings
|
|
1215
311
|
> = z.object({
|
|
1216
|
-
|
|
312
|
+
retrievalType: UpdateKnowledgeRetrievalType$outboundSchema.default(
|
|
313
|
+
"hybrid_search",
|
|
314
|
+
),
|
|
1217
315
|
topK: z.number().int().default(5),
|
|
1218
|
-
threshold: z.number().default(0),
|
|
1219
|
-
rerankConfig: z.
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
topK: "top_k",
|
|
1227
|
-
rerankConfig: "rerank_config",
|
|
1228
|
-
});
|
|
1229
|
-
});
|
|
1230
|
-
|
|
1231
|
-
/**
|
|
1232
|
-
* @internal
|
|
1233
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1234
|
-
*/
|
|
1235
|
-
export namespace UpdateKnowledgeRetrievalSettings2$ {
|
|
1236
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettings2$inboundSchema` instead. */
|
|
1237
|
-
export const inboundSchema = UpdateKnowledgeRetrievalSettings2$inboundSchema;
|
|
1238
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettings2$outboundSchema` instead. */
|
|
1239
|
-
export const outboundSchema =
|
|
1240
|
-
UpdateKnowledgeRetrievalSettings2$outboundSchema;
|
|
1241
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettings2$Outbound` instead. */
|
|
1242
|
-
export type Outbound = UpdateKnowledgeRetrievalSettings2$Outbound;
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
export function updateKnowledgeRetrievalSettings2ToJSON(
|
|
1246
|
-
updateKnowledgeRetrievalSettings2: UpdateKnowledgeRetrievalSettings2,
|
|
1247
|
-
): string {
|
|
1248
|
-
return JSON.stringify(
|
|
1249
|
-
UpdateKnowledgeRetrievalSettings2$outboundSchema.parse(
|
|
1250
|
-
updateKnowledgeRetrievalSettings2,
|
|
1251
|
-
),
|
|
1252
|
-
);
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
export function updateKnowledgeRetrievalSettings2FromJSON(
|
|
1256
|
-
jsonString: string,
|
|
1257
|
-
): SafeParseResult<UpdateKnowledgeRetrievalSettings2, SDKValidationError> {
|
|
1258
|
-
return safeParse(
|
|
1259
|
-
jsonString,
|
|
1260
|
-
(x) => UpdateKnowledgeRetrievalSettings2$inboundSchema.parse(JSON.parse(x)),
|
|
1261
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettings2' from JSON`,
|
|
1262
|
-
);
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
/** @internal */
|
|
1266
|
-
export const UpdateKnowledgeRetrievalSettingsType$inboundSchema:
|
|
1267
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeRetrievalSettingsType> = z.nativeEnum(
|
|
1268
|
-
UpdateKnowledgeRetrievalSettingsType,
|
|
1269
|
-
);
|
|
1270
|
-
|
|
1271
|
-
/** @internal */
|
|
1272
|
-
export const UpdateKnowledgeRetrievalSettingsType$outboundSchema:
|
|
1273
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeRetrievalSettingsType> =
|
|
1274
|
-
UpdateKnowledgeRetrievalSettingsType$inboundSchema;
|
|
1275
|
-
|
|
1276
|
-
/**
|
|
1277
|
-
* @internal
|
|
1278
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1279
|
-
*/
|
|
1280
|
-
export namespace UpdateKnowledgeRetrievalSettingsType$ {
|
|
1281
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsType$inboundSchema` instead. */
|
|
1282
|
-
export const inboundSchema =
|
|
1283
|
-
UpdateKnowledgeRetrievalSettingsType$inboundSchema;
|
|
1284
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsType$outboundSchema` instead. */
|
|
1285
|
-
export const outboundSchema =
|
|
1286
|
-
UpdateKnowledgeRetrievalSettingsType$outboundSchema;
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
/** @internal */
|
|
1290
|
-
export const UpdateKnowledgeRetrievalSettingsProvider$inboundSchema:
|
|
1291
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeRetrievalSettingsProvider> = z
|
|
1292
|
-
.nativeEnum(UpdateKnowledgeRetrievalSettingsProvider);
|
|
1293
|
-
|
|
1294
|
-
/** @internal */
|
|
1295
|
-
export const UpdateKnowledgeRetrievalSettingsProvider$outboundSchema:
|
|
1296
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeRetrievalSettingsProvider> =
|
|
1297
|
-
UpdateKnowledgeRetrievalSettingsProvider$inboundSchema;
|
|
1298
|
-
|
|
1299
|
-
/**
|
|
1300
|
-
* @internal
|
|
1301
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1302
|
-
*/
|
|
1303
|
-
export namespace UpdateKnowledgeRetrievalSettingsProvider$ {
|
|
1304
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsProvider$inboundSchema` instead. */
|
|
1305
|
-
export const inboundSchema =
|
|
1306
|
-
UpdateKnowledgeRetrievalSettingsProvider$inboundSchema;
|
|
1307
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsProvider$outboundSchema` instead. */
|
|
1308
|
-
export const outboundSchema =
|
|
1309
|
-
UpdateKnowledgeRetrievalSettingsProvider$outboundSchema;
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
/** @internal */
|
|
1313
|
-
export const UpdateKnowledgeRetrievalSettingsModelType$inboundSchema:
|
|
1314
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeRetrievalSettingsModelType> = z
|
|
1315
|
-
.nativeEnum(UpdateKnowledgeRetrievalSettingsModelType);
|
|
1316
|
-
|
|
1317
|
-
/** @internal */
|
|
1318
|
-
export const UpdateKnowledgeRetrievalSettingsModelType$outboundSchema:
|
|
1319
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeRetrievalSettingsModelType> =
|
|
1320
|
-
UpdateKnowledgeRetrievalSettingsModelType$inboundSchema;
|
|
1321
|
-
|
|
1322
|
-
/**
|
|
1323
|
-
* @internal
|
|
1324
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1325
|
-
*/
|
|
1326
|
-
export namespace UpdateKnowledgeRetrievalSettingsModelType$ {
|
|
1327
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsModelType$inboundSchema` instead. */
|
|
1328
|
-
export const inboundSchema =
|
|
1329
|
-
UpdateKnowledgeRetrievalSettingsModelType$inboundSchema;
|
|
1330
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsModelType$outboundSchema` instead. */
|
|
1331
|
-
export const outboundSchema =
|
|
1332
|
-
UpdateKnowledgeRetrievalSettingsModelType$outboundSchema;
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
/** @internal */
|
|
1336
|
-
export const UpdateKnowledgeRetrievalSettingsModelParameters$inboundSchema:
|
|
1337
|
-
z.ZodType<
|
|
1338
|
-
UpdateKnowledgeRetrievalSettingsModelParameters,
|
|
1339
|
-
z.ZodTypeDef,
|
|
1340
|
-
unknown
|
|
1341
|
-
> = z.object({
|
|
1342
|
-
threshold: z.number().optional(),
|
|
1343
|
-
});
|
|
1344
|
-
|
|
1345
|
-
/** @internal */
|
|
1346
|
-
export type UpdateKnowledgeRetrievalSettingsModelParameters$Outbound = {
|
|
1347
|
-
threshold?: number | undefined;
|
|
1348
|
-
};
|
|
1349
|
-
|
|
1350
|
-
/** @internal */
|
|
1351
|
-
export const UpdateKnowledgeRetrievalSettingsModelParameters$outboundSchema:
|
|
1352
|
-
z.ZodType<
|
|
1353
|
-
UpdateKnowledgeRetrievalSettingsModelParameters$Outbound,
|
|
1354
|
-
z.ZodTypeDef,
|
|
1355
|
-
UpdateKnowledgeRetrievalSettingsModelParameters
|
|
1356
|
-
> = z.object({
|
|
1357
|
-
threshold: z.number().optional(),
|
|
1358
|
-
});
|
|
1359
|
-
|
|
1360
|
-
/**
|
|
1361
|
-
* @internal
|
|
1362
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1363
|
-
*/
|
|
1364
|
-
export namespace UpdateKnowledgeRetrievalSettingsModelParameters$ {
|
|
1365
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsModelParameters$inboundSchema` instead. */
|
|
1366
|
-
export const inboundSchema =
|
|
1367
|
-
UpdateKnowledgeRetrievalSettingsModelParameters$inboundSchema;
|
|
1368
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsModelParameters$outboundSchema` instead. */
|
|
1369
|
-
export const outboundSchema =
|
|
1370
|
-
UpdateKnowledgeRetrievalSettingsModelParameters$outboundSchema;
|
|
1371
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsModelParameters$Outbound` instead. */
|
|
1372
|
-
export type Outbound =
|
|
1373
|
-
UpdateKnowledgeRetrievalSettingsModelParameters$Outbound;
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
export function updateKnowledgeRetrievalSettingsModelParametersToJSON(
|
|
1377
|
-
updateKnowledgeRetrievalSettingsModelParameters:
|
|
1378
|
-
UpdateKnowledgeRetrievalSettingsModelParameters,
|
|
1379
|
-
): string {
|
|
1380
|
-
return JSON.stringify(
|
|
1381
|
-
UpdateKnowledgeRetrievalSettingsModelParameters$outboundSchema.parse(
|
|
1382
|
-
updateKnowledgeRetrievalSettingsModelParameters,
|
|
1383
|
-
),
|
|
1384
|
-
);
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
export function updateKnowledgeRetrievalSettingsModelParametersFromJSON(
|
|
1388
|
-
jsonString: string,
|
|
1389
|
-
): SafeParseResult<
|
|
1390
|
-
UpdateKnowledgeRetrievalSettingsModelParameters,
|
|
1391
|
-
SDKValidationError
|
|
1392
|
-
> {
|
|
1393
|
-
return safeParse(
|
|
1394
|
-
jsonString,
|
|
1395
|
-
(x) =>
|
|
1396
|
-
UpdateKnowledgeRetrievalSettingsModelParameters$inboundSchema.parse(
|
|
1397
|
-
JSON.parse(x),
|
|
1398
|
-
),
|
|
1399
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsModelParameters' from JSON`,
|
|
1400
|
-
);
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
/** @internal */
|
|
1404
|
-
export const UpdateKnowledgeRetrievalSettingsRerankConfig$inboundSchema:
|
|
1405
|
-
z.ZodType<
|
|
1406
|
-
UpdateKnowledgeRetrievalSettingsRerankConfig,
|
|
1407
|
-
z.ZodTypeDef,
|
|
1408
|
-
unknown
|
|
1409
|
-
> = z.object({
|
|
1410
|
-
enabled: z.boolean().optional(),
|
|
1411
|
-
provider: UpdateKnowledgeRetrievalSettingsProvider$inboundSchema.optional(),
|
|
1412
|
-
model: z.string().optional(),
|
|
1413
|
-
model_db_id: z.string().optional(),
|
|
1414
|
-
model_type: UpdateKnowledgeRetrievalSettingsModelType$inboundSchema
|
|
1415
|
-
.optional(),
|
|
1416
|
-
model_parameters: z.lazy(() =>
|
|
1417
|
-
UpdateKnowledgeRetrievalSettingsModelParameters$inboundSchema
|
|
1418
|
-
).optional(),
|
|
1419
|
-
}).transform((v) => {
|
|
1420
|
-
return remap$(v, {
|
|
1421
|
-
"model_db_id": "modelDbId",
|
|
1422
|
-
"model_type": "modelType",
|
|
1423
|
-
"model_parameters": "modelParameters",
|
|
1424
|
-
});
|
|
1425
|
-
});
|
|
1426
|
-
|
|
1427
|
-
/** @internal */
|
|
1428
|
-
export type UpdateKnowledgeRetrievalSettingsRerankConfig$Outbound = {
|
|
1429
|
-
enabled?: boolean | undefined;
|
|
1430
|
-
provider?: string | undefined;
|
|
1431
|
-
model?: string | undefined;
|
|
1432
|
-
model_db_id?: string | undefined;
|
|
1433
|
-
model_type?: string | undefined;
|
|
1434
|
-
model_parameters?:
|
|
1435
|
-
| UpdateKnowledgeRetrievalSettingsModelParameters$Outbound
|
|
1436
|
-
| undefined;
|
|
1437
|
-
};
|
|
1438
|
-
|
|
1439
|
-
/** @internal */
|
|
1440
|
-
export const UpdateKnowledgeRetrievalSettingsRerankConfig$outboundSchema:
|
|
1441
|
-
z.ZodType<
|
|
1442
|
-
UpdateKnowledgeRetrievalSettingsRerankConfig$Outbound,
|
|
1443
|
-
z.ZodTypeDef,
|
|
1444
|
-
UpdateKnowledgeRetrievalSettingsRerankConfig
|
|
1445
|
-
> = z.object({
|
|
1446
|
-
enabled: z.boolean().optional(),
|
|
1447
|
-
provider: UpdateKnowledgeRetrievalSettingsProvider$outboundSchema
|
|
1448
|
-
.optional(),
|
|
1449
|
-
model: z.string().optional(),
|
|
1450
|
-
modelDbId: z.string().optional(),
|
|
1451
|
-
modelType: UpdateKnowledgeRetrievalSettingsModelType$outboundSchema
|
|
1452
|
-
.optional(),
|
|
1453
|
-
modelParameters: z.lazy(() =>
|
|
1454
|
-
UpdateKnowledgeRetrievalSettingsModelParameters$outboundSchema
|
|
1455
|
-
).optional(),
|
|
1456
|
-
}).transform((v) => {
|
|
1457
|
-
return remap$(v, {
|
|
1458
|
-
modelDbId: "model_db_id",
|
|
1459
|
-
modelType: "model_type",
|
|
1460
|
-
modelParameters: "model_parameters",
|
|
1461
|
-
});
|
|
1462
|
-
});
|
|
1463
|
-
|
|
1464
|
-
/**
|
|
1465
|
-
* @internal
|
|
1466
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1467
|
-
*/
|
|
1468
|
-
export namespace UpdateKnowledgeRetrievalSettingsRerankConfig$ {
|
|
1469
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsRerankConfig$inboundSchema` instead. */
|
|
1470
|
-
export const inboundSchema =
|
|
1471
|
-
UpdateKnowledgeRetrievalSettingsRerankConfig$inboundSchema;
|
|
1472
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsRerankConfig$outboundSchema` instead. */
|
|
1473
|
-
export const outboundSchema =
|
|
1474
|
-
UpdateKnowledgeRetrievalSettingsRerankConfig$outboundSchema;
|
|
1475
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsRerankConfig$Outbound` instead. */
|
|
1476
|
-
export type Outbound = UpdateKnowledgeRetrievalSettingsRerankConfig$Outbound;
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
export function updateKnowledgeRetrievalSettingsRerankConfigToJSON(
|
|
1480
|
-
updateKnowledgeRetrievalSettingsRerankConfig:
|
|
1481
|
-
UpdateKnowledgeRetrievalSettingsRerankConfig,
|
|
1482
|
-
): string {
|
|
1483
|
-
return JSON.stringify(
|
|
1484
|
-
UpdateKnowledgeRetrievalSettingsRerankConfig$outboundSchema.parse(
|
|
1485
|
-
updateKnowledgeRetrievalSettingsRerankConfig,
|
|
1486
|
-
),
|
|
1487
|
-
);
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
export function updateKnowledgeRetrievalSettingsRerankConfigFromJSON(
|
|
1491
|
-
jsonString: string,
|
|
1492
|
-
): SafeParseResult<
|
|
1493
|
-
UpdateKnowledgeRetrievalSettingsRerankConfig,
|
|
1494
|
-
SDKValidationError
|
|
1495
|
-
> {
|
|
1496
|
-
return safeParse(
|
|
1497
|
-
jsonString,
|
|
1498
|
-
(x) =>
|
|
1499
|
-
UpdateKnowledgeRetrievalSettingsRerankConfig$inboundSchema.parse(
|
|
1500
|
-
JSON.parse(x),
|
|
1501
|
-
),
|
|
1502
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsRerankConfig' from JSON`,
|
|
1503
|
-
);
|
|
1504
|
-
}
|
|
1505
|
-
|
|
1506
|
-
/** @internal */
|
|
1507
|
-
export const UpdateKnowledgeRetrievalSettings1$inboundSchema: z.ZodType<
|
|
1508
|
-
UpdateKnowledgeRetrievalSettings1,
|
|
1509
|
-
z.ZodTypeDef,
|
|
1510
|
-
unknown
|
|
1511
|
-
> = z.object({
|
|
1512
|
-
type: UpdateKnowledgeRetrievalSettingsType$inboundSchema,
|
|
1513
|
-
top_k: z.number().int().default(5),
|
|
1514
|
-
threshold: z.number().default(0),
|
|
1515
|
-
rerank_config: z.nullable(
|
|
1516
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettingsRerankConfig$inboundSchema),
|
|
1517
|
-
).optional(),
|
|
1518
|
-
}).transform((v) => {
|
|
1519
|
-
return remap$(v, {
|
|
1520
|
-
"top_k": "topK",
|
|
1521
|
-
"rerank_config": "rerankConfig",
|
|
1522
|
-
});
|
|
1523
|
-
});
|
|
1524
|
-
|
|
1525
|
-
/** @internal */
|
|
1526
|
-
export type UpdateKnowledgeRetrievalSettings1$Outbound = {
|
|
1527
|
-
type: string;
|
|
1528
|
-
top_k: number;
|
|
1529
|
-
threshold: number;
|
|
1530
|
-
rerank_config?:
|
|
1531
|
-
| UpdateKnowledgeRetrievalSettingsRerankConfig$Outbound
|
|
1532
|
-
| null
|
|
1533
|
-
| undefined;
|
|
1534
|
-
};
|
|
1535
|
-
|
|
1536
|
-
/** @internal */
|
|
1537
|
-
export const UpdateKnowledgeRetrievalSettings1$outboundSchema: z.ZodType<
|
|
1538
|
-
UpdateKnowledgeRetrievalSettings1$Outbound,
|
|
1539
|
-
z.ZodTypeDef,
|
|
1540
|
-
UpdateKnowledgeRetrievalSettings1
|
|
1541
|
-
> = z.object({
|
|
1542
|
-
type: UpdateKnowledgeRetrievalSettingsType$outboundSchema,
|
|
1543
|
-
topK: z.number().int().default(5),
|
|
1544
|
-
threshold: z.number().default(0),
|
|
1545
|
-
rerankConfig: z.nullable(
|
|
1546
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettingsRerankConfig$outboundSchema),
|
|
1547
|
-
).optional(),
|
|
1548
|
-
}).transform((v) => {
|
|
1549
|
-
return remap$(v, {
|
|
1550
|
-
topK: "top_k",
|
|
1551
|
-
rerankConfig: "rerank_config",
|
|
1552
|
-
});
|
|
1553
|
-
});
|
|
1554
|
-
|
|
1555
|
-
/**
|
|
1556
|
-
* @internal
|
|
1557
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1558
|
-
*/
|
|
1559
|
-
export namespace UpdateKnowledgeRetrievalSettings1$ {
|
|
1560
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettings1$inboundSchema` instead. */
|
|
1561
|
-
export const inboundSchema = UpdateKnowledgeRetrievalSettings1$inboundSchema;
|
|
1562
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettings1$outboundSchema` instead. */
|
|
1563
|
-
export const outboundSchema =
|
|
1564
|
-
UpdateKnowledgeRetrievalSettings1$outboundSchema;
|
|
1565
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettings1$Outbound` instead. */
|
|
1566
|
-
export type Outbound = UpdateKnowledgeRetrievalSettings1$Outbound;
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
export function updateKnowledgeRetrievalSettings1ToJSON(
|
|
1570
|
-
updateKnowledgeRetrievalSettings1: UpdateKnowledgeRetrievalSettings1,
|
|
1571
|
-
): string {
|
|
1572
|
-
return JSON.stringify(
|
|
1573
|
-
UpdateKnowledgeRetrievalSettings1$outboundSchema.parse(
|
|
1574
|
-
updateKnowledgeRetrievalSettings1,
|
|
1575
|
-
),
|
|
1576
|
-
);
|
|
1577
|
-
}
|
|
1578
|
-
|
|
1579
|
-
export function updateKnowledgeRetrievalSettings1FromJSON(
|
|
1580
|
-
jsonString: string,
|
|
1581
|
-
): SafeParseResult<UpdateKnowledgeRetrievalSettings1, SDKValidationError> {
|
|
1582
|
-
return safeParse(
|
|
1583
|
-
jsonString,
|
|
1584
|
-
(x) => UpdateKnowledgeRetrievalSettings1$inboundSchema.parse(JSON.parse(x)),
|
|
1585
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettings1' from JSON`,
|
|
1586
|
-
);
|
|
1587
|
-
}
|
|
1588
|
-
|
|
1589
|
-
/** @internal */
|
|
1590
|
-
export const UpdateKnowledgeRetrievalSettings$inboundSchema: z.ZodType<
|
|
1591
|
-
UpdateKnowledgeRetrievalSettings,
|
|
1592
|
-
z.ZodTypeDef,
|
|
1593
|
-
unknown
|
|
1594
|
-
> = z.union([
|
|
1595
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettings1$inboundSchema),
|
|
1596
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettings2$inboundSchema),
|
|
1597
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettings3$inboundSchema),
|
|
1598
|
-
]);
|
|
1599
|
-
|
|
1600
|
-
/** @internal */
|
|
1601
|
-
export type UpdateKnowledgeRetrievalSettings$Outbound =
|
|
1602
|
-
| UpdateKnowledgeRetrievalSettings1$Outbound
|
|
1603
|
-
| UpdateKnowledgeRetrievalSettings2$Outbound
|
|
1604
|
-
| UpdateKnowledgeRetrievalSettings3$Outbound;
|
|
1605
|
-
|
|
1606
|
-
/** @internal */
|
|
1607
|
-
export const UpdateKnowledgeRetrievalSettings$outboundSchema: z.ZodType<
|
|
1608
|
-
UpdateKnowledgeRetrievalSettings$Outbound,
|
|
1609
|
-
z.ZodTypeDef,
|
|
1610
|
-
UpdateKnowledgeRetrievalSettings
|
|
1611
|
-
> = z.union([
|
|
1612
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettings1$outboundSchema),
|
|
1613
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettings2$outboundSchema),
|
|
1614
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettings3$outboundSchema),
|
|
1615
|
-
]);
|
|
1616
|
-
|
|
1617
|
-
/**
|
|
1618
|
-
* @internal
|
|
1619
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1620
|
-
*/
|
|
1621
|
-
export namespace UpdateKnowledgeRetrievalSettings$ {
|
|
1622
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettings$inboundSchema` instead. */
|
|
1623
|
-
export const inboundSchema = UpdateKnowledgeRetrievalSettings$inboundSchema;
|
|
1624
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettings$outboundSchema` instead. */
|
|
1625
|
-
export const outboundSchema = UpdateKnowledgeRetrievalSettings$outboundSchema;
|
|
1626
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettings$Outbound` instead. */
|
|
1627
|
-
export type Outbound = UpdateKnowledgeRetrievalSettings$Outbound;
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
|
-
export function updateKnowledgeRetrievalSettingsToJSON(
|
|
1631
|
-
updateKnowledgeRetrievalSettings: UpdateKnowledgeRetrievalSettings,
|
|
1632
|
-
): string {
|
|
1633
|
-
return JSON.stringify(
|
|
1634
|
-
UpdateKnowledgeRetrievalSettings$outboundSchema.parse(
|
|
1635
|
-
updateKnowledgeRetrievalSettings,
|
|
1636
|
-
),
|
|
1637
|
-
);
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1640
|
-
export function updateKnowledgeRetrievalSettingsFromJSON(
|
|
1641
|
-
jsonString: string,
|
|
1642
|
-
): SafeParseResult<UpdateKnowledgeRetrievalSettings, SDKValidationError> {
|
|
1643
|
-
return safeParse(
|
|
1644
|
-
jsonString,
|
|
1645
|
-
(x) => UpdateKnowledgeRetrievalSettings$inboundSchema.parse(JSON.parse(x)),
|
|
1646
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettings' from JSON`,
|
|
1647
|
-
);
|
|
1648
|
-
}
|
|
1649
|
-
|
|
1650
|
-
/** @internal */
|
|
1651
|
-
export const UpdateKnowledgeRequestBody$inboundSchema: z.ZodType<
|
|
1652
|
-
UpdateKnowledgeRequestBody,
|
|
1653
|
-
z.ZodTypeDef,
|
|
1654
|
-
unknown
|
|
1655
|
-
> = z.object({
|
|
1656
|
-
description: z.string().optional(),
|
|
1657
|
-
model: z.string().optional(),
|
|
1658
|
-
path: z.string().optional(),
|
|
1659
|
-
retrieval_settings: z.union([
|
|
1660
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettings1$inboundSchema),
|
|
1661
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettings2$inboundSchema),
|
|
1662
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettings3$inboundSchema),
|
|
1663
|
-
]).optional(),
|
|
1664
|
-
}).transform((v) => {
|
|
1665
|
-
return remap$(v, {
|
|
1666
|
-
"retrieval_settings": "retrievalSettings",
|
|
1667
|
-
});
|
|
1668
|
-
});
|
|
1669
|
-
|
|
1670
|
-
/** @internal */
|
|
1671
|
-
export type UpdateKnowledgeRequestBody$Outbound = {
|
|
1672
|
-
description?: string | undefined;
|
|
1673
|
-
model?: string | undefined;
|
|
1674
|
-
path?: string | undefined;
|
|
1675
|
-
retrieval_settings?:
|
|
1676
|
-
| UpdateKnowledgeRetrievalSettings1$Outbound
|
|
1677
|
-
| UpdateKnowledgeRetrievalSettings2$Outbound
|
|
1678
|
-
| UpdateKnowledgeRetrievalSettings3$Outbound
|
|
1679
|
-
| undefined;
|
|
1680
|
-
};
|
|
1681
|
-
|
|
1682
|
-
/** @internal */
|
|
1683
|
-
export const UpdateKnowledgeRequestBody$outboundSchema: z.ZodType<
|
|
1684
|
-
UpdateKnowledgeRequestBody$Outbound,
|
|
1685
|
-
z.ZodTypeDef,
|
|
1686
|
-
UpdateKnowledgeRequestBody
|
|
1687
|
-
> = z.object({
|
|
1688
|
-
description: z.string().optional(),
|
|
1689
|
-
model: z.string().optional(),
|
|
1690
|
-
path: z.string().optional(),
|
|
1691
|
-
retrievalSettings: z.union([
|
|
1692
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettings1$outboundSchema),
|
|
1693
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettings2$outboundSchema),
|
|
1694
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettings3$outboundSchema),
|
|
1695
|
-
]).optional(),
|
|
1696
|
-
}).transform((v) => {
|
|
1697
|
-
return remap$(v, {
|
|
1698
|
-
retrievalSettings: "retrieval_settings",
|
|
1699
|
-
});
|
|
1700
|
-
});
|
|
1701
|
-
|
|
1702
|
-
/**
|
|
1703
|
-
* @internal
|
|
1704
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1705
|
-
*/
|
|
1706
|
-
export namespace UpdateKnowledgeRequestBody$ {
|
|
1707
|
-
/** @deprecated use `UpdateKnowledgeRequestBody$inboundSchema` instead. */
|
|
1708
|
-
export const inboundSchema = UpdateKnowledgeRequestBody$inboundSchema;
|
|
1709
|
-
/** @deprecated use `UpdateKnowledgeRequestBody$outboundSchema` instead. */
|
|
1710
|
-
export const outboundSchema = UpdateKnowledgeRequestBody$outboundSchema;
|
|
1711
|
-
/** @deprecated use `UpdateKnowledgeRequestBody$Outbound` instead. */
|
|
1712
|
-
export type Outbound = UpdateKnowledgeRequestBody$Outbound;
|
|
1713
|
-
}
|
|
1714
|
-
|
|
1715
|
-
export function updateKnowledgeRequestBodyToJSON(
|
|
1716
|
-
updateKnowledgeRequestBody: UpdateKnowledgeRequestBody,
|
|
1717
|
-
): string {
|
|
1718
|
-
return JSON.stringify(
|
|
1719
|
-
UpdateKnowledgeRequestBody$outboundSchema.parse(updateKnowledgeRequestBody),
|
|
1720
|
-
);
|
|
1721
|
-
}
|
|
1722
|
-
|
|
1723
|
-
export function updateKnowledgeRequestBodyFromJSON(
|
|
1724
|
-
jsonString: string,
|
|
1725
|
-
): SafeParseResult<UpdateKnowledgeRequestBody, SDKValidationError> {
|
|
1726
|
-
return safeParse(
|
|
1727
|
-
jsonString,
|
|
1728
|
-
(x) => UpdateKnowledgeRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
1729
|
-
`Failed to parse 'UpdateKnowledgeRequestBody' from JSON`,
|
|
1730
|
-
);
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1733
|
-
/** @internal */
|
|
1734
|
-
export const UpdateKnowledgeRequest$inboundSchema: z.ZodType<
|
|
1735
|
-
UpdateKnowledgeRequest,
|
|
1736
|
-
z.ZodTypeDef,
|
|
1737
|
-
unknown
|
|
1738
|
-
> = z.object({
|
|
1739
|
-
knowledge_id: z.string(),
|
|
1740
|
-
RequestBody: z.lazy(() => UpdateKnowledgeRequestBody$inboundSchema),
|
|
1741
|
-
}).transform((v) => {
|
|
1742
|
-
return remap$(v, {
|
|
1743
|
-
"knowledge_id": "knowledgeId",
|
|
1744
|
-
"RequestBody": "requestBody",
|
|
1745
|
-
});
|
|
1746
|
-
});
|
|
1747
|
-
|
|
1748
|
-
/** @internal */
|
|
1749
|
-
export type UpdateKnowledgeRequest$Outbound = {
|
|
1750
|
-
knowledge_id: string;
|
|
1751
|
-
RequestBody: UpdateKnowledgeRequestBody$Outbound;
|
|
1752
|
-
};
|
|
1753
|
-
|
|
1754
|
-
/** @internal */
|
|
1755
|
-
export const UpdateKnowledgeRequest$outboundSchema: z.ZodType<
|
|
1756
|
-
UpdateKnowledgeRequest$Outbound,
|
|
1757
|
-
z.ZodTypeDef,
|
|
1758
|
-
UpdateKnowledgeRequest
|
|
1759
|
-
> = z.object({
|
|
1760
|
-
knowledgeId: z.string(),
|
|
1761
|
-
requestBody: z.lazy(() => UpdateKnowledgeRequestBody$outboundSchema),
|
|
1762
|
-
}).transform((v) => {
|
|
1763
|
-
return remap$(v, {
|
|
1764
|
-
knowledgeId: "knowledge_id",
|
|
1765
|
-
requestBody: "RequestBody",
|
|
1766
|
-
});
|
|
1767
|
-
});
|
|
1768
|
-
|
|
1769
|
-
/**
|
|
1770
|
-
* @internal
|
|
1771
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1772
|
-
*/
|
|
1773
|
-
export namespace UpdateKnowledgeRequest$ {
|
|
1774
|
-
/** @deprecated use `UpdateKnowledgeRequest$inboundSchema` instead. */
|
|
1775
|
-
export const inboundSchema = UpdateKnowledgeRequest$inboundSchema;
|
|
1776
|
-
/** @deprecated use `UpdateKnowledgeRequest$outboundSchema` instead. */
|
|
1777
|
-
export const outboundSchema = UpdateKnowledgeRequest$outboundSchema;
|
|
1778
|
-
/** @deprecated use `UpdateKnowledgeRequest$Outbound` instead. */
|
|
1779
|
-
export type Outbound = UpdateKnowledgeRequest$Outbound;
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
export function updateKnowledgeRequestToJSON(
|
|
1783
|
-
updateKnowledgeRequest: UpdateKnowledgeRequest,
|
|
1784
|
-
): string {
|
|
1785
|
-
return JSON.stringify(
|
|
1786
|
-
UpdateKnowledgeRequest$outboundSchema.parse(updateKnowledgeRequest),
|
|
1787
|
-
);
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
export function updateKnowledgeRequestFromJSON(
|
|
1791
|
-
jsonString: string,
|
|
1792
|
-
): SafeParseResult<UpdateKnowledgeRequest, SDKValidationError> {
|
|
1793
|
-
return safeParse(
|
|
1794
|
-
jsonString,
|
|
1795
|
-
(x) => UpdateKnowledgeRequest$inboundSchema.parse(JSON.parse(x)),
|
|
1796
|
-
`Failed to parse 'UpdateKnowledgeRequest' from JSON`,
|
|
1797
|
-
);
|
|
1798
|
-
}
|
|
1799
|
-
|
|
1800
|
-
/** @internal */
|
|
1801
|
-
export const UpdateKnowledgeMetadata$inboundSchema: z.ZodType<
|
|
1802
|
-
UpdateKnowledgeMetadata,
|
|
1803
|
-
z.ZodTypeDef,
|
|
1804
|
-
unknown
|
|
1805
|
-
> = z.object({
|
|
1806
|
-
word_count: z.number().int().default(0),
|
|
1807
|
-
document_count: z.number().int().default(0),
|
|
1808
|
-
sentences_count: z.number().int().default(0),
|
|
1809
|
-
}).transform((v) => {
|
|
1810
|
-
return remap$(v, {
|
|
1811
|
-
"word_count": "wordCount",
|
|
1812
|
-
"document_count": "documentCount",
|
|
1813
|
-
"sentences_count": "sentencesCount",
|
|
1814
|
-
});
|
|
1815
|
-
});
|
|
1816
|
-
|
|
1817
|
-
/** @internal */
|
|
1818
|
-
export type UpdateKnowledgeMetadata$Outbound = {
|
|
1819
|
-
word_count: number;
|
|
1820
|
-
document_count: number;
|
|
1821
|
-
sentences_count: number;
|
|
1822
|
-
};
|
|
1823
|
-
|
|
1824
|
-
/** @internal */
|
|
1825
|
-
export const UpdateKnowledgeMetadata$outboundSchema: z.ZodType<
|
|
1826
|
-
UpdateKnowledgeMetadata$Outbound,
|
|
1827
|
-
z.ZodTypeDef,
|
|
1828
|
-
UpdateKnowledgeMetadata
|
|
1829
|
-
> = z.object({
|
|
1830
|
-
wordCount: z.number().int().default(0),
|
|
1831
|
-
documentCount: z.number().int().default(0),
|
|
1832
|
-
sentencesCount: z.number().int().default(0),
|
|
1833
|
-
}).transform((v) => {
|
|
1834
|
-
return remap$(v, {
|
|
1835
|
-
wordCount: "word_count",
|
|
1836
|
-
documentCount: "document_count",
|
|
1837
|
-
sentencesCount: "sentences_count",
|
|
1838
|
-
});
|
|
1839
|
-
});
|
|
1840
|
-
|
|
1841
|
-
/**
|
|
1842
|
-
* @internal
|
|
1843
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1844
|
-
*/
|
|
1845
|
-
export namespace UpdateKnowledgeMetadata$ {
|
|
1846
|
-
/** @deprecated use `UpdateKnowledgeMetadata$inboundSchema` instead. */
|
|
1847
|
-
export const inboundSchema = UpdateKnowledgeMetadata$inboundSchema;
|
|
1848
|
-
/** @deprecated use `UpdateKnowledgeMetadata$outboundSchema` instead. */
|
|
1849
|
-
export const outboundSchema = UpdateKnowledgeMetadata$outboundSchema;
|
|
1850
|
-
/** @deprecated use `UpdateKnowledgeMetadata$Outbound` instead. */
|
|
1851
|
-
export type Outbound = UpdateKnowledgeMetadata$Outbound;
|
|
1852
|
-
}
|
|
1853
|
-
|
|
1854
|
-
export function updateKnowledgeMetadataToJSON(
|
|
1855
|
-
updateKnowledgeMetadata: UpdateKnowledgeMetadata,
|
|
1856
|
-
): string {
|
|
1857
|
-
return JSON.stringify(
|
|
1858
|
-
UpdateKnowledgeMetadata$outboundSchema.parse(updateKnowledgeMetadata),
|
|
1859
|
-
);
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
export function updateKnowledgeMetadataFromJSON(
|
|
1863
|
-
jsonString: string,
|
|
1864
|
-
): SafeParseResult<UpdateKnowledgeMetadata, SDKValidationError> {
|
|
1865
|
-
return safeParse(
|
|
1866
|
-
jsonString,
|
|
1867
|
-
(x) => UpdateKnowledgeMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
1868
|
-
`Failed to parse 'UpdateKnowledgeMetadata' from JSON`,
|
|
1869
|
-
);
|
|
1870
|
-
}
|
|
1871
|
-
|
|
1872
|
-
/** @internal */
|
|
1873
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType$inboundSchema:
|
|
1874
|
-
z.ZodNativeEnum<
|
|
1875
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType
|
|
1876
|
-
> = z.nativeEnum(
|
|
1877
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType,
|
|
1878
|
-
);
|
|
1879
|
-
|
|
1880
|
-
/** @internal */
|
|
1881
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType$outboundSchema:
|
|
1882
|
-
z.ZodNativeEnum<
|
|
1883
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType
|
|
1884
|
-
> =
|
|
1885
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType$inboundSchema;
|
|
1886
|
-
|
|
1887
|
-
/**
|
|
1888
|
-
* @internal
|
|
1889
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1890
|
-
*/
|
|
1891
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType$ {
|
|
1892
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType$inboundSchema` instead. */
|
|
1893
|
-
export const inboundSchema =
|
|
1894
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType$inboundSchema;
|
|
1895
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType$outboundSchema` instead. */
|
|
1896
|
-
export const outboundSchema =
|
|
1897
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType$outboundSchema;
|
|
1898
|
-
}
|
|
1899
|
-
|
|
1900
|
-
/** @internal */
|
|
1901
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider$inboundSchema:
|
|
1902
|
-
z.ZodNativeEnum<
|
|
1903
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider
|
|
1904
|
-
> = z.nativeEnum(
|
|
1905
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider,
|
|
1906
|
-
);
|
|
1907
|
-
|
|
1908
|
-
/** @internal */
|
|
1909
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider$outboundSchema:
|
|
1910
|
-
z.ZodNativeEnum<
|
|
1911
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider
|
|
1912
|
-
> =
|
|
1913
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider$inboundSchema;
|
|
1914
|
-
|
|
1915
|
-
/**
|
|
1916
|
-
* @internal
|
|
1917
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1918
|
-
*/
|
|
1919
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider$ {
|
|
1920
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider$inboundSchema` instead. */
|
|
1921
|
-
export const inboundSchema =
|
|
1922
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider$inboundSchema;
|
|
1923
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider$outboundSchema` instead. */
|
|
1924
|
-
export const outboundSchema =
|
|
1925
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider$outboundSchema;
|
|
1926
|
-
}
|
|
1927
|
-
|
|
1928
|
-
/** @internal */
|
|
1929
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType$inboundSchema:
|
|
1930
|
-
z.ZodNativeEnum<
|
|
1931
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType
|
|
1932
|
-
> = z.nativeEnum(
|
|
1933
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType,
|
|
1934
|
-
);
|
|
1935
|
-
|
|
1936
|
-
/** @internal */
|
|
1937
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType$outboundSchema:
|
|
1938
|
-
z.ZodNativeEnum<
|
|
1939
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType
|
|
1940
|
-
> =
|
|
1941
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType$inboundSchema;
|
|
1942
|
-
|
|
1943
|
-
/**
|
|
1944
|
-
* @internal
|
|
1945
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1946
|
-
*/
|
|
1947
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType$ {
|
|
1948
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType$inboundSchema` instead. */
|
|
1949
|
-
export const inboundSchema =
|
|
1950
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType$inboundSchema;
|
|
1951
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType$outboundSchema` instead. */
|
|
1952
|
-
export const outboundSchema =
|
|
1953
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType$outboundSchema;
|
|
1954
|
-
}
|
|
1955
|
-
|
|
1956
|
-
/** @internal */
|
|
1957
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$inboundSchema:
|
|
1958
|
-
z.ZodType<
|
|
1959
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters,
|
|
1960
|
-
z.ZodTypeDef,
|
|
1961
|
-
unknown
|
|
1962
|
-
> = z.object({
|
|
1963
|
-
threshold: z.number().optional(),
|
|
1964
|
-
});
|
|
1965
|
-
|
|
1966
|
-
/** @internal */
|
|
1967
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$Outbound =
|
|
1968
|
-
{
|
|
1969
|
-
threshold?: number | undefined;
|
|
1970
|
-
};
|
|
1971
|
-
|
|
1972
|
-
/** @internal */
|
|
1973
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$outboundSchema:
|
|
1974
|
-
z.ZodType<
|
|
1975
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$Outbound,
|
|
1976
|
-
z.ZodTypeDef,
|
|
1977
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters
|
|
1978
|
-
> = z.object({
|
|
1979
|
-
threshold: z.number().optional(),
|
|
1980
|
-
});
|
|
1981
|
-
|
|
1982
|
-
/**
|
|
1983
|
-
* @internal
|
|
1984
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1985
|
-
*/
|
|
1986
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$ {
|
|
1987
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$inboundSchema` instead. */
|
|
1988
|
-
export const inboundSchema =
|
|
1989
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$inboundSchema;
|
|
1990
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$outboundSchema` instead. */
|
|
1991
|
-
export const outboundSchema =
|
|
1992
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$outboundSchema;
|
|
1993
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$Outbound` instead. */
|
|
1994
|
-
export type Outbound =
|
|
1995
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$Outbound;
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
|
-
export function updateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParametersToJSON(
|
|
1999
|
-
updateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters:
|
|
2000
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters,
|
|
2001
|
-
): string {
|
|
2002
|
-
return JSON.stringify(
|
|
2003
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$outboundSchema
|
|
2004
|
-
.parse(
|
|
2005
|
-
updateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters,
|
|
2006
|
-
),
|
|
2007
|
-
);
|
|
2008
|
-
}
|
|
2009
|
-
|
|
2010
|
-
export function updateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParametersFromJSON(
|
|
2011
|
-
jsonString: string,
|
|
2012
|
-
): SafeParseResult<
|
|
2013
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters,
|
|
2014
|
-
SDKValidationError
|
|
2015
|
-
> {
|
|
2016
|
-
return safeParse(
|
|
2017
|
-
jsonString,
|
|
2018
|
-
(x) =>
|
|
2019
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$inboundSchema
|
|
2020
|
-
.parse(JSON.parse(x)),
|
|
2021
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters' from JSON`,
|
|
2022
|
-
);
|
|
2023
|
-
}
|
|
2024
|
-
|
|
2025
|
-
/** @internal */
|
|
2026
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$inboundSchema:
|
|
2027
|
-
z.ZodType<
|
|
2028
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig,
|
|
2029
|
-
z.ZodTypeDef,
|
|
2030
|
-
unknown
|
|
2031
|
-
> = z.object({
|
|
2032
|
-
enabled: z.boolean().optional(),
|
|
2033
|
-
provider:
|
|
2034
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider$inboundSchema
|
|
2035
|
-
.optional(),
|
|
2036
|
-
model: z.string().optional(),
|
|
2037
|
-
model_db_id: z.string().optional(),
|
|
2038
|
-
model_type:
|
|
2039
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType$inboundSchema
|
|
2040
|
-
.optional(),
|
|
2041
|
-
model_parameters: z.lazy(() =>
|
|
2042
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$inboundSchema
|
|
2043
|
-
).optional(),
|
|
2044
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
2045
|
-
}).transform((v) => {
|
|
2046
|
-
return remap$(v, {
|
|
2047
|
-
"model_db_id": "modelDbId",
|
|
2048
|
-
"model_type": "modelType",
|
|
2049
|
-
"model_parameters": "modelParameters",
|
|
2050
|
-
"integration_id": "integrationId",
|
|
2051
|
-
});
|
|
2052
|
-
});
|
|
2053
|
-
|
|
2054
|
-
/** @internal */
|
|
2055
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$Outbound =
|
|
2056
|
-
{
|
|
2057
|
-
enabled?: boolean | undefined;
|
|
2058
|
-
provider?: string | undefined;
|
|
2059
|
-
model?: string | undefined;
|
|
2060
|
-
model_db_id?: string | undefined;
|
|
2061
|
-
model_type?: string | undefined;
|
|
2062
|
-
model_parameters?:
|
|
2063
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$Outbound
|
|
2064
|
-
| undefined;
|
|
2065
|
-
integration_id?: string | null | undefined;
|
|
2066
|
-
};
|
|
2067
|
-
|
|
2068
|
-
/** @internal */
|
|
2069
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$outboundSchema:
|
|
2070
|
-
z.ZodType<
|
|
2071
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$Outbound,
|
|
2072
|
-
z.ZodTypeDef,
|
|
2073
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig
|
|
2074
|
-
> = z.object({
|
|
2075
|
-
enabled: z.boolean().optional(),
|
|
2076
|
-
provider:
|
|
2077
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONProvider$outboundSchema
|
|
2078
|
-
.optional(),
|
|
2079
|
-
model: z.string().optional(),
|
|
2080
|
-
modelDbId: z.string().optional(),
|
|
2081
|
-
modelType:
|
|
2082
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelType$outboundSchema
|
|
2083
|
-
.optional(),
|
|
2084
|
-
modelParameters: z.lazy(() =>
|
|
2085
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONModelParameters$outboundSchema
|
|
2086
|
-
).optional(),
|
|
2087
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
2088
|
-
}).transform((v) => {
|
|
2089
|
-
return remap$(v, {
|
|
2090
|
-
modelDbId: "model_db_id",
|
|
2091
|
-
modelType: "model_type",
|
|
2092
|
-
modelParameters: "model_parameters",
|
|
2093
|
-
integrationId: "integration_id",
|
|
2094
|
-
});
|
|
2095
|
-
});
|
|
2096
|
-
|
|
2097
|
-
/**
|
|
2098
|
-
* @internal
|
|
2099
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2100
|
-
*/
|
|
2101
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$ {
|
|
2102
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$inboundSchema` instead. */
|
|
2103
|
-
export const inboundSchema =
|
|
2104
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$inboundSchema;
|
|
2105
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$outboundSchema` instead. */
|
|
2106
|
-
export const outboundSchema =
|
|
2107
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$outboundSchema;
|
|
2108
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$Outbound` instead. */
|
|
2109
|
-
export type Outbound =
|
|
2110
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$Outbound;
|
|
2111
|
-
}
|
|
2112
|
-
|
|
2113
|
-
export function updateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfigToJSON(
|
|
2114
|
-
updateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig:
|
|
2115
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig,
|
|
2116
|
-
): string {
|
|
2117
|
-
return JSON.stringify(
|
|
2118
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$outboundSchema
|
|
2119
|
-
.parse(updateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig),
|
|
2120
|
-
);
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
|
-
export function updateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfigFromJSON(
|
|
2124
|
-
jsonString: string,
|
|
2125
|
-
): SafeParseResult<
|
|
2126
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig,
|
|
2127
|
-
SDKValidationError
|
|
2128
|
-
> {
|
|
2129
|
-
return safeParse(
|
|
2130
|
-
jsonString,
|
|
2131
|
-
(x) =>
|
|
2132
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$inboundSchema
|
|
2133
|
-
.parse(JSON.parse(x)),
|
|
2134
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig' from JSON`,
|
|
2135
|
-
);
|
|
2136
|
-
}
|
|
2137
|
-
|
|
2138
|
-
/** @internal */
|
|
2139
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledge3$inboundSchema:
|
|
2140
|
-
z.ZodType<UpdateKnowledgeRetrievalSettingsKnowledge3, z.ZodTypeDef, unknown> =
|
|
2141
|
-
z.object({
|
|
2142
|
-
type:
|
|
2143
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType$inboundSchema,
|
|
2144
|
-
top_k: z.number().int().default(5),
|
|
2145
|
-
threshold: z.number().default(0),
|
|
2146
|
-
rerank_config: z.nullable(
|
|
2147
|
-
z.lazy(() =>
|
|
2148
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$inboundSchema
|
|
2149
|
-
),
|
|
2150
|
-
).optional(),
|
|
2151
|
-
}).transform((v) => {
|
|
2152
|
-
return remap$(v, {
|
|
2153
|
-
"top_k": "topK",
|
|
2154
|
-
"rerank_config": "rerankConfig",
|
|
2155
|
-
});
|
|
2156
|
-
});
|
|
2157
|
-
|
|
2158
|
-
/** @internal */
|
|
2159
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledge3$Outbound = {
|
|
2160
|
-
type: string;
|
|
2161
|
-
top_k: number;
|
|
2162
|
-
threshold: number;
|
|
2163
|
-
rerank_config?:
|
|
2164
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$Outbound
|
|
2165
|
-
| null
|
|
2166
|
-
| undefined;
|
|
2167
|
-
};
|
|
2168
|
-
|
|
2169
|
-
/** @internal */
|
|
2170
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledge3$outboundSchema:
|
|
2171
|
-
z.ZodType<
|
|
2172
|
-
UpdateKnowledgeRetrievalSettingsKnowledge3$Outbound,
|
|
2173
|
-
z.ZodTypeDef,
|
|
2174
|
-
UpdateKnowledgeRetrievalSettingsKnowledge3
|
|
2175
|
-
> = z.object({
|
|
2176
|
-
type:
|
|
2177
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ApplicationJSONType$outboundSchema,
|
|
2178
|
-
topK: z.number().int().default(5),
|
|
2179
|
-
threshold: z.number().default(0),
|
|
2180
|
-
rerankConfig: z.nullable(
|
|
2181
|
-
z.lazy(() =>
|
|
2182
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200RerankConfig$outboundSchema
|
|
2183
|
-
),
|
|
2184
|
-
).optional(),
|
|
2185
|
-
}).transform((v) => {
|
|
2186
|
-
return remap$(v, {
|
|
2187
|
-
topK: "top_k",
|
|
2188
|
-
rerankConfig: "rerank_config",
|
|
2189
|
-
});
|
|
2190
|
-
});
|
|
2191
|
-
|
|
2192
|
-
/**
|
|
2193
|
-
* @internal
|
|
2194
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2195
|
-
*/
|
|
2196
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledge3$ {
|
|
2197
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledge3$inboundSchema` instead. */
|
|
2198
|
-
export const inboundSchema =
|
|
2199
|
-
UpdateKnowledgeRetrievalSettingsKnowledge3$inboundSchema;
|
|
2200
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledge3$outboundSchema` instead. */
|
|
2201
|
-
export const outboundSchema =
|
|
2202
|
-
UpdateKnowledgeRetrievalSettingsKnowledge3$outboundSchema;
|
|
2203
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledge3$Outbound` instead. */
|
|
2204
|
-
export type Outbound = UpdateKnowledgeRetrievalSettingsKnowledge3$Outbound;
|
|
2205
|
-
}
|
|
2206
|
-
|
|
2207
|
-
export function updateKnowledgeRetrievalSettingsKnowledge3ToJSON(
|
|
2208
|
-
updateKnowledgeRetrievalSettingsKnowledge3:
|
|
2209
|
-
UpdateKnowledgeRetrievalSettingsKnowledge3,
|
|
2210
|
-
): string {
|
|
2211
|
-
return JSON.stringify(
|
|
2212
|
-
UpdateKnowledgeRetrievalSettingsKnowledge3$outboundSchema.parse(
|
|
2213
|
-
updateKnowledgeRetrievalSettingsKnowledge3,
|
|
2214
|
-
),
|
|
2215
|
-
);
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
export function updateKnowledgeRetrievalSettingsKnowledge3FromJSON(
|
|
2219
|
-
jsonString: string,
|
|
2220
|
-
): SafeParseResult<
|
|
2221
|
-
UpdateKnowledgeRetrievalSettingsKnowledge3,
|
|
2222
|
-
SDKValidationError
|
|
2223
|
-
> {
|
|
2224
|
-
return safeParse(
|
|
2225
|
-
jsonString,
|
|
2226
|
-
(x) =>
|
|
2227
|
-
UpdateKnowledgeRetrievalSettingsKnowledge3$inboundSchema.parse(
|
|
2228
|
-
JSON.parse(x),
|
|
2229
|
-
),
|
|
2230
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsKnowledge3' from JSON`,
|
|
2231
|
-
);
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
/** @internal */
|
|
2235
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Type$inboundSchema:
|
|
2236
|
-
z.ZodNativeEnum<
|
|
2237
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Type
|
|
2238
|
-
> = z.nativeEnum(UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Type);
|
|
2239
|
-
|
|
2240
|
-
/** @internal */
|
|
2241
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Type$outboundSchema:
|
|
2242
|
-
z.ZodNativeEnum<
|
|
2243
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Type
|
|
2244
|
-
> = UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Type$inboundSchema;
|
|
2245
|
-
|
|
2246
|
-
/**
|
|
2247
|
-
* @internal
|
|
2248
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2249
|
-
*/
|
|
2250
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Type$ {
|
|
2251
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Type$inboundSchema` instead. */
|
|
2252
|
-
export const inboundSchema =
|
|
2253
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Type$inboundSchema;
|
|
2254
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Type$outboundSchema` instead. */
|
|
2255
|
-
export const outboundSchema =
|
|
2256
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Type$outboundSchema;
|
|
2257
|
-
}
|
|
2258
|
-
|
|
2259
|
-
/** @internal */
|
|
2260
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider$inboundSchema:
|
|
2261
|
-
z.ZodNativeEnum<
|
|
2262
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider
|
|
2263
|
-
> = z.nativeEnum(
|
|
2264
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider,
|
|
2265
|
-
);
|
|
2266
|
-
|
|
2267
|
-
/** @internal */
|
|
2268
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider$outboundSchema:
|
|
2269
|
-
z.ZodNativeEnum<
|
|
2270
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider
|
|
2271
|
-
> =
|
|
2272
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider$inboundSchema;
|
|
2273
|
-
|
|
2274
|
-
/**
|
|
2275
|
-
* @internal
|
|
2276
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2277
|
-
*/
|
|
2278
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider$ {
|
|
2279
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider$inboundSchema` instead. */
|
|
2280
|
-
export const inboundSchema =
|
|
2281
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider$inboundSchema;
|
|
2282
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider$outboundSchema` instead. */
|
|
2283
|
-
export const outboundSchema =
|
|
2284
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider$outboundSchema;
|
|
2285
|
-
}
|
|
2286
|
-
|
|
2287
|
-
/** @internal */
|
|
2288
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType$inboundSchema:
|
|
2289
|
-
z.ZodNativeEnum<
|
|
2290
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType
|
|
2291
|
-
> = z.nativeEnum(
|
|
2292
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType,
|
|
2293
|
-
);
|
|
2294
|
-
|
|
2295
|
-
/** @internal */
|
|
2296
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType$outboundSchema:
|
|
2297
|
-
z.ZodNativeEnum<
|
|
2298
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType
|
|
2299
|
-
> =
|
|
2300
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType$inboundSchema;
|
|
2301
|
-
|
|
2302
|
-
/**
|
|
2303
|
-
* @internal
|
|
2304
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2305
|
-
*/
|
|
2306
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType$ {
|
|
2307
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType$inboundSchema` instead. */
|
|
2308
|
-
export const inboundSchema =
|
|
2309
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType$inboundSchema;
|
|
2310
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType$outboundSchema` instead. */
|
|
2311
|
-
export const outboundSchema =
|
|
2312
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType$outboundSchema;
|
|
2313
|
-
}
|
|
2314
|
-
|
|
2315
|
-
/** @internal */
|
|
2316
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$inboundSchema:
|
|
2317
|
-
z.ZodType<
|
|
2318
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters,
|
|
2319
|
-
z.ZodTypeDef,
|
|
2320
|
-
unknown
|
|
2321
|
-
> = z.object({
|
|
2322
|
-
threshold: z.number().optional(),
|
|
2323
|
-
});
|
|
2324
|
-
|
|
2325
|
-
/** @internal */
|
|
2326
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$Outbound =
|
|
2327
|
-
{
|
|
2328
|
-
threshold?: number | undefined;
|
|
2329
|
-
};
|
|
2330
|
-
|
|
2331
|
-
/** @internal */
|
|
2332
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$outboundSchema:
|
|
2333
|
-
z.ZodType<
|
|
2334
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$Outbound,
|
|
2335
|
-
z.ZodTypeDef,
|
|
2336
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters
|
|
2337
|
-
> = z.object({
|
|
2338
|
-
threshold: z.number().optional(),
|
|
2339
|
-
});
|
|
2340
|
-
|
|
2341
|
-
/**
|
|
2342
|
-
* @internal
|
|
2343
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2344
|
-
*/
|
|
2345
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$ {
|
|
2346
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$inboundSchema` instead. */
|
|
2347
|
-
export const inboundSchema =
|
|
2348
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$inboundSchema;
|
|
2349
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$outboundSchema` instead. */
|
|
2350
|
-
export const outboundSchema =
|
|
2351
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$outboundSchema;
|
|
2352
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$Outbound` instead. */
|
|
2353
|
-
export type Outbound =
|
|
2354
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$Outbound;
|
|
2355
|
-
}
|
|
2356
|
-
|
|
2357
|
-
export function updateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParametersToJSON(
|
|
2358
|
-
updateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters:
|
|
2359
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters,
|
|
2360
|
-
): string {
|
|
2361
|
-
return JSON.stringify(
|
|
2362
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$outboundSchema
|
|
2363
|
-
.parse(
|
|
2364
|
-
updateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters,
|
|
2365
|
-
),
|
|
2366
|
-
);
|
|
2367
|
-
}
|
|
2368
|
-
|
|
2369
|
-
export function updateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParametersFromJSON(
|
|
2370
|
-
jsonString: string,
|
|
2371
|
-
): SafeParseResult<
|
|
2372
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters,
|
|
2373
|
-
SDKValidationError
|
|
2374
|
-
> {
|
|
2375
|
-
return safeParse(
|
|
2376
|
-
jsonString,
|
|
2377
|
-
(x) =>
|
|
2378
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$inboundSchema
|
|
2379
|
-
.parse(JSON.parse(x)),
|
|
2380
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters' from JSON`,
|
|
2381
|
-
);
|
|
2382
|
-
}
|
|
2383
|
-
|
|
2384
|
-
/** @internal */
|
|
2385
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$inboundSchema:
|
|
2386
|
-
z.ZodType<
|
|
2387
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig,
|
|
2388
|
-
z.ZodTypeDef,
|
|
2389
|
-
unknown
|
|
2390
|
-
> = z.object({
|
|
2391
|
-
enabled: z.boolean().optional(),
|
|
2392
|
-
provider:
|
|
2393
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider$inboundSchema
|
|
2394
|
-
.optional(),
|
|
2395
|
-
model: z.string().optional(),
|
|
2396
|
-
model_db_id: z.string().optional(),
|
|
2397
|
-
model_type:
|
|
2398
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType$inboundSchema
|
|
2399
|
-
.optional(),
|
|
2400
|
-
model_parameters: z.lazy(() =>
|
|
2401
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$inboundSchema
|
|
2402
|
-
).optional(),
|
|
2403
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
2404
|
-
}).transform((v) => {
|
|
2405
|
-
return remap$(v, {
|
|
2406
|
-
"model_db_id": "modelDbId",
|
|
2407
|
-
"model_type": "modelType",
|
|
2408
|
-
"model_parameters": "modelParameters",
|
|
2409
|
-
"integration_id": "integrationId",
|
|
2410
|
-
});
|
|
2411
|
-
});
|
|
2412
|
-
|
|
2413
|
-
/** @internal */
|
|
2414
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$Outbound =
|
|
2415
|
-
{
|
|
2416
|
-
enabled?: boolean | undefined;
|
|
2417
|
-
provider?: string | undefined;
|
|
2418
|
-
model?: string | undefined;
|
|
2419
|
-
model_db_id?: string | undefined;
|
|
2420
|
-
model_type?: string | undefined;
|
|
2421
|
-
model_parameters?:
|
|
2422
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$Outbound
|
|
2423
|
-
| undefined;
|
|
2424
|
-
integration_id?: string | null | undefined;
|
|
2425
|
-
};
|
|
2426
|
-
|
|
2427
|
-
/** @internal */
|
|
2428
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$outboundSchema:
|
|
2429
|
-
z.ZodType<
|
|
2430
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$Outbound,
|
|
2431
|
-
z.ZodTypeDef,
|
|
2432
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig
|
|
2433
|
-
> = z.object({
|
|
2434
|
-
enabled: z.boolean().optional(),
|
|
2435
|
-
provider:
|
|
2436
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Provider$outboundSchema
|
|
2437
|
-
.optional(),
|
|
2438
|
-
model: z.string().optional(),
|
|
2439
|
-
modelDbId: z.string().optional(),
|
|
2440
|
-
modelType:
|
|
2441
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelType$outboundSchema
|
|
2442
|
-
.optional(),
|
|
2443
|
-
modelParameters: z.lazy(() =>
|
|
2444
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200ModelParameters$outboundSchema
|
|
2445
|
-
).optional(),
|
|
2446
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
2447
|
-
}).transform((v) => {
|
|
2448
|
-
return remap$(v, {
|
|
2449
|
-
modelDbId: "model_db_id",
|
|
2450
|
-
modelType: "model_type",
|
|
2451
|
-
modelParameters: "model_parameters",
|
|
2452
|
-
integrationId: "integration_id",
|
|
2453
|
-
});
|
|
2454
|
-
});
|
|
2455
|
-
|
|
2456
|
-
/**
|
|
2457
|
-
* @internal
|
|
2458
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2459
|
-
*/
|
|
2460
|
-
export namespace UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$ {
|
|
2461
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$inboundSchema` instead. */
|
|
2462
|
-
export const inboundSchema =
|
|
2463
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$inboundSchema;
|
|
2464
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$outboundSchema` instead. */
|
|
2465
|
-
export const outboundSchema =
|
|
2466
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$outboundSchema;
|
|
2467
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$Outbound` instead. */
|
|
2468
|
-
export type Outbound =
|
|
2469
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$Outbound;
|
|
2470
|
-
}
|
|
2471
|
-
|
|
2472
|
-
export function updateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfigToJSON(
|
|
2473
|
-
updateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig:
|
|
2474
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig,
|
|
2475
|
-
): string {
|
|
2476
|
-
return JSON.stringify(
|
|
2477
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$outboundSchema
|
|
2478
|
-
.parse(updateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig),
|
|
2479
|
-
);
|
|
2480
|
-
}
|
|
2481
|
-
|
|
2482
|
-
export function updateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfigFromJSON(
|
|
2483
|
-
jsonString: string,
|
|
2484
|
-
): SafeParseResult<
|
|
2485
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig,
|
|
2486
|
-
SDKValidationError
|
|
2487
|
-
> {
|
|
2488
|
-
return safeParse(
|
|
2489
|
-
jsonString,
|
|
2490
|
-
(x) =>
|
|
2491
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$inboundSchema
|
|
2492
|
-
.parse(JSON.parse(x)),
|
|
2493
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig' from JSON`,
|
|
2494
|
-
);
|
|
2495
|
-
}
|
|
2496
|
-
|
|
2497
|
-
/** @internal */
|
|
2498
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledge2$inboundSchema:
|
|
2499
|
-
z.ZodType<UpdateKnowledgeRetrievalSettingsKnowledge2, z.ZodTypeDef, unknown> =
|
|
2500
|
-
z.object({
|
|
2501
|
-
type:
|
|
2502
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Type$inboundSchema,
|
|
2503
|
-
top_k: z.number().int().default(5),
|
|
2504
|
-
threshold: z.number().default(0),
|
|
2505
|
-
rerank_config: z.nullable(
|
|
2506
|
-
z.lazy(() =>
|
|
2507
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$inboundSchema
|
|
2508
|
-
),
|
|
2509
|
-
).optional(),
|
|
2510
|
-
}).transform((v) => {
|
|
2511
|
-
return remap$(v, {
|
|
2512
|
-
"top_k": "topK",
|
|
2513
|
-
"rerank_config": "rerankConfig",
|
|
2514
|
-
});
|
|
2515
|
-
});
|
|
2516
|
-
|
|
2517
|
-
/** @internal */
|
|
2518
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledge2$Outbound = {
|
|
2519
|
-
type: string;
|
|
2520
|
-
top_k: number;
|
|
2521
|
-
threshold: number;
|
|
2522
|
-
rerank_config?:
|
|
2523
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$Outbound
|
|
2524
|
-
| null
|
|
2525
|
-
| undefined;
|
|
2526
|
-
};
|
|
2527
|
-
|
|
2528
|
-
/** @internal */
|
|
2529
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledge2$outboundSchema:
|
|
2530
|
-
z.ZodType<
|
|
2531
|
-
UpdateKnowledgeRetrievalSettingsKnowledge2$Outbound,
|
|
2532
|
-
z.ZodTypeDef,
|
|
2533
|
-
UpdateKnowledgeRetrievalSettingsKnowledge2
|
|
2534
|
-
> = z.object({
|
|
2535
|
-
type:
|
|
2536
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponse200Type$outboundSchema,
|
|
2537
|
-
topK: z.number().int().default(5),
|
|
2538
|
-
threshold: z.number().default(0),
|
|
2539
|
-
rerankConfig: z.nullable(
|
|
2540
|
-
z.lazy(() =>
|
|
2541
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseRerankConfig$outboundSchema
|
|
2542
|
-
),
|
|
2543
|
-
).optional(),
|
|
2544
|
-
}).transform((v) => {
|
|
2545
|
-
return remap$(v, {
|
|
2546
|
-
topK: "top_k",
|
|
2547
|
-
rerankConfig: "rerank_config",
|
|
2548
|
-
});
|
|
316
|
+
threshold: z.number().default(0),
|
|
317
|
+
rerankConfig: z.lazy(() => UpdateKnowledgeRerankConfig$outboundSchema)
|
|
318
|
+
.optional(),
|
|
319
|
+
}).transform((v) => {
|
|
320
|
+
return remap$(v, {
|
|
321
|
+
retrievalType: "retrieval_type",
|
|
322
|
+
topK: "top_k",
|
|
323
|
+
rerankConfig: "rerank_config",
|
|
2549
324
|
});
|
|
325
|
+
});
|
|
2550
326
|
|
|
2551
327
|
/**
|
|
2552
328
|
* @internal
|
|
2553
329
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2554
330
|
*/
|
|
2555
|
-
export namespace
|
|
2556
|
-
/** @deprecated use `
|
|
2557
|
-
export const inboundSchema =
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledge2$Outbound` instead. */
|
|
2563
|
-
export type Outbound = UpdateKnowledgeRetrievalSettingsKnowledge2$Outbound;
|
|
331
|
+
export namespace UpdateKnowledgeRetrievalSettings$ {
|
|
332
|
+
/** @deprecated use `UpdateKnowledgeRetrievalSettings$inboundSchema` instead. */
|
|
333
|
+
export const inboundSchema = UpdateKnowledgeRetrievalSettings$inboundSchema;
|
|
334
|
+
/** @deprecated use `UpdateKnowledgeRetrievalSettings$outboundSchema` instead. */
|
|
335
|
+
export const outboundSchema = UpdateKnowledgeRetrievalSettings$outboundSchema;
|
|
336
|
+
/** @deprecated use `UpdateKnowledgeRetrievalSettings$Outbound` instead. */
|
|
337
|
+
export type Outbound = UpdateKnowledgeRetrievalSettings$Outbound;
|
|
2564
338
|
}
|
|
2565
339
|
|
|
2566
|
-
export function
|
|
2567
|
-
|
|
2568
|
-
UpdateKnowledgeRetrievalSettingsKnowledge2,
|
|
340
|
+
export function updateKnowledgeRetrievalSettingsToJSON(
|
|
341
|
+
updateKnowledgeRetrievalSettings: UpdateKnowledgeRetrievalSettings,
|
|
2569
342
|
): string {
|
|
2570
343
|
return JSON.stringify(
|
|
2571
|
-
|
|
2572
|
-
|
|
344
|
+
UpdateKnowledgeRetrievalSettings$outboundSchema.parse(
|
|
345
|
+
updateKnowledgeRetrievalSettings,
|
|
2573
346
|
),
|
|
2574
347
|
);
|
|
2575
348
|
}
|
|
2576
349
|
|
|
2577
|
-
export function
|
|
350
|
+
export function updateKnowledgeRetrievalSettingsFromJSON(
|
|
2578
351
|
jsonString: string,
|
|
2579
|
-
): SafeParseResult<
|
|
2580
|
-
UpdateKnowledgeRetrievalSettingsKnowledge2,
|
|
2581
|
-
SDKValidationError
|
|
2582
|
-
> {
|
|
352
|
+
): SafeParseResult<UpdateKnowledgeRetrievalSettings, SDKValidationError> {
|
|
2583
353
|
return safeParse(
|
|
2584
354
|
jsonString,
|
|
2585
|
-
(x) =>
|
|
2586
|
-
|
|
2587
|
-
JSON.parse(x),
|
|
2588
|
-
),
|
|
2589
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsKnowledge2' from JSON`,
|
|
355
|
+
(x) => UpdateKnowledgeRetrievalSettings$inboundSchema.parse(JSON.parse(x)),
|
|
356
|
+
`Failed to parse 'UpdateKnowledgeRetrievalSettings' from JSON`,
|
|
2590
357
|
);
|
|
2591
358
|
}
|
|
2592
359
|
|
|
2593
360
|
/** @internal */
|
|
2594
|
-
export const
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
z.
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
export const inboundSchema =
|
|
2612
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseType$inboundSchema;
|
|
2613
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponseType$outboundSchema` instead. */
|
|
2614
|
-
export const outboundSchema =
|
|
2615
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseType$outboundSchema;
|
|
2616
|
-
}
|
|
361
|
+
export const UpdateKnowledgeRequestBody$inboundSchema: z.ZodType<
|
|
362
|
+
UpdateKnowledgeRequestBody,
|
|
363
|
+
z.ZodTypeDef,
|
|
364
|
+
unknown
|
|
365
|
+
> = z.object({
|
|
366
|
+
description: z.string().optional(),
|
|
367
|
+
embedding_model: z.string().optional(),
|
|
368
|
+
path: z.string().optional(),
|
|
369
|
+
retrieval_settings: z.lazy(() =>
|
|
370
|
+
UpdateKnowledgeRetrievalSettings$inboundSchema
|
|
371
|
+
).optional(),
|
|
372
|
+
}).transform((v) => {
|
|
373
|
+
return remap$(v, {
|
|
374
|
+
"embedding_model": "embeddingModel",
|
|
375
|
+
"retrieval_settings": "retrievalSettings",
|
|
376
|
+
});
|
|
377
|
+
});
|
|
2617
378
|
|
|
2618
379
|
/** @internal */
|
|
2619
|
-
export
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
380
|
+
export type UpdateKnowledgeRequestBody$Outbound = {
|
|
381
|
+
description?: string | undefined;
|
|
382
|
+
embedding_model?: string | undefined;
|
|
383
|
+
path?: string | undefined;
|
|
384
|
+
retrieval_settings?: UpdateKnowledgeRetrievalSettings$Outbound | undefined;
|
|
385
|
+
};
|
|
2623
386
|
|
|
2624
387
|
/** @internal */
|
|
2625
|
-
export const
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
388
|
+
export const UpdateKnowledgeRequestBody$outboundSchema: z.ZodType<
|
|
389
|
+
UpdateKnowledgeRequestBody$Outbound,
|
|
390
|
+
z.ZodTypeDef,
|
|
391
|
+
UpdateKnowledgeRequestBody
|
|
392
|
+
> = z.object({
|
|
393
|
+
description: z.string().optional(),
|
|
394
|
+
embeddingModel: z.string().optional(),
|
|
395
|
+
path: z.string().optional(),
|
|
396
|
+
retrievalSettings: z.lazy(() =>
|
|
397
|
+
UpdateKnowledgeRetrievalSettings$outboundSchema
|
|
398
|
+
).optional(),
|
|
399
|
+
}).transform((v) => {
|
|
400
|
+
return remap$(v, {
|
|
401
|
+
embeddingModel: "embedding_model",
|
|
402
|
+
retrievalSettings: "retrieval_settings",
|
|
403
|
+
});
|
|
404
|
+
});
|
|
2629
405
|
|
|
2630
406
|
/**
|
|
2631
407
|
* @internal
|
|
2632
408
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2633
409
|
*/
|
|
2634
|
-
export namespace
|
|
2635
|
-
/** @deprecated use `
|
|
2636
|
-
export const inboundSchema =
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
410
|
+
export namespace UpdateKnowledgeRequestBody$ {
|
|
411
|
+
/** @deprecated use `UpdateKnowledgeRequestBody$inboundSchema` instead. */
|
|
412
|
+
export const inboundSchema = UpdateKnowledgeRequestBody$inboundSchema;
|
|
413
|
+
/** @deprecated use `UpdateKnowledgeRequestBody$outboundSchema` instead. */
|
|
414
|
+
export const outboundSchema = UpdateKnowledgeRequestBody$outboundSchema;
|
|
415
|
+
/** @deprecated use `UpdateKnowledgeRequestBody$Outbound` instead. */
|
|
416
|
+
export type Outbound = UpdateKnowledgeRequestBody$Outbound;
|
|
2641
417
|
}
|
|
2642
418
|
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
export const UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelType$outboundSchema:
|
|
2651
|
-
z.ZodNativeEnum<
|
|
2652
|
-
typeof UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelType
|
|
2653
|
-
> = UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelType$inboundSchema;
|
|
419
|
+
export function updateKnowledgeRequestBodyToJSON(
|
|
420
|
+
updateKnowledgeRequestBody: UpdateKnowledgeRequestBody,
|
|
421
|
+
): string {
|
|
422
|
+
return JSON.stringify(
|
|
423
|
+
UpdateKnowledgeRequestBody$outboundSchema.parse(updateKnowledgeRequestBody),
|
|
424
|
+
);
|
|
425
|
+
}
|
|
2654
426
|
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelType$outboundSchema` instead. */
|
|
2664
|
-
export const outboundSchema =
|
|
2665
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelType$outboundSchema;
|
|
427
|
+
export function updateKnowledgeRequestBodyFromJSON(
|
|
428
|
+
jsonString: string,
|
|
429
|
+
): SafeParseResult<UpdateKnowledgeRequestBody, SDKValidationError> {
|
|
430
|
+
return safeParse(
|
|
431
|
+
jsonString,
|
|
432
|
+
(x) => UpdateKnowledgeRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
433
|
+
`Failed to parse 'UpdateKnowledgeRequestBody' from JSON`,
|
|
434
|
+
);
|
|
2666
435
|
}
|
|
2667
436
|
|
|
2668
437
|
/** @internal */
|
|
2669
|
-
export const
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
438
|
+
export const UpdateKnowledgeRequest$inboundSchema: z.ZodType<
|
|
439
|
+
UpdateKnowledgeRequest,
|
|
440
|
+
z.ZodTypeDef,
|
|
441
|
+
unknown
|
|
442
|
+
> = z.object({
|
|
443
|
+
knowledge_id: z.string(),
|
|
444
|
+
RequestBody: z.lazy(() => UpdateKnowledgeRequestBody$inboundSchema),
|
|
445
|
+
}).transform((v) => {
|
|
446
|
+
return remap$(v, {
|
|
447
|
+
"knowledge_id": "knowledgeId",
|
|
448
|
+
"RequestBody": "requestBody",
|
|
2676
449
|
});
|
|
450
|
+
});
|
|
2677
451
|
|
|
2678
452
|
/** @internal */
|
|
2679
|
-
export type
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
453
|
+
export type UpdateKnowledgeRequest$Outbound = {
|
|
454
|
+
knowledge_id: string;
|
|
455
|
+
RequestBody: UpdateKnowledgeRequestBody$Outbound;
|
|
456
|
+
};
|
|
2683
457
|
|
|
2684
458
|
/** @internal */
|
|
2685
|
-
export const
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
459
|
+
export const UpdateKnowledgeRequest$outboundSchema: z.ZodType<
|
|
460
|
+
UpdateKnowledgeRequest$Outbound,
|
|
461
|
+
z.ZodTypeDef,
|
|
462
|
+
UpdateKnowledgeRequest
|
|
463
|
+
> = z.object({
|
|
464
|
+
knowledgeId: z.string(),
|
|
465
|
+
requestBody: z.lazy(() => UpdateKnowledgeRequestBody$outboundSchema),
|
|
466
|
+
}).transform((v) => {
|
|
467
|
+
return remap$(v, {
|
|
468
|
+
knowledgeId: "knowledge_id",
|
|
469
|
+
requestBody: "RequestBody",
|
|
2692
470
|
});
|
|
471
|
+
});
|
|
2693
472
|
|
|
2694
473
|
/**
|
|
2695
474
|
* @internal
|
|
2696
475
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2697
476
|
*/
|
|
2698
|
-
export namespace
|
|
2699
|
-
/** @deprecated use `
|
|
2700
|
-
export const inboundSchema =
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelParameters$Outbound` instead. */
|
|
2706
|
-
export type Outbound =
|
|
2707
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelParameters$Outbound;
|
|
477
|
+
export namespace UpdateKnowledgeRequest$ {
|
|
478
|
+
/** @deprecated use `UpdateKnowledgeRequest$inboundSchema` instead. */
|
|
479
|
+
export const inboundSchema = UpdateKnowledgeRequest$inboundSchema;
|
|
480
|
+
/** @deprecated use `UpdateKnowledgeRequest$outboundSchema` instead. */
|
|
481
|
+
export const outboundSchema = UpdateKnowledgeRequest$outboundSchema;
|
|
482
|
+
/** @deprecated use `UpdateKnowledgeRequest$Outbound` instead. */
|
|
483
|
+
export type Outbound = UpdateKnowledgeRequest$Outbound;
|
|
2708
484
|
}
|
|
2709
485
|
|
|
2710
|
-
export function
|
|
2711
|
-
|
|
2712
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelParameters,
|
|
486
|
+
export function updateKnowledgeRequestToJSON(
|
|
487
|
+
updateKnowledgeRequest: UpdateKnowledgeRequest,
|
|
2713
488
|
): string {
|
|
2714
489
|
return JSON.stringify(
|
|
2715
|
-
|
|
2716
|
-
.parse(updateKnowledgeRetrievalSettingsKnowledgeResponseModelParameters),
|
|
490
|
+
UpdateKnowledgeRequest$outboundSchema.parse(updateKnowledgeRequest),
|
|
2717
491
|
);
|
|
2718
492
|
}
|
|
2719
493
|
|
|
2720
|
-
export function
|
|
494
|
+
export function updateKnowledgeRequestFromJSON(
|
|
2721
495
|
jsonString: string,
|
|
2722
|
-
): SafeParseResult<
|
|
2723
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelParameters,
|
|
2724
|
-
SDKValidationError
|
|
2725
|
-
> {
|
|
496
|
+
): SafeParseResult<UpdateKnowledgeRequest, SDKValidationError> {
|
|
2726
497
|
return safeParse(
|
|
2727
498
|
jsonString,
|
|
2728
|
-
(x) =>
|
|
2729
|
-
|
|
2730
|
-
.parse(JSON.parse(x)),
|
|
2731
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelParameters' from JSON`,
|
|
499
|
+
(x) => UpdateKnowledgeRequest$inboundSchema.parse(JSON.parse(x)),
|
|
500
|
+
`Failed to parse 'UpdateKnowledgeRequest' from JSON`,
|
|
2732
501
|
);
|
|
2733
502
|
}
|
|
2734
503
|
|
|
2735
504
|
/** @internal */
|
|
2736
|
-
export const
|
|
2737
|
-
z.
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
unknown
|
|
2741
|
-
> = z.object({
|
|
2742
|
-
enabled: z.boolean().optional(),
|
|
2743
|
-
provider:
|
|
2744
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseProvider$inboundSchema
|
|
2745
|
-
.optional(),
|
|
2746
|
-
model: z.string().optional(),
|
|
2747
|
-
model_db_id: z.string().optional(),
|
|
2748
|
-
model_type:
|
|
2749
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelType$inboundSchema
|
|
2750
|
-
.optional(),
|
|
2751
|
-
model_parameters: z.lazy(() =>
|
|
2752
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelParameters$inboundSchema
|
|
2753
|
-
).optional(),
|
|
2754
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
2755
|
-
}).transform((v) => {
|
|
2756
|
-
return remap$(v, {
|
|
2757
|
-
"model_db_id": "modelDbId",
|
|
2758
|
-
"model_type": "modelType",
|
|
2759
|
-
"model_parameters": "modelParameters",
|
|
2760
|
-
"integration_id": "integrationId",
|
|
2761
|
-
});
|
|
2762
|
-
});
|
|
2763
|
-
|
|
2764
|
-
/** @internal */
|
|
2765
|
-
export type UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfig$Outbound = {
|
|
2766
|
-
enabled?: boolean | undefined;
|
|
2767
|
-
provider?: string | undefined;
|
|
2768
|
-
model?: string | undefined;
|
|
2769
|
-
model_db_id?: string | undefined;
|
|
2770
|
-
model_type?: string | undefined;
|
|
2771
|
-
model_parameters?:
|
|
2772
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelParameters$Outbound
|
|
2773
|
-
| undefined;
|
|
2774
|
-
integration_id?: string | null | undefined;
|
|
2775
|
-
};
|
|
505
|
+
export const UpdateKnowledgeKnowledgeRetrievalType$inboundSchema:
|
|
506
|
+
z.ZodNativeEnum<typeof UpdateKnowledgeKnowledgeRetrievalType> = z.nativeEnum(
|
|
507
|
+
UpdateKnowledgeKnowledgeRetrievalType,
|
|
508
|
+
);
|
|
2776
509
|
|
|
2777
510
|
/** @internal */
|
|
2778
|
-
export const
|
|
2779
|
-
z.
|
|
2780
|
-
|
|
2781
|
-
z.ZodTypeDef,
|
|
2782
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfig
|
|
2783
|
-
> = z.object({
|
|
2784
|
-
enabled: z.boolean().optional(),
|
|
2785
|
-
provider:
|
|
2786
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseProvider$outboundSchema
|
|
2787
|
-
.optional(),
|
|
2788
|
-
model: z.string().optional(),
|
|
2789
|
-
modelDbId: z.string().optional(),
|
|
2790
|
-
modelType:
|
|
2791
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelType$outboundSchema
|
|
2792
|
-
.optional(),
|
|
2793
|
-
modelParameters: z.lazy(() =>
|
|
2794
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeResponseModelParameters$outboundSchema
|
|
2795
|
-
).optional(),
|
|
2796
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
2797
|
-
}).transform((v) => {
|
|
2798
|
-
return remap$(v, {
|
|
2799
|
-
modelDbId: "model_db_id",
|
|
2800
|
-
modelType: "model_type",
|
|
2801
|
-
modelParameters: "model_parameters",
|
|
2802
|
-
integrationId: "integration_id",
|
|
2803
|
-
});
|
|
2804
|
-
});
|
|
511
|
+
export const UpdateKnowledgeKnowledgeRetrievalType$outboundSchema:
|
|
512
|
+
z.ZodNativeEnum<typeof UpdateKnowledgeKnowledgeRetrievalType> =
|
|
513
|
+
UpdateKnowledgeKnowledgeRetrievalType$inboundSchema;
|
|
2805
514
|
|
|
2806
515
|
/**
|
|
2807
516
|
* @internal
|
|
2808
517
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2809
518
|
*/
|
|
2810
|
-
export namespace
|
|
2811
|
-
/** @deprecated use `
|
|
519
|
+
export namespace UpdateKnowledgeKnowledgeRetrievalType$ {
|
|
520
|
+
/** @deprecated use `UpdateKnowledgeKnowledgeRetrievalType$inboundSchema` instead. */
|
|
2812
521
|
export const inboundSchema =
|
|
2813
|
-
|
|
2814
|
-
/** @deprecated use `
|
|
522
|
+
UpdateKnowledgeKnowledgeRetrievalType$inboundSchema;
|
|
523
|
+
/** @deprecated use `UpdateKnowledgeKnowledgeRetrievalType$outboundSchema` instead. */
|
|
2815
524
|
export const outboundSchema =
|
|
2816
|
-
|
|
2817
|
-
/** @deprecated use `UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfig$Outbound` instead. */
|
|
2818
|
-
export type Outbound =
|
|
2819
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfig$Outbound;
|
|
2820
|
-
}
|
|
2821
|
-
|
|
2822
|
-
export function updateKnowledgeRetrievalSettingsKnowledgeRerankConfigToJSON(
|
|
2823
|
-
updateKnowledgeRetrievalSettingsKnowledgeRerankConfig:
|
|
2824
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfig,
|
|
2825
|
-
): string {
|
|
2826
|
-
return JSON.stringify(
|
|
2827
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfig$outboundSchema.parse(
|
|
2828
|
-
updateKnowledgeRetrievalSettingsKnowledgeRerankConfig,
|
|
2829
|
-
),
|
|
2830
|
-
);
|
|
2831
|
-
}
|
|
2832
|
-
|
|
2833
|
-
export function updateKnowledgeRetrievalSettingsKnowledgeRerankConfigFromJSON(
|
|
2834
|
-
jsonString: string,
|
|
2835
|
-
): SafeParseResult<
|
|
2836
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfig,
|
|
2837
|
-
SDKValidationError
|
|
2838
|
-
> {
|
|
2839
|
-
return safeParse(
|
|
2840
|
-
jsonString,
|
|
2841
|
-
(x) =>
|
|
2842
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfig$inboundSchema.parse(
|
|
2843
|
-
JSON.parse(x),
|
|
2844
|
-
),
|
|
2845
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfig' from JSON`,
|
|
2846
|
-
);
|
|
525
|
+
UpdateKnowledgeKnowledgeRetrievalType$outboundSchema;
|
|
2847
526
|
}
|
|
2848
527
|
|
|
2849
528
|
/** @internal */
|
|
2850
|
-
export const
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
"top_k": "topK",
|
|
2864
|
-
"rerank_config": "rerankConfig",
|
|
2865
|
-
});
|
|
2866
|
-
});
|
|
529
|
+
export const UpdateKnowledgeKnowledgeRerankConfig$inboundSchema: z.ZodType<
|
|
530
|
+
UpdateKnowledgeKnowledgeRerankConfig,
|
|
531
|
+
z.ZodTypeDef,
|
|
532
|
+
unknown
|
|
533
|
+
> = z.object({
|
|
534
|
+
rerank_threshold: z.number().default(0.5),
|
|
535
|
+
rerank_model: z.string(),
|
|
536
|
+
}).transform((v) => {
|
|
537
|
+
return remap$(v, {
|
|
538
|
+
"rerank_threshold": "rerankThreshold",
|
|
539
|
+
"rerank_model": "rerankModel",
|
|
540
|
+
});
|
|
541
|
+
});
|
|
2867
542
|
|
|
2868
543
|
/** @internal */
|
|
2869
|
-
export type
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
threshold: number;
|
|
2873
|
-
rerank_config?:
|
|
2874
|
-
| UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfig$Outbound
|
|
2875
|
-
| null
|
|
2876
|
-
| undefined;
|
|
544
|
+
export type UpdateKnowledgeKnowledgeRerankConfig$Outbound = {
|
|
545
|
+
rerank_threshold: number;
|
|
546
|
+
rerank_model: string;
|
|
2877
547
|
};
|
|
2878
548
|
|
|
2879
549
|
/** @internal */
|
|
2880
|
-
export const
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
UpdateKnowledgeRetrievalSettingsKnowledgeRerankConfig$outboundSchema
|
|
2892
|
-
),
|
|
2893
|
-
).optional(),
|
|
2894
|
-
}).transform((v) => {
|
|
2895
|
-
return remap$(v, {
|
|
2896
|
-
topK: "top_k",
|
|
2897
|
-
rerankConfig: "rerank_config",
|
|
2898
|
-
});
|
|
550
|
+
export const UpdateKnowledgeKnowledgeRerankConfig$outboundSchema: z.ZodType<
|
|
551
|
+
UpdateKnowledgeKnowledgeRerankConfig$Outbound,
|
|
552
|
+
z.ZodTypeDef,
|
|
553
|
+
UpdateKnowledgeKnowledgeRerankConfig
|
|
554
|
+
> = z.object({
|
|
555
|
+
rerankThreshold: z.number().default(0.5),
|
|
556
|
+
rerankModel: z.string(),
|
|
557
|
+
}).transform((v) => {
|
|
558
|
+
return remap$(v, {
|
|
559
|
+
rerankThreshold: "rerank_threshold",
|
|
560
|
+
rerankModel: "rerank_model",
|
|
2899
561
|
});
|
|
562
|
+
});
|
|
2900
563
|
|
|
2901
564
|
/**
|
|
2902
565
|
* @internal
|
|
2903
566
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2904
567
|
*/
|
|
2905
|
-
export namespace
|
|
2906
|
-
/** @deprecated use `
|
|
568
|
+
export namespace UpdateKnowledgeKnowledgeRerankConfig$ {
|
|
569
|
+
/** @deprecated use `UpdateKnowledgeKnowledgeRerankConfig$inboundSchema` instead. */
|
|
2907
570
|
export const inboundSchema =
|
|
2908
|
-
|
|
2909
|
-
/** @deprecated use `
|
|
571
|
+
UpdateKnowledgeKnowledgeRerankConfig$inboundSchema;
|
|
572
|
+
/** @deprecated use `UpdateKnowledgeKnowledgeRerankConfig$outboundSchema` instead. */
|
|
2910
573
|
export const outboundSchema =
|
|
2911
|
-
|
|
2912
|
-
/** @deprecated use `
|
|
2913
|
-
export type Outbound =
|
|
574
|
+
UpdateKnowledgeKnowledgeRerankConfig$outboundSchema;
|
|
575
|
+
/** @deprecated use `UpdateKnowledgeKnowledgeRerankConfig$Outbound` instead. */
|
|
576
|
+
export type Outbound = UpdateKnowledgeKnowledgeRerankConfig$Outbound;
|
|
2914
577
|
}
|
|
2915
578
|
|
|
2916
|
-
export function
|
|
2917
|
-
|
|
2918
|
-
UpdateKnowledgeRetrievalSettingsKnowledge1,
|
|
579
|
+
export function updateKnowledgeKnowledgeRerankConfigToJSON(
|
|
580
|
+
updateKnowledgeKnowledgeRerankConfig: UpdateKnowledgeKnowledgeRerankConfig,
|
|
2919
581
|
): string {
|
|
2920
582
|
return JSON.stringify(
|
|
2921
|
-
|
|
2922
|
-
|
|
583
|
+
UpdateKnowledgeKnowledgeRerankConfig$outboundSchema.parse(
|
|
584
|
+
updateKnowledgeKnowledgeRerankConfig,
|
|
2923
585
|
),
|
|
2924
586
|
);
|
|
2925
587
|
}
|
|
2926
588
|
|
|
2927
|
-
export function
|
|
589
|
+
export function updateKnowledgeKnowledgeRerankConfigFromJSON(
|
|
2928
590
|
jsonString: string,
|
|
2929
|
-
): SafeParseResult<
|
|
2930
|
-
UpdateKnowledgeRetrievalSettingsKnowledge1,
|
|
2931
|
-
SDKValidationError
|
|
2932
|
-
> {
|
|
591
|
+
): SafeParseResult<UpdateKnowledgeKnowledgeRerankConfig, SDKValidationError> {
|
|
2933
592
|
return safeParse(
|
|
2934
593
|
jsonString,
|
|
2935
594
|
(x) =>
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
),
|
|
2939
|
-
`Failed to parse 'UpdateKnowledgeRetrievalSettingsKnowledge1' from JSON`,
|
|
595
|
+
UpdateKnowledgeKnowledgeRerankConfig$inboundSchema.parse(JSON.parse(x)),
|
|
596
|
+
`Failed to parse 'UpdateKnowledgeKnowledgeRerankConfig' from JSON`,
|
|
2940
597
|
);
|
|
2941
598
|
}
|
|
2942
599
|
|
|
@@ -2945,17 +602,30 @@ export const UpdateKnowledgeKnowledgeRetrievalSettings$inboundSchema: z.ZodType<
|
|
|
2945
602
|
UpdateKnowledgeKnowledgeRetrievalSettings,
|
|
2946
603
|
z.ZodTypeDef,
|
|
2947
604
|
unknown
|
|
2948
|
-
> = z.
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
605
|
+
> = z.object({
|
|
606
|
+
retrieval_type: UpdateKnowledgeKnowledgeRetrievalType$inboundSchema.default(
|
|
607
|
+
"hybrid_search",
|
|
608
|
+
),
|
|
609
|
+
top_k: z.number().int().default(5),
|
|
610
|
+
threshold: z.number().default(0),
|
|
611
|
+
rerank_config: z.lazy(() =>
|
|
612
|
+
UpdateKnowledgeKnowledgeRerankConfig$inboundSchema
|
|
613
|
+
).optional(),
|
|
614
|
+
}).transform((v) => {
|
|
615
|
+
return remap$(v, {
|
|
616
|
+
"retrieval_type": "retrievalType",
|
|
617
|
+
"top_k": "topK",
|
|
618
|
+
"rerank_config": "rerankConfig",
|
|
619
|
+
});
|
|
620
|
+
});
|
|
2953
621
|
|
|
2954
622
|
/** @internal */
|
|
2955
|
-
export type UpdateKnowledgeKnowledgeRetrievalSettings$Outbound =
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
623
|
+
export type UpdateKnowledgeKnowledgeRetrievalSettings$Outbound = {
|
|
624
|
+
retrieval_type: string;
|
|
625
|
+
top_k: number;
|
|
626
|
+
threshold: number;
|
|
627
|
+
rerank_config?: UpdateKnowledgeKnowledgeRerankConfig$Outbound | undefined;
|
|
628
|
+
};
|
|
2959
629
|
|
|
2960
630
|
/** @internal */
|
|
2961
631
|
export const UpdateKnowledgeKnowledgeRetrievalSettings$outboundSchema:
|
|
@@ -2963,11 +633,22 @@ export const UpdateKnowledgeKnowledgeRetrievalSettings$outboundSchema:
|
|
|
2963
633
|
UpdateKnowledgeKnowledgeRetrievalSettings$Outbound,
|
|
2964
634
|
z.ZodTypeDef,
|
|
2965
635
|
UpdateKnowledgeKnowledgeRetrievalSettings
|
|
2966
|
-
> = z.
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
636
|
+
> = z.object({
|
|
637
|
+
retrievalType: UpdateKnowledgeKnowledgeRetrievalType$outboundSchema.default(
|
|
638
|
+
"hybrid_search",
|
|
639
|
+
),
|
|
640
|
+
topK: z.number().int().default(5),
|
|
641
|
+
threshold: z.number().default(0),
|
|
642
|
+
rerankConfig: z.lazy(() =>
|
|
643
|
+
UpdateKnowledgeKnowledgeRerankConfig$outboundSchema
|
|
644
|
+
).optional(),
|
|
645
|
+
}).transform((v) => {
|
|
646
|
+
return remap$(v, {
|
|
647
|
+
retrievalType: "retrieval_type",
|
|
648
|
+
topK: "top_k",
|
|
649
|
+
rerankConfig: "rerank_config",
|
|
650
|
+
});
|
|
651
|
+
});
|
|
2971
652
|
|
|
2972
653
|
/**
|
|
2973
654
|
* @internal
|
|
@@ -3022,14 +703,11 @@ export const UpdateKnowledgeResponseBody$inboundSchema: z.ZodType<
|
|
|
3022
703
|
created: z.string(),
|
|
3023
704
|
description: z.string().optional(),
|
|
3024
705
|
key: z.string(),
|
|
3025
|
-
metadata: z.lazy(() => UpdateKnowledgeMetadata$inboundSchema),
|
|
3026
706
|
model: z.string(),
|
|
3027
707
|
path: z.string().optional(),
|
|
3028
|
-
retrieval_settings: z.
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettingsKnowledge3$inboundSchema),
|
|
3032
|
-
]),
|
|
708
|
+
retrieval_settings: z.lazy(() =>
|
|
709
|
+
UpdateKnowledgeKnowledgeRetrievalSettings$inboundSchema
|
|
710
|
+
).optional(),
|
|
3033
711
|
update_by_id: z.string(),
|
|
3034
712
|
updated: z.string(),
|
|
3035
713
|
}).transform((v) => {
|
|
@@ -3048,13 +726,11 @@ export type UpdateKnowledgeResponseBody$Outbound = {
|
|
|
3048
726
|
created: string;
|
|
3049
727
|
description?: string | undefined;
|
|
3050
728
|
key: string;
|
|
3051
|
-
metadata: UpdateKnowledgeMetadata$Outbound;
|
|
3052
729
|
model: string;
|
|
3053
730
|
path?: string | undefined;
|
|
3054
|
-
retrieval_settings
|
|
3055
|
-
|
|
|
3056
|
-
|
|
|
3057
|
-
| UpdateKnowledgeRetrievalSettingsKnowledge3$Outbound;
|
|
731
|
+
retrieval_settings?:
|
|
732
|
+
| UpdateKnowledgeKnowledgeRetrievalSettings$Outbound
|
|
733
|
+
| undefined;
|
|
3058
734
|
update_by_id: string;
|
|
3059
735
|
updated: string;
|
|
3060
736
|
};
|
|
@@ -3070,14 +746,11 @@ export const UpdateKnowledgeResponseBody$outboundSchema: z.ZodType<
|
|
|
3070
746
|
created: z.string(),
|
|
3071
747
|
description: z.string().optional(),
|
|
3072
748
|
key: z.string(),
|
|
3073
|
-
metadata: z.lazy(() => UpdateKnowledgeMetadata$outboundSchema),
|
|
3074
749
|
model: z.string(),
|
|
3075
750
|
path: z.string().optional(),
|
|
3076
|
-
retrievalSettings: z.
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
z.lazy(() => UpdateKnowledgeRetrievalSettingsKnowledge3$outboundSchema),
|
|
3080
|
-
]),
|
|
751
|
+
retrievalSettings: z.lazy(() =>
|
|
752
|
+
UpdateKnowledgeKnowledgeRetrievalSettings$outboundSchema
|
|
753
|
+
).optional(),
|
|
3081
754
|
updateById: z.string(),
|
|
3082
755
|
updated: z.string(),
|
|
3083
756
|
}).transform((v) => {
|