@wildix/wim-knowledge-base-client 0.0.13 → 0.0.14

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.
@@ -10,11 +10,11 @@ const CreateKnowledgeBaseCommand_1 = require("./commands/CreateKnowledgeBaseComm
10
10
  const DeleteDataSourceCommand_1 = require("./commands/DeleteDataSourceCommand");
11
11
  const DeleteDocumentCommand_1 = require("./commands/DeleteDocumentCommand");
12
12
  const DeleteKnowledgeBaseCommand_1 = require("./commands/DeleteKnowledgeBaseCommand");
13
+ const DescribeDataSourceCommand_1 = require("./commands/DescribeDataSourceCommand");
13
14
  const GetDataSourceCommand_1 = require("./commands/GetDataSourceCommand");
14
15
  const GetDocumentCommand_1 = require("./commands/GetDocumentCommand");
15
16
  const GetDocumentPresignedDownloadUrlCommand_1 = require("./commands/GetDocumentPresignedDownloadUrlCommand");
16
17
  const GetDocumentPresignedUploadUrlCommand_1 = require("./commands/GetDocumentPresignedUploadUrlCommand");
17
- const GetExtraInfoForDataSourceCommand_1 = require("./commands/GetExtraInfoForDataSourceCommand");
18
18
  const GetKnowledgeBaseCommand_1 = require("./commands/GetKnowledgeBaseCommand");
19
19
  const GetSyncLogsCommand_1 = require("./commands/GetSyncLogsCommand");
20
20
  const GetSyncStatusCommand_1 = require("./commands/GetSyncStatusCommand");
@@ -38,11 +38,11 @@ const commands = {
38
38
  DeleteDataSourceCommand: DeleteDataSourceCommand_1.DeleteDataSourceCommand,
39
39
  DeleteDocumentCommand: DeleteDocumentCommand_1.DeleteDocumentCommand,
40
40
  DeleteKnowledgeBaseCommand: DeleteKnowledgeBaseCommand_1.DeleteKnowledgeBaseCommand,
41
+ DescribeDataSourceCommand: DescribeDataSourceCommand_1.DescribeDataSourceCommand,
41
42
  GetDataSourceCommand: GetDataSourceCommand_1.GetDataSourceCommand,
42
43
  GetDocumentCommand: GetDocumentCommand_1.GetDocumentCommand,
43
44
  GetDocumentPresignedDownloadUrlCommand: GetDocumentPresignedDownloadUrlCommand_1.GetDocumentPresignedDownloadUrlCommand,
44
45
  GetDocumentPresignedUploadUrlCommand: GetDocumentPresignedUploadUrlCommand_1.GetDocumentPresignedUploadUrlCommand,
45
- GetExtraInfoForDataSourceCommand: GetExtraInfoForDataSourceCommand_1.GetExtraInfoForDataSourceCommand,
46
46
  GetKnowledgeBaseCommand: GetKnowledgeBaseCommand_1.GetKnowledgeBaseCommand,
47
47
  GetSyncLogsCommand: GetSyncLogsCommand_1.GetSyncLogsCommand,
48
48
  GetSyncStatusCommand: GetSyncStatusCommand_1.GetSyncStatusCommand,
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetExtraInfoForDataSourceCommand = exports.$Command = void 0;
3
+ exports.DescribeDataSourceCommand = exports.$Command = void 0;
4
4
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class GetExtraInfoForDataSourceCommand extends smithy_client_1.Command.classBuilder()
8
+ class DescribeDataSourceCommand extends smithy_client_1.Command.classBuilder()
9
9
  .m(function (Command, cs, config, o) {
10
10
  return [
11
11
  (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
12
  ];
13
13
  })
14
- .s("KnowledgeBase", "GetExtraInfoForDataSource", {})
15
- .n("KnowledgeBaseClient", "GetExtraInfoForDataSourceCommand")
14
+ .s("KnowledgeBase", "DescribeDataSource", {})
15
+ .n("KnowledgeBaseClient", "DescribeDataSourceCommand")
16
16
  .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_GetExtraInfoForDataSourceCommand)
18
- .de(Aws_restJson1_1.de_GetExtraInfoForDataSourceCommand)
17
+ .ser(Aws_restJson1_1.se_DescribeDataSourceCommand)
18
+ .de(Aws_restJson1_1.de_DescribeDataSourceCommand)
19
19
  .build() {
20
20
  }
21
- exports.GetExtraInfoForDataSourceCommand = GetExtraInfoForDataSourceCommand;
21
+ exports.DescribeDataSourceCommand = DescribeDataSourceCommand;
@@ -9,11 +9,11 @@ tslib_1.__exportStar(require("./CreateKnowledgeBaseCommand"), exports);
9
9
  tslib_1.__exportStar(require("./DeleteDataSourceCommand"), exports);
10
10
  tslib_1.__exportStar(require("./DeleteDocumentCommand"), exports);
11
11
  tslib_1.__exportStar(require("./DeleteKnowledgeBaseCommand"), exports);
12
+ tslib_1.__exportStar(require("./DescribeDataSourceCommand"), exports);
12
13
  tslib_1.__exportStar(require("./GetDataSourceCommand"), exports);
13
14
  tslib_1.__exportStar(require("./GetDocumentCommand"), exports);
14
15
  tslib_1.__exportStar(require("./GetDocumentPresignedDownloadUrlCommand"), exports);
15
16
  tslib_1.__exportStar(require("./GetDocumentPresignedUploadUrlCommand"), exports);
16
- tslib_1.__exportStar(require("./GetExtraInfoForDataSourceCommand"), exports);
17
17
  tslib_1.__exportStar(require("./GetKnowledgeBaseCommand"), exports);
18
18
  tslib_1.__exportStar(require("./GetSyncLogsCommand"), exports);
19
19
  tslib_1.__exportStar(require("./GetSyncStatusCommand"), exports);
@@ -1,6 +1,6 @@
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_GetExtraInfoForDataSourceCommand = exports.de_GetDocumentPresignedUploadUrlCommand = exports.de_GetDocumentPresignedDownloadUrlCommand = exports.de_GetDocumentCommand = exports.de_GetDataSourceCommand = 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_GetExtraInfoForDataSourceCommand = exports.se_GetDocumentPresignedUploadUrlCommand = exports.se_GetDocumentPresignedDownloadUrlCommand = exports.se_GetDocumentCommand = exports.se_GetDataSourceCommand = 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;
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
4
  exports.de_UpdateKnowledgeBaseCommand = exports.de_UpdateDocumentCommand = void 0;
5
5
  const KnowledgeBaseServiceException_1 = require("../models/KnowledgeBaseServiceException");
6
6
  const models_0_1 = require("../models/models_0");
@@ -161,6 +161,27 @@ const se_DeleteKnowledgeBaseCommand = async (input, context) => {
161
161
  return b.build();
162
162
  };
163
163
  exports.se_DeleteKnowledgeBaseCommand = se_DeleteKnowledgeBaseCommand;
164
+ const se_DescribeDataSourceCommand = async (input, context) => {
165
+ const b = (0, core_2.requestBuilder)(input, context);
166
+ const headers = {
167
+ 'content-type': 'application/json',
168
+ };
169
+ b.bp("/api/v1/data-sources/{dataSourceId}/describe");
170
+ b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
171
+ const query = (0, smithy_client_1.map)({
172
+ [_c]: [, input[_cI]],
173
+ });
174
+ let body;
175
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
176
+ 'parameters': _ => se_Document(_, context),
177
+ }));
178
+ b.m("POST")
179
+ .h(headers)
180
+ .q(query)
181
+ .b(body);
182
+ return b.build();
183
+ };
184
+ exports.se_DescribeDataSourceCommand = se_DescribeDataSourceCommand;
164
185
  const se_GetDataSourceCommand = async (input, context) => {
165
186
  const b = (0, core_2.requestBuilder)(input, context);
166
187
  const headers = {};
@@ -229,27 +250,6 @@ const se_GetDocumentPresignedUploadUrlCommand = async (input, context) => {
229
250
  return b.build();
230
251
  };
231
252
  exports.se_GetDocumentPresignedUploadUrlCommand = se_GetDocumentPresignedUploadUrlCommand;
232
- const se_GetExtraInfoForDataSourceCommand = async (input, context) => {
233
- const b = (0, core_2.requestBuilder)(input, context);
234
- const headers = {
235
- 'content-type': 'application/json',
236
- };
237
- b.bp("/api/v1/data-sources/{dataSourceId}/extra-info");
238
- b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
239
- const query = (0, smithy_client_1.map)({
240
- [_c]: [, input[_cI]],
241
- });
242
- let body;
243
- body = JSON.stringify((0, smithy_client_1.take)(input, {
244
- 'parameters': _ => se_Document(_, context),
245
- }));
246
- b.m("POST")
247
- .h(headers)
248
- .q(query)
249
- .b(body);
250
- return b.build();
251
- };
252
- exports.se_GetExtraInfoForDataSourceCommand = se_GetExtraInfoForDataSourceCommand;
253
253
  const se_GetKnowledgeBaseCommand = async (input, context) => {
254
254
  const b = (0, core_2.requestBuilder)(input, context);
255
255
  const headers = {};
@@ -604,7 +604,7 @@ const de_DeleteKnowledgeBaseCommand = async (output, context) => {
604
604
  return contents;
605
605
  };
606
606
  exports.de_DeleteKnowledgeBaseCommand = de_DeleteKnowledgeBaseCommand;
607
- const de_GetDataSourceCommand = async (output, context) => {
607
+ const de_DescribeDataSourceCommand = async (output, context) => {
608
608
  if (output.statusCode !== 200 && output.statusCode >= 300) {
609
609
  return de_CommandError(output, context);
610
610
  }
@@ -613,13 +613,13 @@ const de_GetDataSourceCommand = async (output, context) => {
613
613
  });
614
614
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
615
615
  const doc = (0, smithy_client_1.take)(data, {
616
- 'dataSource': _ => de_DataSourceItem(_, context),
616
+ 'info': _ => de_Document(_, context),
617
617
  });
618
618
  Object.assign(contents, doc);
619
619
  return contents;
620
620
  };
621
- exports.de_GetDataSourceCommand = de_GetDataSourceCommand;
622
- const de_GetDocumentCommand = async (output, context) => {
621
+ exports.de_DescribeDataSourceCommand = de_DescribeDataSourceCommand;
622
+ const de_GetDataSourceCommand = async (output, context) => {
623
623
  if (output.statusCode !== 200 && output.statusCode >= 300) {
624
624
  return de_CommandError(output, context);
625
625
  }
@@ -628,13 +628,13 @@ const de_GetDocumentCommand = async (output, context) => {
628
628
  });
629
629
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
630
630
  const doc = (0, smithy_client_1.take)(data, {
631
- 'document': smithy_client_1._json,
631
+ 'dataSource': _ => de_DataSourceItem(_, context),
632
632
  });
633
633
  Object.assign(contents, doc);
634
634
  return contents;
635
635
  };
636
- exports.de_GetDocumentCommand = de_GetDocumentCommand;
637
- const de_GetDocumentPresignedDownloadUrlCommand = async (output, context) => {
636
+ exports.de_GetDataSourceCommand = de_GetDataSourceCommand;
637
+ const de_GetDocumentCommand = async (output, context) => {
638
638
  if (output.statusCode !== 200 && output.statusCode >= 300) {
639
639
  return de_CommandError(output, context);
640
640
  }
@@ -643,13 +643,13 @@ const de_GetDocumentPresignedDownloadUrlCommand = async (output, context) => {
643
643
  });
644
644
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
645
645
  const doc = (0, smithy_client_1.take)(data, {
646
- 'presignedDownloadUrl': smithy_client_1.expectString,
646
+ 'document': smithy_client_1._json,
647
647
  });
648
648
  Object.assign(contents, doc);
649
649
  return contents;
650
650
  };
651
- exports.de_GetDocumentPresignedDownloadUrlCommand = de_GetDocumentPresignedDownloadUrlCommand;
652
- const de_GetDocumentPresignedUploadUrlCommand = async (output, context) => {
651
+ exports.de_GetDocumentCommand = de_GetDocumentCommand;
652
+ const de_GetDocumentPresignedDownloadUrlCommand = async (output, context) => {
653
653
  if (output.statusCode !== 200 && output.statusCode >= 300) {
654
654
  return de_CommandError(output, context);
655
655
  }
@@ -658,13 +658,13 @@ const de_GetDocumentPresignedUploadUrlCommand = async (output, context) => {
658
658
  });
659
659
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
660
660
  const doc = (0, smithy_client_1.take)(data, {
661
- 'presignedUploadUrl': smithy_client_1.expectString,
661
+ 'presignedDownloadUrl': smithy_client_1.expectString,
662
662
  });
663
663
  Object.assign(contents, doc);
664
664
  return contents;
665
665
  };
666
- exports.de_GetDocumentPresignedUploadUrlCommand = de_GetDocumentPresignedUploadUrlCommand;
667
- const de_GetExtraInfoForDataSourceCommand = async (output, context) => {
666
+ exports.de_GetDocumentPresignedDownloadUrlCommand = de_GetDocumentPresignedDownloadUrlCommand;
667
+ const de_GetDocumentPresignedUploadUrlCommand = async (output, context) => {
668
668
  if (output.statusCode !== 200 && output.statusCode >= 300) {
669
669
  return de_CommandError(output, context);
670
670
  }
@@ -673,12 +673,12 @@ const de_GetExtraInfoForDataSourceCommand = async (output, context) => {
673
673
  });
674
674
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
675
675
  const doc = (0, smithy_client_1.take)(data, {
676
- 'extraInfo': _ => de_Document(_, context),
676
+ 'presignedUploadUrl': smithy_client_1.expectString,
677
677
  });
678
678
  Object.assign(contents, doc);
679
679
  return contents;
680
680
  };
681
- exports.de_GetExtraInfoForDataSourceCommand = de_GetExtraInfoForDataSourceCommand;
681
+ exports.de_GetDocumentPresignedUploadUrlCommand = de_GetDocumentPresignedUploadUrlCommand;
682
682
  const de_GetKnowledgeBaseCommand = async (output, context) => {
683
683
  if (output.statusCode !== 200 && output.statusCode >= 300) {
684
684
  return de_CommandError(output, context);
@@ -7,11 +7,11 @@ import { CreateKnowledgeBaseCommand, } from "./commands/CreateKnowledgeBaseComma
7
7
  import { DeleteDataSourceCommand, } from "./commands/DeleteDataSourceCommand";
8
8
  import { DeleteDocumentCommand, } from "./commands/DeleteDocumentCommand";
9
9
  import { DeleteKnowledgeBaseCommand, } from "./commands/DeleteKnowledgeBaseCommand";
10
+ import { DescribeDataSourceCommand, } from "./commands/DescribeDataSourceCommand";
10
11
  import { GetDataSourceCommand, } from "./commands/GetDataSourceCommand";
11
12
  import { GetDocumentCommand, } from "./commands/GetDocumentCommand";
12
13
  import { GetDocumentPresignedDownloadUrlCommand, } from "./commands/GetDocumentPresignedDownloadUrlCommand";
13
14
  import { GetDocumentPresignedUploadUrlCommand, } from "./commands/GetDocumentPresignedUploadUrlCommand";
14
- import { GetExtraInfoForDataSourceCommand, } from "./commands/GetExtraInfoForDataSourceCommand";
15
15
  import { GetKnowledgeBaseCommand, } from "./commands/GetKnowledgeBaseCommand";
16
16
  import { GetSyncLogsCommand, } from "./commands/GetSyncLogsCommand";
17
17
  import { GetSyncStatusCommand, } from "./commands/GetSyncStatusCommand";
@@ -35,11 +35,11 @@ const commands = {
35
35
  DeleteDataSourceCommand,
36
36
  DeleteDocumentCommand,
37
37
  DeleteKnowledgeBaseCommand,
38
+ DescribeDataSourceCommand,
38
39
  GetDataSourceCommand,
39
40
  GetDocumentCommand,
40
41
  GetDocumentPresignedDownloadUrlCommand,
41
42
  GetDocumentPresignedUploadUrlCommand,
42
- GetExtraInfoForDataSourceCommand,
43
43
  GetKnowledgeBaseCommand,
44
44
  GetSyncLogsCommand,
45
45
  GetSyncStatusCommand,
@@ -0,0 +1,17 @@
1
+ import { de_DescribeDataSourceCommand, se_DescribeDataSourceCommand, } 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 DescribeDataSourceCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "DescribeDataSource", {})
12
+ .n("KnowledgeBaseClient", "DescribeDataSourceCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DescribeDataSourceCommand)
15
+ .de(de_DescribeDataSourceCommand)
16
+ .build() {
17
+ }
@@ -6,11 +6,11 @@ export * from "./CreateKnowledgeBaseCommand";
6
6
  export * from "./DeleteDataSourceCommand";
7
7
  export * from "./DeleteDocumentCommand";
8
8
  export * from "./DeleteKnowledgeBaseCommand";
9
+ export * from "./DescribeDataSourceCommand";
9
10
  export * from "./GetDataSourceCommand";
10
11
  export * from "./GetDocumentCommand";
11
12
  export * from "./GetDocumentPresignedDownloadUrlCommand";
12
13
  export * from "./GetDocumentPresignedUploadUrlCommand";
13
- export * from "./GetExtraInfoForDataSourceCommand";
14
14
  export * from "./GetKnowledgeBaseCommand";
15
15
  export * from "./GetSyncLogsCommand";
16
16
  export * from "./GetSyncStatusCommand";
@@ -149,6 +149,26 @@ export const se_DeleteKnowledgeBaseCommand = async (input, context) => {
149
149
  .b(body);
150
150
  return b.build();
151
151
  };
152
+ export const se_DescribeDataSourceCommand = async (input, context) => {
153
+ const b = rb(input, context);
154
+ const headers = {
155
+ 'content-type': 'application/json',
156
+ };
157
+ b.bp("/api/v1/data-sources/{dataSourceId}/describe");
158
+ b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
159
+ const query = map({
160
+ [_c]: [, input[_cI]],
161
+ });
162
+ let body;
163
+ body = JSON.stringify(take(input, {
164
+ 'parameters': _ => se_Document(_, context),
165
+ }));
166
+ b.m("POST")
167
+ .h(headers)
168
+ .q(query)
169
+ .b(body);
170
+ return b.build();
171
+ };
152
172
  export const se_GetDataSourceCommand = async (input, context) => {
153
173
  const b = rb(input, context);
154
174
  const headers = {};
@@ -213,26 +233,6 @@ export const se_GetDocumentPresignedUploadUrlCommand = async (input, context) =>
213
233
  .b(body);
214
234
  return b.build();
215
235
  };
216
- export const se_GetExtraInfoForDataSourceCommand = async (input, context) => {
217
- const b = rb(input, context);
218
- const headers = {
219
- 'content-type': 'application/json',
220
- };
221
- b.bp("/api/v1/data-sources/{dataSourceId}/extra-info");
222
- b.p('dataSourceId', () => input.dataSourceId, '{dataSourceId}', false);
223
- const query = map({
224
- [_c]: [, input[_cI]],
225
- });
226
- let body;
227
- body = JSON.stringify(take(input, {
228
- 'parameters': _ => se_Document(_, context),
229
- }));
230
- b.m("POST")
231
- .h(headers)
232
- .q(query)
233
- .b(body);
234
- return b.build();
235
- };
236
236
  export const se_GetKnowledgeBaseCommand = async (input, context) => {
237
237
  const b = rb(input, context);
238
238
  const headers = {};
@@ -566,7 +566,7 @@ export const de_DeleteKnowledgeBaseCommand = async (output, context) => {
566
566
  await collectBody(output.body, context);
567
567
  return contents;
568
568
  };
569
- export const de_GetDataSourceCommand = async (output, context) => {
569
+ export const de_DescribeDataSourceCommand = async (output, context) => {
570
570
  if (output.statusCode !== 200 && output.statusCode >= 300) {
571
571
  return de_CommandError(output, context);
572
572
  }
@@ -575,12 +575,12 @@ export const de_GetDataSourceCommand = async (output, context) => {
575
575
  });
576
576
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
577
577
  const doc = take(data, {
578
- 'dataSource': _ => de_DataSourceItem(_, context),
578
+ 'info': _ => de_Document(_, context),
579
579
  });
580
580
  Object.assign(contents, doc);
581
581
  return contents;
582
582
  };
583
- export const de_GetDocumentCommand = async (output, context) => {
583
+ export const de_GetDataSourceCommand = async (output, context) => {
584
584
  if (output.statusCode !== 200 && output.statusCode >= 300) {
585
585
  return de_CommandError(output, context);
586
586
  }
@@ -589,12 +589,12 @@ export const de_GetDocumentCommand = async (output, context) => {
589
589
  });
590
590
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
591
591
  const doc = take(data, {
592
- 'document': _json,
592
+ 'dataSource': _ => de_DataSourceItem(_, context),
593
593
  });
594
594
  Object.assign(contents, doc);
595
595
  return contents;
596
596
  };
597
- export const de_GetDocumentPresignedDownloadUrlCommand = async (output, context) => {
597
+ export const de_GetDocumentCommand = async (output, context) => {
598
598
  if (output.statusCode !== 200 && output.statusCode >= 300) {
599
599
  return de_CommandError(output, context);
600
600
  }
@@ -603,12 +603,12 @@ export const de_GetDocumentPresignedDownloadUrlCommand = async (output, context)
603
603
  });
604
604
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
605
605
  const doc = take(data, {
606
- 'presignedDownloadUrl': __expectString,
606
+ 'document': _json,
607
607
  });
608
608
  Object.assign(contents, doc);
609
609
  return contents;
610
610
  };
611
- export const de_GetDocumentPresignedUploadUrlCommand = async (output, context) => {
611
+ export const de_GetDocumentPresignedDownloadUrlCommand = async (output, context) => {
612
612
  if (output.statusCode !== 200 && output.statusCode >= 300) {
613
613
  return de_CommandError(output, context);
614
614
  }
@@ -617,12 +617,12 @@ export const de_GetDocumentPresignedUploadUrlCommand = async (output, context) =
617
617
  });
618
618
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
619
619
  const doc = take(data, {
620
- 'presignedUploadUrl': __expectString,
620
+ 'presignedDownloadUrl': __expectString,
621
621
  });
622
622
  Object.assign(contents, doc);
623
623
  return contents;
624
624
  };
625
- export const de_GetExtraInfoForDataSourceCommand = async (output, context) => {
625
+ export const de_GetDocumentPresignedUploadUrlCommand = async (output, context) => {
626
626
  if (output.statusCode !== 200 && output.statusCode >= 300) {
627
627
  return de_CommandError(output, context);
628
628
  }
@@ -631,7 +631,7 @@ export const de_GetExtraInfoForDataSourceCommand = async (output, context) => {
631
631
  });
632
632
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
633
633
  const doc = take(data, {
634
- 'extraInfo': _ => de_Document(_, context),
634
+ 'presignedUploadUrl': __expectString,
635
635
  });
636
636
  Object.assign(contents, doc);
637
637
  return contents;
@@ -7,11 +7,11 @@ import { CreateKnowledgeBaseCommandInput, CreateKnowledgeBaseCommandOutput } fro
7
7
  import { DeleteDataSourceCommandInput, DeleteDataSourceCommandOutput } from "./commands/DeleteDataSourceCommand";
8
8
  import { DeleteDocumentCommandInput, DeleteDocumentCommandOutput } from "./commands/DeleteDocumentCommand";
9
9
  import { DeleteKnowledgeBaseCommandInput, DeleteKnowledgeBaseCommandOutput } from "./commands/DeleteKnowledgeBaseCommand";
10
+ import { DescribeDataSourceCommandInput, DescribeDataSourceCommandOutput } from "./commands/DescribeDataSourceCommand";
10
11
  import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "./commands/GetDataSourceCommand";
11
12
  import { GetDocumentCommandInput, GetDocumentCommandOutput } from "./commands/GetDocumentCommand";
12
13
  import { GetDocumentPresignedDownloadUrlCommandInput, GetDocumentPresignedDownloadUrlCommandOutput } from "./commands/GetDocumentPresignedDownloadUrlCommand";
13
14
  import { GetDocumentPresignedUploadUrlCommandInput, GetDocumentPresignedUploadUrlCommandOutput } from "./commands/GetDocumentPresignedUploadUrlCommand";
14
- import { GetExtraInfoForDataSourceCommandInput, GetExtraInfoForDataSourceCommandOutput } from "./commands/GetExtraInfoForDataSourceCommand";
15
15
  import { GetKnowledgeBaseCommandInput, GetKnowledgeBaseCommandOutput } from "./commands/GetKnowledgeBaseCommand";
16
16
  import { GetSyncLogsCommandInput, GetSyncLogsCommandOutput } from "./commands/GetSyncLogsCommand";
17
17
  import { GetSyncStatusCommandInput, GetSyncStatusCommandOutput } from "./commands/GetSyncStatusCommand";
@@ -75,6 +75,12 @@ export interface KnowledgeBase {
75
75
  deleteKnowledgeBase(args: DeleteKnowledgeBaseCommandInput, options?: __HttpHandlerOptions): Promise<DeleteKnowledgeBaseCommandOutput>;
76
76
  deleteKnowledgeBase(args: DeleteKnowledgeBaseCommandInput, cb: (err: any, data?: DeleteKnowledgeBaseCommandOutput) => void): void;
77
77
  deleteKnowledgeBase(args: DeleteKnowledgeBaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteKnowledgeBaseCommandOutput) => void): void;
78
+ /**
79
+ * @see {@link DescribeDataSourceCommand}
80
+ */
81
+ describeDataSource(args: DescribeDataSourceCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDataSourceCommandOutput>;
82
+ describeDataSource(args: DescribeDataSourceCommandInput, cb: (err: any, data?: DescribeDataSourceCommandOutput) => void): void;
83
+ describeDataSource(args: DescribeDataSourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDataSourceCommandOutput) => void): void;
78
84
  /**
79
85
  * @see {@link GetDataSourceCommand}
80
86
  */
@@ -99,12 +105,6 @@ export interface KnowledgeBase {
99
105
  getDocumentPresignedUploadUrl(args: GetDocumentPresignedUploadUrlCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentPresignedUploadUrlCommandOutput>;
100
106
  getDocumentPresignedUploadUrl(args: GetDocumentPresignedUploadUrlCommandInput, cb: (err: any, data?: GetDocumentPresignedUploadUrlCommandOutput) => void): void;
101
107
  getDocumentPresignedUploadUrl(args: GetDocumentPresignedUploadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentPresignedUploadUrlCommandOutput) => void): void;
102
- /**
103
- * @see {@link GetExtraInfoForDataSourceCommand}
104
- */
105
- getExtraInfoForDataSource(args: GetExtraInfoForDataSourceCommandInput, options?: __HttpHandlerOptions): Promise<GetExtraInfoForDataSourceCommandOutput>;
106
- getExtraInfoForDataSource(args: GetExtraInfoForDataSourceCommandInput, cb: (err: any, data?: GetExtraInfoForDataSourceCommandOutput) => void): void;
107
- getExtraInfoForDataSource(args: GetExtraInfoForDataSourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetExtraInfoForDataSourceCommandOutput) => void): void;
108
108
  /**
109
109
  * @see {@link GetKnowledgeBaseCommand}
110
110
  */
@@ -6,11 +6,11 @@ import { CreateKnowledgeBaseCommandInput, CreateKnowledgeBaseCommandOutput } fro
6
6
  import { DeleteDataSourceCommandInput, DeleteDataSourceCommandOutput } from "./commands/DeleteDataSourceCommand";
7
7
  import { DeleteDocumentCommandInput, DeleteDocumentCommandOutput } from "./commands/DeleteDocumentCommand";
8
8
  import { DeleteKnowledgeBaseCommandInput, DeleteKnowledgeBaseCommandOutput } from "./commands/DeleteKnowledgeBaseCommand";
9
+ import { DescribeDataSourceCommandInput, DescribeDataSourceCommandOutput } from "./commands/DescribeDataSourceCommand";
9
10
  import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "./commands/GetDataSourceCommand";
10
11
  import { GetDocumentCommandInput, GetDocumentCommandOutput } from "./commands/GetDocumentCommand";
11
12
  import { GetDocumentPresignedDownloadUrlCommandInput, GetDocumentPresignedDownloadUrlCommandOutput } from "./commands/GetDocumentPresignedDownloadUrlCommand";
12
13
  import { GetDocumentPresignedUploadUrlCommandInput, GetDocumentPresignedUploadUrlCommandOutput } from "./commands/GetDocumentPresignedUploadUrlCommand";
13
- import { GetExtraInfoForDataSourceCommandInput, GetExtraInfoForDataSourceCommandOutput } from "./commands/GetExtraInfoForDataSourceCommand";
14
14
  import { GetKnowledgeBaseCommandInput, GetKnowledgeBaseCommandOutput } from "./commands/GetKnowledgeBaseCommand";
15
15
  import { GetSyncLogsCommandInput, GetSyncLogsCommandOutput } from "./commands/GetSyncLogsCommand";
16
16
  import { GetSyncStatusCommandInput, GetSyncStatusCommandOutput } from "./commands/GetSyncStatusCommand";
@@ -35,11 +35,11 @@ export { __Client };
35
35
  /**
36
36
  * @public
37
37
  */
38
- export type ServiceInputTypes = CleanDataSourceCommandInput | CloneDataSourceCommandInput | CreateDataSourceCommandInput | CreateDocumentCommandInput | CreateKnowledgeBaseCommandInput | DeleteDataSourceCommandInput | DeleteDocumentCommandInput | DeleteKnowledgeBaseCommandInput | GetDataSourceCommandInput | GetDocumentCommandInput | GetDocumentPresignedDownloadUrlCommandInput | GetDocumentPresignedUploadUrlCommandInput | GetExtraInfoForDataSourceCommandInput | GetKnowledgeBaseCommandInput | GetSyncLogsCommandInput | GetSyncStatusCommandInput | ListDataSourcesCommandInput | ListDocumentsCommandInput | ListKnowledgeBasesCommandInput | QueryKnowledgeBaseCommandInput | SearchKnowledgeBaseCommandInput | StartSyncDataSourceCommandInput | StopSyncDataSourceCommandInput | UpdateDataSourceCommandInput | UpdateDocumentCommandInput | UpdateKnowledgeBaseCommandInput;
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
39
  /**
40
40
  * @public
41
41
  */
42
- export type ServiceOutputTypes = CleanDataSourceCommandOutput | CloneDataSourceCommandOutput | CreateDataSourceCommandOutput | CreateDocumentCommandOutput | CreateKnowledgeBaseCommandOutput | DeleteDataSourceCommandOutput | DeleteDocumentCommandOutput | DeleteKnowledgeBaseCommandOutput | GetDataSourceCommandOutput | GetDocumentCommandOutput | GetDocumentPresignedDownloadUrlCommandOutput | GetDocumentPresignedUploadUrlCommandOutput | GetExtraInfoForDataSourceCommandOutput | GetKnowledgeBaseCommandOutput | GetSyncLogsCommandOutput | GetSyncStatusCommandOutput | ListDataSourcesCommandOutput | ListDocumentsCommandOutput | ListKnowledgeBasesCommandOutput | QueryKnowledgeBaseCommandOutput | SearchKnowledgeBaseCommandOutput | StartSyncDataSourceCommandOutput | StopSyncDataSourceCommandOutput | UpdateDataSourceCommandOutput | UpdateDocumentCommandOutput | UpdateKnowledgeBaseCommandOutput;
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
43
  /**
44
44
  * @public
45
45
  */
@@ -0,0 +1,86 @@
1
+ import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
2
+ import { DescribeDataSourceInput, DescribeDataSourceOutput } 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 DescribeDataSourceCommand}.
14
+ */
15
+ export interface DescribeDataSourceCommandInput extends DescribeDataSourceInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeDataSourceCommand}.
21
+ */
22
+ export interface DescribeDataSourceCommandOutput extends DescribeDataSourceOutput, __MetadataBearer {
23
+ }
24
+ declare const DescribeDataSourceCommand_base: {
25
+ new (input: DescribeDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeDataSourceCommandInput, DescribeDataSourceCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DescribeDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeDataSourceCommandInput, DescribeDataSourceCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Describe the data source by its ID. It will return additional information about the data source based on the parameters provided.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { KnowledgeBaseClient, DescribeDataSourceCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
35
+ * // const { KnowledgeBaseClient, DescribeDataSourceCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
36
+ * const client = new KnowledgeBaseClient(config);
37
+ * const input = { // DescribeDataSourceInput
38
+ * companyId: "STRING_VALUE",
39
+ * dataSourceId: "STRING_VALUE", // required
40
+ * parameters: "DOCUMENT_VALUE", // required
41
+ * };
42
+ * const command = new DescribeDataSourceCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // DescribeDataSourceOutput
45
+ * // info: "DOCUMENT_VALUE", // required
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param DescribeDataSourceCommandInput - {@link DescribeDataSourceCommandInput}
51
+ * @returns {@link DescribeDataSourceCommandOutput}
52
+ * @see {@link DescribeDataSourceCommandInput} for command's `input` shape.
53
+ * @see {@link DescribeDataSourceCommandOutput} for command's `response` shape.
54
+ * @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
55
+ *
56
+ * @throws {@link DataSourceNotFoundException} (client fault)
57
+ *
58
+ * @throws {@link UnauthorizedException} (client fault)
59
+ *
60
+ * @throws {@link ForbiddenException} (client fault)
61
+ *
62
+ * @throws {@link ValidationException} (client fault)
63
+ *
64
+ * @throws {@link KnowledgeBaseNotFoundException} (client fault)
65
+ *
66
+ * @throws {@link DocumentNotFoundException} (client fault)
67
+ *
68
+ * @throws {@link KnowledgeBaseServiceException}
69
+ * <p>Base exception class for all service exceptions from KnowledgeBase service.</p>
70
+ *
71
+ *
72
+ * @public
73
+ */
74
+ export declare class DescribeDataSourceCommand extends DescribeDataSourceCommand_base {
75
+ /** @internal type navigation helper, not in runtime. */
76
+ protected static __types: {
77
+ api: {
78
+ input: DescribeDataSourceInput;
79
+ output: DescribeDataSourceOutput;
80
+ };
81
+ sdk: {
82
+ input: DescribeDataSourceCommandInput;
83
+ output: DescribeDataSourceCommandOutput;
84
+ };
85
+ };
86
+ }
@@ -6,11 +6,11 @@ export * from "./CreateKnowledgeBaseCommand";
6
6
  export * from "./DeleteDataSourceCommand";
7
7
  export * from "./DeleteDocumentCommand";
8
8
  export * from "./DeleteKnowledgeBaseCommand";
9
+ export * from "./DescribeDataSourceCommand";
9
10
  export * from "./GetDataSourceCommand";
10
11
  export * from "./GetDocumentCommand";
11
12
  export * from "./GetDocumentPresignedDownloadUrlCommand";
12
13
  export * from "./GetDocumentPresignedUploadUrlCommand";
13
- export * from "./GetExtraInfoForDataSourceCommand";
14
14
  export * from "./GetKnowledgeBaseCommand";
15
15
  export * from "./GetSyncLogsCommand";
16
16
  export * from "./GetSyncStatusCommand";
@@ -658,6 +658,28 @@ export interface DeleteKnowledgeBaseInput {
658
658
  */
659
659
  export interface DeleteKnowledgeBaseOutput {
660
660
  }
661
+ /**
662
+ * @public
663
+ */
664
+ export interface DescribeDataSourceInput {
665
+ /**
666
+ * The unique identifier of the tenant when a service token is used.
667
+ * @public
668
+ */
669
+ companyId?: string | undefined;
670
+ /**
671
+ * The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
672
+ * @public
673
+ */
674
+ dataSourceId: string;
675
+ parameters: __DocumentType;
676
+ }
677
+ /**
678
+ * @public
679
+ */
680
+ export interface DescribeDataSourceOutput {
681
+ info: __DocumentType;
682
+ }
661
683
  /**
662
684
  * @public
663
685
  * @enum
@@ -770,28 +792,6 @@ export interface GetDocumentPresignedUploadUrlInput {
770
792
  export interface GetDocumentPresignedUploadUrlOutput {
771
793
  presignedUploadUrl: string;
772
794
  }
773
- /**
774
- * @public
775
- */
776
- export interface GetExtraInfoForDataSourceInput {
777
- /**
778
- * The unique identifier of the tenant when a service token is used.
779
- * @public
780
- */
781
- companyId?: string | undefined;
782
- /**
783
- * The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
784
- * @public
785
- */
786
- dataSourceId: string;
787
- parameters: __DocumentType;
788
- }
789
- /**
790
- * @public
791
- */
792
- export interface GetExtraInfoForDataSourceOutput {
793
- extraInfo: __DocumentType;
794
- }
795
795
  /**
796
796
  * @public
797
797
  */
@@ -6,11 +6,11 @@ import { CreateKnowledgeBaseCommandInput, CreateKnowledgeBaseCommandOutput } fro
6
6
  import { DeleteDataSourceCommandInput, DeleteDataSourceCommandOutput } from "../commands/DeleteDataSourceCommand";
7
7
  import { DeleteDocumentCommandInput, DeleteDocumentCommandOutput } from "../commands/DeleteDocumentCommand";
8
8
  import { DeleteKnowledgeBaseCommandInput, DeleteKnowledgeBaseCommandOutput } from "../commands/DeleteKnowledgeBaseCommand";
9
+ import { DescribeDataSourceCommandInput, DescribeDataSourceCommandOutput } from "../commands/DescribeDataSourceCommand";
9
10
  import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "../commands/GetDataSourceCommand";
10
11
  import { GetDocumentCommandInput, GetDocumentCommandOutput } from "../commands/GetDocumentCommand";
11
12
  import { GetDocumentPresignedDownloadUrlCommandInput, GetDocumentPresignedDownloadUrlCommandOutput } from "../commands/GetDocumentPresignedDownloadUrlCommand";
12
13
  import { GetDocumentPresignedUploadUrlCommandInput, GetDocumentPresignedUploadUrlCommandOutput } from "../commands/GetDocumentPresignedUploadUrlCommand";
13
- import { GetExtraInfoForDataSourceCommandInput, GetExtraInfoForDataSourceCommandOutput } from "../commands/GetExtraInfoForDataSourceCommand";
14
14
  import { GetKnowledgeBaseCommandInput, GetKnowledgeBaseCommandOutput } from "../commands/GetKnowledgeBaseCommand";
15
15
  import { GetSyncLogsCommandInput, GetSyncLogsCommandOutput } from "../commands/GetSyncLogsCommand";
16
16
  import { GetSyncStatusCommandInput, GetSyncStatusCommandOutput } from "../commands/GetSyncStatusCommand";
@@ -58,6 +58,10 @@ export declare const se_DeleteDocumentCommand: (input: DeleteDocumentCommandInpu
58
58
  * serializeAws_restJson1DeleteKnowledgeBaseCommand
59
59
  */
60
60
  export declare const se_DeleteKnowledgeBaseCommand: (input: DeleteKnowledgeBaseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
61
+ /**
62
+ * serializeAws_restJson1DescribeDataSourceCommand
63
+ */
64
+ export declare const se_DescribeDataSourceCommand: (input: DescribeDataSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
61
65
  /**
62
66
  * serializeAws_restJson1GetDataSourceCommand
63
67
  */
@@ -74,10 +78,6 @@ export declare const se_GetDocumentPresignedDownloadUrlCommand: (input: GetDocum
74
78
  * serializeAws_restJson1GetDocumentPresignedUploadUrlCommand
75
79
  */
76
80
  export declare const se_GetDocumentPresignedUploadUrlCommand: (input: GetDocumentPresignedUploadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
77
- /**
78
- * serializeAws_restJson1GetExtraInfoForDataSourceCommand
79
- */
80
- export declare const se_GetExtraInfoForDataSourceCommand: (input: GetExtraInfoForDataSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
81
81
  /**
82
82
  * serializeAws_restJson1GetKnowledgeBaseCommand
83
83
  */
@@ -162,6 +162,10 @@ export declare const de_DeleteDocumentCommand: (output: __HttpResponse, context:
162
162
  * deserializeAws_restJson1DeleteKnowledgeBaseCommand
163
163
  */
164
164
  export declare const de_DeleteKnowledgeBaseCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteKnowledgeBaseCommandOutput>;
165
+ /**
166
+ * deserializeAws_restJson1DescribeDataSourceCommand
167
+ */
168
+ export declare const de_DescribeDataSourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeDataSourceCommandOutput>;
165
169
  /**
166
170
  * deserializeAws_restJson1GetDataSourceCommand
167
171
  */
@@ -178,10 +182,6 @@ export declare const de_GetDocumentPresignedDownloadUrlCommand: (output: __HttpR
178
182
  * deserializeAws_restJson1GetDocumentPresignedUploadUrlCommand
179
183
  */
180
184
  export declare const de_GetDocumentPresignedUploadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentPresignedUploadUrlCommandOutput>;
181
- /**
182
- * deserializeAws_restJson1GetExtraInfoForDataSourceCommand
183
- */
184
- export declare const de_GetExtraInfoForDataSourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetExtraInfoForDataSourceCommandOutput>;
185
185
  /**
186
186
  * deserializeAws_restJson1GetKnowledgeBaseCommand
187
187
  */
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.13",
4
+ "version": "0.0.14",
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",
@@ -1,17 +0,0 @@
1
- import { de_GetExtraInfoForDataSourceCommand, se_GetExtraInfoForDataSourceCommand, } 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 GetExtraInfoForDataSourceCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("KnowledgeBase", "GetExtraInfoForDataSource", {})
12
- .n("KnowledgeBaseClient", "GetExtraInfoForDataSourceCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetExtraInfoForDataSourceCommand)
15
- .de(de_GetExtraInfoForDataSourceCommand)
16
- .build() {
17
- }
@@ -1,86 +0,0 @@
1
- import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
2
- import { GetExtraInfoForDataSourceInput, GetExtraInfoForDataSourceOutput } 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 GetExtraInfoForDataSourceCommand}.
14
- */
15
- export interface GetExtraInfoForDataSourceCommandInput extends GetExtraInfoForDataSourceInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link GetExtraInfoForDataSourceCommand}.
21
- */
22
- export interface GetExtraInfoForDataSourceCommandOutput extends GetExtraInfoForDataSourceOutput, __MetadataBearer {
23
- }
24
- declare const GetExtraInfoForDataSourceCommand_base: {
25
- new (input: GetExtraInfoForDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<GetExtraInfoForDataSourceCommandInput, GetExtraInfoForDataSourceCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: GetExtraInfoForDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<GetExtraInfoForDataSourceCommandInput, GetExtraInfoForDataSourceCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Get the extra info of a data source by its ID. It will return the extra info of the data source based on the parameters provided.
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { KnowledgeBaseClient, GetExtraInfoForDataSourceCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
35
- * // const { KnowledgeBaseClient, GetExtraInfoForDataSourceCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
36
- * const client = new KnowledgeBaseClient(config);
37
- * const input = { // GetExtraInfoForDataSourceInput
38
- * companyId: "STRING_VALUE",
39
- * dataSourceId: "STRING_VALUE", // required
40
- * parameters: "DOCUMENT_VALUE", // required
41
- * };
42
- * const command = new GetExtraInfoForDataSourceCommand(input);
43
- * const response = await client.send(command);
44
- * // { // GetExtraInfoForDataSourceOutput
45
- * // extraInfo: "DOCUMENT_VALUE", // required
46
- * // };
47
- *
48
- * ```
49
- *
50
- * @param GetExtraInfoForDataSourceCommandInput - {@link GetExtraInfoForDataSourceCommandInput}
51
- * @returns {@link GetExtraInfoForDataSourceCommandOutput}
52
- * @see {@link GetExtraInfoForDataSourceCommandInput} for command's `input` shape.
53
- * @see {@link GetExtraInfoForDataSourceCommandOutput} for command's `response` shape.
54
- * @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
55
- *
56
- * @throws {@link DataSourceNotFoundException} (client fault)
57
- *
58
- * @throws {@link UnauthorizedException} (client fault)
59
- *
60
- * @throws {@link ForbiddenException} (client fault)
61
- *
62
- * @throws {@link ValidationException} (client fault)
63
- *
64
- * @throws {@link KnowledgeBaseNotFoundException} (client fault)
65
- *
66
- * @throws {@link DocumentNotFoundException} (client fault)
67
- *
68
- * @throws {@link KnowledgeBaseServiceException}
69
- * <p>Base exception class for all service exceptions from KnowledgeBase service.</p>
70
- *
71
- *
72
- * @public
73
- */
74
- export declare class GetExtraInfoForDataSourceCommand extends GetExtraInfoForDataSourceCommand_base {
75
- /** @internal type navigation helper, not in runtime. */
76
- protected static __types: {
77
- api: {
78
- input: GetExtraInfoForDataSourceInput;
79
- output: GetExtraInfoForDataSourceOutput;
80
- };
81
- sdk: {
82
- input: GetExtraInfoForDataSourceCommandInput;
83
- output: GetExtraInfoForDataSourceCommandOutput;
84
- };
85
- };
86
- }