@qualcomm-ui/mdx-vite 2.5.2 → 2.5.3
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/cli.js +557 -136
- package/dist/cli.js.map +4 -4
- package/dist/open-web-ui-knowledge/api.d.ts +153 -0
- package/dist/open-web-ui-knowledge/api.d.ts.map +1 -0
- package/dist/open-web-ui-knowledge/common.d.ts +0 -36
- package/dist/open-web-ui-knowledge/common.d.ts.map +1 -1
- package/dist/open-web-ui-knowledge/download-knowledge.d.ts.map +1 -1
- package/dist/open-web-ui-knowledge/generate-knowledge.d.ts.map +1 -1
- package/dist/open-web-ui-knowledge/knowledge-cleaner.d.ts +10 -0
- package/dist/open-web-ui-knowledge/knowledge-cleaner.d.ts.map +1 -0
- package/dist/open-web-ui-knowledge/upload-knowledge.d.ts.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
export interface FileMeta {
|
|
2
|
+
collection_name?: string;
|
|
3
|
+
content_type?: string;
|
|
4
|
+
data?: Record<string, unknown>;
|
|
5
|
+
name?: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface FileModel {
|
|
9
|
+
access_control?: Record<string, unknown> | null;
|
|
10
|
+
created_at: number;
|
|
11
|
+
data?: Record<string, unknown> | null;
|
|
12
|
+
filename: string;
|
|
13
|
+
hash?: string | null;
|
|
14
|
+
id: string;
|
|
15
|
+
meta?: FileMeta | null;
|
|
16
|
+
path?: string | null;
|
|
17
|
+
updated_at: number;
|
|
18
|
+
user_id: string;
|
|
19
|
+
}
|
|
20
|
+
export interface FileModelResponse {
|
|
21
|
+
created_at: number;
|
|
22
|
+
data?: Record<string, unknown> | null;
|
|
23
|
+
filename: string;
|
|
24
|
+
hash?: string | null;
|
|
25
|
+
id: string;
|
|
26
|
+
meta: FileMeta;
|
|
27
|
+
updated_at: number;
|
|
28
|
+
user_id: string;
|
|
29
|
+
}
|
|
30
|
+
export interface FileMetadataResponse {
|
|
31
|
+
created_at: number;
|
|
32
|
+
hash?: string | null;
|
|
33
|
+
id: string;
|
|
34
|
+
meta: Record<string, unknown>;
|
|
35
|
+
updated_at: number;
|
|
36
|
+
}
|
|
37
|
+
export interface FileUploadResponse extends FileModelResponse {
|
|
38
|
+
status?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface FileProcessStatus {
|
|
41
|
+
error?: string;
|
|
42
|
+
status: "pending" | "processing" | "completed" | "failed";
|
|
43
|
+
}
|
|
44
|
+
export interface FileContentResponse {
|
|
45
|
+
content: string;
|
|
46
|
+
}
|
|
47
|
+
export interface AccessControl {
|
|
48
|
+
read?: {
|
|
49
|
+
group_ids?: string[];
|
|
50
|
+
user_ids?: string[];
|
|
51
|
+
};
|
|
52
|
+
write?: {
|
|
53
|
+
group_ids?: string[];
|
|
54
|
+
user_ids?: string[];
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export interface UserResponse {
|
|
58
|
+
email: string;
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
profile_image_url?: string;
|
|
62
|
+
role: string;
|
|
63
|
+
}
|
|
64
|
+
export interface KnowledgeModel {
|
|
65
|
+
access_control?: AccessControl | null;
|
|
66
|
+
created_at: number;
|
|
67
|
+
description: string;
|
|
68
|
+
id: string;
|
|
69
|
+
meta?: Record<string, unknown> | null;
|
|
70
|
+
name: string;
|
|
71
|
+
updated_at: number;
|
|
72
|
+
user_id: string;
|
|
73
|
+
}
|
|
74
|
+
export interface KnowledgeUserModel extends KnowledgeModel {
|
|
75
|
+
user?: UserResponse | null;
|
|
76
|
+
}
|
|
77
|
+
export interface KnowledgeResponse extends KnowledgeModel {
|
|
78
|
+
files?: FileMetadataResponse[] | null;
|
|
79
|
+
}
|
|
80
|
+
export interface KnowledgeUserResponse extends KnowledgeUserModel {
|
|
81
|
+
files?: FileMetadataResponse[] | null;
|
|
82
|
+
}
|
|
83
|
+
export interface KnowledgeFilesResponse extends KnowledgeResponse {
|
|
84
|
+
files: FileMetadataResponse[];
|
|
85
|
+
warnings?: {
|
|
86
|
+
errors: string[];
|
|
87
|
+
message: string;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
export interface KnowledgeForm {
|
|
91
|
+
access_control?: AccessControl | null;
|
|
92
|
+
description: string;
|
|
93
|
+
name: string;
|
|
94
|
+
}
|
|
95
|
+
export interface KnowledgeFileIdForm {
|
|
96
|
+
file_id: string;
|
|
97
|
+
}
|
|
98
|
+
export interface ErrorResponse {
|
|
99
|
+
detail: string;
|
|
100
|
+
}
|
|
101
|
+
export interface MessageResponse {
|
|
102
|
+
message: string;
|
|
103
|
+
}
|
|
104
|
+
export interface ApiConfig {
|
|
105
|
+
apiKey: string;
|
|
106
|
+
baseUrl: string;
|
|
107
|
+
}
|
|
108
|
+
export declare class FilesApi {
|
|
109
|
+
private readonly config;
|
|
110
|
+
constructor(config: ApiConfig);
|
|
111
|
+
private get headers();
|
|
112
|
+
private get jsonHeaders();
|
|
113
|
+
private handleResponse;
|
|
114
|
+
upload(file: Blob | ArrayBuffer | Uint8Array, filename: string, options?: {
|
|
115
|
+
metadata?: Record<string, unknown>;
|
|
116
|
+
process?: boolean;
|
|
117
|
+
processInBackground?: boolean;
|
|
118
|
+
}): Promise<FileUploadResponse>;
|
|
119
|
+
list(includeContent?: boolean): Promise<FileModelResponse[]>;
|
|
120
|
+
search(pattern: string, includeContent?: boolean): Promise<FileModelResponse[]>;
|
|
121
|
+
deleteAll(): Promise<MessageResponse>;
|
|
122
|
+
getById(id: string): Promise<FileModel>;
|
|
123
|
+
getProcessStatus(id: string): Promise<FileProcessStatus>;
|
|
124
|
+
waitForProcessing(id: string, options?: {
|
|
125
|
+
intervalMs?: number;
|
|
126
|
+
maxAttempts?: number;
|
|
127
|
+
}): Promise<FileProcessStatus>;
|
|
128
|
+
getDataContent(id: string): Promise<FileContentResponse>;
|
|
129
|
+
updateDataContent(id: string, content: string): Promise<FileContentResponse>;
|
|
130
|
+
getContent(id: string, asAttachment?: boolean): Promise<Response>;
|
|
131
|
+
getContentAsText(id: string): Promise<string>;
|
|
132
|
+
delete(id: string): Promise<MessageResponse>;
|
|
133
|
+
}
|
|
134
|
+
export declare class KnowledgeApi {
|
|
135
|
+
private readonly config;
|
|
136
|
+
constructor(config: ApiConfig);
|
|
137
|
+
private get headers();
|
|
138
|
+
private get jsonHeaders();
|
|
139
|
+
private handleResponse;
|
|
140
|
+
list(): Promise<KnowledgeUserResponse[]>;
|
|
141
|
+
listWritable(): Promise<KnowledgeUserResponse[]>;
|
|
142
|
+
create(form: KnowledgeForm): Promise<KnowledgeResponse>;
|
|
143
|
+
reindex(): Promise<boolean>;
|
|
144
|
+
getById(id: string): Promise<KnowledgeFilesResponse>;
|
|
145
|
+
update(id: string, form: KnowledgeForm): Promise<KnowledgeFilesResponse>;
|
|
146
|
+
addFile(knowledgeId: string, fileId: string): Promise<KnowledgeFilesResponse>;
|
|
147
|
+
updateFile(knowledgeId: string, fileId: string): Promise<KnowledgeFilesResponse>;
|
|
148
|
+
removeFile(knowledgeId: string, fileId: string, deleteFile?: boolean): Promise<KnowledgeFilesResponse>;
|
|
149
|
+
delete(id: string): Promise<boolean>;
|
|
150
|
+
reset(id: string): Promise<KnowledgeResponse>;
|
|
151
|
+
addFilesBatch(knowledgeId: string, fileIds: string[]): Promise<KnowledgeFilesResponse>;
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/api.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,QAAQ;IACvB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,IAAI,CAAC,EAA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ACV,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,sBAAsB,CAAC;IAY5B,OAAO,CACX,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,sBAAsB,CAAC;IAY5B,UAAU,CACd,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,sBAAsB,CAAC;IAY5B,UAAU,CACd,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,UAAU,UAAO,GAChB,OAAO,CAAC,sBAAsB,CAAC;IAa5B,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAWpC,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAW7C,aAAa,CACjB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,sBAAsB,CAAC;CAWnC"}
|
|
@@ -5,40 +5,4 @@ export interface SharedConfig {
|
|
|
5
5
|
webUiUrl: string;
|
|
6
6
|
}
|
|
7
7
|
export declare function getConfigFromEnv(): SharedConfig;
|
|
8
|
-
export interface KnowledgeMeta {
|
|
9
|
-
collection_name: string;
|
|
10
|
-
content_type: string;
|
|
11
|
-
data: Record<string, unknown>;
|
|
12
|
-
name: string;
|
|
13
|
-
size: number;
|
|
14
|
-
}
|
|
15
|
-
export interface KnowledgeResponse {
|
|
16
|
-
files: {
|
|
17
|
-
id: string;
|
|
18
|
-
meta: KnowledgeMeta;
|
|
19
|
-
}[];
|
|
20
|
-
}
|
|
21
|
-
export interface ErrorResponse {
|
|
22
|
-
detail: string;
|
|
23
|
-
}
|
|
24
|
-
export declare class KnowledgeApi {
|
|
25
|
-
private readonly config;
|
|
26
|
-
private knowledgeCache;
|
|
27
|
-
constructor(config: SharedConfig);
|
|
28
|
-
get headers(): {
|
|
29
|
-
Authorization: string;
|
|
30
|
-
};
|
|
31
|
-
listKnowledgeFiles(): Promise<KnowledgeResponse>;
|
|
32
|
-
downloadFile(fileId: string): Promise<string | null>;
|
|
33
|
-
removeKnowledgeFile(id: string): Promise<any>;
|
|
34
|
-
deleteFile(id: string): Promise<any>;
|
|
35
|
-
uploadFile(fileBuffer: Buffer, name: string): Promise<{
|
|
36
|
-
detail?: string;
|
|
37
|
-
filename?: string;
|
|
38
|
-
id?: string;
|
|
39
|
-
}>;
|
|
40
|
-
associateFile(fileId: string): Promise<{
|
|
41
|
-
name?: string;
|
|
42
|
-
}>;
|
|
43
|
-
}
|
|
44
8
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/common.ts"],"names":[],"mappings":"AAQA,wBAAgB,OAAO,SAQtB;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,gBAAgB,IAAI,YAAY,CAa/C
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/common.ts"],"names":[],"mappings":"AAQA,wBAAgB,OAAO,SAQtB;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,gBAAgB,IAAI,YAAY,CAa/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-knowledge.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/download-knowledge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"download-knowledge.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/download-knowledge.ts"],"names":[],"mappings":"AAUA,wBAAgB,2BAA2B,SAoC1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-knowledge.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/generate-knowledge.ts"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"generate-knowledge.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/generate-knowledge.ts"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAA;AA6/BjD;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAG1E;AAED,wBAAgB,2BAA2B,SA8B1C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SharedConfig } from "./common";
|
|
2
|
+
export interface KnowledgeCleanerConfig extends SharedConfig {
|
|
3
|
+
}
|
|
4
|
+
export declare class KnowledgeCleaner {
|
|
5
|
+
private readonly filesApi;
|
|
6
|
+
private readonly knowledgeApi;
|
|
7
|
+
constructor(config: KnowledgeCleanerConfig);
|
|
8
|
+
cleanUpOrphanedFiles(): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=knowledge-cleaner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-cleaner.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/knowledge-cleaner.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,UAAU,CAAA;AAE1C,MAAM,WAAW,sBAAuB,SAAQ,YAAY;CAAG;AAE/D,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAc;gBAE/B,MAAM,EAAE,sBAAsB;IASpC,oBAAoB;CAa3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-knowledge.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/upload-knowledge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"upload-knowledge.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/upload-knowledge.ts"],"names":[],"mappings":"AAiTA,wBAAgB,yBAAyB,SA0GxC"}
|