@petercatai/whisker-client 0.1.202506250857-dev → 0.1.202506270410-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.
Files changed (3) hide show
  1. package/dist/api.d.ts +83 -11
  2. package/dist/api.js +29 -11
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -730,6 +730,27 @@ export interface IGithubRepoSourceConfig {
730
730
  */
731
731
  auth_info?: string | null;
732
732
  }
733
+ /** GlobalInfo */
734
+ export interface IGlobalInfo {
735
+ /** Space Count */
736
+ space_count?: number | null;
737
+ /** Knowledge Count */
738
+ knowledge_count?: number | null;
739
+ /** Task Count */
740
+ task_count?: number | null;
741
+ /** Agent Count */
742
+ agent_count?: number | null;
743
+ /** Last 1D User Count */
744
+ last_1d_user_count?: number | null;
745
+ /** Last 7D User Count */
746
+ last_7d_user_count?: number | null;
747
+ /** Sum User Count */
748
+ sum_user_count?: number | null;
749
+ /** Tenant Count */
750
+ tenant_count?: number | null;
751
+ /** Storage Size */
752
+ storage_size?: string | null;
753
+ }
733
754
  /** HTTPValidationError */
734
755
  export interface IHTTPValidationError {
735
756
  /** Detail */
@@ -1673,6 +1694,14 @@ export interface IResponseModelChunk {
1673
1694
  /** Message */
1674
1695
  message?: string | null;
1675
1696
  }
1697
+ /** ResponseModel[GlobalInfo] */
1698
+ export interface IResponseModelGlobalInfo {
1699
+ /** Success */
1700
+ success: boolean;
1701
+ data?: IGlobalInfo | null;
1702
+ /** Message */
1703
+ message?: string | null;
1704
+ }
1676
1705
  /** ResponseModel[Knowledge] */
1677
1706
  export interface IResponseModelKnowledge {
1678
1707
  /** Success */
@@ -1717,6 +1746,15 @@ export interface IResponseModelListTask {
1717
1746
  /** Message */
1718
1747
  message?: string | null;
1719
1748
  }
1749
+ /** ResponseModel[List[TenantLog]] */
1750
+ export interface IResponseModelListTenantLog {
1751
+ /** Success */
1752
+ success: boolean;
1753
+ /** Data */
1754
+ data?: ITenantLog[] | null;
1755
+ /** Message */
1756
+ message?: string | null;
1757
+ }
1720
1758
  /** ResponseModel[NoneType] */
1721
1759
  export interface IResponseModelNoneType {
1722
1760
  /** Success */
@@ -2299,6 +2337,22 @@ export interface ITenantCreate {
2299
2337
  /** Metadata */
2300
2338
  metadata?: Record<string, any> | null;
2301
2339
  }
2340
+ /** TenantLog */
2341
+ export interface ITenantLog {
2342
+ /** Content */
2343
+ content: string;
2344
+ }
2345
+ /** TenantLogQuery */
2346
+ export interface ITenantLogQuery {
2347
+ /** Page */
2348
+ page: number;
2349
+ /** Page Size */
2350
+ page_size: number;
2351
+ /** Start Time */
2352
+ start_time?: string | null;
2353
+ /** End Time */
2354
+ end_time?: string | null;
2355
+ }
2302
2356
  /** TenantUpdate */
2303
2357
  export interface ITenantUpdate {
2304
2358
  /** Tenant Id */
@@ -2929,6 +2983,35 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2929
2983
  */
2930
2984
  getSpaceById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelSpaceResponse, void | IHTTPValidationError>>;
2931
2985
  };
2986
+ v1: {
2987
+ /**
2988
+ * No description
2989
+ *
2990
+ * @tags dashboard
2991
+ * @name GetGlobalInfo
2992
+ * @summary Get System Global Info
2993
+ * @request GET:/api/v1/dashboard/global_info
2994
+ */
2995
+ getGlobalInfo: (params?: RequestParams) => Promise<HttpResponse<IResponseModelGlobalInfo, void>>;
2996
+ /**
2997
+ * No description
2998
+ *
2999
+ * @tags dashboard
3000
+ * @name GetTenantLog
3001
+ * @summary Get Tenant Log
3002
+ * @request GET:/api/v1/dashboard/tenant_log
3003
+ */
3004
+ getTenantLog: (data: ITenantLogQuery, params?: RequestParams) => Promise<HttpResponse<IResponseModelListTenantLog, void | IHTTPValidationError>>;
3005
+ /**
3006
+ * No description
3007
+ *
3008
+ * @tags agent
3009
+ * @name ProResearchApiV1AgentProResearchPost
3010
+ * @summary Pro Research
3011
+ * @request POST:/api/v1/agent/pro_research
3012
+ */
3013
+ proResearchApiV1AgentProResearchPost: (data: IProResearchRequest, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
3014
+ };
2932
3015
  rule: {
2933
3016
  /**
2934
3017
  * No description
@@ -3005,17 +3088,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3005
3088
  */
3006
3089
  getAllExpiredApiKeys: (params?: RequestParams) => Promise<HttpResponse<IResponseModelListAPIKey, void | IHTTPValidationError>>;
3007
3090
  };
3008
- v1: {
3009
- /**
3010
- * No description
3011
- *
3012
- * @tags agent
3013
- * @name ProResearchApiV1AgentProResearchPost
3014
- * @summary Pro Research
3015
- * @request POST:/api/v1/agent/pro_research
3016
- */
3017
- proResearchApiV1AgentProResearchPost: (data: IProResearchRequest, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
3018
- };
3019
3091
  healthChecker: {
3020
3092
  /**
3021
3093
  * No description
package/dist/api.js CHANGED
@@ -601,6 +601,35 @@ class Api extends HttpClient {
601
601
  */
602
602
  getSpaceById: (spaceId, params = {}) => this.request(Object.assign({ path: `/api/space/${spaceId}`, method: "GET", format: "json" }, params)),
603
603
  };
604
+ this.v1 = {
605
+ /**
606
+ * No description
607
+ *
608
+ * @tags dashboard
609
+ * @name GetGlobalInfo
610
+ * @summary Get System Global Info
611
+ * @request GET:/api/v1/dashboard/global_info
612
+ */
613
+ getGlobalInfo: (params = {}) => this.request(Object.assign({ path: `/api/v1/dashboard/global_info`, method: "GET", format: "json" }, params)),
614
+ /**
615
+ * No description
616
+ *
617
+ * @tags dashboard
618
+ * @name GetTenantLog
619
+ * @summary Get Tenant Log
620
+ * @request GET:/api/v1/dashboard/tenant_log
621
+ */
622
+ getTenantLog: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/dashboard/tenant_log`, method: "GET", body: data, type: ContentType.Json, format: "json" }, params)),
623
+ /**
624
+ * No description
625
+ *
626
+ * @tags agent
627
+ * @name ProResearchApiV1AgentProResearchPost
628
+ * @summary Pro Research
629
+ * @request POST:/api/v1/agent/pro_research
630
+ */
631
+ proResearchApiV1AgentProResearchPost: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/agent/pro_research`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
632
+ };
604
633
  this.rule = {
605
634
  /**
606
635
  * No description
@@ -677,17 +706,6 @@ class Api extends HttpClient {
677
706
  */
678
707
  getAllExpiredApiKeys: (params = {}) => this.request(Object.assign({ path: `/api/api_key/expired`, method: "GET", format: "json" }, params)),
679
708
  };
680
- this.v1 = {
681
- /**
682
- * No description
683
- *
684
- * @tags agent
685
- * @name ProResearchApiV1AgentProResearchPost
686
- * @summary Pro Research
687
- * @request POST:/api/v1/agent/pro_research
688
- */
689
- proResearchApiV1AgentProResearchPost: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/agent/pro_research`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
690
- };
691
709
  this.healthChecker = {
692
710
  /**
693
711
  * No description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petercatai/whisker-client",
3
- "version": "0.1.202506250857-dev",
3
+ "version": "0.1.202506270410-dev",
4
4
  "description": "Generated API client (preview)",
5
5
  "main": "dist/api.js",
6
6
  "types": "dist/api.d.ts",