@petercatai/whisker-client 0.1.202512301436 → 0.1.202601221403
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +935 -808
- package/dist/api.js +190 -2
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WebhookSubscriptionStatus
|
|
3
|
+
* Webhook订阅状态
|
|
4
|
+
*/
|
|
5
|
+
export declare enum IWebhookSubscriptionStatus {
|
|
6
|
+
ACTIVE = "ACTIVE",
|
|
7
|
+
INACTIVE = "INACTIVE",
|
|
8
|
+
DELETED = "DELETED"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* WebhookEventType
|
|
12
|
+
* Webhook事件类型
|
|
13
|
+
*/
|
|
14
|
+
export declare enum IWebhookEventType {
|
|
15
|
+
SpaceCreated = "space.created",
|
|
16
|
+
SpaceUpdated = "space.updated",
|
|
17
|
+
SpaceDeleted = "space.deleted",
|
|
18
|
+
KnowledgeCreated = "knowledge.created",
|
|
19
|
+
KnowledgeUpdated = "knowledge.updated",
|
|
20
|
+
KnowledgeDeleted = "knowledge.deleted",
|
|
21
|
+
TaskHituPackageCompleted = "task.hitu_package.completed",
|
|
22
|
+
TaskComponentRepoAnalyseCompleted = "task.component_repo_analyse.completed",
|
|
23
|
+
TaskKnowledgeChunkCompleted = "task.knowledge_chunk.completed",
|
|
24
|
+
TaskSpaceSummaryCompleted = "task.space_summary.completed",
|
|
25
|
+
Test = "test"
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* WebhookDeliveryStatus
|
|
29
|
+
* Webhook投递状态
|
|
30
|
+
*/
|
|
31
|
+
export declare enum IWebhookDeliveryStatus {
|
|
32
|
+
PENDING = "PENDING",
|
|
33
|
+
SUCCEEDED = "SUCCEEDED",
|
|
34
|
+
GAVE_UP = "GAVE_UP"
|
|
35
|
+
}
|
|
1
36
|
/** TaskStatus */
|
|
2
37
|
export declare enum ITaskStatus {
|
|
3
38
|
Pending = "pending",
|
|
@@ -96,6 +131,8 @@ export declare enum IKnowledgeTypeEnum {
|
|
|
96
131
|
Kotlin = "kotlin",
|
|
97
132
|
Js = "js",
|
|
98
133
|
Ts = "ts",
|
|
134
|
+
Jsx = "jsx",
|
|
135
|
+
Tsx = "tsx",
|
|
99
136
|
Php = "php",
|
|
100
137
|
Proto = "proto",
|
|
101
138
|
Python = "python",
|
|
@@ -141,69 +178,7 @@ export declare enum IAction {
|
|
|
141
178
|
Value = "*"
|
|
142
179
|
}
|
|
143
180
|
/** APIKey */
|
|
144
|
-
export interface
|
|
145
|
-
/**
|
|
146
|
-
* Gmt Create
|
|
147
|
-
* creation time
|
|
148
|
-
*/
|
|
149
|
-
gmt_create?: string | null;
|
|
150
|
-
/**
|
|
151
|
-
* Gmt Modified
|
|
152
|
-
* update time
|
|
153
|
-
*/
|
|
154
|
-
gmt_modified?: string | null;
|
|
155
|
-
/**
|
|
156
|
-
* Key Id
|
|
157
|
-
* key id
|
|
158
|
-
*/
|
|
159
|
-
key_id?: string;
|
|
160
|
-
/**
|
|
161
|
-
* Tenant Id
|
|
162
|
-
* tenant id
|
|
163
|
-
*/
|
|
164
|
-
tenant_id: string;
|
|
165
|
-
/**
|
|
166
|
-
* Key Name
|
|
167
|
-
* key name
|
|
168
|
-
* @default ""
|
|
169
|
-
*/
|
|
170
|
-
key_name?: string;
|
|
171
|
-
/**
|
|
172
|
-
* Key Value
|
|
173
|
-
* key value
|
|
174
|
-
*/
|
|
175
|
-
key_value: string;
|
|
176
|
-
/**
|
|
177
|
-
* Permissions
|
|
178
|
-
* permissions config
|
|
179
|
-
*/
|
|
180
|
-
permissions?: IPermission[];
|
|
181
|
-
/**
|
|
182
|
-
* Rate Limit
|
|
183
|
-
* rate limit per minute
|
|
184
|
-
* @min 0
|
|
185
|
-
* @default 0
|
|
186
|
-
*/
|
|
187
|
-
rate_limit?: number;
|
|
188
|
-
/**
|
|
189
|
-
* Expires At
|
|
190
|
-
* expire time (UTC)
|
|
191
|
-
*/
|
|
192
|
-
expires_at?: string | null;
|
|
193
|
-
/**
|
|
194
|
-
* Is Active
|
|
195
|
-
* key status
|
|
196
|
-
* @default true
|
|
197
|
-
*/
|
|
198
|
-
is_active?: boolean;
|
|
199
|
-
/**
|
|
200
|
-
* Metadata
|
|
201
|
-
* key metadata
|
|
202
|
-
*/
|
|
203
|
-
metadata?: Record<string, any> | null;
|
|
204
|
-
}
|
|
205
|
-
/** APIKey */
|
|
206
|
-
export interface IAPIKeyOutput {
|
|
181
|
+
export interface IAPIKey {
|
|
207
182
|
/**
|
|
208
183
|
* Gmt Create
|
|
209
184
|
* creation time
|
|
@@ -317,6 +292,117 @@ export interface IActiveStatusUpdate {
|
|
|
317
292
|
/** Status */
|
|
318
293
|
status: boolean;
|
|
319
294
|
}
|
|
295
|
+
/**
|
|
296
|
+
* AdminRebuildKnowledgeIndexRequest
|
|
297
|
+
* 管理员补齐 knowledge_index 请求
|
|
298
|
+
*/
|
|
299
|
+
export interface IAdminRebuildKnowledgeIndexRequest {
|
|
300
|
+
/**
|
|
301
|
+
* Tenant Id
|
|
302
|
+
* 租户ID(可选,不传则遍历全租户)
|
|
303
|
+
*/
|
|
304
|
+
tenant_id?: string | null;
|
|
305
|
+
/**
|
|
306
|
+
* Space Id
|
|
307
|
+
* 空间ID(可选)
|
|
308
|
+
*/
|
|
309
|
+
space_id?: string | null;
|
|
310
|
+
/**
|
|
311
|
+
* Knowledge Id
|
|
312
|
+
* 知识ID(可选)
|
|
313
|
+
*/
|
|
314
|
+
knowledge_id?: string | null;
|
|
315
|
+
/**
|
|
316
|
+
* Knowledge Type
|
|
317
|
+
* 知识类型(可选)
|
|
318
|
+
*/
|
|
319
|
+
knowledge_type?: string | null;
|
|
320
|
+
/**
|
|
321
|
+
* Dry Run
|
|
322
|
+
* 是否仅预览,不实际写入
|
|
323
|
+
* @default false
|
|
324
|
+
*/
|
|
325
|
+
dry_run?: boolean;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* AdminRebuildKnowledgeIndexResponse
|
|
329
|
+
* 管理员补齐 knowledge_index 响应
|
|
330
|
+
*/
|
|
331
|
+
export interface IAdminRebuildKnowledgeIndexResponse {
|
|
332
|
+
/**
|
|
333
|
+
* Total Matched
|
|
334
|
+
* 匹配的知识总数
|
|
335
|
+
*/
|
|
336
|
+
total_matched: number;
|
|
337
|
+
/**
|
|
338
|
+
* Rebuilt Count
|
|
339
|
+
* 成功补齐的知识数量
|
|
340
|
+
*/
|
|
341
|
+
rebuilt_count: number;
|
|
342
|
+
/**
|
|
343
|
+
* Failed Count
|
|
344
|
+
* 失败的知识数量
|
|
345
|
+
*/
|
|
346
|
+
failed_count: number;
|
|
347
|
+
/**
|
|
348
|
+
* Details
|
|
349
|
+
* 各知识处理详情
|
|
350
|
+
*/
|
|
351
|
+
details?: Record<string, any>[];
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* AdminSyncSummaryToStorageRequest
|
|
355
|
+
* 管理员同步 space summary 到自持 tenant 请求
|
|
356
|
+
*/
|
|
357
|
+
export interface IAdminSyncSummaryToStorageRequest {
|
|
358
|
+
/**
|
|
359
|
+
* Tenant Id
|
|
360
|
+
* 目标租户ID
|
|
361
|
+
*/
|
|
362
|
+
tenant_id: string;
|
|
363
|
+
/**
|
|
364
|
+
* Space Ids
|
|
365
|
+
* 空间ID列表,不传则处理该租户下所有空间
|
|
366
|
+
*/
|
|
367
|
+
space_ids?: string[] | null;
|
|
368
|
+
/**
|
|
369
|
+
* Dry Run
|
|
370
|
+
* 是否仅预览,不实际写入
|
|
371
|
+
* @default false
|
|
372
|
+
*/
|
|
373
|
+
dry_run?: boolean;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* AdminSyncSummaryToStorageResponse
|
|
377
|
+
* 管理员同步 space summary 到自持 tenant 响应
|
|
378
|
+
*/
|
|
379
|
+
export interface IAdminSyncSummaryToStorageResponse {
|
|
380
|
+
/**
|
|
381
|
+
* Total Spaces
|
|
382
|
+
* 总空间数
|
|
383
|
+
*/
|
|
384
|
+
total_spaces: number;
|
|
385
|
+
/**
|
|
386
|
+
* Spaces With Summary
|
|
387
|
+
* 有 summary 的空间数
|
|
388
|
+
*/
|
|
389
|
+
spaces_with_summary: number;
|
|
390
|
+
/**
|
|
391
|
+
* Synced Count
|
|
392
|
+
* 成功同步的数量
|
|
393
|
+
*/
|
|
394
|
+
synced_count: number;
|
|
395
|
+
/**
|
|
396
|
+
* Failed Count
|
|
397
|
+
* 同步失败的数量
|
|
398
|
+
*/
|
|
399
|
+
failed_count: number;
|
|
400
|
+
/**
|
|
401
|
+
* Details
|
|
402
|
+
* 各空间处理详情
|
|
403
|
+
*/
|
|
404
|
+
details?: Record<string, any>[];
|
|
405
|
+
}
|
|
320
406
|
/**
|
|
321
407
|
* AdminTaskRestartRequest
|
|
322
408
|
* 管理员任务重启请求
|
|
@@ -441,61 +527,87 @@ export interface IAdminUpdateTenantSecretKeyRequest {
|
|
|
441
527
|
secret_key: string;
|
|
442
528
|
}
|
|
443
529
|
/**
|
|
444
|
-
*
|
|
445
|
-
*
|
|
530
|
+
* AdminWebhookDeliveryListResponse
|
|
531
|
+
* 管理员Webhook投递记录列表响应
|
|
446
532
|
*/
|
|
447
|
-
export interface
|
|
448
|
-
/**
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
533
|
+
export interface IAdminWebhookDeliveryListResponse {
|
|
534
|
+
/** Items */
|
|
535
|
+
items: IAdminWebhookDeliveryResponse[];
|
|
536
|
+
/** Total */
|
|
537
|
+
total: number;
|
|
538
|
+
/** Page */
|
|
539
|
+
page: number;
|
|
540
|
+
/** Page Size */
|
|
541
|
+
page_size: number;
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* AdminWebhookDeliveryResponse
|
|
545
|
+
* 管理员Webhook投递记录响应
|
|
546
|
+
*/
|
|
547
|
+
export interface IAdminWebhookDeliveryResponse {
|
|
548
|
+
/** Delivery Id */
|
|
549
|
+
delivery_id: string;
|
|
550
|
+
/** Tenant Id */
|
|
551
|
+
tenant_id: string;
|
|
552
|
+
/** Webhook Id */
|
|
553
|
+
webhook_id: string;
|
|
554
|
+
/** Event Id */
|
|
555
|
+
event_id: string;
|
|
556
|
+
/** Webhook投递状态 */
|
|
557
|
+
status: IWebhookDeliveryStatus;
|
|
558
|
+
/** Attempt Count */
|
|
559
|
+
attempt_count: number;
|
|
560
|
+
/** Last Error */
|
|
561
|
+
last_error: string | null;
|
|
562
|
+
/** Response Code */
|
|
563
|
+
response_code: number | null;
|
|
564
|
+
/** Response Time Ms */
|
|
565
|
+
response_time_ms: number | null;
|
|
566
|
+
/** Last Attempt At */
|
|
567
|
+
last_attempt_at: string | null;
|
|
568
|
+
/** Next Retry At */
|
|
569
|
+
next_retry_at: string | null;
|
|
570
|
+
/** Gmt Create */
|
|
571
|
+
gmt_create: string;
|
|
572
|
+
/** Gmt Modified */
|
|
573
|
+
gmt_modified: string;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* AdminWebhookStatsResponse
|
|
577
|
+
* 管理员Webhook系统统计响应
|
|
578
|
+
*/
|
|
579
|
+
export interface IAdminWebhookStatsResponse {
|
|
464
580
|
/**
|
|
465
|
-
*
|
|
466
|
-
*
|
|
467
|
-
* @maxLength 255
|
|
581
|
+
* Outbox New Count
|
|
582
|
+
* Outbox待处理事件数
|
|
468
583
|
*/
|
|
469
|
-
|
|
584
|
+
outbox_new_count: number;
|
|
470
585
|
/**
|
|
471
|
-
*
|
|
472
|
-
*
|
|
586
|
+
* Outbox Processed Count
|
|
587
|
+
* Outbox已处理事件数
|
|
473
588
|
*/
|
|
474
|
-
|
|
589
|
+
outbox_processed_count: number;
|
|
475
590
|
/**
|
|
476
|
-
*
|
|
477
|
-
*
|
|
478
|
-
* @maxLength 255
|
|
479
|
-
* @pattern ^[A-Za-z0-9._@/-]{1,255}$
|
|
591
|
+
* Delivery Pending Count
|
|
592
|
+
* 待投递数量
|
|
480
593
|
*/
|
|
481
|
-
|
|
594
|
+
delivery_pending_count: number;
|
|
482
595
|
/**
|
|
483
|
-
*
|
|
484
|
-
*
|
|
485
|
-
* @default {}
|
|
596
|
+
* Delivery Succeeded Count
|
|
597
|
+
* 投递成功数量
|
|
486
598
|
*/
|
|
487
|
-
|
|
599
|
+
delivery_succeeded_count: number;
|
|
488
600
|
/**
|
|
489
|
-
*
|
|
490
|
-
*
|
|
601
|
+
* Delivery Gave Up Count
|
|
602
|
+
* 放弃重试数量
|
|
491
603
|
*/
|
|
492
|
-
|
|
604
|
+
delivery_gave_up_count: number;
|
|
493
605
|
}
|
|
494
606
|
/**
|
|
495
607
|
* ArtifactIndex
|
|
496
608
|
* whisker_artifact_index 模型
|
|
497
609
|
*/
|
|
498
|
-
export interface
|
|
610
|
+
export interface IArtifactIndex {
|
|
499
611
|
/**
|
|
500
612
|
* Gmt Create
|
|
501
613
|
* creation time
|
|
@@ -651,61 +763,60 @@ export interface IBatchQueryRequest {
|
|
|
651
763
|
}
|
|
652
764
|
/**
|
|
653
765
|
* Blob
|
|
654
|
-
*
|
|
766
|
+
* Raw data abstraction for document loading and file processing.
|
|
655
767
|
*
|
|
656
|
-
*
|
|
657
|
-
*
|
|
658
|
-
* the raw data.
|
|
768
|
+
* Represents raw bytes or text, either in-memory or by file reference. Used
|
|
769
|
+
* primarily by document loaders to decouple data loading from parsing.
|
|
659
770
|
*
|
|
660
|
-
* Inspired by
|
|
771
|
+
* Inspired by [Mozilla's `Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob)
|
|
661
772
|
*
|
|
662
|
-
*
|
|
773
|
+
* ???+ example "Initialize a blob from in-memory data"
|
|
663
774
|
*
|
|
664
|
-
*
|
|
775
|
+
* ```python
|
|
776
|
+
* from langchain_core.documents import Blob
|
|
665
777
|
*
|
|
666
|
-
*
|
|
778
|
+
* blob = Blob.from_data("Hello, world!")
|
|
667
779
|
*
|
|
668
|
-
*
|
|
780
|
+
* # Read the blob as a string
|
|
781
|
+
* print(blob.as_string())
|
|
669
782
|
*
|
|
670
|
-
*
|
|
671
|
-
*
|
|
783
|
+
* # Read the blob as bytes
|
|
784
|
+
* print(blob.as_bytes())
|
|
672
785
|
*
|
|
673
|
-
*
|
|
674
|
-
*
|
|
786
|
+
* # Read the blob as a byte stream
|
|
787
|
+
* with blob.as_bytes_io() as f:
|
|
788
|
+
* print(f.read())
|
|
789
|
+
* ```
|
|
675
790
|
*
|
|
676
|
-
*
|
|
677
|
-
* with blob.as_bytes_io() as f:
|
|
678
|
-
* print(f.read())
|
|
791
|
+
* ??? example "Load from memory and specify MIME type and metadata"
|
|
679
792
|
*
|
|
680
|
-
*
|
|
793
|
+
* ```python
|
|
794
|
+
* from langchain_core.documents import Blob
|
|
681
795
|
*
|
|
682
|
-
*
|
|
796
|
+
* blob = Blob.from_data(
|
|
797
|
+
* data="Hello, world!",
|
|
798
|
+
* mime_type="text/plain",
|
|
799
|
+
* metadata={"source": "https://example.com"},
|
|
800
|
+
* )
|
|
801
|
+
* ```
|
|
683
802
|
*
|
|
684
|
-
*
|
|
803
|
+
* ??? example "Load the blob from a file"
|
|
685
804
|
*
|
|
686
|
-
*
|
|
687
|
-
*
|
|
688
|
-
* mime_type="text/plain",
|
|
689
|
-
* metadata={"source": "https://example.com"},
|
|
690
|
-
* )
|
|
805
|
+
* ```python
|
|
806
|
+
* from langchain_core.documents import Blob
|
|
691
807
|
*
|
|
692
|
-
*
|
|
808
|
+
* blob = Blob.from_path("path/to/file.txt")
|
|
693
809
|
*
|
|
694
|
-
*
|
|
810
|
+
* # Read the blob as a string
|
|
811
|
+
* print(blob.as_string())
|
|
695
812
|
*
|
|
696
|
-
*
|
|
813
|
+
* # Read the blob as bytes
|
|
814
|
+
* print(blob.as_bytes())
|
|
697
815
|
*
|
|
698
|
-
*
|
|
699
|
-
*
|
|
700
|
-
*
|
|
701
|
-
*
|
|
702
|
-
*
|
|
703
|
-
* # Read the blob as bytes
|
|
704
|
-
* print(blob.as_bytes())
|
|
705
|
-
*
|
|
706
|
-
* # Read the blob as a byte stream
|
|
707
|
-
* with blob.as_bytes_io() as f:
|
|
708
|
-
* print(f.read())
|
|
816
|
+
* # Read the blob as a byte stream
|
|
817
|
+
* with blob.as_bytes_io() as f:
|
|
818
|
+
* print(f.read())
|
|
819
|
+
* ```
|
|
709
820
|
*/
|
|
710
821
|
export interface IBlob {
|
|
711
822
|
/** Id */
|
|
@@ -725,7 +836,7 @@ export interface IBlob {
|
|
|
725
836
|
path?: string | null;
|
|
726
837
|
}
|
|
727
838
|
/** Chunk */
|
|
728
|
-
export interface
|
|
839
|
+
export interface IChunk {
|
|
729
840
|
/**
|
|
730
841
|
* Gmt Create
|
|
731
842
|
* creation time
|
|
@@ -813,110 +924,21 @@ export interface IChunkInput {
|
|
|
813
924
|
*/
|
|
814
925
|
f5?: string | null;
|
|
815
926
|
}
|
|
816
|
-
/**
|
|
817
|
-
export interface
|
|
818
|
-
/**
|
|
819
|
-
* Gmt Create
|
|
820
|
-
* creation time
|
|
821
|
-
*/
|
|
822
|
-
gmt_create?: string | null;
|
|
823
|
-
/**
|
|
824
|
-
* Gmt Modified
|
|
825
|
-
* update time
|
|
826
|
-
*/
|
|
827
|
-
gmt_modified?: string | null;
|
|
828
|
-
/**
|
|
829
|
-
* Chunk Id
|
|
830
|
-
* chunk id
|
|
831
|
-
*/
|
|
832
|
-
chunk_id?: string;
|
|
833
|
-
/**
|
|
834
|
-
* Space Id
|
|
835
|
-
* space id
|
|
836
|
-
*/
|
|
927
|
+
/** ChunkSave */
|
|
928
|
+
export interface IChunkSave {
|
|
929
|
+
/** Space Id */
|
|
837
930
|
space_id: string;
|
|
838
|
-
/**
|
|
839
|
-
* Tenant Id
|
|
840
|
-
* tenant id
|
|
841
|
-
*/
|
|
842
|
-
tenant_id: string;
|
|
843
|
-
/**
|
|
844
|
-
* Embedding
|
|
845
|
-
* chunk embedding
|
|
846
|
-
*/
|
|
847
|
-
embedding?: number[] | null;
|
|
848
|
-
/**
|
|
849
|
-
* Context
|
|
850
|
-
* chunk content
|
|
851
|
-
*/
|
|
931
|
+
/** Context */
|
|
852
932
|
context: string;
|
|
853
|
-
/**
|
|
854
|
-
* Knowledge Id
|
|
855
|
-
* file source info
|
|
856
|
-
*/
|
|
933
|
+
/** Knowledge Id */
|
|
857
934
|
knowledge_id: string;
|
|
858
|
-
/**
|
|
859
|
-
* Enabled
|
|
860
|
-
* is chunk enabled
|
|
861
|
-
* @default true
|
|
862
|
-
*/
|
|
863
|
-
enabled?: boolean;
|
|
864
|
-
/**
|
|
865
|
-
* Embedding Model Name
|
|
866
|
-
* name of the embedding model
|
|
867
|
-
*/
|
|
935
|
+
/** Embedding Model Name */
|
|
868
936
|
embedding_model_name: string;
|
|
869
|
-
/**
|
|
870
|
-
* Metadata
|
|
871
|
-
* Arbitrary metadata associated with the content.
|
|
872
|
-
*/
|
|
937
|
+
/** Metadata */
|
|
873
938
|
metadata?: Record<string, any> | null;
|
|
874
|
-
/**
|
|
875
|
-
* Tags
|
|
876
|
-
* Tags from knowledge.metadata._tags
|
|
877
|
-
*/
|
|
939
|
+
/** Tags */
|
|
878
940
|
tags?: string[] | null;
|
|
879
|
-
/**
|
|
880
|
-
* F1
|
|
881
|
-
* Field 1 from knowledge.metadata._f1
|
|
882
|
-
*/
|
|
883
|
-
f1?: string | null;
|
|
884
|
-
/**
|
|
885
|
-
* F2
|
|
886
|
-
* Field 2 from knowledge.metadata._f2
|
|
887
|
-
*/
|
|
888
|
-
f2?: string | null;
|
|
889
|
-
/**
|
|
890
|
-
* F3
|
|
891
|
-
* Field 3 from knowledge.metadata._f3
|
|
892
|
-
*/
|
|
893
|
-
f3?: string | null;
|
|
894
|
-
/**
|
|
895
|
-
* F4
|
|
896
|
-
* Field 4 from knowledge.metadata._f4
|
|
897
|
-
*/
|
|
898
|
-
f4?: string | null;
|
|
899
|
-
/**
|
|
900
|
-
* F5
|
|
901
|
-
* Field 5 from knowledge.metadata._f5
|
|
902
|
-
*/
|
|
903
|
-
f5?: string | null;
|
|
904
|
-
}
|
|
905
|
-
/** ChunkSave */
|
|
906
|
-
export interface IChunkSave {
|
|
907
|
-
/** Space Id */
|
|
908
|
-
space_id: string;
|
|
909
|
-
/** Context */
|
|
910
|
-
context: string;
|
|
911
|
-
/** Knowledge Id */
|
|
912
|
-
knowledge_id: string;
|
|
913
|
-
/** Embedding Model Name */
|
|
914
|
-
embedding_model_name: string;
|
|
915
|
-
/** Metadata */
|
|
916
|
-
metadata?: Record<string, any> | null;
|
|
917
|
-
/** Tags */
|
|
918
|
-
tags?: string[] | null;
|
|
919
|
-
/** F1 */
|
|
941
|
+
/** F1 */
|
|
920
942
|
f1?: string | null;
|
|
921
943
|
/** F2 */
|
|
922
944
|
f2?: string | null;
|
|
@@ -1227,6 +1249,61 @@ export interface IHituNodePackageCreate {
|
|
|
1227
1249
|
/** split config of the knowledge */
|
|
1228
1250
|
split_config: INodePackageParseConfig;
|
|
1229
1251
|
}
|
|
1252
|
+
/** HituNodePackageElementCreate */
|
|
1253
|
+
export interface IHituNodePackageElementCreate {
|
|
1254
|
+
/**
|
|
1255
|
+
* Space Id
|
|
1256
|
+
* the space of knowledge, example: petercat bot id, github repo name
|
|
1257
|
+
*/
|
|
1258
|
+
space_id: string;
|
|
1259
|
+
/**
|
|
1260
|
+
* Knowledge Type
|
|
1261
|
+
* type of knowledge resource
|
|
1262
|
+
* @default "node_package_element"
|
|
1263
|
+
*/
|
|
1264
|
+
knowledge_type?: "node_package_element";
|
|
1265
|
+
/**
|
|
1266
|
+
* Knowledge Name
|
|
1267
|
+
* name of the knowledge resource
|
|
1268
|
+
* @maxLength 255
|
|
1269
|
+
*/
|
|
1270
|
+
knowledge_name: string;
|
|
1271
|
+
/**
|
|
1272
|
+
* Metadata
|
|
1273
|
+
* additional metadata, user can update it
|
|
1274
|
+
* @default {}
|
|
1275
|
+
*/
|
|
1276
|
+
metadata?: Record<string, any>;
|
|
1277
|
+
/** source type */
|
|
1278
|
+
source_type: IKnowledgeSourceEnum;
|
|
1279
|
+
/**
|
|
1280
|
+
* Embedding Model Name
|
|
1281
|
+
* name of the embedding model. you can set any other model if target embedding service registered
|
|
1282
|
+
*/
|
|
1283
|
+
embedding_model_name: string;
|
|
1284
|
+
/**
|
|
1285
|
+
* File Sha
|
|
1286
|
+
* SHA of the file
|
|
1287
|
+
*/
|
|
1288
|
+
file_sha?: string | null;
|
|
1289
|
+
/**
|
|
1290
|
+
* File Size
|
|
1291
|
+
* size of the file
|
|
1292
|
+
*/
|
|
1293
|
+
file_size?: number | null;
|
|
1294
|
+
/**
|
|
1295
|
+
* Parent Id
|
|
1296
|
+
* parent id of the knowledge
|
|
1297
|
+
*/
|
|
1298
|
+
parent_id?: string | null;
|
|
1299
|
+
/**
|
|
1300
|
+
* Source Config
|
|
1301
|
+
* source config of the knowledge
|
|
1302
|
+
*/
|
|
1303
|
+
source_config: ITextSourceConfig | IOpenUrlSourceConfig | IOpenIdSourceConfig | IS3SourceConfig;
|
|
1304
|
+
/** split config of the knowledge */
|
|
1305
|
+
split_config: ITextSplitConfig;
|
|
1306
|
+
}
|
|
1230
1307
|
/** Image */
|
|
1231
1308
|
export interface IImage {
|
|
1232
1309
|
/** Url */
|
|
@@ -1563,6 +1640,84 @@ export interface IKnowledgeOutput {
|
|
|
1563
1640
|
*/
|
|
1564
1641
|
enabled?: boolean;
|
|
1565
1642
|
}
|
|
1643
|
+
/**
|
|
1644
|
+
* KnowledgeIndex
|
|
1645
|
+
* Knowledge Index DTO used for full-text search indexing
|
|
1646
|
+
*/
|
|
1647
|
+
export interface IKnowledgeIndex {
|
|
1648
|
+
/**
|
|
1649
|
+
* Gmt Create
|
|
1650
|
+
* creation time
|
|
1651
|
+
*/
|
|
1652
|
+
gmt_create?: string | null;
|
|
1653
|
+
/**
|
|
1654
|
+
* Gmt Modified
|
|
1655
|
+
* update time
|
|
1656
|
+
*/
|
|
1657
|
+
gmt_modified?: string | null;
|
|
1658
|
+
/**
|
|
1659
|
+
* Tenant Id
|
|
1660
|
+
* Tenant ID
|
|
1661
|
+
*/
|
|
1662
|
+
tenant_id: string;
|
|
1663
|
+
/**
|
|
1664
|
+
* Space Id
|
|
1665
|
+
* Space ID
|
|
1666
|
+
*/
|
|
1667
|
+
space_id: string;
|
|
1668
|
+
/**
|
|
1669
|
+
* Knowledge Id
|
|
1670
|
+
* Knowledge ID
|
|
1671
|
+
*/
|
|
1672
|
+
knowledge_id: string;
|
|
1673
|
+
/**
|
|
1674
|
+
* Knowledge Name
|
|
1675
|
+
* Knowledge Name
|
|
1676
|
+
*/
|
|
1677
|
+
knowledge_name: string;
|
|
1678
|
+
/** Knowledge Type */
|
|
1679
|
+
knowledge_type: IKnowledgeTypeEnum;
|
|
1680
|
+
/**
|
|
1681
|
+
* Index Content
|
|
1682
|
+
* Content to be indexed
|
|
1683
|
+
*/
|
|
1684
|
+
index_content: string;
|
|
1685
|
+
/**
|
|
1686
|
+
* Source Ref
|
|
1687
|
+
* Source reference (e.g., URL)
|
|
1688
|
+
*/
|
|
1689
|
+
source_ref?: string | null;
|
|
1690
|
+
/**
|
|
1691
|
+
* Metadata
|
|
1692
|
+
* Additional metadata
|
|
1693
|
+
*/
|
|
1694
|
+
metadata?: Record<string, any>;
|
|
1695
|
+
}
|
|
1696
|
+
/** KnowledgeIndexAddRequest */
|
|
1697
|
+
export interface IKnowledgeIndexAddRequest {
|
|
1698
|
+
/** Index Content */
|
|
1699
|
+
index_content: string;
|
|
1700
|
+
/** Source Ref */
|
|
1701
|
+
source_ref?: string | null;
|
|
1702
|
+
/** Metadata */
|
|
1703
|
+
metadata?: Record<string, any>;
|
|
1704
|
+
}
|
|
1705
|
+
/** LLMMapRequest */
|
|
1706
|
+
export interface ILLMMapRequest {
|
|
1707
|
+
/** Space Id */
|
|
1708
|
+
space_id?: string | null;
|
|
1709
|
+
}
|
|
1710
|
+
/** LLMTxtSourceRequest */
|
|
1711
|
+
export interface ILLMTxtSourceRequest {
|
|
1712
|
+
/** Source Ref */
|
|
1713
|
+
source_ref: string;
|
|
1714
|
+
/** Space Id */
|
|
1715
|
+
space_id?: string | null;
|
|
1716
|
+
/** Page */
|
|
1717
|
+
page?: number | null;
|
|
1718
|
+
/** Page Size */
|
|
1719
|
+
page_size?: number | null;
|
|
1720
|
+
}
|
|
1566
1721
|
/** MarkdownCreate */
|
|
1567
1722
|
export interface IMarkdownCreate {
|
|
1568
1723
|
/**
|
|
@@ -1924,6 +2079,44 @@ export interface IPageQueryParamsChunk {
|
|
|
1924
2079
|
*/
|
|
1925
2080
|
page_size?: number;
|
|
1926
2081
|
}
|
|
2082
|
+
/** PageQueryParams[KnowledgeIndex] */
|
|
2083
|
+
export interface IPageQueryParamsKnowledgeIndex {
|
|
2084
|
+
/**
|
|
2085
|
+
* Order By
|
|
2086
|
+
* order by field
|
|
2087
|
+
*/
|
|
2088
|
+
order_by?: string | null;
|
|
2089
|
+
/**
|
|
2090
|
+
* Order Direction
|
|
2091
|
+
* asc or desc
|
|
2092
|
+
* @default "asc"
|
|
2093
|
+
*/
|
|
2094
|
+
order_direction?: string | null;
|
|
2095
|
+
/**
|
|
2096
|
+
* Eq Conditions
|
|
2097
|
+
* list of equality conditions, each as a dict with key and value
|
|
2098
|
+
*/
|
|
2099
|
+
eq_conditions?: Record<string, any> | null;
|
|
2100
|
+
/** advanced filter with nested conditions */
|
|
2101
|
+
advanced_filter?: IFilterGroup | null;
|
|
2102
|
+
/** 标签过滤条件 tag_name 和 tag_id */
|
|
2103
|
+
tag_filter?: ITagFilter | null;
|
|
2104
|
+
/**
|
|
2105
|
+
* Page
|
|
2106
|
+
* page number
|
|
2107
|
+
* @min 1
|
|
2108
|
+
* @default 1
|
|
2109
|
+
*/
|
|
2110
|
+
page?: number;
|
|
2111
|
+
/**
|
|
2112
|
+
* Page Size
|
|
2113
|
+
* page size
|
|
2114
|
+
* @min 1
|
|
2115
|
+
* @max 1000
|
|
2116
|
+
* @default 10
|
|
2117
|
+
*/
|
|
2118
|
+
page_size?: number;
|
|
2119
|
+
}
|
|
1927
2120
|
/** PageQueryParams[Knowledge] */
|
|
1928
2121
|
export interface IPageQueryParamsKnowledge {
|
|
1929
2122
|
/**
|
|
@@ -2114,10 +2307,86 @@ export interface IPageQueryParamsTask {
|
|
|
2114
2307
|
*/
|
|
2115
2308
|
page_size?: number;
|
|
2116
2309
|
}
|
|
2310
|
+
/** PageQueryParams[WebhookDelivery] */
|
|
2311
|
+
export interface IPageQueryParamsWebhookDelivery {
|
|
2312
|
+
/**
|
|
2313
|
+
* Order By
|
|
2314
|
+
* order by field
|
|
2315
|
+
*/
|
|
2316
|
+
order_by?: string | null;
|
|
2317
|
+
/**
|
|
2318
|
+
* Order Direction
|
|
2319
|
+
* asc or desc
|
|
2320
|
+
* @default "asc"
|
|
2321
|
+
*/
|
|
2322
|
+
order_direction?: string | null;
|
|
2323
|
+
/**
|
|
2324
|
+
* Eq Conditions
|
|
2325
|
+
* list of equality conditions, each as a dict with key and value
|
|
2326
|
+
*/
|
|
2327
|
+
eq_conditions?: Record<string, any> | null;
|
|
2328
|
+
/** advanced filter with nested conditions */
|
|
2329
|
+
advanced_filter?: IFilterGroup | null;
|
|
2330
|
+
/** 标签过滤条件 tag_name 和 tag_id */
|
|
2331
|
+
tag_filter?: ITagFilter | null;
|
|
2332
|
+
/**
|
|
2333
|
+
* Page
|
|
2334
|
+
* page number
|
|
2335
|
+
* @min 1
|
|
2336
|
+
* @default 1
|
|
2337
|
+
*/
|
|
2338
|
+
page?: number;
|
|
2339
|
+
/**
|
|
2340
|
+
* Page Size
|
|
2341
|
+
* page size
|
|
2342
|
+
* @min 1
|
|
2343
|
+
* @max 1000
|
|
2344
|
+
* @default 10
|
|
2345
|
+
*/
|
|
2346
|
+
page_size?: number;
|
|
2347
|
+
}
|
|
2348
|
+
/** PageQueryParams[WebhookSubscription] */
|
|
2349
|
+
export interface IPageQueryParamsWebhookSubscription {
|
|
2350
|
+
/**
|
|
2351
|
+
* Order By
|
|
2352
|
+
* order by field
|
|
2353
|
+
*/
|
|
2354
|
+
order_by?: string | null;
|
|
2355
|
+
/**
|
|
2356
|
+
* Order Direction
|
|
2357
|
+
* asc or desc
|
|
2358
|
+
* @default "asc"
|
|
2359
|
+
*/
|
|
2360
|
+
order_direction?: string | null;
|
|
2361
|
+
/**
|
|
2362
|
+
* Eq Conditions
|
|
2363
|
+
* list of equality conditions, each as a dict with key and value
|
|
2364
|
+
*/
|
|
2365
|
+
eq_conditions?: Record<string, any> | null;
|
|
2366
|
+
/** advanced filter with nested conditions */
|
|
2367
|
+
advanced_filter?: IFilterGroup | null;
|
|
2368
|
+
/** 标签过滤条件 tag_name 和 tag_id */
|
|
2369
|
+
tag_filter?: ITagFilter | null;
|
|
2370
|
+
/**
|
|
2371
|
+
* Page
|
|
2372
|
+
* page number
|
|
2373
|
+
* @min 1
|
|
2374
|
+
* @default 1
|
|
2375
|
+
*/
|
|
2376
|
+
page?: number;
|
|
2377
|
+
/**
|
|
2378
|
+
* Page Size
|
|
2379
|
+
* page size
|
|
2380
|
+
* @min 1
|
|
2381
|
+
* @max 1000
|
|
2382
|
+
* @default 10
|
|
2383
|
+
*/
|
|
2384
|
+
page_size?: number;
|
|
2385
|
+
}
|
|
2117
2386
|
/** PageResponse[APIKey] */
|
|
2118
|
-
export interface
|
|
2387
|
+
export interface IPageResponseAPIKey {
|
|
2119
2388
|
/** Items */
|
|
2120
|
-
items:
|
|
2389
|
+
items: IAPIKey[];
|
|
2121
2390
|
/** Total */
|
|
2122
2391
|
total: number;
|
|
2123
2392
|
/** Page */
|
|
@@ -2127,10 +2396,10 @@ export interface IPageResponseAPIKeyInput {
|
|
|
2127
2396
|
/** Total Pages */
|
|
2128
2397
|
total_pages: number;
|
|
2129
2398
|
}
|
|
2130
|
-
/** PageResponse[
|
|
2131
|
-
export interface
|
|
2399
|
+
/** PageResponse[ArtifactIndex] */
|
|
2400
|
+
export interface IPageResponseArtifactIndex {
|
|
2132
2401
|
/** Items */
|
|
2133
|
-
items:
|
|
2402
|
+
items: IArtifactIndex[];
|
|
2134
2403
|
/** Total */
|
|
2135
2404
|
total: number;
|
|
2136
2405
|
/** Page */
|
|
@@ -2140,10 +2409,10 @@ export interface IPageResponseAPIKeyOutput {
|
|
|
2140
2409
|
/** Total Pages */
|
|
2141
2410
|
total_pages: number;
|
|
2142
2411
|
}
|
|
2143
|
-
/** PageResponse[
|
|
2144
|
-
export interface
|
|
2412
|
+
/** PageResponse[Chunk] */
|
|
2413
|
+
export interface IPageResponseChunk {
|
|
2145
2414
|
/** Items */
|
|
2146
|
-
items:
|
|
2415
|
+
items: IChunk[];
|
|
2147
2416
|
/** Total */
|
|
2148
2417
|
total: number;
|
|
2149
2418
|
/** Page */
|
|
@@ -2153,10 +2422,10 @@ export interface IPageResponseArtifactIndexInput {
|
|
|
2153
2422
|
/** Total Pages */
|
|
2154
2423
|
total_pages: number;
|
|
2155
2424
|
}
|
|
2156
|
-
/** PageResponse[
|
|
2157
|
-
export interface
|
|
2425
|
+
/** PageResponse[KnowledgeIndex] */
|
|
2426
|
+
export interface IPageResponseKnowledgeIndex {
|
|
2158
2427
|
/** Items */
|
|
2159
|
-
items:
|
|
2428
|
+
items: IKnowledgeIndex[];
|
|
2160
2429
|
/** Total */
|
|
2161
2430
|
total: number;
|
|
2162
2431
|
/** Page */
|
|
@@ -2166,10 +2435,10 @@ export interface IPageResponseArtifactIndexOutput {
|
|
|
2166
2435
|
/** Total Pages */
|
|
2167
2436
|
total_pages: number;
|
|
2168
2437
|
}
|
|
2169
|
-
/** PageResponse[
|
|
2170
|
-
export interface
|
|
2438
|
+
/** PageResponse[Knowledge] */
|
|
2439
|
+
export interface IPageResponseKnowledge {
|
|
2171
2440
|
/** Items */
|
|
2172
|
-
items:
|
|
2441
|
+
items: IKnowledgeOutput[];
|
|
2173
2442
|
/** Total */
|
|
2174
2443
|
total: number;
|
|
2175
2444
|
/** Page */
|
|
@@ -2179,62 +2448,10 @@ export interface IPageResponseChunkInput {
|
|
|
2179
2448
|
/** Total Pages */
|
|
2180
2449
|
total_pages: number;
|
|
2181
2450
|
}
|
|
2182
|
-
/** PageResponse[
|
|
2183
|
-
export interface
|
|
2451
|
+
/** PageResponse[SpaceResponse] */
|
|
2452
|
+
export interface IPageResponseSpaceResponse {
|
|
2184
2453
|
/** Items */
|
|
2185
|
-
items:
|
|
2186
|
-
/** Total */
|
|
2187
|
-
total: number;
|
|
2188
|
-
/** Page */
|
|
2189
|
-
page: number;
|
|
2190
|
-
/** Page Size */
|
|
2191
|
-
page_size: number;
|
|
2192
|
-
/** Total Pages */
|
|
2193
|
-
total_pages: number;
|
|
2194
|
-
}
|
|
2195
|
-
/** PageResponse[Knowledge] */
|
|
2196
|
-
export interface IPageResponseKnowledgeInput {
|
|
2197
|
-
/** Items */
|
|
2198
|
-
items: IKnowledgeInput[];
|
|
2199
|
-
/** Total */
|
|
2200
|
-
total: number;
|
|
2201
|
-
/** Page */
|
|
2202
|
-
page: number;
|
|
2203
|
-
/** Page Size */
|
|
2204
|
-
page_size: number;
|
|
2205
|
-
/** Total Pages */
|
|
2206
|
-
total_pages: number;
|
|
2207
|
-
}
|
|
2208
|
-
/** PageResponse[Knowledge] */
|
|
2209
|
-
export interface IPageResponseKnowledgeOutput {
|
|
2210
|
-
/** Items */
|
|
2211
|
-
items: IKnowledgeOutput[];
|
|
2212
|
-
/** Total */
|
|
2213
|
-
total: number;
|
|
2214
|
-
/** Page */
|
|
2215
|
-
page: number;
|
|
2216
|
-
/** Page Size */
|
|
2217
|
-
page_size: number;
|
|
2218
|
-
/** Total Pages */
|
|
2219
|
-
total_pages: number;
|
|
2220
|
-
}
|
|
2221
|
-
/** PageResponse[SpaceResponse] */
|
|
2222
|
-
export interface IPageResponseSpaceResponseInput {
|
|
2223
|
-
/** Items */
|
|
2224
|
-
items: ISpaceResponseInput[];
|
|
2225
|
-
/** Total */
|
|
2226
|
-
total: number;
|
|
2227
|
-
/** Page */
|
|
2228
|
-
page: number;
|
|
2229
|
-
/** Page Size */
|
|
2230
|
-
page_size: number;
|
|
2231
|
-
/** Total Pages */
|
|
2232
|
-
total_pages: number;
|
|
2233
|
-
}
|
|
2234
|
-
/** PageResponse[SpaceResponse] */
|
|
2235
|
-
export interface IPageResponseSpaceResponseOutput {
|
|
2236
|
-
/** Items */
|
|
2237
|
-
items: ISpaceResponseOutput[];
|
|
2454
|
+
items: ISpaceResponse[];
|
|
2238
2455
|
/** Total */
|
|
2239
2456
|
total: number;
|
|
2240
2457
|
/** Page */
|
|
@@ -2245,22 +2462,9 @@ export interface IPageResponseSpaceResponseOutput {
|
|
|
2245
2462
|
total_pages: number;
|
|
2246
2463
|
}
|
|
2247
2464
|
/** PageResponse[Tag] */
|
|
2248
|
-
export interface
|
|
2465
|
+
export interface IPageResponseTag {
|
|
2249
2466
|
/** Items */
|
|
2250
|
-
items:
|
|
2251
|
-
/** Total */
|
|
2252
|
-
total: number;
|
|
2253
|
-
/** Page */
|
|
2254
|
-
page: number;
|
|
2255
|
-
/** Page Size */
|
|
2256
|
-
page_size: number;
|
|
2257
|
-
/** Total Pages */
|
|
2258
|
-
total_pages: number;
|
|
2259
|
-
}
|
|
2260
|
-
/** PageResponse[Tag] */
|
|
2261
|
-
export interface IPageResponseTagOutput {
|
|
2262
|
-
/** Items */
|
|
2263
|
-
items: ITagOutput[];
|
|
2467
|
+
items: ITag[];
|
|
2264
2468
|
/** Total */
|
|
2265
2469
|
total: number;
|
|
2266
2470
|
/** Page */
|
|
@@ -2271,9 +2475,9 @@ export interface IPageResponseTagOutput {
|
|
|
2271
2475
|
total_pages: number;
|
|
2272
2476
|
}
|
|
2273
2477
|
/** PageResponse[Tagging] */
|
|
2274
|
-
export interface
|
|
2478
|
+
export interface IPageResponseTagging {
|
|
2275
2479
|
/** Items */
|
|
2276
|
-
items:
|
|
2480
|
+
items: ITagging[];
|
|
2277
2481
|
/** Total */
|
|
2278
2482
|
total: number;
|
|
2279
2483
|
/** Page */
|
|
@@ -2283,10 +2487,10 @@ export interface IPageResponseTaggingInput {
|
|
|
2283
2487
|
/** Total Pages */
|
|
2284
2488
|
total_pages: number;
|
|
2285
2489
|
}
|
|
2286
|
-
/** PageResponse[
|
|
2287
|
-
export interface
|
|
2490
|
+
/** PageResponse[Tenant] */
|
|
2491
|
+
export interface IPageResponseTenant {
|
|
2288
2492
|
/** Items */
|
|
2289
|
-
items:
|
|
2493
|
+
items: ITenant[];
|
|
2290
2494
|
/** Total */
|
|
2291
2495
|
total: number;
|
|
2292
2496
|
/** Page */
|
|
@@ -2296,10 +2500,10 @@ export interface IPageResponseTaggingOutput {
|
|
|
2296
2500
|
/** Total Pages */
|
|
2297
2501
|
total_pages: number;
|
|
2298
2502
|
}
|
|
2299
|
-
/** PageResponse[
|
|
2300
|
-
export interface
|
|
2503
|
+
/** PageResponse[WebhookDeliveryResponse] */
|
|
2504
|
+
export interface IPageResponseWebhookDeliveryResponse {
|
|
2301
2505
|
/** Items */
|
|
2302
|
-
items:
|
|
2506
|
+
items: IWebhookDeliveryResponse[];
|
|
2303
2507
|
/** Total */
|
|
2304
2508
|
total: number;
|
|
2305
2509
|
/** Page */
|
|
@@ -2309,10 +2513,10 @@ export interface IPageResponseTenantInput {
|
|
|
2309
2513
|
/** Total Pages */
|
|
2310
2514
|
total_pages: number;
|
|
2311
2515
|
}
|
|
2312
|
-
/** PageResponse[
|
|
2313
|
-
export interface
|
|
2516
|
+
/** PageResponse[WebhookSubscriptionResponse] */
|
|
2517
|
+
export interface IPageResponseWebhookSubscriptionResponse {
|
|
2314
2518
|
/** Items */
|
|
2315
|
-
items:
|
|
2519
|
+
items: IWebhookSubscriptionResponse[];
|
|
2316
2520
|
/** Total */
|
|
2317
2521
|
total: number;
|
|
2318
2522
|
/** Page */
|
|
@@ -2409,7 +2613,23 @@ export interface IResponseModel {
|
|
|
2409
2613
|
export interface IResponseModelAPIKey {
|
|
2410
2614
|
/** Success */
|
|
2411
2615
|
success: boolean;
|
|
2412
|
-
data?:
|
|
2616
|
+
data?: IAPIKey | null;
|
|
2617
|
+
/** Message */
|
|
2618
|
+
message?: string | null;
|
|
2619
|
+
}
|
|
2620
|
+
/** ResponseModel[AdminRebuildKnowledgeIndexResponse] */
|
|
2621
|
+
export interface IResponseModelAdminRebuildKnowledgeIndexResponse {
|
|
2622
|
+
/** Success */
|
|
2623
|
+
success: boolean;
|
|
2624
|
+
data?: IAdminRebuildKnowledgeIndexResponse | null;
|
|
2625
|
+
/** Message */
|
|
2626
|
+
message?: string | null;
|
|
2627
|
+
}
|
|
2628
|
+
/** ResponseModel[AdminSyncSummaryToStorageResponse] */
|
|
2629
|
+
export interface IResponseModelAdminSyncSummaryToStorageResponse {
|
|
2630
|
+
/** Success */
|
|
2631
|
+
success: boolean;
|
|
2632
|
+
data?: IAdminSyncSummaryToStorageResponse | null;
|
|
2413
2633
|
/** Message */
|
|
2414
2634
|
message?: string | null;
|
|
2415
2635
|
}
|
|
@@ -2421,6 +2641,30 @@ export interface IResponseModelAdminTaskRestartResponse {
|
|
|
2421
2641
|
/** Message */
|
|
2422
2642
|
message?: string | null;
|
|
2423
2643
|
}
|
|
2644
|
+
/** ResponseModel[AdminWebhookDeliveryListResponse] */
|
|
2645
|
+
export interface IResponseModelAdminWebhookDeliveryListResponse {
|
|
2646
|
+
/** Success */
|
|
2647
|
+
success: boolean;
|
|
2648
|
+
data?: IAdminWebhookDeliveryListResponse | null;
|
|
2649
|
+
/** Message */
|
|
2650
|
+
message?: string | null;
|
|
2651
|
+
}
|
|
2652
|
+
/** ResponseModel[AdminWebhookDeliveryResponse] */
|
|
2653
|
+
export interface IResponseModelAdminWebhookDeliveryResponse {
|
|
2654
|
+
/** Success */
|
|
2655
|
+
success: boolean;
|
|
2656
|
+
data?: IAdminWebhookDeliveryResponse | null;
|
|
2657
|
+
/** Message */
|
|
2658
|
+
message?: string | null;
|
|
2659
|
+
}
|
|
2660
|
+
/** ResponseModel[AdminWebhookStatsResponse] */
|
|
2661
|
+
export interface IResponseModelAdminWebhookStatsResponse {
|
|
2662
|
+
/** Success */
|
|
2663
|
+
success: boolean;
|
|
2664
|
+
data?: IAdminWebhookStatsResponse | null;
|
|
2665
|
+
/** Message */
|
|
2666
|
+
message?: string | null;
|
|
2667
|
+
}
|
|
2424
2668
|
/** ResponseModel[Any] */
|
|
2425
2669
|
export interface IResponseModelAny {
|
|
2426
2670
|
/** Success */
|
|
@@ -2434,7 +2678,7 @@ export interface IResponseModelAny {
|
|
|
2434
2678
|
export interface IResponseModelArtifactIndex {
|
|
2435
2679
|
/** Success */
|
|
2436
2680
|
success: boolean;
|
|
2437
|
-
data?:
|
|
2681
|
+
data?: IArtifactIndex | null;
|
|
2438
2682
|
/** Message */
|
|
2439
2683
|
message?: string | null;
|
|
2440
2684
|
}
|
|
@@ -2442,7 +2686,7 @@ export interface IResponseModelArtifactIndex {
|
|
|
2442
2686
|
export interface IResponseModelChunk {
|
|
2443
2687
|
/** Success */
|
|
2444
2688
|
success: boolean;
|
|
2445
|
-
data?:
|
|
2689
|
+
data?: IChunk | null;
|
|
2446
2690
|
/** Message */
|
|
2447
2691
|
message?: string | null;
|
|
2448
2692
|
}
|
|
@@ -2463,6 +2707,14 @@ export interface IResponseModelGlobalInfo {
|
|
|
2463
2707
|
/** Message */
|
|
2464
2708
|
message?: string | null;
|
|
2465
2709
|
}
|
|
2710
|
+
/** ResponseModel[KnowledgeIndex] */
|
|
2711
|
+
export interface IResponseModelKnowledgeIndex {
|
|
2712
|
+
/** Success */
|
|
2713
|
+
success: boolean;
|
|
2714
|
+
data?: IKnowledgeIndex | null;
|
|
2715
|
+
/** Message */
|
|
2716
|
+
message?: string | null;
|
|
2717
|
+
}
|
|
2466
2718
|
/** ResponseModel[Knowledge] */
|
|
2467
2719
|
export interface IResponseModelKnowledge {
|
|
2468
2720
|
/** Success */
|
|
@@ -2476,7 +2728,7 @@ export interface IResponseModelListAPIKey {
|
|
|
2476
2728
|
/** Success */
|
|
2477
2729
|
success: boolean;
|
|
2478
2730
|
/** Data */
|
|
2479
|
-
data?:
|
|
2731
|
+
data?: IAPIKey[] | null;
|
|
2480
2732
|
/** Message */
|
|
2481
2733
|
message?: string | null;
|
|
2482
2734
|
}
|
|
@@ -2485,7 +2737,7 @@ export interface IResponseModelListArtifactIndex {
|
|
|
2485
2737
|
/** Success */
|
|
2486
2738
|
success: boolean;
|
|
2487
2739
|
/** Data */
|
|
2488
|
-
data?:
|
|
2740
|
+
data?: IArtifactIndex[] | null;
|
|
2489
2741
|
/** Message */
|
|
2490
2742
|
message?: string | null;
|
|
2491
2743
|
}
|
|
@@ -2503,7 +2755,7 @@ export interface IResponseModelListRetrievalChunk {
|
|
|
2503
2755
|
/** Success */
|
|
2504
2756
|
success: boolean;
|
|
2505
2757
|
/** Data */
|
|
2506
|
-
data?:
|
|
2758
|
+
data?: IRetrievalChunk[] | null;
|
|
2507
2759
|
/** Message */
|
|
2508
2760
|
message?: string | null;
|
|
2509
2761
|
}
|
|
@@ -2512,7 +2764,7 @@ export interface IResponseModelListTag {
|
|
|
2512
2764
|
/** Success */
|
|
2513
2765
|
success: boolean;
|
|
2514
2766
|
/** Data */
|
|
2515
|
-
data?:
|
|
2767
|
+
data?: ITag[] | null;
|
|
2516
2768
|
/** Message */
|
|
2517
2769
|
message?: string | null;
|
|
2518
2770
|
}
|
|
@@ -2521,7 +2773,7 @@ export interface IResponseModelListTagging {
|
|
|
2521
2773
|
/** Success */
|
|
2522
2774
|
success: boolean;
|
|
2523
2775
|
/** Data */
|
|
2524
|
-
data?:
|
|
2776
|
+
data?: ITagging[] | null;
|
|
2525
2777
|
/** Message */
|
|
2526
2778
|
message?: string | null;
|
|
2527
2779
|
}
|
|
@@ -2530,7 +2782,7 @@ export interface IResponseModelListTask {
|
|
|
2530
2782
|
/** Success */
|
|
2531
2783
|
success: boolean;
|
|
2532
2784
|
/** Data */
|
|
2533
|
-
data?:
|
|
2785
|
+
data?: ITask[] | null;
|
|
2534
2786
|
/** Message */
|
|
2535
2787
|
message?: string | null;
|
|
2536
2788
|
}
|
|
@@ -2574,7 +2826,7 @@ export interface IResponseModelNoneType {
|
|
|
2574
2826
|
export interface IResponseModelPageResponseAPIKey {
|
|
2575
2827
|
/** Success */
|
|
2576
2828
|
success: boolean;
|
|
2577
|
-
data?:
|
|
2829
|
+
data?: IPageResponseAPIKey | null;
|
|
2578
2830
|
/** Message */
|
|
2579
2831
|
message?: string | null;
|
|
2580
2832
|
}
|
|
@@ -2582,7 +2834,7 @@ export interface IResponseModelPageResponseAPIKey {
|
|
|
2582
2834
|
export interface IResponseModelPageResponseArtifactIndex {
|
|
2583
2835
|
/** Success */
|
|
2584
2836
|
success: boolean;
|
|
2585
|
-
data?:
|
|
2837
|
+
data?: IPageResponseArtifactIndex | null;
|
|
2586
2838
|
/** Message */
|
|
2587
2839
|
message?: string | null;
|
|
2588
2840
|
}
|
|
@@ -2590,7 +2842,15 @@ export interface IResponseModelPageResponseArtifactIndex {
|
|
|
2590
2842
|
export interface IResponseModelPageResponseChunk {
|
|
2591
2843
|
/** Success */
|
|
2592
2844
|
success: boolean;
|
|
2593
|
-
data?:
|
|
2845
|
+
data?: IPageResponseChunk | null;
|
|
2846
|
+
/** Message */
|
|
2847
|
+
message?: string | null;
|
|
2848
|
+
}
|
|
2849
|
+
/** ResponseModel[PageResponse[KnowledgeIndex]] */
|
|
2850
|
+
export interface IResponseModelPageResponseKnowledgeIndex {
|
|
2851
|
+
/** Success */
|
|
2852
|
+
success: boolean;
|
|
2853
|
+
data?: IPageResponseKnowledgeIndex | null;
|
|
2594
2854
|
/** Message */
|
|
2595
2855
|
message?: string | null;
|
|
2596
2856
|
}
|
|
@@ -2598,7 +2858,7 @@ export interface IResponseModelPageResponseChunk {
|
|
|
2598
2858
|
export interface IResponseModelPageResponseKnowledge {
|
|
2599
2859
|
/** Success */
|
|
2600
2860
|
success: boolean;
|
|
2601
|
-
data?:
|
|
2861
|
+
data?: IPageResponseKnowledge | null;
|
|
2602
2862
|
/** Message */
|
|
2603
2863
|
message?: string | null;
|
|
2604
2864
|
}
|
|
@@ -2606,7 +2866,7 @@ export interface IResponseModelPageResponseKnowledge {
|
|
|
2606
2866
|
export interface IResponseModelPageResponseSpaceResponse {
|
|
2607
2867
|
/** Success */
|
|
2608
2868
|
success: boolean;
|
|
2609
|
-
data?:
|
|
2869
|
+
data?: IPageResponseSpaceResponse | null;
|
|
2610
2870
|
/** Message */
|
|
2611
2871
|
message?: string | null;
|
|
2612
2872
|
}
|
|
@@ -2614,7 +2874,7 @@ export interface IResponseModelPageResponseSpaceResponse {
|
|
|
2614
2874
|
export interface IResponseModelPageResponseTag {
|
|
2615
2875
|
/** Success */
|
|
2616
2876
|
success: boolean;
|
|
2617
|
-
data?:
|
|
2877
|
+
data?: IPageResponseTag | null;
|
|
2618
2878
|
/** Message */
|
|
2619
2879
|
message?: string | null;
|
|
2620
2880
|
}
|
|
@@ -2622,7 +2882,7 @@ export interface IResponseModelPageResponseTag {
|
|
|
2622
2882
|
export interface IResponseModelPageResponseTagging {
|
|
2623
2883
|
/** Success */
|
|
2624
2884
|
success: boolean;
|
|
2625
|
-
data?:
|
|
2885
|
+
data?: IPageResponseTagging | null;
|
|
2626
2886
|
/** Message */
|
|
2627
2887
|
message?: string | null;
|
|
2628
2888
|
}
|
|
@@ -2630,7 +2890,23 @@ export interface IResponseModelPageResponseTagging {
|
|
|
2630
2890
|
export interface IResponseModelPageResponseTenant {
|
|
2631
2891
|
/** Success */
|
|
2632
2892
|
success: boolean;
|
|
2633
|
-
data?:
|
|
2893
|
+
data?: IPageResponseTenant | null;
|
|
2894
|
+
/** Message */
|
|
2895
|
+
message?: string | null;
|
|
2896
|
+
}
|
|
2897
|
+
/** ResponseModel[PageResponse[WebhookDeliveryResponse]] */
|
|
2898
|
+
export interface IResponseModelPageResponseWebhookDeliveryResponse {
|
|
2899
|
+
/** Success */
|
|
2900
|
+
success: boolean;
|
|
2901
|
+
data?: IPageResponseWebhookDeliveryResponse | null;
|
|
2902
|
+
/** Message */
|
|
2903
|
+
message?: string | null;
|
|
2904
|
+
}
|
|
2905
|
+
/** ResponseModel[PageResponse[WebhookSubscriptionResponse]] */
|
|
2906
|
+
export interface IResponseModelPageResponseWebhookSubscriptionResponse {
|
|
2907
|
+
/** Success */
|
|
2908
|
+
success: boolean;
|
|
2909
|
+
data?: IPageResponseWebhookSubscriptionResponse | null;
|
|
2634
2910
|
/** Message */
|
|
2635
2911
|
message?: string | null;
|
|
2636
2912
|
}
|
|
@@ -2638,7 +2914,7 @@ export interface IResponseModelPageResponseTenant {
|
|
|
2638
2914
|
export interface IResponseModelSpaceResponse {
|
|
2639
2915
|
/** Success */
|
|
2640
2916
|
success: boolean;
|
|
2641
|
-
data?:
|
|
2917
|
+
data?: ISpaceResponse | null;
|
|
2642
2918
|
/** Message */
|
|
2643
2919
|
message?: string | null;
|
|
2644
2920
|
}
|
|
@@ -2646,7 +2922,7 @@ export interface IResponseModelSpaceResponse {
|
|
|
2646
2922
|
export interface IResponseModelSpace {
|
|
2647
2923
|
/** Success */
|
|
2648
2924
|
success: boolean;
|
|
2649
|
-
data?:
|
|
2925
|
+
data?: ISpace | null;
|
|
2650
2926
|
/** Message */
|
|
2651
2927
|
message?: string | null;
|
|
2652
2928
|
}
|
|
@@ -2654,7 +2930,7 @@ export interface IResponseModelSpace {
|
|
|
2654
2930
|
export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
2655
2931
|
/** Success */
|
|
2656
2932
|
success: boolean;
|
|
2657
|
-
data?:
|
|
2933
|
+
data?: IStatusStatisticsPageResponseTask | null;
|
|
2658
2934
|
/** Message */
|
|
2659
2935
|
message?: string | null;
|
|
2660
2936
|
}
|
|
@@ -2662,7 +2938,7 @@ export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
|
2662
2938
|
export interface IResponseModelTag {
|
|
2663
2939
|
/** Success */
|
|
2664
2940
|
success: boolean;
|
|
2665
|
-
data?:
|
|
2941
|
+
data?: ITag | null;
|
|
2666
2942
|
/** Message */
|
|
2667
2943
|
message?: string | null;
|
|
2668
2944
|
}
|
|
@@ -2670,7 +2946,7 @@ export interface IResponseModelTag {
|
|
|
2670
2946
|
export interface IResponseModelTask {
|
|
2671
2947
|
/** Success */
|
|
2672
2948
|
success: boolean;
|
|
2673
|
-
data?:
|
|
2949
|
+
data?: ITask | null;
|
|
2674
2950
|
/** Message */
|
|
2675
2951
|
message?: string | null;
|
|
2676
2952
|
}
|
|
@@ -2686,7 +2962,32 @@ export interface IResponseModelTenantNameCheckResponse {
|
|
|
2686
2962
|
export interface IResponseModelTenant {
|
|
2687
2963
|
/** Success */
|
|
2688
2964
|
success: boolean;
|
|
2689
|
-
data?:
|
|
2965
|
+
data?: ITenant | null;
|
|
2966
|
+
/** Message */
|
|
2967
|
+
message?: string | null;
|
|
2968
|
+
}
|
|
2969
|
+
/** ResponseModel[WebhookSubscriptionResponse] */
|
|
2970
|
+
export interface IResponseModelWebhookSubscriptionResponse {
|
|
2971
|
+
/** Success */
|
|
2972
|
+
success: boolean;
|
|
2973
|
+
data?: IWebhookSubscriptionResponse | null;
|
|
2974
|
+
/** Message */
|
|
2975
|
+
message?: string | null;
|
|
2976
|
+
}
|
|
2977
|
+
/** ResponseModel[WebhookTestResponse] */
|
|
2978
|
+
export interface IResponseModelWebhookTestResponse {
|
|
2979
|
+
/** Success */
|
|
2980
|
+
success: boolean;
|
|
2981
|
+
data?: IWebhookTestResponse | null;
|
|
2982
|
+
/** Message */
|
|
2983
|
+
message?: string | null;
|
|
2984
|
+
}
|
|
2985
|
+
/** ResponseModel[bool] */
|
|
2986
|
+
export interface IResponseModelBool {
|
|
2987
|
+
/** Success */
|
|
2988
|
+
success: boolean;
|
|
2989
|
+
/** Data */
|
|
2990
|
+
data?: boolean | null;
|
|
2690
2991
|
/** Message */
|
|
2691
2992
|
message?: string | null;
|
|
2692
2993
|
}
|
|
@@ -2787,98 +3088,7 @@ export interface IRetrievalBySpaceRequest {
|
|
|
2787
3088
|
space_id_list: string[];
|
|
2788
3089
|
}
|
|
2789
3090
|
/** RetrievalChunk */
|
|
2790
|
-
export interface
|
|
2791
|
-
/**
|
|
2792
|
-
* Gmt Create
|
|
2793
|
-
* creation time
|
|
2794
|
-
*/
|
|
2795
|
-
gmt_create?: string | null;
|
|
2796
|
-
/**
|
|
2797
|
-
* Gmt Modified
|
|
2798
|
-
* update time
|
|
2799
|
-
*/
|
|
2800
|
-
gmt_modified?: string | null;
|
|
2801
|
-
/**
|
|
2802
|
-
* Chunk Id
|
|
2803
|
-
* chunk id
|
|
2804
|
-
*/
|
|
2805
|
-
chunk_id?: string;
|
|
2806
|
-
/**
|
|
2807
|
-
* Space Id
|
|
2808
|
-
* space id
|
|
2809
|
-
*/
|
|
2810
|
-
space_id: string;
|
|
2811
|
-
/**
|
|
2812
|
-
* Tenant Id
|
|
2813
|
-
* tenant id
|
|
2814
|
-
*/
|
|
2815
|
-
tenant_id: string;
|
|
2816
|
-
/**
|
|
2817
|
-
* Embedding
|
|
2818
|
-
* chunk embedding
|
|
2819
|
-
*/
|
|
2820
|
-
embedding?: number[] | null;
|
|
2821
|
-
/**
|
|
2822
|
-
* Context
|
|
2823
|
-
* chunk content
|
|
2824
|
-
*/
|
|
2825
|
-
context: string;
|
|
2826
|
-
/**
|
|
2827
|
-
* Knowledge Id
|
|
2828
|
-
* file source info
|
|
2829
|
-
*/
|
|
2830
|
-
knowledge_id: string;
|
|
2831
|
-
/**
|
|
2832
|
-
* Enabled
|
|
2833
|
-
* is chunk enabled
|
|
2834
|
-
* @default true
|
|
2835
|
-
*/
|
|
2836
|
-
enabled?: boolean;
|
|
2837
|
-
/** Embedding Model Name */
|
|
2838
|
-
embedding_model_name?: string | null;
|
|
2839
|
-
/**
|
|
2840
|
-
* Metadata
|
|
2841
|
-
* Arbitrary metadata associated with the content.
|
|
2842
|
-
*/
|
|
2843
|
-
metadata?: Record<string, any> | null;
|
|
2844
|
-
/**
|
|
2845
|
-
* Tags
|
|
2846
|
-
* Tags from knowledge.metadata._tags
|
|
2847
|
-
*/
|
|
2848
|
-
tags?: string[] | null;
|
|
2849
|
-
/**
|
|
2850
|
-
* F1
|
|
2851
|
-
* Field 1 from knowledge.metadata._f1
|
|
2852
|
-
*/
|
|
2853
|
-
f1?: string | null;
|
|
2854
|
-
/**
|
|
2855
|
-
* F2
|
|
2856
|
-
* Field 2 from knowledge.metadata._f2
|
|
2857
|
-
*/
|
|
2858
|
-
f2?: string | null;
|
|
2859
|
-
/**
|
|
2860
|
-
* F3
|
|
2861
|
-
* Field 3 from knowledge.metadata._f3
|
|
2862
|
-
*/
|
|
2863
|
-
f3?: string | null;
|
|
2864
|
-
/**
|
|
2865
|
-
* F4
|
|
2866
|
-
* Field 4 from knowledge.metadata._f4
|
|
2867
|
-
*/
|
|
2868
|
-
f4?: string | null;
|
|
2869
|
-
/**
|
|
2870
|
-
* F5
|
|
2871
|
-
* Field 5 from knowledge.metadata._f5
|
|
2872
|
-
*/
|
|
2873
|
-
f5?: string | null;
|
|
2874
|
-
/**
|
|
2875
|
-
* Similarity
|
|
2876
|
-
* The similarity of the chunk, ranging from 0.0 to 1.0.
|
|
2877
|
-
*/
|
|
2878
|
-
similarity: number;
|
|
2879
|
-
}
|
|
2880
|
-
/** RetrievalChunk */
|
|
2881
|
-
export interface IRetrievalChunkOutput {
|
|
3091
|
+
export interface IRetrievalChunk {
|
|
2882
3092
|
/**
|
|
2883
3093
|
* Gmt Create
|
|
2884
3094
|
* creation time
|
|
@@ -2977,8 +3187,8 @@ export interface IRetrievalConfig {
|
|
|
2977
3187
|
type: string;
|
|
2978
3188
|
[key: string]: any;
|
|
2979
3189
|
}
|
|
2980
|
-
/** RetrievalRequest */
|
|
2981
|
-
export interface
|
|
3190
|
+
/** RetrievalRequest[RetrievalConfig] */
|
|
3191
|
+
export interface IRetrievalRequestRetrievalConfig {
|
|
2982
3192
|
/**
|
|
2983
3193
|
* Content
|
|
2984
3194
|
* The content to be searched, such as a question, text, or any other query string.
|
|
@@ -3031,48 +3241,7 @@ export interface IS3SourceConfig {
|
|
|
3031
3241
|
auth_info?: string | null;
|
|
3032
3242
|
}
|
|
3033
3243
|
/** Space */
|
|
3034
|
-
export interface
|
|
3035
|
-
/**
|
|
3036
|
-
* Gmt Create
|
|
3037
|
-
* creation time
|
|
3038
|
-
*/
|
|
3039
|
-
gmt_create?: string | null;
|
|
3040
|
-
/**
|
|
3041
|
-
* Gmt Modified
|
|
3042
|
-
* update time
|
|
3043
|
-
*/
|
|
3044
|
-
gmt_modified?: string | null;
|
|
3045
|
-
/**
|
|
3046
|
-
* Space Name
|
|
3047
|
-
* name of the space resource
|
|
3048
|
-
* @maxLength 64
|
|
3049
|
-
*/
|
|
3050
|
-
space_name: string;
|
|
3051
|
-
/**
|
|
3052
|
-
* Space Id
|
|
3053
|
-
* space id
|
|
3054
|
-
*/
|
|
3055
|
-
space_id?: string;
|
|
3056
|
-
/**
|
|
3057
|
-
* Description
|
|
3058
|
-
* descrition of the space
|
|
3059
|
-
* @maxLength 255
|
|
3060
|
-
*/
|
|
3061
|
-
description: string;
|
|
3062
|
-
/**
|
|
3063
|
-
* Metadata
|
|
3064
|
-
* metadata of the space resource
|
|
3065
|
-
* @default {}
|
|
3066
|
-
*/
|
|
3067
|
-
metadata?: Record<string, any>;
|
|
3068
|
-
/**
|
|
3069
|
-
* Tenant Id
|
|
3070
|
-
* tenant id
|
|
3071
|
-
*/
|
|
3072
|
-
tenant_id: string;
|
|
3073
|
-
}
|
|
3074
|
-
/** Space */
|
|
3075
|
-
export interface ISpaceOutput {
|
|
3244
|
+
export interface ISpace {
|
|
3076
3245
|
/**
|
|
3077
3246
|
* Gmt Create
|
|
3078
3247
|
* creation time
|
|
@@ -3154,67 +3323,7 @@ export interface ISpaceCreate {
|
|
|
3154
3323
|
* total_size Optional[int]: size of the all kowledge in this space.
|
|
3155
3324
|
* knowledge_size Optional[int]: count of the knowledge in this space.
|
|
3156
3325
|
*/
|
|
3157
|
-
export interface
|
|
3158
|
-
/**
|
|
3159
|
-
* Gmt Create
|
|
3160
|
-
* creation time
|
|
3161
|
-
*/
|
|
3162
|
-
gmt_create?: string | null;
|
|
3163
|
-
/**
|
|
3164
|
-
* Gmt Modified
|
|
3165
|
-
* update time
|
|
3166
|
-
*/
|
|
3167
|
-
gmt_modified?: string | null;
|
|
3168
|
-
/**
|
|
3169
|
-
* Space Name
|
|
3170
|
-
* name of the space resource
|
|
3171
|
-
* @maxLength 64
|
|
3172
|
-
*/
|
|
3173
|
-
space_name: string;
|
|
3174
|
-
/**
|
|
3175
|
-
* Space Id
|
|
3176
|
-
* space id
|
|
3177
|
-
*/
|
|
3178
|
-
space_id?: string;
|
|
3179
|
-
/**
|
|
3180
|
-
* Description
|
|
3181
|
-
* descrition of the space
|
|
3182
|
-
* @maxLength 255
|
|
3183
|
-
*/
|
|
3184
|
-
description: string;
|
|
3185
|
-
/**
|
|
3186
|
-
* Metadata
|
|
3187
|
-
* metadata of the space resource
|
|
3188
|
-
* @default {}
|
|
3189
|
-
*/
|
|
3190
|
-
metadata?: Record<string, any>;
|
|
3191
|
-
/**
|
|
3192
|
-
* Tenant Id
|
|
3193
|
-
* tenant id
|
|
3194
|
-
*/
|
|
3195
|
-
tenant_id: string;
|
|
3196
|
-
/**
|
|
3197
|
-
* Storage Size
|
|
3198
|
-
* size of the all kowledge in this space
|
|
3199
|
-
* @default 0
|
|
3200
|
-
*/
|
|
3201
|
-
storage_size?: number | null;
|
|
3202
|
-
/**
|
|
3203
|
-
* Knowledge Count
|
|
3204
|
-
* count of the knowledge in this space
|
|
3205
|
-
* @default 0
|
|
3206
|
-
*/
|
|
3207
|
-
knowledge_count?: number | null;
|
|
3208
|
-
}
|
|
3209
|
-
/**
|
|
3210
|
-
* SpaceResponse
|
|
3211
|
-
* SpaceResponse model class that extends Space.
|
|
3212
|
-
* Attributes:
|
|
3213
|
-
* (str): Space ID.
|
|
3214
|
-
* total_size Optional[int]: size of the all kowledge in this space.
|
|
3215
|
-
* knowledge_size Optional[int]: count of the knowledge in this space.
|
|
3216
|
-
*/
|
|
3217
|
-
export interface ISpaceResponseOutput {
|
|
3326
|
+
export interface ISpaceResponse {
|
|
3218
3327
|
/**
|
|
3219
3328
|
* Gmt Create
|
|
3220
3329
|
* creation time
|
|
@@ -3295,57 +3404,9 @@ export interface ISpaceUpdate {
|
|
|
3295
3404
|
metadata?: Record<string, any> | null;
|
|
3296
3405
|
}
|
|
3297
3406
|
/** StatusStatisticsPageResponse[Task] */
|
|
3298
|
-
export interface
|
|
3299
|
-
/** Items */
|
|
3300
|
-
items: ITaskInput[];
|
|
3301
|
-
/** Total */
|
|
3302
|
-
total: number;
|
|
3303
|
-
/** Page */
|
|
3304
|
-
page: number;
|
|
3305
|
-
/** Page Size */
|
|
3306
|
-
page_size: number;
|
|
3307
|
-
/** Total Pages */
|
|
3308
|
-
total_pages: number;
|
|
3309
|
-
/**
|
|
3310
|
-
* Success
|
|
3311
|
-
* @default 0
|
|
3312
|
-
*/
|
|
3313
|
-
success?: number;
|
|
3314
|
-
/**
|
|
3315
|
-
* Failed
|
|
3316
|
-
* @default 0
|
|
3317
|
-
*/
|
|
3318
|
-
failed?: number;
|
|
3319
|
-
/**
|
|
3320
|
-
* Cancelled
|
|
3321
|
-
* @default 0
|
|
3322
|
-
*/
|
|
3323
|
-
cancelled?: number;
|
|
3324
|
-
/**
|
|
3325
|
-
* Pending
|
|
3326
|
-
* @default 0
|
|
3327
|
-
*/
|
|
3328
|
-
pending?: number;
|
|
3329
|
-
/**
|
|
3330
|
-
* Running
|
|
3331
|
-
* @default 0
|
|
3332
|
-
*/
|
|
3333
|
-
running?: number;
|
|
3334
|
-
/**
|
|
3335
|
-
* Pending Retry
|
|
3336
|
-
* @default 0
|
|
3337
|
-
*/
|
|
3338
|
-
pending_retry?: number;
|
|
3339
|
-
/**
|
|
3340
|
-
* Deleted
|
|
3341
|
-
* @default 0
|
|
3342
|
-
*/
|
|
3343
|
-
deleted?: number;
|
|
3344
|
-
}
|
|
3345
|
-
/** StatusStatisticsPageResponse[Task] */
|
|
3346
|
-
export interface IStatusStatisticsPageResponseTaskOutput {
|
|
3407
|
+
export interface IStatusStatisticsPageResponseTask {
|
|
3347
3408
|
/** Items */
|
|
3348
|
-
items:
|
|
3409
|
+
items: ITask[];
|
|
3349
3410
|
/** Total */
|
|
3350
3411
|
total: number;
|
|
3351
3412
|
/** Page */
|
|
@@ -3383,55 +3444,15 @@ export interface IStatusStatisticsPageResponseTaskOutput {
|
|
|
3383
3444
|
* Pending Retry
|
|
3384
3445
|
* @default 0
|
|
3385
3446
|
*/
|
|
3386
|
-
pending_retry?: number;
|
|
3387
|
-
/**
|
|
3388
|
-
* Deleted
|
|
3389
|
-
* @default 0
|
|
3390
|
-
*/
|
|
3391
|
-
deleted?: number;
|
|
3392
|
-
}
|
|
3393
|
-
/** Tag */
|
|
3394
|
-
export interface ITagInput {
|
|
3395
|
-
/**
|
|
3396
|
-
* Gmt Create
|
|
3397
|
-
* creation time
|
|
3398
|
-
*/
|
|
3399
|
-
gmt_create?: string | null;
|
|
3400
|
-
/**
|
|
3401
|
-
* Gmt Modified
|
|
3402
|
-
* update time
|
|
3403
|
-
*/
|
|
3404
|
-
gmt_modified?: string | null;
|
|
3405
|
-
/**
|
|
3406
|
-
* Name
|
|
3407
|
-
* 标签名称(租户内唯一)
|
|
3408
|
-
* @maxLength 64
|
|
3409
|
-
*/
|
|
3410
|
-
name: string;
|
|
3411
|
-
/**
|
|
3412
|
-
* Description
|
|
3413
|
-
* 标签描述
|
|
3414
|
-
*/
|
|
3415
|
-
description?: string | null;
|
|
3416
|
-
/**
|
|
3417
|
-
* 标签作用对象类型(如 "space")
|
|
3418
|
-
* @default "space"
|
|
3419
|
-
*/
|
|
3420
|
-
object_type?: ITagObjectType;
|
|
3421
|
-
/**
|
|
3422
|
-
* Tag Id
|
|
3423
|
-
* 标签ID(UUID字符串)
|
|
3424
|
-
*/
|
|
3425
|
-
tag_id?: string;
|
|
3447
|
+
pending_retry?: number;
|
|
3426
3448
|
/**
|
|
3427
|
-
*
|
|
3428
|
-
*
|
|
3429
|
-
* @maxLength 64
|
|
3449
|
+
* Deleted
|
|
3450
|
+
* @default 0
|
|
3430
3451
|
*/
|
|
3431
|
-
|
|
3452
|
+
deleted?: number;
|
|
3432
3453
|
}
|
|
3433
3454
|
/** Tag */
|
|
3434
|
-
export interface
|
|
3455
|
+
export interface ITag {
|
|
3435
3456
|
/**
|
|
3436
3457
|
* Gmt Create
|
|
3437
3458
|
* creation time
|
|
@@ -3508,54 +3529,7 @@ export interface ITagUpdate {
|
|
|
3508
3529
|
description?: string | null;
|
|
3509
3530
|
}
|
|
3510
3531
|
/** Tagging */
|
|
3511
|
-
export interface
|
|
3512
|
-
/**
|
|
3513
|
-
* Gmt Create
|
|
3514
|
-
* creation time
|
|
3515
|
-
*/
|
|
3516
|
-
gmt_create?: string | null;
|
|
3517
|
-
/**
|
|
3518
|
-
* Gmt Modified
|
|
3519
|
-
* update time
|
|
3520
|
-
*/
|
|
3521
|
-
gmt_modified?: string | null;
|
|
3522
|
-
/**
|
|
3523
|
-
* Tagging Id
|
|
3524
|
-
* 标签绑定ID(UUID字符串)
|
|
3525
|
-
*/
|
|
3526
|
-
tagging_id?: string;
|
|
3527
|
-
/**
|
|
3528
|
-
* Tenant Id
|
|
3529
|
-
* 所属租户ID
|
|
3530
|
-
* @maxLength 64
|
|
3531
|
-
*/
|
|
3532
|
-
tenant_id: string;
|
|
3533
|
-
/**
|
|
3534
|
-
* Tag Id
|
|
3535
|
-
* 标签ID(FK -> tag.tag_id,UUID字符串)
|
|
3536
|
-
*/
|
|
3537
|
-
tag_id: string;
|
|
3538
|
-
/**
|
|
3539
|
-
* Tag Name
|
|
3540
|
-
* 标签名称(在 object_type 内唯一)
|
|
3541
|
-
* @maxLength 64
|
|
3542
|
-
*/
|
|
3543
|
-
tag_name: string;
|
|
3544
|
-
/**
|
|
3545
|
-
* Object Id
|
|
3546
|
-
* 被打标签对象ID(如 space_id)
|
|
3547
|
-
* @maxLength 255
|
|
3548
|
-
*/
|
|
3549
|
-
object_id: string;
|
|
3550
|
-
/**
|
|
3551
|
-
* 对象类型,当前仅支持 "space"
|
|
3552
|
-
* @maxLength 32
|
|
3553
|
-
* @default "space"
|
|
3554
|
-
*/
|
|
3555
|
-
object_type?: ITagObjectType;
|
|
3556
|
-
}
|
|
3557
|
-
/** Tagging */
|
|
3558
|
-
export interface ITaggingOutput {
|
|
3532
|
+
export interface ITagging {
|
|
3559
3533
|
/**
|
|
3560
3534
|
* Gmt Create
|
|
3561
3535
|
* creation time
|
|
@@ -3629,66 +3603,7 @@ export interface ITagsUpdate {
|
|
|
3629
3603
|
tags: string[];
|
|
3630
3604
|
}
|
|
3631
3605
|
/** Task */
|
|
3632
|
-
export interface
|
|
3633
|
-
/**
|
|
3634
|
-
* Gmt Create
|
|
3635
|
-
* creation time
|
|
3636
|
-
*/
|
|
3637
|
-
gmt_create?: string | null;
|
|
3638
|
-
/**
|
|
3639
|
-
* Gmt Modified
|
|
3640
|
-
* update time
|
|
3641
|
-
*/
|
|
3642
|
-
gmt_modified?: string | null;
|
|
3643
|
-
/**
|
|
3644
|
-
* Task Id
|
|
3645
|
-
* Unique identifier for the task
|
|
3646
|
-
*/
|
|
3647
|
-
task_id?: string;
|
|
3648
|
-
/**
|
|
3649
|
-
* Current status of the task
|
|
3650
|
-
* @default "pending"
|
|
3651
|
-
*/
|
|
3652
|
-
status?: ITaskStatus;
|
|
3653
|
-
/**
|
|
3654
|
-
* Knowledge Id
|
|
3655
|
-
* Identifier for the source file
|
|
3656
|
-
*/
|
|
3657
|
-
knowledge_id: string;
|
|
3658
|
-
/**
|
|
3659
|
-
* Metadata
|
|
3660
|
-
* Metadata for the task
|
|
3661
|
-
*/
|
|
3662
|
-
metadata?: Record<string, any> | null;
|
|
3663
|
-
/**
|
|
3664
|
-
* Error Message
|
|
3665
|
-
* Error message (only present if the task failed)
|
|
3666
|
-
*/
|
|
3667
|
-
error_message?: string | null;
|
|
3668
|
-
/**
|
|
3669
|
-
* Space Id
|
|
3670
|
-
* Identifier for the space
|
|
3671
|
-
*/
|
|
3672
|
-
space_id: string;
|
|
3673
|
-
/**
|
|
3674
|
-
* User Id
|
|
3675
|
-
* Identifier for the user
|
|
3676
|
-
*/
|
|
3677
|
-
user_id?: string | null;
|
|
3678
|
-
/**
|
|
3679
|
-
* Tenant Id
|
|
3680
|
-
* Identifier for the tenant
|
|
3681
|
-
*/
|
|
3682
|
-
tenant_id: string;
|
|
3683
|
-
/**
|
|
3684
|
-
* Task Type
|
|
3685
|
-
* Type of the task
|
|
3686
|
-
* @default "knowledge_chunk"
|
|
3687
|
-
*/
|
|
3688
|
-
task_type?: string;
|
|
3689
|
-
}
|
|
3690
|
-
/** Task */
|
|
3691
|
-
export interface ITaskOutput {
|
|
3606
|
+
export interface ITask {
|
|
3692
3607
|
/**
|
|
3693
3608
|
* Gmt Create
|
|
3694
3609
|
* creation time
|
|
@@ -3755,53 +3670,7 @@ export interface ITaskRestartRequest {
|
|
|
3755
3670
|
task_id_list: string[];
|
|
3756
3671
|
}
|
|
3757
3672
|
/** Tenant */
|
|
3758
|
-
export interface
|
|
3759
|
-
/**
|
|
3760
|
-
* Gmt Create
|
|
3761
|
-
* creation time
|
|
3762
|
-
*/
|
|
3763
|
-
gmt_create?: string | null;
|
|
3764
|
-
/**
|
|
3765
|
-
* Gmt Modified
|
|
3766
|
-
* update time
|
|
3767
|
-
*/
|
|
3768
|
-
gmt_modified?: string | null;
|
|
3769
|
-
/**
|
|
3770
|
-
* Tenant Id
|
|
3771
|
-
* tenant id
|
|
3772
|
-
*/
|
|
3773
|
-
tenant_id?: string;
|
|
3774
|
-
/**
|
|
3775
|
-
* Tenant Name
|
|
3776
|
-
* tenant name
|
|
3777
|
-
* @default ""
|
|
3778
|
-
*/
|
|
3779
|
-
tenant_name?: string;
|
|
3780
|
-
/**
|
|
3781
|
-
* Email
|
|
3782
|
-
* email
|
|
3783
|
-
*/
|
|
3784
|
-
email: string;
|
|
3785
|
-
/**
|
|
3786
|
-
* Secret Key
|
|
3787
|
-
* secret_key
|
|
3788
|
-
* @default ""
|
|
3789
|
-
*/
|
|
3790
|
-
secret_key?: string;
|
|
3791
|
-
/**
|
|
3792
|
-
* Is Active
|
|
3793
|
-
* is active
|
|
3794
|
-
* @default true
|
|
3795
|
-
*/
|
|
3796
|
-
is_active?: boolean;
|
|
3797
|
-
/**
|
|
3798
|
-
* Metadata
|
|
3799
|
-
* Metadata for the tenant
|
|
3800
|
-
*/
|
|
3801
|
-
metadata?: Record<string, any> | null;
|
|
3802
|
-
}
|
|
3803
|
-
/** Tenant */
|
|
3804
|
-
export interface ITenantOutput {
|
|
3673
|
+
export interface ITenant {
|
|
3805
3674
|
/**
|
|
3806
3675
|
* Gmt Create
|
|
3807
3676
|
* creation time
|
|
@@ -4029,6 +3898,89 @@ export interface IValidationError {
|
|
|
4029
3898
|
/** Error Type */
|
|
4030
3899
|
type: string;
|
|
4031
3900
|
}
|
|
3901
|
+
/**
|
|
3902
|
+
* WebhookDeliveryResponse
|
|
3903
|
+
* Webhook投递记录响应
|
|
3904
|
+
*/
|
|
3905
|
+
export interface IWebhookDeliveryResponse {
|
|
3906
|
+
/** Delivery Id */
|
|
3907
|
+
delivery_id: string;
|
|
3908
|
+
/** Webhook Id */
|
|
3909
|
+
webhook_id: string;
|
|
3910
|
+
/** Event Id */
|
|
3911
|
+
event_id: string;
|
|
3912
|
+
/** Webhook投递状态 */
|
|
3913
|
+
status: IWebhookDeliveryStatus;
|
|
3914
|
+
/** Attempt Count */
|
|
3915
|
+
attempt_count: number;
|
|
3916
|
+
/** Last Error */
|
|
3917
|
+
last_error?: string | null;
|
|
3918
|
+
/** Response Code */
|
|
3919
|
+
response_code?: number | null;
|
|
3920
|
+
/** Response Time Ms */
|
|
3921
|
+
response_time_ms?: number | null;
|
|
3922
|
+
/** Last Attempt At */
|
|
3923
|
+
last_attempt_at?: string | null;
|
|
3924
|
+
/** Next Retry At */
|
|
3925
|
+
next_retry_at?: string | null;
|
|
3926
|
+
/** Gmt Create */
|
|
3927
|
+
gmt_create?: string | null;
|
|
3928
|
+
/** Gmt Modified */
|
|
3929
|
+
gmt_modified?: string | null;
|
|
3930
|
+
}
|
|
3931
|
+
/** WebhookSubscriptionCreate */
|
|
3932
|
+
export interface IWebhookSubscriptionCreate {
|
|
3933
|
+
/**
|
|
3934
|
+
* Webhook Name
|
|
3935
|
+
* Webhook名称
|
|
3936
|
+
*/
|
|
3937
|
+
webhook_name: string;
|
|
3938
|
+
/**
|
|
3939
|
+
* Target Url
|
|
3940
|
+
* 目标URL
|
|
3941
|
+
*/
|
|
3942
|
+
target_url: string;
|
|
3943
|
+
/**
|
|
3944
|
+
* Event Types
|
|
3945
|
+
* 订阅的事件类型列表
|
|
3946
|
+
*/
|
|
3947
|
+
event_types: IWebhookEventType[];
|
|
3948
|
+
/**
|
|
3949
|
+
* Secret
|
|
3950
|
+
* 签名密钥(可选,不提供则自动生成)
|
|
3951
|
+
*/
|
|
3952
|
+
secret?: string | null;
|
|
3953
|
+
}
|
|
3954
|
+
/** WebhookSubscriptionResponse */
|
|
3955
|
+
export interface IWebhookSubscriptionResponse {
|
|
3956
|
+
/** Webhook Id */
|
|
3957
|
+
webhook_id: string;
|
|
3958
|
+
/** Webhook Name */
|
|
3959
|
+
webhook_name: string;
|
|
3960
|
+
/** Target Url */
|
|
3961
|
+
target_url: string;
|
|
3962
|
+
/** Event Types */
|
|
3963
|
+
event_types: string[];
|
|
3964
|
+
/** Webhook订阅状态 */
|
|
3965
|
+
status: IWebhookSubscriptionStatus;
|
|
3966
|
+
/** Secret */
|
|
3967
|
+
secret?: string | null;
|
|
3968
|
+
/** Gmt Create */
|
|
3969
|
+
gmt_create?: string | null;
|
|
3970
|
+
/** Gmt Modified */
|
|
3971
|
+
gmt_modified?: string | null;
|
|
3972
|
+
}
|
|
3973
|
+
/** WebhookTestResponse */
|
|
3974
|
+
export interface IWebhookTestResponse {
|
|
3975
|
+
/** Success */
|
|
3976
|
+
success: boolean;
|
|
3977
|
+
/** Status Code */
|
|
3978
|
+
status_code: number | null;
|
|
3979
|
+
/** Duration Ms */
|
|
3980
|
+
duration_ms: number;
|
|
3981
|
+
/** Error */
|
|
3982
|
+
error: string | null;
|
|
3983
|
+
}
|
|
4032
3984
|
/**
|
|
4033
3985
|
* WohuProductSpace
|
|
4034
3986
|
* 产品空间响应模型
|
|
@@ -4161,6 +4113,12 @@ export interface IYuqueSourceConfig {
|
|
|
4161
4113
|
* the yuque document id in book, if not set, will use the book all doc
|
|
4162
4114
|
*/
|
|
4163
4115
|
document_id?: string | number | null;
|
|
4116
|
+
/**
|
|
4117
|
+
* Skip Image Extraction
|
|
4118
|
+
* whether to skip extracting images when decomposing yuque documents
|
|
4119
|
+
* @default false
|
|
4120
|
+
*/
|
|
4121
|
+
skip_image_extraction?: boolean;
|
|
4164
4122
|
/**
|
|
4165
4123
|
* Auth Info
|
|
4166
4124
|
* authentication information
|
|
@@ -4303,7 +4261,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4303
4261
|
* @summary Add Knowledge
|
|
4304
4262
|
* @request POST:/api/knowledge/add
|
|
4305
4263
|
*/
|
|
4306
|
-
addKnowledge: (data: (ITextCreate | IImageCreate | IJSONCreate | IMarkdownCreate | IPDFCreate | IGithubRepoCreate | IQACreate | IYuqueCreate | IHituNodePackageCreate)[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListKnowledge, void | IHTTPValidationError>>;
|
|
4264
|
+
addKnowledge: (data: (ITextCreate | IImageCreate | IJSONCreate | IMarkdownCreate | IPDFCreate | IGithubRepoCreate | IQACreate | IYuqueCreate | IHituNodePackageCreate | IHituNodePackageElementCreate)[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListKnowledge, void | IHTTPValidationError>>;
|
|
4307
4265
|
/**
|
|
4308
4266
|
* @description 更新知识(全量更新) 更新知识的完整信息,支持以下字段变更: - 元数据(metadata)变更:同步更新对应 chunk 的 metadata - 启用状态(enabled)变更:同步更新对应 chunk 的启用状态 - 嵌入模型/分片配置/来源配置变更:自动触发重新入库任务 注意:knowledge_type、source_type 等核心字段不可变更。 Args: knowledge: 完整的知识对象,需包含 knowledge_id Returns: 更新后的知识对象(auth_info 字段已脱敏)
|
|
4309
4267
|
*
|
|
@@ -4404,6 +4362,35 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4404
4362
|
knowledge_id: string;
|
|
4405
4363
|
}, params?: RequestParams) => Promise<HttpResponse<IResponseModelListUnionTextImageBlob, void | IHTTPValidationError>>;
|
|
4406
4364
|
};
|
|
4365
|
+
knowledgeIndex: {
|
|
4366
|
+
/**
|
|
4367
|
+
* No description
|
|
4368
|
+
*
|
|
4369
|
+
* @tags knowledge_index
|
|
4370
|
+
* @name GetKnowledgeIndexList
|
|
4371
|
+
* @summary Get Knowledge Index List
|
|
4372
|
+
* @request POST:/api/knowledge_index/list
|
|
4373
|
+
*/
|
|
4374
|
+
getKnowledgeIndexList: (data: IPageQueryParamsKnowledgeIndex, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseKnowledgeIndex, void | IHTTPValidationError>>;
|
|
4375
|
+
/**
|
|
4376
|
+
* No description
|
|
4377
|
+
*
|
|
4378
|
+
* @tags knowledge_index
|
|
4379
|
+
* @name AddKnowledgeIndex
|
|
4380
|
+
* @summary Add Knowledge Index
|
|
4381
|
+
* @request POST:/api/knowledge_index/{knowledge_id}/add
|
|
4382
|
+
*/
|
|
4383
|
+
addKnowledgeIndex: (knowledgeId: string, data: IKnowledgeIndexAddRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelKnowledgeIndex, void | IHTTPValidationError>>;
|
|
4384
|
+
/**
|
|
4385
|
+
* No description
|
|
4386
|
+
*
|
|
4387
|
+
* @tags knowledge_index
|
|
4388
|
+
* @name DeleteKnowledgeIndex
|
|
4389
|
+
* @summary Delete Knowledge Index
|
|
4390
|
+
* @request POST:/api/knowledge_index/{knowledge_id}/delete
|
|
4391
|
+
*/
|
|
4392
|
+
deleteKnowledgeIndex: (knowledgeId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelBool, void | IHTTPValidationError>>;
|
|
4393
|
+
};
|
|
4407
4394
|
retrieval: {
|
|
4408
4395
|
/**
|
|
4409
4396
|
* @description 获取所有召回配置的 JSON Schema,用于前端动态渲染表单。 返回格式: { "deep_retrieval": { ... schema ... }, "region_retrieval": { ... schema ... }, "web_search": { ... schema ... }, ... }
|
|
@@ -4440,7 +4427,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4440
4427
|
* @summary Retrieve
|
|
4441
4428
|
* @request POST:/api/retrieval/
|
|
4442
4429
|
*/
|
|
4443
|
-
retrieve: (data:
|
|
4430
|
+
retrieve: (data: IRetrievalRequestRetrievalConfig, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
|
|
4444
4431
|
/**
|
|
4445
4432
|
* @description 因为 antvis 要对公网开放相关信息,故提供本单独接口
|
|
4446
4433
|
*
|
|
@@ -4449,7 +4436,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4449
4436
|
* @summary Context7 Antvis Retrieve
|
|
4450
4437
|
* @request POST:/api/retrieval/context7/antvis
|
|
4451
4438
|
*/
|
|
4452
|
-
antvisRetrieve: (data:
|
|
4439
|
+
antvisRetrieve: (data: IRetrievalRequestRetrievalConfig, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
|
|
4453
4440
|
};
|
|
4454
4441
|
task: {
|
|
4455
4442
|
/**
|
|
@@ -4703,7 +4690,61 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4703
4690
|
*/
|
|
4704
4691
|
getTenantLog: (data: ITenantLogQuery, params?: RequestParams) => Promise<HttpResponse<IResponseModelListTenantLog, void | IHTTPValidationError>>;
|
|
4705
4692
|
/**
|
|
4706
|
-
* @description
|
|
4693
|
+
* @description 发送测试消息验证Webhook订阅配置是否正确
|
|
4694
|
+
*
|
|
4695
|
+
* @tags webhook
|
|
4696
|
+
* @name TestSubscriptionApiV1WebhookSubscriptionsWebhookIdTestPost
|
|
4697
|
+
* @summary 测试Webhook订阅
|
|
4698
|
+
* @request POST:/api/v1/webhook/subscriptions/{webhook_id}/test
|
|
4699
|
+
*/
|
|
4700
|
+
testSubscriptionApiV1WebhookSubscriptionsWebhookIdTestPost: (webhookId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelWebhookTestResponse, void | IHTTPValidationError>>;
|
|
4701
|
+
/**
|
|
4702
|
+
* @description 创建一个新的Webhook订阅
|
|
4703
|
+
*
|
|
4704
|
+
* @tags webhook
|
|
4705
|
+
* @name CreateSubscriptionApiV1WebhookSubscriptionsPost
|
|
4706
|
+
* @summary 创建Webhook订阅
|
|
4707
|
+
* @request POST:/api/v1/webhook/subscriptions
|
|
4708
|
+
*/
|
|
4709
|
+
createSubscriptionApiV1WebhookSubscriptionsPost: (data: IWebhookSubscriptionCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelWebhookSubscriptionResponse, void | IHTTPValidationError>>;
|
|
4710
|
+
/**
|
|
4711
|
+
* @description 分页查询租户的Webhook订阅,支持高级筛选条件
|
|
4712
|
+
*
|
|
4713
|
+
* @tags webhook
|
|
4714
|
+
* @name ListSubscriptionsApiV1WebhookSubscriptionsQueryPost
|
|
4715
|
+
* @summary 查询Webhook订阅列表
|
|
4716
|
+
* @request POST:/api/v1/webhook/subscriptions/query
|
|
4717
|
+
*/
|
|
4718
|
+
listSubscriptionsApiV1WebhookSubscriptionsQueryPost: (data: IPageQueryParamsWebhookSubscription, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseWebhookSubscriptionResponse, void | IHTTPValidationError>>;
|
|
4719
|
+
/**
|
|
4720
|
+
* @description 删除指定的Webhook订阅
|
|
4721
|
+
*
|
|
4722
|
+
* @tags webhook
|
|
4723
|
+
* @name DeleteSubscriptionApiV1WebhookSubscriptionsWebhookIdDelete
|
|
4724
|
+
* @summary 删除Webhook订阅
|
|
4725
|
+
* @request DELETE:/api/v1/webhook/subscriptions/{webhook_id}
|
|
4726
|
+
*/
|
|
4727
|
+
deleteSubscriptionApiV1WebhookSubscriptionsWebhookIdDelete: (webhookId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelWebhookSubscriptionResponse, void | IHTTPValidationError>>;
|
|
4728
|
+
/**
|
|
4729
|
+
* @description 分页查询指定Webhook订阅的投递历史记录,支持高级筛选条件
|
|
4730
|
+
*
|
|
4731
|
+
* @tags webhook
|
|
4732
|
+
* @name ListDeliveriesApiV1WebhookSubscriptionsWebhookIdDeliveriesQueryPost
|
|
4733
|
+
* @summary 查询Webhook投递历史
|
|
4734
|
+
* @request POST:/api/v1/webhook/subscriptions/{webhook_id}/deliveries/query
|
|
4735
|
+
*/
|
|
4736
|
+
listDeliveriesApiV1WebhookSubscriptionsWebhookIdDeliveriesQueryPost: (webhookId: string, data: IPageQueryParamsWebhookDelivery | null, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseWebhookDeliveryResponse, void | IHTTPValidationError>>;
|
|
4737
|
+
/**
|
|
4738
|
+
* @description 用于接收测试 whisker Webhook 发送的消息,验证 whisker自生分发功能
|
|
4739
|
+
*
|
|
4740
|
+
* @tags webhook
|
|
4741
|
+
* @name TestWebhookReceiverApiV1WebhookTestWhiskerWebhookReceiverPost
|
|
4742
|
+
* @summary 测试用例接收器
|
|
4743
|
+
* @request POST:/api/v1/webhook/test-whisker-webhook-receiver
|
|
4744
|
+
*/
|
|
4745
|
+
testWebhookReceiverApiV1WebhookTestWhiskerWebhookReceiverPost: (data: Record<string, any>, params?: RequestParams) => Promise<HttpResponse<IResponseModelDictStrAny, void | IHTTPValidationError>>;
|
|
4746
|
+
/**
|
|
4747
|
+
* @description whisker 通用 webhook,用于接接收第三方系统的 webhook 事件
|
|
4707
4748
|
*
|
|
4708
4749
|
* @tags webhook
|
|
4709
4750
|
* @name HandleWebhookApiV1WebhookWebhookTypeSourceAuthInfoKnowledgeBaseIdPost
|
|
@@ -4953,6 +4994,92 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4953
4994
|
* @request PUT:/api/admin/tenant/{tenant_id}/space/{space_id}
|
|
4954
4995
|
*/
|
|
4955
4996
|
adminUpdateSpace: (tenantId: string, spaceId: string, data: IAdminUpdateSpaceRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelSpace, void | IHTTPValidationError>>;
|
|
4997
|
+
/**
|
|
4998
|
+
* No description
|
|
4999
|
+
*
|
|
5000
|
+
* @tags admin
|
|
5001
|
+
* @name AdminRebuildKnowledgeIndex
|
|
5002
|
+
* @summary Admin Rebuild Knowledge Index
|
|
5003
|
+
* @request POST:/api/admin/knowledge-index/rebuild
|
|
5004
|
+
*/
|
|
5005
|
+
adminRebuildKnowledgeIndex: (data: IAdminRebuildKnowledgeIndexRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelAdminRebuildKnowledgeIndexResponse, void | IHTTPValidationError>>;
|
|
5006
|
+
/**
|
|
5007
|
+
* @description 管理员同步 space summary 到自持 tenant 将目标 tenant 下所有(或指定)space 的 _ai_summary 写入自持 tenant 的知识库中。 可用于历史数据迁移或重建索引。
|
|
5008
|
+
*
|
|
5009
|
+
* @tags admin
|
|
5010
|
+
* @name AdminSyncSummaryToStorage
|
|
5011
|
+
* @summary Admin Sync Summary To Storage
|
|
5012
|
+
* @request POST:/api/admin/sync-summary-to-storage
|
|
5013
|
+
*/
|
|
5014
|
+
adminSyncSummaryToStorage: (data: IAdminSyncSummaryToStorageRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelAdminSyncSummaryToStorageResponse, void | IHTTPValidationError>>;
|
|
5015
|
+
/**
|
|
5016
|
+
* @description 获取Webhook系统统计信息 返回 Outbox 队列和 Delivery 投递的统计数据
|
|
5017
|
+
*
|
|
5018
|
+
* @tags admin
|
|
5019
|
+
* @name AdminGetWebhookStats
|
|
5020
|
+
* @summary Admin Get Webhook Stats
|
|
5021
|
+
* @request GET:/api/admin/webhook/stats
|
|
5022
|
+
*/
|
|
5023
|
+
adminGetWebhookStats: (params?: RequestParams) => Promise<HttpResponse<IResponseModelAdminWebhookStatsResponse, void | IHTTPValidationError>>;
|
|
5024
|
+
/**
|
|
5025
|
+
* @description 查询Webhook投递记录 支持按租户、订阅、状态、时间范围筛选
|
|
5026
|
+
*
|
|
5027
|
+
* @tags admin
|
|
5028
|
+
* @name AdminListWebhookDeliveries
|
|
5029
|
+
* @summary Admin List Webhook Deliveries
|
|
5030
|
+
* @request GET:/api/admin/webhook/deliveries
|
|
5031
|
+
*/
|
|
5032
|
+
adminListWebhookDeliveries: (query?: {
|
|
5033
|
+
/** Tenant Id */
|
|
5034
|
+
tenant_id?: string | null;
|
|
5035
|
+
/** Webhook Id */
|
|
5036
|
+
webhook_id?: string | null;
|
|
5037
|
+
/** Status */
|
|
5038
|
+
status?: IWebhookDeliveryStatus | null;
|
|
5039
|
+
/** Start Time */
|
|
5040
|
+
start_time?: string | null;
|
|
5041
|
+
/** End Time */
|
|
5042
|
+
end_time?: string | null;
|
|
5043
|
+
/**
|
|
5044
|
+
* Page
|
|
5045
|
+
* @default 1
|
|
5046
|
+
*/
|
|
5047
|
+
page?: number;
|
|
5048
|
+
/**
|
|
5049
|
+
* Page Size
|
|
5050
|
+
* @default 20
|
|
5051
|
+
*/
|
|
5052
|
+
page_size?: number;
|
|
5053
|
+
}, params?: RequestParams) => Promise<HttpResponse<IResponseModelAdminWebhookDeliveryListResponse, void | IHTTPValidationError>>;
|
|
5054
|
+
/**
|
|
5055
|
+
* @description 手动重试Webhook投递 仅对 GAVE_UP 状态的投递记录有效,会将状态重置为 PENDING
|
|
5056
|
+
*
|
|
5057
|
+
* @tags admin
|
|
5058
|
+
* @name AdminRetryWebhookDelivery
|
|
5059
|
+
* @summary Admin Retry Webhook Delivery
|
|
5060
|
+
* @request POST:/api/admin/webhook/deliveries/{delivery_id}/retry
|
|
5061
|
+
*/
|
|
5062
|
+
adminRetryWebhookDelivery: (deliveryId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelAdminWebhookDeliveryResponse, void | IHTTPValidationError>>;
|
|
5063
|
+
};
|
|
5064
|
+
llmTxt: {
|
|
5065
|
+
/**
|
|
5066
|
+
* @description Get a structured map of documentation in llm.txt format.
|
|
5067
|
+
*
|
|
5068
|
+
* @tags llm_txt
|
|
5069
|
+
* @name GetLlmMapApiLlmTxtMapPost
|
|
5070
|
+
* @summary Get Llm Map
|
|
5071
|
+
* @request POST:/api/llm_txt/map
|
|
5072
|
+
*/
|
|
5073
|
+
getLlmMapApiLlmTxtMapPost: (data: ILLMMapRequest, params?: RequestParams) => Promise<HttpResponse<string, IHTTPValidationError>>;
|
|
5074
|
+
/**
|
|
5075
|
+
* No description
|
|
5076
|
+
*
|
|
5077
|
+
* @tags llm_txt
|
|
5078
|
+
* @name GetLlmSourceApiLlmTxtSourcePost
|
|
5079
|
+
* @summary Get Llm Source
|
|
5080
|
+
* @request POST:/api/llm_txt/source
|
|
5081
|
+
*/
|
|
5082
|
+
getLlmSourceApiLlmTxtSourcePost: (data: ILLMTxtSourceRequest, params?: RequestParams) => Promise<HttpResponse<string, IHTTPValidationError>>;
|
|
4956
5083
|
};
|
|
4957
5084
|
healthChecker: {
|
|
4958
5085
|
/**
|