@wildix/wim-knowledge-base-client 0.0.41 → 0.0.43

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.
@@ -14,8 +14,8 @@ const DeleteKnowledgeBaseCommand_1 = require("./commands/DeleteKnowledgeBaseComm
14
14
  const DescribeDataSourceCommand_1 = require("./commands/DescribeDataSourceCommand");
15
15
  const GetDataSourceCommand_1 = require("./commands/GetDataSourceCommand");
16
16
  const GetDocumentCommand_1 = require("./commands/GetDocumentCommand");
17
- const GetDocumentPresignedDownloadUrlCommand_1 = require("./commands/GetDocumentPresignedDownloadUrlCommand");
18
- const GetDocumentPresignedUploadUrlCommand_1 = require("./commands/GetDocumentPresignedUploadUrlCommand");
17
+ const GetDocumentDownloadUrlCommand_1 = require("./commands/GetDocumentDownloadUrlCommand");
18
+ const GetDocumentUploadUrlCommand_1 = require("./commands/GetDocumentUploadUrlCommand");
19
19
  const GetKnowledgeBaseCommand_1 = require("./commands/GetKnowledgeBaseCommand");
20
20
  const GetSyncLogsCommand_1 = require("./commands/GetSyncLogsCommand");
21
21
  const GetSyncStatusCommand_1 = require("./commands/GetSyncStatusCommand");
@@ -44,8 +44,8 @@ const commands = {
44
44
  DescribeDataSourceCommand: DescribeDataSourceCommand_1.DescribeDataSourceCommand,
45
45
  GetDataSourceCommand: GetDataSourceCommand_1.GetDataSourceCommand,
46
46
  GetDocumentCommand: GetDocumentCommand_1.GetDocumentCommand,
47
- GetDocumentPresignedDownloadUrlCommand: GetDocumentPresignedDownloadUrlCommand_1.GetDocumentPresignedDownloadUrlCommand,
48
- GetDocumentPresignedUploadUrlCommand: GetDocumentPresignedUploadUrlCommand_1.GetDocumentPresignedUploadUrlCommand,
47
+ GetDocumentDownloadUrlCommand: GetDocumentDownloadUrlCommand_1.GetDocumentDownloadUrlCommand,
48
+ GetDocumentUploadUrlCommand: GetDocumentUploadUrlCommand_1.GetDocumentUploadUrlCommand,
49
49
  GetKnowledgeBaseCommand: GetKnowledgeBaseCommand_1.GetKnowledgeBaseCommand,
50
50
  GetSyncLogsCommand: GetSyncLogsCommand_1.GetSyncLogsCommand,
51
51
  GetSyncStatusCommand: GetSyncStatusCommand_1.GetSyncStatusCommand,
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetDocumentPresignedDownloadUrlCommand = exports.$Command = void 0;
3
+ exports.GetDocumentDownloadUrlCommand = 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 GetDocumentPresignedDownloadUrlCommand extends smithy_client_1.Command.classBuilder()
8
+ class GetDocumentDownloadUrlCommand 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", "GetDocumentPresignedDownloadUrl", {})
15
- .n("KnowledgeBaseClient", "GetDocumentPresignedDownloadUrlCommand")
14
+ .s("KnowledgeBase", "GetDocumentDownloadUrl", {})
15
+ .n("KnowledgeBaseClient", "GetDocumentDownloadUrlCommand")
16
16
  .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_GetDocumentPresignedDownloadUrlCommand)
18
- .de(Aws_restJson1_1.de_GetDocumentPresignedDownloadUrlCommand)
17
+ .ser(Aws_restJson1_1.se_GetDocumentDownloadUrlCommand)
18
+ .de(Aws_restJson1_1.de_GetDocumentDownloadUrlCommand)
19
19
  .build() {
20
20
  }
21
- exports.GetDocumentPresignedDownloadUrlCommand = GetDocumentPresignedDownloadUrlCommand;
21
+ exports.GetDocumentDownloadUrlCommand = GetDocumentDownloadUrlCommand;
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetDocumentPresignedUploadUrlCommand = exports.$Command = void 0;
3
+ exports.GetDocumentUploadUrlCommand = 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 GetDocumentPresignedUploadUrlCommand extends smithy_client_1.Command.classBuilder()
8
+ class GetDocumentUploadUrlCommand 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", "GetDocumentPresignedUploadUrl", {})
15
- .n("KnowledgeBaseClient", "GetDocumentPresignedUploadUrlCommand")
14
+ .s("KnowledgeBase", "GetDocumentUploadUrl", {})
15
+ .n("KnowledgeBaseClient", "GetDocumentUploadUrlCommand")
16
16
  .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_GetDocumentPresignedUploadUrlCommand)
18
- .de(Aws_restJson1_1.de_GetDocumentPresignedUploadUrlCommand)
17
+ .ser(Aws_restJson1_1.se_GetDocumentUploadUrlCommand)
18
+ .de(Aws_restJson1_1.de_GetDocumentUploadUrlCommand)
19
19
  .build() {
20
20
  }
21
- exports.GetDocumentPresignedUploadUrlCommand = GetDocumentPresignedUploadUrlCommand;
21
+ exports.GetDocumentUploadUrlCommand = GetDocumentUploadUrlCommand;
@@ -13,8 +13,8 @@ tslib_1.__exportStar(require("./DeleteKnowledgeBaseCommand"), exports);
13
13
  tslib_1.__exportStar(require("./DescribeDataSourceCommand"), exports);
14
14
  tslib_1.__exportStar(require("./GetDataSourceCommand"), exports);
15
15
  tslib_1.__exportStar(require("./GetDocumentCommand"), exports);
16
- tslib_1.__exportStar(require("./GetDocumentPresignedDownloadUrlCommand"), exports);
17
- tslib_1.__exportStar(require("./GetDocumentPresignedUploadUrlCommand"), exports);
16
+ tslib_1.__exportStar(require("./GetDocumentDownloadUrlCommand"), exports);
17
+ tslib_1.__exportStar(require("./GetDocumentUploadUrlCommand"), exports);
18
18
  tslib_1.__exportStar(require("./GetKnowledgeBaseCommand"), exports);
19
19
  tslib_1.__exportStar(require("./GetSyncLogsCommand"), exports);
20
20
  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_SearchHistoryCommand = 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_SearchHistoryCommand = 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;
3
+ exports.de_SearchHistoryCommand = exports.de_QueryKnowledgeBaseCommand = exports.de_ListKnowledgeBasesCommand = exports.de_ListDocumentsCommand = exports.de_ListDataSourcesCommand = exports.de_GetSyncStatusCommand = exports.de_GetSyncLogsCommand = exports.de_GetKnowledgeBaseCommand = exports.de_GetDocumentUploadUrlCommand = exports.de_GetDocumentDownloadUrlCommand = 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_SearchHistoryCommand = exports.se_QueryKnowledgeBaseCommand = exports.se_ListKnowledgeBasesCommand = exports.se_ListDocumentsCommand = exports.se_ListDataSourcesCommand = exports.se_GetSyncStatusCommand = exports.se_GetSyncLogsCommand = exports.se_GetKnowledgeBaseCommand = exports.se_GetDocumentUploadUrlCommand = exports.se_GetDocumentDownloadUrlCommand = 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
4
  exports.de_UpdateKnowledgeBaseCommand = exports.de_UpdateDocumentCommand = exports.de_UpdateDataSourceCommand = exports.de_StopSyncDataSourceCommand = exports.de_StartSyncDataSourceCommand = exports.de_SearchKnowledgeBaseCommand = void 0;
5
5
  const KnowledgeBaseServiceException_1 = require("../models/KnowledgeBaseServiceException");
6
6
  const models_0_1 = require("../models/models_0");
@@ -237,7 +237,7 @@ const se_GetDocumentCommand = async (input, context) => {
237
237
  return b.build();
238
238
  };
239
239
  exports.se_GetDocumentCommand = se_GetDocumentCommand;
240
- const se_GetDocumentPresignedDownloadUrlCommand = async (input, context) => {
240
+ const se_GetDocumentDownloadUrlCommand = async (input, context) => {
241
241
  const b = (0, core_2.requestBuilder)(input, context);
242
242
  const headers = {};
243
243
  b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/download_url");
@@ -254,8 +254,8 @@ const se_GetDocumentPresignedDownloadUrlCommand = async (input, context) => {
254
254
  .b(body);
255
255
  return b.build();
256
256
  };
257
- exports.se_GetDocumentPresignedDownloadUrlCommand = se_GetDocumentPresignedDownloadUrlCommand;
258
- const se_GetDocumentPresignedUploadUrlCommand = async (input, context) => {
257
+ exports.se_GetDocumentDownloadUrlCommand = se_GetDocumentDownloadUrlCommand;
258
+ const se_GetDocumentUploadUrlCommand = async (input, context) => {
259
259
  const b = (0, core_2.requestBuilder)(input, context);
260
260
  const headers = {};
261
261
  b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/upload_url");
@@ -271,7 +271,7 @@ const se_GetDocumentPresignedUploadUrlCommand = async (input, context) => {
271
271
  .b(body);
272
272
  return b.build();
273
273
  };
274
- exports.se_GetDocumentPresignedUploadUrlCommand = se_GetDocumentPresignedUploadUrlCommand;
274
+ exports.se_GetDocumentUploadUrlCommand = se_GetDocumentUploadUrlCommand;
275
275
  const se_GetKnowledgeBaseCommand = async (input, context) => {
276
276
  const b = (0, core_2.requestBuilder)(input, context);
277
277
  const headers = {};
@@ -297,6 +297,7 @@ const se_GetSyncLogsCommand = async (input, context) => {
297
297
  [_c]: [, input[_cI]],
298
298
  [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
299
299
  [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
300
+ [_s]: [, input[_s]],
300
301
  });
301
302
  let body;
302
303
  b.m("GET")
@@ -715,7 +716,7 @@ const de_GetDocumentCommand = async (output, context) => {
715
716
  return contents;
716
717
  };
717
718
  exports.de_GetDocumentCommand = de_GetDocumentCommand;
718
- const de_GetDocumentPresignedDownloadUrlCommand = async (output, context) => {
719
+ const de_GetDocumentDownloadUrlCommand = async (output, context) => {
719
720
  if (output.statusCode !== 200 && output.statusCode >= 300) {
720
721
  return de_CommandError(output, context);
721
722
  }
@@ -724,13 +725,13 @@ const de_GetDocumentPresignedDownloadUrlCommand = async (output, context) => {
724
725
  });
725
726
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
726
727
  const doc = (0, smithy_client_1.take)(data, {
727
- 'presignedDownloadUrl': smithy_client_1.expectString,
728
+ 'downloadUrl': smithy_client_1.expectString,
728
729
  });
729
730
  Object.assign(contents, doc);
730
731
  return contents;
731
732
  };
732
- exports.de_GetDocumentPresignedDownloadUrlCommand = de_GetDocumentPresignedDownloadUrlCommand;
733
- const de_GetDocumentPresignedUploadUrlCommand = async (output, context) => {
733
+ exports.de_GetDocumentDownloadUrlCommand = de_GetDocumentDownloadUrlCommand;
734
+ const de_GetDocumentUploadUrlCommand = async (output, context) => {
734
735
  if (output.statusCode !== 200 && output.statusCode >= 300) {
735
736
  return de_CommandError(output, context);
736
737
  }
@@ -739,12 +740,12 @@ const de_GetDocumentPresignedUploadUrlCommand = async (output, context) => {
739
740
  });
740
741
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
741
742
  const doc = (0, smithy_client_1.take)(data, {
742
- 'presignedUploadUrl': smithy_client_1.expectString,
743
+ 'uploadUrl': smithy_client_1.expectString,
743
744
  });
744
745
  Object.assign(contents, doc);
745
746
  return contents;
746
747
  };
747
- exports.de_GetDocumentPresignedUploadUrlCommand = de_GetDocumentPresignedUploadUrlCommand;
748
+ exports.de_GetDocumentUploadUrlCommand = de_GetDocumentUploadUrlCommand;
748
749
  const de_GetKnowledgeBaseCommand = async (output, context) => {
749
750
  if (output.statusCode !== 200 && output.statusCode >= 300) {
750
751
  return de_CommandError(output, context);
@@ -11,8 +11,8 @@ import { DeleteKnowledgeBaseCommand, } from "./commands/DeleteKnowledgeBaseComma
11
11
  import { DescribeDataSourceCommand, } from "./commands/DescribeDataSourceCommand";
12
12
  import { GetDataSourceCommand, } from "./commands/GetDataSourceCommand";
13
13
  import { GetDocumentCommand, } from "./commands/GetDocumentCommand";
14
- import { GetDocumentPresignedDownloadUrlCommand, } from "./commands/GetDocumentPresignedDownloadUrlCommand";
15
- import { GetDocumentPresignedUploadUrlCommand, } from "./commands/GetDocumentPresignedUploadUrlCommand";
14
+ import { GetDocumentDownloadUrlCommand, } from "./commands/GetDocumentDownloadUrlCommand";
15
+ import { GetDocumentUploadUrlCommand, } from "./commands/GetDocumentUploadUrlCommand";
16
16
  import { GetKnowledgeBaseCommand, } from "./commands/GetKnowledgeBaseCommand";
17
17
  import { GetSyncLogsCommand, } from "./commands/GetSyncLogsCommand";
18
18
  import { GetSyncStatusCommand, } from "./commands/GetSyncStatusCommand";
@@ -41,8 +41,8 @@ const commands = {
41
41
  DescribeDataSourceCommand,
42
42
  GetDataSourceCommand,
43
43
  GetDocumentCommand,
44
- GetDocumentPresignedDownloadUrlCommand,
45
- GetDocumentPresignedUploadUrlCommand,
44
+ GetDocumentDownloadUrlCommand,
45
+ GetDocumentUploadUrlCommand,
46
46
  GetKnowledgeBaseCommand,
47
47
  GetSyncLogsCommand,
48
48
  GetSyncStatusCommand,
@@ -0,0 +1,17 @@
1
+ import { de_GetDocumentDownloadUrlCommand, se_GetDocumentDownloadUrlCommand, } 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 GetDocumentDownloadUrlCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "GetDocumentDownloadUrl", {})
12
+ .n("KnowledgeBaseClient", "GetDocumentDownloadUrlCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetDocumentDownloadUrlCommand)
15
+ .de(de_GetDocumentDownloadUrlCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetDocumentUploadUrlCommand, se_GetDocumentUploadUrlCommand, } 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 GetDocumentUploadUrlCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "GetDocumentUploadUrl", {})
12
+ .n("KnowledgeBaseClient", "GetDocumentUploadUrlCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetDocumentUploadUrlCommand)
15
+ .de(de_GetDocumentUploadUrlCommand)
16
+ .build() {
17
+ }
@@ -10,8 +10,8 @@ export * from "./DeleteKnowledgeBaseCommand";
10
10
  export * from "./DescribeDataSourceCommand";
11
11
  export * from "./GetDataSourceCommand";
12
12
  export * from "./GetDocumentCommand";
13
- export * from "./GetDocumentPresignedDownloadUrlCommand";
14
- export * from "./GetDocumentPresignedUploadUrlCommand";
13
+ export * from "./GetDocumentDownloadUrlCommand";
14
+ export * from "./GetDocumentUploadUrlCommand";
15
15
  export * from "./GetKnowledgeBaseCommand";
16
16
  export * from "./GetSyncLogsCommand";
17
17
  export * from "./GetSyncStatusCommand";
@@ -221,7 +221,7 @@ export const se_GetDocumentCommand = async (input, context) => {
221
221
  .b(body);
222
222
  return b.build();
223
223
  };
224
- export const se_GetDocumentPresignedDownloadUrlCommand = async (input, context) => {
224
+ export const se_GetDocumentDownloadUrlCommand = async (input, context) => {
225
225
  const b = rb(input, context);
226
226
  const headers = {};
227
227
  b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/download_url");
@@ -238,7 +238,7 @@ export const se_GetDocumentPresignedDownloadUrlCommand = async (input, context)
238
238
  .b(body);
239
239
  return b.build();
240
240
  };
241
- export const se_GetDocumentPresignedUploadUrlCommand = async (input, context) => {
241
+ export const se_GetDocumentUploadUrlCommand = async (input, context) => {
242
242
  const b = rb(input, context);
243
243
  const headers = {};
244
244
  b.bp("/api/v1/data-sources/{dataSourceId}/documents/{documentId}/upload_url");
@@ -278,6 +278,7 @@ export const se_GetSyncLogsCommand = async (input, context) => {
278
278
  [_c]: [, input[_cI]],
279
279
  [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
280
280
  [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
281
+ [_s]: [, input[_s]],
281
282
  });
282
283
  let body;
283
284
  b.m("GET")
@@ -671,7 +672,7 @@ export const de_GetDocumentCommand = async (output, context) => {
671
672
  Object.assign(contents, doc);
672
673
  return contents;
673
674
  };
674
- export const de_GetDocumentPresignedDownloadUrlCommand = async (output, context) => {
675
+ export const de_GetDocumentDownloadUrlCommand = async (output, context) => {
675
676
  if (output.statusCode !== 200 && output.statusCode >= 300) {
676
677
  return de_CommandError(output, context);
677
678
  }
@@ -680,12 +681,12 @@ export const de_GetDocumentPresignedDownloadUrlCommand = async (output, context)
680
681
  });
681
682
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
682
683
  const doc = take(data, {
683
- 'presignedDownloadUrl': __expectString,
684
+ 'downloadUrl': __expectString,
684
685
  });
685
686
  Object.assign(contents, doc);
686
687
  return contents;
687
688
  };
688
- export const de_GetDocumentPresignedUploadUrlCommand = async (output, context) => {
689
+ export const de_GetDocumentUploadUrlCommand = async (output, context) => {
689
690
  if (output.statusCode !== 200 && output.statusCode >= 300) {
690
691
  return de_CommandError(output, context);
691
692
  }
@@ -694,7 +695,7 @@ export const de_GetDocumentPresignedUploadUrlCommand = async (output, context) =
694
695
  });
695
696
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
696
697
  const doc = take(data, {
697
- 'presignedUploadUrl': __expectString,
698
+ 'uploadUrl': __expectString,
698
699
  });
699
700
  Object.assign(contents, doc);
700
701
  return contents;
@@ -11,8 +11,8 @@ import { DeleteKnowledgeBaseCommandInput, DeleteKnowledgeBaseCommandOutput } fro
11
11
  import { DescribeDataSourceCommandInput, DescribeDataSourceCommandOutput } from "./commands/DescribeDataSourceCommand";
12
12
  import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "./commands/GetDataSourceCommand";
13
13
  import { GetDocumentCommandInput, GetDocumentCommandOutput } from "./commands/GetDocumentCommand";
14
- import { GetDocumentPresignedDownloadUrlCommandInput, GetDocumentPresignedDownloadUrlCommandOutput } from "./commands/GetDocumentPresignedDownloadUrlCommand";
15
- import { GetDocumentPresignedUploadUrlCommandInput, GetDocumentPresignedUploadUrlCommandOutput } from "./commands/GetDocumentPresignedUploadUrlCommand";
14
+ import { GetDocumentDownloadUrlCommandInput, GetDocumentDownloadUrlCommandOutput } from "./commands/GetDocumentDownloadUrlCommand";
15
+ import { GetDocumentUploadUrlCommandInput, GetDocumentUploadUrlCommandOutput } from "./commands/GetDocumentUploadUrlCommand";
16
16
  import { GetKnowledgeBaseCommandInput, GetKnowledgeBaseCommandOutput } from "./commands/GetKnowledgeBaseCommand";
17
17
  import { GetSyncLogsCommandInput, GetSyncLogsCommandOutput } from "./commands/GetSyncLogsCommand";
18
18
  import { GetSyncStatusCommandInput, GetSyncStatusCommandOutput } from "./commands/GetSyncStatusCommand";
@@ -102,17 +102,17 @@ export interface KnowledgeBase {
102
102
  getDocument(args: GetDocumentCommandInput, cb: (err: any, data?: GetDocumentCommandOutput) => void): void;
103
103
  getDocument(args: GetDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentCommandOutput) => void): void;
104
104
  /**
105
- * @see {@link GetDocumentPresignedDownloadUrlCommand}
105
+ * @see {@link GetDocumentDownloadUrlCommand}
106
106
  */
107
- getDocumentPresignedDownloadUrl(args: GetDocumentPresignedDownloadUrlCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentPresignedDownloadUrlCommandOutput>;
108
- getDocumentPresignedDownloadUrl(args: GetDocumentPresignedDownloadUrlCommandInput, cb: (err: any, data?: GetDocumentPresignedDownloadUrlCommandOutput) => void): void;
109
- getDocumentPresignedDownloadUrl(args: GetDocumentPresignedDownloadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentPresignedDownloadUrlCommandOutput) => void): void;
107
+ getDocumentDownloadUrl(args: GetDocumentDownloadUrlCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentDownloadUrlCommandOutput>;
108
+ getDocumentDownloadUrl(args: GetDocumentDownloadUrlCommandInput, cb: (err: any, data?: GetDocumentDownloadUrlCommandOutput) => void): void;
109
+ getDocumentDownloadUrl(args: GetDocumentDownloadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentDownloadUrlCommandOutput) => void): void;
110
110
  /**
111
- * @see {@link GetDocumentPresignedUploadUrlCommand}
111
+ * @see {@link GetDocumentUploadUrlCommand}
112
112
  */
113
- getDocumentPresignedUploadUrl(args: GetDocumentPresignedUploadUrlCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentPresignedUploadUrlCommandOutput>;
114
- getDocumentPresignedUploadUrl(args: GetDocumentPresignedUploadUrlCommandInput, cb: (err: any, data?: GetDocumentPresignedUploadUrlCommandOutput) => void): void;
115
- getDocumentPresignedUploadUrl(args: GetDocumentPresignedUploadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentPresignedUploadUrlCommandOutput) => void): void;
113
+ getDocumentUploadUrl(args: GetDocumentUploadUrlCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentUploadUrlCommandOutput>;
114
+ getDocumentUploadUrl(args: GetDocumentUploadUrlCommandInput, cb: (err: any, data?: GetDocumentUploadUrlCommandOutput) => void): void;
115
+ getDocumentUploadUrl(args: GetDocumentUploadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentUploadUrlCommandOutput) => void): void;
116
116
  /**
117
117
  * @see {@link GetKnowledgeBaseCommand}
118
118
  */
@@ -10,8 +10,8 @@ import { DeleteKnowledgeBaseCommandInput, DeleteKnowledgeBaseCommandOutput } fro
10
10
  import { DescribeDataSourceCommandInput, DescribeDataSourceCommandOutput } from "./commands/DescribeDataSourceCommand";
11
11
  import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "./commands/GetDataSourceCommand";
12
12
  import { GetDocumentCommandInput, GetDocumentCommandOutput } from "./commands/GetDocumentCommand";
13
- import { GetDocumentPresignedDownloadUrlCommandInput, GetDocumentPresignedDownloadUrlCommandOutput } from "./commands/GetDocumentPresignedDownloadUrlCommand";
14
- import { GetDocumentPresignedUploadUrlCommandInput, GetDocumentPresignedUploadUrlCommandOutput } from "./commands/GetDocumentPresignedUploadUrlCommand";
13
+ import { GetDocumentDownloadUrlCommandInput, GetDocumentDownloadUrlCommandOutput } from "./commands/GetDocumentDownloadUrlCommand";
14
+ import { GetDocumentUploadUrlCommandInput, GetDocumentUploadUrlCommandOutput } from "./commands/GetDocumentUploadUrlCommand";
15
15
  import { GetKnowledgeBaseCommandInput, GetKnowledgeBaseCommandOutput } from "./commands/GetKnowledgeBaseCommand";
16
16
  import { GetSyncLogsCommandInput, GetSyncLogsCommandOutput } from "./commands/GetSyncLogsCommand";
17
17
  import { GetSyncStatusCommandInput, GetSyncStatusCommandOutput } from "./commands/GetSyncStatusCommand";
@@ -37,11 +37,11 @@ export { __Client };
37
37
  /**
38
38
  * @public
39
39
  */
40
- export type ServiceInputTypes = CleanDataSourceCommandInput | CloneDataSourceCommandInput | ConfigureDataSourceCommandInput | CreateDataSourceCommandInput | CreateDocumentCommandInput | CreateKnowledgeBaseCommandInput | DeleteDataSourceCommandInput | DeleteDocumentCommandInput | DeleteKnowledgeBaseCommandInput | DescribeDataSourceCommandInput | GetDataSourceCommandInput | GetDocumentCommandInput | GetDocumentPresignedDownloadUrlCommandInput | GetDocumentPresignedUploadUrlCommandInput | GetKnowledgeBaseCommandInput | GetSyncLogsCommandInput | GetSyncStatusCommandInput | ListDataSourcesCommandInput | ListDocumentsCommandInput | ListKnowledgeBasesCommandInput | QueryKnowledgeBaseCommandInput | SearchHistoryCommandInput | SearchKnowledgeBaseCommandInput | StartSyncDataSourceCommandInput | StopSyncDataSourceCommandInput | UpdateDataSourceCommandInput | UpdateDocumentCommandInput | UpdateKnowledgeBaseCommandInput;
40
+ export type ServiceInputTypes = CleanDataSourceCommandInput | CloneDataSourceCommandInput | ConfigureDataSourceCommandInput | CreateDataSourceCommandInput | CreateDocumentCommandInput | CreateKnowledgeBaseCommandInput | DeleteDataSourceCommandInput | DeleteDocumentCommandInput | DeleteKnowledgeBaseCommandInput | DescribeDataSourceCommandInput | GetDataSourceCommandInput | GetDocumentCommandInput | GetDocumentDownloadUrlCommandInput | GetDocumentUploadUrlCommandInput | GetKnowledgeBaseCommandInput | GetSyncLogsCommandInput | GetSyncStatusCommandInput | ListDataSourcesCommandInput | ListDocumentsCommandInput | ListKnowledgeBasesCommandInput | QueryKnowledgeBaseCommandInput | SearchHistoryCommandInput | SearchKnowledgeBaseCommandInput | StartSyncDataSourceCommandInput | StopSyncDataSourceCommandInput | UpdateDataSourceCommandInput | UpdateDocumentCommandInput | UpdateKnowledgeBaseCommandInput;
41
41
  /**
42
42
  * @public
43
43
  */
44
- export type ServiceOutputTypes = CleanDataSourceCommandOutput | CloneDataSourceCommandOutput | ConfigureDataSourceCommandOutput | CreateDataSourceCommandOutput | CreateDocumentCommandOutput | CreateKnowledgeBaseCommandOutput | DeleteDataSourceCommandOutput | DeleteDocumentCommandOutput | DeleteKnowledgeBaseCommandOutput | DescribeDataSourceCommandOutput | GetDataSourceCommandOutput | GetDocumentCommandOutput | GetDocumentPresignedDownloadUrlCommandOutput | GetDocumentPresignedUploadUrlCommandOutput | GetKnowledgeBaseCommandOutput | GetSyncLogsCommandOutput | GetSyncStatusCommandOutput | ListDataSourcesCommandOutput | ListDocumentsCommandOutput | ListKnowledgeBasesCommandOutput | QueryKnowledgeBaseCommandOutput | SearchHistoryCommandOutput | SearchKnowledgeBaseCommandOutput | StartSyncDataSourceCommandOutput | StopSyncDataSourceCommandOutput | UpdateDataSourceCommandOutput | UpdateDocumentCommandOutput | UpdateKnowledgeBaseCommandOutput;
44
+ export type ServiceOutputTypes = CleanDataSourceCommandOutput | CloneDataSourceCommandOutput | ConfigureDataSourceCommandOutput | CreateDataSourceCommandOutput | CreateDocumentCommandOutput | CreateKnowledgeBaseCommandOutput | DeleteDataSourceCommandOutput | DeleteDocumentCommandOutput | DeleteKnowledgeBaseCommandOutput | DescribeDataSourceCommandOutput | GetDataSourceCommandOutput | GetDocumentCommandOutput | GetDocumentDownloadUrlCommandOutput | GetDocumentUploadUrlCommandOutput | GetKnowledgeBaseCommandOutput | GetSyncLogsCommandOutput | GetSyncStatusCommandOutput | ListDataSourcesCommandOutput | ListDocumentsCommandOutput | ListKnowledgeBasesCommandOutput | QueryKnowledgeBaseCommandOutput | SearchHistoryCommandOutput | SearchKnowledgeBaseCommandOutput | StartSyncDataSourceCommandOutput | StopSyncDataSourceCommandOutput | UpdateDataSourceCommandOutput | UpdateDocumentCommandOutput | UpdateKnowledgeBaseCommandOutput;
45
45
  /**
46
46
  * @public
47
47
  */
@@ -0,0 +1,87 @@
1
+ import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
2
+ import { GetDocumentDownloadUrlInput, GetDocumentDownloadUrlOutput } 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 GetDocumentDownloadUrlCommand}.
14
+ */
15
+ export interface GetDocumentDownloadUrlCommandInput extends GetDocumentDownloadUrlInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetDocumentDownloadUrlCommand}.
21
+ */
22
+ export interface GetDocumentDownloadUrlCommandOutput extends GetDocumentDownloadUrlOutput, __MetadataBearer {
23
+ }
24
+ declare const GetDocumentDownloadUrlCommand_base: {
25
+ new (input: GetDocumentDownloadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GetDocumentDownloadUrlCommandInput, GetDocumentDownloadUrlCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetDocumentDownloadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GetDocumentDownloadUrlCommandInput, GetDocumentDownloadUrlCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Get a presigned URL for downloading the original file of the document
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { KnowledgeBaseClient, GetDocumentDownloadUrlCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
35
+ * // const { KnowledgeBaseClient, GetDocumentDownloadUrlCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
36
+ * const client = new KnowledgeBaseClient(config);
37
+ * const input = { // GetDocumentDownloadUrlInput
38
+ * companyId: "STRING_VALUE",
39
+ * dataSourceId: "STRING_VALUE", // required
40
+ * documentId: "STRING_VALUE", // required
41
+ * documentType: "original" || "markdown",
42
+ * };
43
+ * const command = new GetDocumentDownloadUrlCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetDocumentDownloadUrlOutput
46
+ * // downloadUrl: "STRING_VALUE", // required
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param GetDocumentDownloadUrlCommandInput - {@link GetDocumentDownloadUrlCommandInput}
52
+ * @returns {@link GetDocumentDownloadUrlCommandOutput}
53
+ * @see {@link GetDocumentDownloadUrlCommandInput} for command's `input` shape.
54
+ * @see {@link GetDocumentDownloadUrlCommandOutput} for command's `response` shape.
55
+ * @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
56
+ *
57
+ * @throws {@link DocumentNotFoundException} (client fault)
58
+ *
59
+ * @throws {@link UnauthorizedException} (client fault)
60
+ *
61
+ * @throws {@link ForbiddenException} (client fault)
62
+ *
63
+ * @throws {@link ValidationException} (client fault)
64
+ *
65
+ * @throws {@link KnowledgeBaseNotFoundException} (client fault)
66
+ *
67
+ * @throws {@link DataSourceNotFoundException} (client fault)
68
+ *
69
+ * @throws {@link KnowledgeBaseServiceException}
70
+ * <p>Base exception class for all service exceptions from KnowledgeBase service.</p>
71
+ *
72
+ *
73
+ * @public
74
+ */
75
+ export declare class GetDocumentDownloadUrlCommand extends GetDocumentDownloadUrlCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: GetDocumentDownloadUrlInput;
80
+ output: GetDocumentDownloadUrlOutput;
81
+ };
82
+ sdk: {
83
+ input: GetDocumentDownloadUrlCommandInput;
84
+ output: GetDocumentDownloadUrlCommandOutput;
85
+ };
86
+ };
87
+ }
@@ -0,0 +1,86 @@
1
+ import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
2
+ import { GetDocumentUploadUrlInput, GetDocumentUploadUrlOutput } 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 GetDocumentUploadUrlCommand}.
14
+ */
15
+ export interface GetDocumentUploadUrlCommandInput extends GetDocumentUploadUrlInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetDocumentUploadUrlCommand}.
21
+ */
22
+ export interface GetDocumentUploadUrlCommandOutput extends GetDocumentUploadUrlOutput, __MetadataBearer {
23
+ }
24
+ declare const GetDocumentUploadUrlCommand_base: {
25
+ new (input: GetDocumentUploadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GetDocumentUploadUrlCommandInput, GetDocumentUploadUrlCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetDocumentUploadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GetDocumentUploadUrlCommandInput, GetDocumentUploadUrlCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Get a presigned URL for uploading the original file of the document. You must upload the file to this URL using the PUT method.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { KnowledgeBaseClient, GetDocumentUploadUrlCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
35
+ * // const { KnowledgeBaseClient, GetDocumentUploadUrlCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
36
+ * const client = new KnowledgeBaseClient(config);
37
+ * const input = { // GetDocumentUploadUrlInput
38
+ * companyId: "STRING_VALUE",
39
+ * dataSourceId: "STRING_VALUE", // required
40
+ * documentId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new GetDocumentUploadUrlCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetDocumentUploadUrlOutput
45
+ * // uploadUrl: "STRING_VALUE", // required
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param GetDocumentUploadUrlCommandInput - {@link GetDocumentUploadUrlCommandInput}
51
+ * @returns {@link GetDocumentUploadUrlCommandOutput}
52
+ * @see {@link GetDocumentUploadUrlCommandInput} for command's `input` shape.
53
+ * @see {@link GetDocumentUploadUrlCommandOutput} for command's `response` shape.
54
+ * @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
55
+ *
56
+ * @throws {@link DocumentNotFoundException} (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 DataSourceNotFoundException} (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 GetDocumentUploadUrlCommand extends GetDocumentUploadUrlCommand_base {
75
+ /** @internal type navigation helper, not in runtime. */
76
+ protected static __types: {
77
+ api: {
78
+ input: GetDocumentUploadUrlInput;
79
+ output: GetDocumentUploadUrlOutput;
80
+ };
81
+ sdk: {
82
+ input: GetDocumentUploadUrlCommandInput;
83
+ output: GetDocumentUploadUrlCommandOutput;
84
+ };
85
+ };
86
+ }
@@ -36,9 +36,10 @@ declare const GetSyncLogsCommand_base: {
36
36
  * const client = new KnowledgeBaseClient(config);
37
37
  * const input = { // GetSyncLogsInput
38
38
  * companyId: "STRING_VALUE",
39
- * dataSourceId: "STRING_VALUE", // required
40
39
  * limit: Number("int"),
41
40
  * offset: Number("int"),
41
+ * sort: "STRING_VALUE",
42
+ * dataSourceId: "STRING_VALUE", // required
42
43
  * };
43
44
  * const command = new GetSyncLogsCommand(input);
44
45
  * const response = await client.send(command);
@@ -47,7 +47,7 @@ declare const SearchHistoryCommand_base: {
47
47
  * searchUser: "STRING_VALUE",
48
48
  * mode: "search" || "ai_answer",
49
49
  * },
50
- * search: "STRING_VALUE", // required
50
+ * search: "STRING_VALUE",
51
51
  * };
52
52
  * const command = new SearchHistoryCommand(input);
53
53
  * const response = await client.send(command);
@@ -10,8 +10,8 @@ export * from "./DeleteKnowledgeBaseCommand";
10
10
  export * from "./DescribeDataSourceCommand";
11
11
  export * from "./GetDataSourceCommand";
12
12
  export * from "./GetDocumentCommand";
13
- export * from "./GetDocumentPresignedDownloadUrlCommand";
14
- export * from "./GetDocumentPresignedUploadUrlCommand";
13
+ export * from "./GetDocumentDownloadUrlCommand";
14
+ export * from "./GetDocumentUploadUrlCommand";
15
15
  export * from "./GetKnowledgeBaseCommand";
16
16
  export * from "./GetSyncLogsCommand";
17
17
  export * from "./GetSyncStatusCommand";
@@ -1143,7 +1143,7 @@ export interface GetDocumentOutput {
1143
1143
  /**
1144
1144
  * @public
1145
1145
  */
1146
- export interface GetDocumentPresignedDownloadUrlInput {
1146
+ export interface GetDocumentDownloadUrlInput {
1147
1147
  /**
1148
1148
  * The unique identifier of the tenant when a service token is used.
1149
1149
  * @public
@@ -1168,13 +1168,13 @@ export interface GetDocumentPresignedDownloadUrlInput {
1168
1168
  /**
1169
1169
  * @public
1170
1170
  */
1171
- export interface GetDocumentPresignedDownloadUrlOutput {
1172
- presignedDownloadUrl: string;
1171
+ export interface GetDocumentDownloadUrlOutput {
1172
+ downloadUrl: string;
1173
1173
  }
1174
1174
  /**
1175
1175
  * @public
1176
1176
  */
1177
- export interface GetDocumentPresignedUploadUrlInput {
1177
+ export interface GetDocumentUploadUrlInput {
1178
1178
  /**
1179
1179
  * The unique identifier of the tenant when a service token is used.
1180
1180
  * @public
@@ -1194,8 +1194,8 @@ export interface GetDocumentPresignedUploadUrlInput {
1194
1194
  /**
1195
1195
  * @public
1196
1196
  */
1197
- export interface GetDocumentPresignedUploadUrlOutput {
1198
- presignedUploadUrl: string;
1197
+ export interface GetDocumentUploadUrlOutput {
1198
+ uploadUrl: string;
1199
1199
  }
1200
1200
  /**
1201
1201
  * @public
@@ -1227,21 +1227,18 @@ export interface GetSyncLogsInput {
1227
1227
  * @public
1228
1228
  */
1229
1229
  companyId?: string | undefined;
1230
+ limit?: number | undefined;
1231
+ offset?: number | undefined;
1230
1232
  /**
1231
- * Unique identifier of the data source
1232
- * @public
1233
- */
1234
- dataSourceId: string;
1235
- /**
1236
- * Maximum number of log entries to return. Use pagination to retrieve large log sets efficiently. Valid range: 1-100. Defaults to 50 if not specified
1233
+ * Sort order of the results. If there is a '-' prefix, the results will be sorted in descending order. Otherwise, the results will be sorted in ascending order. Example: '-createdAt' will sort the results by createdAt in descending order. 'createdAt' will sort the results by createdAt in ascending order.
1237
1234
  * @public
1238
1235
  */
1239
- limit?: number | undefined;
1236
+ sort?: string | undefined;
1240
1237
  /**
1241
- * Number of log entries to skip from the beginning for pagination. Use with limit to retrieve specific log pages. Example: 0 for first page, 50 for second page with limit=50. Defaults to 0 if not specified
1238
+ * Unique identifier of the data source
1242
1239
  * @public
1243
1240
  */
1244
- offset?: number | undefined;
1241
+ dataSourceId: string;
1245
1242
  }
1246
1243
  /**
1247
1244
  * @public
@@ -1567,7 +1564,7 @@ export interface SearchHistoryInput {
1567
1564
  * The search query string for filtering the history results.
1568
1565
  * @public
1569
1566
  */
1570
- search: string;
1567
+ search?: string | undefined;
1571
1568
  }
1572
1569
  /**
1573
1570
  * @public
@@ -10,8 +10,8 @@ import { DeleteKnowledgeBaseCommandInput, DeleteKnowledgeBaseCommandOutput } fro
10
10
  import { DescribeDataSourceCommandInput, DescribeDataSourceCommandOutput } from "../commands/DescribeDataSourceCommand";
11
11
  import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "../commands/GetDataSourceCommand";
12
12
  import { GetDocumentCommandInput, GetDocumentCommandOutput } from "../commands/GetDocumentCommand";
13
- import { GetDocumentPresignedDownloadUrlCommandInput, GetDocumentPresignedDownloadUrlCommandOutput } from "../commands/GetDocumentPresignedDownloadUrlCommand";
14
- import { GetDocumentPresignedUploadUrlCommandInput, GetDocumentPresignedUploadUrlCommandOutput } from "../commands/GetDocumentPresignedUploadUrlCommand";
13
+ import { GetDocumentDownloadUrlCommandInput, GetDocumentDownloadUrlCommandOutput } from "../commands/GetDocumentDownloadUrlCommand";
14
+ import { GetDocumentUploadUrlCommandInput, GetDocumentUploadUrlCommandOutput } from "../commands/GetDocumentUploadUrlCommand";
15
15
  import { GetKnowledgeBaseCommandInput, GetKnowledgeBaseCommandOutput } from "../commands/GetKnowledgeBaseCommand";
16
16
  import { GetSyncLogsCommandInput, GetSyncLogsCommandOutput } from "../commands/GetSyncLogsCommand";
17
17
  import { GetSyncStatusCommandInput, GetSyncStatusCommandOutput } from "../commands/GetSyncStatusCommand";
@@ -77,13 +77,13 @@ export declare const se_GetDataSourceCommand: (input: GetDataSourceCommandInput,
77
77
  */
78
78
  export declare const se_GetDocumentCommand: (input: GetDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
79
79
  /**
80
- * serializeAws_restJson1GetDocumentPresignedDownloadUrlCommand
80
+ * serializeAws_restJson1GetDocumentDownloadUrlCommand
81
81
  */
82
- export declare const se_GetDocumentPresignedDownloadUrlCommand: (input: GetDocumentPresignedDownloadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
82
+ export declare const se_GetDocumentDownloadUrlCommand: (input: GetDocumentDownloadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
83
83
  /**
84
- * serializeAws_restJson1GetDocumentPresignedUploadUrlCommand
84
+ * serializeAws_restJson1GetDocumentUploadUrlCommand
85
85
  */
86
- export declare const se_GetDocumentPresignedUploadUrlCommand: (input: GetDocumentPresignedUploadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
86
+ export declare const se_GetDocumentUploadUrlCommand: (input: GetDocumentUploadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
87
87
  /**
88
88
  * serializeAws_restJson1GetKnowledgeBaseCommand
89
89
  */
@@ -189,13 +189,13 @@ export declare const de_GetDataSourceCommand: (output: __HttpResponse, context:
189
189
  */
190
190
  export declare const de_GetDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentCommandOutput>;
191
191
  /**
192
- * deserializeAws_restJson1GetDocumentPresignedDownloadUrlCommand
192
+ * deserializeAws_restJson1GetDocumentDownloadUrlCommand
193
193
  */
194
- export declare const de_GetDocumentPresignedDownloadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentPresignedDownloadUrlCommandOutput>;
194
+ export declare const de_GetDocumentDownloadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentDownloadUrlCommandOutput>;
195
195
  /**
196
- * deserializeAws_restJson1GetDocumentPresignedUploadUrlCommand
196
+ * deserializeAws_restJson1GetDocumentUploadUrlCommand
197
197
  */
198
- export declare const de_GetDocumentPresignedUploadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentPresignedUploadUrlCommandOutput>;
198
+ export declare const de_GetDocumentUploadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentUploadUrlCommandOutput>;
199
199
  /**
200
200
  * deserializeAws_restJson1GetKnowledgeBaseCommand
201
201
  */
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.41",
4
+ "version": "0.0.43",
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_GetDocumentPresignedDownloadUrlCommand, se_GetDocumentPresignedDownloadUrlCommand, } 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 GetDocumentPresignedDownloadUrlCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("KnowledgeBase", "GetDocumentPresignedDownloadUrl", {})
12
- .n("KnowledgeBaseClient", "GetDocumentPresignedDownloadUrlCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetDocumentPresignedDownloadUrlCommand)
15
- .de(de_GetDocumentPresignedDownloadUrlCommand)
16
- .build() {
17
- }
@@ -1,17 +0,0 @@
1
- import { de_GetDocumentPresignedUploadUrlCommand, se_GetDocumentPresignedUploadUrlCommand, } 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 GetDocumentPresignedUploadUrlCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("KnowledgeBase", "GetDocumentPresignedUploadUrl", {})
12
- .n("KnowledgeBaseClient", "GetDocumentPresignedUploadUrlCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetDocumentPresignedUploadUrlCommand)
15
- .de(de_GetDocumentPresignedUploadUrlCommand)
16
- .build() {
17
- }
@@ -1,87 +0,0 @@
1
- import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
2
- import { GetDocumentPresignedDownloadUrlInput, GetDocumentPresignedDownloadUrlOutput } 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 GetDocumentPresignedDownloadUrlCommand}.
14
- */
15
- export interface GetDocumentPresignedDownloadUrlCommandInput extends GetDocumentPresignedDownloadUrlInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link GetDocumentPresignedDownloadUrlCommand}.
21
- */
22
- export interface GetDocumentPresignedDownloadUrlCommandOutput extends GetDocumentPresignedDownloadUrlOutput, __MetadataBearer {
23
- }
24
- declare const GetDocumentPresignedDownloadUrlCommand_base: {
25
- new (input: GetDocumentPresignedDownloadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GetDocumentPresignedDownloadUrlCommandInput, GetDocumentPresignedDownloadUrlCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: GetDocumentPresignedDownloadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GetDocumentPresignedDownloadUrlCommandInput, GetDocumentPresignedDownloadUrlCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Get a presigned URL for downloading the original file of the document
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { KnowledgeBaseClient, GetDocumentPresignedDownloadUrlCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
35
- * // const { KnowledgeBaseClient, GetDocumentPresignedDownloadUrlCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
36
- * const client = new KnowledgeBaseClient(config);
37
- * const input = { // GetDocumentPresignedDownloadUrlInput
38
- * companyId: "STRING_VALUE",
39
- * dataSourceId: "STRING_VALUE", // required
40
- * documentId: "STRING_VALUE", // required
41
- * documentType: "original" || "markdown",
42
- * };
43
- * const command = new GetDocumentPresignedDownloadUrlCommand(input);
44
- * const response = await client.send(command);
45
- * // { // GetDocumentPresignedDownloadUrlOutput
46
- * // presignedDownloadUrl: "STRING_VALUE", // required
47
- * // };
48
- *
49
- * ```
50
- *
51
- * @param GetDocumentPresignedDownloadUrlCommandInput - {@link GetDocumentPresignedDownloadUrlCommandInput}
52
- * @returns {@link GetDocumentPresignedDownloadUrlCommandOutput}
53
- * @see {@link GetDocumentPresignedDownloadUrlCommandInput} for command's `input` shape.
54
- * @see {@link GetDocumentPresignedDownloadUrlCommandOutput} for command's `response` shape.
55
- * @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
56
- *
57
- * @throws {@link DocumentNotFoundException} (client fault)
58
- *
59
- * @throws {@link UnauthorizedException} (client fault)
60
- *
61
- * @throws {@link ForbiddenException} (client fault)
62
- *
63
- * @throws {@link ValidationException} (client fault)
64
- *
65
- * @throws {@link KnowledgeBaseNotFoundException} (client fault)
66
- *
67
- * @throws {@link DataSourceNotFoundException} (client fault)
68
- *
69
- * @throws {@link KnowledgeBaseServiceException}
70
- * <p>Base exception class for all service exceptions from KnowledgeBase service.</p>
71
- *
72
- *
73
- * @public
74
- */
75
- export declare class GetDocumentPresignedDownloadUrlCommand extends GetDocumentPresignedDownloadUrlCommand_base {
76
- /** @internal type navigation helper, not in runtime. */
77
- protected static __types: {
78
- api: {
79
- input: GetDocumentPresignedDownloadUrlInput;
80
- output: GetDocumentPresignedDownloadUrlOutput;
81
- };
82
- sdk: {
83
- input: GetDocumentPresignedDownloadUrlCommandInput;
84
- output: GetDocumentPresignedDownloadUrlCommandOutput;
85
- };
86
- };
87
- }
@@ -1,86 +0,0 @@
1
- import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
2
- import { GetDocumentPresignedUploadUrlInput, GetDocumentPresignedUploadUrlOutput } 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 GetDocumentPresignedUploadUrlCommand}.
14
- */
15
- export interface GetDocumentPresignedUploadUrlCommandInput extends GetDocumentPresignedUploadUrlInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link GetDocumentPresignedUploadUrlCommand}.
21
- */
22
- export interface GetDocumentPresignedUploadUrlCommandOutput extends GetDocumentPresignedUploadUrlOutput, __MetadataBearer {
23
- }
24
- declare const GetDocumentPresignedUploadUrlCommand_base: {
25
- new (input: GetDocumentPresignedUploadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GetDocumentPresignedUploadUrlCommandInput, GetDocumentPresignedUploadUrlCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: GetDocumentPresignedUploadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GetDocumentPresignedUploadUrlCommandInput, GetDocumentPresignedUploadUrlCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Get a presigned URL for uploading the original file of the document. You must upload the file to this URL using the PUT method.
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { KnowledgeBaseClient, GetDocumentPresignedUploadUrlCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
35
- * // const { KnowledgeBaseClient, GetDocumentPresignedUploadUrlCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
36
- * const client = new KnowledgeBaseClient(config);
37
- * const input = { // GetDocumentPresignedUploadUrlInput
38
- * companyId: "STRING_VALUE",
39
- * dataSourceId: "STRING_VALUE", // required
40
- * documentId: "STRING_VALUE", // required
41
- * };
42
- * const command = new GetDocumentPresignedUploadUrlCommand(input);
43
- * const response = await client.send(command);
44
- * // { // GetDocumentPresignedUploadUrlOutput
45
- * // presignedUploadUrl: "STRING_VALUE", // required
46
- * // };
47
- *
48
- * ```
49
- *
50
- * @param GetDocumentPresignedUploadUrlCommandInput - {@link GetDocumentPresignedUploadUrlCommandInput}
51
- * @returns {@link GetDocumentPresignedUploadUrlCommandOutput}
52
- * @see {@link GetDocumentPresignedUploadUrlCommandInput} for command's `input` shape.
53
- * @see {@link GetDocumentPresignedUploadUrlCommandOutput} for command's `response` shape.
54
- * @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
55
- *
56
- * @throws {@link DocumentNotFoundException} (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 DataSourceNotFoundException} (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 GetDocumentPresignedUploadUrlCommand extends GetDocumentPresignedUploadUrlCommand_base {
75
- /** @internal type navigation helper, not in runtime. */
76
- protected static __types: {
77
- api: {
78
- input: GetDocumentPresignedUploadUrlInput;
79
- output: GetDocumentPresignedUploadUrlOutput;
80
- };
81
- sdk: {
82
- input: GetDocumentPresignedUploadUrlCommandInput;
83
- output: GetDocumentPresignedUploadUrlCommandOutput;
84
- };
85
- };
86
- }