@petercatai/whisker-client 1.0.0 → 1.0.202602141025
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 +100 -14
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1957,18 +1957,99 @@ export interface IKnowledgeRefreshScheduleRequest {
|
|
|
1957
1957
|
* @default true
|
|
1958
1958
|
*/
|
|
1959
1959
|
notify_on_failure?: boolean;
|
|
1960
|
+
}
|
|
1961
|
+
/**
|
|
1962
|
+
* KnowledgeResponse
|
|
1963
|
+
* Knowledge response model with scheduler info.
|
|
1964
|
+
*/
|
|
1965
|
+
export interface IKnowledgeResponse {
|
|
1966
|
+
/**
|
|
1967
|
+
* Gmt Create
|
|
1968
|
+
* creation time
|
|
1969
|
+
*/
|
|
1970
|
+
gmt_create?: string | null;
|
|
1971
|
+
/**
|
|
1972
|
+
* Gmt Modified
|
|
1973
|
+
* update time
|
|
1974
|
+
*/
|
|
1975
|
+
gmt_modified?: string | null;
|
|
1976
|
+
/**
|
|
1977
|
+
* Knowledge Id
|
|
1978
|
+
* knowledge id
|
|
1979
|
+
*/
|
|
1980
|
+
knowledge_id?: string;
|
|
1981
|
+
/**
|
|
1982
|
+
* Space Id
|
|
1983
|
+
* the space of knowledge, example: petercat bot id, github repo name
|
|
1984
|
+
*/
|
|
1985
|
+
space_id: string;
|
|
1986
|
+
/**
|
|
1987
|
+
* Tenant Id
|
|
1988
|
+
* tenant id
|
|
1989
|
+
*/
|
|
1990
|
+
tenant_id: string;
|
|
1991
|
+
/** type of knowledge resource */
|
|
1992
|
+
knowledge_type?: string;
|
|
1993
|
+
/**
|
|
1994
|
+
* Knowledge Name
|
|
1995
|
+
* name of the knowledge resource
|
|
1996
|
+
* @maxLength 255
|
|
1997
|
+
*/
|
|
1998
|
+
knowledge_name: string;
|
|
1999
|
+
/** source type */
|
|
2000
|
+
source_type?: string;
|
|
2001
|
+
/**
|
|
2002
|
+
* Source Config
|
|
2003
|
+
* source config of the knowledge
|
|
2004
|
+
*/
|
|
2005
|
+
source_config: IGithubRepoSourceConfig | IGithubFileSourceConfig | IS3SourceConfig | IOpenUrlSourceConfig | ITextSourceConfig | IYuqueSourceConfig | IYuquePersonalDocSourceConfig | IYuquePersonalNoteSourceConfig | INodePackageSourceConfig;
|
|
1960
2006
|
/**
|
|
1961
|
-
*
|
|
2007
|
+
* Embedding Model Name
|
|
2008
|
+
* name of the embedding model. you can set any other model if target embedding service registered
|
|
2009
|
+
*/
|
|
2010
|
+
embedding_model_name: string;
|
|
2011
|
+
/**
|
|
2012
|
+
* Split Config
|
|
2013
|
+
* configuration for splitting the knowledge
|
|
2014
|
+
*/
|
|
2015
|
+
split_config: IBaseCharSplitConfig | IMarkdownSplitConfig | ITextSplitConfig | IJSONSplitConfig | IPDFSplitConfig | IYuqueSplitConfig | IGeaGraphSplitConfig | IGithubRepoParseConfig | IBaseCodeSplitConfig | IImageSplitConfig | INodePackageParseConfig;
|
|
2016
|
+
/**
|
|
2017
|
+
* File Sha
|
|
2018
|
+
* SHA of the file
|
|
2019
|
+
*/
|
|
2020
|
+
file_sha?: string | null;
|
|
2021
|
+
/**
|
|
2022
|
+
* File Size
|
|
2023
|
+
* size of the file
|
|
2024
|
+
*/
|
|
2025
|
+
file_size?: number | null;
|
|
2026
|
+
/**
|
|
2027
|
+
* Metadata
|
|
2028
|
+
* additional metadata, user can update it
|
|
2029
|
+
*/
|
|
2030
|
+
metadata?: Record<string, any>;
|
|
2031
|
+
/**
|
|
2032
|
+
* Retrieval Count
|
|
2033
|
+
* count of the retrieval
|
|
2034
|
+
* @default 0
|
|
2035
|
+
*/
|
|
2036
|
+
retrieval_count?: number;
|
|
2037
|
+
/**
|
|
2038
|
+
* Parent Id
|
|
2039
|
+
* parent knowledge id
|
|
2040
|
+
*/
|
|
2041
|
+
parent_id?: string | null;
|
|
2042
|
+
/**
|
|
2043
|
+
* Enabled
|
|
2044
|
+
* is knowledge enabled
|
|
1962
2045
|
* @default true
|
|
1963
2046
|
*/
|
|
1964
|
-
|
|
2047
|
+
enabled?: boolean;
|
|
1965
2048
|
/**
|
|
1966
|
-
*
|
|
1967
|
-
*
|
|
1968
|
-
* @max 500
|
|
1969
|
-
* @default 50
|
|
2049
|
+
* Scheduler Jobs
|
|
2050
|
+
* scheduler jobs bound to this knowledge
|
|
1970
2051
|
*/
|
|
1971
|
-
|
|
2052
|
+
scheduler_jobs?: ISchedulerJob[];
|
|
1972
2053
|
}
|
|
1973
2054
|
/** LLMMapRequest */
|
|
1974
2055
|
export interface ILLMMapRequest {
|
|
@@ -3170,10 +3251,10 @@ export interface IPageResponseKnowledgeIndex {
|
|
|
3170
3251
|
/** Total Pages */
|
|
3171
3252
|
total_pages: number;
|
|
3172
3253
|
}
|
|
3173
|
-
/** PageResponse[
|
|
3174
|
-
export interface
|
|
3254
|
+
/** PageResponse[KnowledgeResponse] */
|
|
3255
|
+
export interface IPageResponseKnowledgeResponse {
|
|
3175
3256
|
/** Items */
|
|
3176
|
-
items:
|
|
3257
|
+
items: IKnowledgeResponse[];
|
|
3177
3258
|
/** Total */
|
|
3178
3259
|
total: number;
|
|
3179
3260
|
/** Page */
|
|
@@ -3702,11 +3783,11 @@ export interface IResponseModelPageResponseKnowledgeIndex {
|
|
|
3702
3783
|
/** Message */
|
|
3703
3784
|
message?: string | null;
|
|
3704
3785
|
}
|
|
3705
|
-
/** ResponseModel[PageResponse[
|
|
3706
|
-
export interface
|
|
3786
|
+
/** ResponseModel[PageResponse[KnowledgeResponse]] */
|
|
3787
|
+
export interface IResponseModelPageResponseKnowledgeResponse {
|
|
3707
3788
|
/** Success */
|
|
3708
3789
|
success: boolean;
|
|
3709
|
-
data?:
|
|
3790
|
+
data?: IPageResponseKnowledgeResponse | null;
|
|
3710
3791
|
/** Message */
|
|
3711
3792
|
message?: string | null;
|
|
3712
3793
|
}
|
|
@@ -4482,6 +4563,11 @@ export interface ISpaceResponse {
|
|
|
4482
4563
|
* @default 0
|
|
4483
4564
|
*/
|
|
4484
4565
|
knowledge_count?: number | null;
|
|
4566
|
+
/**
|
|
4567
|
+
* Scheduler Jobs
|
|
4568
|
+
* scheduler jobs bound to this space
|
|
4569
|
+
*/
|
|
4570
|
+
scheduler_jobs?: ISchedulerJob[];
|
|
4485
4571
|
}
|
|
4486
4572
|
/**
|
|
4487
4573
|
* SpaceUpdate
|
|
@@ -5525,7 +5611,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5525
5611
|
* @summary Get Knowledge List
|
|
5526
5612
|
* @request POST:/api/knowledge/list
|
|
5527
5613
|
*/
|
|
5528
|
-
getKnowledgeList: (data: IPageQueryParamsKnowledge, params?: RequestParams) => Promise<HttpResponse<
|
|
5614
|
+
getKnowledgeList: (data: IPageQueryParamsKnowledge, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseKnowledgeResponse, void | IHTTPValidationError>>;
|
|
5529
5615
|
/**
|
|
5530
5616
|
* @description 获取知识详情 根据知识ID获取完整的知识信息,包含元数据、配置等所有字段。 Args: knowledge_id: 知识ID Returns: 知识详情(auth_info 字段已脱敏) Raises: 404: 知识不存在
|
|
5531
5617
|
*
|