@wildix/wim-knowledge-base-client 0.0.46 → 0.0.48
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-cjs/protocols/Aws_restJson1.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +4 -0
- package/dist-types/commands/CreateDocumentCommand.d.ts +0 -2
- package/dist-types/commands/GetDocumentCommand.d.ts +0 -2
- package/dist-types/commands/GetSyncLogsCommand.d.ts +2 -0
- package/dist-types/commands/ListDocumentsCommand.d.ts +0 -2
- package/dist-types/commands/UpdateDocumentCommand.d.ts +0 -2
- package/dist-types/models/models_0.d.ts +24 -24
- package/package.json +1 -1
|
@@ -298,6 +298,8 @@ const se_GetSyncLogsCommand = async (input, context) => {
|
|
|
298
298
|
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
299
299
|
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
300
300
|
[_s]: [, input[_s]],
|
|
301
|
+
[_lL]: [, input[_lL]],
|
|
302
|
+
[_se]: [, input[_se]],
|
|
301
303
|
});
|
|
302
304
|
let body;
|
|
303
305
|
b.m("GET")
|
|
@@ -1223,10 +1225,12 @@ const _cI = "companyId";
|
|
|
1223
1225
|
const _dT = "documentType";
|
|
1224
1226
|
const _eSI = "externalSessionId";
|
|
1225
1227
|
const _l = "limit";
|
|
1228
|
+
const _lL = "logLevel";
|
|
1226
1229
|
const _o = "offset";
|
|
1227
1230
|
const _s = "sort";
|
|
1228
1231
|
const _sT = "syncType";
|
|
1229
1232
|
const _sU = "searchUser";
|
|
1233
|
+
const _se = "search";
|
|
1230
1234
|
const _wC = "withContent";
|
|
1231
1235
|
const _wCi = "withChunks";
|
|
1232
1236
|
const _xesi = "x-external-session-id";
|
|
@@ -279,6 +279,8 @@ export const se_GetSyncLogsCommand = async (input, context) => {
|
|
|
279
279
|
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
280
280
|
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
281
281
|
[_s]: [, input[_s]],
|
|
282
|
+
[_lL]: [, input[_lL]],
|
|
283
|
+
[_se]: [, input[_se]],
|
|
282
284
|
});
|
|
283
285
|
let body;
|
|
284
286
|
b.m("GET")
|
|
@@ -1163,10 +1165,12 @@ const _cI = "companyId";
|
|
|
1163
1165
|
const _dT = "documentType";
|
|
1164
1166
|
const _eSI = "externalSessionId";
|
|
1165
1167
|
const _l = "limit";
|
|
1168
|
+
const _lL = "logLevel";
|
|
1166
1169
|
const _o = "offset";
|
|
1167
1170
|
const _s = "sort";
|
|
1168
1171
|
const _sT = "syncType";
|
|
1169
1172
|
const _sU = "searchUser";
|
|
1173
|
+
const _se = "search";
|
|
1170
1174
|
const _wC = "withContent";
|
|
1171
1175
|
const _wCi = "withChunks";
|
|
1172
1176
|
const _xesi = "x-external-session-id";
|
|
@@ -58,8 +58,6 @@ declare const CreateDocumentCommand_base: {
|
|
|
58
58
|
* // id: "STRING_VALUE", // required
|
|
59
59
|
* // companyId: "STRING_VALUE", // required
|
|
60
60
|
* // dataSourceId: "STRING_VALUE", // required
|
|
61
|
-
* // s3OriginalKey: "STRING_VALUE",
|
|
62
|
-
* // s3MarkdownKey: "STRING_VALUE",
|
|
63
61
|
* // createdAt: "STRING_VALUE", // required
|
|
64
62
|
* // updatedAt: "STRING_VALUE", // required
|
|
65
63
|
* // status: "draft" || "pending" || "processing" || "completed" || "failed", // required
|
|
@@ -54,8 +54,6 @@ declare const GetDocumentCommand_base: {
|
|
|
54
54
|
* // id: "STRING_VALUE", // required
|
|
55
55
|
* // companyId: "STRING_VALUE", // required
|
|
56
56
|
* // dataSourceId: "STRING_VALUE", // required
|
|
57
|
-
* // s3OriginalKey: "STRING_VALUE",
|
|
58
|
-
* // s3MarkdownKey: "STRING_VALUE",
|
|
59
57
|
* // createdAt: "STRING_VALUE", // required
|
|
60
58
|
* // updatedAt: "STRING_VALUE", // required
|
|
61
59
|
* // status: "draft" || "pending" || "processing" || "completed" || "failed", // required
|
|
@@ -40,6 +40,8 @@ declare const GetSyncLogsCommand_base: {
|
|
|
40
40
|
* offset: Number("int"),
|
|
41
41
|
* sort: "STRING_VALUE",
|
|
42
42
|
* dataSourceId: "STRING_VALUE", // required
|
|
43
|
+
* logLevel: "debug" || "info" || "warn" || "error",
|
|
44
|
+
* search: "STRING_VALUE",
|
|
43
45
|
* };
|
|
44
46
|
* const command = new GetSyncLogsCommand(input);
|
|
45
47
|
* const response = await client.send(command);
|
|
@@ -54,8 +54,6 @@ declare const ListDocumentsCommand_base: {
|
|
|
54
54
|
* // id: "STRING_VALUE", // required
|
|
55
55
|
* // companyId: "STRING_VALUE", // required
|
|
56
56
|
* // dataSourceId: "STRING_VALUE", // required
|
|
57
|
-
* // s3OriginalKey: "STRING_VALUE",
|
|
58
|
-
* // s3MarkdownKey: "STRING_VALUE",
|
|
59
57
|
* // createdAt: "STRING_VALUE", // required
|
|
60
58
|
* // updatedAt: "STRING_VALUE", // required
|
|
61
59
|
* // status: "draft" || "pending" || "processing" || "completed" || "failed", // required
|
|
@@ -58,8 +58,6 @@ declare const UpdateDocumentCommand_base: {
|
|
|
58
58
|
* // id: "STRING_VALUE", // required
|
|
59
59
|
* // companyId: "STRING_VALUE", // required
|
|
60
60
|
* // dataSourceId: "STRING_VALUE", // required
|
|
61
|
-
* // s3OriginalKey: "STRING_VALUE",
|
|
62
|
-
* // s3MarkdownKey: "STRING_VALUE",
|
|
63
61
|
* // createdAt: "STRING_VALUE", // required
|
|
64
62
|
* // updatedAt: "STRING_VALUE", // required
|
|
65
63
|
* // status: "draft" || "pending" || "processing" || "completed" || "failed", // required
|
|
@@ -629,16 +629,6 @@ export interface DocumentItem {
|
|
|
629
629
|
* @public
|
|
630
630
|
*/
|
|
631
631
|
dataSourceId: string;
|
|
632
|
-
/**
|
|
633
|
-
* S3 object key for the original file if stored in cloud storage
|
|
634
|
-
* @public
|
|
635
|
-
*/
|
|
636
|
-
s3OriginalKey?: string | undefined;
|
|
637
|
-
/**
|
|
638
|
-
* S3 object key for the markdown-converted version of the document if available
|
|
639
|
-
* @public
|
|
640
|
-
*/
|
|
641
|
-
s3MarkdownKey?: string | undefined;
|
|
642
632
|
/**
|
|
643
633
|
* Timestamp when the document was created (ISO 8601 format). Example: 2021-01-01T00:00:00Z
|
|
644
634
|
* @public
|
|
@@ -1218,6 +1208,20 @@ export interface GetKnowledgeBaseInput {
|
|
|
1218
1208
|
export interface GetKnowledgeBaseOutput {
|
|
1219
1209
|
knowledgeBase: KnowledgeBaseItem;
|
|
1220
1210
|
}
|
|
1211
|
+
/**
|
|
1212
|
+
* @public
|
|
1213
|
+
* @enum
|
|
1214
|
+
*/
|
|
1215
|
+
export declare const SyncLogLevel: {
|
|
1216
|
+
readonly DEBUG: "debug";
|
|
1217
|
+
readonly ERROR: "error";
|
|
1218
|
+
readonly INFO: "info";
|
|
1219
|
+
readonly WARN: "warn";
|
|
1220
|
+
};
|
|
1221
|
+
/**
|
|
1222
|
+
* @public
|
|
1223
|
+
*/
|
|
1224
|
+
export type SyncLogLevel = typeof SyncLogLevel[keyof typeof SyncLogLevel];
|
|
1221
1225
|
/**
|
|
1222
1226
|
* @public
|
|
1223
1227
|
*/
|
|
@@ -1239,21 +1243,17 @@ export interface GetSyncLogsInput {
|
|
|
1239
1243
|
* @public
|
|
1240
1244
|
*/
|
|
1241
1245
|
dataSourceId: string;
|
|
1246
|
+
/**
|
|
1247
|
+
* The log level to filter the sync logs by. Possible values: 'debug', 'info', 'warn', 'error'.
|
|
1248
|
+
* @public
|
|
1249
|
+
*/
|
|
1250
|
+
logLevel?: SyncLogLevel | undefined;
|
|
1251
|
+
/**
|
|
1252
|
+
* The search query string for filtering the history results.
|
|
1253
|
+
* @public
|
|
1254
|
+
*/
|
|
1255
|
+
search?: string | undefined;
|
|
1242
1256
|
}
|
|
1243
|
-
/**
|
|
1244
|
-
* @public
|
|
1245
|
-
* @enum
|
|
1246
|
-
*/
|
|
1247
|
-
export declare const SyncLogLevel: {
|
|
1248
|
-
readonly DEBUG: "debug";
|
|
1249
|
-
readonly ERROR: "error";
|
|
1250
|
-
readonly INFO: "info";
|
|
1251
|
-
readonly WARN: "warn";
|
|
1252
|
-
};
|
|
1253
|
-
/**
|
|
1254
|
-
* @public
|
|
1255
|
-
*/
|
|
1256
|
-
export type SyncLogLevel = typeof SyncLogLevel[keyof typeof SyncLogLevel];
|
|
1257
1257
|
/**
|
|
1258
1258
|
* @public
|
|
1259
1259
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-knowledge-base-client",
|
|
3
3
|
"description": "@wildix/wim-knowledge-base-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.48",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|