@jjrawlins/cdk-iam-policy-builder-helper 0.0.10 → 0.0.12
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.
- package/.jsii +6 -6
- package/cdk-iam-policy-builder-helper/go.mod +1 -1
- package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
- package/cdk-iam-policy-builder-helper/version +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-cjs/auth/httpAuthSchemeProvider.js +3 -3
- package/node_modules/@aws-sdk/client-iam/dist-cjs/endpoint/ruleset.js +3 -3
- package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +63 -24
- package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.js +9 -5
- package/node_modules/@aws-sdk/client-iam/dist-es/IAMClient.js +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-es/auth/httpAuthSchemeProvider.js +3 -3
- package/node_modules/@aws-sdk/client-iam/dist-es/endpoint/EndpointParameters.js +2 -3
- package/node_modules/@aws-sdk/client-iam/dist-es/endpoint/ruleset.js +3 -3
- package/node_modules/@aws-sdk/client-iam/dist-es/models/models_0.js +2 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/protocols/Aws_query.js +38 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/runtimeConfig.js +10 -6
- package/node_modules/@aws-sdk/client-iam/dist-es/runtimeExtensions.js +2 -14
- package/node_modules/@aws-sdk/client-iam/dist-types/auth/httpAuthSchemeProvider.d.ts +15 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/AddClientIDToOpenIDConnectProviderCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/AddRoleToInstanceProfileCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/AddUserToGroupCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/AttachGroupPolicyCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/AttachRolePolicyCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/AttachUserPolicyCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ChangePasswordCommand.d.ts +14 -10
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateAccessKeyCommand.d.ts +11 -11
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateAccountAliasCommand.d.ts +8 -5
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateGroupCommand.d.ts +11 -11
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateInstanceProfileCommand.d.ts +12 -12
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateLoginProfileCommand.d.ts +11 -11
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateOpenIDConnectProviderCommand.d.ts +9 -9
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreatePolicyCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreatePolicyVersionCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateRoleCommand.d.ts +14 -14
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateSAMLProviderCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateServiceLinkedRoleCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateServiceSpecificCredentialCommand.d.ts +12 -9
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateUserCommand.d.ts +11 -11
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateVirtualMFADeviceCommand.d.ts +6 -4
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeactivateMFADeviceCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteAccessKeyCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteAccountAliasCommand.d.ts +8 -5
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteAccountPasswordPolicyCommand.d.ts +7 -4
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteGroupCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteGroupPolicyCommand.d.ts +11 -8
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteInstanceProfileCommand.d.ts +8 -5
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteLoginProfileCommand.d.ts +12 -8
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteOpenIDConnectProviderCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeletePolicyCommand.d.ts +7 -8
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeletePolicyVersionCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteRoleCommand.d.ts +12 -9
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteRolePermissionsBoundaryCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteRolePolicyCommand.d.ts +11 -8
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteSAMLProviderCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteSSHPublicKeyCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteServerCertificateCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteServiceLinkedRoleCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteServiceSpecificCredentialCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteSigningCertificateCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteUserCommand.d.ts +17 -14
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteUserPermissionsBoundaryCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteUserPolicyCommand.d.ts +11 -8
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DeleteVirtualMFADeviceCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DetachGroupPolicyCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DetachRolePolicyCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DetachUserPolicyCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DisableOrganizationsRootCredentialsManagementCommand.d.ts +7 -7
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/DisableOrganizationsRootSessionsCommand.d.ts +7 -7
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/EnableMFADeviceCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/EnableOrganizationsRootCredentialsManagementCommand.d.ts +7 -7
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/EnableOrganizationsRootSessionsCommand.d.ts +7 -7
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GenerateCredentialReportCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GenerateOrganizationsAccessReportCommand.d.ts +11 -11
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GenerateServiceLastAccessedDetailsCommand.d.ts +12 -12
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetAccessKeyLastUsedCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetAccountAuthorizationDetailsCommand.d.ts +3 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetAccountPasswordPolicyCommand.d.ts +15 -15
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetAccountSummaryCommand.d.ts +31 -31
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetContextKeysForCustomPolicyCommand.d.ts +6 -5
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetContextKeysForPrincipalPolicyCommand.d.ts +6 -4
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetCredentialReportCommand.d.ts +5 -4
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetGroupCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetGroupPolicyCommand.d.ts +6 -4
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetInstanceProfileCommand.d.ts +18 -18
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetLoginProfileCommand.d.ts +7 -7
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetMFADeviceCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetOpenIDConnectProviderCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetOrganizationsAccessReportCommand.d.ts +31 -32
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetPolicyCommand.d.ts +6 -5
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetPolicyVersionCommand.d.ts +7 -4
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetRoleCommand.d.ts +18 -17
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetRolePolicyCommand.d.ts +7 -5
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetSAMLProviderCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetSSHPublicKeyCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetServerCertificateCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetServiceLastAccessedDetailsCommand.d.ts +18 -18
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetServiceLastAccessedDetailsWithEntitiesCommand.d.ts +24 -24
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetServiceLinkedRoleDeletionStatusCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetUserCommand.d.ts +10 -10
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetUserPolicyCommand.d.ts +7 -5
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListAccessKeysCommand.d.ts +14 -14
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListAccountAliasesCommand.d.ts +5 -5
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListAttachedGroupPoliciesCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListAttachedRolePoliciesCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListAttachedUserPoliciesCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListEntitiesForPolicyCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListGroupPoliciesCommand.d.ts +9 -9
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListGroupsCommand.d.ts +20 -20
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListGroupsForUserCommand.d.ts +16 -16
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListInstanceProfileTagsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListInstanceProfilesCommand.d.ts +3 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListInstanceProfilesForRoleCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListMFADeviceTagsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListMFADevicesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListOpenIDConnectProviderTagsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListOpenIDConnectProvidersCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListOrganizationsFeaturesCommand.d.ts +7 -7
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListPoliciesCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListPoliciesGrantingServiceAccessCommand.d.ts +23 -23
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListPolicyTagsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListPolicyVersionsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListRolePoliciesCommand.d.ts +5 -4
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListRoleTagsCommand.d.ts +11 -11
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListRolesCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListSAMLProviderTagsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListSAMLProvidersCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListSSHPublicKeysCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListServerCertificateTagsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListServerCertificatesCommand.d.ts +3 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListServiceSpecificCredentialsCommand.d.ts +10 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListSigningCertificatesCommand.d.ts +11 -11
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListUserPoliciesCommand.d.ts +5 -4
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListUserTagsCommand.d.ts +11 -11
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListUsersCommand.d.ts +18 -18
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListVirtualMFADevicesCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/PutGroupPolicyCommand.d.ts +11 -8
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/PutRolePermissionsBoundaryCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/PutRolePolicyCommand.d.ts +10 -7
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/PutUserPermissionsBoundaryCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/PutUserPolicyCommand.d.ts +10 -7
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/RemoveClientIDFromOpenIDConnectProviderCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/RemoveRoleFromInstanceProfileCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/RemoveUserFromGroupCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ResetServiceSpecificCredentialCommand.d.ts +8 -4
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ResyncMFADeviceCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/SetDefaultPolicyVersionCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/SetSecurityTokenServicePreferencesCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/SimulateCustomPolicyCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/SimulatePrincipalPolicyCommand.d.ts +5 -5
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagInstanceProfileCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagMFADeviceCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagOpenIDConnectProviderCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagPolicyCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagRoleCommand.d.ts +13 -10
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagSAMLProviderCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagServerCertificateCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagUserCommand.d.ts +13 -10
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagInstanceProfileCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagMFADeviceCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagOpenIDConnectProviderCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagPolicyCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagRoleCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagSAMLProviderCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagServerCertificateCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagUserCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateAccessKeyCommand.d.ts +15 -8
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateAccountPasswordPolicyCommand.d.ts +8 -5
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateAssumeRolePolicyCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateGroupCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateLoginProfileCommand.d.ts +12 -9
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateOpenIDConnectProviderThumbprintCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateRoleCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateRoleDescriptionCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateSAMLProviderCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateSSHPublicKeyCommand.d.ts +7 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateServerCertificateCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateServiceSpecificCredentialCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateSigningCertificateCommand.d.ts +15 -8
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateUserCommand.d.ts +9 -6
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UploadSSHPublicKeyCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UploadServerCertificateCommand.d.ts +15 -15
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UploadSigningCertificateCommand.d.ts +13 -13
- package/node_modules/@aws-sdk/client-iam/dist-types/endpoint/EndpointParameters.d.ts +9 -11
- package/node_modules/@aws-sdk/client-iam/dist-types/models/models_0.d.ts +241 -181
- package/node_modules/@aws-sdk/client-iam/dist-types/models/models_1.d.ts +20 -23
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.browser.d.ts +19 -18
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.d.ts +17 -16
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.native.d.ts +20 -19
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/AddClientIDToOpenIDConnectProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/AddRoleToInstanceProfileCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/AddUserToGroupCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/AttachGroupPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/AttachRolePolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/AttachUserPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ChangePasswordCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/CreateAccountAliasCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/CreateInstanceProfileCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/CreateOpenIDConnectProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/CreatePolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/CreatePolicyVersionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/CreateRoleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/CreateSAMLProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/CreateServiceLinkedRoleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/CreateServiceSpecificCredentialCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/CreateUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/CreateVirtualMFADeviceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeactivateMFADeviceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteAccessKeyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteAccountAliasCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteGroupPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteInstanceProfileCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteOpenIDConnectProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeletePolicyVersionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteRoleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteRolePermissionsBoundaryCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteRolePolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteSAMLProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteSSHPublicKeyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteServerCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteServiceLinkedRoleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteServiceSpecificCredentialCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteSigningCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteUserPermissionsBoundaryCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteUserPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DeleteVirtualMFADeviceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DetachGroupPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DetachRolePolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/DetachUserPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/EnableMFADeviceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GenerateOrganizationsAccessReportCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GenerateServiceLastAccessedDetailsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetAccessKeyLastUsedCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetContextKeysForCustomPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetContextKeysForPrincipalPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetGroupCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetGroupPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetInstanceProfileCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetMFADeviceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetOpenIDConnectProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetOrganizationsAccessReportCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetPolicyVersionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetRoleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetRolePolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetSAMLProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetSSHPublicKeyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetServerCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetServiceLastAccessedDetailsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetServiceLastAccessedDetailsWithEntitiesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetServiceLinkedRoleDeletionStatusCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetUserPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListAttachedGroupPoliciesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListAttachedRolePoliciesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListAttachedUserPoliciesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListEntitiesForPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListGroupPoliciesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListGroupsForUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListInstanceProfileTagsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListInstanceProfilesForRoleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListMFADeviceTagsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListOpenIDConnectProviderTagsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListPoliciesGrantingServiceAccessCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListPolicyTagsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListPolicyVersionsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListRolePoliciesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListRoleTagsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListSAMLProviderTagsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListServerCertificateTagsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListUserPoliciesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ListUserTagsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/PutGroupPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/PutRolePermissionsBoundaryCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/PutRolePolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/PutUserPermissionsBoundaryCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/PutUserPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/RemoveClientIDFromOpenIDConnectProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/RemoveRoleFromInstanceProfileCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/RemoveUserFromGroupCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ResetServiceSpecificCredentialCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/ResyncMFADeviceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/SetDefaultPolicyVersionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/SetSecurityTokenServicePreferencesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/SimulateCustomPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/SimulatePrincipalPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagInstanceProfileCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagMFADeviceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagOpenIDConnectProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagRoleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagSAMLProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagServerCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagInstanceProfileCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagMFADeviceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagRoleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagSAMLProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagServerCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateAccessKeyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateAssumeRolePolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateLoginProfileCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateOpenIDConnectProviderThumbprintCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateRoleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateRoleDescriptionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateSAMLProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateSSHPublicKeyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateServerCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateServiceSpecificCredentialCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateSigningCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UploadSSHPublicKeyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UploadServerCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UploadSigningCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +12 -12
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/models_0.d.ts +15 -3
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.browser.d.ts +26 -30
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.d.ts +21 -29
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.native.d.ts +27 -31
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-iam/package.json +35 -35
- package/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +22 -23
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +9 -5
- package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/EndpointParameters.js +2 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +10 -6
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js +2 -14
- package/node_modules/@aws-sdk/client-sso/dist-types/auth/httpAuthSchemeProvider.d.ts +15 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/endpoint/EndpointParameters.d.ts +9 -11
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +19 -18
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +16 -15
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +20 -19
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/LogoutCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +12 -12
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +26 -30
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +20 -26
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +27 -31
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sso/package.json +33 -33
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +13 -15
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +15 -3
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +124 -33
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1692 -23
- package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.js +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/setTokenFeature.js +7 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +22 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +70 -27
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js +6 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +94 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +39 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +14 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js +19 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js +19 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +75 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +77 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonCodec.js +20 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +105 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +110 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js +46 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +18 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +8 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js +17 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +127 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QuerySerializerSettings.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +156 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +78 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js +20 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +151 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +283 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/simpleFormatXml.js +27 -0
- package/node_modules/@aws-sdk/core/dist-types/api-extractor-type-index.d.ts +5 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +0 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +9 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/setTokenFeature.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +5 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +25 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +8 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +6 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +57 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +23 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/common.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +14 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +18 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +18 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +23 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +24 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +19 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +15 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +21 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +15 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +12 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +20 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +43 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +6 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts +16 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +26 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts +14 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeDeserializer.d.ts +20 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/parseXmlBody.d.ts +9 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/simpleFormatXml.d.ts +6 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +5 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +6 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +11 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +5 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +39 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +33 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +14 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +15 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +15 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +44 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +36 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +16 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +15 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +3 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +14 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +57 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +6 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +16 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +41 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +17 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +15 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +1 -0
- package/node_modules/@aws-sdk/core/package.json +30 -26
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +9 -9
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +9 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +16 -16
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-process/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +17 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +9 -11
- package/node_modules/@aws-sdk/middleware-host-header/dist-types/index.d.ts +15 -0
- package/node_modules/@aws-sdk/middleware-host-header/package.json +8 -7
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +5 -5
- package/node_modules/@aws-sdk/middleware-logger/dist-types/loggerMiddleware.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-logger/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +10 -6
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +6 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +11 -11
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +10 -10
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +23 -24
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js +9 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js +2 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +6 -7
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +9 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js +2 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +10 -6
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js +2 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +10 -6
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +15 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +47 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +9 -11
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +19 -18
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +16 -15
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +20 -19
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +15 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +48 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +35 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/EndpointParameters.d.ts +11 -13
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +21 -20
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +19 -18
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +22 -21
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +12 -12
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +26 -30
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +20 -26
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +27 -31
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/EndpointParameters.d.ts +14 -14
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +30 -36
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +27 -35
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +31 -37
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +5 -7
- package/node_modules/@aws-sdk/nested-clients/package.json +37 -37
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +15 -26
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js +2 -12
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/resolveRegionConfig.js +2 -3
- package/node_modules/@aws-sdk/region-config-resolver/package.json +6 -6
- package/node_modules/@aws-sdk/token-providers/README.md +9 -0
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +24 -4
- package/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +16 -0
- package/node_modules/@aws-sdk/token-providers/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/fromEnvSigningName.d.ts +18 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromEnvSigningName.d.ts +11 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/token-providers/package.json +11 -8
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/types/dist-es/function.js +1 -0
- package/node_modules/@aws-sdk/types/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +7 -1
- package/node_modules/@aws-sdk/types/dist-types/function.d.ts +7 -0
- package/node_modules/@aws-sdk/types/dist-types/identity/TokenIdentity.d.ts +10 -0
- package/node_modules/@aws-sdk/types/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +5 -1
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/function.d.ts +7 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/TokenIdentity.d.ts +5 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/types/package.json +3 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +83 -30
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +48 -23
- package/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +48 -23
- package/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +21 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +35 -0
- package/node_modules/@aws-sdk/util-endpoints/package.json +9 -7
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +5 -5
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +6 -6
- package/node_modules/@aws-sdk/xml-builder/LICENSE +201 -0
- package/node_modules/@aws-sdk/xml-builder/README.md +10 -0
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +173 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/XmlNode.js +88 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/XmlText.js +10 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/escape-attribute.js +3 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/escape-element.js +12 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/index.js +2 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/stringable.js +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/XmlNode.d.ts +49 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/XmlText.d.ts +11 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/escape-attribute.d.ts +6 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/escape-element.d.ts +6 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/index.d.ts +8 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/stringable.d.ts +6 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/XmlNode.d.ts +29 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/XmlText.d.ts +6 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/escape-attribute.d.ts +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/escape-element.d.ts +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/index.d.ts +2 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/stringable.d.ts +3 -0
- package/node_modules/@aws-sdk/xml-builder/package.json +54 -0
- package/node_modules/@smithy/abort-controller/package.json +5 -5
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +11 -14
- package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveCustomEndpointsConfig.js +5 -6
- package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveEndpointsConfig.js +4 -5
- package/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js +2 -3
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +5 -0
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +3 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariantTag.d.ts +4 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/RegionHash.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getHostnameFromVariants.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedHostname.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedSigningRegion.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts +5 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts +3 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariant.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariantTag.d.ts +4 -1
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/PartitionHash.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/RegionHash.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getHostnameFromVariants.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getRegionInfo.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedHostname.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedPartition.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedSigningRegion.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/package.json +7 -7
- package/node_modules/@smithy/core/dist-cjs/index.js +27 -1
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +1 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +348 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +261 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +761 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +885 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +710 -0
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +4 -1
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js +20 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +172 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +95 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/byte-printer.js +37 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +39 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +33 -3
- package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +3 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +200 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +258 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +119 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +94 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +8 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +64 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +38 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js +30 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +87 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js +20 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +49 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/deref.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +12 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js +23 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schema-middleware-types.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +60 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +16 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +27 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +25 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +26 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +330 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +16 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +25 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +32 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js +16 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/generateIdempotencyToken.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +45 -0
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/httpAuthSchemeMiddleware.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/resolveAuthOptions.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +38 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/byte-printer.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-types.d.ts +1 -3
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +3 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/parseCborBody.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +60 -0
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +73 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/collect-stream-body.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +20 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/determineTimestampFormat.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +55 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/deref.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/getSchemaSerdePlugin.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schema-middleware-types.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaSerializationMiddleware.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +41 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +28 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +140 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +20 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +24 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +21 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/generateIdempotencyToken.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +9 -0
- package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/lazy-json.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/submodules/serde/value/NumericValue.d.ts +33 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-auth-scheme/httpAuthSchemeMiddleware.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/middleware-http-auth-scheme/resolveAuthOptions.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +38 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/byte-printer.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-types.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +3 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/parseCborBody.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +60 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +73 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/collect-stream-body.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +20 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/determineTimestampFormat.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +55 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/deref.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/getSchemaSerdePlugin.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schema-middleware-types.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaSerializationMiddleware.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +41 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +28 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +143 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +20 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +27 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +21 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/generateIdempotencyToken.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +9 -0
- package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/lazy-json.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/value/NumericValue.d.ts +33 -0
- package/node_modules/@smithy/core/event-streams.d.ts +7 -0
- package/node_modules/@smithy/core/event-streams.js +6 -0
- package/node_modules/@smithy/core/package.json +49 -16
- package/node_modules/@smithy/core/schema.d.ts +7 -0
- package/node_modules/@smithy/core/schema.js +6 -0
- package/node_modules/@smithy/core/serde.d.ts +7 -0
- package/node_modules/@smithy/core/serde.js +6 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +0 -3
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/staticStabilityProvider.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/utils/staticStabilityProvider.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/package.json +8 -8
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +4 -4
- package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +2 -2
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +2 -2
- package/node_modules/@smithy/fetch-http-handler/package.json +8 -8
- package/node_modules/@smithy/hash-node/package.json +5 -5
- package/node_modules/@smithy/invalid-dependency/package.json +5 -5
- package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +6 -6
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +27 -9
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js +3 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +2 -1
- package/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-es/index.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js +5 -6
- package/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointRequiredConfig.js +9 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +5 -3
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointRequiredConfig.d.ts +32 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +5 -3
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointRequiredConfig.d.ts +32 -0
- package/node_modules/@smithy/middleware-endpoint/package.json +10 -10
- package/node_modules/@smithy/middleware-retry/README.md +1 -1
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +5 -6
- package/node_modules/@smithy/middleware-retry/dist-es/configurations.js +5 -6
- package/node_modules/@smithy/middleware-retry/package.json +13 -13
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +21 -1
- package/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js +20 -0
- package/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js +4 -3
- package/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +1 -0
- package/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +14 -2
- package/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +2 -2
- package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts +1 -0
- package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts +14 -2
- package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts +2 -2
- package/node_modules/@smithy/middleware-serde/package.json +5 -4
- package/node_modules/@smithy/middleware-stack/package.json +5 -5
- package/node_modules/@smithy/node-config-provider/README.md +6 -0
- package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +14 -10
- package/node_modules/@smithy/node-config-provider/dist-es/configLoader.js +5 -1
- package/node_modules/@smithy/node-config-provider/dist-es/fromEnv.js +3 -3
- package/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts +2 -2
- package/node_modules/@smithy/node-config-provider/dist-types/fromEnv.d.ts +15 -2
- package/node_modules/@smithy/node-config-provider/dist-types/index.d.ts +3 -0
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/configLoader.d.ts +2 -2
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromEnv.d.ts +15 -2
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@smithy/node-config-provider/package.json +7 -7
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -9
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +4 -3
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +7 -6
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +1 -3
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +0 -3
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -7
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +0 -7
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -7
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -3
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -3
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +1 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/package.json +7 -7
- package/node_modules/@smithy/property-provider/dist-types/chain.d.ts +1 -1
- package/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +1 -1
- package/node_modules/@smithy/property-provider/package.json +5 -5
- package/node_modules/@smithy/protocol-http/dist-cjs/index.js +4 -5
- package/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +4 -5
- package/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +3 -7
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +3 -7
- package/node_modules/@smithy/protocol-http/package.json +5 -5
- package/node_modules/@smithy/querystring-builder/package.json +5 -5
- package/node_modules/@smithy/querystring-parser/package.json +5 -5
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +23 -1
- package/node_modules/@smithy/service-error-classification/dist-es/constants.js +1 -0
- package/node_modules/@smithy/service-error-classification/dist-es/index.js +17 -1
- package/node_modules/@smithy/service-error-classification/dist-types/constants.d.ts +4 -0
- package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +5 -0
- package/node_modules/@smithy/service-error-classification/dist-types/ts3.4/constants.d.ts +4 -0
- package/node_modules/@smithy/service-error-classification/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@smithy/service-error-classification/package.json +5 -5
- package/node_modules/@smithy/shared-ini-file-loader/package.json +5 -5
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +196 -92
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +17 -73
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +73 -0
- package/node_modules/@smithy/signature-v4/dist-es/index.js +4 -0
- package/node_modules/@smithy/signature-v4/dist-es/signature-v4a-container.js +3 -0
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +3 -59
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4Base.d.ts +69 -0
- package/node_modules/@smithy/signature-v4/dist-types/index.d.ts +4 -0
- package/node_modules/@smithy/signature-v4/dist-types/signature-v4a-container.d.ts +24 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +3 -59
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4Base.d.ts +69 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/index.d.ts +4 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/signature-v4a-container.d.ts +24 -0
- package/node_modules/@smithy/signature-v4/package.json +7 -7
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +93 -638
- package/node_modules/@smithy/smithy-client/dist-es/command.js +13 -4
- package/node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js +2 -3
- package/node_modules/@smithy/smithy-client/dist-es/extensions/defaultExtensionConfiguration.js +2 -8
- package/node_modules/@smithy/smithy-client/dist-es/extensions/retry.js +2 -3
- package/node_modules/@smithy/smithy-client/dist-es/index.js +1 -6
- package/node_modules/@smithy/smithy-client/dist-es/schemaLogFilter.js +34 -0
- package/node_modules/@smithy/smithy-client/dist-types/client.d.ts +8 -0
- package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +7 -1
- package/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +3 -1
- package/node_modules/@smithy/smithy-client/dist-types/default-error-handler.d.ts +3 -1
- package/node_modules/@smithy/smithy-client/dist-types/extensions/checksum.d.ts +0 -1
- package/node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts +6 -6
- package/node_modules/@smithy/smithy-client/dist-types/index.d.ts +1 -6
- package/node_modules/@smithy/smithy-client/dist-types/schemaLogFilter.d.ts +9 -0
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/client.d.ts +8 -0
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +7 -1
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +3 -1
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/default-error-handler.d.ts +3 -1
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/checksum.d.ts +0 -1
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +6 -6
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts +1 -6
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/schemaLogFilter.d.ts +9 -0
- package/node_modules/@smithy/smithy-client/package.json +10 -10
- package/node_modules/@smithy/types/dist-cjs/index.js +4 -9
- package/node_modules/@smithy/types/dist-cjs/schema/schema.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/schema/traits.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/transform/mutable.js +1 -0
- package/node_modules/@smithy/types/dist-es/extensions/checksum.js +2 -3
- package/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js +2 -6
- package/node_modules/@smithy/types/dist-es/index.js +3 -0
- package/node_modules/@smithy/types/dist-es/schema/schema.js +1 -0
- package/node_modules/@smithy/types/dist-es/schema/sentinels.js +1 -0
- package/node_modules/@smithy/types/dist-es/schema/traits.js +1 -0
- package/node_modules/@smithy/types/dist-es/transform/mutable.js +1 -0
- package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +0 -3
- package/node_modules/@smithy/types/dist-types/command.d.ts +5 -0
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +0 -2
- package/node_modules/@smithy/types/dist-types/index.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +262 -0
- package/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +65 -0
- package/node_modules/@smithy/types/dist-types/schema/traits.d.ts +46 -0
- package/node_modules/@smithy/types/dist-types/serde.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -3
- package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -2
- package/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +0 -2
- package/node_modules/@smithy/types/dist-types/transform/mutable.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +5 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +277 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts +65 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts +46 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts +6 -0
- package/node_modules/@smithy/types/package.json +4 -4
- package/node_modules/@smithy/url-parser/package.json +6 -6
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +6 -6
- package/node_modules/@smithy/util-defaults-mode-node/package.json +9 -9
- package/node_modules/@smithy/util-endpoints/dist-types/lib/isSet.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isSet.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/endpointFunctions.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/package.json +6 -6
- package/node_modules/@smithy/util-middleware/package.json +5 -5
- package/node_modules/@smithy/util-retry/README.md +1 -1
- package/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +1 -1
- package/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts +1 -1
- package/node_modules/@smithy/util-retry/package.json +6 -6
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +2 -3
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +9 -9
- package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +1 -2
- package/node_modules/@smithy/util-stream/dist-es/createBufferedReadable.js +1 -1
- package/node_modules/@smithy/util-stream/dist-es/createBufferedReadableStream.js +3 -3
- package/node_modules/@smithy/util-stream/dist-types/ByteArrayCollector.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +0 -3
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/createBufferedReadableStream.d.ts +3 -2
- package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/ByteArrayCollector.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadableStream.d.ts +3 -2
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/package.json +6 -6
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +27 -8
- package/node_modules/@smithy/util-waiter/dist-es/createWaiter.js +27 -8
- package/node_modules/@smithy/util-waiter/package.json +6 -6
- package/node_modules/@types/uuid/LICENSE +21 -0
- package/node_modules/@types/uuid/README.md +15 -0
- package/node_modules/@types/uuid/index.d.mts +12 -0
- package/node_modules/@types/uuid/index.d.ts +86 -0
- package/node_modules/@types/uuid/package.json +54 -0
- package/node_modules/bowser/CHANGELOG.md +1 -1
- package/node_modules/bowser/README.md +2 -4
- package/node_modules/bowser/bundled.js +1 -1
- package/node_modules/bowser/es5.js +1 -1
- package/node_modules/bowser/index.d.ts +71 -6
- package/node_modules/bowser/package.json +4 -3
- package/node_modules/bowser/src/constants.js +3 -0
- package/node_modules/bowser/src/parser-browsers.js +15 -0
- package/node_modules/bowser/src/parser-platforms.js +17 -1
- package/node_modules/bowser/src/parser.js +20 -5
- package/node_modules/bowser/src/utils.js +2 -2
- package/node_modules/fast-xml-parser/CHANGELOG.md +77 -0
- package/node_modules/fast-xml-parser/README.md +39 -52
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -0
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
- package/node_modules/fast-xml-parser/lib/fxp.d.cts +458 -0
- package/node_modules/fast-xml-parser/lib/fxp.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -0
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -0
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -0
- package/node_modules/fast-xml-parser/package.json +36 -20
- package/node_modules/fast-xml-parser/src/cli/cli.js +16 -12
- package/node_modules/fast-xml-parser/src/cli/man.js +6 -1
- package/node_modules/fast-xml-parser/src/cli/read.js +30 -79
- package/node_modules/fast-xml-parser/src/fxp.d.ts +52 -9
- package/node_modules/fast-xml-parser/src/fxp.js +11 -8
- package/node_modules/fast-xml-parser/src/ignoreAttributes.js +18 -0
- package/node_modules/fast-xml-parser/src/util.js +14 -18
- package/node_modules/fast-xml-parser/src/{v5 → v6}/CharsSymbol.js +1 -1
- package/node_modules/fast-xml-parser/src/{v5/valueParsers → v6}/EntitiesParser.js +3 -6
- package/node_modules/fast-xml-parser/src/{v5 → v6}/OptionsBuilder.js +3 -6
- package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/BaseOutputBuilder.js +1 -3
- package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsArrBuilder.js +3 -3
- package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsMinArrBuilder.js +3 -5
- package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsObjBuilder.js +3 -5
- package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/ParserOptionsBuilder.js +6 -11
- package/node_modules/fast-xml-parser/src/{v5 → v6}/TagPath.js +1 -1
- package/node_modules/fast-xml-parser/src/{v5 → v6}/TagPathMatcher.js +3 -5
- package/node_modules/fast-xml-parser/src/{v5 → v6}/XMLParser.js +3 -5
- package/node_modules/fast-xml-parser/src/{v5 → v6}/Xml2JsParser.js +8 -10
- package/node_modules/fast-xml-parser/src/{v5 → v6}/XmlPartReader.js +24 -26
- package/node_modules/fast-xml-parser/src/{v5 → v6}/XmlSpecialTagsReader.js +5 -12
- package/node_modules/fast-xml-parser/src/{v5 → v6}/inputSource/BufferSource.js +1 -3
- package/node_modules/fast-xml-parser/src/{v5 → v6}/inputSource/StringSource.js +1 -3
- package/node_modules/fast-xml-parser/src/{v5 → v6/valueParsers}/EntitiesParser.js +3 -5
- package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/booleanParser.js +1 -2
- package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/booleanParserExt.js +1 -2
- package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/currency.js +1 -3
- package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/join.js +1 -2
- package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/number.js +2 -4
- package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/trim.js +1 -3
- package/node_modules/fast-xml-parser/src/validator.js +5 -5
- package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +17 -13
- package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +1 -2
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +288 -71
- package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +3 -5
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +28 -23
- package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +21 -8
- package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +8 -2
- package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +22 -7
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/strnum/.github/SECURITY.md +5 -0
- package/node_modules/strnum/CHANGELOG.md +11 -0
- package/node_modules/strnum/algo.stflow +84 -0
- package/node_modules/strnum/package.json +2 -1
- package/node_modules/strnum/strnum.js +53 -35
- package/node_modules/strnum/strnum.test.js +9 -1
- package/node_modules/strnum/test.js +9 -0
- package/package.json +12 -12
- package/node_modules/@smithy/smithy-client/dist-cjs/split-every.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/split-header.js +0 -1
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/date-utils.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/lazy-json.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/parse-utils.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/quote-header.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/split-every.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/split-header.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/date-utils.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/parse-utils.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/quote-header.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/split-every.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/split-header.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/date-utils.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/parse-utils.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/quote-header.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/split-every.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/split-header.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-cjs/date-utils.js → middleware-endpoint/dist-cjs/resolveEndpointRequiredConfig.js} +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-cjs/lazy-json.js → signature-v4/dist-cjs/SignatureV4Base.js} +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-cjs/parse-utils.js → signature-v4/dist-cjs/signature-v4a-container.js} +0 -0
- /package/node_modules/@smithy/smithy-client/dist-cjs/{quote-header.js → schemaLogFilter.js} +0 -0
- /package/node_modules/fast-xml-parser/src/{v5 → v6}/Report.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/CHANGELOG.md +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/CONTRIBUTING.md +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/LICENSE.md +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/README.md +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/bin/uuid +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/index.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/md5.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/native.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/nil.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/parse.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/regex.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/rng.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/sha1.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/stringify.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/v1.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/v3.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/v35.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/v4.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/v5.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/validate.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/commonjs-browser/version.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/index.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/md5.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/native.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/nil.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/parse.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/regex.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/rng.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/sha1.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/stringify.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/v1.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/v3.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/v35.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/v4.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/v5.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/validate.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-browser/version.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/index.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/md5.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/native.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/nil.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/parse.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/regex.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/rng.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/sha1.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/stringify.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/v1.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/v3.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/v35.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/v4.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/v5.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/validate.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/esm-node/version.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/index.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/md5-browser.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/md5.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/native-browser.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/native.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/nil.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/parse.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/regex.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/rng-browser.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/rng.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/sha1-browser.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/sha1.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/stringify.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/uuid-bin.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/v1.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/v3.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/v35.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/v4.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/v5.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/validate.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/dist/version.js +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/package.json +0 -0
- /package/node_modules/{@smithy/middleware-retry/node_modules/uuid → uuid}/wrapper.mjs +0 -0
|
@@ -19,8 +19,22 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/submodules/protocols/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
|
+
AwsEc2QueryProtocol: () => AwsEc2QueryProtocol,
|
|
25
|
+
AwsJson1_0Protocol: () => AwsJson1_0Protocol,
|
|
26
|
+
AwsJson1_1Protocol: () => AwsJson1_1Protocol,
|
|
27
|
+
AwsJsonRpcProtocol: () => AwsJsonRpcProtocol,
|
|
28
|
+
AwsQueryProtocol: () => AwsQueryProtocol,
|
|
29
|
+
AwsRestJsonProtocol: () => AwsRestJsonProtocol,
|
|
30
|
+
AwsRestXmlProtocol: () => AwsRestXmlProtocol,
|
|
31
|
+
AwsSmithyRpcV2CborProtocol: () => AwsSmithyRpcV2CborProtocol,
|
|
32
|
+
JsonCodec: () => JsonCodec,
|
|
33
|
+
JsonShapeDeserializer: () => JsonShapeDeserializer,
|
|
34
|
+
JsonShapeSerializer: () => JsonShapeSerializer,
|
|
35
|
+
XmlCodec: () => XmlCodec,
|
|
36
|
+
XmlShapeDeserializer: () => XmlShapeDeserializer,
|
|
37
|
+
XmlShapeSerializer: () => XmlShapeSerializer,
|
|
24
38
|
_toBool: () => _toBool,
|
|
25
39
|
_toNum: () => _toNum,
|
|
26
40
|
_toStr: () => _toStr,
|
|
@@ -32,7 +46,198 @@ __export(protocols_exports, {
|
|
|
32
46
|
parseXmlBody: () => parseXmlBody,
|
|
33
47
|
parseXmlErrorBody: () => parseXmlErrorBody
|
|
34
48
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
49
|
+
module.exports = __toCommonJS(index_exports);
|
|
50
|
+
|
|
51
|
+
// src/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.ts
|
|
52
|
+
var import_cbor = require("@smithy/core/cbor");
|
|
53
|
+
var import_schema2 = require("@smithy/core/schema");
|
|
54
|
+
|
|
55
|
+
// src/submodules/protocols/ProtocolLib.ts
|
|
56
|
+
var import_schema = require("@smithy/core/schema");
|
|
57
|
+
var import_util_body_length_browser = require("@smithy/util-body-length-browser");
|
|
58
|
+
var ProtocolLib = class {
|
|
59
|
+
static {
|
|
60
|
+
__name(this, "ProtocolLib");
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @param body - to be inspected.
|
|
64
|
+
* @param serdeContext - this is a subset type but in practice is the client.config having a property called bodyLengthChecker.
|
|
65
|
+
*
|
|
66
|
+
* @returns content-length value for the body if possible.
|
|
67
|
+
* @throws Error and should be caught and handled if not possible to determine length.
|
|
68
|
+
*/
|
|
69
|
+
calculateContentLength(body, serdeContext) {
|
|
70
|
+
const bodyLengthCalculator = serdeContext?.bodyLengthChecker ?? import_util_body_length_browser.calculateBodyLength;
|
|
71
|
+
return String(bodyLengthCalculator(body));
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* This is only for REST protocols.
|
|
75
|
+
*
|
|
76
|
+
* @param defaultContentType - of the protocol.
|
|
77
|
+
* @param inputSchema - schema for which to determine content type.
|
|
78
|
+
*
|
|
79
|
+
* @returns content-type header value or undefined when not applicable.
|
|
80
|
+
*/
|
|
81
|
+
resolveRestContentType(defaultContentType, inputSchema) {
|
|
82
|
+
const members = inputSchema.getMemberSchemas();
|
|
83
|
+
const httpPayloadMember = Object.values(members).find((m) => {
|
|
84
|
+
return !!m.getMergedTraits().httpPayload;
|
|
85
|
+
});
|
|
86
|
+
if (httpPayloadMember) {
|
|
87
|
+
const mediaType = httpPayloadMember.getMergedTraits().mediaType;
|
|
88
|
+
if (mediaType) {
|
|
89
|
+
return mediaType;
|
|
90
|
+
} else if (httpPayloadMember.isStringSchema()) {
|
|
91
|
+
return "text/plain";
|
|
92
|
+
} else if (httpPayloadMember.isBlobSchema()) {
|
|
93
|
+
return "application/octet-stream";
|
|
94
|
+
} else {
|
|
95
|
+
return defaultContentType;
|
|
96
|
+
}
|
|
97
|
+
} else if (!inputSchema.isUnitSchema()) {
|
|
98
|
+
const hasBody = Object.values(members).find((m) => {
|
|
99
|
+
const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
|
|
100
|
+
return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0;
|
|
101
|
+
});
|
|
102
|
+
if (hasBody) {
|
|
103
|
+
return defaultContentType;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Shared code for finding error schema or throwing an unmodeled base error.
|
|
109
|
+
* @returns error schema and error metadata.
|
|
110
|
+
*
|
|
111
|
+
* @throws ServiceBaseException or generic Error if no error schema could be found.
|
|
112
|
+
*/
|
|
113
|
+
async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) {
|
|
114
|
+
let namespace = defaultNamespace;
|
|
115
|
+
let errorName = errorIdentifier;
|
|
116
|
+
if (errorIdentifier.includes("#")) {
|
|
117
|
+
[namespace, errorName] = errorIdentifier.split("#");
|
|
118
|
+
}
|
|
119
|
+
const errorMetadata = {
|
|
120
|
+
$metadata: metadata,
|
|
121
|
+
$response: response,
|
|
122
|
+
$fault: response.statusCode < 500 ? "client" : "server"
|
|
123
|
+
};
|
|
124
|
+
const registry = import_schema.TypeRegistry.for(namespace);
|
|
125
|
+
try {
|
|
126
|
+
const errorSchema = getErrorSchema?.(registry, errorName) ?? registry.getSchema(errorIdentifier);
|
|
127
|
+
return { errorSchema, errorMetadata };
|
|
128
|
+
} catch (e) {
|
|
129
|
+
if (dataObject.Message) {
|
|
130
|
+
dataObject.message = dataObject.Message;
|
|
131
|
+
}
|
|
132
|
+
const baseExceptionSchema = import_schema.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
|
|
133
|
+
if (baseExceptionSchema) {
|
|
134
|
+
const ErrorCtor = baseExceptionSchema.ctor;
|
|
135
|
+
throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject);
|
|
136
|
+
}
|
|
137
|
+
throw Object.assign(new Error(errorName), errorMetadata, dataObject);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Reads the x-amzn-query-error header for awsQuery compatibility.
|
|
142
|
+
*
|
|
143
|
+
* @param output - values that will be assigned to an error object.
|
|
144
|
+
* @param response - from which to read awsQueryError headers.
|
|
145
|
+
*/
|
|
146
|
+
setQueryCompatError(output, response) {
|
|
147
|
+
const queryErrorHeader = response.headers?.["x-amzn-query-error"];
|
|
148
|
+
if (output !== void 0 && queryErrorHeader != null) {
|
|
149
|
+
const [Code, Type] = queryErrorHeader.split(";");
|
|
150
|
+
const entries = Object.entries(output);
|
|
151
|
+
const Error2 = {
|
|
152
|
+
Code,
|
|
153
|
+
Type
|
|
154
|
+
};
|
|
155
|
+
Object.assign(output, Error2);
|
|
156
|
+
for (const [k, v] of entries) {
|
|
157
|
+
Error2[k] = v;
|
|
158
|
+
}
|
|
159
|
+
delete Error2.__type;
|
|
160
|
+
output.Error = Error2;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Assigns Error, Type, Code from the awsQuery error object to the output error object.
|
|
165
|
+
* @param queryCompatErrorData - query compat error object.
|
|
166
|
+
* @param errorData - canonical error object returned to the caller.
|
|
167
|
+
*/
|
|
168
|
+
queryCompatOutput(queryCompatErrorData, errorData) {
|
|
169
|
+
if (queryCompatErrorData.Error) {
|
|
170
|
+
errorData.Error = queryCompatErrorData.Error;
|
|
171
|
+
}
|
|
172
|
+
if (queryCompatErrorData.Type) {
|
|
173
|
+
errorData.Type = queryCompatErrorData.Type;
|
|
174
|
+
}
|
|
175
|
+
if (queryCompatErrorData.Code) {
|
|
176
|
+
errorData.Code = queryCompatErrorData.Code;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
// src/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.ts
|
|
182
|
+
var AwsSmithyRpcV2CborProtocol = class extends import_cbor.SmithyRpcV2CborProtocol {
|
|
183
|
+
static {
|
|
184
|
+
__name(this, "AwsSmithyRpcV2CborProtocol");
|
|
185
|
+
}
|
|
186
|
+
awsQueryCompatible;
|
|
187
|
+
mixin = new ProtocolLib();
|
|
188
|
+
constructor({
|
|
189
|
+
defaultNamespace,
|
|
190
|
+
awsQueryCompatible
|
|
191
|
+
}) {
|
|
192
|
+
super({ defaultNamespace });
|
|
193
|
+
this.awsQueryCompatible = !!awsQueryCompatible;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* @override
|
|
197
|
+
*/
|
|
198
|
+
async serializeRequest(operationSchema, input, context) {
|
|
199
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
200
|
+
if (this.awsQueryCompatible) {
|
|
201
|
+
request.headers["x-amzn-query-mode"] = "true";
|
|
202
|
+
}
|
|
203
|
+
return request;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* @override
|
|
207
|
+
*/
|
|
208
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
209
|
+
if (this.awsQueryCompatible) {
|
|
210
|
+
this.mixin.setQueryCompatError(dataObject, response);
|
|
211
|
+
}
|
|
212
|
+
const errorName = (0, import_cbor.loadSmithyRpcV2CborErrorCode)(response, dataObject) ?? "Unknown";
|
|
213
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(
|
|
214
|
+
errorName,
|
|
215
|
+
this.options.defaultNamespace,
|
|
216
|
+
response,
|
|
217
|
+
dataObject,
|
|
218
|
+
metadata
|
|
219
|
+
);
|
|
220
|
+
const ns = import_schema2.NormalizedSchema.of(errorSchema);
|
|
221
|
+
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
222
|
+
const exception = new errorSchema.ctor(message);
|
|
223
|
+
const output = {};
|
|
224
|
+
for (const [name, member] of ns.structIterator()) {
|
|
225
|
+
output[name] = this.deserializer.readValue(member, dataObject[name]);
|
|
226
|
+
}
|
|
227
|
+
if (this.awsQueryCompatible) {
|
|
228
|
+
this.mixin.queryCompatOutput(dataObject, output);
|
|
229
|
+
}
|
|
230
|
+
throw Object.assign(
|
|
231
|
+
exception,
|
|
232
|
+
errorMetadata,
|
|
233
|
+
{
|
|
234
|
+
$fault: ns.getMergedTraits().error,
|
|
235
|
+
message
|
|
236
|
+
},
|
|
237
|
+
output
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
};
|
|
36
241
|
|
|
37
242
|
// src/submodules/protocols/coercing-serializers.ts
|
|
38
243
|
var _toStr = /* @__PURE__ */ __name((val) => {
|
|
@@ -89,21 +294,50 @@ var _toNum = /* @__PURE__ */ __name((val) => {
|
|
|
89
294
|
return val;
|
|
90
295
|
}, "_toNum");
|
|
91
296
|
|
|
92
|
-
// src/submodules/protocols/json/
|
|
93
|
-
var
|
|
94
|
-
var
|
|
95
|
-
|
|
96
|
-
|
|
297
|
+
// src/submodules/protocols/json/AwsJsonRpcProtocol.ts
|
|
298
|
+
var import_protocols = require("@smithy/core/protocols");
|
|
299
|
+
var import_schema5 = require("@smithy/core/schema");
|
|
300
|
+
|
|
301
|
+
// src/submodules/protocols/ConfigurableSerdeContext.ts
|
|
302
|
+
var SerdeContextConfig = class {
|
|
303
|
+
static {
|
|
304
|
+
__name(this, "SerdeContextConfig");
|
|
97
305
|
}
|
|
98
|
-
|
|
99
|
-
|
|
306
|
+
serdeContext;
|
|
307
|
+
setSerdeContext(serdeContext) {
|
|
308
|
+
this.serdeContext = serdeContext;
|
|
100
309
|
}
|
|
101
|
-
|
|
102
|
-
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
// src/submodules/protocols/json/JsonShapeDeserializer.ts
|
|
313
|
+
var import_schema3 = require("@smithy/core/schema");
|
|
314
|
+
var import_serde2 = require("@smithy/core/serde");
|
|
315
|
+
var import_util_base64 = require("@smithy/util-base64");
|
|
316
|
+
|
|
317
|
+
// src/submodules/protocols/json/jsonReviver.ts
|
|
318
|
+
var import_serde = require("@smithy/core/serde");
|
|
319
|
+
function jsonReviver(key, value, context) {
|
|
320
|
+
if (context?.source) {
|
|
321
|
+
const numericString = context.source;
|
|
322
|
+
if (typeof value === "number") {
|
|
323
|
+
if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) {
|
|
324
|
+
const isFractional = numericString.includes(".");
|
|
325
|
+
if (isFractional) {
|
|
326
|
+
return new import_serde.NumericValue(numericString, "bigDecimal");
|
|
327
|
+
} else {
|
|
328
|
+
return BigInt(numericString);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return value;
|
|
334
|
+
}
|
|
335
|
+
__name(jsonReviver, "jsonReviver");
|
|
103
336
|
|
|
104
337
|
// src/submodules/protocols/common.ts
|
|
105
|
-
var
|
|
106
|
-
var
|
|
338
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
339
|
+
var import_util_utf8 = require("@smithy/util-utf8");
|
|
340
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => (context?.utf8Encoder ?? import_util_utf8.toUtf8)(body)), "collectBodyString");
|
|
107
341
|
|
|
108
342
|
// src/submodules/protocols/json/parseJsonBody.ts
|
|
109
343
|
var parseJsonBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
@@ -148,27 +382,1055 @@ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
|
148
382
|
if (headerKey !== void 0) {
|
|
149
383
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
150
384
|
}
|
|
151
|
-
if (data
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
385
|
+
if (data && typeof data === "object") {
|
|
386
|
+
const codeKey = findKey(data, "code");
|
|
387
|
+
if (codeKey && data[codeKey] !== void 0) {
|
|
388
|
+
return sanitizeErrorCode(data[codeKey]);
|
|
389
|
+
}
|
|
390
|
+
if (data["__type"] !== void 0) {
|
|
391
|
+
return sanitizeErrorCode(data["__type"]);
|
|
392
|
+
}
|
|
156
393
|
}
|
|
157
394
|
}, "loadRestJsonErrorCode");
|
|
158
395
|
|
|
159
|
-
// src/submodules/protocols/
|
|
396
|
+
// src/submodules/protocols/json/JsonShapeDeserializer.ts
|
|
397
|
+
var JsonShapeDeserializer = class extends SerdeContextConfig {
|
|
398
|
+
constructor(settings) {
|
|
399
|
+
super();
|
|
400
|
+
this.settings = settings;
|
|
401
|
+
}
|
|
402
|
+
static {
|
|
403
|
+
__name(this, "JsonShapeDeserializer");
|
|
404
|
+
}
|
|
405
|
+
async read(schema, data) {
|
|
406
|
+
return this._read(
|
|
407
|
+
schema,
|
|
408
|
+
typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext)
|
|
409
|
+
);
|
|
410
|
+
}
|
|
411
|
+
readObject(schema, data) {
|
|
412
|
+
return this._read(schema, data);
|
|
413
|
+
}
|
|
414
|
+
_read(schema, value) {
|
|
415
|
+
const isObject = value !== null && typeof value === "object";
|
|
416
|
+
const ns = import_schema3.NormalizedSchema.of(schema);
|
|
417
|
+
if (ns.isListSchema() && Array.isArray(value)) {
|
|
418
|
+
const listMember = ns.getValueSchema();
|
|
419
|
+
const out = [];
|
|
420
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
421
|
+
for (const item of value) {
|
|
422
|
+
if (sparse || item != null) {
|
|
423
|
+
out.push(this._read(listMember, item));
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
return out;
|
|
427
|
+
} else if (ns.isMapSchema() && isObject) {
|
|
428
|
+
const mapMember = ns.getValueSchema();
|
|
429
|
+
const out = {};
|
|
430
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
431
|
+
for (const [_k, _v] of Object.entries(value)) {
|
|
432
|
+
if (sparse || _v != null) {
|
|
433
|
+
out[_k] = this._read(mapMember, _v);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
return out;
|
|
437
|
+
} else if (ns.isStructSchema() && isObject) {
|
|
438
|
+
const out = {};
|
|
439
|
+
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
440
|
+
const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
|
|
441
|
+
const deserializedValue = this._read(memberSchema, value[fromKey]);
|
|
442
|
+
if (deserializedValue != null) {
|
|
443
|
+
out[memberName] = deserializedValue;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
return out;
|
|
447
|
+
}
|
|
448
|
+
if (ns.isBlobSchema() && typeof value === "string") {
|
|
449
|
+
return (0, import_util_base64.fromBase64)(value);
|
|
450
|
+
}
|
|
451
|
+
const mediaType = ns.getMergedTraits().mediaType;
|
|
452
|
+
if (ns.isStringSchema() && typeof value === "string" && mediaType) {
|
|
453
|
+
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
454
|
+
if (isJson) {
|
|
455
|
+
return import_serde2.LazyJsonString.from(value);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
if (ns.isTimestampSchema()) {
|
|
459
|
+
const options = this.settings.timestampFormat;
|
|
460
|
+
const format = options.useTrait ? ns.getSchema() === import_schema3.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
|
|
461
|
+
switch (format) {
|
|
462
|
+
case import_schema3.SCHEMA.TIMESTAMP_DATE_TIME:
|
|
463
|
+
return (0, import_serde2.parseRfc3339DateTimeWithOffset)(value);
|
|
464
|
+
case import_schema3.SCHEMA.TIMESTAMP_HTTP_DATE:
|
|
465
|
+
return (0, import_serde2.parseRfc7231DateTime)(value);
|
|
466
|
+
case import_schema3.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
|
|
467
|
+
return (0, import_serde2.parseEpochTimestamp)(value);
|
|
468
|
+
default:
|
|
469
|
+
console.warn("Missing timestamp format, parsing value with Date constructor:", value);
|
|
470
|
+
return new Date(value);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
|
|
474
|
+
return BigInt(value);
|
|
475
|
+
}
|
|
476
|
+
if (ns.isBigDecimalSchema() && value != void 0) {
|
|
477
|
+
if (value instanceof import_serde2.NumericValue) {
|
|
478
|
+
return value;
|
|
479
|
+
}
|
|
480
|
+
return new import_serde2.NumericValue(String(value), "bigDecimal");
|
|
481
|
+
}
|
|
482
|
+
if (ns.isNumericSchema() && typeof value === "string") {
|
|
483
|
+
switch (value) {
|
|
484
|
+
case "Infinity":
|
|
485
|
+
return Infinity;
|
|
486
|
+
case "-Infinity":
|
|
487
|
+
return -Infinity;
|
|
488
|
+
case "NaN":
|
|
489
|
+
return NaN;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
return value;
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
// src/submodules/protocols/json/JsonShapeSerializer.ts
|
|
497
|
+
var import_schema4 = require("@smithy/core/schema");
|
|
498
|
+
var import_serde4 = require("@smithy/core/serde");
|
|
499
|
+
|
|
500
|
+
// src/submodules/protocols/json/jsonReplacer.ts
|
|
501
|
+
var import_serde3 = require("@smithy/core/serde");
|
|
502
|
+
var NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
|
|
503
|
+
var JsonReplacer = class {
|
|
504
|
+
static {
|
|
505
|
+
__name(this, "JsonReplacer");
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* Stores placeholder key to true serialized value lookup.
|
|
509
|
+
*/
|
|
510
|
+
values = /* @__PURE__ */ new Map();
|
|
511
|
+
counter = 0;
|
|
512
|
+
stage = 0;
|
|
513
|
+
/**
|
|
514
|
+
* Creates a jsonReplacer function that reserves big integer and big decimal values
|
|
515
|
+
* for later replacement.
|
|
516
|
+
*/
|
|
517
|
+
createReplacer() {
|
|
518
|
+
if (this.stage === 1) {
|
|
519
|
+
throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
|
|
520
|
+
}
|
|
521
|
+
if (this.stage === 2) {
|
|
522
|
+
throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
|
|
523
|
+
}
|
|
524
|
+
this.stage = 1;
|
|
525
|
+
return (key, value) => {
|
|
526
|
+
if (value instanceof import_serde3.NumericValue) {
|
|
527
|
+
const v = `${NUMERIC_CONTROL_CHAR + "nv" + this.counter++}_` + value.string;
|
|
528
|
+
this.values.set(`"${v}"`, value.string);
|
|
529
|
+
return v;
|
|
530
|
+
}
|
|
531
|
+
if (typeof value === "bigint") {
|
|
532
|
+
const s = value.toString();
|
|
533
|
+
const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s;
|
|
534
|
+
this.values.set(`"${v}"`, s);
|
|
535
|
+
return v;
|
|
536
|
+
}
|
|
537
|
+
return value;
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Replaces placeholder keys with their true values.
|
|
542
|
+
*/
|
|
543
|
+
replaceInJson(json) {
|
|
544
|
+
if (this.stage === 0) {
|
|
545
|
+
throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
|
|
546
|
+
}
|
|
547
|
+
if (this.stage === 2) {
|
|
548
|
+
throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
|
|
549
|
+
}
|
|
550
|
+
this.stage = 2;
|
|
551
|
+
if (this.counter === 0) {
|
|
552
|
+
return json;
|
|
553
|
+
}
|
|
554
|
+
for (const [key, value] of this.values) {
|
|
555
|
+
json = json.replace(key, value);
|
|
556
|
+
}
|
|
557
|
+
return json;
|
|
558
|
+
}
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
// src/submodules/protocols/json/JsonShapeSerializer.ts
|
|
562
|
+
var JsonShapeSerializer = class extends SerdeContextConfig {
|
|
563
|
+
constructor(settings) {
|
|
564
|
+
super();
|
|
565
|
+
this.settings = settings;
|
|
566
|
+
}
|
|
567
|
+
static {
|
|
568
|
+
__name(this, "JsonShapeSerializer");
|
|
569
|
+
}
|
|
570
|
+
buffer;
|
|
571
|
+
rootSchema;
|
|
572
|
+
write(schema, value) {
|
|
573
|
+
this.rootSchema = import_schema4.NormalizedSchema.of(schema);
|
|
574
|
+
this.buffer = this._write(this.rootSchema, value);
|
|
575
|
+
}
|
|
576
|
+
flush() {
|
|
577
|
+
if (this.rootSchema?.isStructSchema() || this.rootSchema?.isDocumentSchema()) {
|
|
578
|
+
const replacer = new JsonReplacer();
|
|
579
|
+
return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0));
|
|
580
|
+
}
|
|
581
|
+
return this.buffer;
|
|
582
|
+
}
|
|
583
|
+
_write(schema, value, container) {
|
|
584
|
+
const isObject = value !== null && typeof value === "object";
|
|
585
|
+
const ns = import_schema4.NormalizedSchema.of(schema);
|
|
586
|
+
if (ns.isListSchema() && Array.isArray(value)) {
|
|
587
|
+
const listMember = ns.getValueSchema();
|
|
588
|
+
const out = [];
|
|
589
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
590
|
+
for (const item of value) {
|
|
591
|
+
if (sparse || item != null) {
|
|
592
|
+
out.push(this._write(listMember, item));
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
return out;
|
|
596
|
+
} else if (ns.isMapSchema() && isObject) {
|
|
597
|
+
const mapMember = ns.getValueSchema();
|
|
598
|
+
const out = {};
|
|
599
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
600
|
+
for (const [_k, _v] of Object.entries(value)) {
|
|
601
|
+
if (sparse || _v != null) {
|
|
602
|
+
out[_k] = this._write(mapMember, _v);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
return out;
|
|
606
|
+
} else if (ns.isStructSchema() && isObject) {
|
|
607
|
+
const out = {};
|
|
608
|
+
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
609
|
+
const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
|
|
610
|
+
const serializableValue = this._write(memberSchema, value[memberName], ns);
|
|
611
|
+
if (serializableValue !== void 0) {
|
|
612
|
+
out[targetKey] = serializableValue;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
return out;
|
|
616
|
+
}
|
|
617
|
+
if (value === null && container?.isStructSchema()) {
|
|
618
|
+
return void 0;
|
|
619
|
+
}
|
|
620
|
+
if (ns.isBlobSchema() && (value instanceof Uint8Array || typeof value === "string")) {
|
|
621
|
+
if (ns === this.rootSchema) {
|
|
622
|
+
return value;
|
|
623
|
+
}
|
|
624
|
+
if (!this.serdeContext?.base64Encoder) {
|
|
625
|
+
throw new Error("Missing base64Encoder in serdeContext");
|
|
626
|
+
}
|
|
627
|
+
return this.serdeContext?.base64Encoder(value);
|
|
628
|
+
}
|
|
629
|
+
if (ns.isTimestampSchema() && value instanceof Date) {
|
|
630
|
+
const options = this.settings.timestampFormat;
|
|
631
|
+
const format = options.useTrait ? ns.getSchema() === import_schema4.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
|
|
632
|
+
switch (format) {
|
|
633
|
+
case import_schema4.SCHEMA.TIMESTAMP_DATE_TIME:
|
|
634
|
+
return value.toISOString().replace(".000Z", "Z");
|
|
635
|
+
case import_schema4.SCHEMA.TIMESTAMP_HTTP_DATE:
|
|
636
|
+
return (0, import_serde4.dateToUtcString)(value);
|
|
637
|
+
case import_schema4.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
|
|
638
|
+
return value.getTime() / 1e3;
|
|
639
|
+
default:
|
|
640
|
+
console.warn("Missing timestamp format, using epoch seconds", value);
|
|
641
|
+
return value.getTime() / 1e3;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
if (ns.isNumericSchema() && typeof value === "number") {
|
|
645
|
+
if (Math.abs(value) === Infinity || isNaN(value)) {
|
|
646
|
+
return String(value);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
if (ns.isStringSchema()) {
|
|
650
|
+
if (typeof value === "undefined" && ns.isIdempotencyToken()) {
|
|
651
|
+
return (0, import_serde4.generateIdempotencyToken)();
|
|
652
|
+
}
|
|
653
|
+
const mediaType = ns.getMergedTraits().mediaType;
|
|
654
|
+
if (typeof value === "string" && mediaType) {
|
|
655
|
+
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
656
|
+
if (isJson) {
|
|
657
|
+
return import_serde4.LazyJsonString.from(value);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
return value;
|
|
662
|
+
}
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
// src/submodules/protocols/json/JsonCodec.ts
|
|
666
|
+
var JsonCodec = class extends SerdeContextConfig {
|
|
667
|
+
constructor(settings) {
|
|
668
|
+
super();
|
|
669
|
+
this.settings = settings;
|
|
670
|
+
}
|
|
671
|
+
static {
|
|
672
|
+
__name(this, "JsonCodec");
|
|
673
|
+
}
|
|
674
|
+
createSerializer() {
|
|
675
|
+
const serializer = new JsonShapeSerializer(this.settings);
|
|
676
|
+
serializer.setSerdeContext(this.serdeContext);
|
|
677
|
+
return serializer;
|
|
678
|
+
}
|
|
679
|
+
createDeserializer() {
|
|
680
|
+
const deserializer = new JsonShapeDeserializer(this.settings);
|
|
681
|
+
deserializer.setSerdeContext(this.serdeContext);
|
|
682
|
+
return deserializer;
|
|
683
|
+
}
|
|
684
|
+
};
|
|
685
|
+
|
|
686
|
+
// src/submodules/protocols/json/AwsJsonRpcProtocol.ts
|
|
687
|
+
var AwsJsonRpcProtocol = class extends import_protocols.RpcProtocol {
|
|
688
|
+
static {
|
|
689
|
+
__name(this, "AwsJsonRpcProtocol");
|
|
690
|
+
}
|
|
691
|
+
serializer;
|
|
692
|
+
deserializer;
|
|
693
|
+
serviceTarget;
|
|
694
|
+
codec;
|
|
695
|
+
mixin = new ProtocolLib();
|
|
696
|
+
awsQueryCompatible;
|
|
697
|
+
constructor({
|
|
698
|
+
defaultNamespace,
|
|
699
|
+
serviceTarget,
|
|
700
|
+
awsQueryCompatible
|
|
701
|
+
}) {
|
|
702
|
+
super({
|
|
703
|
+
defaultNamespace
|
|
704
|
+
});
|
|
705
|
+
this.serviceTarget = serviceTarget;
|
|
706
|
+
this.codec = new JsonCodec({
|
|
707
|
+
timestampFormat: {
|
|
708
|
+
useTrait: true,
|
|
709
|
+
default: import_schema5.SCHEMA.TIMESTAMP_EPOCH_SECONDS
|
|
710
|
+
},
|
|
711
|
+
jsonName: false
|
|
712
|
+
});
|
|
713
|
+
this.serializer = this.codec.createSerializer();
|
|
714
|
+
this.deserializer = this.codec.createDeserializer();
|
|
715
|
+
this.awsQueryCompatible = !!awsQueryCompatible;
|
|
716
|
+
}
|
|
717
|
+
async serializeRequest(operationSchema, input, context) {
|
|
718
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
719
|
+
if (!request.path.endsWith("/")) {
|
|
720
|
+
request.path += "/";
|
|
721
|
+
}
|
|
722
|
+
Object.assign(request.headers, {
|
|
723
|
+
"content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`,
|
|
724
|
+
"x-amz-target": `${this.serviceTarget}.${import_schema5.NormalizedSchema.of(operationSchema).getName()}`
|
|
725
|
+
});
|
|
726
|
+
if (this.awsQueryCompatible) {
|
|
727
|
+
request.headers["x-amzn-query-mode"] = "true";
|
|
728
|
+
}
|
|
729
|
+
if ((0, import_schema5.deref)(operationSchema.input) === "unit" || !request.body) {
|
|
730
|
+
request.body = "{}";
|
|
731
|
+
}
|
|
732
|
+
try {
|
|
733
|
+
request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
|
|
734
|
+
} catch (e) {
|
|
735
|
+
}
|
|
736
|
+
return request;
|
|
737
|
+
}
|
|
738
|
+
getPayloadCodec() {
|
|
739
|
+
return this.codec;
|
|
740
|
+
}
|
|
741
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
742
|
+
if (this.awsQueryCompatible) {
|
|
743
|
+
this.mixin.setQueryCompatError(dataObject, response);
|
|
744
|
+
}
|
|
745
|
+
const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
|
|
746
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(
|
|
747
|
+
errorIdentifier,
|
|
748
|
+
this.options.defaultNamespace,
|
|
749
|
+
response,
|
|
750
|
+
dataObject,
|
|
751
|
+
metadata
|
|
752
|
+
);
|
|
753
|
+
const ns = import_schema5.NormalizedSchema.of(errorSchema);
|
|
754
|
+
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
755
|
+
const exception = new errorSchema.ctor(message);
|
|
756
|
+
const output = {};
|
|
757
|
+
for (const [name, member] of ns.structIterator()) {
|
|
758
|
+
const target = member.getMergedTraits().jsonName ?? name;
|
|
759
|
+
output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
|
|
760
|
+
}
|
|
761
|
+
if (this.awsQueryCompatible) {
|
|
762
|
+
this.mixin.queryCompatOutput(dataObject, output);
|
|
763
|
+
}
|
|
764
|
+
throw Object.assign(
|
|
765
|
+
exception,
|
|
766
|
+
errorMetadata,
|
|
767
|
+
{
|
|
768
|
+
$fault: ns.getMergedTraits().error,
|
|
769
|
+
message
|
|
770
|
+
},
|
|
771
|
+
output
|
|
772
|
+
);
|
|
773
|
+
}
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
// src/submodules/protocols/json/AwsJson1_0Protocol.ts
|
|
777
|
+
var AwsJson1_0Protocol = class extends AwsJsonRpcProtocol {
|
|
778
|
+
static {
|
|
779
|
+
__name(this, "AwsJson1_0Protocol");
|
|
780
|
+
}
|
|
781
|
+
constructor({
|
|
782
|
+
defaultNamespace,
|
|
783
|
+
serviceTarget,
|
|
784
|
+
awsQueryCompatible
|
|
785
|
+
}) {
|
|
786
|
+
super({
|
|
787
|
+
defaultNamespace,
|
|
788
|
+
serviceTarget,
|
|
789
|
+
awsQueryCompatible
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
getShapeId() {
|
|
793
|
+
return "aws.protocols#awsJson1_0";
|
|
794
|
+
}
|
|
795
|
+
getJsonRpcVersion() {
|
|
796
|
+
return "1.0";
|
|
797
|
+
}
|
|
798
|
+
/**
|
|
799
|
+
* @override
|
|
800
|
+
*/
|
|
801
|
+
getDefaultContentType() {
|
|
802
|
+
return "application/x-amz-json-1.0";
|
|
803
|
+
}
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
// src/submodules/protocols/json/AwsJson1_1Protocol.ts
|
|
807
|
+
var AwsJson1_1Protocol = class extends AwsJsonRpcProtocol {
|
|
808
|
+
static {
|
|
809
|
+
__name(this, "AwsJson1_1Protocol");
|
|
810
|
+
}
|
|
811
|
+
constructor({
|
|
812
|
+
defaultNamespace,
|
|
813
|
+
serviceTarget,
|
|
814
|
+
awsQueryCompatible
|
|
815
|
+
}) {
|
|
816
|
+
super({
|
|
817
|
+
defaultNamespace,
|
|
818
|
+
serviceTarget,
|
|
819
|
+
awsQueryCompatible
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
getShapeId() {
|
|
823
|
+
return "aws.protocols#awsJson1_1";
|
|
824
|
+
}
|
|
825
|
+
getJsonRpcVersion() {
|
|
826
|
+
return "1.1";
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* @override
|
|
830
|
+
*/
|
|
831
|
+
getDefaultContentType() {
|
|
832
|
+
return "application/x-amz-json-1.1";
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
// src/submodules/protocols/json/AwsRestJsonProtocol.ts
|
|
837
|
+
var import_protocols2 = require("@smithy/core/protocols");
|
|
838
|
+
var import_schema6 = require("@smithy/core/schema");
|
|
839
|
+
var AwsRestJsonProtocol = class extends import_protocols2.HttpBindingProtocol {
|
|
840
|
+
static {
|
|
841
|
+
__name(this, "AwsRestJsonProtocol");
|
|
842
|
+
}
|
|
843
|
+
serializer;
|
|
844
|
+
deserializer;
|
|
845
|
+
codec;
|
|
846
|
+
mixin = new ProtocolLib();
|
|
847
|
+
constructor({ defaultNamespace }) {
|
|
848
|
+
super({
|
|
849
|
+
defaultNamespace
|
|
850
|
+
});
|
|
851
|
+
const settings = {
|
|
852
|
+
timestampFormat: {
|
|
853
|
+
useTrait: true,
|
|
854
|
+
default: import_schema6.SCHEMA.TIMESTAMP_EPOCH_SECONDS
|
|
855
|
+
},
|
|
856
|
+
httpBindings: true,
|
|
857
|
+
jsonName: true
|
|
858
|
+
};
|
|
859
|
+
this.codec = new JsonCodec(settings);
|
|
860
|
+
this.serializer = new import_protocols2.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
|
|
861
|
+
this.deserializer = new import_protocols2.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
|
|
862
|
+
}
|
|
863
|
+
getShapeId() {
|
|
864
|
+
return "aws.protocols#restJson1";
|
|
865
|
+
}
|
|
866
|
+
getPayloadCodec() {
|
|
867
|
+
return this.codec;
|
|
868
|
+
}
|
|
869
|
+
setSerdeContext(serdeContext) {
|
|
870
|
+
this.codec.setSerdeContext(serdeContext);
|
|
871
|
+
super.setSerdeContext(serdeContext);
|
|
872
|
+
}
|
|
873
|
+
async serializeRequest(operationSchema, input, context) {
|
|
874
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
875
|
+
const inputSchema = import_schema6.NormalizedSchema.of(operationSchema.input);
|
|
876
|
+
if (!request.headers["content-type"]) {
|
|
877
|
+
const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
|
|
878
|
+
if (contentType) {
|
|
879
|
+
request.headers["content-type"] = contentType;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
if (request.headers["content-type"] && !request.body) {
|
|
883
|
+
request.body = "{}";
|
|
884
|
+
}
|
|
885
|
+
if (request.body) {
|
|
886
|
+
try {
|
|
887
|
+
request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
|
|
888
|
+
} catch (e) {
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
return request;
|
|
892
|
+
}
|
|
893
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
894
|
+
const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
|
|
895
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(
|
|
896
|
+
errorIdentifier,
|
|
897
|
+
this.options.defaultNamespace,
|
|
898
|
+
response,
|
|
899
|
+
dataObject,
|
|
900
|
+
metadata
|
|
901
|
+
);
|
|
902
|
+
const ns = import_schema6.NormalizedSchema.of(errorSchema);
|
|
903
|
+
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
904
|
+
const exception = new errorSchema.ctor(message);
|
|
905
|
+
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
906
|
+
const output = {};
|
|
907
|
+
for (const [name, member] of ns.structIterator()) {
|
|
908
|
+
const target = member.getMergedTraits().jsonName ?? name;
|
|
909
|
+
output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
|
|
910
|
+
}
|
|
911
|
+
throw Object.assign(
|
|
912
|
+
exception,
|
|
913
|
+
errorMetadata,
|
|
914
|
+
{
|
|
915
|
+
$fault: ns.getMergedTraits().error,
|
|
916
|
+
message
|
|
917
|
+
},
|
|
918
|
+
output
|
|
919
|
+
);
|
|
920
|
+
}
|
|
921
|
+
/**
|
|
922
|
+
* @override
|
|
923
|
+
*/
|
|
924
|
+
getDefaultContentType() {
|
|
925
|
+
return "application/json";
|
|
926
|
+
}
|
|
927
|
+
};
|
|
928
|
+
|
|
929
|
+
// src/submodules/protocols/json/awsExpectUnion.ts
|
|
930
|
+
var import_smithy_client2 = require("@smithy/smithy-client");
|
|
931
|
+
var awsExpectUnion = /* @__PURE__ */ __name((value) => {
|
|
932
|
+
if (value == null) {
|
|
933
|
+
return void 0;
|
|
934
|
+
}
|
|
935
|
+
if (typeof value === "object" && "__type" in value) {
|
|
936
|
+
delete value.__type;
|
|
937
|
+
}
|
|
938
|
+
return (0, import_smithy_client2.expectUnion)(value);
|
|
939
|
+
}, "awsExpectUnion");
|
|
940
|
+
|
|
941
|
+
// src/submodules/protocols/query/AwsQueryProtocol.ts
|
|
942
|
+
var import_protocols5 = require("@smithy/core/protocols");
|
|
943
|
+
var import_schema9 = require("@smithy/core/schema");
|
|
944
|
+
|
|
945
|
+
// src/submodules/protocols/xml/XmlShapeDeserializer.ts
|
|
946
|
+
var import_protocols3 = require("@smithy/core/protocols");
|
|
947
|
+
var import_schema7 = require("@smithy/core/schema");
|
|
160
948
|
var import_smithy_client3 = require("@smithy/smithy-client");
|
|
949
|
+
var import_util_utf82 = require("@smithy/util-utf8");
|
|
161
950
|
var import_fast_xml_parser = require("fast-xml-parser");
|
|
951
|
+
var XmlShapeDeserializer = class extends SerdeContextConfig {
|
|
952
|
+
constructor(settings) {
|
|
953
|
+
super();
|
|
954
|
+
this.settings = settings;
|
|
955
|
+
this.stringDeserializer = new import_protocols3.FromStringShapeDeserializer(settings);
|
|
956
|
+
}
|
|
957
|
+
static {
|
|
958
|
+
__name(this, "XmlShapeDeserializer");
|
|
959
|
+
}
|
|
960
|
+
stringDeserializer;
|
|
961
|
+
setSerdeContext(serdeContext) {
|
|
962
|
+
this.serdeContext = serdeContext;
|
|
963
|
+
this.stringDeserializer.setSerdeContext(serdeContext);
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* @param schema - describing the data.
|
|
967
|
+
* @param bytes - serialized data.
|
|
968
|
+
* @param key - used by AwsQuery to step one additional depth into the object before reading it.
|
|
969
|
+
*/
|
|
970
|
+
read(schema, bytes, key) {
|
|
971
|
+
const ns = import_schema7.NormalizedSchema.of(schema);
|
|
972
|
+
const memberSchemas = ns.getMemberSchemas();
|
|
973
|
+
const isEventPayload = ns.isStructSchema() && ns.isMemberSchema() && !!Object.values(memberSchemas).find((memberNs) => {
|
|
974
|
+
return !!memberNs.getMemberTraits().eventPayload;
|
|
975
|
+
});
|
|
976
|
+
if (isEventPayload) {
|
|
977
|
+
const output = {};
|
|
978
|
+
const memberName = Object.keys(memberSchemas)[0];
|
|
979
|
+
const eventMemberSchema = memberSchemas[memberName];
|
|
980
|
+
if (eventMemberSchema.isBlobSchema()) {
|
|
981
|
+
output[memberName] = bytes;
|
|
982
|
+
} else {
|
|
983
|
+
output[memberName] = this.read(memberSchemas[memberName], bytes);
|
|
984
|
+
}
|
|
985
|
+
return output;
|
|
986
|
+
}
|
|
987
|
+
const xmlString = (this.serdeContext?.utf8Encoder ?? import_util_utf82.toUtf8)(bytes);
|
|
988
|
+
const parsedObject = this.parseXml(xmlString);
|
|
989
|
+
return this.readSchema(schema, key ? parsedObject[key] : parsedObject);
|
|
990
|
+
}
|
|
991
|
+
readSchema(_schema, value) {
|
|
992
|
+
const ns = import_schema7.NormalizedSchema.of(_schema);
|
|
993
|
+
const traits = ns.getMergedTraits();
|
|
994
|
+
if (ns.isListSchema() && !Array.isArray(value)) {
|
|
995
|
+
return this.readSchema(ns, [value]);
|
|
996
|
+
}
|
|
997
|
+
if (value == null) {
|
|
998
|
+
return value;
|
|
999
|
+
}
|
|
1000
|
+
if (typeof value === "object") {
|
|
1001
|
+
const sparse = !!traits.sparse;
|
|
1002
|
+
const flat = !!traits.xmlFlattened;
|
|
1003
|
+
if (ns.isListSchema()) {
|
|
1004
|
+
const listValue = ns.getValueSchema();
|
|
1005
|
+
const buffer2 = [];
|
|
1006
|
+
const sourceKey = listValue.getMergedTraits().xmlName ?? "member";
|
|
1007
|
+
const source = flat ? value : (value[0] ?? value)[sourceKey];
|
|
1008
|
+
const sourceArray = Array.isArray(source) ? source : [source];
|
|
1009
|
+
for (const v of sourceArray) {
|
|
1010
|
+
if (v != null || sparse) {
|
|
1011
|
+
buffer2.push(this.readSchema(listValue, v));
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
return buffer2;
|
|
1015
|
+
}
|
|
1016
|
+
const buffer = {};
|
|
1017
|
+
if (ns.isMapSchema()) {
|
|
1018
|
+
const keyNs = ns.getKeySchema();
|
|
1019
|
+
const memberNs = ns.getValueSchema();
|
|
1020
|
+
let entries;
|
|
1021
|
+
if (flat) {
|
|
1022
|
+
entries = Array.isArray(value) ? value : [value];
|
|
1023
|
+
} else {
|
|
1024
|
+
entries = Array.isArray(value.entry) ? value.entry : [value.entry];
|
|
1025
|
+
}
|
|
1026
|
+
const keyProperty = keyNs.getMergedTraits().xmlName ?? "key";
|
|
1027
|
+
const valueProperty = memberNs.getMergedTraits().xmlName ?? "value";
|
|
1028
|
+
for (const entry of entries) {
|
|
1029
|
+
const key = entry[keyProperty];
|
|
1030
|
+
const value2 = entry[valueProperty];
|
|
1031
|
+
if (value2 != null || sparse) {
|
|
1032
|
+
buffer[key] = this.readSchema(memberNs, value2);
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
return buffer;
|
|
1036
|
+
}
|
|
1037
|
+
if (ns.isStructSchema()) {
|
|
1038
|
+
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
1039
|
+
const memberTraits = memberSchema.getMergedTraits();
|
|
1040
|
+
const xmlObjectKey = !memberTraits.httpPayload ? memberSchema.getMemberTraits().xmlName ?? memberName : memberTraits.xmlName ?? memberSchema.getName();
|
|
1041
|
+
if (value[xmlObjectKey] != null) {
|
|
1042
|
+
buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]);
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
return buffer;
|
|
1046
|
+
}
|
|
1047
|
+
if (ns.isDocumentSchema()) {
|
|
1048
|
+
return value;
|
|
1049
|
+
}
|
|
1050
|
+
throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`);
|
|
1051
|
+
}
|
|
1052
|
+
if (ns.isListSchema()) {
|
|
1053
|
+
return [];
|
|
1054
|
+
}
|
|
1055
|
+
if (ns.isMapSchema() || ns.isStructSchema()) {
|
|
1056
|
+
return {};
|
|
1057
|
+
}
|
|
1058
|
+
return this.stringDeserializer.read(ns, value);
|
|
1059
|
+
}
|
|
1060
|
+
parseXml(xml) {
|
|
1061
|
+
if (xml.length) {
|
|
1062
|
+
const parser = new import_fast_xml_parser.XMLParser({
|
|
1063
|
+
attributeNamePrefix: "",
|
|
1064
|
+
htmlEntities: true,
|
|
1065
|
+
ignoreAttributes: false,
|
|
1066
|
+
ignoreDeclaration: true,
|
|
1067
|
+
parseTagValue: false,
|
|
1068
|
+
trimValues: false,
|
|
1069
|
+
tagValueProcessor: /* @__PURE__ */ __name((_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0, "tagValueProcessor")
|
|
1070
|
+
});
|
|
1071
|
+
parser.addEntity("#xD", "\r");
|
|
1072
|
+
parser.addEntity("#10", "\n");
|
|
1073
|
+
let parsedObj;
|
|
1074
|
+
try {
|
|
1075
|
+
parsedObj = parser.parse(xml, true);
|
|
1076
|
+
} catch (e) {
|
|
1077
|
+
if (e && typeof e === "object") {
|
|
1078
|
+
Object.defineProperty(e, "$responseBodyText", {
|
|
1079
|
+
value: xml
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
throw e;
|
|
1083
|
+
}
|
|
1084
|
+
const textNodeName = "#text";
|
|
1085
|
+
const key = Object.keys(parsedObj)[0];
|
|
1086
|
+
const parsedObjToReturn = parsedObj[key];
|
|
1087
|
+
if (parsedObjToReturn[textNodeName]) {
|
|
1088
|
+
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
1089
|
+
delete parsedObjToReturn[textNodeName];
|
|
1090
|
+
}
|
|
1091
|
+
return (0, import_smithy_client3.getValueFromTextNode)(parsedObjToReturn);
|
|
1092
|
+
}
|
|
1093
|
+
return {};
|
|
1094
|
+
}
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
// src/submodules/protocols/query/QueryShapeSerializer.ts
|
|
1098
|
+
var import_protocols4 = require("@smithy/core/protocols");
|
|
1099
|
+
var import_schema8 = require("@smithy/core/schema");
|
|
1100
|
+
var import_serde5 = require("@smithy/core/serde");
|
|
1101
|
+
var import_smithy_client4 = require("@smithy/smithy-client");
|
|
1102
|
+
var import_util_base642 = require("@smithy/util-base64");
|
|
1103
|
+
var QueryShapeSerializer = class extends SerdeContextConfig {
|
|
1104
|
+
constructor(settings) {
|
|
1105
|
+
super();
|
|
1106
|
+
this.settings = settings;
|
|
1107
|
+
}
|
|
1108
|
+
static {
|
|
1109
|
+
__name(this, "QueryShapeSerializer");
|
|
1110
|
+
}
|
|
1111
|
+
buffer;
|
|
1112
|
+
write(schema, value, prefix = "") {
|
|
1113
|
+
if (this.buffer === void 0) {
|
|
1114
|
+
this.buffer = "";
|
|
1115
|
+
}
|
|
1116
|
+
const ns = import_schema8.NormalizedSchema.of(schema);
|
|
1117
|
+
if (prefix && !prefix.endsWith(".")) {
|
|
1118
|
+
prefix += ".";
|
|
1119
|
+
}
|
|
1120
|
+
if (ns.isBlobSchema()) {
|
|
1121
|
+
if (typeof value === "string" || value instanceof Uint8Array) {
|
|
1122
|
+
this.writeKey(prefix);
|
|
1123
|
+
this.writeValue((this.serdeContext?.base64Encoder ?? import_util_base642.toBase64)(value));
|
|
1124
|
+
}
|
|
1125
|
+
} else if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isStringSchema()) {
|
|
1126
|
+
if (value != null) {
|
|
1127
|
+
this.writeKey(prefix);
|
|
1128
|
+
this.writeValue(String(value));
|
|
1129
|
+
} else if (ns.isIdempotencyToken()) {
|
|
1130
|
+
this.writeKey(prefix);
|
|
1131
|
+
this.writeValue((0, import_serde5.generateIdempotencyToken)());
|
|
1132
|
+
}
|
|
1133
|
+
} else if (ns.isBigIntegerSchema()) {
|
|
1134
|
+
if (value != null) {
|
|
1135
|
+
this.writeKey(prefix);
|
|
1136
|
+
this.writeValue(String(value));
|
|
1137
|
+
}
|
|
1138
|
+
} else if (ns.isBigDecimalSchema()) {
|
|
1139
|
+
if (value != null) {
|
|
1140
|
+
this.writeKey(prefix);
|
|
1141
|
+
this.writeValue(value instanceof import_serde5.NumericValue ? value.string : String(value));
|
|
1142
|
+
}
|
|
1143
|
+
} else if (ns.isTimestampSchema()) {
|
|
1144
|
+
if (value instanceof Date) {
|
|
1145
|
+
this.writeKey(prefix);
|
|
1146
|
+
const format = (0, import_protocols4.determineTimestampFormat)(ns, this.settings);
|
|
1147
|
+
switch (format) {
|
|
1148
|
+
case import_schema8.SCHEMA.TIMESTAMP_DATE_TIME:
|
|
1149
|
+
this.writeValue(value.toISOString().replace(".000Z", "Z"));
|
|
1150
|
+
break;
|
|
1151
|
+
case import_schema8.SCHEMA.TIMESTAMP_HTTP_DATE:
|
|
1152
|
+
this.writeValue((0, import_smithy_client4.dateToUtcString)(value));
|
|
1153
|
+
break;
|
|
1154
|
+
case import_schema8.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
|
|
1155
|
+
this.writeValue(String(value.getTime() / 1e3));
|
|
1156
|
+
break;
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
} else if (ns.isDocumentSchema()) {
|
|
1160
|
+
throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${ns.getName(true)}`);
|
|
1161
|
+
} else if (ns.isListSchema()) {
|
|
1162
|
+
if (Array.isArray(value)) {
|
|
1163
|
+
if (value.length === 0) {
|
|
1164
|
+
if (this.settings.serializeEmptyLists) {
|
|
1165
|
+
this.writeKey(prefix);
|
|
1166
|
+
this.writeValue("");
|
|
1167
|
+
}
|
|
1168
|
+
} else {
|
|
1169
|
+
const member = ns.getValueSchema();
|
|
1170
|
+
const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened;
|
|
1171
|
+
let i = 1;
|
|
1172
|
+
for (const item of value) {
|
|
1173
|
+
if (item == null) {
|
|
1174
|
+
continue;
|
|
1175
|
+
}
|
|
1176
|
+
const suffix = this.getKey("member", member.getMergedTraits().xmlName);
|
|
1177
|
+
const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`;
|
|
1178
|
+
this.write(member, item, key);
|
|
1179
|
+
++i;
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
} else if (ns.isMapSchema()) {
|
|
1184
|
+
if (value && typeof value === "object") {
|
|
1185
|
+
const keySchema = ns.getKeySchema();
|
|
1186
|
+
const memberSchema = ns.getValueSchema();
|
|
1187
|
+
const flat = ns.getMergedTraits().xmlFlattened;
|
|
1188
|
+
let i = 1;
|
|
1189
|
+
for (const [k, v] of Object.entries(value)) {
|
|
1190
|
+
if (v == null) {
|
|
1191
|
+
continue;
|
|
1192
|
+
}
|
|
1193
|
+
const keySuffix = this.getKey("key", keySchema.getMergedTraits().xmlName);
|
|
1194
|
+
const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`;
|
|
1195
|
+
const valueSuffix = this.getKey("value", memberSchema.getMergedTraits().xmlName);
|
|
1196
|
+
const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`;
|
|
1197
|
+
this.write(keySchema, k, key);
|
|
1198
|
+
this.write(memberSchema, v, valueKey);
|
|
1199
|
+
++i;
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
} else if (ns.isStructSchema()) {
|
|
1203
|
+
if (value && typeof value === "object") {
|
|
1204
|
+
for (const [memberName, member] of ns.structIterator()) {
|
|
1205
|
+
if (value[memberName] == null && !member.isIdempotencyToken()) {
|
|
1206
|
+
continue;
|
|
1207
|
+
}
|
|
1208
|
+
const suffix = this.getKey(memberName, member.getMergedTraits().xmlName);
|
|
1209
|
+
const key = `${prefix}${suffix}`;
|
|
1210
|
+
this.write(member, value[memberName], key);
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
} else if (ns.isUnitSchema()) {
|
|
1214
|
+
} else {
|
|
1215
|
+
throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`);
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
flush() {
|
|
1219
|
+
if (this.buffer === void 0) {
|
|
1220
|
+
throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");
|
|
1221
|
+
}
|
|
1222
|
+
const str = this.buffer;
|
|
1223
|
+
delete this.buffer;
|
|
1224
|
+
return str;
|
|
1225
|
+
}
|
|
1226
|
+
getKey(memberName, xmlName) {
|
|
1227
|
+
const key = xmlName ?? memberName;
|
|
1228
|
+
if (this.settings.capitalizeKeys) {
|
|
1229
|
+
return key[0].toUpperCase() + key.slice(1);
|
|
1230
|
+
}
|
|
1231
|
+
return key;
|
|
1232
|
+
}
|
|
1233
|
+
writeKey(key) {
|
|
1234
|
+
if (key.endsWith(".")) {
|
|
1235
|
+
key = key.slice(0, key.length - 1);
|
|
1236
|
+
}
|
|
1237
|
+
this.buffer += `&${(0, import_protocols4.extendedEncodeURIComponent)(key)}=`;
|
|
1238
|
+
}
|
|
1239
|
+
writeValue(value) {
|
|
1240
|
+
this.buffer += (0, import_protocols4.extendedEncodeURIComponent)(value);
|
|
1241
|
+
}
|
|
1242
|
+
};
|
|
1243
|
+
|
|
1244
|
+
// src/submodules/protocols/query/AwsQueryProtocol.ts
|
|
1245
|
+
var AwsQueryProtocol = class extends import_protocols5.RpcProtocol {
|
|
1246
|
+
constructor(options) {
|
|
1247
|
+
super({
|
|
1248
|
+
defaultNamespace: options.defaultNamespace
|
|
1249
|
+
});
|
|
1250
|
+
this.options = options;
|
|
1251
|
+
const settings = {
|
|
1252
|
+
timestampFormat: {
|
|
1253
|
+
useTrait: true,
|
|
1254
|
+
default: import_schema9.SCHEMA.TIMESTAMP_DATE_TIME
|
|
1255
|
+
},
|
|
1256
|
+
httpBindings: false,
|
|
1257
|
+
xmlNamespace: options.xmlNamespace,
|
|
1258
|
+
serviceNamespace: options.defaultNamespace,
|
|
1259
|
+
serializeEmptyLists: true
|
|
1260
|
+
};
|
|
1261
|
+
this.serializer = new QueryShapeSerializer(settings);
|
|
1262
|
+
this.deserializer = new XmlShapeDeserializer(settings);
|
|
1263
|
+
}
|
|
1264
|
+
static {
|
|
1265
|
+
__name(this, "AwsQueryProtocol");
|
|
1266
|
+
}
|
|
1267
|
+
serializer;
|
|
1268
|
+
deserializer;
|
|
1269
|
+
mixin = new ProtocolLib();
|
|
1270
|
+
getShapeId() {
|
|
1271
|
+
return "aws.protocols#awsQuery";
|
|
1272
|
+
}
|
|
1273
|
+
setSerdeContext(serdeContext) {
|
|
1274
|
+
this.serializer.setSerdeContext(serdeContext);
|
|
1275
|
+
this.deserializer.setSerdeContext(serdeContext);
|
|
1276
|
+
}
|
|
1277
|
+
getPayloadCodec() {
|
|
1278
|
+
throw new Error("AWSQuery protocol has no payload codec.");
|
|
1279
|
+
}
|
|
1280
|
+
async serializeRequest(operationSchema, input, context) {
|
|
1281
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
1282
|
+
if (!request.path.endsWith("/")) {
|
|
1283
|
+
request.path += "/";
|
|
1284
|
+
}
|
|
1285
|
+
Object.assign(request.headers, {
|
|
1286
|
+
"content-type": `application/x-www-form-urlencoded`
|
|
1287
|
+
});
|
|
1288
|
+
if ((0, import_schema9.deref)(operationSchema.input) === "unit" || !request.body) {
|
|
1289
|
+
request.body = "";
|
|
1290
|
+
}
|
|
1291
|
+
request.body = `Action=${operationSchema.name.split("#")[1]}&Version=${this.options.version}` + request.body;
|
|
1292
|
+
if (request.body.endsWith("&")) {
|
|
1293
|
+
request.body = request.body.slice(-1);
|
|
1294
|
+
}
|
|
1295
|
+
try {
|
|
1296
|
+
request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
|
|
1297
|
+
} catch (e) {
|
|
1298
|
+
}
|
|
1299
|
+
return request;
|
|
1300
|
+
}
|
|
1301
|
+
async deserializeResponse(operationSchema, context, response) {
|
|
1302
|
+
const deserializer = this.deserializer;
|
|
1303
|
+
const ns = import_schema9.NormalizedSchema.of(operationSchema.output);
|
|
1304
|
+
const dataObject = {};
|
|
1305
|
+
if (response.statusCode >= 300) {
|
|
1306
|
+
const bytes2 = await (0, import_protocols5.collectBody)(response.body, context);
|
|
1307
|
+
if (bytes2.byteLength > 0) {
|
|
1308
|
+
Object.assign(dataObject, await deserializer.read(import_schema9.SCHEMA.DOCUMENT, bytes2));
|
|
1309
|
+
}
|
|
1310
|
+
await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
|
|
1311
|
+
}
|
|
1312
|
+
for (const header in response.headers) {
|
|
1313
|
+
const value = response.headers[header];
|
|
1314
|
+
delete response.headers[header];
|
|
1315
|
+
response.headers[header.toLowerCase()] = value;
|
|
1316
|
+
}
|
|
1317
|
+
const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? operationSchema.name.split("#")[1] + "Result" : void 0;
|
|
1318
|
+
const bytes = await (0, import_protocols5.collectBody)(response.body, context);
|
|
1319
|
+
if (bytes.byteLength > 0) {
|
|
1320
|
+
Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
|
|
1321
|
+
}
|
|
1322
|
+
const output = {
|
|
1323
|
+
$metadata: this.deserializeMetadata(response),
|
|
1324
|
+
...dataObject
|
|
1325
|
+
};
|
|
1326
|
+
return output;
|
|
1327
|
+
}
|
|
1328
|
+
/**
|
|
1329
|
+
* EC2 Query overrides this.
|
|
1330
|
+
*/
|
|
1331
|
+
useNestedResult() {
|
|
1332
|
+
return true;
|
|
1333
|
+
}
|
|
1334
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
1335
|
+
const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
|
|
1336
|
+
const errorData = this.loadQueryError(dataObject);
|
|
1337
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(
|
|
1338
|
+
errorIdentifier,
|
|
1339
|
+
this.options.defaultNamespace,
|
|
1340
|
+
response,
|
|
1341
|
+
errorData,
|
|
1342
|
+
metadata,
|
|
1343
|
+
(registry, errorName) => registry.find(
|
|
1344
|
+
(schema) => import_schema9.NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName
|
|
1345
|
+
)
|
|
1346
|
+
);
|
|
1347
|
+
const ns = import_schema9.NormalizedSchema.of(errorSchema);
|
|
1348
|
+
const message = this.loadQueryErrorMessage(dataObject);
|
|
1349
|
+
const exception = new errorSchema.ctor(message);
|
|
1350
|
+
const output = {};
|
|
1351
|
+
for (const [name, member] of ns.structIterator()) {
|
|
1352
|
+
const target = member.getMergedTraits().xmlName ?? name;
|
|
1353
|
+
const value = errorData[target] ?? dataObject[target];
|
|
1354
|
+
output[name] = this.deserializer.readSchema(member, value);
|
|
1355
|
+
}
|
|
1356
|
+
throw Object.assign(
|
|
1357
|
+
exception,
|
|
1358
|
+
errorMetadata,
|
|
1359
|
+
{
|
|
1360
|
+
$fault: ns.getMergedTraits().error,
|
|
1361
|
+
message
|
|
1362
|
+
},
|
|
1363
|
+
output
|
|
1364
|
+
);
|
|
1365
|
+
}
|
|
1366
|
+
/**
|
|
1367
|
+
* The variations in the error and error message locations are attributed to
|
|
1368
|
+
* divergence between AWS Query and EC2 Query behavior.
|
|
1369
|
+
*/
|
|
1370
|
+
loadQueryErrorCode(output, data) {
|
|
1371
|
+
const code = (data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error)?.Code;
|
|
1372
|
+
if (code !== void 0) {
|
|
1373
|
+
return code;
|
|
1374
|
+
}
|
|
1375
|
+
if (output.statusCode == 404) {
|
|
1376
|
+
return "NotFound";
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
loadQueryError(data) {
|
|
1380
|
+
return data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error;
|
|
1381
|
+
}
|
|
1382
|
+
loadQueryErrorMessage(data) {
|
|
1383
|
+
const errorData = this.loadQueryError(data);
|
|
1384
|
+
return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown";
|
|
1385
|
+
}
|
|
1386
|
+
/**
|
|
1387
|
+
* @override
|
|
1388
|
+
*/
|
|
1389
|
+
getDefaultContentType() {
|
|
1390
|
+
return "application/x-www-form-urlencoded";
|
|
1391
|
+
}
|
|
1392
|
+
};
|
|
1393
|
+
|
|
1394
|
+
// src/submodules/protocols/query/AwsEc2QueryProtocol.ts
|
|
1395
|
+
var AwsEc2QueryProtocol = class extends AwsQueryProtocol {
|
|
1396
|
+
constructor(options) {
|
|
1397
|
+
super(options);
|
|
1398
|
+
this.options = options;
|
|
1399
|
+
const ec2Settings = {
|
|
1400
|
+
capitalizeKeys: true,
|
|
1401
|
+
flattenLists: true,
|
|
1402
|
+
serializeEmptyLists: false
|
|
1403
|
+
};
|
|
1404
|
+
Object.assign(this.serializer.settings, ec2Settings);
|
|
1405
|
+
}
|
|
1406
|
+
static {
|
|
1407
|
+
__name(this, "AwsEc2QueryProtocol");
|
|
1408
|
+
}
|
|
1409
|
+
/**
|
|
1410
|
+
* EC2 Query reads XResponse.XResult instead of XResponse directly.
|
|
1411
|
+
*/
|
|
1412
|
+
useNestedResult() {
|
|
1413
|
+
return false;
|
|
1414
|
+
}
|
|
1415
|
+
};
|
|
1416
|
+
|
|
1417
|
+
// src/submodules/protocols/xml/AwsRestXmlProtocol.ts
|
|
1418
|
+
var import_protocols6 = require("@smithy/core/protocols");
|
|
1419
|
+
var import_schema11 = require("@smithy/core/schema");
|
|
1420
|
+
|
|
1421
|
+
// src/submodules/protocols/xml/parseXmlBody.ts
|
|
1422
|
+
var import_smithy_client5 = require("@smithy/smithy-client");
|
|
1423
|
+
var import_fast_xml_parser2 = require("fast-xml-parser");
|
|
162
1424
|
var parseXmlBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
163
1425
|
if (encoded.length) {
|
|
164
|
-
const parser = new
|
|
1426
|
+
const parser = new import_fast_xml_parser2.XMLParser({
|
|
165
1427
|
attributeNamePrefix: "",
|
|
166
1428
|
htmlEntities: true,
|
|
167
1429
|
ignoreAttributes: false,
|
|
168
1430
|
ignoreDeclaration: true,
|
|
169
1431
|
parseTagValue: false,
|
|
170
1432
|
trimValues: false,
|
|
171
|
-
tagValueProcessor: (_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0
|
|
1433
|
+
tagValueProcessor: /* @__PURE__ */ __name((_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0, "tagValueProcessor")
|
|
172
1434
|
});
|
|
173
1435
|
parser.addEntity("#xD", "\r");
|
|
174
1436
|
parser.addEntity("#10", "\n");
|
|
@@ -190,7 +1452,7 @@ var parseXmlBody = /* @__PURE__ */ __name((streamBody, context) => collectBodySt
|
|
|
190
1452
|
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
191
1453
|
delete parsedObjToReturn[textNodeName];
|
|
192
1454
|
}
|
|
193
|
-
return (0,
|
|
1455
|
+
return (0, import_smithy_client5.getValueFromTextNode)(parsedObjToReturn);
|
|
194
1456
|
}
|
|
195
1457
|
return {};
|
|
196
1458
|
}), "parseXmlBody");
|
|
@@ -212,8 +1474,415 @@ var loadRestXmlErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
|
212
1474
|
return "NotFound";
|
|
213
1475
|
}
|
|
214
1476
|
}, "loadRestXmlErrorCode");
|
|
1477
|
+
|
|
1478
|
+
// src/submodules/protocols/xml/XmlShapeSerializer.ts
|
|
1479
|
+
var import_xml_builder = require("@aws-sdk/xml-builder");
|
|
1480
|
+
var import_schema10 = require("@smithy/core/schema");
|
|
1481
|
+
var import_serde6 = require("@smithy/core/serde");
|
|
1482
|
+
var import_smithy_client6 = require("@smithy/smithy-client");
|
|
1483
|
+
var import_util_base643 = require("@smithy/util-base64");
|
|
1484
|
+
var XmlShapeSerializer = class extends SerdeContextConfig {
|
|
1485
|
+
constructor(settings) {
|
|
1486
|
+
super();
|
|
1487
|
+
this.settings = settings;
|
|
1488
|
+
}
|
|
1489
|
+
static {
|
|
1490
|
+
__name(this, "XmlShapeSerializer");
|
|
1491
|
+
}
|
|
1492
|
+
stringBuffer;
|
|
1493
|
+
byteBuffer;
|
|
1494
|
+
buffer;
|
|
1495
|
+
write(schema, value) {
|
|
1496
|
+
const ns = import_schema10.NormalizedSchema.of(schema);
|
|
1497
|
+
if (ns.isStringSchema() && typeof value === "string") {
|
|
1498
|
+
this.stringBuffer = value;
|
|
1499
|
+
} else if (ns.isBlobSchema()) {
|
|
1500
|
+
this.byteBuffer = "byteLength" in value ? value : (this.serdeContext?.base64Decoder ?? import_util_base643.fromBase64)(value);
|
|
1501
|
+
} else {
|
|
1502
|
+
this.buffer = this.writeStruct(ns, value, void 0);
|
|
1503
|
+
const traits = ns.getMergedTraits();
|
|
1504
|
+
if (traits.httpPayload && !traits.xmlName) {
|
|
1505
|
+
this.buffer.withName(ns.getName());
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
flush() {
|
|
1510
|
+
if (this.byteBuffer !== void 0) {
|
|
1511
|
+
const bytes = this.byteBuffer;
|
|
1512
|
+
delete this.byteBuffer;
|
|
1513
|
+
return bytes;
|
|
1514
|
+
}
|
|
1515
|
+
if (this.stringBuffer !== void 0) {
|
|
1516
|
+
const str = this.stringBuffer;
|
|
1517
|
+
delete this.stringBuffer;
|
|
1518
|
+
return str;
|
|
1519
|
+
}
|
|
1520
|
+
const buffer = this.buffer;
|
|
1521
|
+
if (this.settings.xmlNamespace) {
|
|
1522
|
+
if (!buffer?.attributes?.["xmlns"]) {
|
|
1523
|
+
buffer.addAttribute("xmlns", this.settings.xmlNamespace);
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
delete this.buffer;
|
|
1527
|
+
return buffer.toString();
|
|
1528
|
+
}
|
|
1529
|
+
writeStruct(ns, value, parentXmlns) {
|
|
1530
|
+
const traits = ns.getMergedTraits();
|
|
1531
|
+
const name = ns.isMemberSchema() && !traits.httpPayload ? ns.getMemberTraits().xmlName ?? ns.getMemberName() : traits.xmlName ?? ns.getName();
|
|
1532
|
+
if (!name || !ns.isStructSchema()) {
|
|
1533
|
+
throw new Error(
|
|
1534
|
+
`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName(
|
|
1535
|
+
true
|
|
1536
|
+
)}.`
|
|
1537
|
+
);
|
|
1538
|
+
}
|
|
1539
|
+
const structXmlNode = import_xml_builder.XmlNode.of(name);
|
|
1540
|
+
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
|
|
1541
|
+
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
1542
|
+
const val = value[memberName];
|
|
1543
|
+
if (val != null || memberSchema.isIdempotencyToken()) {
|
|
1544
|
+
if (memberSchema.getMergedTraits().xmlAttribute) {
|
|
1545
|
+
structXmlNode.addAttribute(
|
|
1546
|
+
memberSchema.getMergedTraits().xmlName ?? memberName,
|
|
1547
|
+
this.writeSimple(memberSchema, val)
|
|
1548
|
+
);
|
|
1549
|
+
continue;
|
|
1550
|
+
}
|
|
1551
|
+
if (memberSchema.isListSchema()) {
|
|
1552
|
+
this.writeList(memberSchema, val, structXmlNode, xmlns);
|
|
1553
|
+
} else if (memberSchema.isMapSchema()) {
|
|
1554
|
+
this.writeMap(memberSchema, val, structXmlNode, xmlns);
|
|
1555
|
+
} else if (memberSchema.isStructSchema()) {
|
|
1556
|
+
structXmlNode.addChildNode(this.writeStruct(memberSchema, val, xmlns));
|
|
1557
|
+
} else {
|
|
1558
|
+
const memberNode = import_xml_builder.XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName());
|
|
1559
|
+
this.writeSimpleInto(memberSchema, val, memberNode, xmlns);
|
|
1560
|
+
structXmlNode.addChildNode(memberNode);
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
if (xmlns) {
|
|
1565
|
+
structXmlNode.addAttribute(xmlnsAttr, xmlns);
|
|
1566
|
+
}
|
|
1567
|
+
return structXmlNode;
|
|
1568
|
+
}
|
|
1569
|
+
writeList(listMember, array, container, parentXmlns) {
|
|
1570
|
+
if (!listMember.isMemberSchema()) {
|
|
1571
|
+
throw new Error(
|
|
1572
|
+
`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${listMember.getName(true)}`
|
|
1573
|
+
);
|
|
1574
|
+
}
|
|
1575
|
+
const listTraits = listMember.getMergedTraits();
|
|
1576
|
+
const listValueSchema = listMember.getValueSchema();
|
|
1577
|
+
const listValueTraits = listValueSchema.getMergedTraits();
|
|
1578
|
+
const sparse = !!listValueTraits.sparse;
|
|
1579
|
+
const flat = !!listTraits.xmlFlattened;
|
|
1580
|
+
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns);
|
|
1581
|
+
const writeItem = /* @__PURE__ */ __name((container2, value) => {
|
|
1582
|
+
if (listValueSchema.isListSchema()) {
|
|
1583
|
+
this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container2, xmlns);
|
|
1584
|
+
} else if (listValueSchema.isMapSchema()) {
|
|
1585
|
+
this.writeMap(listValueSchema, value, container2, xmlns);
|
|
1586
|
+
} else if (listValueSchema.isStructSchema()) {
|
|
1587
|
+
const struct = this.writeStruct(listValueSchema, value, xmlns);
|
|
1588
|
+
container2.addChildNode(
|
|
1589
|
+
struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member")
|
|
1590
|
+
);
|
|
1591
|
+
} else {
|
|
1592
|
+
const listItemNode = import_xml_builder.XmlNode.of(
|
|
1593
|
+
flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"
|
|
1594
|
+
);
|
|
1595
|
+
this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns);
|
|
1596
|
+
container2.addChildNode(listItemNode);
|
|
1597
|
+
}
|
|
1598
|
+
}, "writeItem");
|
|
1599
|
+
if (flat) {
|
|
1600
|
+
for (const value of array) {
|
|
1601
|
+
if (sparse || value != null) {
|
|
1602
|
+
writeItem(container, value);
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
} else {
|
|
1606
|
+
const listNode = import_xml_builder.XmlNode.of(listTraits.xmlName ?? listMember.getMemberName());
|
|
1607
|
+
if (xmlns) {
|
|
1608
|
+
listNode.addAttribute(xmlnsAttr, xmlns);
|
|
1609
|
+
}
|
|
1610
|
+
for (const value of array) {
|
|
1611
|
+
if (sparse || value != null) {
|
|
1612
|
+
writeItem(listNode, value);
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
container.addChildNode(listNode);
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
writeMap(mapMember, map, container, parentXmlns, containerIsMap = false) {
|
|
1619
|
+
if (!mapMember.isMemberSchema()) {
|
|
1620
|
+
throw new Error(
|
|
1621
|
+
`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${mapMember.getName(true)}`
|
|
1622
|
+
);
|
|
1623
|
+
}
|
|
1624
|
+
const mapTraits = mapMember.getMergedTraits();
|
|
1625
|
+
const mapKeySchema = mapMember.getKeySchema();
|
|
1626
|
+
const mapKeyTraits = mapKeySchema.getMergedTraits();
|
|
1627
|
+
const keyTag = mapKeyTraits.xmlName ?? "key";
|
|
1628
|
+
const mapValueSchema = mapMember.getValueSchema();
|
|
1629
|
+
const mapValueTraits = mapValueSchema.getMergedTraits();
|
|
1630
|
+
const valueTag = mapValueTraits.xmlName ?? "value";
|
|
1631
|
+
const sparse = !!mapValueTraits.sparse;
|
|
1632
|
+
const flat = !!mapTraits.xmlFlattened;
|
|
1633
|
+
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns);
|
|
1634
|
+
const addKeyValue = /* @__PURE__ */ __name((entry, key, val) => {
|
|
1635
|
+
const keyNode = import_xml_builder.XmlNode.of(keyTag, key);
|
|
1636
|
+
const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns);
|
|
1637
|
+
if (keyXmlns) {
|
|
1638
|
+
keyNode.addAttribute(keyXmlnsAttr, keyXmlns);
|
|
1639
|
+
}
|
|
1640
|
+
entry.addChildNode(keyNode);
|
|
1641
|
+
let valueNode = import_xml_builder.XmlNode.of(valueTag);
|
|
1642
|
+
if (mapValueSchema.isListSchema()) {
|
|
1643
|
+
this.writeList(mapValueSchema, val, valueNode, xmlns);
|
|
1644
|
+
} else if (mapValueSchema.isMapSchema()) {
|
|
1645
|
+
this.writeMap(mapValueSchema, val, valueNode, xmlns, true);
|
|
1646
|
+
} else if (mapValueSchema.isStructSchema()) {
|
|
1647
|
+
valueNode = this.writeStruct(mapValueSchema, val, xmlns);
|
|
1648
|
+
} else {
|
|
1649
|
+
this.writeSimpleInto(mapValueSchema, val, valueNode, xmlns);
|
|
1650
|
+
}
|
|
1651
|
+
entry.addChildNode(valueNode);
|
|
1652
|
+
}, "addKeyValue");
|
|
1653
|
+
if (flat) {
|
|
1654
|
+
for (const [key, val] of Object.entries(map)) {
|
|
1655
|
+
if (sparse || val != null) {
|
|
1656
|
+
const entry = import_xml_builder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
|
|
1657
|
+
addKeyValue(entry, key, val);
|
|
1658
|
+
container.addChildNode(entry);
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
} else {
|
|
1662
|
+
let mapNode;
|
|
1663
|
+
if (!containerIsMap) {
|
|
1664
|
+
mapNode = import_xml_builder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
|
|
1665
|
+
if (xmlns) {
|
|
1666
|
+
mapNode.addAttribute(xmlnsAttr, xmlns);
|
|
1667
|
+
}
|
|
1668
|
+
container.addChildNode(mapNode);
|
|
1669
|
+
}
|
|
1670
|
+
for (const [key, val] of Object.entries(map)) {
|
|
1671
|
+
if (sparse || val != null) {
|
|
1672
|
+
const entry = import_xml_builder.XmlNode.of("entry");
|
|
1673
|
+
addKeyValue(entry, key, val);
|
|
1674
|
+
(containerIsMap ? container : mapNode).addChildNode(entry);
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
writeSimple(_schema, value) {
|
|
1680
|
+
if (null === value) {
|
|
1681
|
+
throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");
|
|
1682
|
+
}
|
|
1683
|
+
const ns = import_schema10.NormalizedSchema.of(_schema);
|
|
1684
|
+
let nodeContents = null;
|
|
1685
|
+
if (value && typeof value === "object") {
|
|
1686
|
+
if (ns.isBlobSchema()) {
|
|
1687
|
+
nodeContents = (this.serdeContext?.base64Encoder ?? import_util_base643.toBase64)(value);
|
|
1688
|
+
} else if (ns.isTimestampSchema() && value instanceof Date) {
|
|
1689
|
+
const options = this.settings.timestampFormat;
|
|
1690
|
+
const format = options.useTrait ? ns.getSchema() === import_schema10.SCHEMA.TIMESTAMP_DEFAULT ? options.default : ns.getSchema() ?? options.default : options.default;
|
|
1691
|
+
switch (format) {
|
|
1692
|
+
case import_schema10.SCHEMA.TIMESTAMP_DATE_TIME:
|
|
1693
|
+
nodeContents = value.toISOString().replace(".000Z", "Z");
|
|
1694
|
+
break;
|
|
1695
|
+
case import_schema10.SCHEMA.TIMESTAMP_HTTP_DATE:
|
|
1696
|
+
nodeContents = (0, import_smithy_client6.dateToUtcString)(value);
|
|
1697
|
+
break;
|
|
1698
|
+
case import_schema10.SCHEMA.TIMESTAMP_EPOCH_SECONDS:
|
|
1699
|
+
nodeContents = String(value.getTime() / 1e3);
|
|
1700
|
+
break;
|
|
1701
|
+
default:
|
|
1702
|
+
console.warn("Missing timestamp format, using http date", value);
|
|
1703
|
+
nodeContents = (0, import_smithy_client6.dateToUtcString)(value);
|
|
1704
|
+
break;
|
|
1705
|
+
}
|
|
1706
|
+
} else if (ns.isBigDecimalSchema() && value) {
|
|
1707
|
+
if (value instanceof import_serde6.NumericValue) {
|
|
1708
|
+
return value.string;
|
|
1709
|
+
}
|
|
1710
|
+
return String(value);
|
|
1711
|
+
} else if (ns.isMapSchema() || ns.isListSchema()) {
|
|
1712
|
+
throw new Error(
|
|
1713
|
+
"@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."
|
|
1714
|
+
);
|
|
1715
|
+
} else {
|
|
1716
|
+
throw new Error(
|
|
1717
|
+
`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${ns.getName(
|
|
1718
|
+
true
|
|
1719
|
+
)}`
|
|
1720
|
+
);
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
|
|
1724
|
+
nodeContents = String(value);
|
|
1725
|
+
}
|
|
1726
|
+
if (ns.isStringSchema()) {
|
|
1727
|
+
if (value === void 0 && ns.isIdempotencyToken()) {
|
|
1728
|
+
nodeContents = (0, import_serde6.generateIdempotencyToken)();
|
|
1729
|
+
} else {
|
|
1730
|
+
nodeContents = String(value);
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
if (nodeContents === null) {
|
|
1734
|
+
throw new Error(`Unhandled schema-value pair ${ns.getName(true)}=${value}`);
|
|
1735
|
+
}
|
|
1736
|
+
return nodeContents;
|
|
1737
|
+
}
|
|
1738
|
+
writeSimpleInto(_schema, value, into, parentXmlns) {
|
|
1739
|
+
const nodeContents = this.writeSimple(_schema, value);
|
|
1740
|
+
const ns = import_schema10.NormalizedSchema.of(_schema);
|
|
1741
|
+
const content = new import_xml_builder.XmlText(nodeContents);
|
|
1742
|
+
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
|
|
1743
|
+
if (xmlns) {
|
|
1744
|
+
into.addAttribute(xmlnsAttr, xmlns);
|
|
1745
|
+
}
|
|
1746
|
+
into.addChildNode(content);
|
|
1747
|
+
}
|
|
1748
|
+
getXmlnsAttribute(ns, parentXmlns) {
|
|
1749
|
+
const traits = ns.getMergedTraits();
|
|
1750
|
+
const [prefix, xmlns] = traits.xmlNamespace ?? [];
|
|
1751
|
+
if (xmlns && xmlns !== parentXmlns) {
|
|
1752
|
+
return [prefix ? `xmlns:${prefix}` : "xmlns", xmlns];
|
|
1753
|
+
}
|
|
1754
|
+
return [void 0, void 0];
|
|
1755
|
+
}
|
|
1756
|
+
};
|
|
1757
|
+
|
|
1758
|
+
// src/submodules/protocols/xml/XmlCodec.ts
|
|
1759
|
+
var XmlCodec = class extends SerdeContextConfig {
|
|
1760
|
+
constructor(settings) {
|
|
1761
|
+
super();
|
|
1762
|
+
this.settings = settings;
|
|
1763
|
+
}
|
|
1764
|
+
static {
|
|
1765
|
+
__name(this, "XmlCodec");
|
|
1766
|
+
}
|
|
1767
|
+
createSerializer() {
|
|
1768
|
+
const serializer = new XmlShapeSerializer(this.settings);
|
|
1769
|
+
serializer.setSerdeContext(this.serdeContext);
|
|
1770
|
+
return serializer;
|
|
1771
|
+
}
|
|
1772
|
+
createDeserializer() {
|
|
1773
|
+
const deserializer = new XmlShapeDeserializer(this.settings);
|
|
1774
|
+
deserializer.setSerdeContext(this.serdeContext);
|
|
1775
|
+
return deserializer;
|
|
1776
|
+
}
|
|
1777
|
+
};
|
|
1778
|
+
|
|
1779
|
+
// src/submodules/protocols/xml/AwsRestXmlProtocol.ts
|
|
1780
|
+
var AwsRestXmlProtocol = class extends import_protocols6.HttpBindingProtocol {
|
|
1781
|
+
static {
|
|
1782
|
+
__name(this, "AwsRestXmlProtocol");
|
|
1783
|
+
}
|
|
1784
|
+
codec;
|
|
1785
|
+
serializer;
|
|
1786
|
+
deserializer;
|
|
1787
|
+
mixin = new ProtocolLib();
|
|
1788
|
+
constructor(options) {
|
|
1789
|
+
super(options);
|
|
1790
|
+
const settings = {
|
|
1791
|
+
timestampFormat: {
|
|
1792
|
+
useTrait: true,
|
|
1793
|
+
default: import_schema11.SCHEMA.TIMESTAMP_DATE_TIME
|
|
1794
|
+
},
|
|
1795
|
+
httpBindings: true,
|
|
1796
|
+
xmlNamespace: options.xmlNamespace,
|
|
1797
|
+
serviceNamespace: options.defaultNamespace
|
|
1798
|
+
};
|
|
1799
|
+
this.codec = new XmlCodec(settings);
|
|
1800
|
+
this.serializer = new import_protocols6.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
|
|
1801
|
+
this.deserializer = new import_protocols6.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
|
|
1802
|
+
}
|
|
1803
|
+
getPayloadCodec() {
|
|
1804
|
+
return this.codec;
|
|
1805
|
+
}
|
|
1806
|
+
getShapeId() {
|
|
1807
|
+
return "aws.protocols#restXml";
|
|
1808
|
+
}
|
|
1809
|
+
async serializeRequest(operationSchema, input, context) {
|
|
1810
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
1811
|
+
const inputSchema = import_schema11.NormalizedSchema.of(operationSchema.input);
|
|
1812
|
+
if (!request.headers["content-type"]) {
|
|
1813
|
+
const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
|
|
1814
|
+
if (contentType) {
|
|
1815
|
+
request.headers["content-type"] = contentType;
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
if (request.headers["content-type"] === this.getDefaultContentType()) {
|
|
1819
|
+
if (typeof request.body === "string") {
|
|
1820
|
+
request.body = '<?xml version="1.0" encoding="UTF-8"?>' + request.body;
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
if (request.body) {
|
|
1824
|
+
try {
|
|
1825
|
+
request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
|
|
1826
|
+
} catch (e) {
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
return request;
|
|
1830
|
+
}
|
|
1831
|
+
async deserializeResponse(operationSchema, context, response) {
|
|
1832
|
+
return super.deserializeResponse(operationSchema, context, response);
|
|
1833
|
+
}
|
|
1834
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
1835
|
+
const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown";
|
|
1836
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(
|
|
1837
|
+
errorIdentifier,
|
|
1838
|
+
this.options.defaultNamespace,
|
|
1839
|
+
response,
|
|
1840
|
+
dataObject,
|
|
1841
|
+
metadata
|
|
1842
|
+
);
|
|
1843
|
+
const ns = import_schema11.NormalizedSchema.of(errorSchema);
|
|
1844
|
+
const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
1845
|
+
const exception = new errorSchema.ctor(message);
|
|
1846
|
+
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
1847
|
+
const output = {};
|
|
1848
|
+
for (const [name, member] of ns.structIterator()) {
|
|
1849
|
+
const target = member.getMergedTraits().xmlName ?? name;
|
|
1850
|
+
const value = dataObject.Error?.[target] ?? dataObject[target];
|
|
1851
|
+
output[name] = this.codec.createDeserializer().readSchema(member, value);
|
|
1852
|
+
}
|
|
1853
|
+
throw Object.assign(
|
|
1854
|
+
exception,
|
|
1855
|
+
errorMetadata,
|
|
1856
|
+
{
|
|
1857
|
+
$fault: ns.getMergedTraits().error,
|
|
1858
|
+
message
|
|
1859
|
+
},
|
|
1860
|
+
output
|
|
1861
|
+
);
|
|
1862
|
+
}
|
|
1863
|
+
/**
|
|
1864
|
+
* @override
|
|
1865
|
+
*/
|
|
1866
|
+
getDefaultContentType() {
|
|
1867
|
+
return "application/xml";
|
|
1868
|
+
}
|
|
1869
|
+
};
|
|
215
1870
|
// Annotate the CommonJS export names for ESM import in node:
|
|
216
1871
|
0 && (module.exports = {
|
|
1872
|
+
AwsEc2QueryProtocol,
|
|
1873
|
+
AwsJson1_0Protocol,
|
|
1874
|
+
AwsJson1_1Protocol,
|
|
1875
|
+
AwsJsonRpcProtocol,
|
|
1876
|
+
AwsQueryProtocol,
|
|
1877
|
+
AwsRestJsonProtocol,
|
|
1878
|
+
AwsRestXmlProtocol,
|
|
1879
|
+
AwsSmithyRpcV2CborProtocol,
|
|
1880
|
+
JsonCodec,
|
|
1881
|
+
JsonShapeDeserializer,
|
|
1882
|
+
JsonShapeSerializer,
|
|
1883
|
+
XmlCodec,
|
|
1884
|
+
XmlShapeDeserializer,
|
|
1885
|
+
XmlShapeSerializer,
|
|
217
1886
|
_toBool,
|
|
218
1887
|
_toNum,
|
|
219
1888
|
_toStr,
|