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