@faiber/faiber-knowledge 0.3.0 → 0.5.0
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/dist/.tsbuildinfo +1 -1
- package/dist/operations.d.ts +274 -33
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +274 -33
- package/dist/operations.js.map +1 -1
- package/dist/operations.types.d.ts +152 -152
- package/dist/operations.types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/operations.js
CHANGED
|
@@ -1,134 +1,375 @@
|
|
|
1
1
|
import { ServiceApi, urlEncoded } from "@faiber/sdk-core";
|
|
2
2
|
export class KnowledgeOperations extends ServiceApi {
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Performs the list actions operation for the routes capability.
|
|
5
|
+
* Calls `GET /api/v1/actions` through the shared IDP-aware Faiber client.
|
|
6
|
+
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
7
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
8
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
9
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:actions.
|
|
10
|
+
*/
|
|
4
11
|
routesListActionsGet(params, options) {
|
|
5
12
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/actions`, params });
|
|
6
13
|
}
|
|
7
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Performs the update action status operation for the routes capability.
|
|
16
|
+
* Calls `PATCH /api/v1/actions/{id}/status` through the shared IDP-aware Faiber client.
|
|
17
|
+
* @param id Backend path identifier `id`.
|
|
18
|
+
* @param data Typed JSON request body.
|
|
19
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
20
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
21
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:actions.
|
|
22
|
+
*/
|
|
8
23
|
routesUpdateActionStatusPatch(id, data, options) {
|
|
9
24
|
return this.client.request({ ...options, method: "PATCH", url: `/api/v1/actions/${encodeURIComponent(id)}/status`, data: data });
|
|
10
25
|
}
|
|
11
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Performs the list audit operation for the routes capability.
|
|
28
|
+
* Calls `GET /api/v1/audit` through the shared IDP-aware Faiber client.
|
|
29
|
+
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
30
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
31
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
32
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:audit.
|
|
33
|
+
*/
|
|
12
34
|
routesListAuditGet(params, options) {
|
|
13
35
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/audit`, params });
|
|
14
36
|
}
|
|
15
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Performs the list bindings operation for the routes capability.
|
|
39
|
+
* Calls `GET /api/v1/chat-bindings` through the shared IDP-aware Faiber client.
|
|
40
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
41
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
42
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
|
|
43
|
+
*/
|
|
16
44
|
routesListBindingsGet(options) {
|
|
17
45
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/chat-bindings` });
|
|
18
46
|
}
|
|
19
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* Performs the create binding operation for the routes capability.
|
|
49
|
+
* Calls `POST /api/v1/chat-bindings` through the shared IDP-aware Faiber client.
|
|
50
|
+
* @param data Typed JSON request body.
|
|
51
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
52
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
53
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
|
|
54
|
+
*/
|
|
20
55
|
routesCreateBindingPost(data, options) {
|
|
21
56
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/chat-bindings`, data: data });
|
|
22
57
|
}
|
|
23
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* Performs the delete binding operation for the routes capability.
|
|
60
|
+
* Calls `DELETE /api/v1/chat-bindings/{id}` through the shared IDP-aware Faiber client.
|
|
61
|
+
* @param id Backend path identifier `id`.
|
|
62
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
63
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
64
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:delete.
|
|
65
|
+
*/
|
|
24
66
|
routesDeleteBindingDelete(id, options) {
|
|
25
67
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/chat-bindings/${encodeURIComponent(id)}` });
|
|
26
68
|
}
|
|
27
|
-
/**
|
|
69
|
+
/**
|
|
70
|
+
* Performs the update binding operation for the routes capability.
|
|
71
|
+
* Calls `PUT /api/v1/chat-bindings/{id}` through the shared IDP-aware Faiber client.
|
|
72
|
+
* @param id Backend path identifier `id`.
|
|
73
|
+
* @param data Typed JSON request body.
|
|
74
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
75
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
76
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
|
|
77
|
+
*/
|
|
28
78
|
routesUpdateBindingPut(id, data, options) {
|
|
29
79
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/chat-bindings/${encodeURIComponent(id)}`, data: data });
|
|
30
80
|
}
|
|
31
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* Performs the delete edge operation for the routes capability.
|
|
83
|
+
* Calls `DELETE /api/v1/edges/{id}` through the shared IDP-aware Faiber client.
|
|
84
|
+
* @param id Backend path identifier `id`.
|
|
85
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
86
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
87
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:delete.
|
|
88
|
+
*/
|
|
32
89
|
routesDeleteEdgeDelete(id, options) {
|
|
33
90
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/edges/${encodeURIComponent(id)}` });
|
|
34
91
|
}
|
|
35
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Performs the update edge operation for the routes capability.
|
|
94
|
+
* Calls `PUT /api/v1/edges/{id}` through the shared IDP-aware Faiber client.
|
|
95
|
+
* @param id Backend path identifier `id`.
|
|
96
|
+
* @param data Typed JSON request body.
|
|
97
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
98
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
99
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
|
|
100
|
+
*/
|
|
36
101
|
routesUpdateEdgePut(id, data, options) {
|
|
37
102
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/edges/${encodeURIComponent(id)}`, data: data });
|
|
38
103
|
}
|
|
39
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* Performs the delete group operation for the routes capability.
|
|
106
|
+
* Calls `DELETE /api/v1/groups/{id}` through the shared IDP-aware Faiber client.
|
|
107
|
+
* @param id Backend path identifier `id`.
|
|
108
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
109
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
110
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:delete.
|
|
111
|
+
*/
|
|
40
112
|
routesDeleteGroupDelete(id, options) {
|
|
41
113
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/groups/${encodeURIComponent(id)}` });
|
|
42
114
|
}
|
|
43
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* Performs the update group operation for the routes capability.
|
|
117
|
+
* Calls `PUT /api/v1/groups/{id}` through the shared IDP-aware Faiber client.
|
|
118
|
+
* @param id Backend path identifier `id`.
|
|
119
|
+
* @param data Typed JSON request body.
|
|
120
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
121
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
122
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
|
|
123
|
+
*/
|
|
44
124
|
routesUpdateGroupPut(id, data, options) {
|
|
45
125
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/groups/${encodeURIComponent(id)}`, data: data });
|
|
46
126
|
}
|
|
47
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* Performs the delete item operation for the routes capability.
|
|
129
|
+
* Calls `DELETE /api/v1/items/{id}` through the shared IDP-aware Faiber client.
|
|
130
|
+
* @param id Backend path identifier `id`.
|
|
131
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
132
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
133
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:delete.
|
|
134
|
+
*/
|
|
48
135
|
routesDeleteItemDelete(id, options) {
|
|
49
136
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/items/${encodeURIComponent(id)}` });
|
|
50
137
|
}
|
|
51
|
-
/**
|
|
138
|
+
/**
|
|
139
|
+
* Performs the get item operation for the routes capability.
|
|
140
|
+
* Calls `GET /api/v1/items/{id}` through the shared IDP-aware Faiber client.
|
|
141
|
+
* @param id Backend path identifier `id`.
|
|
142
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
143
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
144
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
|
|
145
|
+
*/
|
|
52
146
|
routesGetItemGet(id, options) {
|
|
53
147
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/items/${encodeURIComponent(id)}` });
|
|
54
148
|
}
|
|
55
|
-
/**
|
|
149
|
+
/**
|
|
150
|
+
* Performs the update item operation for the routes capability.
|
|
151
|
+
* Calls `PUT /api/v1/items/{id}` through the shared IDP-aware Faiber client.
|
|
152
|
+
* @param id Backend path identifier `id`.
|
|
153
|
+
* @param data Typed JSON request body.
|
|
154
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
155
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
156
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
|
|
157
|
+
*/
|
|
56
158
|
routesUpdateItemPut(id, data, options) {
|
|
57
159
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/items/${encodeURIComponent(id)}`, data: data });
|
|
58
160
|
}
|
|
59
|
-
/**
|
|
161
|
+
/**
|
|
162
|
+
* Performs the list bases operation for the routes capability.
|
|
163
|
+
* Calls `GET /api/v1/knowledge-bases` through the shared IDP-aware Faiber client.
|
|
164
|
+
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
165
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
166
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
167
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
|
|
168
|
+
*/
|
|
60
169
|
routesListBasesGet(params, options) {
|
|
61
170
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/knowledge-bases`, params });
|
|
62
171
|
}
|
|
63
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* Performs the create base operation for the routes capability.
|
|
174
|
+
* Calls `POST /api/v1/knowledge-bases` through the shared IDP-aware Faiber client.
|
|
175
|
+
* @param data Typed JSON request body.
|
|
176
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
177
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
178
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
|
|
179
|
+
*/
|
|
64
180
|
routesCreateBasePost(data, options) {
|
|
65
181
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/knowledge-bases`, data: data });
|
|
66
182
|
}
|
|
67
|
-
/**
|
|
183
|
+
/**
|
|
184
|
+
* Performs the delete base operation for the routes capability.
|
|
185
|
+
* Calls `DELETE /api/v1/knowledge-bases/{id}` through the shared IDP-aware Faiber client.
|
|
186
|
+
* @param id Backend path identifier `id`.
|
|
187
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
188
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
189
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:delete.
|
|
190
|
+
*/
|
|
68
191
|
routesDeleteBaseDelete(id, options) {
|
|
69
192
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}` });
|
|
70
193
|
}
|
|
71
|
-
/**
|
|
194
|
+
/**
|
|
195
|
+
* Performs the get base operation for the routes capability.
|
|
196
|
+
* Calls `GET /api/v1/knowledge-bases/{id}` through the shared IDP-aware Faiber client.
|
|
197
|
+
* @param id Backend path identifier `id`.
|
|
198
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
199
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
200
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
|
|
201
|
+
*/
|
|
72
202
|
routesGetBaseGet(id, options) {
|
|
73
203
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}` });
|
|
74
204
|
}
|
|
75
|
-
/**
|
|
205
|
+
/**
|
|
206
|
+
* Performs the update base operation for the routes capability.
|
|
207
|
+
* Calls `PUT /api/v1/knowledge-bases/{id}` through the shared IDP-aware Faiber client.
|
|
208
|
+
* @param id Backend path identifier `id`.
|
|
209
|
+
* @param data Typed JSON request body.
|
|
210
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
211
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
212
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
|
|
213
|
+
*/
|
|
76
214
|
routesUpdateBasePut(id, data, options) {
|
|
77
215
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}`, data: data });
|
|
78
216
|
}
|
|
79
|
-
/**
|
|
217
|
+
/**
|
|
218
|
+
* Performs the list edges operation for the routes capability.
|
|
219
|
+
* Calls `GET /api/v1/knowledge-bases/{id}/edges` through the shared IDP-aware Faiber client.
|
|
220
|
+
* @param id Backend path identifier `id`.
|
|
221
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
222
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
223
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
|
|
224
|
+
*/
|
|
80
225
|
routesListEdgesGet(id, options) {
|
|
81
226
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/edges` });
|
|
82
227
|
}
|
|
83
|
-
/**
|
|
228
|
+
/**
|
|
229
|
+
* Performs the create edge operation for the routes capability.
|
|
230
|
+
* Calls `POST /api/v1/knowledge-bases/{id}/edges` through the shared IDP-aware Faiber client.
|
|
231
|
+
* @param id Backend path identifier `id`.
|
|
232
|
+
* @param data Typed JSON request body.
|
|
233
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
234
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
235
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
|
|
236
|
+
*/
|
|
84
237
|
routesCreateEdgePost(id, data, options) {
|
|
85
238
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/edges`, data: data });
|
|
86
239
|
}
|
|
87
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* Performs the export base operation for the routes capability.
|
|
242
|
+
* Calls `GET /api/v1/knowledge-bases/{id}/export` through the shared IDP-aware Faiber client.
|
|
243
|
+
* @param id Backend path identifier `id`.
|
|
244
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
245
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
246
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
|
|
247
|
+
*/
|
|
88
248
|
routesExportBaseGet(id, options) {
|
|
89
249
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/export` });
|
|
90
250
|
}
|
|
91
|
-
/**
|
|
251
|
+
/**
|
|
252
|
+
* Performs the list groups operation for the routes capability.
|
|
253
|
+
* Calls `GET /api/v1/knowledge-bases/{id}/groups` through the shared IDP-aware Faiber client.
|
|
254
|
+
* @param id Backend path identifier `id`.
|
|
255
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
256
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
257
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
|
|
258
|
+
*/
|
|
92
259
|
routesListGroupsGet(id, options) {
|
|
93
260
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/groups` });
|
|
94
261
|
}
|
|
95
|
-
/**
|
|
262
|
+
/**
|
|
263
|
+
* Performs the create group operation for the routes capability.
|
|
264
|
+
* Calls `POST /api/v1/knowledge-bases/{id}/groups` through the shared IDP-aware Faiber client.
|
|
265
|
+
* @param id Backend path identifier `id`.
|
|
266
|
+
* @param data Typed JSON request body.
|
|
267
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
268
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
269
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
|
|
270
|
+
*/
|
|
96
271
|
routesCreateGroupPost(id, data, options) {
|
|
97
272
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/groups`, data: data });
|
|
98
273
|
}
|
|
99
|
-
/**
|
|
274
|
+
/**
|
|
275
|
+
* Performs the list items operation for the routes capability.
|
|
276
|
+
* Calls `GET /api/v1/knowledge-bases/{id}/items` through the shared IDP-aware Faiber client.
|
|
277
|
+
* @param id Backend path identifier `id`.
|
|
278
|
+
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
279
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
280
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
281
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
|
|
282
|
+
*/
|
|
100
283
|
routesListItemsGet(id, params, options) {
|
|
101
284
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/items`, params });
|
|
102
285
|
}
|
|
103
|
-
/**
|
|
286
|
+
/**
|
|
287
|
+
* Performs the create item operation for the routes capability.
|
|
288
|
+
* Calls `POST /api/v1/knowledge-bases/{id}/items` through the shared IDP-aware Faiber client.
|
|
289
|
+
* @param id Backend path identifier `id`.
|
|
290
|
+
* @param data Typed JSON request body.
|
|
291
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
292
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
293
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
|
|
294
|
+
*/
|
|
104
295
|
routesCreateItemPost(id, data, options) {
|
|
105
296
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/items`, data: data });
|
|
106
297
|
}
|
|
107
|
-
/**
|
|
298
|
+
/**
|
|
299
|
+
* Performs the publish operation for the routes capability.
|
|
300
|
+
* Calls `POST /api/v1/knowledge-bases/{id}/publish` through the shared IDP-aware Faiber client.
|
|
301
|
+
* @param id Backend path identifier `id`.
|
|
302
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
303
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
304
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:publish.
|
|
305
|
+
*/
|
|
108
306
|
routesPublishPost(id, options) {
|
|
109
307
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/publish` });
|
|
110
308
|
}
|
|
111
|
-
/**
|
|
309
|
+
/**
|
|
310
|
+
* Performs the list rules operation for the routes capability.
|
|
311
|
+
* Calls `GET /api/v1/match-rules` through the shared IDP-aware Faiber client.
|
|
312
|
+
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
313
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
314
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
315
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
|
|
316
|
+
*/
|
|
112
317
|
routesListRulesGet(params, options) {
|
|
113
318
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/match-rules`, params });
|
|
114
319
|
}
|
|
115
|
-
/**
|
|
320
|
+
/**
|
|
321
|
+
* Performs the create rule operation for the routes capability.
|
|
322
|
+
* Calls `POST /api/v1/match-rules` through the shared IDP-aware Faiber client.
|
|
323
|
+
* @param data Typed JSON request body.
|
|
324
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
325
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
326
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
|
|
327
|
+
*/
|
|
116
328
|
routesCreateRulePost(data, options) {
|
|
117
329
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/match-rules`, data: data });
|
|
118
330
|
}
|
|
119
|
-
/**
|
|
331
|
+
/**
|
|
332
|
+
* Performs the delete rule operation for the routes capability.
|
|
333
|
+
* Calls `DELETE /api/v1/match-rules/{id}` through the shared IDP-aware Faiber client.
|
|
334
|
+
* @param id Backend path identifier `id`.
|
|
335
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
336
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
337
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:delete.
|
|
338
|
+
*/
|
|
120
339
|
routesDeleteRuleDelete(id, options) {
|
|
121
340
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/match-rules/${encodeURIComponent(id)}` });
|
|
122
341
|
}
|
|
123
|
-
/**
|
|
342
|
+
/**
|
|
343
|
+
* Performs the update rule operation for the routes capability.
|
|
344
|
+
* Calls `PUT /api/v1/match-rules/{id}` through the shared IDP-aware Faiber client.
|
|
345
|
+
* @param id Backend path identifier `id`.
|
|
346
|
+
* @param data Typed JSON request body.
|
|
347
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
348
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
349
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
|
|
350
|
+
*/
|
|
124
351
|
routesUpdateRulePut(id, data, options) {
|
|
125
352
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/match-rules/${encodeURIComponent(id)}`, data: data });
|
|
126
353
|
}
|
|
127
|
-
/**
|
|
354
|
+
/**
|
|
355
|
+
* Performs the runtime query operation for the routes capability.
|
|
356
|
+
* Calls `POST /api/v1/runtime/chat/{chat_slug}/query` through the shared IDP-aware Faiber client.
|
|
357
|
+
* @param chatSlug Backend path identifier `chat_slug`.
|
|
358
|
+
* @param data Typed JSON request body.
|
|
359
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
360
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
361
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:runtime.
|
|
362
|
+
*/
|
|
128
363
|
routesRuntimeQueryPost(chatSlug, data, options) {
|
|
129
364
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/runtime/chat/${encodeURIComponent(chatSlug)}/query`, data: data });
|
|
130
365
|
}
|
|
131
|
-
/**
|
|
366
|
+
/**
|
|
367
|
+
* Performs the tool schema operation for the routes capability.
|
|
368
|
+
* Calls `GET /api/v1/runtime/tool-schema` through the shared IDP-aware Faiber client.
|
|
369
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
370
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
371
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
372
|
+
*/
|
|
132
373
|
routesToolSchemaGet(options) {
|
|
133
374
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/runtime/tool-schema` });
|
|
134
375
|
}
|
package/dist/operations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA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