@petercatai/whisker-client 0.1.202511251305 → 0.1.202511251322-dev
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 +793 -92
- package/package.json +3 -3
package/dist/api.d.ts
CHANGED
|
@@ -138,7 +138,69 @@ export declare enum IAction {
|
|
|
138
138
|
Value = "*"
|
|
139
139
|
}
|
|
140
140
|
/** APIKey */
|
|
141
|
-
export interface
|
|
141
|
+
export interface IAPIKeyInput {
|
|
142
|
+
/**
|
|
143
|
+
* Gmt Create
|
|
144
|
+
* creation time
|
|
145
|
+
*/
|
|
146
|
+
gmt_create?: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* Gmt Modified
|
|
149
|
+
* update time
|
|
150
|
+
*/
|
|
151
|
+
gmt_modified?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* Key Id
|
|
154
|
+
* key id
|
|
155
|
+
*/
|
|
156
|
+
key_id?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Tenant Id
|
|
159
|
+
* tenant id
|
|
160
|
+
*/
|
|
161
|
+
tenant_id: string;
|
|
162
|
+
/**
|
|
163
|
+
* Key Name
|
|
164
|
+
* key name
|
|
165
|
+
* @default ""
|
|
166
|
+
*/
|
|
167
|
+
key_name?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Key Value
|
|
170
|
+
* key value
|
|
171
|
+
*/
|
|
172
|
+
key_value: string;
|
|
173
|
+
/**
|
|
174
|
+
* Permissions
|
|
175
|
+
* permissions config
|
|
176
|
+
*/
|
|
177
|
+
permissions?: IPermission[];
|
|
178
|
+
/**
|
|
179
|
+
* Rate Limit
|
|
180
|
+
* rate limit per minute
|
|
181
|
+
* @min 0
|
|
182
|
+
* @default 0
|
|
183
|
+
*/
|
|
184
|
+
rate_limit?: number;
|
|
185
|
+
/**
|
|
186
|
+
* Expires At
|
|
187
|
+
* expire time (UTC)
|
|
188
|
+
*/
|
|
189
|
+
expires_at?: string | null;
|
|
190
|
+
/**
|
|
191
|
+
* Is Active
|
|
192
|
+
* key status
|
|
193
|
+
* @default true
|
|
194
|
+
*/
|
|
195
|
+
is_active?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* Metadata
|
|
198
|
+
* key metadata
|
|
199
|
+
*/
|
|
200
|
+
metadata?: Record<string, any> | null;
|
|
201
|
+
}
|
|
202
|
+
/** APIKey */
|
|
203
|
+
export interface IAPIKeyOutput {
|
|
142
204
|
/**
|
|
143
205
|
* Gmt Create
|
|
144
206
|
* creation time
|
|
@@ -256,7 +318,58 @@ export interface IActiveStatusUpdate {
|
|
|
256
318
|
* ArtifactIndex
|
|
257
319
|
* whisker_artifact_index 模型
|
|
258
320
|
*/
|
|
259
|
-
export interface
|
|
321
|
+
export interface IArtifactIndexInput {
|
|
322
|
+
/**
|
|
323
|
+
* Gmt Create
|
|
324
|
+
* creation time
|
|
325
|
+
*/
|
|
326
|
+
gmt_create?: string | null;
|
|
327
|
+
/**
|
|
328
|
+
* Gmt Modified
|
|
329
|
+
* update time
|
|
330
|
+
*/
|
|
331
|
+
gmt_modified?: string | null;
|
|
332
|
+
/**
|
|
333
|
+
* Ecosystem
|
|
334
|
+
* 制品来源生态系统(pypi / npm / maven / go / php)
|
|
335
|
+
* @maxLength 32
|
|
336
|
+
*/
|
|
337
|
+
ecosystem: string;
|
|
338
|
+
/**
|
|
339
|
+
* Name
|
|
340
|
+
* 制品名(构建产物名,如 requests / @company/sdk)
|
|
341
|
+
* @maxLength 255
|
|
342
|
+
*/
|
|
343
|
+
name: string;
|
|
344
|
+
/**
|
|
345
|
+
* Version
|
|
346
|
+
* 版本号(可为空)
|
|
347
|
+
*/
|
|
348
|
+
version?: string | null;
|
|
349
|
+
/**
|
|
350
|
+
* Space Id
|
|
351
|
+
* 关联的 whisker_space.space_id
|
|
352
|
+
* @maxLength 255
|
|
353
|
+
* @pattern ^[A-Za-z0-9._@/-]{1,255}$
|
|
354
|
+
*/
|
|
355
|
+
space_id: string;
|
|
356
|
+
/**
|
|
357
|
+
* Extra
|
|
358
|
+
* 额外元数据信息,扩展用,如构建参数、标签、扫描信息等
|
|
359
|
+
* @default {}
|
|
360
|
+
*/
|
|
361
|
+
extra?: Record<string, any>;
|
|
362
|
+
/**
|
|
363
|
+
* Artifact Id
|
|
364
|
+
* 制品索引表主键(UUID字符串)
|
|
365
|
+
*/
|
|
366
|
+
artifact_id?: string;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* ArtifactIndex
|
|
370
|
+
* whisker_artifact_index 模型
|
|
371
|
+
*/
|
|
372
|
+
export interface IArtifactIndexOutput {
|
|
260
373
|
/**
|
|
261
374
|
* Gmt Create
|
|
262
375
|
* creation time
|
|
@@ -412,60 +525,61 @@ export interface IBatchQueryRequest {
|
|
|
412
525
|
}
|
|
413
526
|
/**
|
|
414
527
|
* Blob
|
|
415
|
-
*
|
|
528
|
+
* Blob represents raw data by either reference or value.
|
|
529
|
+
*
|
|
530
|
+
* Provides an interface to materialize the blob in different representations, and
|
|
531
|
+
* help to decouple the development of data loaders from the downstream parsing of
|
|
532
|
+
* the raw data.
|
|
416
533
|
*
|
|
417
|
-
*
|
|
418
|
-
* primarily by document loaders to decouple data loading from parsing.
|
|
534
|
+
* Inspired by: https://developer.mozilla.org/en-US/docs/Web/API/Blob
|
|
419
535
|
*
|
|
420
|
-
*
|
|
536
|
+
* Example: Initialize a blob from in-memory data
|
|
421
537
|
*
|
|
422
|
-
*
|
|
538
|
+
* .. code-block:: python
|
|
423
539
|
*
|
|
424
|
-
*
|
|
425
|
-
* from langchain_core.documents import Blob
|
|
540
|
+
* from langchain_core.documents import Blob
|
|
426
541
|
*
|
|
427
|
-
*
|
|
542
|
+
* blob = Blob.from_data("Hello, world!")
|
|
428
543
|
*
|
|
429
|
-
*
|
|
430
|
-
*
|
|
544
|
+
* # Read the blob as a string
|
|
545
|
+
* print(blob.as_string())
|
|
431
546
|
*
|
|
432
|
-
*
|
|
433
|
-
*
|
|
547
|
+
* # Read the blob as bytes
|
|
548
|
+
* print(blob.as_bytes())
|
|
434
549
|
*
|
|
435
|
-
*
|
|
436
|
-
*
|
|
437
|
-
*
|
|
438
|
-
* ```
|
|
550
|
+
* # Read the blob as a byte stream
|
|
551
|
+
* with blob.as_bytes_io() as f:
|
|
552
|
+
* print(f.read())
|
|
439
553
|
*
|
|
440
|
-
*
|
|
554
|
+
* Example: Load from memory and specify mime-type and metadata
|
|
441
555
|
*
|
|
442
|
-
*
|
|
443
|
-
* from langchain_core.documents import Blob
|
|
556
|
+
* .. code-block:: python
|
|
444
557
|
*
|
|
445
|
-
*
|
|
446
|
-
* data="Hello, world!",
|
|
447
|
-
* mime_type="text/plain",
|
|
448
|
-
* metadata={"source": "https://example.com"},
|
|
449
|
-
* )
|
|
450
|
-
* ```
|
|
558
|
+
* from langchain_core.documents import Blob
|
|
451
559
|
*
|
|
452
|
-
*
|
|
560
|
+
* blob = Blob.from_data(
|
|
561
|
+
* data="Hello, world!",
|
|
562
|
+
* mime_type="text/plain",
|
|
563
|
+
* metadata={"source": "https://example.com"},
|
|
564
|
+
* )
|
|
453
565
|
*
|
|
454
|
-
*
|
|
455
|
-
* from langchain_core.documents import Blob
|
|
566
|
+
* Example: Load the blob from a file
|
|
456
567
|
*
|
|
457
|
-
*
|
|
568
|
+
* .. code-block:: python
|
|
458
569
|
*
|
|
459
|
-
*
|
|
460
|
-
* print(blob.as_string())
|
|
570
|
+
* from langchain_core.documents import Blob
|
|
461
571
|
*
|
|
462
|
-
*
|
|
463
|
-
* print(blob.as_bytes())
|
|
572
|
+
* blob = Blob.from_path("path/to/file.txt")
|
|
464
573
|
*
|
|
465
|
-
*
|
|
466
|
-
*
|
|
467
|
-
*
|
|
468
|
-
*
|
|
574
|
+
* # Read the blob as a string
|
|
575
|
+
* print(blob.as_string())
|
|
576
|
+
*
|
|
577
|
+
* # Read the blob as bytes
|
|
578
|
+
* print(blob.as_bytes())
|
|
579
|
+
*
|
|
580
|
+
* # Read the blob as a byte stream
|
|
581
|
+
* with blob.as_bytes_io() as f:
|
|
582
|
+
* print(f.read())
|
|
469
583
|
*/
|
|
470
584
|
export interface IBlob {
|
|
471
585
|
/** Id */
|
|
@@ -485,7 +599,96 @@ export interface IBlob {
|
|
|
485
599
|
path?: string | null;
|
|
486
600
|
}
|
|
487
601
|
/** Chunk */
|
|
488
|
-
export interface
|
|
602
|
+
export interface IChunkInput {
|
|
603
|
+
/**
|
|
604
|
+
* Gmt Create
|
|
605
|
+
* creation time
|
|
606
|
+
*/
|
|
607
|
+
gmt_create?: string | null;
|
|
608
|
+
/**
|
|
609
|
+
* Gmt Modified
|
|
610
|
+
* update time
|
|
611
|
+
*/
|
|
612
|
+
gmt_modified?: string | null;
|
|
613
|
+
/**
|
|
614
|
+
* Chunk Id
|
|
615
|
+
* chunk id
|
|
616
|
+
*/
|
|
617
|
+
chunk_id?: string;
|
|
618
|
+
/**
|
|
619
|
+
* Space Id
|
|
620
|
+
* space id
|
|
621
|
+
*/
|
|
622
|
+
space_id: string;
|
|
623
|
+
/**
|
|
624
|
+
* Tenant Id
|
|
625
|
+
* tenant id
|
|
626
|
+
*/
|
|
627
|
+
tenant_id: string;
|
|
628
|
+
/**
|
|
629
|
+
* Embedding
|
|
630
|
+
* chunk embedding
|
|
631
|
+
*/
|
|
632
|
+
embedding?: number[] | null;
|
|
633
|
+
/**
|
|
634
|
+
* Context
|
|
635
|
+
* chunk content
|
|
636
|
+
*/
|
|
637
|
+
context: string;
|
|
638
|
+
/**
|
|
639
|
+
* Knowledge Id
|
|
640
|
+
* file source info
|
|
641
|
+
*/
|
|
642
|
+
knowledge_id: string;
|
|
643
|
+
/**
|
|
644
|
+
* Enabled
|
|
645
|
+
* is chunk enabled
|
|
646
|
+
* @default true
|
|
647
|
+
*/
|
|
648
|
+
enabled?: boolean;
|
|
649
|
+
/**
|
|
650
|
+
* Embedding Model Name
|
|
651
|
+
* name of the embedding model
|
|
652
|
+
*/
|
|
653
|
+
embedding_model_name: string;
|
|
654
|
+
/**
|
|
655
|
+
* Metadata
|
|
656
|
+
* Arbitrary metadata associated with the content.
|
|
657
|
+
*/
|
|
658
|
+
metadata?: Record<string, any> | null;
|
|
659
|
+
/**
|
|
660
|
+
* Tags
|
|
661
|
+
* Tags from knowledge.metadata._tags
|
|
662
|
+
*/
|
|
663
|
+
tags?: string[] | null;
|
|
664
|
+
/**
|
|
665
|
+
* F1
|
|
666
|
+
* Field 1 from knowledge.metadata._f1
|
|
667
|
+
*/
|
|
668
|
+
f1?: string | null;
|
|
669
|
+
/**
|
|
670
|
+
* F2
|
|
671
|
+
* Field 2 from knowledge.metadata._f2
|
|
672
|
+
*/
|
|
673
|
+
f2?: string | null;
|
|
674
|
+
/**
|
|
675
|
+
* F3
|
|
676
|
+
* Field 3 from knowledge.metadata._f3
|
|
677
|
+
*/
|
|
678
|
+
f3?: string | null;
|
|
679
|
+
/**
|
|
680
|
+
* F4
|
|
681
|
+
* Field 4 from knowledge.metadata._f4
|
|
682
|
+
*/
|
|
683
|
+
f4?: string | null;
|
|
684
|
+
/**
|
|
685
|
+
* F5
|
|
686
|
+
* Field 5 from knowledge.metadata._f5
|
|
687
|
+
*/
|
|
688
|
+
f5?: string | null;
|
|
689
|
+
}
|
|
690
|
+
/** Chunk */
|
|
691
|
+
export interface IChunkOutput {
|
|
489
692
|
/**
|
|
490
693
|
* Gmt Create
|
|
491
694
|
* creation time
|
|
@@ -1691,9 +1894,35 @@ export interface IPageQueryParamsTask {
|
|
|
1691
1894
|
page_size?: number;
|
|
1692
1895
|
}
|
|
1693
1896
|
/** PageResponse[APIKey] */
|
|
1694
|
-
export interface
|
|
1897
|
+
export interface IPageResponseAPIKeyInput {
|
|
1898
|
+
/** Items */
|
|
1899
|
+
items: IAPIKeyInput[];
|
|
1900
|
+
/** Total */
|
|
1901
|
+
total: number;
|
|
1902
|
+
/** Page */
|
|
1903
|
+
page: number;
|
|
1904
|
+
/** Page Size */
|
|
1905
|
+
page_size: number;
|
|
1906
|
+
/** Total Pages */
|
|
1907
|
+
total_pages: number;
|
|
1908
|
+
}
|
|
1909
|
+
/** PageResponse[APIKey] */
|
|
1910
|
+
export interface IPageResponseAPIKeyOutput {
|
|
1911
|
+
/** Items */
|
|
1912
|
+
items: IAPIKeyOutput[];
|
|
1913
|
+
/** Total */
|
|
1914
|
+
total: number;
|
|
1915
|
+
/** Page */
|
|
1916
|
+
page: number;
|
|
1917
|
+
/** Page Size */
|
|
1918
|
+
page_size: number;
|
|
1919
|
+
/** Total Pages */
|
|
1920
|
+
total_pages: number;
|
|
1921
|
+
}
|
|
1922
|
+
/** PageResponse[ArtifactIndex] */
|
|
1923
|
+
export interface IPageResponseArtifactIndexInput {
|
|
1695
1924
|
/** Items */
|
|
1696
|
-
items:
|
|
1925
|
+
items: IArtifactIndexInput[];
|
|
1697
1926
|
/** Total */
|
|
1698
1927
|
total: number;
|
|
1699
1928
|
/** Page */
|
|
@@ -1704,9 +1933,9 @@ export interface IPageResponseAPIKey {
|
|
|
1704
1933
|
total_pages: number;
|
|
1705
1934
|
}
|
|
1706
1935
|
/** PageResponse[ArtifactIndex] */
|
|
1707
|
-
export interface
|
|
1936
|
+
export interface IPageResponseArtifactIndexOutput {
|
|
1708
1937
|
/** Items */
|
|
1709
|
-
items:
|
|
1938
|
+
items: IArtifactIndexOutput[];
|
|
1710
1939
|
/** Total */
|
|
1711
1940
|
total: number;
|
|
1712
1941
|
/** Page */
|
|
@@ -1717,9 +1946,35 @@ export interface IPageResponseArtifactIndex {
|
|
|
1717
1946
|
total_pages: number;
|
|
1718
1947
|
}
|
|
1719
1948
|
/** PageResponse[Chunk] */
|
|
1720
|
-
export interface
|
|
1949
|
+
export interface IPageResponseChunkInput {
|
|
1721
1950
|
/** Items */
|
|
1722
|
-
items:
|
|
1951
|
+
items: IChunkInput[];
|
|
1952
|
+
/** Total */
|
|
1953
|
+
total: number;
|
|
1954
|
+
/** Page */
|
|
1955
|
+
page: number;
|
|
1956
|
+
/** Page Size */
|
|
1957
|
+
page_size: number;
|
|
1958
|
+
/** Total Pages */
|
|
1959
|
+
total_pages: number;
|
|
1960
|
+
}
|
|
1961
|
+
/** PageResponse[Chunk] */
|
|
1962
|
+
export interface IPageResponseChunkOutput {
|
|
1963
|
+
/** Items */
|
|
1964
|
+
items: IChunkOutput[];
|
|
1965
|
+
/** Total */
|
|
1966
|
+
total: number;
|
|
1967
|
+
/** Page */
|
|
1968
|
+
page: number;
|
|
1969
|
+
/** Page Size */
|
|
1970
|
+
page_size: number;
|
|
1971
|
+
/** Total Pages */
|
|
1972
|
+
total_pages: number;
|
|
1973
|
+
}
|
|
1974
|
+
/** PageResponse[Knowledge] */
|
|
1975
|
+
export interface IPageResponseKnowledgeInput {
|
|
1976
|
+
/** Items */
|
|
1977
|
+
items: IKnowledgeInput[];
|
|
1723
1978
|
/** Total */
|
|
1724
1979
|
total: number;
|
|
1725
1980
|
/** Page */
|
|
@@ -1730,7 +1985,7 @@ export interface IPageResponseChunk {
|
|
|
1730
1985
|
total_pages: number;
|
|
1731
1986
|
}
|
|
1732
1987
|
/** PageResponse[Knowledge] */
|
|
1733
|
-
export interface
|
|
1988
|
+
export interface IPageResponseKnowledgeOutput {
|
|
1734
1989
|
/** Items */
|
|
1735
1990
|
items: IKnowledgeOutput[];
|
|
1736
1991
|
/** Total */
|
|
@@ -1743,9 +1998,9 @@ export interface IPageResponseKnowledge {
|
|
|
1743
1998
|
total_pages: number;
|
|
1744
1999
|
}
|
|
1745
2000
|
/** PageResponse[SpaceResponse] */
|
|
1746
|
-
export interface
|
|
2001
|
+
export interface IPageResponseSpaceResponseInput {
|
|
1747
2002
|
/** Items */
|
|
1748
|
-
items:
|
|
2003
|
+
items: ISpaceResponseInput[];
|
|
1749
2004
|
/** Total */
|
|
1750
2005
|
total: number;
|
|
1751
2006
|
/** Page */
|
|
@@ -1755,10 +2010,10 @@ export interface IPageResponseSpaceResponse {
|
|
|
1755
2010
|
/** Total Pages */
|
|
1756
2011
|
total_pages: number;
|
|
1757
2012
|
}
|
|
1758
|
-
/** PageResponse[
|
|
1759
|
-
export interface
|
|
2013
|
+
/** PageResponse[SpaceResponse] */
|
|
2014
|
+
export interface IPageResponseSpaceResponseOutput {
|
|
1760
2015
|
/** Items */
|
|
1761
|
-
items:
|
|
2016
|
+
items: ISpaceResponseOutput[];
|
|
1762
2017
|
/** Total */
|
|
1763
2018
|
total: number;
|
|
1764
2019
|
/** Page */
|
|
@@ -1768,10 +2023,10 @@ export interface IPageResponseTag {
|
|
|
1768
2023
|
/** Total Pages */
|
|
1769
2024
|
total_pages: number;
|
|
1770
2025
|
}
|
|
1771
|
-
/** PageResponse[
|
|
1772
|
-
export interface
|
|
2026
|
+
/** PageResponse[Tag] */
|
|
2027
|
+
export interface IPageResponseTagInput {
|
|
1773
2028
|
/** Items */
|
|
1774
|
-
items:
|
|
2029
|
+
items: ITagInput[];
|
|
1775
2030
|
/** Total */
|
|
1776
2031
|
total: number;
|
|
1777
2032
|
/** Page */
|
|
@@ -1781,10 +2036,10 @@ export interface IPageResponseTagging {
|
|
|
1781
2036
|
/** Total Pages */
|
|
1782
2037
|
total_pages: number;
|
|
1783
2038
|
}
|
|
1784
|
-
/** PageResponse[
|
|
1785
|
-
export interface
|
|
2039
|
+
/** PageResponse[Tag] */
|
|
2040
|
+
export interface IPageResponseTagOutput {
|
|
1786
2041
|
/** Items */
|
|
1787
|
-
items:
|
|
2042
|
+
items: ITagOutput[];
|
|
1788
2043
|
/** Total */
|
|
1789
2044
|
total: number;
|
|
1790
2045
|
/** Page */
|
|
@@ -1794,10 +2049,62 @@ export interface IPageResponseTenant {
|
|
|
1794
2049
|
/** Total Pages */
|
|
1795
2050
|
total_pages: number;
|
|
1796
2051
|
}
|
|
1797
|
-
/**
|
|
1798
|
-
export interface
|
|
1799
|
-
|
|
1800
|
-
|
|
2052
|
+
/** PageResponse[Tagging] */
|
|
2053
|
+
export interface IPageResponseTaggingInput {
|
|
2054
|
+
/** Items */
|
|
2055
|
+
items: ITaggingInput[];
|
|
2056
|
+
/** Total */
|
|
2057
|
+
total: number;
|
|
2058
|
+
/** Page */
|
|
2059
|
+
page: number;
|
|
2060
|
+
/** Page Size */
|
|
2061
|
+
page_size: number;
|
|
2062
|
+
/** Total Pages */
|
|
2063
|
+
total_pages: number;
|
|
2064
|
+
}
|
|
2065
|
+
/** PageResponse[Tagging] */
|
|
2066
|
+
export interface IPageResponseTaggingOutput {
|
|
2067
|
+
/** Items */
|
|
2068
|
+
items: ITaggingOutput[];
|
|
2069
|
+
/** Total */
|
|
2070
|
+
total: number;
|
|
2071
|
+
/** Page */
|
|
2072
|
+
page: number;
|
|
2073
|
+
/** Page Size */
|
|
2074
|
+
page_size: number;
|
|
2075
|
+
/** Total Pages */
|
|
2076
|
+
total_pages: number;
|
|
2077
|
+
}
|
|
2078
|
+
/** PageResponse[Tenant] */
|
|
2079
|
+
export interface IPageResponseTenantInput {
|
|
2080
|
+
/** Items */
|
|
2081
|
+
items: ITenantInput[];
|
|
2082
|
+
/** Total */
|
|
2083
|
+
total: number;
|
|
2084
|
+
/** Page */
|
|
2085
|
+
page: number;
|
|
2086
|
+
/** Page Size */
|
|
2087
|
+
page_size: number;
|
|
2088
|
+
/** Total Pages */
|
|
2089
|
+
total_pages: number;
|
|
2090
|
+
}
|
|
2091
|
+
/** PageResponse[Tenant] */
|
|
2092
|
+
export interface IPageResponseTenantOutput {
|
|
2093
|
+
/** Items */
|
|
2094
|
+
items: ITenantOutput[];
|
|
2095
|
+
/** Total */
|
|
2096
|
+
total: number;
|
|
2097
|
+
/** Page */
|
|
2098
|
+
page: number;
|
|
2099
|
+
/** Page Size */
|
|
2100
|
+
page_size: number;
|
|
2101
|
+
/** Total Pages */
|
|
2102
|
+
total_pages: number;
|
|
2103
|
+
}
|
|
2104
|
+
/** Permission */
|
|
2105
|
+
export interface IPermission {
|
|
2106
|
+
resource: IResource;
|
|
2107
|
+
/** Actions */
|
|
1801
2108
|
actions: IAction[];
|
|
1802
2109
|
/** Conditions */
|
|
1803
2110
|
conditions?: Record<string, any> | null;
|
|
@@ -1881,7 +2188,7 @@ export interface IResponseModel {
|
|
|
1881
2188
|
export interface IResponseModelAPIKey {
|
|
1882
2189
|
/** Success */
|
|
1883
2190
|
success: boolean;
|
|
1884
|
-
data?:
|
|
2191
|
+
data?: IAPIKeyOutput | null;
|
|
1885
2192
|
/** Message */
|
|
1886
2193
|
message?: string | null;
|
|
1887
2194
|
}
|
|
@@ -1898,7 +2205,7 @@ export interface IResponseModelAny {
|
|
|
1898
2205
|
export interface IResponseModelArtifactIndex {
|
|
1899
2206
|
/** Success */
|
|
1900
2207
|
success: boolean;
|
|
1901
|
-
data?:
|
|
2208
|
+
data?: IArtifactIndexOutput | null;
|
|
1902
2209
|
/** Message */
|
|
1903
2210
|
message?: string | null;
|
|
1904
2211
|
}
|
|
@@ -1906,7 +2213,7 @@ export interface IResponseModelArtifactIndex {
|
|
|
1906
2213
|
export interface IResponseModelChunk {
|
|
1907
2214
|
/** Success */
|
|
1908
2215
|
success: boolean;
|
|
1909
|
-
data?:
|
|
2216
|
+
data?: IChunkOutput | null;
|
|
1910
2217
|
/** Message */
|
|
1911
2218
|
message?: string | null;
|
|
1912
2219
|
}
|
|
@@ -1931,7 +2238,7 @@ export interface IResponseModelListAPIKey {
|
|
|
1931
2238
|
/** Success */
|
|
1932
2239
|
success: boolean;
|
|
1933
2240
|
/** Data */
|
|
1934
|
-
data?:
|
|
2241
|
+
data?: IAPIKeyOutput[] | null;
|
|
1935
2242
|
/** Message */
|
|
1936
2243
|
message?: string | null;
|
|
1937
2244
|
}
|
|
@@ -1940,7 +2247,7 @@ export interface IResponseModelListArtifactIndex {
|
|
|
1940
2247
|
/** Success */
|
|
1941
2248
|
success: boolean;
|
|
1942
2249
|
/** Data */
|
|
1943
|
-
data?:
|
|
2250
|
+
data?: IArtifactIndexOutput[] | null;
|
|
1944
2251
|
/** Message */
|
|
1945
2252
|
message?: string | null;
|
|
1946
2253
|
}
|
|
@@ -1958,7 +2265,7 @@ export interface IResponseModelListRetrievalChunk {
|
|
|
1958
2265
|
/** Success */
|
|
1959
2266
|
success: boolean;
|
|
1960
2267
|
/** Data */
|
|
1961
|
-
data?:
|
|
2268
|
+
data?: IRetrievalChunkOutput[] | null;
|
|
1962
2269
|
/** Message */
|
|
1963
2270
|
message?: string | null;
|
|
1964
2271
|
}
|
|
@@ -1967,7 +2274,7 @@ export interface IResponseModelListTag {
|
|
|
1967
2274
|
/** Success */
|
|
1968
2275
|
success: boolean;
|
|
1969
2276
|
/** Data */
|
|
1970
|
-
data?:
|
|
2277
|
+
data?: ITagOutput[] | null;
|
|
1971
2278
|
/** Message */
|
|
1972
2279
|
message?: string | null;
|
|
1973
2280
|
}
|
|
@@ -1976,7 +2283,7 @@ export interface IResponseModelListTagging {
|
|
|
1976
2283
|
/** Success */
|
|
1977
2284
|
success: boolean;
|
|
1978
2285
|
/** Data */
|
|
1979
|
-
data?:
|
|
2286
|
+
data?: ITaggingOutput[] | null;
|
|
1980
2287
|
/** Message */
|
|
1981
2288
|
message?: string | null;
|
|
1982
2289
|
}
|
|
@@ -1985,7 +2292,7 @@ export interface IResponseModelListTask {
|
|
|
1985
2292
|
/** Success */
|
|
1986
2293
|
success: boolean;
|
|
1987
2294
|
/** Data */
|
|
1988
|
-
data?:
|
|
2295
|
+
data?: ITaskOutput[] | null;
|
|
1989
2296
|
/** Message */
|
|
1990
2297
|
message?: string | null;
|
|
1991
2298
|
}
|
|
@@ -2029,7 +2336,7 @@ export interface IResponseModelNoneType {
|
|
|
2029
2336
|
export interface IResponseModelPageResponseAPIKey {
|
|
2030
2337
|
/** Success */
|
|
2031
2338
|
success: boolean;
|
|
2032
|
-
data?:
|
|
2339
|
+
data?: IPageResponseAPIKeyOutput | null;
|
|
2033
2340
|
/** Message */
|
|
2034
2341
|
message?: string | null;
|
|
2035
2342
|
}
|
|
@@ -2037,7 +2344,7 @@ export interface IResponseModelPageResponseAPIKey {
|
|
|
2037
2344
|
export interface IResponseModelPageResponseArtifactIndex {
|
|
2038
2345
|
/** Success */
|
|
2039
2346
|
success: boolean;
|
|
2040
|
-
data?:
|
|
2347
|
+
data?: IPageResponseArtifactIndexOutput | null;
|
|
2041
2348
|
/** Message */
|
|
2042
2349
|
message?: string | null;
|
|
2043
2350
|
}
|
|
@@ -2045,7 +2352,7 @@ export interface IResponseModelPageResponseArtifactIndex {
|
|
|
2045
2352
|
export interface IResponseModelPageResponseChunk {
|
|
2046
2353
|
/** Success */
|
|
2047
2354
|
success: boolean;
|
|
2048
|
-
data?:
|
|
2355
|
+
data?: IPageResponseChunkOutput | null;
|
|
2049
2356
|
/** Message */
|
|
2050
2357
|
message?: string | null;
|
|
2051
2358
|
}
|
|
@@ -2053,7 +2360,7 @@ export interface IResponseModelPageResponseChunk {
|
|
|
2053
2360
|
export interface IResponseModelPageResponseKnowledge {
|
|
2054
2361
|
/** Success */
|
|
2055
2362
|
success: boolean;
|
|
2056
|
-
data?:
|
|
2363
|
+
data?: IPageResponseKnowledgeOutput | null;
|
|
2057
2364
|
/** Message */
|
|
2058
2365
|
message?: string | null;
|
|
2059
2366
|
}
|
|
@@ -2061,7 +2368,7 @@ export interface IResponseModelPageResponseKnowledge {
|
|
|
2061
2368
|
export interface IResponseModelPageResponseSpaceResponse {
|
|
2062
2369
|
/** Success */
|
|
2063
2370
|
success: boolean;
|
|
2064
|
-
data?:
|
|
2371
|
+
data?: IPageResponseSpaceResponseOutput | null;
|
|
2065
2372
|
/** Message */
|
|
2066
2373
|
message?: string | null;
|
|
2067
2374
|
}
|
|
@@ -2069,7 +2376,7 @@ export interface IResponseModelPageResponseSpaceResponse {
|
|
|
2069
2376
|
export interface IResponseModelPageResponseTag {
|
|
2070
2377
|
/** Success */
|
|
2071
2378
|
success: boolean;
|
|
2072
|
-
data?:
|
|
2379
|
+
data?: IPageResponseTagOutput | null;
|
|
2073
2380
|
/** Message */
|
|
2074
2381
|
message?: string | null;
|
|
2075
2382
|
}
|
|
@@ -2077,7 +2384,7 @@ export interface IResponseModelPageResponseTag {
|
|
|
2077
2384
|
export interface IResponseModelPageResponseTagging {
|
|
2078
2385
|
/** Success */
|
|
2079
2386
|
success: boolean;
|
|
2080
|
-
data?:
|
|
2387
|
+
data?: IPageResponseTaggingOutput | null;
|
|
2081
2388
|
/** Message */
|
|
2082
2389
|
message?: string | null;
|
|
2083
2390
|
}
|
|
@@ -2085,7 +2392,7 @@ export interface IResponseModelPageResponseTagging {
|
|
|
2085
2392
|
export interface IResponseModelPageResponseTenant {
|
|
2086
2393
|
/** Success */
|
|
2087
2394
|
success: boolean;
|
|
2088
|
-
data?:
|
|
2395
|
+
data?: IPageResponseTenantOutput | null;
|
|
2089
2396
|
/** Message */
|
|
2090
2397
|
message?: string | null;
|
|
2091
2398
|
}
|
|
@@ -2093,7 +2400,7 @@ export interface IResponseModelPageResponseTenant {
|
|
|
2093
2400
|
export interface IResponseModelSpaceResponse {
|
|
2094
2401
|
/** Success */
|
|
2095
2402
|
success: boolean;
|
|
2096
|
-
data?:
|
|
2403
|
+
data?: ISpaceResponseOutput | null;
|
|
2097
2404
|
/** Message */
|
|
2098
2405
|
message?: string | null;
|
|
2099
2406
|
}
|
|
@@ -2101,7 +2408,7 @@ export interface IResponseModelSpaceResponse {
|
|
|
2101
2408
|
export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
2102
2409
|
/** Success */
|
|
2103
2410
|
success: boolean;
|
|
2104
|
-
data?:
|
|
2411
|
+
data?: IStatusStatisticsPageResponseTaskOutput | null;
|
|
2105
2412
|
/** Message */
|
|
2106
2413
|
message?: string | null;
|
|
2107
2414
|
}
|
|
@@ -2109,7 +2416,7 @@ export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
|
2109
2416
|
export interface IResponseModelTag {
|
|
2110
2417
|
/** Success */
|
|
2111
2418
|
success: boolean;
|
|
2112
|
-
data?:
|
|
2419
|
+
data?: ITagOutput | null;
|
|
2113
2420
|
/** Message */
|
|
2114
2421
|
message?: string | null;
|
|
2115
2422
|
}
|
|
@@ -2117,7 +2424,7 @@ export interface IResponseModelTag {
|
|
|
2117
2424
|
export interface IResponseModelTask {
|
|
2118
2425
|
/** Success */
|
|
2119
2426
|
success: boolean;
|
|
2120
|
-
data?:
|
|
2427
|
+
data?: ITaskOutput | null;
|
|
2121
2428
|
/** Message */
|
|
2122
2429
|
message?: string | null;
|
|
2123
2430
|
}
|
|
@@ -2125,7 +2432,7 @@ export interface IResponseModelTask {
|
|
|
2125
2432
|
export interface IResponseModelTenant {
|
|
2126
2433
|
/** Success */
|
|
2127
2434
|
success: boolean;
|
|
2128
|
-
data?:
|
|
2435
|
+
data?: ITenantOutput | null;
|
|
2129
2436
|
/** Message */
|
|
2130
2437
|
message?: string | null;
|
|
2131
2438
|
}
|
|
@@ -2226,7 +2533,101 @@ export interface IRetrievalBySpaceRequest {
|
|
|
2226
2533
|
space_id_list: string[];
|
|
2227
2534
|
}
|
|
2228
2535
|
/** RetrievalChunk */
|
|
2229
|
-
export interface
|
|
2536
|
+
export interface IRetrievalChunkInput {
|
|
2537
|
+
/**
|
|
2538
|
+
* Gmt Create
|
|
2539
|
+
* creation time
|
|
2540
|
+
*/
|
|
2541
|
+
gmt_create?: string | null;
|
|
2542
|
+
/**
|
|
2543
|
+
* Gmt Modified
|
|
2544
|
+
* update time
|
|
2545
|
+
*/
|
|
2546
|
+
gmt_modified?: string | null;
|
|
2547
|
+
/**
|
|
2548
|
+
* Chunk Id
|
|
2549
|
+
* chunk id
|
|
2550
|
+
*/
|
|
2551
|
+
chunk_id?: string;
|
|
2552
|
+
/**
|
|
2553
|
+
* Space Id
|
|
2554
|
+
* space id
|
|
2555
|
+
*/
|
|
2556
|
+
space_id: string;
|
|
2557
|
+
/**
|
|
2558
|
+
* Tenant Id
|
|
2559
|
+
* tenant id
|
|
2560
|
+
*/
|
|
2561
|
+
tenant_id: string;
|
|
2562
|
+
/**
|
|
2563
|
+
* Embedding
|
|
2564
|
+
* chunk embedding
|
|
2565
|
+
*/
|
|
2566
|
+
embedding?: number[] | null;
|
|
2567
|
+
/**
|
|
2568
|
+
* Context
|
|
2569
|
+
* chunk content
|
|
2570
|
+
*/
|
|
2571
|
+
context: string;
|
|
2572
|
+
/**
|
|
2573
|
+
* Knowledge Id
|
|
2574
|
+
* file source info
|
|
2575
|
+
*/
|
|
2576
|
+
knowledge_id: string;
|
|
2577
|
+
/**
|
|
2578
|
+
* Enabled
|
|
2579
|
+
* is chunk enabled
|
|
2580
|
+
* @default true
|
|
2581
|
+
*/
|
|
2582
|
+
enabled?: boolean;
|
|
2583
|
+
/**
|
|
2584
|
+
* Embedding Model Name
|
|
2585
|
+
* name of the embedding model
|
|
2586
|
+
*/
|
|
2587
|
+
embedding_model_name: string;
|
|
2588
|
+
/**
|
|
2589
|
+
* Metadata
|
|
2590
|
+
* Arbitrary metadata associated with the content.
|
|
2591
|
+
*/
|
|
2592
|
+
metadata?: Record<string, any> | null;
|
|
2593
|
+
/**
|
|
2594
|
+
* Tags
|
|
2595
|
+
* Tags from knowledge.metadata._tags
|
|
2596
|
+
*/
|
|
2597
|
+
tags?: string[] | null;
|
|
2598
|
+
/**
|
|
2599
|
+
* F1
|
|
2600
|
+
* Field 1 from knowledge.metadata._f1
|
|
2601
|
+
*/
|
|
2602
|
+
f1?: string | null;
|
|
2603
|
+
/**
|
|
2604
|
+
* F2
|
|
2605
|
+
* Field 2 from knowledge.metadata._f2
|
|
2606
|
+
*/
|
|
2607
|
+
f2?: string | null;
|
|
2608
|
+
/**
|
|
2609
|
+
* F3
|
|
2610
|
+
* Field 3 from knowledge.metadata._f3
|
|
2611
|
+
*/
|
|
2612
|
+
f3?: string | null;
|
|
2613
|
+
/**
|
|
2614
|
+
* F4
|
|
2615
|
+
* Field 4 from knowledge.metadata._f4
|
|
2616
|
+
*/
|
|
2617
|
+
f4?: string | null;
|
|
2618
|
+
/**
|
|
2619
|
+
* F5
|
|
2620
|
+
* Field 5 from knowledge.metadata._f5
|
|
2621
|
+
*/
|
|
2622
|
+
f5?: string | null;
|
|
2623
|
+
/**
|
|
2624
|
+
* Similarity
|
|
2625
|
+
* The similarity of the chunk, ranging from 0.0 to 1.0.
|
|
2626
|
+
*/
|
|
2627
|
+
similarity: number;
|
|
2628
|
+
}
|
|
2629
|
+
/** RetrievalChunk */
|
|
2630
|
+
export interface IRetrievalChunkOutput {
|
|
2230
2631
|
/**
|
|
2231
2632
|
* Gmt Create
|
|
2232
2633
|
* creation time
|
|
@@ -2423,7 +2824,67 @@ export interface ISpaceCreate {
|
|
|
2423
2824
|
* total_size Optional[int]: size of the all kowledge in this space.
|
|
2424
2825
|
* knowledge_size Optional[int]: count of the knowledge in this space.
|
|
2425
2826
|
*/
|
|
2426
|
-
export interface
|
|
2827
|
+
export interface ISpaceResponseInput {
|
|
2828
|
+
/**
|
|
2829
|
+
* Gmt Create
|
|
2830
|
+
* creation time
|
|
2831
|
+
*/
|
|
2832
|
+
gmt_create?: string | null;
|
|
2833
|
+
/**
|
|
2834
|
+
* Gmt Modified
|
|
2835
|
+
* update time
|
|
2836
|
+
*/
|
|
2837
|
+
gmt_modified?: string | null;
|
|
2838
|
+
/**
|
|
2839
|
+
* Space Name
|
|
2840
|
+
* name of the space resource
|
|
2841
|
+
* @maxLength 64
|
|
2842
|
+
*/
|
|
2843
|
+
space_name: string;
|
|
2844
|
+
/**
|
|
2845
|
+
* Space Id
|
|
2846
|
+
* space id
|
|
2847
|
+
*/
|
|
2848
|
+
space_id?: string;
|
|
2849
|
+
/**
|
|
2850
|
+
* Description
|
|
2851
|
+
* descrition of the space
|
|
2852
|
+
* @maxLength 255
|
|
2853
|
+
*/
|
|
2854
|
+
description: string;
|
|
2855
|
+
/**
|
|
2856
|
+
* Metadata
|
|
2857
|
+
* metadata of the space resource
|
|
2858
|
+
* @default {}
|
|
2859
|
+
*/
|
|
2860
|
+
metadata?: Record<string, any>;
|
|
2861
|
+
/**
|
|
2862
|
+
* Tenant Id
|
|
2863
|
+
* tenant id
|
|
2864
|
+
*/
|
|
2865
|
+
tenant_id: string;
|
|
2866
|
+
/**
|
|
2867
|
+
* Storage Size
|
|
2868
|
+
* size of the all kowledge in this space
|
|
2869
|
+
* @default 0
|
|
2870
|
+
*/
|
|
2871
|
+
storage_size?: number | null;
|
|
2872
|
+
/**
|
|
2873
|
+
* Knowledge Count
|
|
2874
|
+
* count of the knowledge in this space
|
|
2875
|
+
* @default 0
|
|
2876
|
+
*/
|
|
2877
|
+
knowledge_count?: number | null;
|
|
2878
|
+
}
|
|
2879
|
+
/**
|
|
2880
|
+
* SpaceResponse
|
|
2881
|
+
* SpaceResponse model class that extends Space.
|
|
2882
|
+
* Attributes:
|
|
2883
|
+
* (str): Space ID.
|
|
2884
|
+
* total_size Optional[int]: size of the all kowledge in this space.
|
|
2885
|
+
* knowledge_size Optional[int]: count of the knowledge in this space.
|
|
2886
|
+
*/
|
|
2887
|
+
export interface ISpaceResponseOutput {
|
|
2427
2888
|
/**
|
|
2428
2889
|
* Gmt Create
|
|
2429
2890
|
* creation time
|
|
@@ -2504,9 +2965,57 @@ export interface ISpaceUpdate {
|
|
|
2504
2965
|
metadata?: Record<string, any> | null;
|
|
2505
2966
|
}
|
|
2506
2967
|
/** StatusStatisticsPageResponse[Task] */
|
|
2507
|
-
export interface
|
|
2968
|
+
export interface IStatusStatisticsPageResponseTaskInput {
|
|
2969
|
+
/** Items */
|
|
2970
|
+
items: ITaskInput[];
|
|
2971
|
+
/** Total */
|
|
2972
|
+
total: number;
|
|
2973
|
+
/** Page */
|
|
2974
|
+
page: number;
|
|
2975
|
+
/** Page Size */
|
|
2976
|
+
page_size: number;
|
|
2977
|
+
/** Total Pages */
|
|
2978
|
+
total_pages: number;
|
|
2979
|
+
/**
|
|
2980
|
+
* Success
|
|
2981
|
+
* @default 0
|
|
2982
|
+
*/
|
|
2983
|
+
success?: number;
|
|
2984
|
+
/**
|
|
2985
|
+
* Failed
|
|
2986
|
+
* @default 0
|
|
2987
|
+
*/
|
|
2988
|
+
failed?: number;
|
|
2989
|
+
/**
|
|
2990
|
+
* Cancelled
|
|
2991
|
+
* @default 0
|
|
2992
|
+
*/
|
|
2993
|
+
cancelled?: number;
|
|
2994
|
+
/**
|
|
2995
|
+
* Pending
|
|
2996
|
+
* @default 0
|
|
2997
|
+
*/
|
|
2998
|
+
pending?: number;
|
|
2999
|
+
/**
|
|
3000
|
+
* Running
|
|
3001
|
+
* @default 0
|
|
3002
|
+
*/
|
|
3003
|
+
running?: number;
|
|
3004
|
+
/**
|
|
3005
|
+
* Pending Retry
|
|
3006
|
+
* @default 0
|
|
3007
|
+
*/
|
|
3008
|
+
pending_retry?: number;
|
|
3009
|
+
/**
|
|
3010
|
+
* Deleted
|
|
3011
|
+
* @default 0
|
|
3012
|
+
*/
|
|
3013
|
+
deleted?: number;
|
|
3014
|
+
}
|
|
3015
|
+
/** StatusStatisticsPageResponse[Task] */
|
|
3016
|
+
export interface IStatusStatisticsPageResponseTaskOutput {
|
|
2508
3017
|
/** Items */
|
|
2509
|
-
items:
|
|
3018
|
+
items: ITaskOutput[];
|
|
2510
3019
|
/** Total */
|
|
2511
3020
|
total: number;
|
|
2512
3021
|
/** Page */
|
|
@@ -2552,7 +3061,47 @@ export interface IStatusStatisticsPageResponseTask {
|
|
|
2552
3061
|
deleted?: number;
|
|
2553
3062
|
}
|
|
2554
3063
|
/** Tag */
|
|
2555
|
-
export interface
|
|
3064
|
+
export interface ITagInput {
|
|
3065
|
+
/**
|
|
3066
|
+
* Gmt Create
|
|
3067
|
+
* creation time
|
|
3068
|
+
*/
|
|
3069
|
+
gmt_create?: string | null;
|
|
3070
|
+
/**
|
|
3071
|
+
* Gmt Modified
|
|
3072
|
+
* update time
|
|
3073
|
+
*/
|
|
3074
|
+
gmt_modified?: string | null;
|
|
3075
|
+
/**
|
|
3076
|
+
* Name
|
|
3077
|
+
* 标签名称(租户内唯一)
|
|
3078
|
+
* @maxLength 64
|
|
3079
|
+
*/
|
|
3080
|
+
name: string;
|
|
3081
|
+
/**
|
|
3082
|
+
* Description
|
|
3083
|
+
* 标签描述
|
|
3084
|
+
*/
|
|
3085
|
+
description?: string | null;
|
|
3086
|
+
/**
|
|
3087
|
+
* 标签作用对象类型(如 "space")
|
|
3088
|
+
* @default "space"
|
|
3089
|
+
*/
|
|
3090
|
+
object_type?: ITagObjectType;
|
|
3091
|
+
/**
|
|
3092
|
+
* Tag Id
|
|
3093
|
+
* 标签ID(UUID字符串)
|
|
3094
|
+
*/
|
|
3095
|
+
tag_id?: string;
|
|
3096
|
+
/**
|
|
3097
|
+
* Tenant Id
|
|
3098
|
+
* 所属租户ID
|
|
3099
|
+
* @maxLength 64
|
|
3100
|
+
*/
|
|
3101
|
+
tenant_id: string;
|
|
3102
|
+
}
|
|
3103
|
+
/** Tag */
|
|
3104
|
+
export interface ITagOutput {
|
|
2556
3105
|
/**
|
|
2557
3106
|
* Gmt Create
|
|
2558
3107
|
* creation time
|
|
@@ -2629,7 +3178,54 @@ export interface ITagUpdate {
|
|
|
2629
3178
|
description?: string | null;
|
|
2630
3179
|
}
|
|
2631
3180
|
/** Tagging */
|
|
2632
|
-
export interface
|
|
3181
|
+
export interface ITaggingInput {
|
|
3182
|
+
/**
|
|
3183
|
+
* Gmt Create
|
|
3184
|
+
* creation time
|
|
3185
|
+
*/
|
|
3186
|
+
gmt_create?: string | null;
|
|
3187
|
+
/**
|
|
3188
|
+
* Gmt Modified
|
|
3189
|
+
* update time
|
|
3190
|
+
*/
|
|
3191
|
+
gmt_modified?: string | null;
|
|
3192
|
+
/**
|
|
3193
|
+
* Tagging Id
|
|
3194
|
+
* 标签绑定ID(UUID字符串)
|
|
3195
|
+
*/
|
|
3196
|
+
tagging_id?: string;
|
|
3197
|
+
/**
|
|
3198
|
+
* Tenant Id
|
|
3199
|
+
* 所属租户ID
|
|
3200
|
+
* @maxLength 64
|
|
3201
|
+
*/
|
|
3202
|
+
tenant_id: string;
|
|
3203
|
+
/**
|
|
3204
|
+
* Tag Id
|
|
3205
|
+
* 标签ID(FK -> tag.tag_id,UUID字符串)
|
|
3206
|
+
*/
|
|
3207
|
+
tag_id: string;
|
|
3208
|
+
/**
|
|
3209
|
+
* Tag Name
|
|
3210
|
+
* 标签名称(在 object_type 内唯一)
|
|
3211
|
+
* @maxLength 64
|
|
3212
|
+
*/
|
|
3213
|
+
tag_name: string;
|
|
3214
|
+
/**
|
|
3215
|
+
* Object Id
|
|
3216
|
+
* 被打标签对象ID(如 space_id)
|
|
3217
|
+
* @maxLength 255
|
|
3218
|
+
*/
|
|
3219
|
+
object_id: string;
|
|
3220
|
+
/**
|
|
3221
|
+
* 对象类型,当前仅支持 "space"
|
|
3222
|
+
* @maxLength 32
|
|
3223
|
+
* @default "space"
|
|
3224
|
+
*/
|
|
3225
|
+
object_type?: ITagObjectType;
|
|
3226
|
+
}
|
|
3227
|
+
/** Tagging */
|
|
3228
|
+
export interface ITaggingOutput {
|
|
2633
3229
|
/**
|
|
2634
3230
|
* Gmt Create
|
|
2635
3231
|
* creation time
|
|
@@ -2696,7 +3292,66 @@ export interface ITaggingCreate {
|
|
|
2696
3292
|
object_id: string;
|
|
2697
3293
|
}
|
|
2698
3294
|
/** Task */
|
|
2699
|
-
export interface
|
|
3295
|
+
export interface ITaskInput {
|
|
3296
|
+
/**
|
|
3297
|
+
* Gmt Create
|
|
3298
|
+
* creation time
|
|
3299
|
+
*/
|
|
3300
|
+
gmt_create?: string | null;
|
|
3301
|
+
/**
|
|
3302
|
+
* Gmt Modified
|
|
3303
|
+
* update time
|
|
3304
|
+
*/
|
|
3305
|
+
gmt_modified?: string | null;
|
|
3306
|
+
/**
|
|
3307
|
+
* Task Id
|
|
3308
|
+
* Unique identifier for the task
|
|
3309
|
+
*/
|
|
3310
|
+
task_id?: string;
|
|
3311
|
+
/**
|
|
3312
|
+
* Current status of the task
|
|
3313
|
+
* @default "pending"
|
|
3314
|
+
*/
|
|
3315
|
+
status?: ITaskStatus;
|
|
3316
|
+
/**
|
|
3317
|
+
* Knowledge Id
|
|
3318
|
+
* Identifier for the source file
|
|
3319
|
+
*/
|
|
3320
|
+
knowledge_id: string;
|
|
3321
|
+
/**
|
|
3322
|
+
* Metadata
|
|
3323
|
+
* Metadata for the task
|
|
3324
|
+
*/
|
|
3325
|
+
metadata?: Record<string, any> | null;
|
|
3326
|
+
/**
|
|
3327
|
+
* Error Message
|
|
3328
|
+
* Error message (only present if the task failed)
|
|
3329
|
+
*/
|
|
3330
|
+
error_message?: string | null;
|
|
3331
|
+
/**
|
|
3332
|
+
* Space Id
|
|
3333
|
+
* Identifier for the space
|
|
3334
|
+
*/
|
|
3335
|
+
space_id: string;
|
|
3336
|
+
/**
|
|
3337
|
+
* User Id
|
|
3338
|
+
* Identifier for the user
|
|
3339
|
+
*/
|
|
3340
|
+
user_id?: string | null;
|
|
3341
|
+
/**
|
|
3342
|
+
* Tenant Id
|
|
3343
|
+
* Identifier for the tenant
|
|
3344
|
+
*/
|
|
3345
|
+
tenant_id: string;
|
|
3346
|
+
/**
|
|
3347
|
+
* Task Type
|
|
3348
|
+
* Type of the task
|
|
3349
|
+
* @default "knowledge_chunk"
|
|
3350
|
+
*/
|
|
3351
|
+
task_type?: string;
|
|
3352
|
+
}
|
|
3353
|
+
/** Task */
|
|
3354
|
+
export interface ITaskOutput {
|
|
2700
3355
|
/**
|
|
2701
3356
|
* Gmt Create
|
|
2702
3357
|
* creation time
|
|
@@ -2763,7 +3418,53 @@ export interface ITaskRestartRequest {
|
|
|
2763
3418
|
task_id_list: string[];
|
|
2764
3419
|
}
|
|
2765
3420
|
/** Tenant */
|
|
2766
|
-
export interface
|
|
3421
|
+
export interface ITenantInput {
|
|
3422
|
+
/**
|
|
3423
|
+
* Gmt Create
|
|
3424
|
+
* creation time
|
|
3425
|
+
*/
|
|
3426
|
+
gmt_create?: string | null;
|
|
3427
|
+
/**
|
|
3428
|
+
* Gmt Modified
|
|
3429
|
+
* update time
|
|
3430
|
+
*/
|
|
3431
|
+
gmt_modified?: string | null;
|
|
3432
|
+
/**
|
|
3433
|
+
* Tenant Id
|
|
3434
|
+
* tenant id
|
|
3435
|
+
*/
|
|
3436
|
+
tenant_id?: string;
|
|
3437
|
+
/**
|
|
3438
|
+
* Tenant Name
|
|
3439
|
+
* tenant name
|
|
3440
|
+
* @default ""
|
|
3441
|
+
*/
|
|
3442
|
+
tenant_name?: string;
|
|
3443
|
+
/**
|
|
3444
|
+
* Email
|
|
3445
|
+
* email
|
|
3446
|
+
*/
|
|
3447
|
+
email: string;
|
|
3448
|
+
/**
|
|
3449
|
+
* Secret Key
|
|
3450
|
+
* secret_key
|
|
3451
|
+
* @default ""
|
|
3452
|
+
*/
|
|
3453
|
+
secret_key?: string;
|
|
3454
|
+
/**
|
|
3455
|
+
* Is Active
|
|
3456
|
+
* is active
|
|
3457
|
+
* @default true
|
|
3458
|
+
*/
|
|
3459
|
+
is_active?: boolean;
|
|
3460
|
+
/**
|
|
3461
|
+
* Metadata
|
|
3462
|
+
* Metadata for the tenant
|
|
3463
|
+
*/
|
|
3464
|
+
metadata?: Record<string, any> | null;
|
|
3465
|
+
}
|
|
3466
|
+
/** Tenant */
|
|
3467
|
+
export interface ITenantOutput {
|
|
2767
3468
|
/**
|
|
2768
3469
|
* Gmt Create
|
|
2769
3470
|
* creation time
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@petercatai/whisker-client",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Generated API client (
|
|
3
|
+
"version": "0.1.202511251322-dev",
|
|
4
|
+
"description": "Generated API client (Development)",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"types": "dist/api.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public",
|
|
16
|
-
"tag": "
|
|
16
|
+
"tag": "dev"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^24.10.1",
|