@faiber/faiber-knowledge 0.24.1 → 1.0.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.
@@ -1,425 +1,425 @@
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.
4
+ * List current-organization customer actions, newest first. Only status and the clamped limit are applied; page and other shared ListQuery filters are ignored.
5
5
  * Calls `GET /api/v1/actions` through the shared IDP-aware Faiber client.
6
6
  * @param params Typed query parameters; omitted members retain backend defaults.
7
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.
8
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
9
9
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:actions.
10
10
  */
11
11
  workspaceAssistantContracts(params, options) {
12
12
  return this.client.request({ ...options, method: "GET", url: `/api/v1/actions`, params });
13
13
  }
14
14
  /**
15
- * Performs the update action status operation for the routes capability.
15
+ * Update one organization-scoped action status and customer input. Completed stamps completed_at; a later status change retains that stamp.
16
16
  * Calls `PATCH /api/v1/actions/{id}/status` through the shared IDP-aware Faiber client.
17
17
  * @param id Backend path identifier `id`.
18
18
  * @param data Typed JSON request body.
19
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.
20
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
21
21
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:actions.
22
22
  */
23
23
  routesUpdateActionStatusPatch(id, data, options) {
24
24
  return this.client.request({ ...options, method: "PATCH", url: `/api/v1/actions/${encodeURIComponent(id)}/status`, data: data });
25
25
  }
26
26
  /**
27
- * Performs the list audit operation for the routes capability.
27
+ * List editor audit rows for the current organization, newest first and limited to 1–200. Shared query fields other than limit are ignored.
28
28
  * Calls `GET /api/v1/audit` through the shared IDP-aware Faiber client.
29
29
  * @param params Typed query parameters; omitted members retain backend defaults.
30
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.
31
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
32
32
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:audit.
33
33
  */
34
34
  routesListAuditGet(params, options) {
35
35
  return this.client.request({ ...options, method: "GET", url: `/api/v1/audit`, params });
36
36
  }
37
37
  /**
38
- * Performs the audit events operation for the platform capability.
38
+ * List up to 500 current-organization platform audit events. knowledge:memory:read additionally includes redacted memory events; knowledge:read alone excludes them.
39
39
  * Calls `GET /api/v1/audit-events` through the shared IDP-aware Faiber client.
40
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.
41
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
42
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read; knowledge:memory:read additionally includes redacted memory events.
43
43
  */
44
44
  platformAuditEventsGet(options) {
45
45
  return this.client.request({ ...options, method: "GET", url: `/api/v1/audit-events` });
46
46
  }
47
47
  /**
48
- * Performs the list bindings operation for the routes capability.
48
+ * List current-organization chat bindings ordered by chat slug. The result is not paginated.
49
49
  * Calls `GET /api/v1/chat-bindings` through the shared IDP-aware Faiber client.
50
50
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
51
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
51
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
52
52
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
53
53
  */
54
54
  routesListBindingsGet(options) {
55
55
  return this.client.request({ ...options, method: "GET", url: `/api/v1/chat-bindings` });
56
56
  }
57
57
  /**
58
- * Performs the create binding operation for the routes capability.
58
+ * Create a chat binding to an authorized base with group scope and tool policy; returns 201.
59
59
  * Calls `POST /api/v1/chat-bindings` through the shared IDP-aware Faiber client.
60
60
  * @param data Typed JSON request body.
61
61
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
62
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
62
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
63
63
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
64
64
  */
65
65
  routesCreateBindingPost(data, options) {
66
66
  return this.client.request({ ...options, method: "POST", url: `/api/v1/chat-bindings`, data: data });
67
67
  }
68
68
  /**
69
- * Performs the delete binding operation for the routes capability.
69
+ * Delete a tenant-owned chat binding and audit the change transactionally; returns 204.
70
70
  * Calls `DELETE /api/v1/chat-bindings/{id}` through the shared IDP-aware Faiber client.
71
71
  * @param id Backend path identifier `id`.
72
72
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
73
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
73
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
74
74
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:delete.
75
75
  */
76
76
  routesDeleteBindingDelete(id, options) {
77
77
  return this.client.request({ ...options, method: "DELETE", url: `/api/v1/chat-bindings/${encodeURIComponent(id)}` });
78
78
  }
79
79
  /**
80
- * Performs the update binding operation for the routes capability.
80
+ * Update a tenant-owned chat binding under a base lock and optional expected_version; no implicit stale retry is performed.
81
81
  * Calls `PUT /api/v1/chat-bindings/{id}` through the shared IDP-aware Faiber client.
82
82
  * @param id Backend path identifier `id`.
83
83
  * @param data Typed JSON request body.
84
84
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
85
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
85
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
86
86
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
87
87
  */
88
88
  routesUpdateBindingPut(id, data, options) {
89
89
  return this.client.request({ ...options, method: "PUT", url: `/api/v1/chat-bindings/${encodeURIComponent(id)}`, data: data });
90
90
  }
91
91
  /**
92
- * Performs the list documents operation for the platform capability.
92
+ * List scoped nondeleted document summaries, excluding content and metadata. No client-side synthetic pagination is applied.
93
93
  * Calls `GET /api/v1/documents` through the shared IDP-aware Faiber client.
94
94
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
95
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
95
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
96
96
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
97
97
  */
98
98
  platformListDocumentsGet(options) {
99
99
  return this.client.request({ ...options, method: "GET", url: `/api/v1/documents` });
100
100
  }
101
101
  /**
102
- * Performs the ingest document operation for the platform capability.
102
+ * Synchronously index governed text/chunks. Identical content returns 200 unchanged; changed content returns 201 with a completed job. Embedding readiness is separate.
103
103
  * Calls `POST /api/v1/documents` through the shared IDP-aware Faiber client.
104
104
  * @param data Typed JSON request body.
105
105
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
106
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
106
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
107
107
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
108
108
  */
109
109
  platformIngestDocumentPost(data, options) {
110
110
  return this.client.request({ ...options, method: "POST", url: `/api/v1/documents`, data: data });
111
111
  }
112
112
  /**
113
- * Performs the reprocess document operation for the platform capability.
113
+ * Persist or reuse a scoped document-reprocess job and return 202 with the actual job ID. Queued does not certify execution.
114
114
  * Calls `POST /api/v1/documents/{id}/reprocess` through the shared IDP-aware Faiber client.
115
115
  * @param id Backend path identifier `id`.
116
116
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
117
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
117
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
118
118
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
119
119
  */
120
120
  platformReprocessDocumentPost(id, options) {
121
121
  return this.client.request({ ...options, method: "POST", url: `/api/v1/documents/${encodeURIComponent(id)}/reprocess` });
122
122
  }
123
123
  /**
124
- * Performs the delete edge operation for the routes capability.
124
+ * Delete an organization-owned graph edge and record editor audit transactionally; returns 204.
125
125
  * Calls `DELETE /api/v1/edges/{id}` through the shared IDP-aware Faiber client.
126
126
  * @param id Backend path identifier `id`.
127
127
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
128
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
128
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
129
129
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:delete.
130
130
  */
131
131
  routesDeleteEdgeDelete(id, options) {
132
132
  return this.client.request({ ...options, method: "DELETE", url: `/api/v1/edges/${encodeURIComponent(id)}` });
133
133
  }
134
134
  /**
135
- * Performs the update edge operation for the routes capability.
135
+ * Update an organization-owned graph edge under an authorized base lock and optional expected_version; stale edits return 409.
136
136
  * Calls `PUT /api/v1/edges/{id}` through the shared IDP-aware Faiber client.
137
137
  * @param id Backend path identifier `id`.
138
138
  * @param data Typed JSON request body.
139
139
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
140
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
140
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
141
141
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
142
142
  */
143
143
  routesUpdateEdgePut(id, data, options) {
144
144
  return this.client.request({ ...options, method: "PUT", url: `/api/v1/edges/${encodeURIComponent(id)}`, data: data });
145
145
  }
146
146
  /**
147
- * Performs the list evaluation cases operation for the platform capability.
147
+ * Read up to 500 active current-organization evaluation cases ordered by latest update.
148
148
  * Calls `GET /api/v1/evaluation-cases` through the shared IDP-aware Faiber client.
149
149
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
150
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
150
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
151
151
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
152
152
  */
153
153
  platformListEvaluationCasesGet(options) {
154
154
  return this.client.request({ ...options, method: "GET", url: `/api/v1/evaluation-cases` });
155
155
  }
156
156
  /**
157
- * Performs the save evaluation case operation for the platform capability.
157
+ * Upsert a stable-key evaluation case in the current organization and return 201. Blank stable key/query and identity/secret-bearing context fail validation.
158
158
  * Calls `POST /api/v1/evaluation-cases` through the shared IDP-aware Faiber client.
159
159
  * @param data Typed JSON request body.
160
160
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
161
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
161
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
162
162
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
163
163
  */
164
164
  platformSaveEvaluationCasePost(data, options) {
165
165
  return this.client.request({ ...options, method: "POST", url: `/api/v1/evaluation-cases`, data: data });
166
166
  }
167
167
  /**
168
- * Performs the delete group operation for the routes capability.
168
+ * Soft-delete one authorized empty group. Child groups, active items or active rules block deletion with 409; success returns 204.
169
169
  * Calls `DELETE /api/v1/groups/{id}` through the shared IDP-aware Faiber client.
170
170
  * @param id Backend path identifier `id`.
171
171
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
172
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
172
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
173
173
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:delete.
174
174
  */
175
175
  routesDeleteGroupDelete(id, options) {
176
176
  return this.client.request({ ...options, method: "DELETE", url: `/api/v1/groups/${encodeURIComponent(id)}` });
177
177
  }
178
178
  /**
179
- * Performs the update group operation for the routes capability.
179
+ * Update a group under a tenant-authorized locked base. Parent moves validate cycles and descendant levels; optional expected_version detects stale drafts.
180
180
  * Calls `PUT /api/v1/groups/{id}` through the shared IDP-aware Faiber client.
181
181
  * @param id Backend path identifier `id`.
182
182
  * @param data Typed JSON request body.
183
183
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
184
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
184
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
185
185
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
186
186
  */
187
187
  routesUpdateGroupPut(id, data, options) {
188
188
  return this.client.request({ ...options, method: "PUT", url: `/api/v1/groups/${encodeURIComponent(id)}`, data: data });
189
189
  }
190
190
  /**
191
- * Performs the delete item operation for the routes capability.
191
+ * Soft-delete one authorized item transactionally and record editor audit; returns 204.
192
192
  * Calls `DELETE /api/v1/items/{id}` through the shared IDP-aware Faiber client.
193
193
  * @param id Backend path identifier `id`.
194
194
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
195
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
195
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
196
196
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:delete.
197
197
  */
198
198
  routesDeleteItemDelete(id, options) {
199
199
  return this.client.request({ ...options, method: "DELETE", url: `/api/v1/items/${encodeURIComponent(id)}` });
200
200
  }
201
201
  /**
202
- * Performs the get item operation for the routes capability.
202
+ * Read a nondeleted item through its organization-owned base; absent and foreign items return 404.
203
203
  * Calls `GET /api/v1/items/{id}` through the shared IDP-aware Faiber client.
204
204
  * @param id Backend path identifier `id`.
205
205
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
206
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
206
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
207
207
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
208
208
  */
209
209
  routesGetItemGet(id, options) {
210
210
  return this.client.request({ ...options, method: "GET", url: `/api/v1/items/${encodeURIComponent(id)}` });
211
211
  }
212
212
  /**
213
- * Performs the update item operation for the routes capability.
213
+ * Update an item transactionally with optional expected_version. Omitted/null optional scalar fields preserve current values; empty link strings clear links.
214
214
  * Calls `PUT /api/v1/items/{id}` through the shared IDP-aware Faiber client.
215
215
  * @param id Backend path identifier `id`.
216
216
  * @param data Typed JSON request body.
217
217
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
218
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
218
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
219
219
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
220
220
  */
221
221
  routesUpdateItemPut(id, data, options) {
222
222
  return this.client.request({ ...options, method: "PUT", url: `/api/v1/items/${encodeURIComponent(id)}`, data: data });
223
223
  }
224
224
  /**
225
- * Performs the list bases operation for the routes capability.
225
+ * Search current-organization nondeleted bases by name/slug and optional status. Page defaults to 1 and limit to 50, clamped to 1–200.
226
226
  * Calls `GET /api/v1/knowledge-bases` through the shared IDP-aware Faiber client.
227
227
  * @param params Typed query parameters; omitted members retain backend defaults.
228
228
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
229
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
229
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
230
230
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
231
231
  */
232
232
  routesListBasesGet(params, options) {
233
233
  return this.client.request({ ...options, method: "GET", url: `/api/v1/knowledge-bases`, params });
234
234
  }
235
235
  /**
236
- * Performs the create base operation for the routes capability.
236
+ * Create a draft base for the current organization. Slug validation and organization slug uniqueness are enforced; returns 201.
237
237
  * Calls `POST /api/v1/knowledge-bases` through the shared IDP-aware Faiber client.
238
238
  * @param data Typed JSON request body.
239
239
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
240
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
240
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
241
241
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
242
242
  */
243
243
  routesCreateBasePost(data, options) {
244
244
  return this.client.request({ ...options, method: "POST", url: `/api/v1/knowledge-bases`, data: data });
245
245
  }
246
246
  /**
247
- * Performs the delete base operation for the routes capability.
247
+ * Soft-delete and archive a current-organization base transactionally; retained child rows remain inaccessible through the base. Returns 204.
248
248
  * Calls `DELETE /api/v1/knowledge-bases/{id}` through the shared IDP-aware Faiber client.
249
249
  * @param id Backend path identifier `id`.
250
250
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
251
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
251
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
252
252
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:delete.
253
253
  */
254
254
  routesDeleteBaseDelete(id, options) {
255
255
  return this.client.request({ ...options, method: "DELETE", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}` });
256
256
  }
257
257
  /**
258
- * Performs the get base operation for the routes capability.
258
+ * Read a nondeleted organization-owned base. Foreign and missing base IDs return 404.
259
259
  * Calls `GET /api/v1/knowledge-bases/{id}` through the shared IDP-aware Faiber client.
260
260
  * @param id Backend path identifier `id`.
261
261
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
262
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
262
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
263
263
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
264
264
  */
265
265
  routesGetBaseGet(id, options) {
266
266
  return this.client.request({ ...options, method: "GET", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}` });
267
267
  }
268
268
  /**
269
- * Performs the update base operation for the routes capability.
269
+ * Update an organization-owned base under optional expected_version. Null scalar fields behave as omitted; stale versions conflict with 409.
270
270
  * Calls `PUT /api/v1/knowledge-bases/{id}` through the shared IDP-aware Faiber client.
271
271
  * @param id Backend path identifier `id`.
272
272
  * @param data Typed JSON request body.
273
273
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
274
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
274
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
275
275
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
276
276
  */
277
277
  routesUpdateBasePut(id, data, options) {
278
278
  return this.client.request({ ...options, method: "PUT", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}`, data: data });
279
279
  }
280
280
  /**
281
- * Performs the list edges operation for the routes capability.
281
+ * Read graph edges after authorizing their base, ordered by latest update. This endpoint does not accept pagination.
282
282
  * Calls `GET /api/v1/knowledge-bases/{id}/edges` through the shared IDP-aware Faiber client.
283
283
  * @param id Backend path identifier `id`.
284
284
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
285
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
285
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
286
286
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
287
287
  */
288
288
  routesListEdgesGet(id, options) {
289
289
  return this.client.request({ ...options, method: "GET", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/edges` });
290
290
  }
291
291
  /**
292
- * Performs the create edge operation for the routes capability.
292
+ * Create an edge with both endpoint items in the authorized base. Invalid cross-base endpoints fail; returns 201.
293
293
  * Calls `POST /api/v1/knowledge-bases/{id}/edges` through the shared IDP-aware Faiber client.
294
294
  * @param id Backend path identifier `id`.
295
295
  * @param data Typed JSON request body.
296
296
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
297
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
297
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
298
298
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
299
299
  */
300
300
  routesCreateEdgePost(id, data, options) {
301
301
  return this.client.request({ ...options, method: "POST", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/edges`, data: data });
302
302
  }
303
303
  /**
304
- * Performs the export base operation for the routes capability.
304
+ * Export the current mutable authoring base, groups, items, edges and rules with an export timestamp. This is not an immutable published release.
305
305
  * Calls `GET /api/v1/knowledge-bases/{id}/export` through the shared IDP-aware Faiber client.
306
306
  * @param id Backend path identifier `id`.
307
307
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
308
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
308
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
309
309
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
310
310
  */
311
311
  routesExportBaseGet(id, options) {
312
312
  return this.client.request({ ...options, method: "GET", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/export` });
313
313
  }
314
314
  /**
315
- * Performs the list groups operation for the routes capability.
315
+ * List nondeleted groups after authorizing their base; returns an unpaginated array ordered by level then sort order.
316
316
  * Calls `GET /api/v1/knowledge-bases/{id}/groups` through the shared IDP-aware Faiber client.
317
317
  * @param id Backend path identifier `id`.
318
318
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
319
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
319
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
320
320
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
321
321
  */
322
322
  routesListGroupsGet(id, options) {
323
323
  return this.client.request({ ...options, method: "GET", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/groups` });
324
324
  }
325
325
  /**
326
- * Performs the create group operation for the routes capability.
326
+ * Create a group under a tenant-authorized locked base. Parent relationships and slug uniqueness are validated; returns 201.
327
327
  * Calls `POST /api/v1/knowledge-bases/{id}/groups` through the shared IDP-aware Faiber client.
328
328
  * @param id Backend path identifier `id`.
329
329
  * @param data Typed JSON request body.
330
330
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
331
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
331
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
332
332
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
333
333
  */
334
334
  routesCreateGroupPost(id, data, options) {
335
335
  return this.client.request({ ...options, method: "POST", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/groups`, data: data });
336
336
  }
337
337
  /**
338
- * Performs the list items operation for the routes capability.
338
+ * Page nondeleted items after authorizing their base. Status, kind, link identifiers and slug/kind search apply; shared group filter is ignored.
339
339
  * Calls `GET /api/v1/knowledge-bases/{id}/items` through the shared IDP-aware Faiber client.
340
340
  * @param id Backend path identifier `id`.
341
341
  * @param params Typed query parameters; omitted members retain backend defaults.
342
342
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
343
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
343
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
344
344
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
345
345
  */
346
346
  routesListItemsGet(id, params, options) {
347
347
  return this.client.request({ ...options, method: "GET", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/items`, params });
348
348
  }
349
349
  /**
350
- * Performs the create item operation for the routes capability.
350
+ * Create a draft item in an authorized group. Importance, validity and linked service/entity fields are validated; returns 201.
351
351
  * Calls `POST /api/v1/knowledge-bases/{id}/items` through the shared IDP-aware Faiber client.
352
352
  * @param id Backend path identifier `id`.
353
353
  * @param data Typed JSON request body.
354
354
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
355
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
355
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
356
356
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
357
357
  */
358
358
  routesCreateItemPost(id, data, options) {
359
359
  return this.client.request({ ...options, method: "POST", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/items`, data: data });
360
360
  }
361
361
  /**
362
- * Performs the publish operation for the routes capability.
362
+ * Publish an immutable release snapshot of complete authorized content and update the base release pointer transactionally. Invalid content fails with 400.
363
363
  * Calls `POST /api/v1/knowledge-bases/{id}/publish` through the shared IDP-aware Faiber client.
364
364
  * @param id Backend path identifier `id`.
365
365
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
366
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
366
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
367
367
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:publish.
368
368
  */
369
369
  routesPublishPost(id, options) {
370
370
  return this.client.request({ ...options, method: "POST", url: `/api/v1/knowledge-bases/${encodeURIComponent(id)}/publish` });
371
371
  }
372
372
  /**
373
- * Performs the get release operation for the routes capability.
373
+ * Read an immutable release after authorizing its base. The base ownership check also rejects missing or deleted bases.
374
374
  * Calls `GET /api/v1/knowledge-releases/{id}` through the shared IDP-aware Faiber client.
375
375
  * @param id Backend path identifier `id`.
376
376
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
377
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
377
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
378
378
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
379
379
  */
380
380
  routesGetReleaseGet(id, options) {
381
381
  return this.client.request({ ...options, method: "GET", url: `/api/v1/knowledge-releases/${encodeURIComponent(id)}` });
382
382
  }
383
383
  /**
384
- * Performs the list rules operation for the routes capability.
384
+ * Search nondeleted rules across all owned active bases before stable priority/ID pagination. Base, group, enabled and localized name/slug filters apply.
385
385
  * Calls `GET /api/v1/match-rules` through the shared IDP-aware Faiber client.
386
386
  * @param params Typed query parameters; omitted members retain backend defaults.
387
387
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
388
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
388
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
389
389
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
390
390
  */
391
391
  routesListRulesGet(params, options) {
392
392
  return this.client.request({ ...options, method: "GET", url: `/api/v1/match-rules`, params });
393
393
  }
394
394
  /**
395
- * Performs the create rule operation for the routes capability.
395
+ * Create a rule with validated base/group relationship and conditions; outcomes retain their extensible JSON shape. Returns 201.
396
396
  * Calls `POST /api/v1/match-rules` through the shared IDP-aware Faiber client.
397
397
  * @param data Typed JSON request body.
398
398
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
399
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
399
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
400
400
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
401
401
  */
402
402
  routesCreateRulePost(data, options) {
403
403
  return this.client.request({ ...options, method: "POST", url: `/api/v1/match-rules`, data: data });
404
404
  }
405
405
  /**
406
- * Performs the delete rule operation for the routes capability.
406
+ * Soft-delete an authorized match rule and record editor audit transactionally; returns 204.
407
407
  * Calls `DELETE /api/v1/match-rules/{id}` through the shared IDP-aware Faiber client.
408
408
  * @param id Backend path identifier `id`.
409
409
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
410
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
410
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
411
411
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:delete.
412
412
  */
413
413
  routesDeleteRuleDelete(id, options) {
414
414
  return this.client.request({ ...options, method: "DELETE", url: `/api/v1/match-rules/${encodeURIComponent(id)}` });
415
415
  }
416
416
  /**
417
- * Performs the update rule operation for the routes capability.
417
+ * Update a rule after locked base ownership and group validation. Optional expected_version returns 409 for stale edits.
418
418
  * Calls `PUT /api/v1/match-rules/{id}` through the shared IDP-aware Faiber client.
419
419
  * @param id Backend path identifier `id`.
420
420
  * @param data Typed JSON request body.
421
421
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
422
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
422
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
423
423
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
424
424
  */
425
425
  routesUpdateRulePut(id, data, options) {
@@ -430,417 +430,513 @@ export class KnowledgeOperations extends ServiceApi {
430
430
  * Calls `POST /api/v1/memory-outbox/{id}/replay` through the shared IDP-aware Faiber client.
431
431
  * @param id Backend path identifier `id`.
432
432
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
433
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
433
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
434
434
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:memory:write.
435
435
  */
436
436
  platformReplayMemoryOutboxPost(id, options) {
437
437
  return this.client.request({ ...options, method: "POST", url: `/api/v1/memory-outbox/${encodeURIComponent(id)}/replay` });
438
438
  }
439
439
  /**
440
- * Performs the list memory subjects operation for the platform capability.
440
+ * List bounded current subjects with literal profile/identity search, type/status/enabled filters and stable pagination. Return separate nullable overrides, effective policy, actual counts, server capabilities and captured revision; only the bounded Profile identity allowlist is returned.
441
441
  * Calls `GET /api/v1/memory-subjects` through the shared IDP-aware Faiber client.
442
442
  * @param params Typed query parameters; omitted members retain backend defaults.
443
443
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
444
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
445
- * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:memory:read.
444
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
445
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:memory:read; current organization/subject predicates on every read.
446
446
  */
447
447
  platformListMemorySubjectsGet(params, options) {
448
448
  return this.client.request({ ...options, method: "GET", url: `/api/v1/memory-subjects`, params });
449
449
  }
450
450
  /**
451
- * Performs the clear memory subject operation for the platform capability.
451
+ * Atomically fence selected short/long or full subject scope and update current records/counters/audit.204 confirms commit. Original Chat conversations and retained physical copies remain separate service-owned actions.
452
452
  * Calls `DELETE /api/v1/memory-subjects/{id}` through the shared IDP-aware Faiber client.
453
453
  * @param id Backend path identifier `id`.
454
454
  * @param params Typed query parameters; omitted members retain backend defaults.
455
455
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
456
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
457
- * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
456
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
457
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: current authenticated subject owner OR scoped knowledge:memory:delete; common transactional scope fence/audit.
458
458
  */
459
459
  platformClearMemorySubjectDelete(id, params, options) {
460
460
  return this.client.request({ ...options, method: "DELETE", url: `/api/v1/memory-subjects/${encodeURIComponent(id)}`, params });
461
461
  }
462
462
  /**
463
- * Performs the set memory override operation for the platform capability.
463
+ * Read one currently authorized subject by ID. Foreign and absent tenant records return404; response separates raw nullable overrides from effective policy and provides the reviewed policy revision.
464
+ * Calls `GET /api/v1/memory-subjects/{id}` through the shared IDP-aware Faiber client.
465
+ * @param id Backend path identifier `id`.
466
+ * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
467
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
468
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:memory:read; current organization/subject predicates on every read.
469
+ */
470
+ platformMemorySubjectGet(id, options) {
471
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/memory-subjects/${encodeURIComponent(id)}` });
472
+ }
473
+ /**
474
+ * Read paginated authorized audit identifiers/actions/actors/dates. Retained before/after payloads and free-text reasons are excluded to prevent forgotten content reappearing through audit.
475
+ * Calls `GET /api/v1/memory-subjects/{id}/audit-events` through the shared IDP-aware Faiber client.
476
+ * @param id Backend path identifier `id`.
477
+ * @param params Typed query parameters; omitted members retain backend defaults.
478
+ * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
479
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
480
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:memory:read; current organization/subject predicates on every read.
481
+ */
482
+ platformMemoryAuditGet(id, params, options) {
483
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/memory-subjects/${encodeURIComponent(id)}/audit-events`, params });
484
+ }
485
+ /**
486
+ * Apply an explicit correction UUID with1–32 reviewed active target IDs, an8192-byte statement and500-byte reason. Complete conflict-set CAS, immutable replay receipt and evidence/audit share one transaction;409 must never be automatically rebased.
487
+ * Calls `POST /api/v1/memory-subjects/{id}/corrections` through the shared IDP-aware Faiber client.
488
+ * @param id Backend path identifier `id`.
489
+ * @param data Typed JSON request body.
490
+ * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
491
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
492
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:memory:write AND current authenticated subject owner; active permitted long memory policy.
493
+ */
494
+ platformCorrectMemoryPost(id, data, options) {
495
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/memory-subjects/${encodeURIComponent(id)}/corrections`, data: data });
496
+ }
497
+ /**
498
+ * Read1–200 atomic records with allowlisted type/lifecycle filters and deterministic pages. Expired/forgotten content is redacted. Text, JSON fact values and provenance references are bounded; no embedding/raw metadata payload is exposed.
499
+ * Calls `GET /api/v1/memory-subjects/{id}/memories` through the shared IDP-aware Faiber client.
500
+ * @param id Backend path identifier `id`.
501
+ * @param params Typed query parameters; omitted members retain backend defaults.
502
+ * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
503
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
504
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:memory:read; current organization/subject predicates on every read.
505
+ */
506
+ platformListMemoriesGet(id, params, options) {
507
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/memory-subjects/${encodeURIComponent(id)}/memories`, params });
508
+ }
509
+ /**
510
+ * Set nullable personal overrides using a captured revision. Null/missing values reset under PUT semantics. Policy/override/epoch change makes the revision stale;409 commits no state or audit. Response is a safe current subject projection. Assistant disabled lanes are hard ceilings even when the legacy widening flag is true.
464
511
  * Calls `PUT /api/v1/memory-subjects/{id}/policy` through the shared IDP-aware Faiber client.
465
512
  * @param id Backend path identifier `id`.
466
513
  * @param data Typed JSON request body.
467
514
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
468
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
469
- * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
515
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
516
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: current authenticated subject owner OR scoped knowledge:memory:write; captured expected_revision and current policy rules.
470
517
  */
471
518
  platformSetMemoryOverridePut(id, data, options) {
472
519
  return this.client.request({ ...options, method: "PUT", url: `/api/v1/memory-subjects/${encodeURIComponent(id)}/policy`, data: data });
473
520
  }
474
521
  /**
475
- * Performs the forget memory operation for the platform capability.
522
+ * Forget one authorized retained memory row atomically with counters/audit. This does not certify source-family tombstones or erasure of associated conversation projections.
476
523
  * Calls `DELETE /api/v1/memory-subjects/{subject_id}/memories/{memory_id}` through the shared IDP-aware Faiber client.
477
524
  * @param subjectId Backend path identifier `subject_id`.
478
525
  * @param memoryId Backend path identifier `memory_id`.
479
526
  * @param params Typed query parameters; omitted members retain backend defaults.
480
527
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
481
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
482
- * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
528
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
529
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: current authenticated subject owner OR scoped knowledge:memory:delete.
483
530
  */
484
531
  platformForgetMemoryDelete(subjectId, memoryId, params, options) {
485
532
  return this.client.request({ ...options, method: "DELETE", url: `/api/v1/memory-subjects/${encodeURIComponent(subjectId)}/memories/${encodeURIComponent(memoryId)}`, params });
486
533
  }
487
534
  /**
488
- * Performs the invalidate policy cache operation for the platform capability.
535
+ * Read one memory using organization AND subject AND memory predicates. Forgotten/expired record text, fact values, confidence and evidence are redacted, including a forgotten parent subject.
536
+ * Calls `GET /api/v1/memory-subjects/{subject_id}/memories/{memory_id}` through the shared IDP-aware Faiber client.
537
+ * @param subjectId Backend path identifier `subject_id`.
538
+ * @param memoryId Backend path identifier `memory_id`.
539
+ * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
540
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
541
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:memory:read; current organization/subject predicates on every read.
542
+ */
543
+ platformMemoryRecordGet(subjectId, memoryId, options) {
544
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/memory-subjects/${encodeURIComponent(subjectId)}/memories/${encodeURIComponent(memoryId)}` });
545
+ }
546
+ /**
547
+ * Remove only current-organization assistant policy cache entries and return their count after audit.
489
548
  * Calls `POST /api/v1/platform/cache/invalidate` through the shared IDP-aware Faiber client.
490
549
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
491
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
550
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
492
551
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
493
552
  */
494
553
  platformInvalidatePolicyCachePost(options) {
495
554
  return this.client.request({ ...options, method: "POST", url: `/api/v1/platform/cache/invalidate` });
496
555
  }
497
556
  /**
498
- * Performs the catalog operation for the platform capability.
557
+ * Read scoped base/recommender summaries and full assistant policies with enabled binding IDs. This is an inventory, not an authorization grant.
499
558
  * Calls `GET /api/v1/platform/catalog` through the shared IDP-aware Faiber client.
500
559
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
501
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
560
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
502
561
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
503
562
  */
504
563
  platformCatalogGet(options) {
505
564
  return this.client.request({ ...options, method: "GET", url: `/api/v1/platform/catalog` });
506
565
  }
507
566
  /**
508
- * Performs the converters operation for the platform capability.
567
+ * List converter registry capabilities, configuration requirements and reported health. Registry availability does not certify that a worker executed a job.
509
568
  * Calls `GET /api/v1/platform/converters` through the shared IDP-aware Faiber client.
510
569
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
511
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
570
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
512
571
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
513
572
  */
514
573
  platformConvertersGet(options) {
515
574
  return this.client.request({ ...options, method: "GET", url: `/api/v1/platform/converters` });
516
575
  }
517
576
  /**
518
- * Performs the status operation for the platform capability.
577
+ * Read scoped inventories and last-24-hour retrieval aggregates. Metrics are null without traces; ready is not proof of every external dependency.
519
578
  * Calls `GET /api/v1/platform/status` through the shared IDP-aware Faiber client.
520
579
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
521
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
580
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
522
581
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
523
582
  */
524
583
  platformStatusGet(options) {
525
584
  return this.client.request({ ...options, method: "GET", url: `/api/v1/platform/status` });
526
585
  }
527
586
  /**
528
- * Performs the processing jobs operation for the platform capability.
587
+ * List up to 500 current-organization processing job rows by latest update; counters and queued status do not certify execution.
529
588
  * Calls `GET /api/v1/processing-jobs` through the shared IDP-aware Faiber client.
530
589
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
531
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
590
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
532
591
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
533
592
  */
534
593
  platformProcessingJobsGet(options) {
535
594
  return this.client.request({ ...options, method: "GET", url: `/api/v1/processing-jobs` });
536
595
  }
537
596
  /**
538
- * Performs the cancel processing job operation for the platform capability.
597
+ * Request cancellation of a scoped job. Queued/retry jobs become cancelled immediately; processing work retains status until worker acknowledgement.
539
598
  * Calls `POST /api/v1/processing-jobs/{id}/cancel` through the shared IDP-aware Faiber client.
540
599
  * @param id Backend path identifier `id`.
541
600
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
542
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
601
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
543
602
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
544
603
  */
545
604
  platformCancelProcessingJobPost(id, options) {
546
605
  return this.client.request({ ...options, method: "POST", url: `/api/v1/processing-jobs/${encodeURIComponent(id)}/cancel` });
547
606
  }
548
607
  /**
549
- * Performs the retry processing job operation for the platform capability.
608
+ * Requeue a failed, dead-letter, retry or cancelled job with a new attempt lifecycle after scoped locks and duplicate-work checks. Ineligible jobs conflict.
550
609
  * Calls `POST /api/v1/processing-jobs/{id}/retry` through the shared IDP-aware Faiber client.
551
610
  * @param id Backend path identifier `id`.
552
611
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
553
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
612
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
554
613
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
555
614
  */
556
615
  platformRetryProcessingJobPost(id, options) {
557
616
  return this.client.request({ ...options, method: "POST", url: `/api/v1/processing-jobs/${encodeURIComponent(id)}/retry` });
558
617
  }
559
618
  /**
560
- * Performs the list recommenders operation for the platform capability.
619
+ * List scoped recommender groups with their items ordered by sort order; this is an unpaginated nested inventory.
561
620
  * Calls `GET /api/v1/recommender-groups` through the shared IDP-aware Faiber client.
562
621
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
563
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
622
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
564
623
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
565
624
  */
566
625
  platformListRecommendersGet(options) {
567
626
  return this.client.request({ ...options, method: "GET", url: `/api/v1/recommender-groups` });
568
627
  }
569
628
  /**
570
- * Performs the create recommender group operation for the platform capability.
629
+ * Create a current-organization recommender group with max_results clamped to 1–50; returns 201.
571
630
  * Calls `POST /api/v1/recommender-groups` through the shared IDP-aware Faiber client.
572
631
  * @param data Typed JSON request body.
573
632
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
574
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
633
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
575
634
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
576
635
  */
577
636
  platformCreateRecommenderGroupPost(data, options) {
578
637
  return this.client.request({ ...options, method: "POST", url: `/api/v1/recommender-groups`, data: data });
579
638
  }
580
639
  /**
581
- * Performs the create recommender item operation for the platform capability.
640
+ * Create an item only inside a current-organization recommender group; missing or foreign groups return 404 and success returns 201.
582
641
  * Calls `POST /api/v1/recommender-groups/{id}/items` through the shared IDP-aware Faiber client.
583
642
  * @param id Backend path identifier `id`.
584
643
  * @param data Typed JSON request body.
585
644
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
586
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
645
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
587
646
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
588
647
  */
589
648
  platformCreateRecommenderItemPost(id, data, options) {
590
649
  return this.client.request({ ...options, method: "POST", url: `/api/v1/recommender-groups/${encodeURIComponent(id)}/items`, data: data });
591
650
  }
592
651
  /**
593
- * Performs the configure assistant operation for the platform capability.
652
+ * Read authoritative applied/cancelled operation outcome after waiting for concurrent configuration writers. Absence is404, never inferred success.
653
+ * Calls `GET /api/v1/runtime/assistants/{assistant_id}/configuration-operations/{operation_id}` through the shared IDP-aware Faiber client.
654
+ * @param assistantId Backend path identifier `assistant_id`.
655
+ * @param operationId Backend path identifier `operation_id`.
656
+ * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
657
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
658
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write; current tenant and assistant.
659
+ */
660
+ platformAssistantConfigurationOperationGet(assistantId, operationId, options) {
661
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/runtime/assistants/${encodeURIComponent(assistantId)}/configuration-operations/${encodeURIComponent(operationId)}` });
662
+ }
663
+ /**
664
+ * Write an immutable cancellation tombstone with a bounded reason before releasing a pending Chat fence. Delayed original delivery conflicts. Applied configurations require recovery and cannot be cancelled as absent.
665
+ * Calls `POST /api/v1/runtime/assistants/{assistant_id}/configuration-operations/{operation_id}` through the shared IDP-aware Faiber client.
666
+ * @param assistantId Backend path identifier `assistant_id`.
667
+ * @param operationId Backend path identifier `operation_id`.
668
+ * @param data Typed JSON request body.
669
+ * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
670
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
671
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write; current authorized administration.
672
+ */
673
+ platformCancelAssistantConfigurationOperationPost(assistantId, operationId, data, options) {
674
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/runtime/assistants/${encodeURIComponent(assistantId)}/configuration-operations/${encodeURIComponent(operationId)}`, data: data });
675
+ }
676
+ /**
677
+ * Capture the current assistant policy revision at edit time. Zero denotes absent policy. Never fetch a fresh revision to rebase a stale submission.
678
+ * Calls `GET /api/v1/runtime/assistants/{assistant_id}/configure` through the shared IDP-aware Faiber client.
679
+ * @param assistantId Backend path identifier `assistant_id`.
680
+ * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
681
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
682
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write; current tenant.
683
+ */
684
+ platformAssistantConfigurationSnapshotGet(assistantId, options) {
685
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/runtime/assistants/${encodeURIComponent(assistantId)}/configure` });
686
+ }
687
+ /**
688
+ * Apply a non-nil configuration UUID with the captured policy revision. Policy, history, bindings, epochs, audit and exact operation outcome share one transaction. Identical original-actor replay returns the immutable result without duplicate epoch changes; cancelled or changed requests conflict.
594
689
  * Calls `PUT /api/v1/runtime/assistants/{assistant_id}/configure` through the shared IDP-aware Faiber client.
595
690
  * @param assistantId Backend path identifier `assistant_id`.
596
691
  * @param data Typed JSON request body.
597
692
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
598
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
599
- * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
693
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
694
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write; current tenant and immutable operation actor.
600
695
  */
601
696
  platformConfigureAssistantPut(assistantId, data, options) {
602
697
  return this.client.request({ ...options, method: "PUT", url: `/api/v1/runtime/assistants/${encodeURIComponent(assistantId)}/configure`, data: data });
603
698
  }
604
699
  /**
605
- * Performs the get operation for the routes capability.
700
+ * Load complete assistant contract records from enabled bindings and immutable releases. Shared dependencies are pinned; absent/incomplete/ambiguous contracts fail.
606
701
  * Calls `GET /api/v1/runtime/assistants/{assistant_id}/contracts/{slug}` through the shared IDP-aware Faiber client.
607
702
  * @param assistantId Backend path identifier `assistant_id`.
608
703
  * @param slug Backend path identifier `slug`.
609
704
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
610
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
705
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
611
706
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:runtime.
612
707
  */
613
708
  routesGetGet(assistantId, slug, options) {
614
709
  return this.client.request({ ...options, method: "GET", url: `/api/v1/runtime/assistants/${encodeURIComponent(assistantId)}/contracts/${encodeURIComponent(slug)}` });
615
710
  }
616
711
  /**
617
- * Performs the evaluate assistant operation for the platform capability.
712
+ * Run the canonical assistant retrieval pipeline with evaluation surface metadata under the same governance.
618
713
  * Calls `POST /api/v1/runtime/assistants/{assistant_id}/evaluations` through the shared IDP-aware Faiber client.
619
714
  * @param assistantId Backend path identifier `assistant_id`.
620
715
  * @param data Typed JSON request body.
621
716
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
622
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
717
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
623
718
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
624
719
  */
625
720
  platformEvaluateAssistantPost(assistantId, data, options) {
626
721
  return this.client.request({ ...options, method: "POST", url: `/api/v1/runtime/assistants/${encodeURIComponent(assistantId)}/evaluations`, data: data });
627
722
  }
628
723
  /**
629
- * Performs the record turn operation for the platform capability.
724
+ * Admit an idempotent assistant turn into the memory outbox under current policy and scope epochs. HTTP 202 can return queued:false; it does not certify extraction.
630
725
  * Calls `POST /api/v1/runtime/assistants/{assistant_id}/memory/turn` through the shared IDP-aware Faiber client.
631
726
  * @param assistantId Backend path identifier `assistant_id`.
632
727
  * @param data Typed JSON request body.
633
728
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
634
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
729
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
635
730
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:runtime.
636
731
  */
637
732
  platformRecordTurnPost(assistantId, data, options) {
638
733
  return this.client.request({ ...options, method: "POST", url: `/api/v1/runtime/assistants/${encodeURIComponent(assistantId)}/memory/turn`, data: data });
639
734
  }
640
735
  /**
641
- * Performs the preview assistant operation for the platform capability.
736
+ * Run the canonical assistant retrieval pipeline with preview surface metadata under the same governance.
642
737
  * Calls `POST /api/v1/runtime/assistants/{assistant_id}/preview` through the shared IDP-aware Faiber client.
643
738
  * @param assistantId Backend path identifier `assistant_id`.
644
739
  * @param data Typed JSON request body.
645
740
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
646
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
741
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
647
742
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
648
743
  */
649
744
  platformPreviewAssistantPost(assistantId, data, options) {
650
745
  return this.client.request({ ...options, method: "POST", url: `/api/v1/runtime/assistants/${encodeURIComponent(assistantId)}/preview`, data: data });
651
746
  }
652
747
  /**
653
- * Performs the query assistant operation for the platform capability.
748
+ * Run governed assistant retrieval with policy ceilings, scoped provider evidence and context delivery tracking. A missing policy returns explicit empty context.
654
749
  * Calls `POST /api/v1/runtime/assistants/{assistant_id}/query` through the shared IDP-aware Faiber client.
655
750
  * @param assistantId Backend path identifier `assistant_id`.
656
751
  * @param data Typed JSON request body.
657
752
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
658
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
753
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
659
754
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:runtime.
660
755
  */
661
756
  platformQueryAssistantPost(assistantId, data, options) {
662
757
  return this.client.request({ ...options, method: "POST", url: `/api/v1/runtime/assistants/${encodeURIComponent(assistantId)}/query`, data: data });
663
758
  }
664
759
  /**
665
- * Performs the runtime query operation for the routes capability.
760
+ * Resolve a chat binding through immutable published knowledge and evaluate profile rules. Binding scope, levels, conditions and context budgets apply.
666
761
  * Calls `POST /api/v1/runtime/chat/{chat_slug}/query` through the shared IDP-aware Faiber client.
667
762
  * @param chatSlug Backend path identifier `chat_slug`.
668
763
  * @param data Typed JSON request body.
669
764
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
670
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
765
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
671
766
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:runtime.
672
767
  */
673
768
  routesRuntimeQueryPost(chatSlug, data, options) {
674
769
  return this.client.request({ ...options, method: "POST", url: `/api/v1/runtime/chat/${encodeURIComponent(chatSlug)}/query`, data: data });
675
770
  }
676
771
  /**
677
- * Performs the document evidence operation for the platform capability.
772
+ * Read complete indexed nondeleted document evidence in the current organization; missing or unindexed documents return 404.
678
773
  * Calls `GET /api/v1/runtime/evidence/documents/{id}` through the shared IDP-aware Faiber client.
679
774
  * @param id Backend path identifier `id`.
680
775
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
681
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
776
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
682
777
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:runtime.
683
778
  */
684
779
  platformDocumentEvidenceGet(id, options) {
685
780
  return this.client.request({ ...options, method: "GET", url: `/api/v1/runtime/evidence/documents/${encodeURIComponent(id)}` });
686
781
  }
687
782
  /**
688
- * Performs the session evidence operation for the platform capability.
783
+ * Read active session evidence for the authenticated owner or participant. A current user is required even with session:read:all; inaccessible evidence returns 404.
689
784
  * Calls `GET /api/v1/runtime/evidence/session/{id}` through the shared IDP-aware Faiber client.
690
785
  * @param id Backend path identifier `id`.
691
786
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
692
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
787
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
693
788
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:runtime.
694
789
  */
695
790
  platformSessionEvidenceGet(id, options) {
696
791
  return this.client.request({ ...options, method: "GET", url: `/api/v1/runtime/evidence/session/${encodeURIComponent(id)}` });
697
792
  }
698
793
  /**
699
- * Performs the mcp operation for the platform capability.
794
+ * Execute JSON-RPC initialize, tools/list or tools/call through the governed pipeline. JSON-RPC errors may use HTTP 200; inspect result/error before claiming success.
700
795
  * Calls `POST /api/v1/runtime/mcp` through the shared IDP-aware Faiber client.
701
796
  * @param data Typed JSON request body.
702
797
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
703
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
798
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
704
799
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:runtime.
705
800
  */
706
801
  platformMcpPost(data, options) {
707
802
  return this.client.request({ ...options, method: "POST", url: `/api/v1/runtime/mcp`, data: data });
708
803
  }
709
804
  /**
710
- * Performs the record retrieval usage operation for the platform capability.
805
+ * Attach nonnegative provider token usage and nullable cost to a scoped retrieval trace. Missing or foreign trace IDs return 404.
711
806
  * Calls `POST /api/v1/runtime/retrieval-traces/{id}/usage` through the shared IDP-aware Faiber client.
712
807
  * @param id Backend path identifier `id`.
713
808
  * @param data Typed JSON request body.
714
809
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
715
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
810
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
716
811
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:runtime.
717
812
  */
718
813
  platformRecordRetrievalUsagePost(id, data, options) {
719
814
  return this.client.request({ ...options, method: "POST", url: `/api/v1/runtime/retrieval-traces/${encodeURIComponent(id)}/usage`, data: data });
720
815
  }
721
816
  /**
722
- * Performs the tool schema operation for the routes capability.
817
+ * Read the query_knowledge JSON Schema. This descriptive route has no handler permission guard; transport still uses the configured shared client.
723
818
  * Calls `GET /api/v1/runtime/tool-schema` through the shared IDP-aware Faiber client.
724
819
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
725
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
820
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
726
821
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
727
822
  */
728
823
  routesToolSchemaGet(options) {
729
824
  return this.client.request({ ...options, method: "GET", url: `/api/v1/runtime/tool-schema` });
730
825
  }
731
826
  /**
732
- * Performs the list sources operation for the platform capability.
827
+ * List current-organization governed sources by latest update, including source version and configuration.
733
828
  * Calls `GET /api/v1/sources` through the shared IDP-aware Faiber client.
734
829
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
735
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
830
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
736
831
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:read.
737
832
  */
738
833
  platformListSourcesGet(options) {
739
834
  return this.client.request({ ...options, method: "GET", url: `/api/v1/sources` });
740
835
  }
741
836
  /**
742
- * Performs the create source operation for the platform capability.
837
+ * Create a source under a locked owned base. Validate source kind, slug and secret references; returns 201 without executing synchronization.
743
838
  * Calls `POST /api/v1/sources` through the shared IDP-aware Faiber client.
744
839
  * @param data Typed JSON request body.
745
840
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
746
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
841
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
747
842
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
748
843
  */
749
844
  platformCreateSourcePost(data, options) {
750
845
  return this.client.request({ ...options, method: "POST", url: `/api/v1/sources`, data: data });
751
846
  }
752
847
  /**
753
- * Performs the pause source operation for the platform capability.
848
+ * Set active/paused desired source state under the captured expected_version. Stale intent conflicts; already-desired state is unchanged.
754
849
  * Calls `POST /api/v1/sources/{id}/pause` through the shared IDP-aware Faiber client.
755
850
  * @param id Backend path identifier `id`.
851
+ * @param data Typed JSON request body.
756
852
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
757
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
853
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
758
854
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
759
855
  */
760
- platformPauseSourcePost(id, options) {
761
- return this.client.request({ ...options, method: "POST", url: `/api/v1/sources/${encodeURIComponent(id)}/pause` });
856
+ platformPauseSourcePost(id, data, options) {
857
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/sources/${encodeURIComponent(id)}/pause`, data: data });
762
858
  }
763
859
  /**
764
- * Performs the sync source operation for the platform capability.
860
+ * Persist or reuse a scoped source-sync job and return 202 with its real job ID. This receipt does not certify an available executor.
765
861
  * Calls `POST /api/v1/sources/{id}/sync` through the shared IDP-aware Faiber client.
766
862
  * @param id Backend path identifier `id`.
767
863
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
768
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
864
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
769
865
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: knowledge:write.
770
866
  */
771
867
  platformSyncSourcePost(id, options) {
772
868
  return this.client.request({ ...options, method: "POST", url: `/api/v1/sources/${encodeURIComponent(id)}/sync` });
773
869
  }
774
870
  /**
775
- * Performs the readiness operation for the main capability.
871
+ * Read database readiness with commit/version. HTTP 503 returns the same success envelope with degraded status; Axios rejects by default.
776
872
  * Calls `GET /health` through the shared IDP-aware Faiber client.
777
873
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
778
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
874
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
779
875
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
780
876
  */
781
877
  mainReadinessGetHealth(options) {
782
878
  return this.client.request({ ...options, method: "GET", url: `/health` });
783
879
  }
784
880
  /**
785
- * Performs the liveness operation for the main capability.
881
+ * Read process liveness and package version. This does not check database or worker readiness.
786
882
  * Calls `GET /health/live` through the shared IDP-aware Faiber client.
787
883
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
788
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
884
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
789
885
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
790
886
  */
791
887
  mainLivenessGet(options) {
792
888
  return this.client.request({ ...options, method: "GET", url: `/health/live` });
793
889
  }
794
890
  /**
795
- * Performs the readiness operation for the main capability.
891
+ * Read database readiness with commit/version. HTTP 503 returns the same success envelope with degraded status; Axios rejects by default.
796
892
  * Calls `GET /health/ready` through the shared IDP-aware Faiber client.
797
893
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
798
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
894
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
799
895
  * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
800
896
  */
801
897
  mainReadinessGetHealthReady(options) {
802
898
  return this.client.request({ ...options, method: "GET", url: `/health/ready` });
803
899
  }
804
900
  /**
805
- * Performs the convert operation for the main capability.
901
+ * Convert a 1–25,000,000-byte source using trusted Task authority and x-organization-id. The body is binary, not JSON or multipart.
806
902
  * Calls `POST /internal/task-conversions` through the shared IDP-aware Faiber client.
807
903
  * @param data Typed binary byte stream.
808
904
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
809
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
810
- * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: trusted backend service credential and tenant scope; not a public browser endpoint.
905
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
906
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: trusted Task authority token in x-task-projection-token plus x-organization-id; server only.
811
907
  */
812
908
  mainConvertPost(data, options) {
813
909
  return this.client.request({ ...options, method: "POST", url: `/internal/task-conversions`, data: data, headers: { "Content-Type": "application/octet-stream", ...options?.headers } });
814
910
  }
815
911
  /**
816
- * Performs the candidates operation for the task projections capability.
912
+ * Find at most 100 projected Task note identities within 1–10 allowed project IDs and a query of at most 2000 characters. Requires trusted Task authority.
817
913
  * Calls `POST /internal/task-projections/candidates` through the shared IDP-aware Faiber client.
818
914
  * @param data Typed JSON request body.
819
915
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
820
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
821
- * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: trusted backend service credential and tenant scope; not a public browser endpoint.
916
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
917
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: trusted Task authority token in x-task-projection-token plus x-organization-id; server only.
822
918
  */
823
919
  taskProjectionsCandidatesPost(data, options) {
824
920
  return this.client.request({ ...options, method: "POST", url: `/internal/task-projections/candidates`, data: data });
825
921
  }
826
922
  /**
827
- * Performs the passages operation for the task projections capability.
923
+ * Retrieve passages for an authorized note/version manifest with at most 100 sources. Requires trusted Task authority; stale/deleted versions are excluded.
828
924
  * Calls `POST /internal/task-projections/passages` through the shared IDP-aware Faiber client.
829
925
  * @param data Typed JSON request body.
830
926
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
831
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
832
- * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: trusted backend service credential and tenant scope; not a public browser endpoint.
927
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
928
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: trusted Task authority token in x-task-projection-token plus x-organization-id; server only.
833
929
  */
834
930
  taskProjectionsPassagesPost(data, options) {
835
931
  return this.client.request({ ...options, method: "POST", url: `/internal/task-projections/passages`, data: data });
836
932
  }
837
933
  /**
838
- * Performs the sync operation for the task projections capability.
934
+ * Upsert a projected Task note under trusted Task authority. Lower or conflicting same versions return 409; exact replays are idempotent.
839
935
  * Calls `POST /internal/task-projections/sync` through the shared IDP-aware Faiber client.
840
936
  * @param data Typed JSON request body.
841
937
  * @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
842
- * @returns The complete Axios response, including the typed service envelope, status, and headers.
843
- * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: trusted backend service credential and tenant scope; not a public browser endpoint.
938
+ * @returns The complete Axios response, including the typed handler payload, status, and headers.
939
+ * @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: trusted Task authority token in x-task-projection-token plus x-organization-id; server only.
844
940
  */
845
941
  taskProjectionsSyncPost(data, options) {
846
942
  return this.client.request({ ...options, method: "POST", url: `/internal/task-projections/sync`, data: data });