@petercatai/whisker-client 0.0.1763262163 → 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 +22 -2
- package/dist/api.js +11 -0
- package/package.json +1 -1
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 */
|
|
@@ -3561,7 +3570,7 @@ export interface IYuqueCreate {
|
|
|
3561
3570
|
* type of knowledge resource
|
|
3562
3571
|
* @default "yuquedoc"
|
|
3563
3572
|
*/
|
|
3564
|
-
knowledge_type?: "yuquedoc"
|
|
3573
|
+
knowledge_type?: "yuquedoc";
|
|
3565
3574
|
/**
|
|
3566
3575
|
* Knowledge Name
|
|
3567
3576
|
* name of the knowledge resource
|
|
@@ -3579,7 +3588,7 @@ export interface IYuqueCreate {
|
|
|
3579
3588
|
* source type
|
|
3580
3589
|
* @default "yuque"
|
|
3581
3590
|
*/
|
|
3582
|
-
source_type?: "yuque";
|
|
3591
|
+
source_type?: "yuque" | "yuque_personal_doc" | "yuque_personal_note";
|
|
3583
3592
|
/**
|
|
3584
3593
|
* Embedding Model Name
|
|
3585
3594
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
@@ -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
|