@alicloud/bailian20231229 1.4.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -3,6 +3,91 @@
3
3
  import * as $Util from '@alicloud/tea-util';
4
4
  import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
5
5
  import * as $tea from '@alicloud/tea-typescript';
6
+ export declare class AddCategoryRequest extends $tea.Model {
7
+ /**
8
+ * @remarks
9
+ * This parameter is required.
10
+ */
11
+ categoryName?: string;
12
+ /**
13
+ * @remarks
14
+ * This parameter is required.
15
+ *
16
+ * @example
17
+ * UNSTRUCTURED
18
+ */
19
+ categoryType?: string;
20
+ /**
21
+ * @example
22
+ * cate_cdd11b1b79a74e8bbd675c356a91ee3XXXXXXXX
23
+ */
24
+ parentCategoryId?: string;
25
+ static names(): {
26
+ [key: string]: string;
27
+ };
28
+ static types(): {
29
+ [key: string]: any;
30
+ };
31
+ constructor(map?: {
32
+ [key: string]: any;
33
+ });
34
+ }
35
+ export declare class AddCategoryResponseBody extends $tea.Model {
36
+ /**
37
+ * @example
38
+ * success
39
+ */
40
+ code?: string;
41
+ data?: AddCategoryResponseBodyData;
42
+ /**
43
+ * @example
44
+ * Requests throttling triggered.
45
+ */
46
+ message?: string;
47
+ /**
48
+ * @remarks
49
+ * Id of the request
50
+ *
51
+ * @example
52
+ * 778C0B3B-03C1-5FC1-A947-36EDD13606AB
53
+ */
54
+ requestId?: string;
55
+ /**
56
+ * @example
57
+ * 200
58
+ */
59
+ status?: string;
60
+ /**
61
+ * @example
62
+ * true
63
+ */
64
+ success?: boolean;
65
+ static names(): {
66
+ [key: string]: string;
67
+ };
68
+ static types(): {
69
+ [key: string]: any;
70
+ };
71
+ constructor(map?: {
72
+ [key: string]: any;
73
+ });
74
+ }
75
+ export declare class AddCategoryResponse extends $tea.Model {
76
+ headers?: {
77
+ [key: string]: string;
78
+ };
79
+ statusCode?: number;
80
+ body?: AddCategoryResponseBody;
81
+ static names(): {
82
+ [key: string]: string;
83
+ };
84
+ static types(): {
85
+ [key: string]: any;
86
+ };
87
+ constructor(map?: {
88
+ [key: string]: any;
89
+ });
90
+ }
6
91
  export declare class AddFileRequest extends $tea.Model {
7
92
  /**
8
93
  * @remarks
@@ -406,6 +491,66 @@ export declare class CreateIndexResponse extends $tea.Model {
406
491
  [key: string]: any;
407
492
  });
408
493
  }
494
+ export declare class DeleteCategoryResponseBody extends $tea.Model {
495
+ /**
496
+ * @example
497
+ * success
498
+ */
499
+ code?: string;
500
+ /**
501
+ * @remarks
502
+ * data
503
+ */
504
+ data?: DeleteCategoryResponseBodyData;
505
+ /**
506
+ * @example
507
+ * workspace id is null or invalid.
508
+ */
509
+ message?: string;
510
+ /**
511
+ * @remarks
512
+ * Id of the request
513
+ *
514
+ * @example
515
+ * 17204B98-xxxx-4F9A-8464-2446A84821CA
516
+ */
517
+ requestId?: string;
518
+ /**
519
+ * @example
520
+ * 200
521
+ */
522
+ status?: string;
523
+ /**
524
+ * @example
525
+ * true
526
+ */
527
+ success?: boolean;
528
+ static names(): {
529
+ [key: string]: string;
530
+ };
531
+ static types(): {
532
+ [key: string]: any;
533
+ };
534
+ constructor(map?: {
535
+ [key: string]: any;
536
+ });
537
+ }
538
+ export declare class DeleteCategoryResponse extends $tea.Model {
539
+ headers?: {
540
+ [key: string]: string;
541
+ };
542
+ statusCode?: number;
543
+ body?: DeleteCategoryResponseBody;
544
+ static names(): {
545
+ [key: string]: string;
546
+ };
547
+ static types(): {
548
+ [key: string]: any;
549
+ };
550
+ constructor(map?: {
551
+ [key: string]: any;
552
+ });
553
+ }
409
554
  export declare class DeleteFileResponseBody extends $tea.Model {
410
555
  /**
411
556
  * @example
@@ -773,6 +918,96 @@ export declare class GetIndexJobStatusResponse extends $tea.Model {
773
918
  [key: string]: any;
774
919
  });
775
920
  }
921
+ export declare class ListCategoryRequest extends $tea.Model {
922
+ /**
923
+ * @remarks
924
+ * This parameter is required.
925
+ *
926
+ * @example
927
+ * UNSTRUCTURED
928
+ */
929
+ categoryType?: string;
930
+ /**
931
+ * @example
932
+ * 20
933
+ */
934
+ maxResults?: number;
935
+ /**
936
+ * @example
937
+ * AAAAAdH70eOCSCKtacdomNzak4U=
938
+ */
939
+ nextToken?: string;
940
+ /**
941
+ * @example
942
+ * cate_cdd11b1b79a74e8bbd675c356a91ee3XXXXXXXX
943
+ */
944
+ parentCategoryId?: string;
945
+ static names(): {
946
+ [key: string]: string;
947
+ };
948
+ static types(): {
949
+ [key: string]: any;
950
+ };
951
+ constructor(map?: {
952
+ [key: string]: any;
953
+ });
954
+ }
955
+ export declare class ListCategoryResponseBody extends $tea.Model {
956
+ /**
957
+ * @example
958
+ * success
959
+ */
960
+ code?: string;
961
+ data?: ListCategoryResponseBodyData;
962
+ /**
963
+ * @example
964
+ * workspace id is null or invalid.
965
+ */
966
+ message?: string;
967
+ /**
968
+ * @remarks
969
+ * Id of the request
970
+ *
971
+ * @example
972
+ * 17204B98-xxxx-4F9A-8464-2446A84821CA
973
+ */
974
+ requestId?: string;
975
+ /**
976
+ * @example
977
+ * 200
978
+ */
979
+ status?: string;
980
+ /**
981
+ * @example
982
+ * true
983
+ */
984
+ success?: boolean;
985
+ static names(): {
986
+ [key: string]: string;
987
+ };
988
+ static types(): {
989
+ [key: string]: any;
990
+ };
991
+ constructor(map?: {
992
+ [key: string]: any;
993
+ });
994
+ }
995
+ export declare class ListCategoryResponse extends $tea.Model {
996
+ headers?: {
997
+ [key: string]: string;
998
+ };
999
+ statusCode?: number;
1000
+ body?: ListCategoryResponseBody;
1001
+ static names(): {
1002
+ [key: string]: string;
1003
+ };
1004
+ static types(): {
1005
+ [key: string]: any;
1006
+ };
1007
+ constructor(map?: {
1008
+ [key: string]: any;
1009
+ });
1010
+ }
776
1011
  export declare class ListChunksRequest extends $tea.Model {
777
1012
  fields?: string[];
778
1013
  /**
@@ -1400,6 +1635,23 @@ export declare class SubmitIndexJobResponse extends $tea.Model {
1400
1635
  [key: string]: any;
1401
1636
  });
1402
1637
  }
1638
+ export declare class AddCategoryResponseBodyData extends $tea.Model {
1639
+ /**
1640
+ * @example
1641
+ * cate_cdd11b1b79a74e8bbd675c356a91ee3XXXXXXXX
1642
+ */
1643
+ categoryId?: string;
1644
+ categoryName?: string;
1645
+ static names(): {
1646
+ [key: string]: string;
1647
+ };
1648
+ static types(): {
1649
+ [key: string]: any;
1650
+ };
1651
+ constructor(map?: {
1652
+ [key: string]: any;
1653
+ });
1654
+ }
1403
1655
  export declare class AddFileResponseBodyData extends $tea.Model {
1404
1656
  /**
1405
1657
  * @example
@@ -1502,6 +1754,22 @@ export declare class CreateIndexResponseBodyData extends $tea.Model {
1502
1754
  [key: string]: any;
1503
1755
  });
1504
1756
  }
1757
+ export declare class DeleteCategoryResponseBodyData extends $tea.Model {
1758
+ /**
1759
+ * @example
1760
+ * cate_cdd11b1b79a74e8bbd675c356a91ee3XXXXXXXX
1761
+ */
1762
+ categoryId?: string;
1763
+ static names(): {
1764
+ [key: string]: string;
1765
+ };
1766
+ static types(): {
1767
+ [key: string]: any;
1768
+ };
1769
+ constructor(map?: {
1770
+ [key: string]: any;
1771
+ });
1772
+ }
1505
1773
  export declare class DeleteFileResponseBodyData extends $tea.Model {
1506
1774
  /**
1507
1775
  * @example
@@ -1635,6 +1903,70 @@ export declare class GetIndexJobStatusResponseBodyData extends $tea.Model {
1635
1903
  [key: string]: any;
1636
1904
  });
1637
1905
  }
1906
+ export declare class ListCategoryResponseBodyDataCategoryList extends $tea.Model {
1907
+ /**
1908
+ * @example
1909
+ * cate_cdd11b1b79a74e8bbd675c356a91ee3XXXXXXXX
1910
+ */
1911
+ categoryId?: string;
1912
+ categoryName?: string;
1913
+ /**
1914
+ * @example
1915
+ * UNSTRUCTURED
1916
+ */
1917
+ categoryType?: string;
1918
+ /**
1919
+ * @example
1920
+ * true
1921
+ */
1922
+ isDefault?: boolean;
1923
+ /**
1924
+ * @example
1925
+ * cate_addd11b1b79a74e8bbd675c356a91ee3XXXXXXXX
1926
+ */
1927
+ parentCategoryId?: string;
1928
+ static names(): {
1929
+ [key: string]: string;
1930
+ };
1931
+ static types(): {
1932
+ [key: string]: any;
1933
+ };
1934
+ constructor(map?: {
1935
+ [key: string]: any;
1936
+ });
1937
+ }
1938
+ export declare class ListCategoryResponseBodyData extends $tea.Model {
1939
+ categoryList?: ListCategoryResponseBodyDataCategoryList[];
1940
+ /**
1941
+ * @example
1942
+ * true
1943
+ */
1944
+ hasNext?: boolean;
1945
+ /**
1946
+ * @example
1947
+ * 20
1948
+ */
1949
+ maxResults?: number;
1950
+ /**
1951
+ * @example
1952
+ * AAAAALHWGpGoYCcYMxiFfmlhvh7Z4G8jiXR6IjHYd+M9WQVJ
1953
+ */
1954
+ nextToken?: string;
1955
+ /**
1956
+ * @example
1957
+ * 20
1958
+ */
1959
+ totalCount?: number;
1960
+ static names(): {
1961
+ [key: string]: string;
1962
+ };
1963
+ static types(): {
1964
+ [key: string]: any;
1965
+ };
1966
+ constructor(map?: {
1967
+ [key: string]: any;
1968
+ });
1969
+ }
1638
1970
  export declare class ListChunksResponseBodyDataNodes extends $tea.Model {
1639
1971
  metadata?: any;
1640
1972
  /**
@@ -1958,6 +2290,20 @@ export default class Client extends OpenApi {
1958
2290
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
1959
2291
  [key: string]: string;
1960
2292
  }, endpoint: string): string;
2293
+ /**
2294
+ * @param request - AddCategoryRequest
2295
+ * @param headers - map
2296
+ * @param runtime - runtime options for this request RuntimeOptions
2297
+ * @returns AddCategoryResponse
2298
+ */
2299
+ addCategoryWithOptions(WorkspaceId: string, request: AddCategoryRequest, headers: {
2300
+ [key: string]: string;
2301
+ }, runtime: $Util.RuntimeOptions): Promise<AddCategoryResponse>;
2302
+ /**
2303
+ * @param request - AddCategoryRequest
2304
+ * @returns AddCategoryResponse
2305
+ */
2306
+ addCategory(WorkspaceId: string, request: AddCategoryRequest): Promise<AddCategoryResponse>;
1961
2307
  /**
1962
2308
  * 将临时上传的文档导入百炼数据中心,导入成功之后会自动触发文档解析。
1963
2309
  *
@@ -2012,6 +2358,18 @@ export default class Client extends OpenApi {
2012
2358
  * @returns CreateIndexResponse
2013
2359
  */
2014
2360
  createIndex(WorkspaceId: string, request: CreateIndexRequest): Promise<CreateIndexResponse>;
2361
+ /**
2362
+ * @param headers - map
2363
+ * @param runtime - runtime options for this request RuntimeOptions
2364
+ * @returns DeleteCategoryResponse
2365
+ */
2366
+ deleteCategoryWithOptions(CategoryId: string, WorkspaceId: string, headers: {
2367
+ [key: string]: string;
2368
+ }, runtime: $Util.RuntimeOptions): Promise<DeleteCategoryResponse>;
2369
+ /**
2370
+ * @returns DeleteCategoryResponse
2371
+ */
2372
+ deleteCategory(CategoryId: string, WorkspaceId: string): Promise<DeleteCategoryResponse>;
2015
2373
  /**
2016
2374
  * 删除文档
2017
2375
  *
@@ -2096,6 +2454,24 @@ export default class Client extends OpenApi {
2096
2454
  * @returns GetIndexJobStatusResponse
2097
2455
  */
2098
2456
  getIndexJobStatus(WorkspaceId: string, request: GetIndexJobStatusRequest): Promise<GetIndexJobStatusResponse>;
2457
+ /**
2458
+ * ListCategory
2459
+ *
2460
+ * @param request - ListCategoryRequest
2461
+ * @param headers - map
2462
+ * @param runtime - runtime options for this request RuntimeOptions
2463
+ * @returns ListCategoryResponse
2464
+ */
2465
+ listCategoryWithOptions(WorkspaceId: string, request: ListCategoryRequest, headers: {
2466
+ [key: string]: string;
2467
+ }, runtime: $Util.RuntimeOptions): Promise<ListCategoryResponse>;
2468
+ /**
2469
+ * ListCategory
2470
+ *
2471
+ * @param request - ListCategoryRequest
2472
+ * @returns ListCategoryResponse
2473
+ */
2474
+ listCategory(WorkspaceId: string, request: ListCategoryRequest): Promise<ListCategoryResponse>;
2099
2475
  /**
2100
2476
  * Chunk
2101
2477
  *