@petercatai/whisker-client 0.0.1763292575 → 0.0.1763295606

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 CHANGED
@@ -2102,6 +2102,15 @@ export interface IResponseModelAPIKey {
2102
2102
  /** Message */
2103
2103
  message?: string | null;
2104
2104
  }
2105
+ /** ResponseModel[Any] */
2106
+ export interface IResponseModelAny {
2107
+ /** Success */
2108
+ success: boolean;
2109
+ /** Data */
2110
+ data?: any;
2111
+ /** Message */
2112
+ message?: string | null;
2113
+ }
2105
2114
  /** ResponseModel[ArtifactIndex] */
2106
2115
  export interface IResponseModelArtifactIndex {
2107
2116
  /** Success */
@@ -4341,6 +4350,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4341
4350
  */
4342
4351
  getAllExpiredApiKeys: (params?: RequestParams) => Promise<HttpResponse<IResponseModelListAPIKey, void | IHTTPValidationError>>;
4343
4352
  };
4353
+ yuque: {
4354
+ /**
4355
+ * @description 代理语雀文档API,解决CORS问题 Args: doc_id: 语雀文档ID x_auth_token: 语雀OAuth Token (从请求头获取) Returns: 语雀文档详情
4356
+ *
4357
+ * @tags yuque
4358
+ * @name ProxyYuqueGetDoc
4359
+ * @summary Proxy Yuque Get Doc
4360
+ * @request GET:/api/yuque/repos/docs/{doc_id}
4361
+ */
4362
+ proxyYuqueGetDoc: (docId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelAny, void | IHTTPValidationError>>;
4363
+ };
4344
4364
  healthChecker: {
4345
4365
  /**
4346
4366
  * No description
package/dist/api.js CHANGED
@@ -871,6 +871,17 @@ class Api extends HttpClient {
871
871
  */
872
872
  getAllExpiredApiKeys: (params = {}) => this.request(Object.assign({ path: `/api/api_key/expired`, method: "GET", format: "json" }, params)),
873
873
  };
874
+ this.yuque = {
875
+ /**
876
+ * @description 代理语雀文档API,解决CORS问题 Args: doc_id: 语雀文档ID x_auth_token: 语雀OAuth Token (从请求头获取) Returns: 语雀文档详情
877
+ *
878
+ * @tags yuque
879
+ * @name ProxyYuqueGetDoc
880
+ * @summary Proxy Yuque Get Doc
881
+ * @request GET:/api/yuque/repos/docs/{doc_id}
882
+ */
883
+ proxyYuqueGetDoc: (docId, params = {}) => this.request(Object.assign({ path: `/api/yuque/repos/docs/${docId}`, method: "GET", format: "json" }, params)),
884
+ };
874
885
  this.healthChecker = {
875
886
  /**
876
887
  * No description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petercatai/whisker-client",
3
- "version": "0.0.1763292575",
3
+ "version": "0.0.1763295606",
4
4
  "description": "Generated API client (Production)",
5
5
  "main": "dist/api.js",
6
6
  "types": "dist/api.d.ts",