@petercatai/whisker-client 4.0.0 → 4.0.202603121632
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 +133 -11
- package/dist/api.js +5 -5
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1754,6 +1754,68 @@ export interface IHituNodePackageElementCreate {
|
|
|
1754
1754
|
/** split config of the knowledge */
|
|
1755
1755
|
split_config: ITextSplitConfig;
|
|
1756
1756
|
}
|
|
1757
|
+
/** ITenantResponseWithURL */
|
|
1758
|
+
export interface IITenantResponseWithURL {
|
|
1759
|
+
/**
|
|
1760
|
+
* Gmt Create
|
|
1761
|
+
* creation time
|
|
1762
|
+
*/
|
|
1763
|
+
gmt_create?: string | null;
|
|
1764
|
+
/**
|
|
1765
|
+
* Gmt Modified
|
|
1766
|
+
* update time
|
|
1767
|
+
*/
|
|
1768
|
+
gmt_modified?: string | null;
|
|
1769
|
+
/**
|
|
1770
|
+
* Tenant Id
|
|
1771
|
+
* tenant id
|
|
1772
|
+
*/
|
|
1773
|
+
tenant_id?: string;
|
|
1774
|
+
/**
|
|
1775
|
+
* Tenant Name
|
|
1776
|
+
* tenant name
|
|
1777
|
+
* @default ""
|
|
1778
|
+
*/
|
|
1779
|
+
tenant_name?: string;
|
|
1780
|
+
/**
|
|
1781
|
+
* Email
|
|
1782
|
+
* email
|
|
1783
|
+
*/
|
|
1784
|
+
email: string;
|
|
1785
|
+
/**
|
|
1786
|
+
* Secret Key
|
|
1787
|
+
* secret_key
|
|
1788
|
+
* @default ""
|
|
1789
|
+
*/
|
|
1790
|
+
secret_key?: string;
|
|
1791
|
+
/**
|
|
1792
|
+
* Is Active
|
|
1793
|
+
* is active
|
|
1794
|
+
* @default true
|
|
1795
|
+
*/
|
|
1796
|
+
is_active?: boolean;
|
|
1797
|
+
/**
|
|
1798
|
+
* Metadata
|
|
1799
|
+
* Metadata for the tenant
|
|
1800
|
+
*/
|
|
1801
|
+
metadata?: Record<string, any> | null;
|
|
1802
|
+
/**
|
|
1803
|
+
* Public Read Enabled
|
|
1804
|
+
* whether anonymous public read is enabled
|
|
1805
|
+
* @default false
|
|
1806
|
+
*/
|
|
1807
|
+
public_read_enabled?: boolean;
|
|
1808
|
+
/**
|
|
1809
|
+
* Public Read Allowlist
|
|
1810
|
+
* allowed public read endpoint ids
|
|
1811
|
+
*/
|
|
1812
|
+
public_read_allowlist?: string[];
|
|
1813
|
+
/**
|
|
1814
|
+
* Visit Url
|
|
1815
|
+
* 绑定后产品空间访问地址
|
|
1816
|
+
*/
|
|
1817
|
+
visit_url?: string | null;
|
|
1818
|
+
}
|
|
1757
1819
|
/** Image */
|
|
1758
1820
|
export interface IImage {
|
|
1759
1821
|
/** Url */
|
|
@@ -3967,6 +4029,14 @@ export interface IResponseModelGlobalInfo {
|
|
|
3967
4029
|
/** Message */
|
|
3968
4030
|
message?: string | null;
|
|
3969
4031
|
}
|
|
4032
|
+
/** ResponseModel[ITenantResponseWithURL] */
|
|
4033
|
+
export interface IResponseModelITenantResponseWithURL {
|
|
4034
|
+
/** Success */
|
|
4035
|
+
success: boolean;
|
|
4036
|
+
data?: IITenantResponseWithURL | null;
|
|
4037
|
+
/** Message */
|
|
4038
|
+
message?: string | null;
|
|
4039
|
+
}
|
|
3970
4040
|
/** ResponseModel[KnowledgeIndex] */
|
|
3971
4041
|
export interface IResponseModelKnowledgeIndex {
|
|
3972
4042
|
/** Success */
|
|
@@ -4343,6 +4413,14 @@ export interface IResponseModelTask {
|
|
|
4343
4413
|
/** Message */
|
|
4344
4414
|
message?: string | null;
|
|
4345
4415
|
}
|
|
4416
|
+
/** ResponseModel[TenantBindProductResponse] */
|
|
4417
|
+
export interface IResponseModelTenantBindProductResponse {
|
|
4418
|
+
/** Success */
|
|
4419
|
+
success: boolean;
|
|
4420
|
+
data?: ITenantBindProductResponse | null;
|
|
4421
|
+
/** Message */
|
|
4422
|
+
message?: string | null;
|
|
4423
|
+
}
|
|
4346
4424
|
/** ResponseModel[TenantNameCheckResponse] */
|
|
4347
4425
|
export interface IResponseModelTenantNameCheckResponse {
|
|
4348
4426
|
/** Success */
|
|
@@ -5391,10 +5469,38 @@ export interface ITenant {
|
|
|
5391
5469
|
*/
|
|
5392
5470
|
public_read_allowlist?: string[];
|
|
5393
5471
|
}
|
|
5394
|
-
/**
|
|
5395
|
-
export interface
|
|
5396
|
-
/**
|
|
5397
|
-
|
|
5472
|
+
/** TenantBindProductRequest */
|
|
5473
|
+
export interface ITenantBindProductRequest {
|
|
5474
|
+
/**
|
|
5475
|
+
* Sk
|
|
5476
|
+
* Whisker 租户 secret key
|
|
5477
|
+
* @minLength 1
|
|
5478
|
+
*/
|
|
5479
|
+
sk: string;
|
|
5480
|
+
/**
|
|
5481
|
+
* Outuserid
|
|
5482
|
+
* 外部产品用户工号/登录账号
|
|
5483
|
+
* @minLength 1
|
|
5484
|
+
*/
|
|
5485
|
+
outUserId: string;
|
|
5486
|
+
/**
|
|
5487
|
+
* Spaceavatar
|
|
5488
|
+
* 产品空间头像 URL,可选
|
|
5489
|
+
*/
|
|
5490
|
+
spaceAvatar?: string | null;
|
|
5491
|
+
}
|
|
5492
|
+
/** TenantBindProductResponse */
|
|
5493
|
+
export interface ITenantBindProductResponse {
|
|
5494
|
+
/** Product Space Id */
|
|
5495
|
+
product_space_id: string;
|
|
5496
|
+
/** Product Space Name */
|
|
5497
|
+
product_space_name: string;
|
|
5498
|
+
/** Visit Url */
|
|
5499
|
+
visit_url: string;
|
|
5500
|
+
/** Binding Status */
|
|
5501
|
+
binding_status: string;
|
|
5502
|
+
/** Tenant Id */
|
|
5503
|
+
tenant_id: string;
|
|
5398
5504
|
}
|
|
5399
5505
|
/** TenantCreate */
|
|
5400
5506
|
export interface ITenantCreate {
|
|
@@ -5410,12 +5516,28 @@ export interface ITenantCreate {
|
|
|
5410
5516
|
* @default true
|
|
5411
5517
|
*/
|
|
5412
5518
|
notify?: boolean;
|
|
5519
|
+
/** 创建租户后是否自动绑定卧虎产品空间,不传则不绑定 */
|
|
5520
|
+
bind_wohu?: ITenantCreateBindWohu | null;
|
|
5413
5521
|
/**
|
|
5414
5522
|
* Tenant Id
|
|
5415
5523
|
* 租户ID(可选),支持字母、数字、下划线、中划线
|
|
5416
5524
|
*/
|
|
5417
5525
|
tenant_id?: string | null;
|
|
5418
5526
|
}
|
|
5527
|
+
/** TenantCreateBindWohu */
|
|
5528
|
+
export interface ITenantCreateBindWohu {
|
|
5529
|
+
/**
|
|
5530
|
+
* Outuserid
|
|
5531
|
+
* 用户工号
|
|
5532
|
+
* @minLength 1
|
|
5533
|
+
*/
|
|
5534
|
+
outUserId: string;
|
|
5535
|
+
/**
|
|
5536
|
+
* Spaceavatar
|
|
5537
|
+
* 产品空间头像 URL,可选
|
|
5538
|
+
*/
|
|
5539
|
+
spaceAvatar?: string | null;
|
|
5540
|
+
}
|
|
5419
5541
|
/** TenantLog */
|
|
5420
5542
|
export interface ITenantLog {
|
|
5421
5543
|
/** Content */
|
|
@@ -6534,7 +6656,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6534
6656
|
* @summary Create Tenant
|
|
6535
6657
|
* @request POST:/api/tenant/create
|
|
6536
6658
|
*/
|
|
6537
|
-
createTenant: (data: ITenantCreate, params?: RequestParams) => Promise<HttpResponse<
|
|
6659
|
+
createTenant: (data: ITenantCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelITenantResponseWithURL, void | IHTTPValidationError>>;
|
|
6538
6660
|
/**
|
|
6539
6661
|
* @description 根据ID查询租户 获取指定租户的详细信息。需要当前租户具有 READ 或 UPDATE 权限。 Args: id: 租户ID Returns: 租户详细信息(secret_key 字段已脱敏) Raises: 404: 租户不存在
|
|
6540
6662
|
*
|
|
@@ -6590,16 +6712,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6590
6712
|
* @summary Get Tenant
|
|
6591
6713
|
* @request GET:/api/tenant/me
|
|
6592
6714
|
*/
|
|
6593
|
-
getTenant: (params?: RequestParams) => Promise<HttpResponse<
|
|
6715
|
+
getTenant: (params?: RequestParams) => Promise<HttpResponse<IResponseModelITenantResponseWithURL, void | IHTTPValidationError>>;
|
|
6594
6716
|
/**
|
|
6595
|
-
* @description
|
|
6717
|
+
* @description 根据 whisker sk 补建外部产品空间。 通常用于内部产品接入时,自动绑定产品空间获得可视化管理控制台。
|
|
6596
6718
|
*
|
|
6597
6719
|
* @tags tenant
|
|
6598
|
-
* @name
|
|
6599
|
-
* @summary Bind Wohu
|
|
6600
|
-
* @request POST:/api/tenant/bind-wohu-
|
|
6720
|
+
* @name BindProductSpace
|
|
6721
|
+
* @summary Bind Wohu Product Space
|
|
6722
|
+
* @request POST:/api/tenant/bind-wohu-product-space
|
|
6601
6723
|
*/
|
|
6602
|
-
|
|
6724
|
+
bindProductSpace: (data: ITenantBindProductRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelTenantBindProductResponse, void | IHTTPValidationError>>;
|
|
6603
6725
|
/**
|
|
6604
6726
|
* @description 设置当前租户的默认空间。 Args: body.space_id: 要设为默认空间的 space_id Returns: 更新后的租户信息 Raises: 400: 空间不存在或不属于当前租户
|
|
6605
6727
|
*
|
package/dist/api.js
CHANGED
|
@@ -915,14 +915,14 @@ class Api extends HttpClient {
|
|
|
915
915
|
*/
|
|
916
916
|
getTenant: (params = {}) => this.request(Object.assign({ path: `/api/tenant/me`, method: "GET", format: "json" }, params)),
|
|
917
917
|
/**
|
|
918
|
-
* @description
|
|
918
|
+
* @description 根据 whisker sk 补建外部产品空间。 通常用于内部产品接入时,自动绑定产品空间获得可视化管理控制台。
|
|
919
919
|
*
|
|
920
920
|
* @tags tenant
|
|
921
|
-
* @name
|
|
922
|
-
* @summary Bind Wohu
|
|
923
|
-
* @request POST:/api/tenant/bind-wohu-
|
|
921
|
+
* @name BindProductSpace
|
|
922
|
+
* @summary Bind Wohu Product Space
|
|
923
|
+
* @request POST:/api/tenant/bind-wohu-product-space
|
|
924
924
|
*/
|
|
925
|
-
|
|
925
|
+
bindProductSpace: (data, params = {}) => this.request(Object.assign({ path: `/api/tenant/bind-wohu-product-space`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
926
926
|
/**
|
|
927
927
|
* @description 设置当前租户的默认空间。 Args: body.space_id: 要设为默认空间的 space_id Returns: 更新后的租户信息 Raises: 400: 空间不存在或不属于当前租户
|
|
928
928
|
*
|