@wildix/wim-knowledge-base-client 0.0.30 → 0.0.32

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.
@@ -4,6 +4,7 @@ exports.KnowledgeBase = void 0;
4
4
  const KnowledgeBaseClient_1 = require("./KnowledgeBaseClient");
5
5
  const CleanDataSourceCommand_1 = require("./commands/CleanDataSourceCommand");
6
6
  const CloneDataSourceCommand_1 = require("./commands/CloneDataSourceCommand");
7
+ const ConfigureDataSourceCommand_1 = require("./commands/ConfigureDataSourceCommand");
7
8
  const CreateDataSourceCommand_1 = require("./commands/CreateDataSourceCommand");
8
9
  const CreateDocumentCommand_1 = require("./commands/CreateDocumentCommand");
9
10
  const CreateKnowledgeBaseCommand_1 = require("./commands/CreateKnowledgeBaseCommand");
@@ -32,6 +33,7 @@ const smithy_client_1 = require("@smithy/smithy-client");
32
33
  const commands = {
33
34
  CleanDataSourceCommand: CleanDataSourceCommand_1.CleanDataSourceCommand,
34
35
  CloneDataSourceCommand: CloneDataSourceCommand_1.CloneDataSourceCommand,
36
+ ConfigureDataSourceCommand: ConfigureDataSourceCommand_1.ConfigureDataSourceCommand,
35
37
  CreateDataSourceCommand: CreateDataSourceCommand_1.CreateDataSourceCommand,
36
38
  CreateDocumentCommand: CreateDocumentCommand_1.CreateDocumentCommand,
37
39
  CreateKnowledgeBaseCommand: CreateKnowledgeBaseCommand_1.CreateKnowledgeBaseCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConfigureDataSourceCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class ConfigureDataSourceCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "ConfigureDataSource", {})
15
+ .n("KnowledgeBaseClient", "ConfigureDataSourceCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_ConfigureDataSourceCommand)
18
+ .de(Aws_restJson1_1.de_ConfigureDataSourceCommand)
19
+ .build() {
20
+ }
21
+ exports.ConfigureDataSourceCommand = ConfigureDataSourceCommand;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./CleanDataSourceCommand"), exports);
5
5
  tslib_1.__exportStar(require("./CloneDataSourceCommand"), exports);
6
+ tslib_1.__exportStar(require("./ConfigureDataSourceCommand"), exports);
6
7
  tslib_1.__exportStar(require("./CreateDataSourceCommand"), exports);
7
8
  tslib_1.__exportStar(require("./CreateDocumentCommand"), exports);
8
9
  tslib_1.__exportStar(require("./CreateKnowledgeBaseCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchStrategy = exports.SyncLogLevel = exports.DownloadDocumentType = exports.DocumentStatus = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.DataSourceConfig = exports.ProxyMethod = exports.DataSourceType = exports.KnowledgeBaseNotFoundException = exports.DocumentNotFoundException = exports.DataSourceNotFoundException = exports.UnauthorizedException = exports.ForbiddenException = exports.ValidationException = void 0;
3
+ exports.SearchStrategy = exports.SyncLogLevel = exports.DownloadDocumentType = exports.DocumentStatus = exports.DataSourceType = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.ScheduleConfiguration = exports.DataSourceConfig = exports.ProxyMethod = exports.KnowledgeBaseNotFoundException = exports.DocumentNotFoundException = exports.DataSourceNotFoundException = exports.UnauthorizedException = exports.ForbiddenException = exports.ValidationException = void 0;
4
4
  const KnowledgeBaseServiceException_1 = require("./KnowledgeBaseServiceException");
5
5
  class ValidationException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
6
6
  name = "ValidationException";
@@ -80,12 +80,6 @@ class KnowledgeBaseNotFoundException extends KnowledgeBaseServiceException_1.Kno
80
80
  }
81
81
  }
82
82
  exports.KnowledgeBaseNotFoundException = KnowledgeBaseNotFoundException;
83
- exports.DataSourceType = {
84
- CONFLUENCE: "confluence",
85
- FILES: "files",
86
- GDRIVE: "gdrive",
87
- PROXY: "proxy",
88
- };
89
83
  exports.ProxyMethod = {
90
84
  GET: "GET",
91
85
  POST: "POST",
@@ -104,6 +98,12 @@ var DataSourceConfig;
104
98
  return visitor._(value.$unknown[0], value.$unknown[1]);
105
99
  };
106
100
  })(DataSourceConfig || (exports.DataSourceConfig = DataSourceConfig = {}));
101
+ exports.ScheduleConfiguration = {
102
+ EVERY_DAY: "EVERY_DAY",
103
+ EVERY_SIX_HOURS: "EVERY_SIX_HOURS",
104
+ EVERY_TWELVE_HOURS: "EVERY_TWELVE_HOURS",
105
+ EVERY_WEEK: "EVERY_WEEK",
106
+ };
107
107
  exports.SyncDataSourceMode = {
108
108
  FULL: "full",
109
109
  INCREMENTAL: "incremental",
@@ -115,6 +115,12 @@ exports.SyncDataSourceStatus = {
115
115
  RUNNING: "running",
116
116
  SUCCESS: "success",
117
117
  };
118
+ exports.DataSourceType = {
119
+ CONFLUENCE: "confluence",
120
+ FILES: "files",
121
+ GDRIVE: "gdrive",
122
+ PROXY: "proxy",
123
+ };
118
124
  exports.DocumentStatus = {
119
125
  COMPLETED: "completed",
120
126
  DRAFT: "draft",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdateDataSourceCommand = exports.de_StopSyncDataSourceCommand = exports.de_StartSyncDataSourceCommand = exports.de_SearchKnowledgeBaseCommand = exports.de_QueryKnowledgeBaseCommand = exports.de_ListKnowledgeBasesCommand = exports.de_ListDocumentsCommand = exports.de_ListDataSourcesCommand = exports.de_GetSyncStatusCommand = exports.de_GetSyncLogsCommand = exports.de_GetKnowledgeBaseCommand = exports.de_GetDocumentPresignedUploadUrlCommand = exports.de_GetDocumentPresignedDownloadUrlCommand = exports.de_GetDocumentCommand = exports.de_GetDataSourceCommand = exports.de_DescribeDataSourceCommand = exports.de_DeleteKnowledgeBaseCommand = exports.de_DeleteDocumentCommand = exports.de_DeleteDataSourceCommand = exports.de_CreateKnowledgeBaseCommand = exports.de_CreateDocumentCommand = exports.de_CreateDataSourceCommand = exports.de_CloneDataSourceCommand = exports.de_CleanDataSourceCommand = exports.se_UpdateKnowledgeBaseCommand = exports.se_UpdateDocumentCommand = exports.se_UpdateDataSourceCommand = exports.se_StopSyncDataSourceCommand = exports.se_StartSyncDataSourceCommand = exports.se_SearchKnowledgeBaseCommand = exports.se_QueryKnowledgeBaseCommand = exports.se_ListKnowledgeBasesCommand = exports.se_ListDocumentsCommand = exports.se_ListDataSourcesCommand = exports.se_GetSyncStatusCommand = exports.se_GetSyncLogsCommand = exports.se_GetKnowledgeBaseCommand = exports.se_GetDocumentPresignedUploadUrlCommand = exports.se_GetDocumentPresignedDownloadUrlCommand = exports.se_GetDocumentCommand = exports.se_GetDataSourceCommand = exports.se_DescribeDataSourceCommand = exports.se_DeleteKnowledgeBaseCommand = exports.se_DeleteDocumentCommand = exports.se_DeleteDataSourceCommand = exports.se_CreateKnowledgeBaseCommand = exports.se_CreateDocumentCommand = exports.se_CreateDataSourceCommand = exports.se_CloneDataSourceCommand = exports.se_CleanDataSourceCommand = void 0;
4
- exports.de_UpdateKnowledgeBaseCommand = exports.de_UpdateDocumentCommand = void 0;
3
+ exports.de_StartSyncDataSourceCommand = exports.de_SearchKnowledgeBaseCommand = exports.de_QueryKnowledgeBaseCommand = exports.de_ListKnowledgeBasesCommand = exports.de_ListDocumentsCommand = exports.de_ListDataSourcesCommand = exports.de_GetSyncStatusCommand = exports.de_GetSyncLogsCommand = exports.de_GetKnowledgeBaseCommand = exports.de_GetDocumentPresignedUploadUrlCommand = exports.de_GetDocumentPresignedDownloadUrlCommand = exports.de_GetDocumentCommand = exports.de_GetDataSourceCommand = exports.de_DescribeDataSourceCommand = exports.de_DeleteKnowledgeBaseCommand = exports.de_DeleteDocumentCommand = exports.de_DeleteDataSourceCommand = exports.de_CreateKnowledgeBaseCommand = exports.de_CreateDocumentCommand = exports.de_CreateDataSourceCommand = exports.de_ConfigureDataSourceCommand = exports.de_CloneDataSourceCommand = exports.de_CleanDataSourceCommand = exports.se_UpdateKnowledgeBaseCommand = exports.se_UpdateDocumentCommand = exports.se_UpdateDataSourceCommand = exports.se_StopSyncDataSourceCommand = exports.se_StartSyncDataSourceCommand = exports.se_SearchKnowledgeBaseCommand = exports.se_QueryKnowledgeBaseCommand = exports.se_ListKnowledgeBasesCommand = exports.se_ListDocumentsCommand = exports.se_ListDataSourcesCommand = exports.se_GetSyncStatusCommand = exports.se_GetSyncLogsCommand = exports.se_GetKnowledgeBaseCommand = exports.se_GetDocumentPresignedUploadUrlCommand = exports.se_GetDocumentPresignedDownloadUrlCommand = exports.se_GetDocumentCommand = exports.se_GetDataSourceCommand = exports.se_DescribeDataSourceCommand = exports.se_DeleteKnowledgeBaseCommand = exports.se_DeleteDocumentCommand = exports.se_DeleteDataSourceCommand = exports.se_CreateKnowledgeBaseCommand = exports.se_CreateDocumentCommand = exports.se_CreateDataSourceCommand = exports.se_ConfigureDataSourceCommand = exports.se_CloneDataSourceCommand = exports.se_CleanDataSourceCommand = void 0;
4
+ exports.de_UpdateKnowledgeBaseCommand = exports.de_UpdateDocumentCommand = exports.de_UpdateDataSourceCommand = exports.de_StopSyncDataSourceCommand = void 0;
5
5
  const KnowledgeBaseServiceException_1 = require("../models/KnowledgeBaseServiceException");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const core_1 = require("@aws-sdk/core");
@@ -39,6 +39,28 @@ const se_CloneDataSourceCommand = async (input, context) => {
39
39
  return b.build();
40
40
  };
41
41
  exports.se_CloneDataSourceCommand = se_CloneDataSourceCommand;
42
+ const se_ConfigureDataSourceCommand = async (input, context) => {
43
+ const b = (0, core_2.requestBuilder)(input, context);
44
+ const headers = {
45
+ 'content-type': 'application/json',
46
+ };
47
+ b.bp("/api/v1/data-sources/{dataSourceId}/configure");
48
+ b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
49
+ const query = (0, smithy_client_1.map)({
50
+ [_c]: [, input[_cI]],
51
+ });
52
+ let body;
53
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
54
+ 'config': _ => se_DataSourceConfig(_, context),
55
+ 'syncSchedule': [],
56
+ }));
57
+ b.m("PUT")
58
+ .h(headers)
59
+ .q(query)
60
+ .b(body);
61
+ return b.build();
62
+ };
63
+ exports.se_ConfigureDataSourceCommand = se_ConfigureDataSourceCommand;
42
64
  const se_CreateDataSourceCommand = async (input, context) => {
43
65
  const b = (0, core_2.requestBuilder)(input, context);
44
66
  const headers = {
@@ -438,12 +460,8 @@ const se_UpdateDataSourceCommand = async (input, context) => {
438
460
  });
439
461
  let body;
440
462
  body = JSON.stringify((0, smithy_client_1.take)(input, {
441
- 'config': _ => se_DataSourceConfig(_, context),
442
463
  'description': [],
443
- 'enabled': [],
444
464
  'name': [],
445
- 'syncSchedule': [],
446
- 'type': [],
447
465
  }));
448
466
  b.m("PUT")
449
467
  .h(headers)
@@ -528,6 +546,21 @@ const de_CloneDataSourceCommand = async (output, context) => {
528
546
  return contents;
529
547
  };
530
548
  exports.de_CloneDataSourceCommand = de_CloneDataSourceCommand;
549
+ const de_ConfigureDataSourceCommand = async (output, context) => {
550
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
551
+ return de_CommandError(output, context);
552
+ }
553
+ const contents = (0, smithy_client_1.map)({
554
+ $metadata: deserializeMetadata(output),
555
+ });
556
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
557
+ const doc = (0, smithy_client_1.take)(data, {
558
+ 'dataSource': _ => de_DataSourceItem(_, context),
559
+ });
560
+ Object.assign(contents, doc);
561
+ return contents;
562
+ };
563
+ exports.de_ConfigureDataSourceCommand = de_ConfigureDataSourceCommand;
531
564
  const de_CreateDataSourceCommand = async (output, context) => {
532
565
  if (output.statusCode !== 201 && output.statusCode >= 300) {
533
566
  return de_CommandError(output, context);
@@ -1073,7 +1106,6 @@ const de_DataSourceItem = (output, context) => {
1073
1106
  'createdAt': smithy_client_1.expectString,
1074
1107
  'description': smithy_client_1.expectString,
1075
1108
  'documentsCount': smithy_client_1.expectInt32,
1076
- 'enabled': smithy_client_1.expectBoolean,
1077
1109
  'id': smithy_client_1.expectString,
1078
1110
  'lastSyncErrorMessage': smithy_client_1.expectString,
1079
1111
  'lastSyncMode': smithy_client_1.expectString,
@@ -1,6 +1,7 @@
1
1
  import { KnowledgeBaseClient, } from "./KnowledgeBaseClient";
2
2
  import { CleanDataSourceCommand, } from "./commands/CleanDataSourceCommand";
3
3
  import { CloneDataSourceCommand, } from "./commands/CloneDataSourceCommand";
4
+ import { ConfigureDataSourceCommand, } from "./commands/ConfigureDataSourceCommand";
4
5
  import { CreateDataSourceCommand, } from "./commands/CreateDataSourceCommand";
5
6
  import { CreateDocumentCommand, } from "./commands/CreateDocumentCommand";
6
7
  import { CreateKnowledgeBaseCommand, } from "./commands/CreateKnowledgeBaseCommand";
@@ -29,6 +30,7 @@ import { createAggregatedClient } from "@smithy/smithy-client";
29
30
  const commands = {
30
31
  CleanDataSourceCommand,
31
32
  CloneDataSourceCommand,
33
+ ConfigureDataSourceCommand,
32
34
  CreateDataSourceCommand,
33
35
  CreateDocumentCommand,
34
36
  CreateKnowledgeBaseCommand,
@@ -0,0 +1,17 @@
1
+ import { de_ConfigureDataSourceCommand, se_ConfigureDataSourceCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class ConfigureDataSourceCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "ConfigureDataSource", {})
12
+ .n("KnowledgeBaseClient", "ConfigureDataSourceCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ConfigureDataSourceCommand)
15
+ .de(de_ConfigureDataSourceCommand)
16
+ .build() {
17
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./CleanDataSourceCommand";
2
2
  export * from "./CloneDataSourceCommand";
3
+ export * from "./ConfigureDataSourceCommand";
3
4
  export * from "./CreateDataSourceCommand";
4
5
  export * from "./CreateDocumentCommand";
5
6
  export * from "./CreateKnowledgeBaseCommand";
@@ -71,12 +71,6 @@ export class KnowledgeBaseNotFoundException extends __BaseException {
71
71
  Object.setPrototypeOf(this, KnowledgeBaseNotFoundException.prototype);
72
72
  }
73
73
  }
74
- export const DataSourceType = {
75
- CONFLUENCE: "confluence",
76
- FILES: "files",
77
- GDRIVE: "gdrive",
78
- PROXY: "proxy",
79
- };
80
74
  export const ProxyMethod = {
81
75
  GET: "GET",
82
76
  POST: "POST",
@@ -95,6 +89,12 @@ export var DataSourceConfig;
95
89
  return visitor._(value.$unknown[0], value.$unknown[1]);
96
90
  };
97
91
  })(DataSourceConfig || (DataSourceConfig = {}));
92
+ export const ScheduleConfiguration = {
93
+ EVERY_DAY: "EVERY_DAY",
94
+ EVERY_SIX_HOURS: "EVERY_SIX_HOURS",
95
+ EVERY_TWELVE_HOURS: "EVERY_TWELVE_HOURS",
96
+ EVERY_WEEK: "EVERY_WEEK",
97
+ };
98
98
  export const SyncDataSourceMode = {
99
99
  FULL: "full",
100
100
  INCREMENTAL: "incremental",
@@ -106,6 +106,12 @@ export const SyncDataSourceStatus = {
106
106
  RUNNING: "running",
107
107
  SUCCESS: "success",
108
108
  };
109
+ export const DataSourceType = {
110
+ CONFLUENCE: "confluence",
111
+ FILES: "files",
112
+ GDRIVE: "gdrive",
113
+ PROXY: "proxy",
114
+ };
109
115
  export const DocumentStatus = {
110
116
  COMPLETED: "completed",
111
117
  DRAFT: "draft",
@@ -2,7 +2,7 @@ import { KnowledgeBaseServiceException as __BaseException } from "../models/Know
2
2
  import { DataSourceConfig, DataSourceNotFoundException, DocumentNotFoundException, ForbiddenException, KnowledgeBaseNotFoundException, UnauthorizedException, ValidationException, } from "../models/models_0";
3
3
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
4
4
  import { requestBuilder as rb } from "@smithy/core";
5
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
+ import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
6
6
  export const se_CleanDataSourceCommand = async (input, context) => {
7
7
  const b = rb(input, context);
8
8
  const headers = {};
@@ -33,6 +33,27 @@ export const se_CloneDataSourceCommand = async (input, context) => {
33
33
  .b(body);
34
34
  return b.build();
35
35
  };
36
+ export const se_ConfigureDataSourceCommand = async (input, context) => {
37
+ const b = rb(input, context);
38
+ const headers = {
39
+ 'content-type': 'application/json',
40
+ };
41
+ b.bp("/api/v1/data-sources/{dataSourceId}/configure");
42
+ b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
43
+ const query = map({
44
+ [_c]: [, input[_cI]],
45
+ });
46
+ let body;
47
+ body = JSON.stringify(take(input, {
48
+ 'config': _ => se_DataSourceConfig(_, context),
49
+ 'syncSchedule': [],
50
+ }));
51
+ b.m("PUT")
52
+ .h(headers)
53
+ .q(query)
54
+ .b(body);
55
+ return b.build();
56
+ };
36
57
  export const se_CreateDataSourceCommand = async (input, context) => {
37
58
  const b = rb(input, context);
38
59
  const headers = {
@@ -411,12 +432,8 @@ export const se_UpdateDataSourceCommand = async (input, context) => {
411
432
  });
412
433
  let body;
413
434
  body = JSON.stringify(take(input, {
414
- 'config': _ => se_DataSourceConfig(_, context),
415
435
  'description': [],
416
- 'enabled': [],
417
436
  'name': [],
418
- 'syncSchedule': [],
419
- 'type': [],
420
437
  }));
421
438
  b.m("PUT")
422
439
  .h(headers)
@@ -496,6 +513,20 @@ export const de_CloneDataSourceCommand = async (output, context) => {
496
513
  Object.assign(contents, doc);
497
514
  return contents;
498
515
  };
516
+ export const de_ConfigureDataSourceCommand = async (output, context) => {
517
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
518
+ return de_CommandError(output, context);
519
+ }
520
+ const contents = map({
521
+ $metadata: deserializeMetadata(output),
522
+ });
523
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
524
+ const doc = take(data, {
525
+ 'dataSource': _ => de_DataSourceItem(_, context),
526
+ });
527
+ Object.assign(contents, doc);
528
+ return contents;
529
+ };
499
530
  export const de_CreateDataSourceCommand = async (output, context) => {
500
531
  if (output.statusCode !== 201 && output.statusCode >= 300) {
501
532
  return de_CommandError(output, context);
@@ -1017,7 +1048,6 @@ const de_DataSourceItem = (output, context) => {
1017
1048
  'createdAt': __expectString,
1018
1049
  'description': __expectString,
1019
1050
  'documentsCount': __expectInt32,
1020
- 'enabled': __expectBoolean,
1021
1051
  'id': __expectString,
1022
1052
  'lastSyncErrorMessage': __expectString,
1023
1053
  'lastSyncMode': __expectString,
@@ -1,6 +1,7 @@
1
1
  import { KnowledgeBaseClient } from "./KnowledgeBaseClient";
2
2
  import { CleanDataSourceCommandInput, CleanDataSourceCommandOutput } from "./commands/CleanDataSourceCommand";
3
3
  import { CloneDataSourceCommandInput, CloneDataSourceCommandOutput } from "./commands/CloneDataSourceCommand";
4
+ import { ConfigureDataSourceCommandInput, ConfigureDataSourceCommandOutput } from "./commands/ConfigureDataSourceCommand";
4
5
  import { CreateDataSourceCommandInput, CreateDataSourceCommandOutput } from "./commands/CreateDataSourceCommand";
5
6
  import { CreateDocumentCommandInput, CreateDocumentCommandOutput } from "./commands/CreateDocumentCommand";
6
7
  import { CreateKnowledgeBaseCommandInput, CreateKnowledgeBaseCommandOutput } from "./commands/CreateKnowledgeBaseCommand";
@@ -39,6 +40,12 @@ export interface KnowledgeBase {
39
40
  cloneDataSource(args: CloneDataSourceCommandInput, options?: __HttpHandlerOptions): Promise<CloneDataSourceCommandOutput>;
40
41
  cloneDataSource(args: CloneDataSourceCommandInput, cb: (err: any, data?: CloneDataSourceCommandOutput) => void): void;
41
42
  cloneDataSource(args: CloneDataSourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CloneDataSourceCommandOutput) => void): void;
43
+ /**
44
+ * @see {@link ConfigureDataSourceCommand}
45
+ */
46
+ configureDataSource(args: ConfigureDataSourceCommandInput, options?: __HttpHandlerOptions): Promise<ConfigureDataSourceCommandOutput>;
47
+ configureDataSource(args: ConfigureDataSourceCommandInput, cb: (err: any, data?: ConfigureDataSourceCommandOutput) => void): void;
48
+ configureDataSource(args: ConfigureDataSourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ConfigureDataSourceCommandOutput) => void): void;
42
49
  /**
43
50
  * @see {@link CreateDataSourceCommand}
44
51
  */
@@ -1,5 +1,6 @@
1
1
  import { CleanDataSourceCommandInput, CleanDataSourceCommandOutput } from "./commands/CleanDataSourceCommand";
2
2
  import { CloneDataSourceCommandInput, CloneDataSourceCommandOutput } from "./commands/CloneDataSourceCommand";
3
+ import { ConfigureDataSourceCommandInput, ConfigureDataSourceCommandOutput } from "./commands/ConfigureDataSourceCommand";
3
4
  import { CreateDataSourceCommandInput, CreateDataSourceCommandOutput } from "./commands/CreateDataSourceCommand";
4
5
  import { CreateDocumentCommandInput, CreateDocumentCommandOutput } from "./commands/CreateDocumentCommand";
5
6
  import { CreateKnowledgeBaseCommandInput, CreateKnowledgeBaseCommandOutput } from "./commands/CreateKnowledgeBaseCommand";
@@ -35,11 +36,11 @@ export { __Client };
35
36
  /**
36
37
  * @public
37
38
  */
38
- export type ServiceInputTypes = CleanDataSourceCommandInput | CloneDataSourceCommandInput | CreateDataSourceCommandInput | CreateDocumentCommandInput | CreateKnowledgeBaseCommandInput | DeleteDataSourceCommandInput | DeleteDocumentCommandInput | DeleteKnowledgeBaseCommandInput | DescribeDataSourceCommandInput | GetDataSourceCommandInput | GetDocumentCommandInput | GetDocumentPresignedDownloadUrlCommandInput | GetDocumentPresignedUploadUrlCommandInput | GetKnowledgeBaseCommandInput | GetSyncLogsCommandInput | GetSyncStatusCommandInput | ListDataSourcesCommandInput | ListDocumentsCommandInput | ListKnowledgeBasesCommandInput | QueryKnowledgeBaseCommandInput | SearchKnowledgeBaseCommandInput | StartSyncDataSourceCommandInput | StopSyncDataSourceCommandInput | UpdateDataSourceCommandInput | UpdateDocumentCommandInput | UpdateKnowledgeBaseCommandInput;
39
+ export type ServiceInputTypes = CleanDataSourceCommandInput | CloneDataSourceCommandInput | ConfigureDataSourceCommandInput | CreateDataSourceCommandInput | CreateDocumentCommandInput | CreateKnowledgeBaseCommandInput | DeleteDataSourceCommandInput | DeleteDocumentCommandInput | DeleteKnowledgeBaseCommandInput | DescribeDataSourceCommandInput | GetDataSourceCommandInput | GetDocumentCommandInput | GetDocumentPresignedDownloadUrlCommandInput | GetDocumentPresignedUploadUrlCommandInput | GetKnowledgeBaseCommandInput | GetSyncLogsCommandInput | GetSyncStatusCommandInput | ListDataSourcesCommandInput | ListDocumentsCommandInput | ListKnowledgeBasesCommandInput | QueryKnowledgeBaseCommandInput | SearchKnowledgeBaseCommandInput | StartSyncDataSourceCommandInput | StopSyncDataSourceCommandInput | UpdateDataSourceCommandInput | UpdateDocumentCommandInput | UpdateKnowledgeBaseCommandInput;
39
40
  /**
40
41
  * @public
41
42
  */
42
- export type ServiceOutputTypes = CleanDataSourceCommandOutput | CloneDataSourceCommandOutput | CreateDataSourceCommandOutput | CreateDocumentCommandOutput | CreateKnowledgeBaseCommandOutput | DeleteDataSourceCommandOutput | DeleteDocumentCommandOutput | DeleteKnowledgeBaseCommandOutput | DescribeDataSourceCommandOutput | GetDataSourceCommandOutput | GetDocumentCommandOutput | GetDocumentPresignedDownloadUrlCommandOutput | GetDocumentPresignedUploadUrlCommandOutput | GetKnowledgeBaseCommandOutput | GetSyncLogsCommandOutput | GetSyncStatusCommandOutput | ListDataSourcesCommandOutput | ListDocumentsCommandOutput | ListKnowledgeBasesCommandOutput | QueryKnowledgeBaseCommandOutput | SearchKnowledgeBaseCommandOutput | StartSyncDataSourceCommandOutput | StopSyncDataSourceCommandOutput | UpdateDataSourceCommandOutput | UpdateDocumentCommandOutput | UpdateKnowledgeBaseCommandOutput;
43
+ export type ServiceOutputTypes = CleanDataSourceCommandOutput | CloneDataSourceCommandOutput | ConfigureDataSourceCommandOutput | CreateDataSourceCommandOutput | CreateDocumentCommandOutput | CreateKnowledgeBaseCommandOutput | DeleteDataSourceCommandOutput | DeleteDocumentCommandOutput | DeleteKnowledgeBaseCommandOutput | DescribeDataSourceCommandOutput | GetDataSourceCommandOutput | GetDocumentCommandOutput | GetDocumentPresignedDownloadUrlCommandOutput | GetDocumentPresignedUploadUrlCommandOutput | GetKnowledgeBaseCommandOutput | GetSyncLogsCommandOutput | GetSyncStatusCommandOutput | ListDataSourcesCommandOutput | ListDocumentsCommandOutput | ListKnowledgeBasesCommandOutput | QueryKnowledgeBaseCommandOutput | SearchKnowledgeBaseCommandOutput | StartSyncDataSourceCommandOutput | StopSyncDataSourceCommandOutput | UpdateDataSourceCommandOutput | UpdateDocumentCommandOutput | UpdateKnowledgeBaseCommandOutput;
43
44
  /**
44
45
  * @public
45
46
  */
@@ -0,0 +1,194 @@
1
+ import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
2
+ import { ConfigureDataSourceInput, ConfigureDataSourceOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ConfigureDataSourceCommand}.
14
+ */
15
+ export interface ConfigureDataSourceCommandInput extends ConfigureDataSourceInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ConfigureDataSourceCommand}.
21
+ */
22
+ export interface ConfigureDataSourceCommandOutput extends ConfigureDataSourceOutput, __MetadataBearer {
23
+ }
24
+ declare const ConfigureDataSourceCommand_base: {
25
+ new (input: ConfigureDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<ConfigureDataSourceCommandInput, ConfigureDataSourceCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ConfigureDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<ConfigureDataSourceCommandInput, ConfigureDataSourceCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Configure a data source by its ID
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { KnowledgeBaseClient, ConfigureDataSourceCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
35
+ * // const { KnowledgeBaseClient, ConfigureDataSourceCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
36
+ * const client = new KnowledgeBaseClient(config);
37
+ * const input = { // ConfigureDataSourceInput
38
+ * config: { // DataSourceConfig Union: only one key present
39
+ * confluence: { // ConfluenceConfig
40
+ * baseUrl: "STRING_VALUE", // required
41
+ * username: "STRING_VALUE", // required
42
+ * apiKey: "STRING_VALUE", // required
43
+ * spaceId: "STRING_VALUE", // required
44
+ * pages: { // ConfluencePagesConfig
45
+ * enabled: [ // StringList // required
46
+ * "STRING_VALUE",
47
+ * ],
48
+ * disabled: [ // required
49
+ * "STRING_VALUE",
50
+ * ],
51
+ * },
52
+ * },
53
+ * gdrive: { // GDriveConfig
54
+ * nangoConnectionId: "STRING_VALUE", // required
55
+ * folders: { // GDriveFoldersConfig
56
+ * enabled: [ // GDriveFolderIds // required
57
+ * "STRING_VALUE",
58
+ * ],
59
+ * disabled: [ // required
60
+ * "STRING_VALUE",
61
+ * ],
62
+ * },
63
+ * },
64
+ * files: { // UserFilesConfig
65
+ * allowedExtensions: [ // required
66
+ * "STRING_VALUE",
67
+ * ],
68
+ * },
69
+ * proxy: { // ProxyConfig
70
+ * url: "STRING_VALUE", // required
71
+ * method: "GET" || "POST",
72
+ * token: "STRING_VALUE",
73
+ * username: "STRING_VALUE",
74
+ * password: "STRING_VALUE",
75
+ * headers: [
76
+ * "STRING_VALUE",
77
+ * ],
78
+ * body: "DOCUMENT_VALUE",
79
+ * timeoutMs: Number("int"),
80
+ * responseMapping: [
81
+ * "STRING_VALUE",
82
+ * ],
83
+ * },
84
+ * },
85
+ * syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
86
+ * companyId: "STRING_VALUE",
87
+ * dataSourceId: "STRING_VALUE", // required
88
+ * };
89
+ * const command = new ConfigureDataSourceCommand(input);
90
+ * const response = await client.send(command);
91
+ * // { // ConfigureDataSourceOutput
92
+ * // dataSource: { // DataSourceItem
93
+ * // name: "STRING_VALUE", // required
94
+ * // description: "STRING_VALUE",
95
+ * // type: "files" || "confluence" || "gdrive" || "proxy", // required
96
+ * // config: { // DataSourceConfig Union: only one key present
97
+ * // confluence: { // ConfluenceConfig
98
+ * // baseUrl: "STRING_VALUE", // required
99
+ * // username: "STRING_VALUE", // required
100
+ * // apiKey: "STRING_VALUE", // required
101
+ * // spaceId: "STRING_VALUE", // required
102
+ * // pages: { // ConfluencePagesConfig
103
+ * // enabled: [ // StringList // required
104
+ * // "STRING_VALUE",
105
+ * // ],
106
+ * // disabled: [ // required
107
+ * // "STRING_VALUE",
108
+ * // ],
109
+ * // },
110
+ * // },
111
+ * // gdrive: { // GDriveConfig
112
+ * // nangoConnectionId: "STRING_VALUE", // required
113
+ * // folders: { // GDriveFoldersConfig
114
+ * // enabled: [ // GDriveFolderIds // required
115
+ * // "STRING_VALUE",
116
+ * // ],
117
+ * // disabled: [ // required
118
+ * // "STRING_VALUE",
119
+ * // ],
120
+ * // },
121
+ * // },
122
+ * // files: { // UserFilesConfig
123
+ * // allowedExtensions: [ // required
124
+ * // "STRING_VALUE",
125
+ * // ],
126
+ * // },
127
+ * // proxy: { // ProxyConfig
128
+ * // url: "STRING_VALUE", // required
129
+ * // method: "GET" || "POST",
130
+ * // token: "STRING_VALUE",
131
+ * // username: "STRING_VALUE",
132
+ * // password: "STRING_VALUE",
133
+ * // headers: [
134
+ * // "STRING_VALUE",
135
+ * // ],
136
+ * // body: "DOCUMENT_VALUE",
137
+ * // timeoutMs: Number("int"),
138
+ * // responseMapping: [
139
+ * // "STRING_VALUE",
140
+ * // ],
141
+ * // },
142
+ * // },
143
+ * // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
144
+ * // id: "STRING_VALUE", // required
145
+ * // companyId: "STRING_VALUE", // required
146
+ * // documentsCount: Number("int"), // required
147
+ * // createdAt: "STRING_VALUE", // required
148
+ * // updatedAt: "STRING_VALUE", // required
149
+ * // syncStatus: "idle" || "running" || "success" || "failed", // required
150
+ * // lastSyncedAt: "STRING_VALUE",
151
+ * // lastSyncMode: "full" || "incremental" || "unknown",
152
+ * // lastSyncErrorMessage: "STRING_VALUE",
153
+ * // },
154
+ * // };
155
+ *
156
+ * ```
157
+ *
158
+ * @param ConfigureDataSourceCommandInput - {@link ConfigureDataSourceCommandInput}
159
+ * @returns {@link ConfigureDataSourceCommandOutput}
160
+ * @see {@link ConfigureDataSourceCommandInput} for command's `input` shape.
161
+ * @see {@link ConfigureDataSourceCommandOutput} for command's `response` shape.
162
+ * @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
163
+ *
164
+ * @throws {@link DataSourceNotFoundException} (client fault)
165
+ *
166
+ * @throws {@link UnauthorizedException} (client fault)
167
+ *
168
+ * @throws {@link ForbiddenException} (client fault)
169
+ *
170
+ * @throws {@link ValidationException} (client fault)
171
+ *
172
+ * @throws {@link KnowledgeBaseNotFoundException} (client fault)
173
+ *
174
+ * @throws {@link DocumentNotFoundException} (client fault)
175
+ *
176
+ * @throws {@link KnowledgeBaseServiceException}
177
+ * <p>Base exception class for all service exceptions from KnowledgeBase service.</p>
178
+ *
179
+ *
180
+ * @public
181
+ */
182
+ export declare class ConfigureDataSourceCommand extends ConfigureDataSourceCommand_base {
183
+ /** @internal type navigation helper, not in runtime. */
184
+ protected static __types: {
185
+ api: {
186
+ input: ConfigureDataSourceInput;
187
+ output: ConfigureDataSourceOutput;
188
+ };
189
+ sdk: {
190
+ input: ConfigureDataSourceCommandInput;
191
+ output: ConfigureDataSourceCommandOutput;
192
+ };
193
+ };
194
+ }
@@ -94,8 +94,7 @@ declare const CreateDataSourceCommand_base: {
94
94
  * // ],
95
95
  * // },
96
96
  * // },
97
- * // enabled: true || false, // required
98
- * // syncSchedule: "STRING_VALUE",
97
+ * // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
99
98
  * // id: "STRING_VALUE", // required
100
99
  * // companyId: "STRING_VALUE", // required
101
100
  * // documentsCount: Number("int"), // required
@@ -92,8 +92,7 @@ declare const GetDataSourceCommand_base: {
92
92
  * // ],
93
93
  * // },
94
94
  * // },
95
- * // enabled: true || false, // required
96
- * // syncSchedule: "STRING_VALUE",
95
+ * // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
97
96
  * // id: "STRING_VALUE", // required
98
97
  * // companyId: "STRING_VALUE", // required
99
98
  * // documentsCount: Number("int"), // required
@@ -92,8 +92,7 @@ declare const ListDataSourcesCommand_base: {
92
92
  * // ],
93
93
  * // },
94
94
  * // },
95
- * // enabled: true || false, // required
96
- * // syncSchedule: "STRING_VALUE",
95
+ * // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
97
96
  * // id: "STRING_VALUE", // required
98
97
  * // companyId: "STRING_VALUE", // required
99
98
  * // documentsCount: Number("int"), // required
@@ -37,56 +37,6 @@ declare const UpdateDataSourceCommand_base: {
37
37
  * const input = { // UpdateDataSourceInput
38
38
  * name: "STRING_VALUE", // required
39
39
  * description: "STRING_VALUE",
40
- * type: "files" || "confluence" || "gdrive" || "proxy", // required
41
- * config: { // DataSourceConfig Union: only one key present
42
- * confluence: { // ConfluenceConfig
43
- * baseUrl: "STRING_VALUE", // required
44
- * username: "STRING_VALUE", // required
45
- * apiKey: "STRING_VALUE", // required
46
- * spaceId: "STRING_VALUE", // required
47
- * pages: { // ConfluencePagesConfig
48
- * enabled: [ // StringList // required
49
- * "STRING_VALUE",
50
- * ],
51
- * disabled: [ // required
52
- * "STRING_VALUE",
53
- * ],
54
- * },
55
- * },
56
- * gdrive: { // GDriveConfig
57
- * nangoConnectionId: "STRING_VALUE", // required
58
- * folders: { // GDriveFoldersConfig
59
- * enabled: [ // GDriveFolderIds // required
60
- * "STRING_VALUE",
61
- * ],
62
- * disabled: [ // required
63
- * "STRING_VALUE",
64
- * ],
65
- * },
66
- * },
67
- * files: { // UserFilesConfig
68
- * allowedExtensions: [ // required
69
- * "STRING_VALUE",
70
- * ],
71
- * },
72
- * proxy: { // ProxyConfig
73
- * url: "STRING_VALUE", // required
74
- * method: "GET" || "POST",
75
- * token: "STRING_VALUE",
76
- * username: "STRING_VALUE",
77
- * password: "STRING_VALUE",
78
- * headers: [
79
- * "STRING_VALUE",
80
- * ],
81
- * body: "DOCUMENT_VALUE",
82
- * timeoutMs: Number("int"),
83
- * responseMapping: [
84
- * "STRING_VALUE",
85
- * ],
86
- * },
87
- * },
88
- * enabled: true || false, // required
89
- * syncSchedule: "STRING_VALUE",
90
40
  * companyId: "STRING_VALUE",
91
41
  * dataSourceId: "STRING_VALUE", // required
92
42
  * };
@@ -144,8 +94,7 @@ declare const UpdateDataSourceCommand_base: {
144
94
  * // ],
145
95
  * // },
146
96
  * // },
147
- * // enabled: true || false, // required
148
- * // syncSchedule: "STRING_VALUE",
97
+ * // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
149
98
  * // id: "STRING_VALUE", // required
150
99
  * // companyId: "STRING_VALUE", // required
151
100
  * // documentsCount: Number("int"), // required
@@ -1,5 +1,6 @@
1
1
  export * from "./CleanDataSourceCommand";
2
2
  export * from "./CloneDataSourceCommand";
3
+ export * from "./ConfigureDataSourceCommand";
3
4
  export * from "./CreateDataSourceCommand";
4
5
  export * from "./CreateDocumentCommand";
5
6
  export * from "./CreateKnowledgeBaseCommand";
@@ -163,45 +163,6 @@ export interface ConfluenceConfig {
163
163
  spaceId: string;
164
164
  pages?: ConfluencePagesConfig | undefined;
165
165
  }
166
- /**
167
- * @public
168
- * @enum
169
- */
170
- export declare const DataSourceType: {
171
- readonly CONFLUENCE: "confluence";
172
- readonly FILES: "files";
173
- readonly GDRIVE: "gdrive";
174
- readonly PROXY: "proxy";
175
- };
176
- /**
177
- * @public
178
- */
179
- export type DataSourceType = typeof DataSourceType[keyof typeof DataSourceType];
180
- /**
181
- * @public
182
- */
183
- export interface CreateDataSourceInput {
184
- /**
185
- * The name of the data source. Example: Product Confluence
186
- * @public
187
- */
188
- name: string;
189
- /**
190
- * The description of the data source. Example: This data source contains information about the products and services we offer in Confluence.
191
- * @public
192
- */
193
- description?: string | undefined;
194
- /**
195
- * The type of the data source. Example: confluence
196
- * @public
197
- */
198
- type: DataSourceType;
199
- /**
200
- * The unique identifier of the tenant when a service token is used.
201
- * @public
202
- */
203
- companyId?: string | undefined;
204
- }
205
166
  /**
206
167
  * @public
207
168
  */
@@ -343,6 +304,41 @@ export declare namespace DataSourceConfig {
343
304
  }
344
305
  const visit: <T>(value: DataSourceConfig, visitor: Visitor<T>) => T;
345
306
  }
307
+ /**
308
+ * @public
309
+ * @enum
310
+ */
311
+ export declare const ScheduleConfiguration: {
312
+ readonly EVERY_DAY: "EVERY_DAY";
313
+ readonly EVERY_SIX_HOURS: "EVERY_SIX_HOURS";
314
+ readonly EVERY_TWELVE_HOURS: "EVERY_TWELVE_HOURS";
315
+ readonly EVERY_WEEK: "EVERY_WEEK";
316
+ };
317
+ /**
318
+ * @public
319
+ */
320
+ export type ScheduleConfiguration = typeof ScheduleConfiguration[keyof typeof ScheduleConfiguration];
321
+ /**
322
+ * @public
323
+ */
324
+ export interface ConfigureDataSourceInput {
325
+ config: DataSourceConfig;
326
+ /**
327
+ * The sync schedule of the data source.
328
+ * @public
329
+ */
330
+ syncSchedule?: ScheduleConfiguration | undefined;
331
+ /**
332
+ * The unique identifier of the tenant when a service token is used.
333
+ * @public
334
+ */
335
+ companyId?: string | undefined;
336
+ /**
337
+ * The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
338
+ * @public
339
+ */
340
+ dataSourceId: string;
341
+ }
346
342
  /**
347
343
  * @public
348
344
  * @enum
@@ -370,6 +366,20 @@ export declare const SyncDataSourceStatus: {
370
366
  * @public
371
367
  */
372
368
  export type SyncDataSourceStatus = typeof SyncDataSourceStatus[keyof typeof SyncDataSourceStatus];
369
+ /**
370
+ * @public
371
+ * @enum
372
+ */
373
+ export declare const DataSourceType: {
374
+ readonly CONFLUENCE: "confluence";
375
+ readonly FILES: "files";
376
+ readonly GDRIVE: "gdrive";
377
+ readonly PROXY: "proxy";
378
+ };
379
+ /**
380
+ * @public
381
+ */
382
+ export type DataSourceType = typeof DataSourceType[keyof typeof DataSourceType];
373
383
  /**
374
384
  * @public
375
385
  */
@@ -391,15 +401,10 @@ export interface DataSourceItem {
391
401
  type: DataSourceType;
392
402
  config: DataSourceConfig;
393
403
  /**
394
- * Whether the data source is enabled. Example: true
395
- * @public
396
- */
397
- enabled: boolean;
398
- /**
399
- * The sync schedule of the data source. Example: 0 *\/6 * * * (every 6 hours)
404
+ * The sync schedule of the data source.
400
405
  * @public
401
406
  */
402
- syncSchedule?: string | undefined;
407
+ syncSchedule?: ScheduleConfiguration | undefined;
403
408
  /**
404
409
  * The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
405
410
  * @public
@@ -430,6 +435,37 @@ export interface DataSourceItem {
430
435
  */
431
436
  lastSyncErrorMessage?: string | undefined;
432
437
  }
438
+ /**
439
+ * @public
440
+ */
441
+ export interface ConfigureDataSourceOutput {
442
+ dataSource: DataSourceItem;
443
+ }
444
+ /**
445
+ * @public
446
+ */
447
+ export interface CreateDataSourceInput {
448
+ /**
449
+ * The name of the data source. Example: Product Confluence
450
+ * @public
451
+ */
452
+ name: string;
453
+ /**
454
+ * The description of the data source. Example: This data source contains information about the products and services we offer in Confluence.
455
+ * @public
456
+ */
457
+ description?: string | undefined;
458
+ /**
459
+ * The type of the data source. Example: confluence
460
+ * @public
461
+ */
462
+ type: DataSourceType;
463
+ /**
464
+ * The unique identifier of the tenant when a service token is used.
465
+ * @public
466
+ */
467
+ companyId?: string | undefined;
468
+ }
433
469
  /**
434
470
  * @public
435
471
  */
@@ -1429,22 +1465,6 @@ export interface UpdateDataSourceInput {
1429
1465
  * @public
1430
1466
  */
1431
1467
  description?: string | undefined;
1432
- /**
1433
- * The type of the data source. Example: confluence
1434
- * @public
1435
- */
1436
- type: DataSourceType;
1437
- config: DataSourceConfig;
1438
- /**
1439
- * Whether the data source is enabled. Example: true
1440
- * @public
1441
- */
1442
- enabled: boolean;
1443
- /**
1444
- * The sync schedule of the data source. Example: 0 *\/6 * * * (every 6 hours)
1445
- * @public
1446
- */
1447
- syncSchedule?: string | undefined;
1448
1468
  /**
1449
1469
  * The unique identifier of the tenant when a service token is used.
1450
1470
  * @public
@@ -1,5 +1,6 @@
1
1
  import { CleanDataSourceCommandInput, CleanDataSourceCommandOutput } from "../commands/CleanDataSourceCommand";
2
2
  import { CloneDataSourceCommandInput, CloneDataSourceCommandOutput } from "../commands/CloneDataSourceCommand";
3
+ import { ConfigureDataSourceCommandInput, ConfigureDataSourceCommandOutput } from "../commands/ConfigureDataSourceCommand";
3
4
  import { CreateDataSourceCommandInput, CreateDataSourceCommandOutput } from "../commands/CreateDataSourceCommand";
4
5
  import { CreateDocumentCommandInput, CreateDocumentCommandOutput } from "../commands/CreateDocumentCommand";
5
6
  import { CreateKnowledgeBaseCommandInput, CreateKnowledgeBaseCommandOutput } from "../commands/CreateKnowledgeBaseCommand";
@@ -34,6 +35,10 @@ export declare const se_CleanDataSourceCommand: (input: CleanDataSourceCommandIn
34
35
  * serializeAws_restJson1CloneDataSourceCommand
35
36
  */
36
37
  export declare const se_CloneDataSourceCommand: (input: CloneDataSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
38
+ /**
39
+ * serializeAws_restJson1ConfigureDataSourceCommand
40
+ */
41
+ export declare const se_ConfigureDataSourceCommand: (input: ConfigureDataSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
37
42
  /**
38
43
  * serializeAws_restJson1CreateDataSourceCommand
39
44
  */
@@ -138,6 +143,10 @@ export declare const de_CleanDataSourceCommand: (output: __HttpResponse, context
138
143
  * deserializeAws_restJson1CloneDataSourceCommand
139
144
  */
140
145
  export declare const de_CloneDataSourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CloneDataSourceCommandOutput>;
146
+ /**
147
+ * deserializeAws_restJson1ConfigureDataSourceCommand
148
+ */
149
+ export declare const de_ConfigureDataSourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ConfigureDataSourceCommandOutput>;
141
150
  /**
142
151
  * deserializeAws_restJson1CreateDataSourceCommand
143
152
  */
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.30",
4
+ "version": "0.0.32",
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",