@aws-sdk/client-textract 3.948.0 → 3.953.0

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.
Files changed (45) hide show
  1. package/dist-cjs/index.js +496 -346
  2. package/dist-cjs/runtimeConfig.shared.js +6 -6
  3. package/dist-es/commands/AnalyzeDocumentCommand.js +2 -2
  4. package/dist-es/commands/AnalyzeExpenseCommand.js +2 -2
  5. package/dist-es/commands/AnalyzeIDCommand.js +2 -2
  6. package/dist-es/commands/CreateAdapterCommand.js +2 -2
  7. package/dist-es/commands/CreateAdapterVersionCommand.js +2 -2
  8. package/dist-es/commands/DeleteAdapterCommand.js +2 -2
  9. package/dist-es/commands/DeleteAdapterVersionCommand.js +2 -2
  10. package/dist-es/commands/DetectDocumentTextCommand.js +2 -2
  11. package/dist-es/commands/GetAdapterCommand.js +2 -2
  12. package/dist-es/commands/GetAdapterVersionCommand.js +2 -2
  13. package/dist-es/commands/GetDocumentAnalysisCommand.js +2 -2
  14. package/dist-es/commands/GetDocumentTextDetectionCommand.js +2 -2
  15. package/dist-es/commands/GetExpenseAnalysisCommand.js +2 -2
  16. package/dist-es/commands/GetLendingAnalysisCommand.js +2 -2
  17. package/dist-es/commands/GetLendingAnalysisSummaryCommand.js +2 -2
  18. package/dist-es/commands/ListAdapterVersionsCommand.js +2 -2
  19. package/dist-es/commands/ListAdaptersCommand.js +2 -2
  20. package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
  21. package/dist-es/commands/StartDocumentAnalysisCommand.js +2 -2
  22. package/dist-es/commands/StartDocumentTextDetectionCommand.js +2 -2
  23. package/dist-es/commands/StartExpenseAnalysisCommand.js +2 -2
  24. package/dist-es/commands/StartLendingAnalysisCommand.js +2 -2
  25. package/dist-es/commands/TagResourceCommand.js +2 -2
  26. package/dist-es/commands/UntagResourceCommand.js +2 -2
  27. package/dist-es/commands/UpdateAdapterCommand.js +2 -2
  28. package/dist-es/index.js +1 -0
  29. package/dist-es/runtimeConfig.shared.js +6 -6
  30. package/dist-es/schemas/schemas_0.js +289 -282
  31. package/dist-types/TextractClient.d.ts +1 -10
  32. package/dist-types/index.d.ts +1 -0
  33. package/dist-types/runtimeConfig.browser.d.ts +6 -2
  34. package/dist-types/runtimeConfig.d.ts +6 -2
  35. package/dist-types/runtimeConfig.native.d.ts +6 -2
  36. package/dist-types/runtimeConfig.shared.d.ts +6 -1
  37. package/dist-types/schemas/schemas_0.d.ts +144 -185
  38. package/dist-types/ts3.4/TextractClient.d.ts +0 -4
  39. package/dist-types/ts3.4/index.d.ts +1 -0
  40. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -5
  41. package/dist-types/ts3.4/runtimeConfig.d.ts +9 -5
  42. package/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -5
  43. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -4
  44. package/dist-types/ts3.4/schemas/schemas_0.d.ts +143 -186
  45. package/package.json +34 -34
@@ -26,12 +26,12 @@ const getRuntimeConfig = (config) => {
26
26
  },
27
27
  ],
28
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
- protocol: config?.protocol ??
30
- new protocols_1.AwsJson1_1Protocol({
31
- defaultNamespace: "com.amazonaws.textract",
32
- serviceTarget: "Textract",
33
- awsQueryCompatible: false,
34
- }),
29
+ protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
30
+ protocolSettings: config?.protocolSettings ?? {
31
+ defaultNamespace: "com.amazonaws.textract",
32
+ version: "2018-06-27",
33
+ serviceTarget: "Textract",
34
+ },
35
35
  serviceId: config?.serviceId ?? "Textract",
36
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
37
37
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { AnalyzeDocument } from "../schemas/schemas_0";
4
+ import { AnalyzeDocument$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class AnalyzeDocumentCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class AnalyzeDocumentCommand extends $Command
11
11
  })
12
12
  .s("Textract", "AnalyzeDocument", {})
13
13
  .n("TextractClient", "AnalyzeDocumentCommand")
14
- .sc(AnalyzeDocument)
14
+ .sc(AnalyzeDocument$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { AnalyzeExpense } from "../schemas/schemas_0";
4
+ import { AnalyzeExpense$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class AnalyzeExpenseCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class AnalyzeExpenseCommand extends $Command
11
11
  })
12
12
  .s("Textract", "AnalyzeExpense", {})
13
13
  .n("TextractClient", "AnalyzeExpenseCommand")
14
- .sc(AnalyzeExpense)
14
+ .sc(AnalyzeExpense$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { AnalyzeID } from "../schemas/schemas_0";
4
+ import { AnalyzeID$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class AnalyzeIDCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class AnalyzeIDCommand extends $Command
11
11
  })
12
12
  .s("Textract", "AnalyzeID", {})
13
13
  .n("TextractClient", "AnalyzeIDCommand")
14
- .sc(AnalyzeID)
14
+ .sc(AnalyzeID$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { CreateAdapter } from "../schemas/schemas_0";
4
+ import { CreateAdapter$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class CreateAdapterCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class CreateAdapterCommand extends $Command
11
11
  })
12
12
  .s("Textract", "CreateAdapter", {})
13
13
  .n("TextractClient", "CreateAdapterCommand")
14
- .sc(CreateAdapter)
14
+ .sc(CreateAdapter$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { CreateAdapterVersion } from "../schemas/schemas_0";
4
+ import { CreateAdapterVersion$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class CreateAdapterVersionCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class CreateAdapterVersionCommand extends $Command
11
11
  })
12
12
  .s("Textract", "CreateAdapterVersion", {})
13
13
  .n("TextractClient", "CreateAdapterVersionCommand")
14
- .sc(CreateAdapterVersion)
14
+ .sc(CreateAdapterVersion$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { DeleteAdapter } from "../schemas/schemas_0";
4
+ import { DeleteAdapter$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class DeleteAdapterCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class DeleteAdapterCommand extends $Command
11
11
  })
12
12
  .s("Textract", "DeleteAdapter", {})
13
13
  .n("TextractClient", "DeleteAdapterCommand")
14
- .sc(DeleteAdapter)
14
+ .sc(DeleteAdapter$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { DeleteAdapterVersion } from "../schemas/schemas_0";
4
+ import { DeleteAdapterVersion$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class DeleteAdapterVersionCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class DeleteAdapterVersionCommand extends $Command
11
11
  })
12
12
  .s("Textract", "DeleteAdapterVersion", {})
13
13
  .n("TextractClient", "DeleteAdapterVersionCommand")
14
- .sc(DeleteAdapterVersion)
14
+ .sc(DeleteAdapterVersion$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { DetectDocumentText } from "../schemas/schemas_0";
4
+ import { DetectDocumentText$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class DetectDocumentTextCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class DetectDocumentTextCommand extends $Command
11
11
  })
12
12
  .s("Textract", "DetectDocumentText", {})
13
13
  .n("TextractClient", "DetectDocumentTextCommand")
14
- .sc(DetectDocumentText)
14
+ .sc(DetectDocumentText$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetAdapter } from "../schemas/schemas_0";
4
+ import { GetAdapter$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetAdapterCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetAdapterCommand extends $Command
11
11
  })
12
12
  .s("Textract", "GetAdapter", {})
13
13
  .n("TextractClient", "GetAdapterCommand")
14
- .sc(GetAdapter)
14
+ .sc(GetAdapter$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetAdapterVersion } from "../schemas/schemas_0";
4
+ import { GetAdapterVersion$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetAdapterVersionCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetAdapterVersionCommand extends $Command
11
11
  })
12
12
  .s("Textract", "GetAdapterVersion", {})
13
13
  .n("TextractClient", "GetAdapterVersionCommand")
14
- .sc(GetAdapterVersion)
14
+ .sc(GetAdapterVersion$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetDocumentAnalysis } from "../schemas/schemas_0";
4
+ import { GetDocumentAnalysis$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetDocumentAnalysisCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetDocumentAnalysisCommand extends $Command
11
11
  })
12
12
  .s("Textract", "GetDocumentAnalysis", {})
13
13
  .n("TextractClient", "GetDocumentAnalysisCommand")
14
- .sc(GetDocumentAnalysis)
14
+ .sc(GetDocumentAnalysis$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetDocumentTextDetection } from "../schemas/schemas_0";
4
+ import { GetDocumentTextDetection$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetDocumentTextDetectionCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetDocumentTextDetectionCommand extends $Command
11
11
  })
12
12
  .s("Textract", "GetDocumentTextDetection", {})
13
13
  .n("TextractClient", "GetDocumentTextDetectionCommand")
14
- .sc(GetDocumentTextDetection)
14
+ .sc(GetDocumentTextDetection$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetExpenseAnalysis } from "../schemas/schemas_0";
4
+ import { GetExpenseAnalysis$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetExpenseAnalysisCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetExpenseAnalysisCommand extends $Command
11
11
  })
12
12
  .s("Textract", "GetExpenseAnalysis", {})
13
13
  .n("TextractClient", "GetExpenseAnalysisCommand")
14
- .sc(GetExpenseAnalysis)
14
+ .sc(GetExpenseAnalysis$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetLendingAnalysis } from "../schemas/schemas_0";
4
+ import { GetLendingAnalysis$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetLendingAnalysisCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetLendingAnalysisCommand extends $Command
11
11
  })
12
12
  .s("Textract", "GetLendingAnalysis", {})
13
13
  .n("TextractClient", "GetLendingAnalysisCommand")
14
- .sc(GetLendingAnalysis)
14
+ .sc(GetLendingAnalysis$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetLendingAnalysisSummary } from "../schemas/schemas_0";
4
+ import { GetLendingAnalysisSummary$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetLendingAnalysisSummaryCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetLendingAnalysisSummaryCommand extends $Command
11
11
  })
12
12
  .s("Textract", "GetLendingAnalysisSummary", {})
13
13
  .n("TextractClient", "GetLendingAnalysisSummaryCommand")
14
- .sc(GetLendingAnalysisSummary)
14
+ .sc(GetLendingAnalysisSummary$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ListAdapterVersions } from "../schemas/schemas_0";
4
+ import { ListAdapterVersions$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ListAdapterVersionsCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ListAdapterVersionsCommand extends $Command
11
11
  })
12
12
  .s("Textract", "ListAdapterVersions", {})
13
13
  .n("TextractClient", "ListAdapterVersionsCommand")
14
- .sc(ListAdapterVersions)
14
+ .sc(ListAdapterVersions$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ListAdapters } from "../schemas/schemas_0";
4
+ import { ListAdapters$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ListAdaptersCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ListAdaptersCommand extends $Command
11
11
  })
12
12
  .s("Textract", "ListAdapters", {})
13
13
  .n("TextractClient", "ListAdaptersCommand")
14
- .sc(ListAdapters)
14
+ .sc(ListAdapters$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ListTagsForResource } from "../schemas/schemas_0";
4
+ import { ListTagsForResource$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ListTagsForResourceCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ListTagsForResourceCommand extends $Command
11
11
  })
12
12
  .s("Textract", "ListTagsForResource", {})
13
13
  .n("TextractClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource)
14
+ .sc(ListTagsForResource$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StartDocumentAnalysis } from "../schemas/schemas_0";
4
+ import { StartDocumentAnalysis$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StartDocumentAnalysisCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StartDocumentAnalysisCommand extends $Command
11
11
  })
12
12
  .s("Textract", "StartDocumentAnalysis", {})
13
13
  .n("TextractClient", "StartDocumentAnalysisCommand")
14
- .sc(StartDocumentAnalysis)
14
+ .sc(StartDocumentAnalysis$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StartDocumentTextDetection } from "../schemas/schemas_0";
4
+ import { StartDocumentTextDetection$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StartDocumentTextDetectionCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StartDocumentTextDetectionCommand extends $Command
11
11
  })
12
12
  .s("Textract", "StartDocumentTextDetection", {})
13
13
  .n("TextractClient", "StartDocumentTextDetectionCommand")
14
- .sc(StartDocumentTextDetection)
14
+ .sc(StartDocumentTextDetection$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StartExpenseAnalysis } from "../schemas/schemas_0";
4
+ import { StartExpenseAnalysis$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StartExpenseAnalysisCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StartExpenseAnalysisCommand extends $Command
11
11
  })
12
12
  .s("Textract", "StartExpenseAnalysis", {})
13
13
  .n("TextractClient", "StartExpenseAnalysisCommand")
14
- .sc(StartExpenseAnalysis)
14
+ .sc(StartExpenseAnalysis$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StartLendingAnalysis } from "../schemas/schemas_0";
4
+ import { StartLendingAnalysis$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StartLendingAnalysisCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StartLendingAnalysisCommand extends $Command
11
11
  })
12
12
  .s("Textract", "StartLendingAnalysis", {})
13
13
  .n("TextractClient", "StartLendingAnalysisCommand")
14
- .sc(StartLendingAnalysis)
14
+ .sc(StartLendingAnalysis$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { TagResource } from "../schemas/schemas_0";
4
+ import { TagResource$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class TagResourceCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class TagResourceCommand extends $Command
11
11
  })
12
12
  .s("Textract", "TagResource", {})
13
13
  .n("TextractClient", "TagResourceCommand")
14
- .sc(TagResource)
14
+ .sc(TagResource$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { UntagResource } from "../schemas/schemas_0";
4
+ import { UntagResource$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class UntagResourceCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class UntagResourceCommand extends $Command
11
11
  })
12
12
  .s("Textract", "UntagResource", {})
13
13
  .n("TextractClient", "UntagResourceCommand")
14
- .sc(UntagResource)
14
+ .sc(UntagResource$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { UpdateAdapter } from "../schemas/schemas_0";
4
+ import { UpdateAdapter$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class UpdateAdapterCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class UpdateAdapterCommand extends $Command
11
11
  })
12
12
  .s("Textract", "UpdateAdapter", {})
13
13
  .n("TextractClient", "UpdateAdapterCommand")
14
- .sc(UpdateAdapter)
14
+ .sc(UpdateAdapter$)
15
15
  .build() {
16
16
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./TextractClient";
2
2
  export * from "./Textract";
3
3
  export * from "./commands";
4
+ export * from "./schemas/schemas_0";
4
5
  export * from "./pagination";
5
6
  export * from "./models/enums";
6
7
  export * from "./models/errors";
@@ -23,12 +23,12 @@ export const getRuntimeConfig = (config) => {
23
23
  },
24
24
  ],
25
25
  logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ??
27
- new AwsJson1_1Protocol({
28
- defaultNamespace: "com.amazonaws.textract",
29
- serviceTarget: "Textract",
30
- awsQueryCompatible: false,
31
- }),
26
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
27
+ protocolSettings: config?.protocolSettings ?? {
28
+ defaultNamespace: "com.amazonaws.textract",
29
+ version: "2018-06-27",
30
+ serviceTarget: "Textract",
31
+ },
32
32
  serviceId: config?.serviceId ?? "Textract",
33
33
  urlParser: config?.urlParser ?? parseUrl,
34
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,