@petercatai/whisker-client 0.1.202511162103 → 0.1.202511251241
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 +205 -753
- package/dist/api.js +9 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -138,69 +138,7 @@ export declare enum IAction {
|
|
|
138
138
|
Value = "*"
|
|
139
139
|
}
|
|
140
140
|
/** APIKey */
|
|
141
|
-
export interface
|
|
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 {
|
|
141
|
+
export interface IAPIKey {
|
|
204
142
|
/**
|
|
205
143
|
* Gmt Create
|
|
206
144
|
* creation time
|
|
@@ -318,58 +256,7 @@ export interface IActiveStatusUpdate {
|
|
|
318
256
|
* ArtifactIndex
|
|
319
257
|
* whisker_artifact_index 模型
|
|
320
258
|
*/
|
|
321
|
-
export interface
|
|
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 {
|
|
259
|
+
export interface IArtifactIndex {
|
|
373
260
|
/**
|
|
374
261
|
* Gmt Create
|
|
375
262
|
* creation time
|
|
@@ -523,97 +410,82 @@ export interface IBatchQueryRequest {
|
|
|
523
410
|
/** Knowledge Names */
|
|
524
411
|
knowledge_names: string[];
|
|
525
412
|
}
|
|
526
|
-
/**
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
*/
|
|
593
|
-
f1?: string | null;
|
|
594
|
-
/**
|
|
595
|
-
* F2
|
|
596
|
-
* Field 2 from knowledge.metadata._f2
|
|
597
|
-
*/
|
|
598
|
-
f2?: string | null;
|
|
599
|
-
/**
|
|
600
|
-
* F3
|
|
601
|
-
* Field 3 from knowledge.metadata._f3
|
|
602
|
-
*/
|
|
603
|
-
f3?: string | null;
|
|
604
|
-
/**
|
|
605
|
-
* F4
|
|
606
|
-
* Field 4 from knowledge.metadata._f4
|
|
607
|
-
*/
|
|
608
|
-
f4?: string | null;
|
|
413
|
+
/**
|
|
414
|
+
* Blob
|
|
415
|
+
* Raw data abstraction for document loading and file processing.
|
|
416
|
+
*
|
|
417
|
+
* Represents raw bytes or text, either in-memory or by file reference. Used
|
|
418
|
+
* primarily by document loaders to decouple data loading from parsing.
|
|
419
|
+
*
|
|
420
|
+
* Inspired by [Mozilla's `Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob)
|
|
421
|
+
*
|
|
422
|
+
* ???+ example "Initialize a blob from in-memory data"
|
|
423
|
+
*
|
|
424
|
+
* ```python
|
|
425
|
+
* from langchain_core.documents import Blob
|
|
426
|
+
*
|
|
427
|
+
* blob = Blob.from_data("Hello, world!")
|
|
428
|
+
*
|
|
429
|
+
* # Read the blob as a string
|
|
430
|
+
* print(blob.as_string())
|
|
431
|
+
*
|
|
432
|
+
* # Read the blob as bytes
|
|
433
|
+
* print(blob.as_bytes())
|
|
434
|
+
*
|
|
435
|
+
* # Read the blob as a byte stream
|
|
436
|
+
* with blob.as_bytes_io() as f:
|
|
437
|
+
* print(f.read())
|
|
438
|
+
* ```
|
|
439
|
+
*
|
|
440
|
+
* ??? example "Load from memory and specify MIME type and metadata"
|
|
441
|
+
*
|
|
442
|
+
* ```python
|
|
443
|
+
* from langchain_core.documents import Blob
|
|
444
|
+
*
|
|
445
|
+
* blob = Blob.from_data(
|
|
446
|
+
* data="Hello, world!",
|
|
447
|
+
* mime_type="text/plain",
|
|
448
|
+
* metadata={"source": "https://example.com"},
|
|
449
|
+
* )
|
|
450
|
+
* ```
|
|
451
|
+
*
|
|
452
|
+
* ??? example "Load the blob from a file"
|
|
453
|
+
*
|
|
454
|
+
* ```python
|
|
455
|
+
* from langchain_core.documents import Blob
|
|
456
|
+
*
|
|
457
|
+
* blob = Blob.from_path("path/to/file.txt")
|
|
458
|
+
*
|
|
459
|
+
* # Read the blob as a string
|
|
460
|
+
* print(blob.as_string())
|
|
461
|
+
*
|
|
462
|
+
* # Read the blob as bytes
|
|
463
|
+
* print(blob.as_bytes())
|
|
464
|
+
*
|
|
465
|
+
* # Read the blob as a byte stream
|
|
466
|
+
* with blob.as_bytes_io() as f:
|
|
467
|
+
* print(f.read())
|
|
468
|
+
* ```
|
|
469
|
+
*/
|
|
470
|
+
export interface IBlob {
|
|
471
|
+
/** Id */
|
|
472
|
+
id?: string | null;
|
|
473
|
+
/** Metadata */
|
|
474
|
+
metadata?: Record<string, any>;
|
|
475
|
+
/** Data */
|
|
476
|
+
data?: File | string | null;
|
|
477
|
+
/** Mimetype */
|
|
478
|
+
mimetype?: string | null;
|
|
609
479
|
/**
|
|
610
|
-
*
|
|
611
|
-
*
|
|
480
|
+
* Encoding
|
|
481
|
+
* @default "utf-8"
|
|
612
482
|
*/
|
|
613
|
-
|
|
483
|
+
encoding?: string;
|
|
484
|
+
/** Path */
|
|
485
|
+
path?: string | null;
|
|
614
486
|
}
|
|
615
487
|
/** Chunk */
|
|
616
|
-
export interface
|
|
488
|
+
export interface IChunk {
|
|
617
489
|
/**
|
|
618
490
|
* Gmt Create
|
|
619
491
|
* creation time
|
|
@@ -885,7 +757,7 @@ export interface IGithubRepoParseConfig {
|
|
|
885
757
|
type?: "github_repo";
|
|
886
758
|
/**
|
|
887
759
|
* Include Patterns
|
|
888
|
-
*
|
|
760
|
+
* Whitelist patterns to specify which files to include. When set, ONLY files matching these patterns will be considered for inclusion. However, files are still subject to ignore_patterns, .gitignore (if use_gitignore=True), and default ignores (if use_default_ignore=True). When empty or None, all files not explicitly ignored are included.
|
|
889
761
|
*/
|
|
890
762
|
include_patterns?: string[] | null;
|
|
891
763
|
/**
|
|
@@ -955,6 +827,15 @@ export interface IHTTPValidationError {
|
|
|
955
827
|
/** Detail */
|
|
956
828
|
detail?: IValidationError[];
|
|
957
829
|
}
|
|
830
|
+
/** Image */
|
|
831
|
+
export interface IImage {
|
|
832
|
+
/** Url */
|
|
833
|
+
url?: string | null;
|
|
834
|
+
/** B64 Json */
|
|
835
|
+
b64_json?: string | null;
|
|
836
|
+
/** Metadata */
|
|
837
|
+
metadata: Record<string, any>;
|
|
838
|
+
}
|
|
958
839
|
/** ImageCreate */
|
|
959
840
|
export interface IImageCreate {
|
|
960
841
|
/**
|
|
@@ -1353,21 +1234,27 @@ export interface IMarkdownSplitConfig {
|
|
|
1353
1234
|
* @default 150
|
|
1354
1235
|
*/
|
|
1355
1236
|
chunk_overlap?: number;
|
|
1237
|
+
/**
|
|
1238
|
+
* Separators
|
|
1239
|
+
* separator list, if None, use default separators
|
|
1240
|
+
*/
|
|
1241
|
+
separators?: string[] | null;
|
|
1242
|
+
/**
|
|
1243
|
+
* Split Regex
|
|
1244
|
+
* split_regex,if set, use it instead of separators
|
|
1245
|
+
*/
|
|
1246
|
+
split_regex?: string | null;
|
|
1356
1247
|
/**
|
|
1357
1248
|
* Type
|
|
1358
1249
|
* @default "markdown"
|
|
1359
1250
|
*/
|
|
1360
1251
|
type?: "markdown";
|
|
1361
|
-
/**
|
|
1362
|
-
* Separators
|
|
1363
|
-
* List of separators to split the text. If None, uses default separators
|
|
1364
|
-
*/
|
|
1365
|
-
separators: string[];
|
|
1366
1252
|
/**
|
|
1367
1253
|
* Is Separator Regex
|
|
1368
1254
|
* If true, the separators should be in regular expression format.
|
|
1255
|
+
* @default true
|
|
1369
1256
|
*/
|
|
1370
|
-
is_separator_regex
|
|
1257
|
+
is_separator_regex?: boolean;
|
|
1371
1258
|
/**
|
|
1372
1259
|
* Keep Separator
|
|
1373
1260
|
* Whether to keep the separator and where to place it in each corresponding chunk (True='start')
|
|
@@ -1804,35 +1691,9 @@ export interface IPageQueryParamsTask {
|
|
|
1804
1691
|
page_size?: number;
|
|
1805
1692
|
}
|
|
1806
1693
|
/** PageResponse[APIKey] */
|
|
1807
|
-
export interface
|
|
1808
|
-
/** Items */
|
|
1809
|
-
items: IAPIKeyInput[];
|
|
1810
|
-
/** Total */
|
|
1811
|
-
total: number;
|
|
1812
|
-
/** Page */
|
|
1813
|
-
page: number;
|
|
1814
|
-
/** Page Size */
|
|
1815
|
-
page_size: number;
|
|
1816
|
-
/** Total Pages */
|
|
1817
|
-
total_pages: number;
|
|
1818
|
-
}
|
|
1819
|
-
/** PageResponse[APIKey] */
|
|
1820
|
-
export interface IPageResponseAPIKeyOutput {
|
|
1821
|
-
/** Items */
|
|
1822
|
-
items: IAPIKeyOutput[];
|
|
1823
|
-
/** Total */
|
|
1824
|
-
total: number;
|
|
1825
|
-
/** Page */
|
|
1826
|
-
page: number;
|
|
1827
|
-
/** Page Size */
|
|
1828
|
-
page_size: number;
|
|
1829
|
-
/** Total Pages */
|
|
1830
|
-
total_pages: number;
|
|
1831
|
-
}
|
|
1832
|
-
/** PageResponse[ArtifactIndex] */
|
|
1833
|
-
export interface IPageResponseArtifactIndexInput {
|
|
1694
|
+
export interface IPageResponseAPIKey {
|
|
1834
1695
|
/** Items */
|
|
1835
|
-
items:
|
|
1696
|
+
items: IAPIKey[];
|
|
1836
1697
|
/** Total */
|
|
1837
1698
|
total: number;
|
|
1838
1699
|
/** Page */
|
|
@@ -1843,9 +1704,9 @@ export interface IPageResponseArtifactIndexInput {
|
|
|
1843
1704
|
total_pages: number;
|
|
1844
1705
|
}
|
|
1845
1706
|
/** PageResponse[ArtifactIndex] */
|
|
1846
|
-
export interface
|
|
1707
|
+
export interface IPageResponseArtifactIndex {
|
|
1847
1708
|
/** Items */
|
|
1848
|
-
items:
|
|
1709
|
+
items: IArtifactIndex[];
|
|
1849
1710
|
/** Total */
|
|
1850
1711
|
total: number;
|
|
1851
1712
|
/** Page */
|
|
@@ -1856,9 +1717,9 @@ export interface IPageResponseArtifactIndexOutput {
|
|
|
1856
1717
|
total_pages: number;
|
|
1857
1718
|
}
|
|
1858
1719
|
/** PageResponse[Chunk] */
|
|
1859
|
-
export interface
|
|
1720
|
+
export interface IPageResponseChunk {
|
|
1860
1721
|
/** Items */
|
|
1861
|
-
items:
|
|
1722
|
+
items: IChunk[];
|
|
1862
1723
|
/** Total */
|
|
1863
1724
|
total: number;
|
|
1864
1725
|
/** Page */
|
|
@@ -1868,10 +1729,10 @@ export interface IPageResponseChunkInput {
|
|
|
1868
1729
|
/** Total Pages */
|
|
1869
1730
|
total_pages: number;
|
|
1870
1731
|
}
|
|
1871
|
-
/** PageResponse[
|
|
1872
|
-
export interface
|
|
1732
|
+
/** PageResponse[Knowledge] */
|
|
1733
|
+
export interface IPageResponseKnowledge {
|
|
1873
1734
|
/** Items */
|
|
1874
|
-
items:
|
|
1735
|
+
items: IKnowledgeOutput[];
|
|
1875
1736
|
/** Total */
|
|
1876
1737
|
total: number;
|
|
1877
1738
|
/** Page */
|
|
@@ -1881,10 +1742,10 @@ export interface IPageResponseChunkOutput {
|
|
|
1881
1742
|
/** Total Pages */
|
|
1882
1743
|
total_pages: number;
|
|
1883
1744
|
}
|
|
1884
|
-
/** PageResponse[
|
|
1885
|
-
export interface
|
|
1745
|
+
/** PageResponse[SpaceResponse] */
|
|
1746
|
+
export interface IPageResponseSpaceResponse {
|
|
1886
1747
|
/** Items */
|
|
1887
|
-
items:
|
|
1748
|
+
items: ISpaceResponse[];
|
|
1888
1749
|
/** Total */
|
|
1889
1750
|
total: number;
|
|
1890
1751
|
/** Page */
|
|
@@ -1894,10 +1755,10 @@ export interface IPageResponseKnowledgeInput {
|
|
|
1894
1755
|
/** Total Pages */
|
|
1895
1756
|
total_pages: number;
|
|
1896
1757
|
}
|
|
1897
|
-
/** PageResponse[
|
|
1898
|
-
export interface
|
|
1758
|
+
/** PageResponse[Tag] */
|
|
1759
|
+
export interface IPageResponseTag {
|
|
1899
1760
|
/** Items */
|
|
1900
|
-
items:
|
|
1761
|
+
items: ITag[];
|
|
1901
1762
|
/** Total */
|
|
1902
1763
|
total: number;
|
|
1903
1764
|
/** Page */
|
|
@@ -1907,10 +1768,10 @@ export interface IPageResponseKnowledgeOutput {
|
|
|
1907
1768
|
/** Total Pages */
|
|
1908
1769
|
total_pages: number;
|
|
1909
1770
|
}
|
|
1910
|
-
/** PageResponse[
|
|
1911
|
-
export interface
|
|
1771
|
+
/** PageResponse[Tagging] */
|
|
1772
|
+
export interface IPageResponseTagging {
|
|
1912
1773
|
/** Items */
|
|
1913
|
-
items:
|
|
1774
|
+
items: ITagging[];
|
|
1914
1775
|
/** Total */
|
|
1915
1776
|
total: number;
|
|
1916
1777
|
/** Page */
|
|
@@ -1920,88 +1781,10 @@ export interface IPageResponseSpaceResponseInput {
|
|
|
1920
1781
|
/** Total Pages */
|
|
1921
1782
|
total_pages: number;
|
|
1922
1783
|
}
|
|
1923
|
-
/** PageResponse[
|
|
1924
|
-
export interface
|
|
1784
|
+
/** PageResponse[Tenant] */
|
|
1785
|
+
export interface IPageResponseTenant {
|
|
1925
1786
|
/** Items */
|
|
1926
|
-
items:
|
|
1927
|
-
/** Total */
|
|
1928
|
-
total: number;
|
|
1929
|
-
/** Page */
|
|
1930
|
-
page: number;
|
|
1931
|
-
/** Page Size */
|
|
1932
|
-
page_size: number;
|
|
1933
|
-
/** Total Pages */
|
|
1934
|
-
total_pages: number;
|
|
1935
|
-
}
|
|
1936
|
-
/** PageResponse[Tag] */
|
|
1937
|
-
export interface IPageResponseTagInput {
|
|
1938
|
-
/** Items */
|
|
1939
|
-
items: ITagInput[];
|
|
1940
|
-
/** Total */
|
|
1941
|
-
total: number;
|
|
1942
|
-
/** Page */
|
|
1943
|
-
page: number;
|
|
1944
|
-
/** Page Size */
|
|
1945
|
-
page_size: number;
|
|
1946
|
-
/** Total Pages */
|
|
1947
|
-
total_pages: number;
|
|
1948
|
-
}
|
|
1949
|
-
/** PageResponse[Tag] */
|
|
1950
|
-
export interface IPageResponseTagOutput {
|
|
1951
|
-
/** Items */
|
|
1952
|
-
items: ITagOutput[];
|
|
1953
|
-
/** Total */
|
|
1954
|
-
total: number;
|
|
1955
|
-
/** Page */
|
|
1956
|
-
page: number;
|
|
1957
|
-
/** Page Size */
|
|
1958
|
-
page_size: number;
|
|
1959
|
-
/** Total Pages */
|
|
1960
|
-
total_pages: number;
|
|
1961
|
-
}
|
|
1962
|
-
/** PageResponse[Tagging] */
|
|
1963
|
-
export interface IPageResponseTaggingInput {
|
|
1964
|
-
/** Items */
|
|
1965
|
-
items: ITaggingInput[];
|
|
1966
|
-
/** Total */
|
|
1967
|
-
total: number;
|
|
1968
|
-
/** Page */
|
|
1969
|
-
page: number;
|
|
1970
|
-
/** Page Size */
|
|
1971
|
-
page_size: number;
|
|
1972
|
-
/** Total Pages */
|
|
1973
|
-
total_pages: number;
|
|
1974
|
-
}
|
|
1975
|
-
/** PageResponse[Tagging] */
|
|
1976
|
-
export interface IPageResponseTaggingOutput {
|
|
1977
|
-
/** Items */
|
|
1978
|
-
items: ITaggingOutput[];
|
|
1979
|
-
/** Total */
|
|
1980
|
-
total: number;
|
|
1981
|
-
/** Page */
|
|
1982
|
-
page: number;
|
|
1983
|
-
/** Page Size */
|
|
1984
|
-
page_size: number;
|
|
1985
|
-
/** Total Pages */
|
|
1986
|
-
total_pages: number;
|
|
1987
|
-
}
|
|
1988
|
-
/** PageResponse[Tenant] */
|
|
1989
|
-
export interface IPageResponseTenantInput {
|
|
1990
|
-
/** Items */
|
|
1991
|
-
items: ITenantInput[];
|
|
1992
|
-
/** Total */
|
|
1993
|
-
total: number;
|
|
1994
|
-
/** Page */
|
|
1995
|
-
page: number;
|
|
1996
|
-
/** Page Size */
|
|
1997
|
-
page_size: number;
|
|
1998
|
-
/** Total Pages */
|
|
1999
|
-
total_pages: number;
|
|
2000
|
-
}
|
|
2001
|
-
/** PageResponse[Tenant] */
|
|
2002
|
-
export interface IPageResponseTenantOutput {
|
|
2003
|
-
/** Items */
|
|
2004
|
-
items: ITenantOutput[];
|
|
1787
|
+
items: ITenant[];
|
|
2005
1788
|
/** Total */
|
|
2006
1789
|
total: number;
|
|
2007
1790
|
/** Page */
|
|
@@ -2098,7 +1881,7 @@ export interface IResponseModel {
|
|
|
2098
1881
|
export interface IResponseModelAPIKey {
|
|
2099
1882
|
/** Success */
|
|
2100
1883
|
success: boolean;
|
|
2101
|
-
data?:
|
|
1884
|
+
data?: IAPIKey | null;
|
|
2102
1885
|
/** Message */
|
|
2103
1886
|
message?: string | null;
|
|
2104
1887
|
}
|
|
@@ -2115,7 +1898,7 @@ export interface IResponseModelAny {
|
|
|
2115
1898
|
export interface IResponseModelArtifactIndex {
|
|
2116
1899
|
/** Success */
|
|
2117
1900
|
success: boolean;
|
|
2118
|
-
data?:
|
|
1901
|
+
data?: IArtifactIndex | null;
|
|
2119
1902
|
/** Message */
|
|
2120
1903
|
message?: string | null;
|
|
2121
1904
|
}
|
|
@@ -2123,7 +1906,7 @@ export interface IResponseModelArtifactIndex {
|
|
|
2123
1906
|
export interface IResponseModelChunk {
|
|
2124
1907
|
/** Success */
|
|
2125
1908
|
success: boolean;
|
|
2126
|
-
data?:
|
|
1909
|
+
data?: IChunk | null;
|
|
2127
1910
|
/** Message */
|
|
2128
1911
|
message?: string | null;
|
|
2129
1912
|
}
|
|
@@ -2148,7 +1931,7 @@ export interface IResponseModelListAPIKey {
|
|
|
2148
1931
|
/** Success */
|
|
2149
1932
|
success: boolean;
|
|
2150
1933
|
/** Data */
|
|
2151
|
-
data?:
|
|
1934
|
+
data?: IAPIKey[] | null;
|
|
2152
1935
|
/** Message */
|
|
2153
1936
|
message?: string | null;
|
|
2154
1937
|
}
|
|
@@ -2157,7 +1940,7 @@ export interface IResponseModelListArtifactIndex {
|
|
|
2157
1940
|
/** Success */
|
|
2158
1941
|
success: boolean;
|
|
2159
1942
|
/** Data */
|
|
2160
|
-
data?:
|
|
1943
|
+
data?: IArtifactIndex[] | null;
|
|
2161
1944
|
/** Message */
|
|
2162
1945
|
message?: string | null;
|
|
2163
1946
|
}
|
|
@@ -2175,7 +1958,7 @@ export interface IResponseModelListRetrievalChunk {
|
|
|
2175
1958
|
/** Success */
|
|
2176
1959
|
success: boolean;
|
|
2177
1960
|
/** Data */
|
|
2178
|
-
data?:
|
|
1961
|
+
data?: IRetrievalChunk[] | null;
|
|
2179
1962
|
/** Message */
|
|
2180
1963
|
message?: string | null;
|
|
2181
1964
|
}
|
|
@@ -2184,7 +1967,7 @@ export interface IResponseModelListTag {
|
|
|
2184
1967
|
/** Success */
|
|
2185
1968
|
success: boolean;
|
|
2186
1969
|
/** Data */
|
|
2187
|
-
data?:
|
|
1970
|
+
data?: ITag[] | null;
|
|
2188
1971
|
/** Message */
|
|
2189
1972
|
message?: string | null;
|
|
2190
1973
|
}
|
|
@@ -2193,7 +1976,7 @@ export interface IResponseModelListTagging {
|
|
|
2193
1976
|
/** Success */
|
|
2194
1977
|
success: boolean;
|
|
2195
1978
|
/** Data */
|
|
2196
|
-
data?:
|
|
1979
|
+
data?: ITagging[] | null;
|
|
2197
1980
|
/** Message */
|
|
2198
1981
|
message?: string | null;
|
|
2199
1982
|
}
|
|
@@ -2202,7 +1985,7 @@ export interface IResponseModelListTask {
|
|
|
2202
1985
|
/** Success */
|
|
2203
1986
|
success: boolean;
|
|
2204
1987
|
/** Data */
|
|
2205
|
-
data?:
|
|
1988
|
+
data?: ITask[] | null;
|
|
2206
1989
|
/** Message */
|
|
2207
1990
|
message?: string | null;
|
|
2208
1991
|
}
|
|
@@ -2215,6 +1998,15 @@ export interface IResponseModelListTenantLog {
|
|
|
2215
1998
|
/** Message */
|
|
2216
1999
|
message?: string | null;
|
|
2217
2000
|
}
|
|
2001
|
+
/** ResponseModel[List[Union[Text, Image, Blob]]] */
|
|
2002
|
+
export interface IResponseModelListUnionTextImageBlob {
|
|
2003
|
+
/** Success */
|
|
2004
|
+
success: boolean;
|
|
2005
|
+
/** Data */
|
|
2006
|
+
data?: (IText | IImage | IBlob)[] | null;
|
|
2007
|
+
/** Message */
|
|
2008
|
+
message?: string | null;
|
|
2009
|
+
}
|
|
2218
2010
|
/** ResponseModel[List[WohuProductSpace]] */
|
|
2219
2011
|
export interface IResponseModelListWohuProductSpace {
|
|
2220
2012
|
/** Success */
|
|
@@ -2237,7 +2029,7 @@ export interface IResponseModelNoneType {
|
|
|
2237
2029
|
export interface IResponseModelPageResponseAPIKey {
|
|
2238
2030
|
/** Success */
|
|
2239
2031
|
success: boolean;
|
|
2240
|
-
data?:
|
|
2032
|
+
data?: IPageResponseAPIKey | null;
|
|
2241
2033
|
/** Message */
|
|
2242
2034
|
message?: string | null;
|
|
2243
2035
|
}
|
|
@@ -2245,7 +2037,7 @@ export interface IResponseModelPageResponseAPIKey {
|
|
|
2245
2037
|
export interface IResponseModelPageResponseArtifactIndex {
|
|
2246
2038
|
/** Success */
|
|
2247
2039
|
success: boolean;
|
|
2248
|
-
data?:
|
|
2040
|
+
data?: IPageResponseArtifactIndex | null;
|
|
2249
2041
|
/** Message */
|
|
2250
2042
|
message?: string | null;
|
|
2251
2043
|
}
|
|
@@ -2253,7 +2045,7 @@ export interface IResponseModelPageResponseArtifactIndex {
|
|
|
2253
2045
|
export interface IResponseModelPageResponseChunk {
|
|
2254
2046
|
/** Success */
|
|
2255
2047
|
success: boolean;
|
|
2256
|
-
data?:
|
|
2048
|
+
data?: IPageResponseChunk | null;
|
|
2257
2049
|
/** Message */
|
|
2258
2050
|
message?: string | null;
|
|
2259
2051
|
}
|
|
@@ -2261,7 +2053,7 @@ export interface IResponseModelPageResponseChunk {
|
|
|
2261
2053
|
export interface IResponseModelPageResponseKnowledge {
|
|
2262
2054
|
/** Success */
|
|
2263
2055
|
success: boolean;
|
|
2264
|
-
data?:
|
|
2056
|
+
data?: IPageResponseKnowledge | null;
|
|
2265
2057
|
/** Message */
|
|
2266
2058
|
message?: string | null;
|
|
2267
2059
|
}
|
|
@@ -2269,7 +2061,7 @@ export interface IResponseModelPageResponseKnowledge {
|
|
|
2269
2061
|
export interface IResponseModelPageResponseSpaceResponse {
|
|
2270
2062
|
/** Success */
|
|
2271
2063
|
success: boolean;
|
|
2272
|
-
data?:
|
|
2064
|
+
data?: IPageResponseSpaceResponse | null;
|
|
2273
2065
|
/** Message */
|
|
2274
2066
|
message?: string | null;
|
|
2275
2067
|
}
|
|
@@ -2277,7 +2069,7 @@ export interface IResponseModelPageResponseSpaceResponse {
|
|
|
2277
2069
|
export interface IResponseModelPageResponseTag {
|
|
2278
2070
|
/** Success */
|
|
2279
2071
|
success: boolean;
|
|
2280
|
-
data?:
|
|
2072
|
+
data?: IPageResponseTag | null;
|
|
2281
2073
|
/** Message */
|
|
2282
2074
|
message?: string | null;
|
|
2283
2075
|
}
|
|
@@ -2285,7 +2077,7 @@ export interface IResponseModelPageResponseTag {
|
|
|
2285
2077
|
export interface IResponseModelPageResponseTagging {
|
|
2286
2078
|
/** Success */
|
|
2287
2079
|
success: boolean;
|
|
2288
|
-
data?:
|
|
2080
|
+
data?: IPageResponseTagging | null;
|
|
2289
2081
|
/** Message */
|
|
2290
2082
|
message?: string | null;
|
|
2291
2083
|
}
|
|
@@ -2293,7 +2085,7 @@ export interface IResponseModelPageResponseTagging {
|
|
|
2293
2085
|
export interface IResponseModelPageResponseTenant {
|
|
2294
2086
|
/** Success */
|
|
2295
2087
|
success: boolean;
|
|
2296
|
-
data?:
|
|
2088
|
+
data?: IPageResponseTenant | null;
|
|
2297
2089
|
/** Message */
|
|
2298
2090
|
message?: string | null;
|
|
2299
2091
|
}
|
|
@@ -2301,7 +2093,7 @@ export interface IResponseModelPageResponseTenant {
|
|
|
2301
2093
|
export interface IResponseModelSpaceResponse {
|
|
2302
2094
|
/** Success */
|
|
2303
2095
|
success: boolean;
|
|
2304
|
-
data?:
|
|
2096
|
+
data?: ISpaceResponse | null;
|
|
2305
2097
|
/** Message */
|
|
2306
2098
|
message?: string | null;
|
|
2307
2099
|
}
|
|
@@ -2309,7 +2101,7 @@ export interface IResponseModelSpaceResponse {
|
|
|
2309
2101
|
export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
2310
2102
|
/** Success */
|
|
2311
2103
|
success: boolean;
|
|
2312
|
-
data?:
|
|
2104
|
+
data?: IStatusStatisticsPageResponseTask | null;
|
|
2313
2105
|
/** Message */
|
|
2314
2106
|
message?: string | null;
|
|
2315
2107
|
}
|
|
@@ -2317,7 +2109,7 @@ export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
|
2317
2109
|
export interface IResponseModelTag {
|
|
2318
2110
|
/** Success */
|
|
2319
2111
|
success: boolean;
|
|
2320
|
-
data?:
|
|
2112
|
+
data?: ITag | null;
|
|
2321
2113
|
/** Message */
|
|
2322
2114
|
message?: string | null;
|
|
2323
2115
|
}
|
|
@@ -2325,7 +2117,7 @@ export interface IResponseModelTag {
|
|
|
2325
2117
|
export interface IResponseModelTask {
|
|
2326
2118
|
/** Success */
|
|
2327
2119
|
success: boolean;
|
|
2328
|
-
data?:
|
|
2120
|
+
data?: ITask | null;
|
|
2329
2121
|
/** Message */
|
|
2330
2122
|
message?: string | null;
|
|
2331
2123
|
}
|
|
@@ -2333,7 +2125,7 @@ export interface IResponseModelTask {
|
|
|
2333
2125
|
export interface IResponseModelTenant {
|
|
2334
2126
|
/** Success */
|
|
2335
2127
|
success: boolean;
|
|
2336
|
-
data?:
|
|
2128
|
+
data?: ITenant | null;
|
|
2337
2129
|
/** Message */
|
|
2338
2130
|
message?: string | null;
|
|
2339
2131
|
}
|
|
@@ -2434,101 +2226,7 @@ export interface IRetrievalBySpaceRequest {
|
|
|
2434
2226
|
space_id_list: string[];
|
|
2435
2227
|
}
|
|
2436
2228
|
/** RetrievalChunk */
|
|
2437
|
-
export interface
|
|
2438
|
-
/**
|
|
2439
|
-
* Gmt Create
|
|
2440
|
-
* creation time
|
|
2441
|
-
*/
|
|
2442
|
-
gmt_create?: string | null;
|
|
2443
|
-
/**
|
|
2444
|
-
* Gmt Modified
|
|
2445
|
-
* update time
|
|
2446
|
-
*/
|
|
2447
|
-
gmt_modified?: string | null;
|
|
2448
|
-
/**
|
|
2449
|
-
* Chunk Id
|
|
2450
|
-
* chunk id
|
|
2451
|
-
*/
|
|
2452
|
-
chunk_id?: string;
|
|
2453
|
-
/**
|
|
2454
|
-
* Space Id
|
|
2455
|
-
* space id
|
|
2456
|
-
*/
|
|
2457
|
-
space_id: string;
|
|
2458
|
-
/**
|
|
2459
|
-
* Tenant Id
|
|
2460
|
-
* tenant id
|
|
2461
|
-
*/
|
|
2462
|
-
tenant_id: string;
|
|
2463
|
-
/**
|
|
2464
|
-
* Embedding
|
|
2465
|
-
* chunk embedding
|
|
2466
|
-
*/
|
|
2467
|
-
embedding?: number[] | null;
|
|
2468
|
-
/**
|
|
2469
|
-
* Context
|
|
2470
|
-
* chunk content
|
|
2471
|
-
*/
|
|
2472
|
-
context: string;
|
|
2473
|
-
/**
|
|
2474
|
-
* Knowledge Id
|
|
2475
|
-
* file source info
|
|
2476
|
-
*/
|
|
2477
|
-
knowledge_id: string;
|
|
2478
|
-
/**
|
|
2479
|
-
* Enabled
|
|
2480
|
-
* is chunk enabled
|
|
2481
|
-
* @default true
|
|
2482
|
-
*/
|
|
2483
|
-
enabled?: boolean;
|
|
2484
|
-
/**
|
|
2485
|
-
* Embedding Model Name
|
|
2486
|
-
* name of the embedding model
|
|
2487
|
-
*/
|
|
2488
|
-
embedding_model_name: string;
|
|
2489
|
-
/**
|
|
2490
|
-
* Metadata
|
|
2491
|
-
* Arbitrary metadata associated with the content.
|
|
2492
|
-
*/
|
|
2493
|
-
metadata?: Record<string, any> | null;
|
|
2494
|
-
/**
|
|
2495
|
-
* Tags
|
|
2496
|
-
* Tags from knowledge.metadata._tags
|
|
2497
|
-
*/
|
|
2498
|
-
tags?: string[] | null;
|
|
2499
|
-
/**
|
|
2500
|
-
* F1
|
|
2501
|
-
* Field 1 from knowledge.metadata._f1
|
|
2502
|
-
*/
|
|
2503
|
-
f1?: string | null;
|
|
2504
|
-
/**
|
|
2505
|
-
* F2
|
|
2506
|
-
* Field 2 from knowledge.metadata._f2
|
|
2507
|
-
*/
|
|
2508
|
-
f2?: string | null;
|
|
2509
|
-
/**
|
|
2510
|
-
* F3
|
|
2511
|
-
* Field 3 from knowledge.metadata._f3
|
|
2512
|
-
*/
|
|
2513
|
-
f3?: string | null;
|
|
2514
|
-
/**
|
|
2515
|
-
* F4
|
|
2516
|
-
* Field 4 from knowledge.metadata._f4
|
|
2517
|
-
*/
|
|
2518
|
-
f4?: string | null;
|
|
2519
|
-
/**
|
|
2520
|
-
* F5
|
|
2521
|
-
* Field 5 from knowledge.metadata._f5
|
|
2522
|
-
*/
|
|
2523
|
-
f5?: string | null;
|
|
2524
|
-
/**
|
|
2525
|
-
* Similarity
|
|
2526
|
-
* The similarity of the chunk, ranging from 0.0 to 1.0.
|
|
2527
|
-
*/
|
|
2528
|
-
similarity: number;
|
|
2529
|
-
}
|
|
2530
|
-
/** RetrievalChunk */
|
|
2531
|
-
export interface IRetrievalChunkOutput {
|
|
2229
|
+
export interface IRetrievalChunk {
|
|
2532
2230
|
/**
|
|
2533
2231
|
* Gmt Create
|
|
2534
2232
|
* creation time
|
|
@@ -2725,7 +2423,7 @@ export interface ISpaceCreate {
|
|
|
2725
2423
|
* total_size Optional[int]: size of the all kowledge in this space.
|
|
2726
2424
|
* knowledge_size Optional[int]: count of the knowledge in this space.
|
|
2727
2425
|
*/
|
|
2728
|
-
export interface
|
|
2426
|
+
export interface ISpaceResponse {
|
|
2729
2427
|
/**
|
|
2730
2428
|
* Gmt Create
|
|
2731
2429
|
* creation time
|
|
@@ -2778,117 +2476,37 @@ export interface ISpaceResponseInput {
|
|
|
2778
2476
|
knowledge_count?: number | null;
|
|
2779
2477
|
}
|
|
2780
2478
|
/**
|
|
2781
|
-
*
|
|
2782
|
-
*
|
|
2479
|
+
* SpaceUpdate
|
|
2480
|
+
* SpaceUpdate model for updating space resources.
|
|
2481
|
+
* All fields are optional to support partial updates.
|
|
2482
|
+
*
|
|
2783
2483
|
* Attributes:
|
|
2784
|
-
*
|
|
2785
|
-
*
|
|
2786
|
-
*
|
|
2484
|
+
* space_name (Optional[str]): Space name, example: petercat bot group.
|
|
2485
|
+
* description (Optional[str]): description of the space resource.
|
|
2486
|
+
* metadata (Optional[Dict[str, Any]]): metadata of the space resource, such as embedding model name
|
|
2487
|
+
* and other parameters.
|
|
2787
2488
|
*/
|
|
2788
|
-
export interface
|
|
2789
|
-
/**
|
|
2790
|
-
* Gmt Create
|
|
2791
|
-
* creation time
|
|
2792
|
-
*/
|
|
2793
|
-
gmt_create?: string | null;
|
|
2794
|
-
/**
|
|
2795
|
-
* Gmt Modified
|
|
2796
|
-
* update time
|
|
2797
|
-
*/
|
|
2798
|
-
gmt_modified?: string | null;
|
|
2489
|
+
export interface ISpaceUpdate {
|
|
2799
2490
|
/**
|
|
2800
2491
|
* Space Name
|
|
2801
2492
|
* name of the space resource
|
|
2802
|
-
* @maxLength 64
|
|
2803
|
-
*/
|
|
2804
|
-
space_name: string;
|
|
2805
|
-
/**
|
|
2806
|
-
* Space Id
|
|
2807
|
-
* space id
|
|
2808
2493
|
*/
|
|
2809
|
-
|
|
2494
|
+
space_name?: string | null;
|
|
2810
2495
|
/**
|
|
2811
2496
|
* Description
|
|
2812
|
-
*
|
|
2813
|
-
* @maxLength 255
|
|
2497
|
+
* description of the space
|
|
2814
2498
|
*/
|
|
2815
|
-
description
|
|
2499
|
+
description?: string | null;
|
|
2816
2500
|
/**
|
|
2817
2501
|
* Metadata
|
|
2818
2502
|
* metadata of the space resource
|
|
2819
|
-
* @default {}
|
|
2820
|
-
*/
|
|
2821
|
-
metadata?: Record<string, any>;
|
|
2822
|
-
/**
|
|
2823
|
-
* Tenant Id
|
|
2824
|
-
* tenant id
|
|
2825
|
-
*/
|
|
2826
|
-
tenant_id: string;
|
|
2827
|
-
/**
|
|
2828
|
-
* Storage Size
|
|
2829
|
-
* size of the all kowledge in this space
|
|
2830
|
-
* @default 0
|
|
2831
|
-
*/
|
|
2832
|
-
storage_size?: number | null;
|
|
2833
|
-
/**
|
|
2834
|
-
* Knowledge Count
|
|
2835
|
-
* count of the knowledge in this space
|
|
2836
|
-
* @default 0
|
|
2837
|
-
*/
|
|
2838
|
-
knowledge_count?: number | null;
|
|
2839
|
-
}
|
|
2840
|
-
/** StatusStatisticsPageResponse[Task] */
|
|
2841
|
-
export interface IStatusStatisticsPageResponseTaskInput {
|
|
2842
|
-
/** Items */
|
|
2843
|
-
items: ITaskInput[];
|
|
2844
|
-
/** Total */
|
|
2845
|
-
total: number;
|
|
2846
|
-
/** Page */
|
|
2847
|
-
page: number;
|
|
2848
|
-
/** Page Size */
|
|
2849
|
-
page_size: number;
|
|
2850
|
-
/** Total Pages */
|
|
2851
|
-
total_pages: number;
|
|
2852
|
-
/**
|
|
2853
|
-
* Success
|
|
2854
|
-
* @default 0
|
|
2855
|
-
*/
|
|
2856
|
-
success?: number;
|
|
2857
|
-
/**
|
|
2858
|
-
* Failed
|
|
2859
|
-
* @default 0
|
|
2860
|
-
*/
|
|
2861
|
-
failed?: number;
|
|
2862
|
-
/**
|
|
2863
|
-
* Cancelled
|
|
2864
|
-
* @default 0
|
|
2865
|
-
*/
|
|
2866
|
-
cancelled?: number;
|
|
2867
|
-
/**
|
|
2868
|
-
* Pending
|
|
2869
|
-
* @default 0
|
|
2870
|
-
*/
|
|
2871
|
-
pending?: number;
|
|
2872
|
-
/**
|
|
2873
|
-
* Running
|
|
2874
|
-
* @default 0
|
|
2875
|
-
*/
|
|
2876
|
-
running?: number;
|
|
2877
|
-
/**
|
|
2878
|
-
* Pending Retry
|
|
2879
|
-
* @default 0
|
|
2880
|
-
*/
|
|
2881
|
-
pending_retry?: number;
|
|
2882
|
-
/**
|
|
2883
|
-
* Deleted
|
|
2884
|
-
* @default 0
|
|
2885
2503
|
*/
|
|
2886
|
-
|
|
2504
|
+
metadata?: Record<string, any> | null;
|
|
2887
2505
|
}
|
|
2888
2506
|
/** StatusStatisticsPageResponse[Task] */
|
|
2889
|
-
export interface
|
|
2507
|
+
export interface IStatusStatisticsPageResponseTask {
|
|
2890
2508
|
/** Items */
|
|
2891
|
-
items:
|
|
2509
|
+
items: ITask[];
|
|
2892
2510
|
/** Total */
|
|
2893
2511
|
total: number;
|
|
2894
2512
|
/** Page */
|
|
@@ -2934,47 +2552,7 @@ export interface IStatusStatisticsPageResponseTaskOutput {
|
|
|
2934
2552
|
deleted?: number;
|
|
2935
2553
|
}
|
|
2936
2554
|
/** Tag */
|
|
2937
|
-
export interface
|
|
2938
|
-
/**
|
|
2939
|
-
* Gmt Create
|
|
2940
|
-
* creation time
|
|
2941
|
-
*/
|
|
2942
|
-
gmt_create?: string | null;
|
|
2943
|
-
/**
|
|
2944
|
-
* Gmt Modified
|
|
2945
|
-
* update time
|
|
2946
|
-
*/
|
|
2947
|
-
gmt_modified?: string | null;
|
|
2948
|
-
/**
|
|
2949
|
-
* Name
|
|
2950
|
-
* 标签名称(租户内唯一)
|
|
2951
|
-
* @maxLength 64
|
|
2952
|
-
*/
|
|
2953
|
-
name: string;
|
|
2954
|
-
/**
|
|
2955
|
-
* Description
|
|
2956
|
-
* 标签描述
|
|
2957
|
-
*/
|
|
2958
|
-
description?: string | null;
|
|
2959
|
-
/**
|
|
2960
|
-
* 标签作用对象类型(如 "space")
|
|
2961
|
-
* @default "space"
|
|
2962
|
-
*/
|
|
2963
|
-
object_type?: ITagObjectType;
|
|
2964
|
-
/**
|
|
2965
|
-
* Tag Id
|
|
2966
|
-
* 标签ID(UUID字符串)
|
|
2967
|
-
*/
|
|
2968
|
-
tag_id?: string;
|
|
2969
|
-
/**
|
|
2970
|
-
* Tenant Id
|
|
2971
|
-
* 所属租户ID
|
|
2972
|
-
* @maxLength 64
|
|
2973
|
-
*/
|
|
2974
|
-
tenant_id: string;
|
|
2975
|
-
}
|
|
2976
|
-
/** Tag */
|
|
2977
|
-
export interface ITagOutput {
|
|
2555
|
+
export interface ITag {
|
|
2978
2556
|
/**
|
|
2979
2557
|
* Gmt Create
|
|
2980
2558
|
* creation time
|
|
@@ -3051,54 +2629,7 @@ export interface ITagUpdate {
|
|
|
3051
2629
|
description?: string | null;
|
|
3052
2630
|
}
|
|
3053
2631
|
/** Tagging */
|
|
3054
|
-
export interface
|
|
3055
|
-
/**
|
|
3056
|
-
* Gmt Create
|
|
3057
|
-
* creation time
|
|
3058
|
-
*/
|
|
3059
|
-
gmt_create?: string | null;
|
|
3060
|
-
/**
|
|
3061
|
-
* Gmt Modified
|
|
3062
|
-
* update time
|
|
3063
|
-
*/
|
|
3064
|
-
gmt_modified?: string | null;
|
|
3065
|
-
/**
|
|
3066
|
-
* Tagging Id
|
|
3067
|
-
* 标签绑定ID(UUID字符串)
|
|
3068
|
-
*/
|
|
3069
|
-
tagging_id?: string;
|
|
3070
|
-
/**
|
|
3071
|
-
* Tenant Id
|
|
3072
|
-
* 所属租户ID
|
|
3073
|
-
* @maxLength 64
|
|
3074
|
-
*/
|
|
3075
|
-
tenant_id: string;
|
|
3076
|
-
/**
|
|
3077
|
-
* Tag Id
|
|
3078
|
-
* 标签ID(FK -> tag.tag_id,UUID字符串)
|
|
3079
|
-
*/
|
|
3080
|
-
tag_id: string;
|
|
3081
|
-
/**
|
|
3082
|
-
* Tag Name
|
|
3083
|
-
* 标签名称(在 object_type 内唯一)
|
|
3084
|
-
* @maxLength 64
|
|
3085
|
-
*/
|
|
3086
|
-
tag_name: string;
|
|
3087
|
-
/**
|
|
3088
|
-
* Object Id
|
|
3089
|
-
* 被打标签对象ID(如 space_id)
|
|
3090
|
-
* @maxLength 255
|
|
3091
|
-
*/
|
|
3092
|
-
object_id: string;
|
|
3093
|
-
/**
|
|
3094
|
-
* 对象类型,当前仅支持 "space"
|
|
3095
|
-
* @maxLength 32
|
|
3096
|
-
* @default "space"
|
|
3097
|
-
*/
|
|
3098
|
-
object_type?: ITagObjectType;
|
|
3099
|
-
}
|
|
3100
|
-
/** Tagging */
|
|
3101
|
-
export interface ITaggingOutput {
|
|
2632
|
+
export interface ITagging {
|
|
3102
2633
|
/**
|
|
3103
2634
|
* Gmt Create
|
|
3104
2635
|
* creation time
|
|
@@ -3165,66 +2696,7 @@ export interface ITaggingCreate {
|
|
|
3165
2696
|
object_id: string;
|
|
3166
2697
|
}
|
|
3167
2698
|
/** Task */
|
|
3168
|
-
export interface
|
|
3169
|
-
/**
|
|
3170
|
-
* Gmt Create
|
|
3171
|
-
* creation time
|
|
3172
|
-
*/
|
|
3173
|
-
gmt_create?: string | null;
|
|
3174
|
-
/**
|
|
3175
|
-
* Gmt Modified
|
|
3176
|
-
* update time
|
|
3177
|
-
*/
|
|
3178
|
-
gmt_modified?: string | null;
|
|
3179
|
-
/**
|
|
3180
|
-
* Task Id
|
|
3181
|
-
* Unique identifier for the task
|
|
3182
|
-
*/
|
|
3183
|
-
task_id?: string;
|
|
3184
|
-
/**
|
|
3185
|
-
* Current status of the task
|
|
3186
|
-
* @default "pending"
|
|
3187
|
-
*/
|
|
3188
|
-
status?: ITaskStatus;
|
|
3189
|
-
/**
|
|
3190
|
-
* Knowledge Id
|
|
3191
|
-
* Identifier for the source file
|
|
3192
|
-
*/
|
|
3193
|
-
knowledge_id: string;
|
|
3194
|
-
/**
|
|
3195
|
-
* Metadata
|
|
3196
|
-
* Metadata for the task
|
|
3197
|
-
*/
|
|
3198
|
-
metadata?: Record<string, any> | null;
|
|
3199
|
-
/**
|
|
3200
|
-
* Error Message
|
|
3201
|
-
* Error message (only present if the task failed)
|
|
3202
|
-
*/
|
|
3203
|
-
error_message?: string | null;
|
|
3204
|
-
/**
|
|
3205
|
-
* Space Id
|
|
3206
|
-
* Identifier for the space
|
|
3207
|
-
*/
|
|
3208
|
-
space_id: string;
|
|
3209
|
-
/**
|
|
3210
|
-
* User Id
|
|
3211
|
-
* Identifier for the user
|
|
3212
|
-
*/
|
|
3213
|
-
user_id?: string | null;
|
|
3214
|
-
/**
|
|
3215
|
-
* Tenant Id
|
|
3216
|
-
* Identifier for the tenant
|
|
3217
|
-
*/
|
|
3218
|
-
tenant_id: string;
|
|
3219
|
-
/**
|
|
3220
|
-
* Task Type
|
|
3221
|
-
* Type of the task
|
|
3222
|
-
* @default "knowledge_chunk"
|
|
3223
|
-
*/
|
|
3224
|
-
task_type?: string;
|
|
3225
|
-
}
|
|
3226
|
-
/** Task */
|
|
3227
|
-
export interface ITaskOutput {
|
|
2699
|
+
export interface ITask {
|
|
3228
2700
|
/**
|
|
3229
2701
|
* Gmt Create
|
|
3230
2702
|
* creation time
|
|
@@ -3291,53 +2763,7 @@ export interface ITaskRestartRequest {
|
|
|
3291
2763
|
task_id_list: string[];
|
|
3292
2764
|
}
|
|
3293
2765
|
/** Tenant */
|
|
3294
|
-
export interface
|
|
3295
|
-
/**
|
|
3296
|
-
* Gmt Create
|
|
3297
|
-
* creation time
|
|
3298
|
-
*/
|
|
3299
|
-
gmt_create?: string | null;
|
|
3300
|
-
/**
|
|
3301
|
-
* Gmt Modified
|
|
3302
|
-
* update time
|
|
3303
|
-
*/
|
|
3304
|
-
gmt_modified?: string | null;
|
|
3305
|
-
/**
|
|
3306
|
-
* Tenant Id
|
|
3307
|
-
* tenant id
|
|
3308
|
-
*/
|
|
3309
|
-
tenant_id?: string;
|
|
3310
|
-
/**
|
|
3311
|
-
* Tenant Name
|
|
3312
|
-
* tenant name
|
|
3313
|
-
* @default ""
|
|
3314
|
-
*/
|
|
3315
|
-
tenant_name?: string;
|
|
3316
|
-
/**
|
|
3317
|
-
* Email
|
|
3318
|
-
* email
|
|
3319
|
-
*/
|
|
3320
|
-
email: string;
|
|
3321
|
-
/**
|
|
3322
|
-
* Secret Key
|
|
3323
|
-
* secret_key
|
|
3324
|
-
* @default ""
|
|
3325
|
-
*/
|
|
3326
|
-
secret_key?: string;
|
|
3327
|
-
/**
|
|
3328
|
-
* Is Active
|
|
3329
|
-
* is active
|
|
3330
|
-
* @default true
|
|
3331
|
-
*/
|
|
3332
|
-
is_active?: boolean;
|
|
3333
|
-
/**
|
|
3334
|
-
* Metadata
|
|
3335
|
-
* Metadata for the tenant
|
|
3336
|
-
*/
|
|
3337
|
-
metadata?: Record<string, any> | null;
|
|
3338
|
-
}
|
|
3339
|
-
/** Tenant */
|
|
3340
|
-
export interface ITenantOutput {
|
|
2766
|
+
export interface ITenant {
|
|
3341
2767
|
/**
|
|
3342
2768
|
* Gmt Create
|
|
3343
2769
|
* creation time
|
|
@@ -3416,6 +2842,13 @@ export interface ITenantUpdate {
|
|
|
3416
2842
|
/** Metadata */
|
|
3417
2843
|
metadata?: Record<string, any> | null;
|
|
3418
2844
|
}
|
|
2845
|
+
/** Text */
|
|
2846
|
+
export interface IText {
|
|
2847
|
+
/** Content */
|
|
2848
|
+
content: string;
|
|
2849
|
+
/** Metadata */
|
|
2850
|
+
metadata: Record<string, any>;
|
|
2851
|
+
}
|
|
3419
2852
|
/** TextCreate */
|
|
3420
2853
|
export interface ITextCreate {
|
|
3421
2854
|
/**
|
|
@@ -3503,9 +2936,9 @@ export interface ITextSplitConfig {
|
|
|
3503
2936
|
chunk_overlap?: number;
|
|
3504
2937
|
/**
|
|
3505
2938
|
* Separators
|
|
3506
|
-
*
|
|
2939
|
+
* separator list, if None, use default separators
|
|
3507
2940
|
*/
|
|
3508
|
-
separators
|
|
2941
|
+
separators?: string[] | null;
|
|
3509
2942
|
/**
|
|
3510
2943
|
* Split Regex
|
|
3511
2944
|
* split_regex,if set, use it instead of separators
|
|
@@ -3519,8 +2952,9 @@ export interface ITextSplitConfig {
|
|
|
3519
2952
|
/**
|
|
3520
2953
|
* Is Separator Regex
|
|
3521
2954
|
* If true, the separators should be in regular expression format.
|
|
2955
|
+
* @default false
|
|
3522
2956
|
*/
|
|
3523
|
-
is_separator_regex
|
|
2957
|
+
is_separator_regex?: boolean;
|
|
3524
2958
|
/**
|
|
3525
2959
|
* Keep Separator
|
|
3526
2960
|
* Whether to keep the separator and where to place it in each corresponding chunk (True='start')
|
|
@@ -3691,21 +3125,27 @@ export interface IYuqueSplitConfig {
|
|
|
3691
3125
|
* @default 150
|
|
3692
3126
|
*/
|
|
3693
3127
|
chunk_overlap?: number;
|
|
3128
|
+
/**
|
|
3129
|
+
* Separators
|
|
3130
|
+
* separator list, if None, use default separators
|
|
3131
|
+
*/
|
|
3132
|
+
separators?: string[] | null;
|
|
3133
|
+
/**
|
|
3134
|
+
* Split Regex
|
|
3135
|
+
* split_regex,if set, use it instead of separators
|
|
3136
|
+
*/
|
|
3137
|
+
split_regex?: string | null;
|
|
3694
3138
|
/**
|
|
3695
3139
|
* Type
|
|
3696
3140
|
* @default "yuquedoc"
|
|
3697
3141
|
*/
|
|
3698
3142
|
type?: "yuquedoc";
|
|
3699
|
-
/**
|
|
3700
|
-
* Separators
|
|
3701
|
-
* List of separators to split the text. If None, uses default separators
|
|
3702
|
-
*/
|
|
3703
|
-
separators: string[];
|
|
3704
3143
|
/**
|
|
3705
3144
|
* Is Separator Regex
|
|
3706
3145
|
* If true, the separators should be in regular expression format.
|
|
3146
|
+
* @default true
|
|
3707
3147
|
*/
|
|
3708
|
-
is_separator_regex
|
|
3148
|
+
is_separator_regex?: boolean;
|
|
3709
3149
|
}
|
|
3710
3150
|
export type QueryParamsType = Record<string | number, any>;
|
|
3711
3151
|
export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
|
|
@@ -3875,6 +3315,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3875
3315
|
* @request POST:/api/knowledge/batch_query_by_names
|
|
3876
3316
|
*/
|
|
3877
3317
|
batchQueryKnowledgeByNames: (data: IBatchQueryRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListKnowledge, void | IHTTPValidationError>>;
|
|
3318
|
+
/**
|
|
3319
|
+
* @description 根据知识ID获取知识原文内容 通过对应的Loader加载知识的原始内容。 不同类型的知识会返回不同类型的内容(文本、图片等)。 Args: knowledge_id: 知识ID Returns: 知识原文内容列表(可能包含Text、Image或Blob类型)
|
|
3320
|
+
*
|
|
3321
|
+
* @tags knowledge
|
|
3322
|
+
* @name GetKnowledgeOriginalContent
|
|
3323
|
+
* @summary Get Knowledge Original Content
|
|
3324
|
+
* @request GET:/api/knowledge/original_content
|
|
3325
|
+
*/
|
|
3326
|
+
getKnowledgeOriginalContent: (query: {
|
|
3327
|
+
/** Knowledge Id */
|
|
3328
|
+
knowledge_id: string;
|
|
3329
|
+
}, params?: RequestParams) => Promise<HttpResponse<IResponseModelListUnionTextImageBlob, void | IHTTPValidationError>>;
|
|
3878
3330
|
};
|
|
3879
3331
|
retrieval: {
|
|
3880
3332
|
/**
|
|
@@ -4117,7 +3569,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4117
3569
|
* @summary Update Space
|
|
4118
3570
|
* @request PUT:/api/space/{space_id}
|
|
4119
3571
|
*/
|
|
4120
|
-
updateSpace: (spaceId: string, data:
|
|
3572
|
+
updateSpace: (spaceId: string, data: ISpaceUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelSpaceResponse, void | IHTTPValidationError>>;
|
|
4121
3573
|
/**
|
|
4122
3574
|
* @description 根据ID获取空间详情 使用DDD架构获取空间详细信息,包括统计数据。
|
|
4123
3575
|
*
|
package/dist/api.js
CHANGED
|
@@ -413,6 +413,15 @@ class Api extends HttpClient {
|
|
|
413
413
|
* @request POST:/api/knowledge/batch_query_by_names
|
|
414
414
|
*/
|
|
415
415
|
batchQueryKnowledgeByNames: (data, params = {}) => this.request(Object.assign({ path: `/api/knowledge/batch_query_by_names`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
416
|
+
/**
|
|
417
|
+
* @description 根据知识ID获取知识原文内容 通过对应的Loader加载知识的原始内容。 不同类型的知识会返回不同类型的内容(文本、图片等)。 Args: knowledge_id: 知识ID Returns: 知识原文内容列表(可能包含Text、Image或Blob类型)
|
|
418
|
+
*
|
|
419
|
+
* @tags knowledge
|
|
420
|
+
* @name GetKnowledgeOriginalContent
|
|
421
|
+
* @summary Get Knowledge Original Content
|
|
422
|
+
* @request GET:/api/knowledge/original_content
|
|
423
|
+
*/
|
|
424
|
+
getKnowledgeOriginalContent: (query, params = {}) => this.request(Object.assign({ path: `/api/knowledge/original_content`, method: "GET", query: query, format: "json" }, params)),
|
|
416
425
|
};
|
|
417
426
|
this.retrieval = {
|
|
418
427
|
/**
|