@aws-sdk/client-textract 3.986.0 → 3.988.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultTextractHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2018-06-27",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_1Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.textract",
30
+ errorTypeRegistries,
29
31
  version: "2018-06-27",
30
32
  serviceTarget: "Textract",
31
33
  },
@@ -203,8 +203,8 @@ const _Poi = "Point";
203
203
  const _Pr = "Precision";
204
204
  const _Pre = "Prediction";
205
205
  const _Q = "Query";
206
- const _QC = "QueriesConfig";
207
- const _QCu = "QuotaCode";
206
+ const _QC = "QuotaCode";
207
+ const _QCu = "QueriesConfig";
208
208
  const _Qu = "Queries";
209
209
  const _R = "Relationships";
210
210
  const _RA = "RotationAngle";
@@ -286,19 +286,129 @@ const _c = "client";
286
286
  const _e = "error";
287
287
  const _hE = "httpError";
288
288
  const _mT = "mediaType";
289
- const _s = "server";
290
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.textract";
289
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.textract";
290
+ const _se = "server";
291
291
  const n0 = "com.amazonaws.textract";
292
292
  import { TypeRegistry } from "@smithy/core/schema";
293
293
  import { AccessDeniedException, BadDocumentException, ConflictException, DocumentTooLargeException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, InternalServerError, InvalidJobIdException, InvalidKMSKeyException, InvalidParameterException, InvalidS3ObjectException, LimitExceededException, ProvisionedThroughputExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnsupportedDocumentException, ValidationException, } from "../models/errors";
294
294
  import { TextractServiceException } from "../models/TextractServiceException";
295
- var SynthesizedJsonHumanLoopActivationConditionsEvaluationResults = [0, n0, _SJHLACER, { [_mT]: _a }, 0];
295
+ const _s_registry = TypeRegistry.for(_s);
296
+ export var TextractServiceException$ = [-3, _s, "TextractServiceException", 0, [], []];
297
+ _s_registry.registerError(TextractServiceException$, TextractServiceException);
298
+ const n0_registry = TypeRegistry.for(n0);
296
299
  export var AccessDeniedException$ = [-3, n0, _ADE,
297
300
  { [_e]: _c },
298
301
  [_M, _C],
299
302
  [0, 0]
300
303
  ];
301
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
304
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
305
+ export var BadDocumentException$ = [-3, n0, _BDE,
306
+ { [_e]: _c },
307
+ [_M, _C],
308
+ [0, 0]
309
+ ];
310
+ n0_registry.registerError(BadDocumentException$, BadDocumentException);
311
+ export var ConflictException$ = [-3, n0, _CE,
312
+ { [_e]: _c },
313
+ [_M, _C],
314
+ [0, 0]
315
+ ];
316
+ n0_registry.registerError(ConflictException$, ConflictException);
317
+ export var DocumentTooLargeException$ = [-3, n0, _DTLE,
318
+ { [_e]: _c },
319
+ [_M, _C],
320
+ [0, 0]
321
+ ];
322
+ n0_registry.registerError(DocumentTooLargeException$, DocumentTooLargeException);
323
+ export var HumanLoopQuotaExceededException$ = [-3, n0, _HLQEE,
324
+ { [_e]: _c, [_hE]: 402 },
325
+ [_RT, _QC, _SC, _M, _C],
326
+ [0, 0, 0, 0, 0]
327
+ ];
328
+ n0_registry.registerError(HumanLoopQuotaExceededException$, HumanLoopQuotaExceededException);
329
+ export var IdempotentParameterMismatchException$ = [-3, n0, _IPME,
330
+ { [_e]: _c },
331
+ [_M, _C],
332
+ [0, 0]
333
+ ];
334
+ n0_registry.registerError(IdempotentParameterMismatchException$, IdempotentParameterMismatchException);
335
+ export var InternalServerError$ = [-3, n0, _ISE,
336
+ { [_e]: _se },
337
+ [_M, _C],
338
+ [0, 0]
339
+ ];
340
+ n0_registry.registerError(InternalServerError$, InternalServerError);
341
+ export var InvalidJobIdException$ = [-3, n0, _IJIE,
342
+ { [_e]: _c },
343
+ [_M, _C],
344
+ [0, 0]
345
+ ];
346
+ n0_registry.registerError(InvalidJobIdException$, InvalidJobIdException);
347
+ export var InvalidKMSKeyException$ = [-3, n0, _IKMSKE,
348
+ { [_e]: _c },
349
+ [_M, _C],
350
+ [0, 0]
351
+ ];
352
+ n0_registry.registerError(InvalidKMSKeyException$, InvalidKMSKeyException);
353
+ export var InvalidParameterException$ = [-3, n0, _IPE,
354
+ { [_e]: _c },
355
+ [_M, _C],
356
+ [0, 0]
357
+ ];
358
+ n0_registry.registerError(InvalidParameterException$, InvalidParameterException);
359
+ export var InvalidS3ObjectException$ = [-3, n0, _ISOE,
360
+ { [_e]: _c },
361
+ [_M, _C],
362
+ [0, 0]
363
+ ];
364
+ n0_registry.registerError(InvalidS3ObjectException$, InvalidS3ObjectException);
365
+ export var LimitExceededException$ = [-3, n0, _LEE,
366
+ { [_e]: _c },
367
+ [_M, _C],
368
+ [0, 0]
369
+ ];
370
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
371
+ export var ProvisionedThroughputExceededException$ = [-3, n0, _PTEE,
372
+ { [_e]: _c },
373
+ [_M, _C],
374
+ [0, 0]
375
+ ];
376
+ n0_registry.registerError(ProvisionedThroughputExceededException$, ProvisionedThroughputExceededException);
377
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
378
+ { [_e]: _c },
379
+ [_M, _C],
380
+ [0, 0]
381
+ ];
382
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
383
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
384
+ { [_e]: _c },
385
+ [_M, _C],
386
+ [0, 0]
387
+ ];
388
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
389
+ export var ThrottlingException$ = [-3, n0, _TE,
390
+ { [_e]: _se },
391
+ [_M, _C],
392
+ [0, 0]
393
+ ];
394
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
395
+ export var UnsupportedDocumentException$ = [-3, n0, _UDE,
396
+ { [_e]: _c },
397
+ [_M, _C],
398
+ [0, 0]
399
+ ];
400
+ n0_registry.registerError(UnsupportedDocumentException$, UnsupportedDocumentException);
401
+ export var ValidationException$ = [-3, n0, _VE,
402
+ { [_e]: _c },
403
+ [_M, _C],
404
+ [0, 0]
405
+ ];
406
+ n0_registry.registerError(ValidationException$, ValidationException);
407
+ export const errorTypeRegistries = [
408
+ _s_registry,
409
+ n0_registry,
410
+ ];
411
+ var SynthesizedJsonHumanLoopActivationConditionsEvaluationResults = [0, n0, _SJHLACER, { [_mT]: _a }, 0];
302
412
  export var Adapter$ = [3, n0, _A,
303
413
  0,
304
414
  [_AI, _V, _P],
@@ -331,7 +441,7 @@ export var AdapterVersionOverview$ = [3, n0, _AVO,
331
441
  ];
332
442
  export var AnalyzeDocumentRequest$ = [3, n0, _ADR,
333
443
  0,
334
- [_D, _FT, _HLC, _QC, _AC],
444
+ [_D, _FT, _HLC, _QCu, _AC],
335
445
  [() => Document$, 64 | 0, () => HumanLoopConfig$, () => QueriesConfig$, () => AdaptersConfig$], 2
336
446
  ];
337
447
  export var AnalyzeDocumentResponse$ = [3, n0, _ADRn,
@@ -364,12 +474,6 @@ export var AnalyzeIDResponse$ = [3, n0, _AIDRn,
364
474
  [_ID, _DM, _AIDMV],
365
475
  [() => IdentityDocumentList, () => DocumentMetadata$, 0]
366
476
  ];
367
- export var BadDocumentException$ = [-3, n0, _BDE,
368
- { [_e]: _c },
369
- [_M, _C],
370
- [0, 0]
371
- ];
372
- TypeRegistry.for(n0).registerError(BadDocumentException$, BadDocumentException);
373
477
  export var Block$ = [3, n0, _Blo,
374
478
  0,
375
479
  [_BT, _Co, _T, _TT, _RI, _CI, _RS, _CS, _G, _I, _R, _ET, _SS, _Pa, _Q],
@@ -380,12 +484,6 @@ export var BoundingBox$ = [3, n0, _BB,
380
484
  [_W, _H, _L, _To],
381
485
  [1, 1, 1, 1]
382
486
  ];
383
- export var ConflictException$ = [-3, n0, _CE,
384
- { [_e]: _c },
385
- [_M, _C],
386
- [0, 0]
387
- ];
388
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
389
487
  export var CreateAdapterRequest$ = [3, n0, _CAR,
390
488
  0,
391
489
  [_AN, _FT, _CRT, _De, _AU, _Ta],
@@ -461,12 +559,6 @@ export var DocumentMetadata$ = [3, n0, _DM,
461
559
  [_P],
462
560
  [1]
463
561
  ];
464
- export var DocumentTooLargeException$ = [-3, n0, _DTLE,
465
- { [_e]: _c },
466
- [_M, _C],
467
- [0, 0]
468
- ];
469
- TypeRegistry.for(n0).registerError(DocumentTooLargeException$, DocumentTooLargeException);
470
562
  export var EvaluationMetric$ = [3, n0, _EM,
471
563
  0,
472
564
  [_FS, _Pr, _Re],
@@ -597,18 +689,6 @@ export var HumanLoopDataAttributes$ = [3, n0, _HLDA,
597
689
  [_CC],
598
690
  [64 | 0]
599
691
  ];
600
- export var HumanLoopQuotaExceededException$ = [-3, n0, _HLQEE,
601
- { [_e]: _c, [_hE]: 402 },
602
- [_RT, _QCu, _SC, _M, _C],
603
- [0, 0, 0, 0, 0]
604
- ];
605
- TypeRegistry.for(n0).registerError(HumanLoopQuotaExceededException$, HumanLoopQuotaExceededException);
606
- export var IdempotentParameterMismatchException$ = [-3, n0, _IPME,
607
- { [_e]: _c },
608
- [_M, _C],
609
- [0, 0]
610
- ];
611
- TypeRegistry.for(n0).registerError(IdempotentParameterMismatchException$, IdempotentParameterMismatchException);
612
692
  export var IdentityDocument$ = [3, n0, _IDd,
613
693
  0,
614
694
  [_DI, _IDF, _Bl],
@@ -619,36 +699,6 @@ export var IdentityDocumentField$ = [3, n0, _IDFd,
619
699
  [_Ty, _VD],
620
700
  [() => AnalyzeIDDetections$, () => AnalyzeIDDetections$]
621
701
  ];
622
- export var InternalServerError$ = [-3, n0, _ISE,
623
- { [_e]: _s },
624
- [_M, _C],
625
- [0, 0]
626
- ];
627
- TypeRegistry.for(n0).registerError(InternalServerError$, InternalServerError);
628
- export var InvalidJobIdException$ = [-3, n0, _IJIE,
629
- { [_e]: _c },
630
- [_M, _C],
631
- [0, 0]
632
- ];
633
- TypeRegistry.for(n0).registerError(InvalidJobIdException$, InvalidJobIdException);
634
- export var InvalidKMSKeyException$ = [-3, n0, _IKMSKE,
635
- { [_e]: _c },
636
- [_M, _C],
637
- [0, 0]
638
- ];
639
- TypeRegistry.for(n0).registerError(InvalidKMSKeyException$, InvalidKMSKeyException);
640
- export var InvalidParameterException$ = [-3, n0, _IPE,
641
- { [_e]: _c },
642
- [_M, _C],
643
- [0, 0]
644
- ];
645
- TypeRegistry.for(n0).registerError(InvalidParameterException$, InvalidParameterException);
646
- export var InvalidS3ObjectException$ = [-3, n0, _ISOE,
647
- { [_e]: _c },
648
- [_M, _C],
649
- [0, 0]
650
- ];
651
- TypeRegistry.for(n0).registerError(InvalidS3ObjectException$, InvalidS3ObjectException);
652
702
  export var LendingDetection$ = [3, n0, _LDen,
653
703
  0,
654
704
  [_T, _SS, _G, _Co],
@@ -674,12 +724,6 @@ export var LendingSummary$ = [3, n0, _LS,
674
724
  [_DGo, _UDT],
675
725
  [() => DocumentGroupList, 64 | 0]
676
726
  ];
677
- export var LimitExceededException$ = [-3, n0, _LEE,
678
- { [_e]: _c },
679
- [_M, _C],
680
- [0, 0]
681
- ];
682
- TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
683
727
  export var LineItemFields$ = [3, n0, _LIF,
684
728
  0,
685
729
  [_LIEF],
@@ -750,13 +794,7 @@ export var Prediction$ = [3, n0, _Pre,
750
794
  [_Va, _Co],
751
795
  [0, 1]
752
796
  ];
753
- export var ProvisionedThroughputExceededException$ = [-3, n0, _PTEE,
754
- { [_e]: _c },
755
- [_M, _C],
756
- [0, 0]
757
- ];
758
- TypeRegistry.for(n0).registerError(ProvisionedThroughputExceededException$, ProvisionedThroughputExceededException);
759
- export var QueriesConfig$ = [3, n0, _QC,
797
+ export var QueriesConfig$ = [3, n0, _QCu,
760
798
  0,
761
799
  [_Qu],
762
800
  [() => Queries], 1
@@ -771,23 +809,11 @@ export var Relationship$ = [3, n0, _Rel,
771
809
  [_Ty, _Id],
772
810
  [0, 64 | 0]
773
811
  ];
774
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
775
- { [_e]: _c },
776
- [_M, _C],
777
- [0, 0]
778
- ];
779
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
780
812
  export var S3Object$ = [3, n0, _SO,
781
813
  0,
782
814
  [_Bu, _N, _V],
783
815
  [0, 0, 0]
784
816
  ];
785
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
786
- { [_e]: _c },
787
- [_M, _C],
788
- [0, 0]
789
- ];
790
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
791
817
  export var SignatureDetection$ = [3, n0, _SDig,
792
818
  0,
793
819
  [_Co, _G],
@@ -800,7 +826,7 @@ export var SplitDocument$ = [3, n0, _SDp,
800
826
  ];
801
827
  export var StartDocumentAnalysisRequest$ = [3, n0, _SDAR,
802
828
  0,
803
- [_DL, _FT, _CRT, _JT, _NC, _OC, _KMSKI, _QC, _AC],
829
+ [_DL, _FT, _CRT, _JT, _NC, _OC, _KMSKI, _QCu, _AC],
804
830
  [() => DocumentLocation$, 64 | 0, 0, 0, () => NotificationChannel$, () => OutputConfig$, 0, () => QueriesConfig$, () => AdaptersConfig$], 2
805
831
  ];
806
832
  export var StartDocumentAnalysisResponse$ = [3, n0, _SDARt,
@@ -848,23 +874,11 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
848
874
  [],
849
875
  []
850
876
  ];
851
- export var ThrottlingException$ = [-3, n0, _TE,
852
- { [_e]: _s },
853
- [_M, _C],
854
- [0, 0]
855
- ];
856
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
857
877
  export var UndetectedSignature$ = [3, n0, _USn,
858
878
  0,
859
879
  [_Pa],
860
880
  [1]
861
881
  ];
862
- export var UnsupportedDocumentException$ = [-3, n0, _UDE,
863
- { [_e]: _c },
864
- [_M, _C],
865
- [0, 0]
866
- ];
867
- TypeRegistry.for(n0).registerError(UnsupportedDocumentException$, UnsupportedDocumentException);
868
882
  export var UntagResourceRequest$ = [3, n0, _URR,
869
883
  0,
870
884
  [_RARN, _TK],
@@ -885,19 +899,11 @@ export var UpdateAdapterResponse$ = [3, n0, _UARp,
885
899
  [_AI, _AN, _CT, _De, _FT, _AU],
886
900
  [0, 0, 4, 0, 64 | 0, 0]
887
901
  ];
888
- export var ValidationException$ = [-3, n0, _VE,
889
- { [_e]: _c },
890
- [_M, _C],
891
- [0, 0]
892
- ];
893
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
894
902
  export var Warning$ = [3, n0, _War,
895
903
  0,
896
904
  [_ECr, _P],
897
905
  [0, 64 | 1]
898
906
  ];
899
- export var TextractServiceException$ = [-3, _sm, "TextractServiceException", 0, [], []];
900
- TypeRegistry.for(_sm).registerError(TextractServiceException$, TextractServiceException);
901
907
  var AdapterList = [1, n0, _AL,
902
908
  0, () => AdapterOverview$
903
909
  ];
@@ -1,5 +1,30 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var TextractServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var BadDocumentException$: StaticErrorSchema;
6
+ export declare var ConflictException$: StaticErrorSchema;
7
+ export declare var DocumentTooLargeException$: StaticErrorSchema;
8
+ export declare var HumanLoopQuotaExceededException$: StaticErrorSchema;
9
+ export declare var IdempotentParameterMismatchException$: StaticErrorSchema;
10
+ export declare var InternalServerError$: StaticErrorSchema;
11
+ export declare var InvalidJobIdException$: StaticErrorSchema;
12
+ export declare var InvalidKMSKeyException$: StaticErrorSchema;
13
+ export declare var InvalidParameterException$: StaticErrorSchema;
14
+ export declare var InvalidS3ObjectException$: StaticErrorSchema;
15
+ export declare var LimitExceededException$: StaticErrorSchema;
16
+ export declare var ProvisionedThroughputExceededException$: StaticErrorSchema;
17
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
18
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
19
+ export declare var ThrottlingException$: StaticErrorSchema;
20
+ export declare var UnsupportedDocumentException$: StaticErrorSchema;
21
+ export declare var ValidationException$: StaticErrorSchema;
22
+ /**
23
+ * TypeRegistry instances containing modeled errors.
24
+ * @internal
25
+ *
26
+ */
27
+ export declare const errorTypeRegistries: TypeRegistry[];
3
28
  export declare var Adapter$: StaticStructureSchema;
4
29
  export declare var AdapterOverview$: StaticStructureSchema;
5
30
  export declare var AdaptersConfig$: StaticStructureSchema;
@@ -13,10 +38,8 @@ export declare var AnalyzeExpenseResponse$: StaticStructureSchema;
13
38
  export declare var AnalyzeIDDetections$: StaticStructureSchema;
14
39
  export declare var AnalyzeIDRequest$: StaticStructureSchema;
15
40
  export declare var AnalyzeIDResponse$: StaticStructureSchema;
16
- export declare var BadDocumentException$: StaticErrorSchema;
17
41
  export declare var Block$: StaticStructureSchema;
18
42
  export declare var BoundingBox$: StaticStructureSchema;
19
- export declare var ConflictException$: StaticErrorSchema;
20
43
  export declare var CreateAdapterRequest$: StaticStructureSchema;
21
44
  export declare var CreateAdapterResponse$: StaticStructureSchema;
22
45
  export declare var CreateAdapterVersionRequest$: StaticStructureSchema;
@@ -32,7 +55,6 @@ export declare var Document$: StaticStructureSchema;
32
55
  export declare var DocumentGroup$: StaticStructureSchema;
33
56
  export declare var DocumentLocation$: StaticStructureSchema;
34
57
  export declare var DocumentMetadata$: StaticStructureSchema;
35
- export declare var DocumentTooLargeException$: StaticErrorSchema;
36
58
  export declare var EvaluationMetric$: StaticStructureSchema;
37
59
  export declare var ExpenseCurrency$: StaticStructureSchema;
38
60
  export declare var ExpenseDetection$: StaticStructureSchema;
@@ -59,21 +81,13 @@ export declare var GetLendingAnalysisSummaryResponse$: StaticStructureSchema;
59
81
  export declare var HumanLoopActivationOutput$: StaticStructureSchema;
60
82
  export declare var HumanLoopConfig$: StaticStructureSchema;
61
83
  export declare var HumanLoopDataAttributes$: StaticStructureSchema;
62
- export declare var HumanLoopQuotaExceededException$: StaticErrorSchema;
63
- export declare var IdempotentParameterMismatchException$: StaticErrorSchema;
64
84
  export declare var IdentityDocument$: StaticStructureSchema;
65
85
  export declare var IdentityDocumentField$: StaticStructureSchema;
66
- export declare var InternalServerError$: StaticErrorSchema;
67
- export declare var InvalidJobIdException$: StaticErrorSchema;
68
- export declare var InvalidKMSKeyException$: StaticErrorSchema;
69
- export declare var InvalidParameterException$: StaticErrorSchema;
70
- export declare var InvalidS3ObjectException$: StaticErrorSchema;
71
86
  export declare var LendingDetection$: StaticStructureSchema;
72
87
  export declare var LendingDocument$: StaticStructureSchema;
73
88
  export declare var LendingField$: StaticStructureSchema;
74
89
  export declare var LendingResult$: StaticStructureSchema;
75
90
  export declare var LendingSummary$: StaticStructureSchema;
76
- export declare var LimitExceededException$: StaticErrorSchema;
77
91
  export declare var LineItemFields$: StaticStructureSchema;
78
92
  export declare var LineItemGroup$: StaticStructureSchema;
79
93
  export declare var ListAdaptersRequest$: StaticStructureSchema;
@@ -88,13 +102,10 @@ export declare var OutputConfig$: StaticStructureSchema;
88
102
  export declare var PageClassification$: StaticStructureSchema;
89
103
  export declare var Point$: StaticStructureSchema;
90
104
  export declare var Prediction$: StaticStructureSchema;
91
- export declare var ProvisionedThroughputExceededException$: StaticErrorSchema;
92
105
  export declare var QueriesConfig$: StaticStructureSchema;
93
106
  export declare var Query$: StaticStructureSchema;
94
107
  export declare var Relationship$: StaticStructureSchema;
95
- export declare var ResourceNotFoundException$: StaticErrorSchema;
96
108
  export declare var S3Object$: StaticStructureSchema;
97
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
98
109
  export declare var SignatureDetection$: StaticStructureSchema;
99
110
  export declare var SplitDocument$: StaticStructureSchema;
100
111
  export declare var StartDocumentAnalysisRequest$: StaticStructureSchema;
@@ -107,16 +118,12 @@ export declare var StartLendingAnalysisRequest$: StaticStructureSchema;
107
118
  export declare var StartLendingAnalysisResponse$: StaticStructureSchema;
108
119
  export declare var TagResourceRequest$: StaticStructureSchema;
109
120
  export declare var TagResourceResponse$: StaticStructureSchema;
110
- export declare var ThrottlingException$: StaticErrorSchema;
111
121
  export declare var UndetectedSignature$: StaticStructureSchema;
112
- export declare var UnsupportedDocumentException$: StaticErrorSchema;
113
122
  export declare var UntagResourceRequest$: StaticStructureSchema;
114
123
  export declare var UntagResourceResponse$: StaticStructureSchema;
115
124
  export declare var UpdateAdapterRequest$: StaticStructureSchema;
116
125
  export declare var UpdateAdapterResponse$: StaticStructureSchema;
117
- export declare var ValidationException$: StaticErrorSchema;
118
126
  export declare var Warning$: StaticStructureSchema;
119
- export declare var TextractServiceException$: StaticErrorSchema;
120
127
  export declare var AnalyzeDocument$: StaticOperationSchema;
121
128
  export declare var AnalyzeExpense$: StaticOperationSchema;
122
129
  export declare var AnalyzeID$: StaticOperationSchema;
@@ -1,9 +1,29 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var TextractServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
9
+ export declare var BadDocumentException$: StaticErrorSchema;
10
+ export declare var ConflictException$: StaticErrorSchema;
11
+ export declare var DocumentTooLargeException$: StaticErrorSchema;
12
+ export declare var HumanLoopQuotaExceededException$: StaticErrorSchema;
13
+ export declare var IdempotentParameterMismatchException$: StaticErrorSchema;
14
+ export declare var InternalServerError$: StaticErrorSchema;
15
+ export declare var InvalidJobIdException$: StaticErrorSchema;
16
+ export declare var InvalidKMSKeyException$: StaticErrorSchema;
17
+ export declare var InvalidParameterException$: StaticErrorSchema;
18
+ export declare var InvalidS3ObjectException$: StaticErrorSchema;
19
+ export declare var LimitExceededException$: StaticErrorSchema;
20
+ export declare var ProvisionedThroughputExceededException$: StaticErrorSchema;
21
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
22
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
23
+ export declare var ThrottlingException$: StaticErrorSchema;
24
+ export declare var UnsupportedDocumentException$: StaticErrorSchema;
25
+ export declare var ValidationException$: StaticErrorSchema;
26
+ export declare const errorTypeRegistries: TypeRegistry[];
7
27
  export declare var Adapter$: StaticStructureSchema;
8
28
  export declare var AdapterOverview$: StaticStructureSchema;
9
29
  export declare var AdaptersConfig$: StaticStructureSchema;
@@ -17,10 +37,8 @@ export declare var AnalyzeExpenseResponse$: StaticStructureSchema;
17
37
  export declare var AnalyzeIDDetections$: StaticStructureSchema;
18
38
  export declare var AnalyzeIDRequest$: StaticStructureSchema;
19
39
  export declare var AnalyzeIDResponse$: StaticStructureSchema;
20
- export declare var BadDocumentException$: StaticErrorSchema;
21
40
  export declare var Block$: StaticStructureSchema;
22
41
  export declare var BoundingBox$: StaticStructureSchema;
23
- export declare var ConflictException$: StaticErrorSchema;
24
42
  export declare var CreateAdapterRequest$: StaticStructureSchema;
25
43
  export declare var CreateAdapterResponse$: StaticStructureSchema;
26
44
  export declare var CreateAdapterVersionRequest$: StaticStructureSchema;
@@ -36,7 +54,6 @@ export declare var Document$: StaticStructureSchema;
36
54
  export declare var DocumentGroup$: StaticStructureSchema;
37
55
  export declare var DocumentLocation$: StaticStructureSchema;
38
56
  export declare var DocumentMetadata$: StaticStructureSchema;
39
- export declare var DocumentTooLargeException$: StaticErrorSchema;
40
57
  export declare var EvaluationMetric$: StaticStructureSchema;
41
58
  export declare var ExpenseCurrency$: StaticStructureSchema;
42
59
  export declare var ExpenseDetection$: StaticStructureSchema;
@@ -63,21 +80,13 @@ export declare var GetLendingAnalysisSummaryResponse$: StaticStructureSchema;
63
80
  export declare var HumanLoopActivationOutput$: StaticStructureSchema;
64
81
  export declare var HumanLoopConfig$: StaticStructureSchema;
65
82
  export declare var HumanLoopDataAttributes$: StaticStructureSchema;
66
- export declare var HumanLoopQuotaExceededException$: StaticErrorSchema;
67
- export declare var IdempotentParameterMismatchException$: StaticErrorSchema;
68
83
  export declare var IdentityDocument$: StaticStructureSchema;
69
84
  export declare var IdentityDocumentField$: StaticStructureSchema;
70
- export declare var InternalServerError$: StaticErrorSchema;
71
- export declare var InvalidJobIdException$: StaticErrorSchema;
72
- export declare var InvalidKMSKeyException$: StaticErrorSchema;
73
- export declare var InvalidParameterException$: StaticErrorSchema;
74
- export declare var InvalidS3ObjectException$: StaticErrorSchema;
75
85
  export declare var LendingDetection$: StaticStructureSchema;
76
86
  export declare var LendingDocument$: StaticStructureSchema;
77
87
  export declare var LendingField$: StaticStructureSchema;
78
88
  export declare var LendingResult$: StaticStructureSchema;
79
89
  export declare var LendingSummary$: StaticStructureSchema;
80
- export declare var LimitExceededException$: StaticErrorSchema;
81
90
  export declare var LineItemFields$: StaticStructureSchema;
82
91
  export declare var LineItemGroup$: StaticStructureSchema;
83
92
  export declare var ListAdaptersRequest$: StaticStructureSchema;
@@ -92,13 +101,10 @@ export declare var OutputConfig$: StaticStructureSchema;
92
101
  export declare var PageClassification$: StaticStructureSchema;
93
102
  export declare var Point$: StaticStructureSchema;
94
103
  export declare var Prediction$: StaticStructureSchema;
95
- export declare var ProvisionedThroughputExceededException$: StaticErrorSchema;
96
104
  export declare var QueriesConfig$: StaticStructureSchema;
97
105
  export declare var Query$: StaticStructureSchema;
98
106
  export declare var Relationship$: StaticStructureSchema;
99
- export declare var ResourceNotFoundException$: StaticErrorSchema;
100
107
  export declare var S3Object$: StaticStructureSchema;
101
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
102
108
  export declare var SignatureDetection$: StaticStructureSchema;
103
109
  export declare var SplitDocument$: StaticStructureSchema;
104
110
  export declare var StartDocumentAnalysisRequest$: StaticStructureSchema;
@@ -111,16 +117,12 @@ export declare var StartLendingAnalysisRequest$: StaticStructureSchema;
111
117
  export declare var StartLendingAnalysisResponse$: StaticStructureSchema;
112
118
  export declare var TagResourceRequest$: StaticStructureSchema;
113
119
  export declare var TagResourceResponse$: StaticStructureSchema;
114
- export declare var ThrottlingException$: StaticErrorSchema;
115
120
  export declare var UndetectedSignature$: StaticStructureSchema;
116
- export declare var UnsupportedDocumentException$: StaticErrorSchema;
117
121
  export declare var UntagResourceRequest$: StaticStructureSchema;
118
122
  export declare var UntagResourceResponse$: StaticStructureSchema;
119
123
  export declare var UpdateAdapterRequest$: StaticStructureSchema;
120
124
  export declare var UpdateAdapterResponse$: StaticStructureSchema;
121
- export declare var ValidationException$: StaticErrorSchema;
122
125
  export declare var Warning$: StaticStructureSchema;
123
- export declare var TextractServiceException$: StaticErrorSchema;
124
126
  export declare var AnalyzeDocument$: StaticOperationSchema;
125
127
  export declare var AnalyzeExpense$: StaticOperationSchema;
126
128
  export declare var AnalyzeID$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-textract",
3
3
  "description": "AWS SDK for JavaScript Textract Client for Node.js, Browser and React Native",
4
- "version": "3.986.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-textract",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.986.0",
32
+ "@aws-sdk/util-endpoints": "3.988.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",