@faiber/faiber-knowledge 0.24.1 → 1.1.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,4 +1,4 @@
1
- import type { ApiEnvelope, BackendJson, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
1
+ import type { ApiEnvelope, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
2
2
  /** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
3
3
  /** Backend query type: ListQuery. */
4
4
  export interface RoutesListActionsGetQuery extends QueryParams {
@@ -13,16 +13,11 @@ export interface RoutesListActionsGetQuery extends QueryParams {
13
13
  "limit"?: number | null;
14
14
  }
15
15
  /** Backend response type: Value. */
16
- export interface RoutesListActionsGetResponse extends ApiEnvelope<JsonValue> {
17
- }
16
+ export type RoutesListActionsGetResponse = import("./types.js").KnowledgeCustomerActionListResponse;
18
17
  /** Backend request type: ActionStatus. */
19
- export interface RoutesUpdateActionStatusPatchInput extends JsonObject {
20
- "status": string;
21
- "input"?: JsonValue;
22
- }
18
+ export type RoutesUpdateActionStatusPatchInput = import("./types.js").ActionStatusInput;
23
19
  /** Backend response type: Value. */
24
- export interface RoutesUpdateActionStatusPatchResponse extends ApiEnvelope<JsonValue> {
25
- }
20
+ export type RoutesUpdateActionStatusPatchResponse = import("./types.js").KnowledgeCustomerActionResponse;
26
21
  /** Backend query type: ListQuery. */
27
22
  export interface RoutesListAuditGetQuery extends QueryParams {
28
23
  "q"?: string | null;
@@ -36,14 +31,11 @@ export interface RoutesListAuditGetQuery extends QueryParams {
36
31
  "limit"?: number | null;
37
32
  }
38
33
  /** Backend response type: Value. */
39
- export interface RoutesListAuditGetResponse extends ApiEnvelope<JsonValue> {
40
- }
34
+ export type RoutesListAuditGetResponse = import("./types.js").KnowledgeAuditLogListResponse;
41
35
  /** Backend response type: Value. */
42
- export interface PlatformAuditEventsGetResponse extends ApiEnvelope<JsonValue> {
43
- }
36
+ export type PlatformAuditEventsGetResponse = import("./types.js").KnowledgeAuditEventListResponse;
44
37
  /** Backend response type: Value. */
45
- export interface RoutesListBindingsGetResponse extends ApiEnvelope<JsonValue> {
46
- }
38
+ export type RoutesListBindingsGetResponse = import("./types.js").ChatBindingListResponse;
47
39
  /** Backend request type: CreateBinding. */
48
40
  export interface RoutesCreateBindingPostInput extends JsonObject {
49
41
  "chat_slug": string;
@@ -54,8 +46,7 @@ export interface RoutesCreateBindingPostInput extends JsonObject {
54
46
  "enabled"?: boolean;
55
47
  }
56
48
  /** Backend response type: Value. */
57
- export interface RoutesCreateBindingPostResponse extends ApiEnvelope<JsonValue> {
58
- }
49
+ export type RoutesCreateBindingPostResponse = import("./types.js").ChatBindingResponse;
59
50
  /** Backend response type: no-content. */
60
51
  export type RoutesDeleteBindingDeleteResponse = void;
61
52
  /** Backend request type: UpdateBinding. */
@@ -67,11 +58,9 @@ export interface RoutesUpdateBindingPutInput extends JsonObject {
67
58
  "expected_version"?: number | null;
68
59
  }
69
60
  /** Backend response type: Value. */
70
- export interface RoutesUpdateBindingPutResponse extends ApiEnvelope<JsonValue> {
71
- }
61
+ export type RoutesUpdateBindingPutResponse = import("./types.js").ChatBindingResponse;
72
62
  /** Backend response type: Value. */
73
- export interface PlatformListDocumentsGetResponse extends ApiEnvelope<JsonValue> {
74
- }
63
+ export type PlatformListDocumentsGetResponse = import("./types.js").KnowledgeDocumentListResponse;
75
64
  /** Backend request type: IngestDocument. */
76
65
  export interface PlatformIngestDocumentPostInput extends JsonObject {
77
66
  "knowledge_base_id": string;
@@ -85,11 +74,9 @@ export interface PlatformIngestDocumentPostInput extends JsonObject {
85
74
  "metadata"?: JsonValue;
86
75
  }
87
76
  /** Backend response type: Value. */
88
- export interface PlatformIngestDocumentPostResponse extends ApiEnvelope<JsonValue> {
89
- }
77
+ export type PlatformIngestDocumentPostResponse = import("./types.js").IngestDocumentResponse;
90
78
  /** Backend response type: Value. */
91
- export interface PlatformReprocessDocumentPostResponse extends ApiEnvelope<JsonValue> {
92
- }
79
+ export type PlatformReprocessDocumentPostResponse = import("./types.js").KnowledgeQueuedJobResponse;
93
80
  /** Backend response type: no-content. */
94
81
  export type RoutesDeleteEdgeDeleteResponse = void;
95
82
  /** Backend request type: UpdateEdge. */
@@ -101,11 +88,9 @@ export interface RoutesUpdateEdgePutInput extends JsonObject {
101
88
  "expected_version"?: number | null;
102
89
  }
103
90
  /** Backend response type: Value. */
104
- export interface RoutesUpdateEdgePutResponse extends ApiEnvelope<JsonValue> {
105
- }
91
+ export type RoutesUpdateEdgePutResponse = import("./types.js").KnowledgeEdgeResponse;
106
92
  /** Backend response type: Value. */
107
- export interface PlatformListEvaluationCasesGetResponse extends ApiEnvelope<JsonValue> {
108
- }
93
+ export type PlatformListEvaluationCasesGetResponse = import("./types.js").KnowledgeEvaluationCaseListResponse;
109
94
  /** Backend request type: SaveEvaluationCase. */
110
95
  export interface PlatformSaveEvaluationCasePostInput extends JsonObject {
111
96
  "knowledge_base_id"?: string | null;
@@ -120,8 +105,7 @@ export interface PlatformSaveEvaluationCasePostInput extends JsonObject {
120
105
  "thresholds"?: JsonValue;
121
106
  }
122
107
  /** Backend response type: Value. */
123
- export interface PlatformSaveEvaluationCasePostResponse extends ApiEnvelope<JsonValue> {
124
- }
108
+ export type PlatformSaveEvaluationCasePostResponse = import("./types.js").KnowledgeEvaluationCaseResponse;
125
109
  /** Backend response type: no-content. */
126
110
  export type RoutesDeleteGroupDeleteResponse = void;
127
111
  /** Backend request type: UpdateGroup. */
@@ -135,38 +119,15 @@ export interface RoutesUpdateGroupPutInput extends JsonObject {
135
119
  "expected_version"?: number | null;
136
120
  }
137
121
  /** Backend response type: Value. */
138
- export interface RoutesUpdateGroupPutResponse extends ApiEnvelope<JsonValue> {
139
- }
122
+ export type RoutesUpdateGroupPutResponse = import("./types.js").KnowledgeGroupResponse;
140
123
  /** Backend response type: no-content. */
141
124
  export type RoutesDeleteItemDeleteResponse = void;
142
125
  /** Backend response type: Value. */
143
- export interface RoutesGetItemGetResponse extends ApiEnvelope<JsonValue> {
144
- }
126
+ export type RoutesGetItemGetResponse = import("./types.js").KnowledgeItemResponse;
145
127
  /** Backend request type: UpdateItem. */
146
- export interface RoutesUpdateItemPutInput extends JsonObject {
147
- "group_id"?: string | null;
148
- "kind"?: string | null;
149
- "title"?: JsonValue | null;
150
- "summary"?: JsonValue | null;
151
- "content"?: JsonValue | null;
152
- "metadata"?: JsonValue | null;
153
- "description"?: JsonValue | null;
154
- "linked_service"?: string | null;
155
- "linked_entity_type"?: string | null;
156
- "linked_entity_id"?: string | null;
157
- "link_url"?: string | null;
158
- "open_in_new_tab"?: boolean | null;
159
- "show_when"?: JsonValue | null;
160
- "tags"?: JsonValue | null;
161
- "importance"?: string | null;
162
- "status"?: string | null;
163
- "valid_from"?: string | null;
164
- "valid_to"?: string | null;
165
- "expected_version"?: number | null;
166
- }
128
+ export type RoutesUpdateItemPutInput = import("./types.js").UpdateItemInput;
167
129
  /** Backend response type: Value. */
168
- export interface RoutesUpdateItemPutResponse extends ApiEnvelope<JsonValue> {
169
- }
130
+ export type RoutesUpdateItemPutResponse = import("./types.js").KnowledgeItemResponse;
170
131
  /** Backend query type: ListQuery. */
171
132
  export interface RoutesListBasesGetQuery extends QueryParams {
172
133
  "q"?: string | null;
@@ -180,8 +141,7 @@ export interface RoutesListBasesGetQuery extends QueryParams {
180
141
  "limit"?: number | null;
181
142
  }
182
143
  /** Backend response type: Value. */
183
- export interface RoutesListBasesGetResponse extends ApiEnvelope<JsonValue> {
184
- }
144
+ export type RoutesListBasesGetResponse = import("./types.js").KnowledgeBaseListResponse;
185
145
  /** Backend request type: CreateKnowledgeBase. */
186
146
  export interface RoutesCreateBasePostInput extends JsonObject {
187
147
  "slug": string;
@@ -192,13 +152,11 @@ export interface RoutesCreateBasePostInput extends JsonObject {
192
152
  "settings"?: JsonValue;
193
153
  }
194
154
  /** Backend response type: Value. */
195
- export interface RoutesCreateBasePostResponse extends ApiEnvelope<JsonValue> {
196
- }
155
+ export type RoutesCreateBasePostResponse = import("./types.js").KnowledgeBaseResponse;
197
156
  /** Backend response type: no-content. */
198
157
  export type RoutesDeleteBaseDeleteResponse = void;
199
158
  /** Backend response type: Value. */
200
- export interface RoutesGetBaseGetResponse extends ApiEnvelope<JsonValue> {
201
- }
159
+ export type RoutesGetBaseGetResponse = import("./types.js").KnowledgeBaseResponse;
202
160
  /** Backend request type: UpdateKnowledgeBase. */
203
161
  export interface RoutesUpdateBasePutInput extends JsonObject {
204
162
  "name"?: string | null;
@@ -210,11 +168,9 @@ export interface RoutesUpdateBasePutInput extends JsonObject {
210
168
  "expected_version"?: number | null;
211
169
  }
212
170
  /** Backend response type: Value. */
213
- export interface RoutesUpdateBasePutResponse extends ApiEnvelope<JsonValue> {
214
- }
171
+ export type RoutesUpdateBasePutResponse = import("./types.js").KnowledgeBaseResponse;
215
172
  /** Backend response type: Value. */
216
- export interface RoutesListEdgesGetResponse extends ApiEnvelope<JsonValue> {
217
- }
173
+ export type RoutesListEdgesGetResponse = import("./types.js").KnowledgeEdgeListResponse;
218
174
  /** Backend request type: CreateEdge. */
219
175
  export interface RoutesCreateEdgePostInput extends JsonObject {
220
176
  "from_item_id": string;
@@ -224,14 +180,11 @@ export interface RoutesCreateEdgePostInput extends JsonObject {
224
180
  "weight"?: number;
225
181
  }
226
182
  /** Backend response type: Value. */
227
- export interface RoutesCreateEdgePostResponse extends ApiEnvelope<JsonValue> {
228
- }
183
+ export type RoutesCreateEdgePostResponse = import("./types.js").KnowledgeEdgeResponse;
229
184
  /** Backend response type: Value. */
230
- export interface RoutesExportBaseGetResponse extends ApiEnvelope<JsonValue> {
231
- }
185
+ export type RoutesExportBaseGetResponse = import("./types.js").KnowledgeExportResponse;
232
186
  /** Backend response type: Value. */
233
- export interface RoutesListGroupsGetResponse extends ApiEnvelope<JsonValue> {
234
- }
187
+ export type RoutesListGroupsGetResponse = import("./types.js").KnowledgeGroupListResponse;
235
188
  /** Backend request type: CreateGroup. */
236
189
  export interface RoutesCreateGroupPostInput extends JsonObject {
237
190
  "parent_id"?: string | null;
@@ -242,8 +195,7 @@ export interface RoutesCreateGroupPostInput extends JsonObject {
242
195
  "inclusion_policy"?: JsonValue;
243
196
  }
244
197
  /** Backend response type: Value. */
245
- export interface RoutesCreateGroupPostResponse extends ApiEnvelope<JsonValue> {
246
- }
198
+ export type RoutesCreateGroupPostResponse = import("./types.js").KnowledgeGroupResponse;
247
199
  /** Backend query type: ListQuery. */
248
200
  export interface RoutesListItemsGetQuery extends QueryParams {
249
201
  "q"?: string | null;
@@ -257,53 +209,26 @@ export interface RoutesListItemsGetQuery extends QueryParams {
257
209
  "limit"?: number | null;
258
210
  }
259
211
  /** Backend response type: Value. */
260
- export interface RoutesListItemsGetResponse extends ApiEnvelope<JsonValue> {
261
- }
212
+ export type RoutesListItemsGetResponse = import("./types.js").KnowledgeItemListResponse;
262
213
  /** Backend request type: CreateItem. */
263
- export interface RoutesCreateItemPostInput extends JsonObject {
264
- "group_id": string;
265
- "slug": string;
266
- "kind": string;
267
- "title": JsonValue;
268
- "summary"?: JsonValue;
269
- "content": JsonValue;
270
- "metadata"?: JsonValue;
271
- "description"?: JsonValue;
272
- "linked_service"?: string | null;
273
- "linked_entity_type"?: string | null;
274
- "linked_entity_id"?: string | null;
275
- "link_url"?: string | null;
276
- "open_in_new_tab"?: boolean;
277
- "show_when"?: JsonValue;
278
- "tags"?: JsonValue;
279
- "importance"?: string;
280
- "valid_from"?: string | null;
281
- "valid_to"?: string | null;
282
- }
214
+ export type RoutesCreateItemPostInput = import("./types.js").CreateItemInput;
283
215
  /** Backend response type: Value. */
284
- export interface RoutesCreateItemPostResponse extends ApiEnvelope<JsonValue> {
285
- }
216
+ export type RoutesCreateItemPostResponse = import("./types.js").KnowledgeItemResponse;
286
217
  /** Backend response type: Value. */
287
- export interface RoutesPublishPostResponse extends ApiEnvelope<JsonValue> {
288
- }
218
+ export type RoutesPublishPostResponse = import("./types.js").KnowledgeReleaseResponse;
289
219
  /** Backend response type: Value. */
290
- export interface RoutesGetReleaseGetResponse extends ApiEnvelope<JsonValue> {
291
- }
292
- /** Backend query type: ListQuery. */
220
+ export type RoutesGetReleaseGetResponse = import("./types.js").KnowledgeReleaseResponse;
221
+ /** Backend query type: RuleListQuery. */
293
222
  export interface RoutesListRulesGetQuery extends QueryParams {
294
223
  "q"?: string | null;
295
- "status"?: string | null;
296
- "group"?: string | null;
297
- "kind"?: string | null;
298
- "linked_service"?: string | null;
299
- "linked_entity_type"?: string | null;
300
- "linked_entity_id"?: string | null;
224
+ "knowledge_base_id"?: string | null;
225
+ "group_id"?: string | null;
226
+ "enabled"?: boolean | null;
301
227
  "page"?: number | null;
302
228
  "limit"?: number | null;
303
229
  }
304
230
  /** Backend response type: Value. */
305
- export interface RoutesListRulesGetResponse extends ApiEnvelope<JsonValue> {
306
- }
231
+ export type RoutesListRulesGetResponse = import("./types.js").MatchRuleListResponse;
307
232
  /** Backend request type: CreateRule. */
308
233
  export interface RoutesCreateRulePostInput extends JsonObject {
309
234
  "knowledge_base_id": string;
@@ -317,8 +242,7 @@ export interface RoutesCreateRulePostInput extends JsonObject {
317
242
  "enabled"?: boolean;
318
243
  }
319
244
  /** Backend response type: Value. */
320
- export interface RoutesCreateRulePostResponse extends ApiEnvelope<JsonValue> {
321
- }
245
+ export type RoutesCreateRulePostResponse = import("./types.js").MatchRuleResponse;
322
246
  /** Backend response type: no-content. */
323
247
  export type RoutesDeleteRuleDeleteResponse = void;
324
248
  /** Backend request type: UpdateRule. */
@@ -333,69 +257,57 @@ export interface RoutesUpdateRulePutInput extends JsonObject {
333
257
  "expected_version"?: number | null;
334
258
  }
335
259
  /** Backend response type: Value. */
336
- export interface RoutesUpdateRulePutResponse extends ApiEnvelope<JsonValue> {
337
- }
260
+ export type RoutesUpdateRulePutResponse = import("./types.js").MatchRuleResponse;
338
261
  /** Backend response type: Value. */
339
- export interface PlatformReplayMemoryOutboxPostResponse extends ApiEnvelope<JsonValue> {
340
- }
262
+ export type PlatformReplayMemoryOutboxPostResponse = import("./types.js").MemoryOutboxReplayResponse;
341
263
  /** Backend query type: MemoryFilter. */
342
- export interface PlatformListMemorySubjectsGetQuery extends QueryParams {
343
- "assistant_id"?: string | null;
344
- "q"?: string | null;
345
- "memory_type"?: string | null;
346
- "page"?: number | null;
347
- "limit"?: number | null;
348
- }
264
+ export type PlatformListMemorySubjectsGetQuery = import("./types.js").MemorySubjectQuery;
349
265
  /** Backend response type: Value. */
350
- export interface PlatformListMemorySubjectsGetResponse extends ApiEnvelope<JsonValue> {
351
- }
266
+ export type PlatformListMemorySubjectsGetResponse = import("./types.js").MemorySubjectListResponse;
352
267
  /** Backend query type: MemoryClearQuery. */
353
- export interface PlatformClearMemorySubjectDeleteQuery extends QueryParams {
354
- "memory_type"?: string | null;
355
- "reason"?: string | null;
356
- }
268
+ export type PlatformClearMemorySubjectDeleteQuery = import("./types.js").MemoryClearQuery;
357
269
  /** Backend response type: no-content. */
358
270
  export type PlatformClearMemorySubjectDeleteResponse = void;
271
+ /** Backend response type: Value. */
272
+ export type PlatformMemorySubjectGetResponse = import("./types.js").MemorySubjectResponse;
273
+ /** Backend query type: AuditQuery. */
274
+ export type PlatformMemoryAuditGetQuery = import("./types.js").MemoryAuditQuery;
275
+ /** Backend response type: Value. */
276
+ export type PlatformMemoryAuditGetResponse = import("./types.js").MemoryAuditListResponse;
277
+ /** Backend request type: Correction. */
278
+ export type PlatformCorrectMemoryPostInput = import("./types.js").MemoryCorrectionInput;
279
+ /** Backend response type: Value. */
280
+ export type PlatformCorrectMemoryPostResponse = import("./types.js").MemoryCorrectionResponse;
281
+ /** Backend query type: RecordsQuery. */
282
+ export type PlatformListMemoriesGetQuery = import("./types.js").MemoryRecordQuery;
283
+ /** Backend response type: Value. */
284
+ export type PlatformListMemoriesGetResponse = import("./types.js").MemoryRecordListResponse;
359
285
  /** Backend request type: MemoryOverride. */
360
- export interface PlatformSetMemoryOverridePutInput extends JsonObject {
361
- "short_memory_enabled"?: boolean | null;
362
- "long_memory_enabled"?: boolean | null;
363
- "reason"?: string | null;
364
- }
286
+ export type PlatformSetMemoryOverridePutInput = import("./types.js").MemoryOverrideInput;
365
287
  /** Backend response type: Value. */
366
- export interface PlatformSetMemoryOverridePutResponse extends ApiEnvelope<JsonValue> {
367
- }
288
+ export type PlatformSetMemoryOverridePutResponse = import("./types.js").MemorySubjectResponse;
368
289
  /** Backend query type: MemoryClearQuery. */
369
- export interface PlatformForgetMemoryDeleteQuery extends QueryParams {
370
- "memory_type"?: string | null;
371
- "reason"?: string | null;
372
- }
290
+ export type PlatformForgetMemoryDeleteQuery = import("./types.js").MemoryClearQuery;
373
291
  /** Backend response type: no-content. */
374
292
  export type PlatformForgetMemoryDeleteResponse = void;
375
293
  /** Backend response type: Value. */
376
- export interface PlatformInvalidatePolicyCachePostResponse extends ApiEnvelope<JsonValue> {
377
- }
294
+ export type PlatformMemoryRecordGetResponse = import("./types.js").MemoryRecordResponse;
378
295
  /** Backend response type: Value. */
379
- export interface PlatformCatalogGetResponse extends ApiEnvelope<JsonValue> {
380
- }
296
+ export type PlatformInvalidatePolicyCachePostResponse = import("./types.js").CacheInvalidationResponse;
381
297
  /** Backend response type: Value. */
382
- export interface PlatformConvertersGetResponse extends ApiEnvelope<JsonValue> {
383
- }
298
+ export type PlatformCatalogGetResponse = import("./types.js").KnowledgeCatalogResponse;
384
299
  /** Backend response type: Value. */
385
- export interface PlatformStatusGetResponse extends ApiEnvelope<JsonValue> {
386
- }
300
+ export type PlatformConvertersGetResponse = import("./types.js").ConverterListResponse;
387
301
  /** Backend response type: Value. */
388
- export interface PlatformProcessingJobsGetResponse extends ApiEnvelope<JsonValue> {
389
- }
302
+ export type PlatformStatusGetResponse = import("./types.js").PlatformStatusResponse;
390
303
  /** Backend response type: Value. */
391
- export interface PlatformCancelProcessingJobPostResponse extends ApiEnvelope<JsonValue> {
392
- }
304
+ export type PlatformProcessingJobsGetResponse = import("./types.js").ProcessingJobListResponse;
393
305
  /** Backend response type: Value. */
394
- export interface PlatformRetryProcessingJobPostResponse extends ApiEnvelope<JsonValue> {
395
- }
306
+ export type PlatformCancelProcessingJobPostResponse = import("./types.js").ProcessingJobResponse;
396
307
  /** Backend response type: Value. */
397
- export interface PlatformListRecommendersGetResponse extends ApiEnvelope<JsonValue> {
398
- }
308
+ export type PlatformRetryProcessingJobPostResponse = import("./types.js").ProcessingJobResponse;
309
+ /** Backend response type: Value. */
310
+ export type PlatformListRecommendersGetResponse = import("./types.js").RecommenderGroupListResponse;
399
311
  /** Backend request type: CreateRecommenderGroup. */
400
312
  export interface PlatformCreateRecommenderGroupPostInput extends JsonObject {
401
313
  "slug": string;
@@ -406,8 +318,7 @@ export interface PlatformCreateRecommenderGroupPostInput extends JsonObject {
406
318
  "max_results"?: number;
407
319
  }
408
320
  /** Backend response type: Value. */
409
- export interface PlatformCreateRecommenderGroupPostResponse extends ApiEnvelope<JsonValue> {
410
- }
321
+ export type PlatformCreateRecommenderGroupPostResponse = import("./types.js").RecommenderGroupResponse;
411
322
  /** Backend request type: CreateRecommenderItem. */
412
323
  export interface PlatformCreateRecommenderItemPostInput extends JsonObject {
413
324
  "stable_key": string;
@@ -423,50 +334,22 @@ export interface PlatformCreateRecommenderItemPostInput extends JsonObject {
423
334
  "base_score"?: number;
424
335
  }
425
336
  /** Backend response type: Value. */
426
- export interface PlatformCreateRecommenderItemPostResponse extends ApiEnvelope<JsonValue> {
427
- }
337
+ export type PlatformCreateRecommenderItemPostResponse = import("./types.js").RecommenderItemResponse;
338
+ /** Backend response type: Value. */
339
+ export type PlatformAssistantConfigurationOperationGetResponse = import("./types.js").AssistantConfigurationOperationResponse;
340
+ /** Backend request type: ConfigurationCancellation. */
341
+ export type PlatformCancelAssistantConfigurationOperationPostInput = import("./types.js").AssistantConfigurationCancellation;
342
+ /** Backend response type: Value. */
343
+ export type PlatformCancelAssistantConfigurationOperationPostResponse = import("./types.js").AssistantConfigurationOperationResponse;
344
+ /** Backend response type: Value. */
345
+ export type PlatformAssistantConfigurationSnapshotGetResponse = import("./types.js").AssistantPolicySnapshotResponse;
428
346
  /** Backend request type: AssistantConfiguration. */
429
- export interface PlatformConfigureAssistantPutInput extends JsonObject {
430
- "expected_policy_revision"?: number | null;
431
- "assistant_name"?: string;
432
- "knowledge_base_ids"?: string[];
433
- "recommender_group_ids"?: string[];
434
- "short_memory_enabled"?: boolean;
435
- "long_memory_enabled"?: boolean;
436
- "short_memory_turns"?: number;
437
- "long_memory_limit"?: number;
438
- "context_mode"?: string;
439
- "context_budget_tokens"?: number;
440
- "knowledge_enabled"?: boolean;
441
- "recommenders_enabled"?: boolean;
442
- "selected_media_enabled"?: boolean;
443
- "session_enabled"?: boolean;
444
- "max_knowledge_results"?: number;
445
- "max_chunks_per_document"?: number;
446
- "max_selected_media_chunks"?: number;
447
- "max_session_items"?: number;
448
- "max_findings"?: number;
449
- "max_recommendations"?: number;
450
- "graph_enabled"?: boolean;
451
- "vector_enabled"?: boolean;
452
- "query_expansion_enabled"?: boolean;
453
- "reranking_enabled"?: boolean;
454
- "selected_media_budget_percent"?: number;
455
- "knowledge_budget_percent"?: number;
456
- "memory_budget_percent"?: number;
457
- "recommender_budget_percent"?: number;
458
- "profile_budget_percent"?: number;
459
- "session_budget_percent"?: number;
460
- "findings_budget_percent"?: number;
461
- }
462
- /** Backend response type: Value. */
463
- export interface PlatformConfigureAssistantPutResponse extends ApiEnvelope<JsonValue> {
464
- }
465
- /** Backend response type: Value. */
466
- export interface RoutesGetGetResponse extends ApiEnvelope<JsonValue> {
467
- }
347
+ export type PlatformConfigureAssistantPutInput = import("./types.js").AssistantConfigurationInput;
348
+ /** Backend response type: Value. */
349
+ export type PlatformConfigureAssistantPutResponse = import("./types.js").AssistantConfigurationResponse;
350
+ /** Backend response type: Value. */
351
+ export type RoutesGetGetResponse = import("./types.js").AssistantContractsResponse;
468
352
  /** Backend request type: AssistantQuery. */
469
- export type PlatformEvaluateAssistantPostInputSurface = "chat_slug" | "assistant" | "mcp" | "preview" | "evaluation";
470
353
  export interface PlatformEvaluateAssistantPostInput extends JsonObject {
471
354
  "user_id": string;
472
355
  "query"?: string;
@@ -485,21 +368,9 @@ export interface PlatformEvaluateAssistantPostInput extends JsonObject {
485
368
  "evaluation_case_id"?: string | null;
486
369
  "query_embedding"?: number[];
487
370
  "limit"?: number;
488
- "surface"?: PlatformEvaluateAssistantPostInputSurface | null;
489
371
  }
490
372
  /** Backend response type: AssistantRuntimeResult. */
491
- export interface PlatformEvaluateAssistantPostResponseData extends JsonObject {
492
- "policy": JsonValue;
493
- "knowledge": JsonValue[];
494
- "memory": JsonValue;
495
- "recommendations": JsonValue[];
496
- "citations": JsonValue[];
497
- "findings": JsonValue[];
498
- "trace": JsonValue;
499
- "budget": JsonValue;
500
- }
501
- export interface PlatformEvaluateAssistantPostResponse extends ApiEnvelope<PlatformEvaluateAssistantPostResponseData> {
502
- }
373
+ export type PlatformEvaluateAssistantPostResponse = import("./types.js").AssistantRuntimeResponse;
503
374
  /** Backend request type: RecordTurn. */
504
375
  export interface PlatformRecordTurnPostInput extends JsonObject {
505
376
  "user_id": string;
@@ -514,10 +385,8 @@ export interface PlatformRecordTurnPostInput extends JsonObject {
514
385
  "assistant_message_id"?: string | null;
515
386
  }
516
387
  /** Backend response type: Value. */
517
- export interface PlatformRecordTurnPostResponse extends ApiEnvelope<JsonValue> {
518
- }
388
+ export type PlatformRecordTurnPostResponse = import("./types.js").MemoryTurnResponse;
519
389
  /** Backend request type: AssistantQuery. */
520
- export type PlatformPreviewAssistantPostInputSurface = "chat_slug" | "assistant" | "mcp" | "preview" | "evaluation";
521
390
  export interface PlatformPreviewAssistantPostInput extends JsonObject {
522
391
  "user_id": string;
523
392
  "query"?: string;
@@ -536,23 +405,10 @@ export interface PlatformPreviewAssistantPostInput extends JsonObject {
536
405
  "evaluation_case_id"?: string | null;
537
406
  "query_embedding"?: number[];
538
407
  "limit"?: number;
539
- "surface"?: PlatformPreviewAssistantPostInputSurface | null;
540
408
  }
541
409
  /** Backend response type: AssistantRuntimeResult. */
542
- export interface PlatformPreviewAssistantPostResponseData extends JsonObject {
543
- "policy": JsonValue;
544
- "knowledge": JsonValue[];
545
- "memory": JsonValue;
546
- "recommendations": JsonValue[];
547
- "citations": JsonValue[];
548
- "findings": JsonValue[];
549
- "trace": JsonValue;
550
- "budget": JsonValue;
551
- }
552
- export interface PlatformPreviewAssistantPostResponse extends ApiEnvelope<PlatformPreviewAssistantPostResponseData> {
553
- }
410
+ export type PlatformPreviewAssistantPostResponse = import("./types.js").AssistantRuntimeResponse;
554
411
  /** Backend request type: AssistantQuery. */
555
- export type PlatformQueryAssistantPostInputSurface = "chat_slug" | "assistant" | "mcp" | "preview" | "evaluation";
556
412
  export interface PlatformQueryAssistantPostInput extends JsonObject {
557
413
  "user_id": string;
558
414
  "query"?: string;
@@ -571,21 +427,9 @@ export interface PlatformQueryAssistantPostInput extends JsonObject {
571
427
  "evaluation_case_id"?: string | null;
572
428
  "query_embedding"?: number[];
573
429
  "limit"?: number;
574
- "surface"?: PlatformQueryAssistantPostInputSurface | null;
575
430
  }
576
431
  /** Backend response type: AssistantRuntimeResult. */
577
- export interface PlatformQueryAssistantPostResponseData extends JsonObject {
578
- "policy": JsonValue;
579
- "knowledge": JsonValue[];
580
- "memory": JsonValue;
581
- "recommendations": JsonValue[];
582
- "citations": JsonValue[];
583
- "findings": JsonValue[];
584
- "trace": JsonValue;
585
- "budget": JsonValue;
586
- }
587
- export interface PlatformQueryAssistantPostResponse extends ApiEnvelope<PlatformQueryAssistantPostResponseData> {
588
- }
432
+ export type PlatformQueryAssistantPostResponse = import("./types.js").AssistantRuntimeResponse;
589
433
  /** Backend request type: RuntimeQuery. */
590
434
  export interface RoutesRuntimeQueryPostInput extends JsonObject {
591
435
  "query"?: string | null;
@@ -604,7 +448,7 @@ export interface RoutesRuntimeQueryPostInput extends JsonObject {
604
448
  /** Backend response type: RuntimeResult. */
605
449
  export interface RoutesRuntimeQueryPostResponseData extends JsonObject {
606
450
  "chat_slug": string;
607
- "release"?: JsonValue | null;
451
+ "release": JsonValue | null;
608
452
  "knowledge": JsonValue[];
609
453
  "suggestions": JsonValue[];
610
454
  "matched_rules": JsonValue[];
@@ -618,11 +462,9 @@ export interface RoutesRuntimeQueryPostResponseData extends JsonObject {
618
462
  export interface RoutesRuntimeQueryPostResponse extends ApiEnvelope<RoutesRuntimeQueryPostResponseData> {
619
463
  }
620
464
  /** Backend response type: Value. */
621
- export interface PlatformDocumentEvidenceGetResponse extends ApiEnvelope<JsonValue> {
622
- }
465
+ export type PlatformDocumentEvidenceGetResponse = import("./types.js").DocumentEvidenceResponse;
623
466
  /** Backend response type: Value. */
624
- export interface PlatformSessionEvidenceGetResponse extends ApiEnvelope<JsonValue> {
625
- }
467
+ export type PlatformSessionEvidenceGetResponse = import("./types.js").SessionEvidenceResponse;
626
468
  /** Backend request type: McpRequest. */
627
469
  export interface PlatformMcpPostInput extends JsonObject {
628
470
  "jsonrpc": string;
@@ -631,7 +473,7 @@ export interface PlatformMcpPostInput extends JsonObject {
631
473
  "params"?: JsonValue;
632
474
  }
633
475
  /** Backend response type: Value. */
634
- export type PlatformMcpPostResponse = JsonValue;
476
+ export type PlatformMcpPostResponse = import("./types.js").KnowledgeMcpResponse;
635
477
  /** Backend request type: RetrievalUsageReport. */
636
478
  export interface PlatformRecordRetrievalUsagePostInput extends JsonObject {
637
479
  "final_prompt_tokens": number;
@@ -643,35 +485,23 @@ export interface PlatformRecordRetrievalUsagePostInput extends JsonObject {
643
485
  "outcome"?: string | null;
644
486
  }
645
487
  /** Backend response type: Value. */
646
- export interface PlatformRecordRetrievalUsagePostResponse extends ApiEnvelope<JsonValue> {
647
- }
488
+ export type PlatformRecordRetrievalUsagePostResponse = import("./types.js").RetrievalUsageResponse;
648
489
  /** Backend response type: Value. */
649
- export interface RoutesToolSchemaGetResponse extends ApiEnvelope<JsonValue> {
650
- }
490
+ export type RoutesToolSchemaGetResponse = import("./types.js").KnowledgeToolSchemaResponse;
651
491
  /** Backend response type: Value. */
652
- export interface PlatformListSourcesGetResponse extends ApiEnvelope<JsonValue> {
653
- }
492
+ export type PlatformListSourcesGetResponse = import("./types.js").KnowledgeSourceListResponse;
654
493
  /** Backend request type: CreateSource. */
655
- export interface PlatformCreateSourcePostInput extends JsonObject {
656
- "knowledge_base_id": string;
657
- "slug": string;
658
- "name": JsonValue;
659
- "source_type": string;
660
- "configuration"?: JsonValue;
661
- "provenance_policy"?: JsonValue;
662
- }
494
+ export type PlatformCreateSourcePostInput = import("./types.js").CreateKnowledgeSourceInput;
663
495
  /** Backend response type: Value. */
664
- export interface PlatformCreateSourcePostResponse extends ApiEnvelope<JsonValue> {
665
- }
496
+ export type PlatformCreateSourcePostResponse = import("./types.js").KnowledgeSourceResponse;
497
+ /** Backend request type: SourceStateInput. */
498
+ export type PlatformPauseSourcePostInput = import("./types.js").SourceStateInput;
666
499
  /** Backend response type: Value. */
667
- export interface PlatformPauseSourcePostResponse extends ApiEnvelope<JsonValue> {
668
- }
500
+ export type PlatformPauseSourcePostResponse = import("./types.js").KnowledgeSourceResponse;
669
501
  /** Backend response type: Value. */
670
- export interface PlatformSyncSourcePostResponse extends ApiEnvelope<JsonValue> {
671
- }
502
+ export type PlatformSyncSourcePostResponse = import("./types.js").KnowledgeQueuedJobResponse;
672
503
  /** Backend response type: serde_json::Value. */
673
- export interface MainReadinessGetHealthResponse extends ApiEnvelope<JsonValue> {
674
- }
504
+ export type MainReadinessGetHealthResponse = import("./types.js").KnowledgeReadinessResponse;
675
505
  /** Backend response type: Health. */
676
506
  export interface MainLivenessGetResponseData extends JsonObject {
677
507
  "service": string;
@@ -681,8 +511,7 @@ export interface MainLivenessGetResponseData extends JsonObject {
681
511
  export interface MainLivenessGetResponse extends ApiEnvelope<MainLivenessGetResponseData> {
682
512
  }
683
513
  /** Backend response type: serde_json::Value. */
684
- export interface MainReadinessGetHealthReadyResponse extends ApiEnvelope<JsonValue> {
685
- }
514
+ export type MainReadinessGetHealthReadyResponse = import("./types.js").KnowledgeReadinessResponse;
686
515
  /** Backend request type: binary byte stream. */
687
516
  export type MainConvertPostInput = Blob | ArrayBuffer | ArrayBufferView;
688
517
  /** Backend response type: Extraction. */
@@ -693,7 +522,7 @@ export interface MainConvertPostResponseDataTables extends JsonObject {
693
522
  export interface MainConvertPostResponseData extends JsonObject {
694
523
  "text": string;
695
524
  "tables": MainConvertPostResponseDataTables[];
696
- "pages"?: number | null;
525
+ "pages": number | null;
697
526
  "warnings": string[];
698
527
  "converter_version": string;
699
528
  }
@@ -705,8 +534,7 @@ export interface TaskProjectionsCandidatesPostInput extends JsonObject {
705
534
  "query": string;
706
535
  }
707
536
  /** Backend response type: Value. */
708
- export interface TaskProjectionsCandidatesPostResponse extends ApiEnvelope<JsonValue> {
709
- }
537
+ export type TaskProjectionsCandidatesPostResponse = import("./types.js").TaskProjectionCandidateListResponse;
710
538
  /** Backend request type: Passages. */
711
539
  export interface TaskProjectionsPassagesPostInputSources extends JsonObject {
712
540
  "note_id": string;
@@ -719,146 +547,7 @@ export interface TaskProjectionsPassagesPostInput extends JsonObject {
719
547
  "sources": TaskProjectionsPassagesPostInputSources[];
720
548
  }
721
549
  /** Backend response type: RetrievalResult. */
722
- export type TaskProjectionsPassagesPostResponseDataAcceptedResultsCategory = "authored_item" | "document_chunk" | "graph_neighbor" | "media_transcript_chunk" | "session_evidence" | "profile_fact" | "user_memory" | "finding" | "recommendation";
723
- export interface TaskProjectionsPassagesPostResponseDataAcceptedResultsScore extends JsonObject {
724
- "lexical": number;
725
- "vector": number;
726
- "exact_title": number;
727
- "entity": number;
728
- "graph": number;
729
- "base_priority": number;
730
- "importance": number;
731
- "freshness": number;
732
- "selected_media": number;
733
- "reciprocal_rank": number;
734
- "final_score": number;
735
- }
736
- export interface TaskProjectionsPassagesPostResponseDataAcceptedResults extends JsonObject {
737
- "id": string;
738
- "category": TaskProjectionsPassagesPostResponseDataAcceptedResultsCategory;
739
- "title": JsonValue;
740
- "summary": JsonValue;
741
- "content": JsonValue;
742
- "provenance": JsonValue;
743
- "citation": JsonValue;
744
- "score": TaskProjectionsPassagesPostResponseDataAcceptedResultsScore;
745
- "token_count": number;
746
- "selected_media": boolean;
747
- "payload": JsonValue;
748
- }
749
- export type TaskProjectionsPassagesPostResponseDataExcludedResultsCategory = "authored_item" | "document_chunk" | "graph_neighbor" | "media_transcript_chunk" | "session_evidence" | "profile_fact" | "user_memory" | "finding" | "recommendation";
750
- export type TaskProjectionsPassagesPostResponseDataExcludedResultsReason = "tenant_scope" | "assistant_scope" | "user_scope" | "base_not_published" | "release_not_published" | "item_not_published" | "deleted" | "not_yet_valid" | "expired" | "group_scope" | "maximum_level" | "condition_mismatch" | "edge_condition_mismatch" | "recommender_group_condition_mismatch" | "recommender_item_condition_mismatch" | "visibility_denied" | "session_scope" | "selected_media_scope" | "duplicate" | "recommender_group_limit" | "result_limit" | "context_budget" | "policy_disabled" | "already_delivered";
751
- export interface TaskProjectionsPassagesPostResponseDataExcludedResults extends JsonObject {
752
- "candidate_id": string;
753
- "category": TaskProjectionsPassagesPostResponseDataExcludedResultsCategory;
754
- "reason": TaskProjectionsPassagesPostResponseDataExcludedResultsReason;
755
- }
756
- export type TaskProjectionsPassagesPostResponseDataMemoriesCategory = "authored_item" | "document_chunk" | "graph_neighbor" | "media_transcript_chunk" | "session_evidence" | "profile_fact" | "user_memory" | "finding" | "recommendation";
757
- export interface TaskProjectionsPassagesPostResponseDataMemoriesScore extends JsonObject {
758
- "lexical": number;
759
- "vector": number;
760
- "exact_title": number;
761
- "entity": number;
762
- "graph": number;
763
- "base_priority": number;
764
- "importance": number;
765
- "freshness": number;
766
- "selected_media": number;
767
- "reciprocal_rank": number;
768
- "final_score": number;
769
- }
770
- export interface TaskProjectionsPassagesPostResponseDataMemories extends JsonObject {
771
- "id": string;
772
- "category": TaskProjectionsPassagesPostResponseDataMemoriesCategory;
773
- "title": JsonValue;
774
- "summary": JsonValue;
775
- "content": JsonValue;
776
- "provenance": JsonValue;
777
- "citation": JsonValue;
778
- "score": TaskProjectionsPassagesPostResponseDataMemoriesScore;
779
- "token_count": number;
780
- "selected_media": boolean;
781
- "payload": JsonValue;
782
- }
783
- export type TaskProjectionsPassagesPostResponseDataRecommendationsCategory = "authored_item" | "document_chunk" | "graph_neighbor" | "media_transcript_chunk" | "session_evidence" | "profile_fact" | "user_memory" | "finding" | "recommendation";
784
- export interface TaskProjectionsPassagesPostResponseDataRecommendationsScore extends JsonObject {
785
- "lexical": number;
786
- "vector": number;
787
- "exact_title": number;
788
- "entity": number;
789
- "graph": number;
790
- "base_priority": number;
791
- "importance": number;
792
- "freshness": number;
793
- "selected_media": number;
794
- "reciprocal_rank": number;
795
- "final_score": number;
796
- }
797
- export interface TaskProjectionsPassagesPostResponseDataRecommendations extends JsonObject {
798
- "id": string;
799
- "category": TaskProjectionsPassagesPostResponseDataRecommendationsCategory;
800
- "title": JsonValue;
801
- "summary": JsonValue;
802
- "content": JsonValue;
803
- "provenance": JsonValue;
804
- "citation": JsonValue;
805
- "score": TaskProjectionsPassagesPostResponseDataRecommendationsScore;
806
- "token_count": number;
807
- "selected_media": boolean;
808
- "payload": JsonValue;
809
- }
810
- export type TaskProjectionsPassagesPostResponseDataFindingsCategory = "authored_item" | "document_chunk" | "graph_neighbor" | "media_transcript_chunk" | "session_evidence" | "profile_fact" | "user_memory" | "finding" | "recommendation";
811
- export interface TaskProjectionsPassagesPostResponseDataFindingsScore extends JsonObject {
812
- "lexical": number;
813
- "vector": number;
814
- "exact_title": number;
815
- "entity": number;
816
- "graph": number;
817
- "base_priority": number;
818
- "importance": number;
819
- "freshness": number;
820
- "selected_media": number;
821
- "reciprocal_rank": number;
822
- "final_score": number;
823
- }
824
- export interface TaskProjectionsPassagesPostResponseDataFindings extends JsonObject {
825
- "id": string;
826
- "category": TaskProjectionsPassagesPostResponseDataFindingsCategory;
827
- "title": JsonValue;
828
- "summary": JsonValue;
829
- "content": JsonValue;
830
- "provenance": JsonValue;
831
- "citation": JsonValue;
832
- "score": TaskProjectionsPassagesPostResponseDataFindingsScore;
833
- "token_count": number;
834
- "selected_media": boolean;
835
- "payload": JsonValue;
836
- }
837
- export interface TaskProjectionsPassagesPostResponseDataBudget extends JsonObject {
838
- "requested_tokens": number;
839
- "used_tokens": number;
840
- "remaining_tokens": number;
841
- "dropped_count": number;
842
- "truncated": boolean;
843
- "estimator": string;
844
- "sections": Record<string, number>;
845
- }
846
- export interface TaskProjectionsPassagesPostResponseData extends JsonObject {
847
- "candidate_sets": Record<string, number>;
848
- "accepted_results": TaskProjectionsPassagesPostResponseDataAcceptedResults[];
849
- "excluded_results": TaskProjectionsPassagesPostResponseDataExcludedResults[];
850
- "memories": TaskProjectionsPassagesPostResponseDataMemories[];
851
- "recommendations": TaskProjectionsPassagesPostResponseDataRecommendations[];
852
- "findings": TaskProjectionsPassagesPostResponseDataFindings[];
853
- "citations": JsonValue[];
854
- "provenance": JsonValue[];
855
- "score_explanations": Record<string, BackendJson<"ScoreExplanation">>;
856
- "budget": TaskProjectionsPassagesPostResponseDataBudget;
857
- "dependency_state": Record<string, BackendJson<"DependencyState">>;
858
- "trace": JsonValue;
859
- }
860
- export interface TaskProjectionsPassagesPostResponse extends ApiEnvelope<TaskProjectionsPassagesPostResponseData> {
861
- }
550
+ export type TaskProjectionsPassagesPostResponse = import("./types.js").KnowledgeRetrievalResponse;
862
551
  /** Backend request type: Projection. */
863
552
  export interface TaskProjectionsSyncPostInput extends JsonObject {
864
553
  "note_id": string;
@@ -869,6 +558,5 @@ export interface TaskProjectionsSyncPostInput extends JsonObject {
869
558
  "deleted"?: boolean;
870
559
  }
871
560
  /** Backend response type: Value. */
872
- export interface TaskProjectionsSyncPostResponse extends ApiEnvelope<JsonValue> {
873
- }
561
+ export type TaskProjectionsSyncPostResponse = import("./types.js").TaskProjectionResponse;
874
562
  //# sourceMappingURL=operations.types.d.ts.map