@aws-sdk/client-workdocs 3.987.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 { defaultWorkDocsHttpAuthSchemeProvider } 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: "2016-05-01",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.workdocs",
30
+ errorTypeRegistries,
29
31
  xmlNamespace: "https://aws.amazon.com/api/v1/",
30
32
  version: "2016-05-01",
31
33
  serviceTarget: "AWSGorillaBoyService",
@@ -13,7 +13,7 @@ const _AU = "ActivateUser";
13
13
  const _AUR = "ActivateUserRequest";
14
14
  const _AURc = "ActivateUserResponse";
15
15
  const _Ac = "Activity";
16
- const _C = "Comment";
16
+ const _C = "Code";
17
17
  const _CC = "ContentCategories";
18
18
  const _CCM = "CreateCustomMetadata";
19
19
  const _CCMR = "CreateCustomMetadataRequest";
@@ -50,10 +50,10 @@ const _CTol = "CollectionType";
50
50
  const _CU = "CreateUser";
51
51
  const _CUR = "CreateUserRequest";
52
52
  const _CURr = "CreateUserResponse";
53
- const _Co = "Contributor";
54
- const _Cod = "Code";
53
+ const _Co = "Comment";
55
54
  const _Com = "Comments";
56
55
  const _Comp = "Components";
56
+ const _Con = "Contributor";
57
57
  const _D = "Documents";
58
58
  const _DA = "DeleteAll";
59
59
  const _DAR = "DescribeActivitiesRequest";
@@ -351,11 +351,11 @@ const _oI = "organizationId";
351
351
  const _pI = "principalId";
352
352
  const _q = "query";
353
353
  const _rI = "resourceId";
354
- const _s = "sort";
354
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.workdocs";
355
355
  const _sQ = "searchQuery";
356
356
  const _sT = "startTime";
357
357
  const _se = "server";
358
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.workdocs";
358
+ const _so = "sort";
359
359
  const _t = "type";
360
360
  const _uI = "userId";
361
361
  const _uIs = "userIds";
@@ -365,6 +365,164 @@ const n0 = "com.amazonaws.workdocs";
365
365
  import { TypeRegistry } from "@smithy/core/schema";
366
366
  import { ConcurrentModificationException, ConflictingOperationException, CustomMetadataLimitExceededException, DeactivatingLastSystemUserException, DocumentLockedForCommentsException, DraftUploadOutOfSyncException, EntityAlreadyExistsException, EntityNotExistsException, FailedDependencyException, IllegalUserStateException, InvalidArgumentException, InvalidCommentOperationException, InvalidOperationException, InvalidPasswordException, LimitExceededException, ProhibitedStateException, RequestedEntityTooLargeException, ResourceAlreadyCheckedOutException, ServiceUnavailableException, StorageLimitExceededException, StorageLimitWillExceedException, TooManyLabelsException, TooManySubscriptionsException, UnauthorizedOperationException, UnauthorizedResourceAccessException, } from "../models/errors";
367
367
  import { WorkDocsServiceException } from "../models/WorkDocsServiceException";
368
+ const _s_registry = TypeRegistry.for(_s);
369
+ export var WorkDocsServiceException$ = [-3, _s, "WorkDocsServiceException", 0, [], []];
370
+ _s_registry.registerError(WorkDocsServiceException$, WorkDocsServiceException);
371
+ const n0_registry = TypeRegistry.for(n0);
372
+ export var ConcurrentModificationException$ = [-3, n0, _CME,
373
+ { [_e]: _c, [_hE]: 409 },
374
+ [_M],
375
+ [0]
376
+ ];
377
+ n0_registry.registerError(ConcurrentModificationException$, ConcurrentModificationException);
378
+ export var ConflictingOperationException$ = [-3, n0, _COE,
379
+ { [_e]: _c, [_hE]: 409 },
380
+ [_M],
381
+ [0]
382
+ ];
383
+ n0_registry.registerError(ConflictingOperationException$, ConflictingOperationException);
384
+ export var CustomMetadataLimitExceededException$ = [-3, n0, _CMLEE,
385
+ { [_e]: _c, [_hE]: 429 },
386
+ [_M],
387
+ [0]
388
+ ];
389
+ n0_registry.registerError(CustomMetadataLimitExceededException$, CustomMetadataLimitExceededException);
390
+ export var DeactivatingLastSystemUserException$ = [-3, n0, _DLSUE,
391
+ { [_e]: _c, [_hE]: 409 },
392
+ [_M, _C],
393
+ [0, 0]
394
+ ];
395
+ n0_registry.registerError(DeactivatingLastSystemUserException$, DeactivatingLastSystemUserException);
396
+ export var DocumentLockedForCommentsException$ = [-3, n0, _DLFCE,
397
+ { [_e]: _c, [_hE]: 409 },
398
+ [_M],
399
+ [0]
400
+ ];
401
+ n0_registry.registerError(DocumentLockedForCommentsException$, DocumentLockedForCommentsException);
402
+ export var DraftUploadOutOfSyncException$ = [-3, n0, _DUOOSE,
403
+ { [_e]: _c, [_hE]: 409 },
404
+ [_M],
405
+ [0]
406
+ ];
407
+ n0_registry.registerError(DraftUploadOutOfSyncException$, DraftUploadOutOfSyncException);
408
+ export var EntityAlreadyExistsException$ = [-3, n0, _EAEE,
409
+ { [_e]: _c, [_hE]: 409 },
410
+ [_M],
411
+ [0]
412
+ ];
413
+ n0_registry.registerError(EntityAlreadyExistsException$, EntityAlreadyExistsException);
414
+ export var EntityNotExistsException$ = [-3, n0, _ENEE,
415
+ { [_e]: _c, [_hE]: 404 },
416
+ [_M, _EI],
417
+ [0, 64 | 0]
418
+ ];
419
+ n0_registry.registerError(EntityNotExistsException$, EntityNotExistsException);
420
+ export var FailedDependencyException$ = [-3, n0, _FDE,
421
+ { [_e]: _c, [_hE]: 424 },
422
+ [_M],
423
+ [0]
424
+ ];
425
+ n0_registry.registerError(FailedDependencyException$, FailedDependencyException);
426
+ export var IllegalUserStateException$ = [-3, n0, _IUSE,
427
+ { [_e]: _c, [_hE]: 409 },
428
+ [_M],
429
+ [0]
430
+ ];
431
+ n0_registry.registerError(IllegalUserStateException$, IllegalUserStateException);
432
+ export var InvalidArgumentException$ = [-3, n0, _IAE,
433
+ { [_e]: _c, [_hE]: 400 },
434
+ [_M],
435
+ [0]
436
+ ];
437
+ n0_registry.registerError(InvalidArgumentException$, InvalidArgumentException);
438
+ export var InvalidCommentOperationException$ = [-3, n0, _ICOE,
439
+ { [_e]: _c, [_hE]: 409 },
440
+ [_M],
441
+ [0]
442
+ ];
443
+ n0_registry.registerError(InvalidCommentOperationException$, InvalidCommentOperationException);
444
+ export var InvalidOperationException$ = [-3, n0, _IOE,
445
+ { [_e]: _c, [_hE]: 405 },
446
+ [_M],
447
+ [0]
448
+ ];
449
+ n0_registry.registerError(InvalidOperationException$, InvalidOperationException);
450
+ export var InvalidPasswordException$ = [-3, n0, _IPE,
451
+ { [_e]: _c, [_hE]: 401 },
452
+ [_M],
453
+ [0]
454
+ ];
455
+ n0_registry.registerError(InvalidPasswordException$, InvalidPasswordException);
456
+ export var LimitExceededException$ = [-3, n0, _LEE,
457
+ { [_e]: _c, [_hE]: 409 },
458
+ [_M],
459
+ [0]
460
+ ];
461
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
462
+ export var ProhibitedStateException$ = [-3, n0, _PSE,
463
+ { [_e]: _c, [_hE]: 409 },
464
+ [_M],
465
+ [0]
466
+ ];
467
+ n0_registry.registerError(ProhibitedStateException$, ProhibitedStateException);
468
+ export var RequestedEntityTooLargeException$ = [-3, n0, _RETLE,
469
+ { [_e]: _c, [_hE]: 413 },
470
+ [_M],
471
+ [0]
472
+ ];
473
+ n0_registry.registerError(RequestedEntityTooLargeException$, RequestedEntityTooLargeException);
474
+ export var ResourceAlreadyCheckedOutException$ = [-3, n0, _RACOE,
475
+ { [_e]: _c, [_hE]: 409 },
476
+ [_M],
477
+ [0]
478
+ ];
479
+ n0_registry.registerError(ResourceAlreadyCheckedOutException$, ResourceAlreadyCheckedOutException);
480
+ export var ServiceUnavailableException$ = [-3, n0, _SUE,
481
+ { [_e]: _se, [_hE]: 503 },
482
+ [_M],
483
+ [0]
484
+ ];
485
+ n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
486
+ export var StorageLimitExceededException$ = [-3, n0, _SLEE,
487
+ { [_e]: _c, [_hE]: 409 },
488
+ [_M],
489
+ [0]
490
+ ];
491
+ n0_registry.registerError(StorageLimitExceededException$, StorageLimitExceededException);
492
+ export var StorageLimitWillExceedException$ = [-3, n0, _SLWEE,
493
+ { [_e]: _c, [_hE]: 413 },
494
+ [_M],
495
+ [0]
496
+ ];
497
+ n0_registry.registerError(StorageLimitWillExceedException$, StorageLimitWillExceedException);
498
+ export var TooManyLabelsException$ = [-3, n0, _TMLE,
499
+ { [_e]: _c, [_hE]: 429 },
500
+ [_M],
501
+ [0]
502
+ ];
503
+ n0_registry.registerError(TooManyLabelsException$, TooManyLabelsException);
504
+ export var TooManySubscriptionsException$ = [-3, n0, _TMSE,
505
+ { [_e]: _c, [_hE]: 429 },
506
+ [_M],
507
+ [0]
508
+ ];
509
+ n0_registry.registerError(TooManySubscriptionsException$, TooManySubscriptionsException);
510
+ export var UnauthorizedOperationException$ = [-3, n0, _UOE,
511
+ { [_e]: _c, [_hE]: 403 },
512
+ [_M, _C],
513
+ [0, 0]
514
+ ];
515
+ n0_registry.registerError(UnauthorizedOperationException$, UnauthorizedOperationException);
516
+ export var UnauthorizedResourceAccessException$ = [-3, n0, _URAE,
517
+ { [_e]: _c, [_hE]: 404 },
518
+ [_M],
519
+ [0]
520
+ ];
521
+ n0_registry.registerError(UnauthorizedResourceAccessException$, UnauthorizedResourceAccessException);
522
+ export const errorTypeRegistries = [
523
+ _s_registry,
524
+ n0_registry,
525
+ ];
368
526
  var AuthenticationHeaderType = [0, n0, _AHT, 8, 0];
369
527
  var CommentTextType = [0, n0, _CTT, 8, 0];
370
528
  var EmailAddressType = [0, n0, _EAT, 8, 0];
@@ -406,28 +564,16 @@ export var AddResourcePermissionsResponse$ = [3, n0, _ARPRd,
406
564
  [_SR],
407
565
  [[() => ShareResultsList, 0]]
408
566
  ];
409
- export var Comment$ = [3, n0, _C,
567
+ export var Comment$ = [3, n0, _Co,
410
568
  0,
411
- [_CI, _PI, _TI, _Te, _Co, _CT, _S, _V, _RIe],
569
+ [_CI, _PI, _TI, _Te, _Con, _CT, _S, _V, _RIe],
412
570
  [0, 0, 0, [() => CommentTextType, 0], [() => User$, 0], 4, 0, 0, 0], 1
413
571
  ];
414
572
  export var CommentMetadata$ = [3, n0, _CM,
415
573
  0,
416
- [_CI, _Co, _CT, _CS, _RIe, _CIo],
574
+ [_CI, _Con, _CT, _CS, _RIe, _CIo],
417
575
  [0, [() => User$, 0], 4, 0, 0, 0]
418
576
  ];
419
- export var ConcurrentModificationException$ = [-3, n0, _CME,
420
- { [_e]: _c, [_hE]: 409 },
421
- [_M],
422
- [0]
423
- ];
424
- TypeRegistry.for(n0).registerError(ConcurrentModificationException$, ConcurrentModificationException);
425
- export var ConflictingOperationException$ = [-3, n0, _COE,
426
- { [_e]: _c, [_hE]: 409 },
427
- [_M],
428
- [0]
429
- ];
430
- TypeRegistry.for(n0).registerError(ConflictingOperationException$, ConflictingOperationException);
431
577
  export var CreateCommentRequest$ = [3, n0, _CCR,
432
578
  0,
433
579
  [_DI, _VI, _Te, _AT, _PI, _TI, _V, _NC],
@@ -435,7 +581,7 @@ export var CreateCommentRequest$ = [3, n0, _CCR,
435
581
  ];
436
582
  export var CreateCommentResponse$ = [3, n0, _CCRr,
437
583
  0,
438
- [_C],
584
+ [_Co],
439
585
  [[() => Comment$, 0]]
440
586
  ];
441
587
  export var CreateCustomMetadataRequest$ = [3, n0, _CCMR,
@@ -488,12 +634,6 @@ export var CreateUserResponse$ = [3, n0, _CURr,
488
634
  [_U],
489
635
  [[() => User$, 0]]
490
636
  ];
491
- export var CustomMetadataLimitExceededException$ = [-3, n0, _CMLEE,
492
- { [_e]: _c, [_hE]: 429 },
493
- [_M],
494
- [0]
495
- ];
496
- TypeRegistry.for(n0).registerError(CustomMetadataLimitExceededException$, CustomMetadataLimitExceededException);
497
637
  export var DateRangeType$ = [3, n0, _DRT,
498
638
  0,
499
639
  [_SV, _EV],
@@ -504,12 +644,6 @@ export var DeactivateUserRequest$ = [3, n0, _DUR,
504
644
  [_UI, _AT],
505
645
  [[0, 1], [() => AuthenticationHeaderType, { [_hH]: _A }]], 1
506
646
  ];
507
- export var DeactivatingLastSystemUserException$ = [-3, n0, _DLSUE,
508
- { [_e]: _c, [_hE]: 409 },
509
- [_M, _Cod],
510
- [0, 0]
511
- ];
512
- TypeRegistry.for(n0).registerError(DeactivatingLastSystemUserException$, DeactivatingLastSystemUserException);
513
647
  export var DeleteCommentRequest$ = [3, n0, _DCR,
514
648
  0,
515
649
  [_DI, _VI, _CI, _AT],
@@ -598,7 +732,7 @@ export var DescribeDocumentVersionsResponse$ = [3, n0, _DDVRes,
598
732
  export var DescribeFolderContentsRequest$ = [3, n0, _DFCRe,
599
733
  0,
600
734
  [_FI, _AT, _So, _O, _Li, _Ma, _T, _In],
601
- [[0, 1], [() => AuthenticationHeaderType, { [_hH]: _A }], [0, { [_hQ]: _s }], [0, { [_hQ]: _o }], [1, { [_hQ]: _li }], [0, { [_hQ]: _m }], [0, { [_hQ]: _t }], [0, { [_hQ]: _i }]], 1
735
+ [[0, 1], [() => AuthenticationHeaderType, { [_hH]: _A }], [0, { [_hQ]: _so }], [0, { [_hQ]: _o }], [1, { [_hQ]: _li }], [0, { [_hQ]: _m }], [0, { [_hQ]: _t }], [0, { [_hQ]: _i }]], 1
602
736
  ];
603
737
  export var DescribeFolderContentsResponse$ = [3, n0, _DFCRes,
604
738
  0,
@@ -648,19 +782,13 @@ export var DescribeRootFoldersResponse$ = [3, n0, _DRFRe,
648
782
  export var DescribeUsersRequest$ = [3, n0, _DURes,
649
783
  0,
650
784
  [_AT, _OI, _UIs, _Q, _In, _O, _So, _Ma, _Li, _F],
651
- [[() => AuthenticationHeaderType, { [_hH]: _A }], [0, { [_hQ]: _oI }], [0, { [_hQ]: _uIs }], [() => SearchQueryType, { [_hQ]: _q }], [0, { [_hQ]: _i }], [0, { [_hQ]: _o }], [0, { [_hQ]: _s }], [0, { [_hQ]: _m }], [1, { [_hQ]: _li }], [0, { [_hQ]: _f }]]
785
+ [[() => AuthenticationHeaderType, { [_hH]: _A }], [0, { [_hQ]: _oI }], [0, { [_hQ]: _uIs }], [() => SearchQueryType, { [_hQ]: _q }], [0, { [_hQ]: _i }], [0, { [_hQ]: _o }], [0, { [_hQ]: _so }], [0, { [_hQ]: _m }], [1, { [_hQ]: _li }], [0, { [_hQ]: _f }]]
652
786
  ];
653
787
  export var DescribeUsersResponse$ = [3, n0, _DUResc,
654
788
  0,
655
789
  [_Use, _TNOU, _Ma],
656
790
  [[() => OrganizationUserList, 0], 1, 0]
657
791
  ];
658
- export var DocumentLockedForCommentsException$ = [-3, n0, _DLFCE,
659
- { [_e]: _c, [_hE]: 409 },
660
- [_M],
661
- [0]
662
- ];
663
- TypeRegistry.for(n0).registerError(DocumentLockedForCommentsException$, DocumentLockedForCommentsException);
664
792
  export var DocumentMetadata$ = [3, n0, _DM,
665
793
  0,
666
794
  [_Id, _CIr, _PFI, _CT, _MTo, _LVM, _RS, _L],
@@ -671,30 +799,6 @@ export var DocumentVersionMetadata$ = [3, n0, _DVM,
671
799
  [_Id, _N, _CTo, _Si, _Sig, _S, _CT, _MTo, _CCT, _CMT, _CIr, _Th, _Sou],
672
800
  [0, [() => ResourceNameType, 0], 0, 1, 0, 0, 4, 4, 4, 4, 0, [() => DocumentThumbnailUrlMap, 0], [() => DocumentSourceUrlMap, 0]]
673
801
  ];
674
- export var DraftUploadOutOfSyncException$ = [-3, n0, _DUOOSE,
675
- { [_e]: _c, [_hE]: 409 },
676
- [_M],
677
- [0]
678
- ];
679
- TypeRegistry.for(n0).registerError(DraftUploadOutOfSyncException$, DraftUploadOutOfSyncException);
680
- export var EntityAlreadyExistsException$ = [-3, n0, _EAEE,
681
- { [_e]: _c, [_hE]: 409 },
682
- [_M],
683
- [0]
684
- ];
685
- TypeRegistry.for(n0).registerError(EntityAlreadyExistsException$, EntityAlreadyExistsException);
686
- export var EntityNotExistsException$ = [-3, n0, _ENEE,
687
- { [_e]: _c, [_hE]: 404 },
688
- [_M, _EI],
689
- [0, 64 | 0]
690
- ];
691
- TypeRegistry.for(n0).registerError(EntityNotExistsException$, EntityNotExistsException);
692
- export var FailedDependencyException$ = [-3, n0, _FDE,
693
- { [_e]: _c, [_hE]: 424 },
694
- [_M],
695
- [0]
696
- ];
697
- TypeRegistry.for(n0).registerError(FailedDependencyException$, FailedDependencyException);
698
802
  export var Filters$ = [3, n0, _Fi,
699
803
  0,
700
804
  [_TL, _CC, _RT, _L, _Pr, _AI, _SCT, _SRi, _CR, _MR],
@@ -780,12 +884,6 @@ export var GroupMetadata$ = [3, n0, _GM,
780
884
  [_Id, _N],
781
885
  [0, 0]
782
886
  ];
783
- export var IllegalUserStateException$ = [-3, n0, _IUSE,
784
- { [_e]: _c, [_hE]: 409 },
785
- [_M],
786
- [0]
787
- ];
788
- TypeRegistry.for(n0).registerError(IllegalUserStateException$, IllegalUserStateException);
789
887
  export var InitiateDocumentVersionUploadRequest$ = [3, n0, _IDVUR,
790
888
  0,
791
889
  [_AT, _Id, _N, _CCT, _CMT, _CTo, _DSIB, _PFI],
@@ -796,36 +894,6 @@ export var InitiateDocumentVersionUploadResponse$ = [3, n0, _IDVURn,
796
894
  [_Me, _UM],
797
895
  [[() => DocumentMetadata$, 0], [() => UploadMetadata$, 0]]
798
896
  ];
799
- export var InvalidArgumentException$ = [-3, n0, _IAE,
800
- { [_e]: _c, [_hE]: 400 },
801
- [_M],
802
- [0]
803
- ];
804
- TypeRegistry.for(n0).registerError(InvalidArgumentException$, InvalidArgumentException);
805
- export var InvalidCommentOperationException$ = [-3, n0, _ICOE,
806
- { [_e]: _c, [_hE]: 409 },
807
- [_M],
808
- [0]
809
- ];
810
- TypeRegistry.for(n0).registerError(InvalidCommentOperationException$, InvalidCommentOperationException);
811
- export var InvalidOperationException$ = [-3, n0, _IOE,
812
- { [_e]: _c, [_hE]: 405 },
813
- [_M],
814
- [0]
815
- ];
816
- TypeRegistry.for(n0).registerError(InvalidOperationException$, InvalidOperationException);
817
- export var InvalidPasswordException$ = [-3, n0, _IPE,
818
- { [_e]: _c, [_hE]: 401 },
819
- [_M],
820
- [0]
821
- ];
822
- TypeRegistry.for(n0).registerError(InvalidPasswordException$, InvalidPasswordException);
823
- export var LimitExceededException$ = [-3, n0, _LEE,
824
- { [_e]: _c, [_hE]: 409 },
825
- [_M],
826
- [0]
827
- ];
828
- TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
829
897
  export var LongRangeType$ = [3, n0, _LRT,
830
898
  0,
831
899
  [_SV, _EV],
@@ -851,12 +919,6 @@ export var Principal$ = [3, n0, _Pri,
851
919
  [_Id, _T, _Ro],
852
920
  [0, 0, () => PermissionInfoList]
853
921
  ];
854
- export var ProhibitedStateException$ = [-3, n0, _PSE,
855
- { [_e]: _c, [_hE]: 409 },
856
- [_M],
857
- [0]
858
- ];
859
- TypeRegistry.for(n0).registerError(ProhibitedStateException$, ProhibitedStateException);
860
922
  export var RemoveAllResourcePermissionsRequest$ = [3, n0, _RARPR,
861
923
  0,
862
924
  [_RI, _AT],
@@ -867,18 +929,6 @@ export var RemoveResourcePermissionRequest$ = [3, n0, _RRPR,
867
929
  [_RI, _PIr, _AT, _PTr],
868
930
  [[0, 1], [0, 1], [() => AuthenticationHeaderType, { [_hH]: _A }], [0, { [_hQ]: _t }]], 2
869
931
  ];
870
- export var RequestedEntityTooLargeException$ = [-3, n0, _RETLE,
871
- { [_e]: _c, [_hE]: 413 },
872
- [_M],
873
- [0]
874
- ];
875
- TypeRegistry.for(n0).registerError(RequestedEntityTooLargeException$, RequestedEntityTooLargeException);
876
- export var ResourceAlreadyCheckedOutException$ = [-3, n0, _RACOE,
877
- { [_e]: _c, [_hE]: 409 },
878
- [_M],
879
- [0]
880
- ];
881
- TypeRegistry.for(n0).registerError(ResourceAlreadyCheckedOutException$, ResourceAlreadyCheckedOutException);
882
932
  export var ResourceMetadata$ = [3, n0, _RM,
883
933
  0,
884
934
  [_T, _N, _ON, _Id, _VI, _Ow, _PI],
@@ -924,12 +974,6 @@ export var SearchSortResult$ = [3, n0, _SSR,
924
974
  [_Fie, _O],
925
975
  [0, 0]
926
976
  ];
927
- export var ServiceUnavailableException$ = [-3, n0, _SUE,
928
- { [_e]: _se, [_hE]: 503 },
929
- [_M],
930
- [0]
931
- ];
932
- TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
933
977
  export var SharePrincipal$ = [3, n0, _SP,
934
978
  0,
935
979
  [_Id, _T, _R],
@@ -940,18 +984,6 @@ export var ShareResult$ = [3, n0, _SRh,
940
984
  [_PIr, _IPI, _R, _S, _SIh, _SM],
941
985
  [0, 0, 0, 0, 0, [() => MessageType, 0]]
942
986
  ];
943
- export var StorageLimitExceededException$ = [-3, n0, _SLEE,
944
- { [_e]: _c, [_hE]: 409 },
945
- [_M],
946
- [0]
947
- ];
948
- TypeRegistry.for(n0).registerError(StorageLimitExceededException$, StorageLimitExceededException);
949
- export var StorageLimitWillExceedException$ = [-3, n0, _SLWEE,
950
- { [_e]: _c, [_hE]: 413 },
951
- [_M],
952
- [0]
953
- ];
954
- TypeRegistry.for(n0).registerError(StorageLimitWillExceedException$, StorageLimitWillExceedException);
955
987
  export var StorageRuleType$ = [3, n0, _SRT,
956
988
  0,
957
989
  [_SAIB, _STto],
@@ -962,30 +994,6 @@ export var Subscription$ = [3, n0, _Su,
962
994
  [_SI, _EP, _Pro],
963
995
  [0, 0, 0]
964
996
  ];
965
- export var TooManyLabelsException$ = [-3, n0, _TMLE,
966
- { [_e]: _c, [_hE]: 429 },
967
- [_M],
968
- [0]
969
- ];
970
- TypeRegistry.for(n0).registerError(TooManyLabelsException$, TooManyLabelsException);
971
- export var TooManySubscriptionsException$ = [-3, n0, _TMSE,
972
- { [_e]: _c, [_hE]: 429 },
973
- [_M],
974
- [0]
975
- ];
976
- TypeRegistry.for(n0).registerError(TooManySubscriptionsException$, TooManySubscriptionsException);
977
- export var UnauthorizedOperationException$ = [-3, n0, _UOE,
978
- { [_e]: _c, [_hE]: 403 },
979
- [_M, _Cod],
980
- [0, 0]
981
- ];
982
- TypeRegistry.for(n0).registerError(UnauthorizedOperationException$, UnauthorizedOperationException);
983
- export var UnauthorizedResourceAccessException$ = [-3, n0, _URAE,
984
- { [_e]: _c, [_hE]: 404 },
985
- [_M],
986
- [0]
987
- ];
988
- TypeRegistry.for(n0).registerError(UnauthorizedResourceAccessException$, UnauthorizedResourceAccessException);
989
997
  export var UpdateDocumentRequest$ = [3, n0, _UDR,
990
998
  0,
991
999
  [_DI, _AT, _N, _PFI, _RS],
@@ -1032,8 +1040,6 @@ export var UserStorageMetadata$ = [3, n0, _USM,
1032
1040
  [1, () => StorageRuleType$]
1033
1041
  ];
1034
1042
  var __Unit = "unit";
1035
- export var WorkDocsServiceException$ = [-3, _sm, "WorkDocsServiceException", 0, [], []];
1036
- TypeRegistry.for(_sm).registerError(WorkDocsServiceException$, WorkDocsServiceException);
1037
1043
  var AdditionalResponseFieldsList = 64 | 0;
1038
1044
  var CommentList = [1, n0, _CL,
1039
1045
  0, [() => Comment$,
@@ -1,4 +1,37 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var WorkDocsServiceException$: StaticErrorSchema;
4
+ export declare var ConcurrentModificationException$: StaticErrorSchema;
5
+ export declare var ConflictingOperationException$: StaticErrorSchema;
6
+ export declare var CustomMetadataLimitExceededException$: StaticErrorSchema;
7
+ export declare var DeactivatingLastSystemUserException$: StaticErrorSchema;
8
+ export declare var DocumentLockedForCommentsException$: StaticErrorSchema;
9
+ export declare var DraftUploadOutOfSyncException$: StaticErrorSchema;
10
+ export declare var EntityAlreadyExistsException$: StaticErrorSchema;
11
+ export declare var EntityNotExistsException$: StaticErrorSchema;
12
+ export declare var FailedDependencyException$: StaticErrorSchema;
13
+ export declare var IllegalUserStateException$: StaticErrorSchema;
14
+ export declare var InvalidArgumentException$: StaticErrorSchema;
15
+ export declare var InvalidCommentOperationException$: StaticErrorSchema;
16
+ export declare var InvalidOperationException$: StaticErrorSchema;
17
+ export declare var InvalidPasswordException$: StaticErrorSchema;
18
+ export declare var LimitExceededException$: StaticErrorSchema;
19
+ export declare var ProhibitedStateException$: StaticErrorSchema;
20
+ export declare var RequestedEntityTooLargeException$: StaticErrorSchema;
21
+ export declare var ResourceAlreadyCheckedOutException$: StaticErrorSchema;
22
+ export declare var ServiceUnavailableException$: StaticErrorSchema;
23
+ export declare var StorageLimitExceededException$: StaticErrorSchema;
24
+ export declare var StorageLimitWillExceedException$: StaticErrorSchema;
25
+ export declare var TooManyLabelsException$: StaticErrorSchema;
26
+ export declare var TooManySubscriptionsException$: StaticErrorSchema;
27
+ export declare var UnauthorizedOperationException$: StaticErrorSchema;
28
+ export declare var UnauthorizedResourceAccessException$: StaticErrorSchema;
29
+ /**
30
+ * TypeRegistry instances containing modeled errors.
31
+ * @internal
32
+ *
33
+ */
34
+ export declare const errorTypeRegistries: TypeRegistry[];
2
35
  export declare var AbortDocumentVersionUploadRequest$: StaticStructureSchema;
3
36
  export declare var ActivateUserRequest$: StaticStructureSchema;
4
37
  export declare var ActivateUserResponse$: StaticStructureSchema;
@@ -7,8 +40,6 @@ export declare var AddResourcePermissionsRequest$: StaticStructureSchema;
7
40
  export declare var AddResourcePermissionsResponse$: StaticStructureSchema;
8
41
  export declare var Comment$: StaticStructureSchema;
9
42
  export declare var CommentMetadata$: StaticStructureSchema;
10
- export declare var ConcurrentModificationException$: StaticErrorSchema;
11
- export declare var ConflictingOperationException$: StaticErrorSchema;
12
43
  export declare var CreateCommentRequest$: StaticStructureSchema;
13
44
  export declare var CreateCommentResponse$: StaticStructureSchema;
14
45
  export declare var CreateCustomMetadataRequest$: StaticStructureSchema;
@@ -21,10 +52,8 @@ export declare var CreateNotificationSubscriptionRequest$: StaticStructureSchema
21
52
  export declare var CreateNotificationSubscriptionResponse$: StaticStructureSchema;
22
53
  export declare var CreateUserRequest$: StaticStructureSchema;
23
54
  export declare var CreateUserResponse$: StaticStructureSchema;
24
- export declare var CustomMetadataLimitExceededException$: StaticErrorSchema;
25
55
  export declare var DateRangeType$: StaticStructureSchema;
26
56
  export declare var DeactivateUserRequest$: StaticStructureSchema;
27
- export declare var DeactivatingLastSystemUserException$: StaticErrorSchema;
28
57
  export declare var DeleteCommentRequest$: StaticStructureSchema;
29
58
  export declare var DeleteCustomMetadataRequest$: StaticStructureSchema;
30
59
  export declare var DeleteCustomMetadataResponse$: StaticStructureSchema;
@@ -54,13 +83,8 @@ export declare var DescribeRootFoldersRequest$: StaticStructureSchema;
54
83
  export declare var DescribeRootFoldersResponse$: StaticStructureSchema;
55
84
  export declare var DescribeUsersRequest$: StaticStructureSchema;
56
85
  export declare var DescribeUsersResponse$: StaticStructureSchema;
57
- export declare var DocumentLockedForCommentsException$: StaticErrorSchema;
58
86
  export declare var DocumentMetadata$: StaticStructureSchema;
59
87
  export declare var DocumentVersionMetadata$: StaticStructureSchema;
60
- export declare var DraftUploadOutOfSyncException$: StaticErrorSchema;
61
- export declare var EntityAlreadyExistsException$: StaticErrorSchema;
62
- export declare var EntityNotExistsException$: StaticErrorSchema;
63
- export declare var FailedDependencyException$: StaticErrorSchema;
64
88
  export declare var Filters$: StaticStructureSchema;
65
89
  export declare var FolderMetadata$: StaticStructureSchema;
66
90
  export declare var GetCurrentUserRequest$: StaticStructureSchema;
@@ -78,24 +102,15 @@ export declare var GetFolderResponse$: StaticStructureSchema;
78
102
  export declare var GetResourcesRequest$: StaticStructureSchema;
79
103
  export declare var GetResourcesResponse$: StaticStructureSchema;
80
104
  export declare var GroupMetadata$: StaticStructureSchema;
81
- export declare var IllegalUserStateException$: StaticErrorSchema;
82
105
  export declare var InitiateDocumentVersionUploadRequest$: StaticStructureSchema;
83
106
  export declare var InitiateDocumentVersionUploadResponse$: StaticStructureSchema;
84
- export declare var InvalidArgumentException$: StaticErrorSchema;
85
- export declare var InvalidCommentOperationException$: StaticErrorSchema;
86
- export declare var InvalidOperationException$: StaticErrorSchema;
87
- export declare var InvalidPasswordException$: StaticErrorSchema;
88
- export declare var LimitExceededException$: StaticErrorSchema;
89
107
  export declare var LongRangeType$: StaticStructureSchema;
90
108
  export declare var NotificationOptions$: StaticStructureSchema;
91
109
  export declare var Participants$: StaticStructureSchema;
92
110
  export declare var PermissionInfo$: StaticStructureSchema;
93
111
  export declare var Principal$: StaticStructureSchema;
94
- export declare var ProhibitedStateException$: StaticErrorSchema;
95
112
  export declare var RemoveAllResourcePermissionsRequest$: StaticStructureSchema;
96
113
  export declare var RemoveResourcePermissionRequest$: StaticStructureSchema;
97
- export declare var RequestedEntityTooLargeException$: StaticErrorSchema;
98
- export declare var ResourceAlreadyCheckedOutException$: StaticErrorSchema;
99
114
  export declare var ResourceMetadata$: StaticStructureSchema;
100
115
  export declare var ResourcePath$: StaticStructureSchema;
101
116
  export declare var ResourcePathComponent$: StaticStructureSchema;
@@ -105,17 +120,10 @@ export declare var SearchPrincipalType$: StaticStructureSchema;
105
120
  export declare var SearchResourcesRequest$: StaticStructureSchema;
106
121
  export declare var SearchResourcesResponse$: StaticStructureSchema;
107
122
  export declare var SearchSortResult$: StaticStructureSchema;
108
- export declare var ServiceUnavailableException$: StaticErrorSchema;
109
123
  export declare var SharePrincipal$: StaticStructureSchema;
110
124
  export declare var ShareResult$: StaticStructureSchema;
111
- export declare var StorageLimitExceededException$: StaticErrorSchema;
112
- export declare var StorageLimitWillExceedException$: StaticErrorSchema;
113
125
  export declare var StorageRuleType$: StaticStructureSchema;
114
126
  export declare var Subscription$: StaticStructureSchema;
115
- export declare var TooManyLabelsException$: StaticErrorSchema;
116
- export declare var TooManySubscriptionsException$: StaticErrorSchema;
117
- export declare var UnauthorizedOperationException$: StaticErrorSchema;
118
- export declare var UnauthorizedResourceAccessException$: StaticErrorSchema;
119
127
  export declare var UpdateDocumentRequest$: StaticStructureSchema;
120
128
  export declare var UpdateDocumentVersionRequest$: StaticStructureSchema;
121
129
  export declare var UpdateFolderRequest$: StaticStructureSchema;
@@ -125,7 +133,6 @@ export declare var UploadMetadata$: StaticStructureSchema;
125
133
  export declare var User$: StaticStructureSchema;
126
134
  export declare var UserMetadata$: StaticStructureSchema;
127
135
  export declare var UserStorageMetadata$: StaticStructureSchema;
128
- export declare var WorkDocsServiceException$: StaticErrorSchema;
129
136
  export declare var AbortDocumentVersionUpload$: StaticOperationSchema;
130
137
  export declare var ActivateUser$: StaticOperationSchema;
131
138
  export declare var AddResourcePermissions$: StaticOperationSchema;