@openclaw/cloudflare 2026.11.5 → 2026.11.10-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/dist/.source-module-urls/25ffb9dc262288443a3b3cbbb6080a9aa7ed6d4c205a4189dd4bf02a581c7e07.json +1 -1
  2. package/dist/api.js +1 -2
  3. package/dist/index.js +1 -2
  4. package/dist/runtime-api.js +1 -2
  5. package/dist/s3-backend.js +1 -2
  6. package/dist/settings.js +1 -2
  7. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
  8. package/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +2 -1
  9. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-cjs/submodules/flexible-checksums/index.js +2 -1
  10. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-cjs/submodules/sha/index.js +464 -40
  11. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-cjs/submodules/xxh/index.js +914 -0
  12. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/stringUnionSelector.js +2 -1
  13. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/index.browser.js +2 -0
  14. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/index.js +3 -0
  15. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha512/Sha512.js +71 -0
  16. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha512/Sha512Js.js +276 -0
  17. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha512/Sha512WebCrypto.js +76 -0
  18. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/U64.js +190 -0
  19. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/Xxh3.js +274 -0
  20. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/index.js +3 -0
  21. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/xxhash3_128/Xxh3_128.js +179 -0
  22. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/xxhash3_64/Xxh3_64.js +117 -0
  23. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/xxhash64/Xxh64.js +150 -0
  24. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/index.browser.d.ts +2 -0
  25. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/index.d.ts +3 -0
  26. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/sha512/Sha512.d.ts +17 -0
  27. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/sha512/Sha512Js.d.ts +29 -0
  28. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/sha512/Sha512WebCrypto.d.ts +22 -0
  29. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/U64.d.ts +110 -0
  30. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/Xxh3.d.ts +139 -0
  31. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/index.d.ts +3 -0
  32. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/xxhash3_128/Xxh3_128.d.ts +37 -0
  33. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/xxhash3_64/Xxh3_64.d.ts +27 -0
  34. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/xxhash64/Xxh64.d.ts +41 -0
  35. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/index.browser.d.ts +2 -0
  36. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/index.d.ts +3 -0
  37. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/sha512/Sha512.d.ts +12 -0
  38. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/sha512/Sha512Js.d.ts +22 -0
  39. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/sha512/Sha512WebCrypto.d.ts +14 -0
  40. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/U64.d.ts +27 -0
  41. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/Xxh3.d.ts +65 -0
  42. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/index.d.ts +3 -0
  43. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/xxhash3_128/Xxh3_128.d.ts +12 -0
  44. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/xxhash3_64/Xxh3_64.d.ts +10 -0
  45. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/xxhash64/Xxh64.d.ts +17 -0
  46. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/package.json +15 -5
  47. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/xxh.d.ts +5 -0
  48. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/checksums/xxh.js +5 -0
  49. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +26 -13
  50. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +7 -7
  51. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +51 -1
  52. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -1
  53. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
  54. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
  55. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
  56. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
  57. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +1 -4
  58. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -0
  59. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
  60. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
  61. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +3 -7
  62. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +1 -0
  63. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.d.ts +25 -0
  64. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
  65. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.d.ts +36 -0
  66. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/package.json +5 -5
  67. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
  68. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  69. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  70. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-login/package.json +5 -5
  71. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  72. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  73. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  74. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
  75. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.js +34 -16
  76. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3-control/index.js +6 -3
  77. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint/bucketHostnameUtils.js +6 -3
  78. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.js +8 -4
  79. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.js +18 -8
  80. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-ssec/middleware-ssec.js +2 -1
  81. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/middleware-process-arnables/parse-outpost-arnables.js +4 -2
  82. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/middleware-redirect-from-postid/redirect-from-postid.js +2 -1
  83. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.d.ts +1 -0
  84. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +3 -1
  85. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.d.ts +1 -0
  86. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +3 -1
  87. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/package.json +5 -5
  88. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  89. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +8 -1
  90. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  91. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  92. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  93. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +7 -0
  94. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +2 -1
  95. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +1 -2
  96. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +3 -3
  97. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +5 -59
  98. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +5 -33
  99. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +1 -2
  100. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +16 -9
  101. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +8 -39
  102. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +36 -48
  103. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/SSOClient.d.ts +2 -1
  104. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +2 -1
  105. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +2 -1
  106. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +7 -0
  107. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  108. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
  109. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/token-providers/package.json +5 -5
  110. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +3 -0
  111. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +3 -0
  112. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/types/package.json +1 -1
  113. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  114. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/CHANGELOG.md +37 -0
  115. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/index.js +4 -2
  116. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +45 -53
  117. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +51 -19
  118. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
  119. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
  120. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
  121. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
  122. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +10 -5
  123. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +28 -9
  124. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +28 -9
  125. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +91 -58
  126. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +20 -10
  127. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +24 -12
  128. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +13 -4
  129. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +7 -1
  130. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +13 -4
  131. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
  132. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  133. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
  134. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +12 -37
  135. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
  136. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
  137. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
  138. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
  139. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -1
  140. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
  141. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js +16 -2
  142. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
  143. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +4 -2
  144. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
  145. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
  146. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
  147. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js +10 -4
  148. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
  149. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
  150. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
  151. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
  152. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
  153. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
  154. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
  155. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +12 -1
  156. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
  157. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
  158. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
  159. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
  160. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/protocols/AbstractRpcV2Protocol.js +35 -0
  161. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
  162. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -2
  163. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +6 -2
  164. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
  165. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +8 -31
  166. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +7 -5
  167. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +7 -5
  168. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +7 -5
  169. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +11 -8
  170. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
  171. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
  172. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
  173. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
  174. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +6 -3
  175. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
  176. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  177. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  178. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  179. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
  180. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
  181. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
  182. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
  183. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
  184. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
  185. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
  186. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +12 -0
  187. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
  188. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
  189. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
  190. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
  191. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  192. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
  193. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
  194. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
  195. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +12 -0
  196. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
  197. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
  198. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
  199. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
  200. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  201. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
  202. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/package.json +1 -1
  203. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-http-handler/CHANGELOG.md +33 -0
  204. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-http-handler/dist-cjs/index.js +70 -15
  205. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +2 -1
  206. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +23 -9
  207. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +26 -2
  208. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-http-handler/dist-es/resolve-default-socket-timeout.js +4 -0
  209. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +16 -3
  210. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-http-handler/dist-types/resolve-default-socket-timeout.d.ts +4 -0
  211. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +6 -1
  212. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-http-handler/dist-types/ts3.4/resolve-default-socket-timeout.d.ts +4 -0
  213. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +6 -1
  214. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-http-handler/package.json +3 -3
  215. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/signature-v4/CHANGELOG.md +9 -0
  216. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/signature-v4/dist-cjs/index.js +23 -11
  217. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -2
  218. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
  219. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +5 -1
  220. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +2 -1
  221. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +2 -1
  222. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +6 -3
  223. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
  224. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -1
  225. package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/signature-v4/package.json +2 -2
  226. package/node_modules/@aws-sdk/client-s3/package.json +11 -11
  227. package/package.json +5 -5
  228. /package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-es/submodules/{protocols → serde}/writeKey.js +0 -0
  229. /package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/submodules/{protocols → serde}/writeKey.d.ts +0 -0
  230. /package/node_modules/@aws-sdk/client-s3/node_modules/@smithy/core/dist-types/ts3.4/submodules/{protocols → serde}/writeKey.d.ts +0 -0
@@ -0,0 +1,27 @@
1
+ export type u32 = number;
2
+ export type u64_l = u32;
3
+ export type u64_r = u32;
4
+ export type index = number;
5
+ export type distance = number;
6
+ export type size = number;
7
+ export declare const m8 = 255;
8
+ export declare const m16 = 65535;
9
+ export declare const m32 = 4294967295;
10
+ export declare class U64 extends Uint32Array {
11
+ private constructor();
12
+ static create(size: index): U64;
13
+ write(i: index, v0: u64_l, v1: u64_r): U64;
14
+ copy(source: index, target: index): U64;
15
+ add(i: index, v0: u64_l, v1: u64_r): U64;
16
+ multiply(i: index, v0: u64_l, v1: u64_r): U64;
17
+ addProduct(i: index, a: u32, b: u32): U64;
18
+ multiply128(i: index, j: index, t: index, u: index): U64;
19
+ subtract(i: index, v0: u64_l, v1: u64_r): U64;
20
+ left(i: index, places: distance): U64;
21
+ rotateLeft(i: index, places: distance): U64;
22
+ right(i: index, places: distance): U64;
23
+ xor(i: index, v0: u64_l, v1: u64_r): U64;
24
+ toBytes(i: index): Uint8Array;
25
+ hi(i: index): u64_l;
26
+ lo(i: index): u64_r;
27
+ }
@@ -0,0 +1,65 @@
1
+ import { index, size, u32, u64_l, u64_r } from "./U64";
2
+ import { U64 } from "./U64";
3
+ export declare const PRIME32_1 = 2654435761;
4
+ export declare const PRIME32_2 = 2246822519;
5
+ export declare const PRIME32_3 = 3266489917;
6
+ export declare const PRIME64_1_0 = 2654435761;
7
+ export declare const PRIME64_1_1 = 2246822535;
8
+ export declare const PRIME64_2_0 = 3266489917;
9
+ export declare const PRIME64_2_1 = 668265295;
10
+ export declare const PRIME64_3_0 = 374761393;
11
+ export declare const PRIME64_3_1 = 2654435833;
12
+ export declare const PRIME64_4_0 = 2246822519;
13
+ export declare const PRIME64_4_1 = 3266489955;
14
+ export declare const PRIME64_5_0 = 668265263;
15
+ export declare const PRIME64_5_1 = 374761413;
16
+ export declare const PRIME_MX1_0 = 374761361;
17
+ export declare const PRIME_MX1_1 = 2654435833;
18
+ export declare const PRIME_MX2_0 = 2679250021;
19
+ export declare const PRIME_MX2_1 = 513335077;
20
+ export declare const DEFAULT_SECRET: Uint8Array;
21
+ export declare const SEED = 0;
22
+ export declare const ACC = 1;
23
+ export declare const T0 = 9;
24
+ export declare const T1 = 10;
25
+ export declare const T2 = 11;
26
+ export declare const T3 = 12;
27
+ export declare const T4 = 13;
28
+ export declare const T5 = 14;
29
+ export declare const T6 = 15;
30
+ export declare const SECRET_LENGTH = 192;
31
+ export declare const STRIPES_PER_BLOCK: number;
32
+ export declare const BLOCK_SIZE: number;
33
+ export declare function readU32LE(b: Uint8Array, offset: index): u32;
34
+ export declare function readU64LE(b: Uint8Array, offset: index): [u64_l, u64_r];
35
+ export declare function bswap32(x: u32): u32;
36
+ export declare abstract class Xxh3 {
37
+ protected mem: U64;
38
+ protected seed0: u64_l;
39
+ protected seed1: u64_r;
40
+ protected secret: Uint8Array;
41
+ private dvBuffer;
42
+ private dataView;
43
+ protected blockBuffer: Uint8Array;
44
+ protected bufferIndex: number;
45
+ protected byteCount: number;
46
+ private prevTail;
47
+ private hasPrevTail;
48
+ protected streaming: boolean;
49
+ protected constructor(slots: size, seed0?: number, seed1?: number);
50
+ update(chunk: Uint8Array): void;
51
+ reset(): void;
52
+ protected getBufferedInput(): Uint8Array;
53
+ protected finalizeLargeAccumulators(): void;
54
+ protected initAccumulators(): void;
55
+ protected accumulateStripe(input: Uint8Array, stripeOffset: index, secretOffset: index): void;
56
+ protected roundScramble(): void;
57
+ protected finalMerge(init0: u64_l, init1: u64_r, secretOffset: index): Uint8Array;
58
+ protected mix(data: Uint8Array, dataOffset: index, secretOffset: index): index;
59
+ protected avalanche(i: index, v0: u64_l, v1: u64_r): void;
60
+ protected avalanche64(i: index, v0: u64_l, v1: u64_r): void;
61
+ protected deriveSecret(): Uint8Array;
62
+ protected view(b: Uint8Array): DataView;
63
+ private processFullBlock;
64
+ private processLastBlock;
65
+ }
@@ -0,0 +1,3 @@
1
+ export { Xxh64, Xxh64 as Xxh64Js } from "./xxhash64/Xxh64";
2
+ export { Xxh3_64, Xxh3_64 as Xxh3_64Js } from "./xxhash3_64/Xxh3_64";
3
+ export { Xxh3_128, Xxh3_128 as Xxh3_128Js } from "./xxhash3_128/Xxh3_128";
@@ -0,0 +1,12 @@
1
+ import { Checksum } from "@smithy/types";
2
+ import { Xxh3 } from "../Xxh3";
3
+ export declare class Xxh3_128 extends Xxh3 implements Checksum {
4
+ readonly digestLength = 16;
5
+ constructor();
6
+ digest(): Promise<Uint8Array>;
7
+ private concat;
8
+ private digestSmall;
9
+ private digestMedium;
10
+ private mixTwoChunks;
11
+ private digestLarge;
12
+ }
@@ -0,0 +1,10 @@
1
+ import { Checksum } from "@smithy/types";
2
+ import { Xxh3 } from "../Xxh3";
3
+ export declare class Xxh3_64 extends Xxh3 implements Checksum {
4
+ readonly digestLength = 8;
5
+ constructor();
6
+ digest(): Promise<Uint8Array>;
7
+ private digestSmall;
8
+ private digestMedium;
9
+ private digestLarge;
10
+ }
@@ -0,0 +1,17 @@
1
+ import { Checksum } from "@smithy/types";
2
+ export declare class Xxh64 implements Checksum {
3
+ readonly digestLength = 8;
4
+ private byteCount;
5
+ private mem;
6
+ private stripeBuffer;
7
+ private bufferIndex;
8
+ constructor();
9
+ update(chunk: Uint8Array): void;
10
+ private _update;
11
+ digest(): Promise<Uint8Array>;
12
+ reset(): void;
13
+ private processStripe;
14
+ private mergeAcc;
15
+ private roundAt;
16
+ private avalanche;
17
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/checksums",
3
- "version": "3.1001.4",
3
+ "version": "3.1002.1",
4
4
  "description": "Checksum algorithms and flexible checksums middleware for the AWS SDK",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/checksums",
6
6
  "license": "Apache-2.0",
@@ -22,6 +22,8 @@
22
22
  "./md5.js",
23
23
  "./sha.d.ts",
24
24
  "./sha.js",
25
+ "./xxh.d.ts",
26
+ "./xxh.js",
25
27
  "dist-*/**"
26
28
  ],
27
29
  "sideEffects": false,
@@ -91,6 +93,13 @@
91
93
  "node": "./dist-cjs/submodules/md5/index.js",
92
94
  "import": "./dist-es/submodules/md5/index.js",
93
95
  "require": "./dist-cjs/submodules/md5/index.js"
96
+ },
97
+ "./xxh": {
98
+ "types": "./dist-types/submodules/xxh/index.d.ts",
99
+ "module": "./dist-es/submodules/xxh/index.js",
100
+ "node": "./dist-cjs/submodules/xxh/index.js",
101
+ "import": "./dist-es/submodules/xxh/index.js",
102
+ "require": "./dist-cjs/submodules/xxh/index.js"
94
103
  }
95
104
  },
96
105
  "scripts": {
@@ -113,9 +122,9 @@
113
122
  "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts"
114
123
  },
115
124
  "dependencies": {
116
- "@aws-sdk/core": "^3.978.4",
117
- "@aws-sdk/types": "^3.974.6",
118
- "@smithy/core": "^3.36.0",
125
+ "@aws-sdk/core": "^3.979.1",
126
+ "@aws-sdk/types": "^3.975.0",
127
+ "@smithy/core": "^3.38.0",
119
128
  "@smithy/types": "^4.19.0",
120
129
  "tslib": "^2.6.2"
121
130
  },
@@ -124,7 +133,8 @@
124
133
  "concurrently": "7.0.0",
125
134
  "downlevel-dts": "0.10.1",
126
135
  "premove": "4.0.0",
127
- "typescript": "~7.0.2"
136
+ "typescript": "~7.0.2",
137
+ "xxhashjs": "0.2.2"
128
138
  },
129
139
  "engines": {
130
140
  "node": ">=20.0.0"
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Do not edit:
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
+ */
5
+ export * from "./dist-types/submodules/xxh/index";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Do not edit:
3
+ * This is a compatibility redirect for contexts that do not understand package.json exports field.
4
+ */
5
+ module.exports = require("./dist-cjs/submodules/xxh/index.js");
@@ -91,8 +91,9 @@ function resolveHostHeaderConfig(input) {
91
91
  return input;
92
92
  }
93
93
  const hostHeaderMiddleware = (options) => (next) => async (args) => {
94
- if (!HttpRequest.isInstance(args.request))
94
+ if (!HttpRequest.isInstance(args.request)) {
95
95
  return next(args);
96
+ }
96
97
  const { request } = args;
97
98
  const { handlerProtocol = "" } = options.requestHandler.metadata || {};
98
99
  if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
@@ -101,8 +102,9 @@ const hostHeaderMiddleware = (options) => (next) => async (args) => {
101
102
  }
102
103
  else if (!request.headers["host"]) {
103
104
  let host = request.hostname;
104
- if (request.port != null)
105
+ if (request.port != null) {
105
106
  host += `:${request.port}`;
107
+ }
106
108
  request.headers["host"] = host;
107
109
  }
108
110
  return next(args);
@@ -813,27 +815,36 @@ const createUserAgentStringParsingProvider = ({ serviceId, clientVersion }) => a
813
815
 
814
816
  const fallback = {
815
817
  os(ua) {
816
- if (/iPhone|iPad|iPod/.test(ua))
818
+ if (/iPhone|iPad|iPod/.test(ua)) {
817
819
  return "iOS";
818
- if (/Macintosh|Mac OS X/.test(ua))
820
+ }
821
+ if (/Macintosh|Mac OS X/.test(ua)) {
819
822
  return "macOS";
820
- if (/Windows NT/.test(ua))
823
+ }
824
+ if (/Windows NT/.test(ua)) {
821
825
  return "Windows";
822
- if (/Android/.test(ua))
826
+ }
827
+ if (/Android/.test(ua)) {
823
828
  return "Android";
824
- if (/Linux/.test(ua))
829
+ }
830
+ if (/Linux/.test(ua)) {
825
831
  return "Linux";
832
+ }
826
833
  return undefined;
827
834
  },
828
835
  browser(ua) {
829
- if (/EdgiOS|EdgA|Edg\//.test(ua))
836
+ if (/EdgiOS|EdgA|Edg\//.test(ua)) {
830
837
  return "Microsoft Edge";
831
- if (/Firefox\//.test(ua))
838
+ }
839
+ if (/Firefox\//.test(ua)) {
832
840
  return "Firefox";
833
- if (/Chrome\//.test(ua))
841
+ }
842
+ if (/Chrome\//.test(ua)) {
834
843
  return "Chrome";
835
- if (/Safari\//.test(ua))
844
+ }
845
+ if (/Safari\//.test(ua)) {
836
846
  return "Safari";
847
+ }
837
848
  return undefined;
838
849
  },
839
850
  };
@@ -866,11 +877,13 @@ const ARN_DELIMITER = ":";
866
877
  const RESOURCE_DELIMITER = "/";
867
878
  const parseArn = (value) => {
868
879
  const segments = value.split(ARN_DELIMITER);
869
- if (segments.length < 6)
880
+ if (segments.length < 6) {
870
881
  return null;
882
+ }
871
883
  const [arn, partition, service, region, accountId, ...resourcePath] = segments;
872
- if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
884
+ if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") {
873
885
  return null;
886
+ }
874
887
  const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
875
888
  return {
876
889
  partition,
@@ -19,10 +19,7 @@ const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset, timeRe
19
19
  if (timeRequestSent !== undefined && timeResponseReceived - timeRequestSent > 900_000) {
20
20
  return currentSystemClockOffset;
21
21
  }
22
- const candidateSkew = timeRequestSent !== undefined
23
- ? serverTime - (timeRequestSent + timeResponseReceived) / 2
24
- : serverTime - timeResponseReceived;
25
- return candidateSkew;
22
+ return serverTime - timeResponseReceived;
26
23
  };
27
24
 
28
25
  const throwSigningPropertyError = (name, property) => {
@@ -157,16 +154,19 @@ const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
157
154
  environmentVariableSelector: (env, options) => {
158
155
  if (options?.signingName) {
159
156
  const bearerTokenKey = getBearerTokenEnvKey(options.signingName);
160
- if (bearerTokenKey in env)
157
+ if (bearerTokenKey in env) {
161
158
  return ["httpBearerAuth"];
159
+ }
162
160
  }
163
- if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env))
161
+ if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env)) {
164
162
  return undefined;
163
+ }
165
164
  return getArrayForCommaSeparatedString(env[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);
166
165
  },
167
166
  configFileSelector: (profile) => {
168
- if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile))
167
+ if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile)) {
169
168
  return undefined;
169
+ }
170
170
  return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]);
171
171
  },
172
172
  default: [],
@@ -1,7 +1,7 @@
1
1
  const { SmithyRpcV2CborProtocol, loadSmithyRpcV2CborErrorCode } = require("@smithy/core/cbor");
2
2
  const { TypeRegistry, NormalizedSchema, deref } = require("@smithy/core/schema");
3
3
  const { decorateServiceException, getValueFromTextNode } = require("@smithy/core/client");
4
- const { RpcProtocol, JsonCodec2, loadJsonRpcErrorCode, HttpBindingProtocol, HttpInterceptingShapeSerializer, HttpInterceptingShapeDeserializer, loadRestJsonErrorCode, FromStringShapeDeserializer, determineTimestampFormat, extendedEncodeURIComponent, collectBody } = require("@smithy/core/protocols");
4
+ const { RpcProtocol, JsonCodec2, loadJsonRpcErrorCode, HttpBindingProtocol, HttpInterceptingShapeSerializer, HttpInterceptingShapeDeserializer, loadRestJsonErrorCode, SmithyRpcV2JsonProtocol, loadSmithyRpcV2JsonErrorCode, FromStringShapeDeserializer, determineTimestampFormat, extendedEncodeURIComponent, collectBody } = require("@smithy/core/protocols");
5
5
  const { JsonCodec, JsonShapeDeserializer, JsonShapeDeserializer2, JsonShapeSerializer, JsonShapeSerializer2, parseJsonBody, parseJsonErrorBody } = require("@smithy/core/protocols");
6
6
  exports.JsonCodec = JsonCodec;
7
7
  exports.JsonCodec2 = JsonCodec2;
@@ -401,6 +401,55 @@ class AwsRestJsonProtocol extends HttpBindingProtocol {
401
401
  }
402
402
  }
403
403
 
404
+ class AwsSmithyRpcV2JsonProtocol extends SmithyRpcV2JsonProtocol {
405
+ awsQueryCompatible;
406
+ mixin;
407
+ constructor({ defaultNamespace, errorTypeRegistries, awsQueryCompatible, }) {
408
+ super({ defaultNamespace, errorTypeRegistries });
409
+ this.awsQueryCompatible = !!awsQueryCompatible;
410
+ this.mixin = new ProtocolLib(this.awsQueryCompatible);
411
+ }
412
+ async serializeRequest(operationSchema, input, context) {
413
+ const request = await super.serializeRequest(operationSchema, input, context);
414
+ if (this.awsQueryCompatible) {
415
+ request.headers["x-amzn-query-mode"] = "true";
416
+ }
417
+ return request;
418
+ }
419
+ async handleError(operationSchema, context, response, dataObject, metadata) {
420
+ if (this.awsQueryCompatible) {
421
+ this.mixin.setQueryCompatError(dataObject, response);
422
+ }
423
+ const errorName = (() => {
424
+ const compatHeader = response.headers["x-amzn-query-error"];
425
+ if (compatHeader && this.awsQueryCompatible) {
426
+ return compatHeader.split(";")[0];
427
+ }
428
+ return loadSmithyRpcV2JsonErrorCode(response, dataObject) ?? "Unknown";
429
+ })();
430
+ this.mixin.compose(this.compositeErrorRegistry, errorName, this.options.defaultNamespace);
431
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
432
+ const ns = NormalizedSchema.of(errorSchema);
433
+ const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
434
+ const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
435
+ const exception = new ErrorCtor({});
436
+ const output = {};
437
+ const errorDeserializer = this.getPayloadCodec().createDeserializer();
438
+ for (const [name, member] of ns.structIterator()) {
439
+ if (dataObject[name] != null) {
440
+ output[name] = errorDeserializer.readObject(member, dataObject[name]);
441
+ }
442
+ }
443
+ if (this.awsQueryCompatible) {
444
+ this.mixin.queryCompatOutput(dataObject, output);
445
+ }
446
+ throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
447
+ $fault: ns.getMergedTraits().error,
448
+ message,
449
+ }, output), dataObject);
450
+ }
451
+ }
452
+
404
453
  class SerdeContextConfig {
405
454
  serdeContext;
406
455
  setSerdeContext(serdeContext) {
@@ -1441,6 +1490,7 @@ exports.AwsQueryProtocol = AwsQueryProtocol;
1441
1490
  exports.AwsRestJsonProtocol = AwsRestJsonProtocol;
1442
1491
  exports.AwsRestXmlProtocol = AwsRestXmlProtocol;
1443
1492
  exports.AwsSmithyRpcV2CborProtocol = AwsSmithyRpcV2CborProtocol;
1493
+ exports.AwsSmithyRpcV2JsonProtocol = AwsSmithyRpcV2JsonProtocol;
1444
1494
  exports.QueryShapeSerializer = QueryShapeSerializer;
1445
1495
  exports.XmlCodec = XmlCodec;
1446
1496
  exports.XmlShapeDeserializer = XmlShapeDeserializer;
@@ -3,8 +3,9 @@ const { buildQueryString } = require("@smithy/core/protocols");
3
3
  const validate = (str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6;
4
4
  const parse = (arn) => {
5
5
  const segments = arn.split(":");
6
- if (segments.length < 6 || segments[0] !== "arn")
6
+ if (segments.length < 6 || segments[0] !== "arn") {
7
7
  throw new Error("Malformed ARN");
8
+ }
8
9
  const [, partition, service, region, accountId, ...resource] = segments;
9
10
  return {
10
11
  partition,
@@ -3,8 +3,9 @@ export function resolveHostHeaderConfig(input) {
3
3
  return input;
4
4
  }
5
5
  export const hostHeaderMiddleware = (options) => (next) => async (args) => {
6
- if (!HttpRequest.isInstance(args.request))
6
+ if (!HttpRequest.isInstance(args.request)) {
7
7
  return next(args);
8
+ }
8
9
  const { request } = args;
9
10
  const { handlerProtocol = "" } = options.requestHandler.metadata || {};
10
11
  if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
@@ -13,8 +14,9 @@ export const hostHeaderMiddleware = (options) => (next) => async (args) => {
13
14
  }
14
15
  else if (!request.headers["host"]) {
15
16
  let host = request.hostname;
16
- if (request.port != null)
17
+ if (request.port != null) {
17
18
  host += `:${request.port}`;
19
+ }
18
20
  request.headers["host"] = host;
19
21
  }
20
22
  return next(args);
@@ -2,11 +2,13 @@ const ARN_DELIMITER = ":";
2
2
  const RESOURCE_DELIMITER = "/";
3
3
  export const parseArn = (value) => {
4
4
  const segments = value.split(ARN_DELIMITER);
5
- if (segments.length < 6)
5
+ if (segments.length < 6) {
6
6
  return null;
7
+ }
7
8
  const [arn, partition, service, region, accountId, ...resourcePath] = segments;
8
- if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
9
+ if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") {
9
10
  return null;
11
+ }
10
12
  const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
11
13
  return {
12
14
  partition,
@@ -26,27 +26,36 @@ export const createDefaultUserAgentProvider = ({ serviceId, clientVersion }) =>
26
26
  };
27
27
  export const fallback = {
28
28
  os(ua) {
29
- if (/iPhone|iPad|iPod/.test(ua))
29
+ if (/iPhone|iPad|iPod/.test(ua)) {
30
30
  return "iOS";
31
- if (/Macintosh|Mac OS X/.test(ua))
31
+ }
32
+ if (/Macintosh|Mac OS X/.test(ua)) {
32
33
  return "macOS";
33
- if (/Windows NT/.test(ua))
34
+ }
35
+ if (/Windows NT/.test(ua)) {
34
36
  return "Windows";
35
- if (/Android/.test(ua))
37
+ }
38
+ if (/Android/.test(ua)) {
36
39
  return "Android";
37
- if (/Linux/.test(ua))
40
+ }
41
+ if (/Linux/.test(ua)) {
38
42
  return "Linux";
43
+ }
39
44
  return undefined;
40
45
  },
41
46
  browser(ua) {
42
- if (/EdgiOS|EdgA|Edg\//.test(ua))
47
+ if (/EdgiOS|EdgA|Edg\//.test(ua)) {
43
48
  return "Microsoft Edge";
44
- if (/Firefox\//.test(ua))
49
+ }
50
+ if (/Firefox\//.test(ua)) {
45
51
  return "Firefox";
46
- if (/Chrome\//.test(ua))
52
+ }
53
+ if (/Chrome\//.test(ua)) {
47
54
  return "Chrome";
48
- if (/Safari\//.test(ua))
55
+ }
56
+ if (/Safari\//.test(ua)) {
49
57
  return "Safari";
58
+ }
50
59
  return undefined;
51
60
  },
52
61
  };
@@ -6,16 +6,19 @@ export const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
6
6
  environmentVariableSelector: (env, options) => {
7
7
  if (options?.signingName) {
8
8
  const bearerTokenKey = getBearerTokenEnvKey(options.signingName);
9
- if (bearerTokenKey in env)
9
+ if (bearerTokenKey in env) {
10
10
  return ["httpBearerAuth"];
11
+ }
11
12
  }
12
- if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env))
13
+ if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env)) {
13
14
  return undefined;
15
+ }
14
16
  return getArrayForCommaSeparatedString(env[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);
15
17
  },
16
18
  configFileSelector: (profile) => {
17
- if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile))
19
+ if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile)) {
18
20
  return undefined;
21
+ }
19
22
  return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]);
20
23
  },
21
24
  default: [],
@@ -7,8 +7,5 @@ export const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset,
7
7
  if (timeRequestSent !== undefined && timeResponseReceived - timeRequestSent > 900_000) {
8
8
  return currentSystemClockOffset;
9
9
  }
10
- const candidateSkew = timeRequestSent !== undefined
11
- ? serverTime - (timeRequestSent + timeResponseReceived) / 2
12
- : serverTime - timeResponseReceived;
13
- return candidateSkew;
10
+ return serverTime - timeResponseReceived;
14
11
  };
@@ -3,6 +3,7 @@ export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol";
3
3
  export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol";
4
4
  export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
5
5
  export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
6
+ export { AwsSmithyRpcV2JsonProtocol } from "./json/AwsSmithyRpcV2JsonProtocol";
6
7
  export { JsonCodec, JsonCodec2, JsonShapeDeserializer, JsonShapeDeserializer2, JsonShapeSerializer, JsonShapeSerializer2, loadJsonRpcErrorCode, loadRestJsonErrorCode, parseJsonBody, parseJsonErrorBody, } from "@smithy/core/protocols";
7
8
  export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
8
9
  export { AwsQueryProtocol } from "./query/AwsQueryProtocol";
@@ -0,0 +1,51 @@
1
+ import { loadSmithyRpcV2JsonErrorCode, SmithyRpcV2JsonProtocol } from "@smithy/core/protocols";
2
+ import { NormalizedSchema } from "@smithy/core/schema";
3
+ import { ProtocolLib } from "../ProtocolLib";
4
+ export class AwsSmithyRpcV2JsonProtocol extends SmithyRpcV2JsonProtocol {
5
+ awsQueryCompatible;
6
+ mixin;
7
+ constructor({ defaultNamespace, errorTypeRegistries, awsQueryCompatible, }) {
8
+ super({ defaultNamespace, errorTypeRegistries });
9
+ this.awsQueryCompatible = !!awsQueryCompatible;
10
+ this.mixin = new ProtocolLib(this.awsQueryCompatible);
11
+ }
12
+ async serializeRequest(operationSchema, input, context) {
13
+ const request = await super.serializeRequest(operationSchema, input, context);
14
+ if (this.awsQueryCompatible) {
15
+ request.headers["x-amzn-query-mode"] = "true";
16
+ }
17
+ return request;
18
+ }
19
+ async handleError(operationSchema, context, response, dataObject, metadata) {
20
+ if (this.awsQueryCompatible) {
21
+ this.mixin.setQueryCompatError(dataObject, response);
22
+ }
23
+ const errorName = (() => {
24
+ const compatHeader = response.headers["x-amzn-query-error"];
25
+ if (compatHeader && this.awsQueryCompatible) {
26
+ return compatHeader.split(";")[0];
27
+ }
28
+ return loadSmithyRpcV2JsonErrorCode(response, dataObject) ?? "Unknown";
29
+ })();
30
+ this.mixin.compose(this.compositeErrorRegistry, errorName, this.options.defaultNamespace);
31
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
32
+ const ns = NormalizedSchema.of(errorSchema);
33
+ const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
34
+ const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
35
+ const exception = new ErrorCtor({});
36
+ const output = {};
37
+ const errorDeserializer = this.getPayloadCodec().createDeserializer();
38
+ for (const [name, member] of ns.structIterator()) {
39
+ if (dataObject[name] != null) {
40
+ output[name] = errorDeserializer.readObject(member, dataObject[name]);
41
+ }
42
+ }
43
+ if (this.awsQueryCompatible) {
44
+ this.mixin.queryCompatOutput(dataObject, output);
45
+ }
46
+ throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
47
+ $fault: ns.getMergedTraits().error,
48
+ message,
49
+ }, output), dataObject);
50
+ }
51
+ }
@@ -1,8 +1,9 @@
1
1
  export const validate = (str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6;
2
2
  export const parse = (arn) => {
3
3
  const segments = arn.split(":");
4
- if (segments.length < 6 || segments[0] !== "arn")
4
+ if (segments.length < 6 || segments[0] !== "arn") {
5
5
  throw new Error("Malformed ARN");
6
+ }
6
7
  const [, partition, service, region, accountId, ...resource] = segments;
7
8
  return {
8
9
  partition,
@@ -1,13 +1,9 @@
1
1
  /**
2
2
  * Computes an updated system clock offset from a server Date header.
3
3
  *
4
- * When `timeRequestSent` is provided, uses the midpoint formula:
5
- * elapsed = timeResponseReceived - timeRequestSent
6
- * midpoint = (timeRequestSent + timeResponseReceived) / 2
7
- * candidateSkew = serverTime - midpoint
8
- *
9
- * When `timeRequestSent` is absent (legacy callers), falls back to:
10
- * candidateSkew = serverTime - timeResponseReceived
4
+ * The candidate skew is the difference between the server time and the client
5
+ * time when the response is received:
6
+ * candidateSkew = serverTime - timeResponseReceived
11
7
  *
12
8
  * The candidate is discarded if:
13
9
  * - An Age header is present
@@ -3,6 +3,7 @@ export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol";
3
3
  export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol";
4
4
  export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
5
5
  export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
6
+ export { AwsSmithyRpcV2JsonProtocol } from "./json/AwsSmithyRpcV2JsonProtocol";
6
7
  export { JsonCodec, JsonCodec2, JsonShapeDeserializer, JsonShapeDeserializer2, JsonShapeSerializer, JsonShapeSerializer2, loadJsonRpcErrorCode, loadRestJsonErrorCode, parseJsonBody, parseJsonErrorBody, } from "@smithy/core/protocols";
7
8
  export type { JsonSettings } from "@smithy/core/protocols";
8
9
  export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";