@aws-sdk/client-textract 3.193.0 → 3.195.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 (72) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/TextractClient.js +11 -8
  3. package/dist-cjs/commands/AnalyzeDocumentCommand.js +10 -0
  4. package/dist-cjs/commands/AnalyzeExpenseCommand.js +10 -0
  5. package/dist-cjs/commands/AnalyzeIDCommand.js +10 -0
  6. package/dist-cjs/commands/DetectDocumentTextCommand.js +10 -0
  7. package/dist-cjs/commands/GetDocumentAnalysisCommand.js +10 -0
  8. package/dist-cjs/commands/GetDocumentTextDetectionCommand.js +10 -0
  9. package/dist-cjs/commands/GetExpenseAnalysisCommand.js +10 -0
  10. package/dist-cjs/commands/StartDocumentAnalysisCommand.js +10 -0
  11. package/dist-cjs/commands/StartDocumentTextDetectionCommand.js +10 -0
  12. package/dist-cjs/commands/StartExpenseAnalysisCommand.js +10 -0
  13. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  14. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  15. package/dist-cjs/endpoint/ruleset.js +318 -0
  16. package/dist-cjs/runtimeConfig.shared.js +3 -3
  17. package/dist-es/TextractClient.js +12 -9
  18. package/dist-es/commands/AnalyzeDocumentCommand.js +10 -0
  19. package/dist-es/commands/AnalyzeExpenseCommand.js +10 -0
  20. package/dist-es/commands/AnalyzeIDCommand.js +10 -0
  21. package/dist-es/commands/DetectDocumentTextCommand.js +10 -0
  22. package/dist-es/commands/GetDocumentAnalysisCommand.js +10 -0
  23. package/dist-es/commands/GetDocumentTextDetectionCommand.js +10 -0
  24. package/dist-es/commands/GetExpenseAnalysisCommand.js +10 -0
  25. package/dist-es/commands/StartDocumentAnalysisCommand.js +10 -0
  26. package/dist-es/commands/StartDocumentTextDetectionCommand.js +10 -0
  27. package/dist-es/commands/StartExpenseAnalysisCommand.js +10 -0
  28. package/dist-es/endpoint/EndpointParameters.js +8 -0
  29. package/dist-es/endpoint/endpointResolver.js +8 -0
  30. package/dist-es/endpoint/ruleset.js +315 -0
  31. package/dist-es/runtimeConfig.shared.js +2 -2
  32. package/dist-types/TextractClient.d.ts +6 -9
  33. package/dist-types/commands/AnalyzeDocumentCommand.d.ts +2 -0
  34. package/dist-types/commands/AnalyzeExpenseCommand.d.ts +2 -0
  35. package/dist-types/commands/AnalyzeIDCommand.d.ts +2 -0
  36. package/dist-types/commands/DetectDocumentTextCommand.d.ts +2 -0
  37. package/dist-types/commands/GetDocumentAnalysisCommand.d.ts +2 -0
  38. package/dist-types/commands/GetDocumentTextDetectionCommand.d.ts +2 -0
  39. package/dist-types/commands/GetExpenseAnalysisCommand.d.ts +2 -0
  40. package/dist-types/commands/StartDocumentAnalysisCommand.d.ts +2 -0
  41. package/dist-types/commands/StartDocumentTextDetectionCommand.d.ts +2 -0
  42. package/dist-types/commands/StartExpenseAnalysisCommand.d.ts +2 -0
  43. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  44. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  45. package/dist-types/endpoint/ruleset.d.ts +2 -0
  46. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  47. package/dist-types/runtimeConfig.d.ts +4 -2
  48. package/dist-types/runtimeConfig.native.d.ts +4 -2
  49. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  50. package/dist-types/ts3.4/TextractClient.d.ts +15 -8
  51. package/dist-types/ts3.4/commands/AnalyzeDocumentCommand.d.ts +2 -0
  52. package/dist-types/ts3.4/commands/AnalyzeExpenseCommand.d.ts +2 -0
  53. package/dist-types/ts3.4/commands/AnalyzeIDCommand.d.ts +2 -0
  54. package/dist-types/ts3.4/commands/DetectDocumentTextCommand.d.ts +2 -0
  55. package/dist-types/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +2 -0
  56. package/dist-types/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +2 -0
  57. package/dist-types/ts3.4/commands/GetExpenseAnalysisCommand.d.ts +2 -0
  58. package/dist-types/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +2 -0
  59. package/dist-types/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +2 -0
  60. package/dist-types/ts3.4/commands/StartExpenseAnalysisCommand.d.ts +2 -0
  61. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  62. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  63. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  64. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  65. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  66. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  67. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  68. package/package.json +4 -2
  69. package/dist-cjs/endpoints.js +0 -194
  70. package/dist-es/endpoints.js +0 -190
  71. package/dist-types/endpoints.d.ts +0 -2
  72. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -1,190 +0,0 @@
1
- import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
- "ca-central-1": {
4
- variants: [
5
- {
6
- hostname: "textract-fips.ca-central-1.amazonaws.com",
7
- tags: ["fips"],
8
- },
9
- ],
10
- },
11
- "us-east-1": {
12
- variants: [
13
- {
14
- hostname: "textract-fips.us-east-1.amazonaws.com",
15
- tags: ["fips"],
16
- },
17
- ],
18
- },
19
- "us-east-2": {
20
- variants: [
21
- {
22
- hostname: "textract-fips.us-east-2.amazonaws.com",
23
- tags: ["fips"],
24
- },
25
- ],
26
- },
27
- "us-gov-east-1": {
28
- variants: [
29
- {
30
- hostname: "textract-fips.us-gov-east-1.amazonaws.com",
31
- tags: ["fips"],
32
- },
33
- ],
34
- },
35
- "us-gov-west-1": {
36
- variants: [
37
- {
38
- hostname: "textract-fips.us-gov-west-1.amazonaws.com",
39
- tags: ["fips"],
40
- },
41
- ],
42
- },
43
- "us-west-1": {
44
- variants: [
45
- {
46
- hostname: "textract-fips.us-west-1.amazonaws.com",
47
- tags: ["fips"],
48
- },
49
- ],
50
- },
51
- "us-west-2": {
52
- variants: [
53
- {
54
- hostname: "textract-fips.us-west-2.amazonaws.com",
55
- tags: ["fips"],
56
- },
57
- ],
58
- },
59
- };
60
- const partitionHash = {
61
- aws: {
62
- regions: [
63
- "af-south-1",
64
- "ap-east-1",
65
- "ap-northeast-1",
66
- "ap-northeast-2",
67
- "ap-northeast-3",
68
- "ap-south-1",
69
- "ap-southeast-1",
70
- "ap-southeast-2",
71
- "ap-southeast-3",
72
- "ca-central-1",
73
- "eu-central-1",
74
- "eu-north-1",
75
- "eu-south-1",
76
- "eu-west-1",
77
- "eu-west-2",
78
- "eu-west-3",
79
- "fips-ca-central-1",
80
- "fips-us-east-1",
81
- "fips-us-east-2",
82
- "fips-us-west-1",
83
- "fips-us-west-2",
84
- "me-central-1",
85
- "me-south-1",
86
- "sa-east-1",
87
- "us-east-1",
88
- "us-east-2",
89
- "us-west-1",
90
- "us-west-2",
91
- ],
92
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
93
- variants: [
94
- {
95
- hostname: "textract.{region}.amazonaws.com",
96
- tags: [],
97
- },
98
- {
99
- hostname: "textract-fips.{region}.amazonaws.com",
100
- tags: ["fips"],
101
- },
102
- {
103
- hostname: "textract-fips.{region}.api.aws",
104
- tags: ["dualstack", "fips"],
105
- },
106
- {
107
- hostname: "textract.{region}.api.aws",
108
- tags: ["dualstack"],
109
- },
110
- ],
111
- },
112
- "aws-cn": {
113
- regions: ["cn-north-1", "cn-northwest-1"],
114
- regionRegex: "^cn\\-\\w+\\-\\d+$",
115
- variants: [
116
- {
117
- hostname: "textract.{region}.amazonaws.com.cn",
118
- tags: [],
119
- },
120
- {
121
- hostname: "textract-fips.{region}.amazonaws.com.cn",
122
- tags: ["fips"],
123
- },
124
- {
125
- hostname: "textract-fips.{region}.api.amazonwebservices.com.cn",
126
- tags: ["dualstack", "fips"],
127
- },
128
- {
129
- hostname: "textract.{region}.api.amazonwebservices.com.cn",
130
- tags: ["dualstack"],
131
- },
132
- ],
133
- },
134
- "aws-iso": {
135
- regions: ["us-iso-east-1", "us-iso-west-1"],
136
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
137
- variants: [
138
- {
139
- hostname: "textract.{region}.c2s.ic.gov",
140
- tags: [],
141
- },
142
- {
143
- hostname: "textract-fips.{region}.c2s.ic.gov",
144
- tags: ["fips"],
145
- },
146
- ],
147
- },
148
- "aws-iso-b": {
149
- regions: ["us-isob-east-1"],
150
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
151
- variants: [
152
- {
153
- hostname: "textract.{region}.sc2s.sgov.gov",
154
- tags: [],
155
- },
156
- {
157
- hostname: "textract-fips.{region}.sc2s.sgov.gov",
158
- tags: ["fips"],
159
- },
160
- ],
161
- },
162
- "aws-us-gov": {
163
- regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
164
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
165
- variants: [
166
- {
167
- hostname: "textract.{region}.amazonaws.com",
168
- tags: [],
169
- },
170
- {
171
- hostname: "textract-fips.{region}.amazonaws.com",
172
- tags: ["fips"],
173
- },
174
- {
175
- hostname: "textract-fips.{region}.api.aws",
176
- tags: ["dualstack", "fips"],
177
- },
178
- {
179
- hostname: "textract.{region}.api.aws",
180
- tags: ["dualstack"],
181
- },
182
- ],
183
- },
184
- };
185
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
186
- ...options,
187
- signingService: "textract",
188
- regionHash,
189
- partitionHash,
190
- });
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;