@openclaw/amazon-bedrock-provider 2026.11.3 → 2026.11.5-beta.2
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/dist/.setup/{config-compat-HlsW2HRS.mjs → config-compat-BF_kN3PT.mjs} +5 -13
- package/dist/.source-module-urls/6e5db7c20955739e41c2b04dc14b54bc2c6482789a7a0025188b18fb09cf83b8.json +1 -0
- package/dist/api.js +1 -2
- package/dist/config-compat.js +1 -2
- package/dist/discovery.js +6 -15
- package/dist/embedding-provider.js +11 -13
- package/dist/register.sync.runtime.js +64 -90
- package/dist/setup-api.js +1 -1
- package/dist/stream.runtime.js +245 -225
- package/dist/thinking-policy.js +1 -4
- package/node_modules/@aws-sdk/client-bedrock/dist-cjs/index.js +12 -1
- package/node_modules/@aws-sdk/client-bedrock/dist-es/models/BedrockServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock/dist-es/models/errors.js +10 -0
- package/node_modules/@aws-sdk/client-bedrock/dist-types/models/BedrockServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock/dist-types/models/errors.d.ts +10 -0
- package/node_modules/@aws-sdk/client-bedrock/dist-types/ts3.4/models/BedrockServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock/dist-types/ts3.4/models/errors.d.ts +10 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +12 -3
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +94 -1589
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +12 -3
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -7
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -3
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -3
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -8
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +10 -10
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +11 -1
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +6 -1
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +6 -1
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +13 -1
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +9 -1
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/errors.js +9 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js +4 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js +4 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js +11 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +7 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/errors.d.ts +9 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/SigninServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/SSOServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +11 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +7 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +9 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +11 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +7 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +37 -19
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +37 -19
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/token-providers/package.json +4 -4
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/CHANGELOG.md +12 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -1
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1695 -3
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js +2 -1
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js +6 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js +26 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-es/submodules/protocols/common.js +3 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +8 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +102 -0
- package/node_modules/@aws-sdk/{client-bedrock-runtime/node_modules/@aws-sdk → client-bedrock/node_modules/@smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +8 -1
- package/node_modules/@aws-sdk/{client-bedrock-runtime/node_modules/@aws-sdk → client-bedrock/node_modules/@smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +8 -1
- package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +13 -2
- package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +11 -1
- package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/parseJsonBody.js +16 -1
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-es/submodules/protocols/writeKey.js +3 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/submodules/protocols/common.d.ts +2 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +9 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +13 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +16 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +9 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +13 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +15 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -4
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +14 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +29 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +38 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -0
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@smithy/core/package.json +2 -1
- package/node_modules/@aws-sdk/client-bedrock/package.json +5 -5
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js +14 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/BedrockRuntimeServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/errors.js +12 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/models/BedrockRuntimeServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/models/errors.d.ts +12 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/models/BedrockRuntimeServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/models/errors.d.ts +12 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +12 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +94 -1589
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +12 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -7
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -8
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +10 -10
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/eventstream-handler-node/package.json +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-eventstream/package.json +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-websocket/package.json +4 -4
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +11 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +6 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +6 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +13 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +9 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/errors.js +9 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js +4 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js +4 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js +11 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +7 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/errors.d.ts +9 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/SigninServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/SSOServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +11 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +7 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +9 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +11 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +7 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +37 -19
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +37 -19
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/token-providers/package.json +4 -4
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/CHANGELOG.md +12 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1695 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js +2 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js +6 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js +26 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-es/submodules/protocols/common.js +3 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +8 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +102 -0
- package/node_modules/@aws-sdk/{client-bedrock/node_modules/@aws-sdk → client-bedrock-runtime/node_modules/@smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +8 -1
- package/node_modules/@aws-sdk/{credential-provider-node/node_modules/@aws-sdk → client-bedrock-runtime/node_modules/@smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +8 -1
- package/node_modules/@aws-sdk/{credential-provider-node/node_modules/@aws-sdk → client-bedrock-runtime/node_modules/@smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +13 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +11 -1
- package/node_modules/@aws-sdk/{credential-provider-node/node_modules/@aws-sdk → client-bedrock-runtime/node_modules/@smithy}/core/dist-es/submodules/protocols/json/parseJsonBody.js +16 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-es/submodules/protocols/writeKey.js +3 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/submodules/protocols/common.d.ts +2 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +9 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +13 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
- package/node_modules/@aws-sdk/{credential-provider-node/node_modules/@aws-sdk → client-bedrock-runtime/node_modules/@smithy}/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +16 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +9 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +13 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
- package/node_modules/@aws-sdk/{client-bedrock/node_modules/@aws-sdk → client-bedrock-runtime/node_modules/@smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +15 -11
- package/node_modules/@aws-sdk/{client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json → client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +7 -4
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +14 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +29 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
- package/node_modules/@aws-sdk/{client-bedrock/node_modules/@aws-sdk → client-bedrock-runtime/node_modules/@smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -9
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +38 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/core/package.json +2 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +12 -3
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +94 -1589
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +12 -3
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -7
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -3
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -3
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -8
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +10 -10
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +11 -1
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +6 -1
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +6 -1
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +13 -1
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +9 -1
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/errors.js +9 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js +4 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js +4 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js +11 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +7 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/errors.d.ts +9 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/SigninServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/SSOServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +11 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +9 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +11 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +37 -19
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +37 -19
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/token-providers/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/CHANGELOG.md +12 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1695 -3
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js +6 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js +26 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-es/submodules/protocols/common.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +8 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +102 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +8 -1
- package/node_modules/@aws-sdk/{client-bedrock/node_modules/@aws-sdk → credential-provider-node/node_modules/@smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +8 -1
- package/node_modules/@aws-sdk/{client-bedrock-runtime/node_modules/@aws-sdk → credential-provider-node/node_modules/@smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +13 -2
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +11 -1
- package/node_modules/@aws-sdk/{client-bedrock-runtime/node_modules/@aws-sdk → credential-provider-node/node_modules/@smithy}/core/dist-es/submodules/protocols/json/parseJsonBody.js +16 -1
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-es/submodules/protocols/writeKey.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/submodules/protocols/common.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +9 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +13 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
- package/node_modules/@aws-sdk/{client-bedrock-runtime/node_modules/@aws-sdk → credential-provider-node/node_modules/@smithy}/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +16 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +9 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +13 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +15 -0
- package/node_modules/@aws-sdk/{client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json → credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +7 -4
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +14 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +29 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +38 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/core/package.json +2 -1
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/CHANGELOG.md +12 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -1
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1695 -3
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js +2 -1
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js +6 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js +26 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/common.js +3 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +8 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/JsonSettings.js +1 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +102 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +20 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +1 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +167 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +200 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +103 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +20 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +211 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +529 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/detectBufferParsing.js +18 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/jsonReplacer.js +46 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/jsonReviver.js +121 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/needsReviver.js +41 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/json/parseJsonBody.js +104 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/protocols/writeKey.js +3 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/common.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +9 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +13 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +15 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +14 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +29 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +21 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +15 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/json/needsReviver.d.ts +11 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +38 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +9 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +13 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +15 -0
- package/node_modules/{@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -4
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +14 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +29 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +38 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/package.json +2 -1
- package/package.json +7 -7
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +0 -7
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +0 -7
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +0 -2
- package/node_modules/@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -11
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -9
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +0 -7
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +0 -7
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +0 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -14
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +0 -7
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -7
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +0 -1
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +0 -4
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -11
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -4
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -9
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +0 -1
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +0 -7
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +0 -7
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +0 -2
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -14
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/detectBufferParsing.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReplacer.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReviver.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/needsReviver.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-bedrock-runtime/node_modules/@aws-sdk → client-bedrock/node_modules/@smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-bedrock-runtime/node_modules/@aws-sdk/core/dist-types/ts3.4 → client-bedrock/node_modules/@smithy/core/dist-types}/submodules/protocols/json/detectBufferParsing.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/needsReviver.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/detectBufferParsing.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReplacer.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReviver.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/needsReviver.js +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk/core/dist-types/submodules/protocols/json → @smithy/core/dist-types/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +0 -0
- /package/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/needsReviver.d.ts +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/detectBufferParsing.js +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReplacer.js +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReviver.js +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/needsReviver.js +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-bedrock/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json → credential-provider-node/node_modules/@smithy/core/dist-types/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-bedrock/node_modules/@aws-sdk → credential-provider-node/node_modules/@smithy}/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +0 -0
- /package/node_modules/@aws-sdk/credential-provider-node/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/needsReviver.d.ts +0 -0
- /package/node_modules/{@aws-sdk/client-bedrock/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -0
- /package/node_modules/{@aws-sdk/client-bedrock/node_modules/@aws-sdk/core/dist-types/ts3.4 → @smithy/node-http-handler/node_modules/@smithy/core/dist-types}/submodules/protocols/json/detectBufferParsing.d.ts +0 -0
|
@@ -39,7 +39,8 @@ export class EndpointCache {
|
|
|
39
39
|
return false;
|
|
40
40
|
}
|
|
41
41
|
for (const param of parameters) {
|
|
42
|
-
const
|
|
42
|
+
const raw = endpointParams[param];
|
|
43
|
+
const val = raw == null ? "\0" : String(raw);
|
|
43
44
|
if (val.includes("|;")) {
|
|
44
45
|
return false;
|
|
45
46
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export class UnionSerde {
|
|
2
|
+
from;
|
|
3
|
+
to;
|
|
4
|
+
keys;
|
|
5
|
+
constructor(from, to) {
|
|
6
|
+
this.from = from;
|
|
7
|
+
this.to = to;
|
|
8
|
+
const keys = Object.keys(this.from);
|
|
9
|
+
const set = new Set(keys);
|
|
10
|
+
set.delete("__type");
|
|
11
|
+
this.keys = set;
|
|
12
|
+
}
|
|
13
|
+
mark(key) {
|
|
14
|
+
this.keys.delete(key);
|
|
15
|
+
}
|
|
16
|
+
hasUnknown() {
|
|
17
|
+
return this.keys.size === 1 && Object.keys(this.to).length === 0;
|
|
18
|
+
}
|
|
19
|
+
writeUnknown() {
|
|
20
|
+
if (this.hasUnknown()) {
|
|
21
|
+
const k = this.keys.values().next().value;
|
|
22
|
+
const v = this.from[k];
|
|
23
|
+
this.to.$unknown = [k, v];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -23,3 +23,11 @@ export { escapeUriPath } from "./util-uri-escape/escape-uri-path";
|
|
|
23
23
|
export { buildQueryString } from "./querystring-builder/buildQueryString";
|
|
24
24
|
export { parseQueryString } from "@smithy/core/transport";
|
|
25
25
|
export { parseUrl } from "@smithy/core/transport";
|
|
26
|
+
export { SmithyRpcV2JsonProtocol } from "./json/SmithyRpcV2JsonProtocol";
|
|
27
|
+
export { parseJsonBody, parseJsonErrorBody, loadJsonRpcErrorCode, loadRestJsonErrorCode, loadSmithyRpcV2JsonErrorCode, } from "./json/parseJsonBody";
|
|
28
|
+
export { JsonCodec } from "./json/codec-v1/JsonCodec";
|
|
29
|
+
export { JsonShapeSerializer } from "./json/codec-v1/JsonShapeSerializer";
|
|
30
|
+
export { JsonShapeDeserializer } from "./json/codec-v1/JsonShapeDeserializer";
|
|
31
|
+
export { JsonCodec2 } from "./json/codec-v2/JsonCodec2";
|
|
32
|
+
export { JsonShapeSerializer2 } from "./json/codec-v2/JsonShapeSerializer2";
|
|
33
|
+
export { JsonShapeDeserializer2 } from "./json/codec-v2/JsonShapeDeserializer2";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { RpcProtocol } from "../RpcProtocol";
|
|
2
|
+
import { NormalizedSchema, TypeRegistry, deref } from "@smithy/core/schema";
|
|
3
|
+
import { getSmithyContext } from "@smithy/core/transport";
|
|
4
|
+
import { JsonCodec2 } from "./codec-v2/JsonCodec2";
|
|
5
|
+
import { loadSmithyRpcV2JsonErrorCode } from "./parseJsonBody";
|
|
6
|
+
export class SmithyRpcV2JsonProtocol extends RpcProtocol {
|
|
7
|
+
codec = new JsonCodec2({
|
|
8
|
+
timestampFormat: {
|
|
9
|
+
useTrait: false,
|
|
10
|
+
default: 7,
|
|
11
|
+
},
|
|
12
|
+
jsonName: false,
|
|
13
|
+
bigNumberAsString: true,
|
|
14
|
+
});
|
|
15
|
+
serializer = this.codec.createSerializer();
|
|
16
|
+
deserializer = this.codec.createDeserializer();
|
|
17
|
+
constructor({ defaultNamespace, errorTypeRegistries, }) {
|
|
18
|
+
super({ defaultNamespace, errorTypeRegistries });
|
|
19
|
+
}
|
|
20
|
+
getShapeId() {
|
|
21
|
+
return "smithy.protocols#rpcv2Json";
|
|
22
|
+
}
|
|
23
|
+
getPayloadCodec() {
|
|
24
|
+
return this.codec;
|
|
25
|
+
}
|
|
26
|
+
async serializeRequest(operationSchema, input, context) {
|
|
27
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
28
|
+
Object.assign(request.headers, {
|
|
29
|
+
"content-type": this.getDefaultContentType(),
|
|
30
|
+
"smithy-protocol": "rpc-v2-json",
|
|
31
|
+
accept: this.getDefaultContentType(),
|
|
32
|
+
});
|
|
33
|
+
if (deref(operationSchema.input) === "unit") {
|
|
34
|
+
delete request.body;
|
|
35
|
+
delete request.headers["content-type"];
|
|
36
|
+
}
|
|
37
|
+
else if (!request.body) {
|
|
38
|
+
request.body = "{}";
|
|
39
|
+
}
|
|
40
|
+
const { service, operation } = getSmithyContext(context);
|
|
41
|
+
const path = `/service/${service}/operation/${operation}`;
|
|
42
|
+
if (request.path.endsWith("/")) {
|
|
43
|
+
request.path += path.slice(1);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
request.path += path;
|
|
47
|
+
}
|
|
48
|
+
return request;
|
|
49
|
+
}
|
|
50
|
+
async deserializeResponse(operationSchema, context, response) {
|
|
51
|
+
return super.deserializeResponse(operationSchema, context, response);
|
|
52
|
+
}
|
|
53
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
54
|
+
const errorName = loadSmithyRpcV2JsonErrorCode(response, dataObject) ?? "Unknown";
|
|
55
|
+
const errorMetadata = {
|
|
56
|
+
$metadata: metadata,
|
|
57
|
+
$fault: response.statusCode <= 500 ? "client" : "server",
|
|
58
|
+
};
|
|
59
|
+
let namespace = this.options.defaultNamespace;
|
|
60
|
+
if (errorName.includes("#")) {
|
|
61
|
+
[namespace] = errorName.split("#");
|
|
62
|
+
}
|
|
63
|
+
const registry = this.compositeErrorRegistry;
|
|
64
|
+
const nsRegistry = TypeRegistry.for(namespace);
|
|
65
|
+
registry.copyFrom(nsRegistry);
|
|
66
|
+
let errorSchema;
|
|
67
|
+
try {
|
|
68
|
+
errorSchema = registry.getSchema(errorName);
|
|
69
|
+
}
|
|
70
|
+
catch (ignored) {
|
|
71
|
+
if (dataObject.Message) {
|
|
72
|
+
dataObject.message = dataObject.Message;
|
|
73
|
+
}
|
|
74
|
+
const syntheticRegistry = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace);
|
|
75
|
+
registry.copyFrom(syntheticRegistry);
|
|
76
|
+
const baseExceptionSchema = registry.getBaseException();
|
|
77
|
+
if (baseExceptionSchema) {
|
|
78
|
+
const ErrorCtor = registry.getErrorCtor(baseExceptionSchema);
|
|
79
|
+
throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject);
|
|
80
|
+
}
|
|
81
|
+
throw Object.assign(new Error(errorName), errorMetadata, dataObject);
|
|
82
|
+
}
|
|
83
|
+
const ns = NormalizedSchema.of(errorSchema);
|
|
84
|
+
const ErrorCtor = registry.getErrorCtor(errorSchema);
|
|
85
|
+
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
86
|
+
const exception = new ErrorCtor({});
|
|
87
|
+
const output = {};
|
|
88
|
+
const errorDeserializer = this.codec.createDeserializer();
|
|
89
|
+
for (const [name, member] of ns.structIterator()) {
|
|
90
|
+
if (dataObject[name] != null) {
|
|
91
|
+
output[name] = errorDeserializer.readObject(member, dataObject[name]);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
throw Object.assign(exception, errorMetadata, {
|
|
95
|
+
$fault: ns.getMergedTraits().error,
|
|
96
|
+
message,
|
|
97
|
+
}, output);
|
|
98
|
+
}
|
|
99
|
+
getDefaultContentType() {
|
|
100
|
+
return "application/json";
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
2
|
+
import { JsonShapeDeserializer } from "./JsonShapeDeserializer";
|
|
3
|
+
import { JsonShapeSerializer } from "./JsonShapeSerializer";
|
|
4
|
+
export class JsonCodec extends SerdeContextConfig {
|
|
5
|
+
settings;
|
|
6
|
+
constructor(settings) {
|
|
7
|
+
super();
|
|
8
|
+
this.settings = settings;
|
|
9
|
+
}
|
|
10
|
+
createSerializer() {
|
|
11
|
+
const serializer = new JsonShapeSerializer(this.settings);
|
|
12
|
+
serializer.setSerdeContext(this.serdeContext);
|
|
13
|
+
return serializer;
|
|
14
|
+
}
|
|
15
|
+
createDeserializer() {
|
|
16
|
+
const deserializer = new JsonShapeDeserializer(this.settings);
|
|
17
|
+
deserializer.setSerdeContext(this.serdeContext);
|
|
18
|
+
return deserializer;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { determineTimestampFormat } from "../../serde/determineTimestampFormat";
|
|
2
|
+
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
|
+
import { LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, } from "@smithy/core/serde";
|
|
4
|
+
import { fromBase64 } from "@smithy/core/serde";
|
|
5
|
+
import { hasOwn } from "@smithy/core/transport";
|
|
6
|
+
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
7
|
+
import { UnionSerde } from "../../UnionSerde";
|
|
8
|
+
import { jsonReviver } from "../jsonReviver";
|
|
9
|
+
import { needsReviver } from "../needsReviver";
|
|
10
|
+
import { parseJsonBody } from "../parseJsonBody";
|
|
11
|
+
import { writeKey } from "../../writeKey";
|
|
12
|
+
export class JsonShapeDeserializer extends SerdeContextConfig {
|
|
13
|
+
settings;
|
|
14
|
+
constructor(settings) {
|
|
15
|
+
super();
|
|
16
|
+
this.settings = settings;
|
|
17
|
+
}
|
|
18
|
+
async read(schema, data) {
|
|
19
|
+
const reviver = needsReviver(schema) ? jsonReviver : undefined;
|
|
20
|
+
return this._read(schema, typeof data === "string" ? JSON.parse(data, reviver) : await parseJsonBody(data, this.serdeContext, schema));
|
|
21
|
+
}
|
|
22
|
+
readObject(schema, data) {
|
|
23
|
+
return this._read(schema, data);
|
|
24
|
+
}
|
|
25
|
+
_read(schema, value) {
|
|
26
|
+
const isObject = value !== null && typeof value === "object";
|
|
27
|
+
const ns = NormalizedSchema.of(schema);
|
|
28
|
+
if (isObject) {
|
|
29
|
+
if (ns.isStructSchema()) {
|
|
30
|
+
const record = value;
|
|
31
|
+
const union = ns.isUnionSchema();
|
|
32
|
+
const out = {};
|
|
33
|
+
let nameMap = void 0;
|
|
34
|
+
const { jsonName } = this.settings;
|
|
35
|
+
if (jsonName) {
|
|
36
|
+
nameMap = {};
|
|
37
|
+
}
|
|
38
|
+
let unionSerde;
|
|
39
|
+
if (union) {
|
|
40
|
+
unionSerde = new UnionSerde(record, out);
|
|
41
|
+
}
|
|
42
|
+
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
43
|
+
let fromKey = memberName;
|
|
44
|
+
if (jsonName) {
|
|
45
|
+
fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
|
|
46
|
+
nameMap[fromKey] = memberName;
|
|
47
|
+
}
|
|
48
|
+
if (union) {
|
|
49
|
+
unionSerde.mark(fromKey);
|
|
50
|
+
}
|
|
51
|
+
if (record[fromKey] != null) {
|
|
52
|
+
out[memberName] = this._read(memberSchema, record[fromKey]);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (union) {
|
|
56
|
+
unionSerde.writeUnknown();
|
|
57
|
+
}
|
|
58
|
+
else if (typeof record.__type === "string") {
|
|
59
|
+
for (const k in record) {
|
|
60
|
+
if (!hasOwn(record, k))
|
|
61
|
+
continue;
|
|
62
|
+
const v = record[k];
|
|
63
|
+
const t = jsonName ? (nameMap[k] ?? k) : k;
|
|
64
|
+
if (!(t in out)) {
|
|
65
|
+
out[t] = v;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return out;
|
|
70
|
+
}
|
|
71
|
+
if (Array.isArray(value) && ns.isListSchema()) {
|
|
72
|
+
const listMember = ns.getValueSchema();
|
|
73
|
+
const out = [];
|
|
74
|
+
for (const item of value) {
|
|
75
|
+
out.push(this._read(listMember, item));
|
|
76
|
+
}
|
|
77
|
+
return out;
|
|
78
|
+
}
|
|
79
|
+
if (ns.isMapSchema()) {
|
|
80
|
+
const mapMember = ns.getValueSchema();
|
|
81
|
+
const out = {};
|
|
82
|
+
for (const _k in value) {
|
|
83
|
+
if (!hasOwn(value, _k))
|
|
84
|
+
continue;
|
|
85
|
+
if (_k === "__proto__") {
|
|
86
|
+
writeKey(out);
|
|
87
|
+
}
|
|
88
|
+
out[_k] = this._read(mapMember, value[_k]);
|
|
89
|
+
}
|
|
90
|
+
return out;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (ns.isBlobSchema() && typeof value === "string") {
|
|
94
|
+
return fromBase64(value);
|
|
95
|
+
}
|
|
96
|
+
const mediaType = ns.getMergedTraits().mediaType;
|
|
97
|
+
if (ns.isStringSchema() && typeof value === "string" && mediaType) {
|
|
98
|
+
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
99
|
+
if (isJson) {
|
|
100
|
+
return LazyJsonString.from(value);
|
|
101
|
+
}
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
if (ns.isTimestampSchema() && value != null) {
|
|
105
|
+
const format = determineTimestampFormat(ns, this.settings);
|
|
106
|
+
switch (format) {
|
|
107
|
+
case 5:
|
|
108
|
+
return parseRfc3339DateTimeWithOffset(value);
|
|
109
|
+
case 6:
|
|
110
|
+
return parseRfc7231DateTime(value);
|
|
111
|
+
case 7:
|
|
112
|
+
return parseEpochTimestamp(value);
|
|
113
|
+
default:
|
|
114
|
+
console.warn("Missing timestamp format, parsing value with Date constructor:", value);
|
|
115
|
+
return new Date(value);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
|
|
119
|
+
return BigInt(value);
|
|
120
|
+
}
|
|
121
|
+
if (ns.isBigDecimalSchema() && value != undefined) {
|
|
122
|
+
if (value instanceof NumericValue) {
|
|
123
|
+
return value;
|
|
124
|
+
}
|
|
125
|
+
const untyped = value;
|
|
126
|
+
if (untyped.type === "bigDecimal" && "string" in untyped) {
|
|
127
|
+
return new NumericValue(untyped.string, untyped.type);
|
|
128
|
+
}
|
|
129
|
+
return new NumericValue(String(value), "bigDecimal");
|
|
130
|
+
}
|
|
131
|
+
if (ns.isNumericSchema() && typeof value === "string") {
|
|
132
|
+
switch (value) {
|
|
133
|
+
case "Infinity":
|
|
134
|
+
return Infinity;
|
|
135
|
+
case "-Infinity":
|
|
136
|
+
return -Infinity;
|
|
137
|
+
case "NaN":
|
|
138
|
+
return NaN;
|
|
139
|
+
}
|
|
140
|
+
return value;
|
|
141
|
+
}
|
|
142
|
+
if (ns.isDocumentSchema()) {
|
|
143
|
+
if (isObject) {
|
|
144
|
+
const out = Array.isArray(value) ? [] : {};
|
|
145
|
+
for (const k in value) {
|
|
146
|
+
if (!hasOwn(value, k))
|
|
147
|
+
continue;
|
|
148
|
+
if (k === "__proto__") {
|
|
149
|
+
writeKey(out);
|
|
150
|
+
}
|
|
151
|
+
const v = value[k];
|
|
152
|
+
if (v instanceof NumericValue) {
|
|
153
|
+
out[k] = v;
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
out[k] = this._read(ns, v);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return out;
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
return structuredClone(value);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return value;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { determineTimestampFormat } from "../../serde/determineTimestampFormat";
|
|
2
|
+
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
|
+
import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue, toBase64 } from "@smithy/core/serde";
|
|
4
|
+
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
5
|
+
import { JsonReplacer } from "../jsonReplacer";
|
|
6
|
+
import { writeKey } from "../../writeKey";
|
|
7
|
+
import { hasOwn } from "@smithy/core/transport";
|
|
8
|
+
export class JsonShapeSerializer extends SerdeContextConfig {
|
|
9
|
+
settings;
|
|
10
|
+
buffer;
|
|
11
|
+
useReplacer = false;
|
|
12
|
+
rootSchema;
|
|
13
|
+
constructor(settings) {
|
|
14
|
+
super();
|
|
15
|
+
this.settings = settings;
|
|
16
|
+
}
|
|
17
|
+
write(schema, value) {
|
|
18
|
+
this.rootSchema = NormalizedSchema.of(schema);
|
|
19
|
+
this.buffer = this._write(this.rootSchema, value);
|
|
20
|
+
}
|
|
21
|
+
flush() {
|
|
22
|
+
const { rootSchema, useReplacer } = this;
|
|
23
|
+
this.rootSchema = undefined;
|
|
24
|
+
this.useReplacer = false;
|
|
25
|
+
if (rootSchema?.isStructSchema() || rootSchema?.isDocumentSchema()) {
|
|
26
|
+
if (!useReplacer) {
|
|
27
|
+
return JSON.stringify(this.buffer);
|
|
28
|
+
}
|
|
29
|
+
const replacer = new JsonReplacer();
|
|
30
|
+
return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0));
|
|
31
|
+
}
|
|
32
|
+
return this.buffer;
|
|
33
|
+
}
|
|
34
|
+
writeDiscriminatedDocument(schema, value) {
|
|
35
|
+
this.write(schema, value);
|
|
36
|
+
if (typeof this.buffer === "object") {
|
|
37
|
+
this.buffer.__type = NormalizedSchema.of(schema).getName(true);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
_write(schema, value, container) {
|
|
41
|
+
const isObject = value !== null && typeof value === "object";
|
|
42
|
+
const ns = NormalizedSchema.of(schema);
|
|
43
|
+
if (isObject) {
|
|
44
|
+
if (ns.isStructSchema()) {
|
|
45
|
+
const record = value;
|
|
46
|
+
const out = {};
|
|
47
|
+
const { jsonName } = this.settings;
|
|
48
|
+
let nameMap = void 0;
|
|
49
|
+
if (jsonName) {
|
|
50
|
+
nameMap = {};
|
|
51
|
+
}
|
|
52
|
+
let outCount = 0;
|
|
53
|
+
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
54
|
+
const serializableValue = this._write(memberSchema, record[memberName], ns);
|
|
55
|
+
if (serializableValue !== undefined) {
|
|
56
|
+
let targetKey = memberName;
|
|
57
|
+
if (jsonName) {
|
|
58
|
+
targetKey = memberSchema.getMergedTraits().jsonName ?? memberName;
|
|
59
|
+
nameMap[memberName] = targetKey;
|
|
60
|
+
}
|
|
61
|
+
out[targetKey] = serializableValue;
|
|
62
|
+
outCount++;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (ns.isUnionSchema() && outCount === 0) {
|
|
66
|
+
const { $unknown } = record;
|
|
67
|
+
if (Array.isArray($unknown)) {
|
|
68
|
+
const [k, v] = $unknown;
|
|
69
|
+
if (k === "__proto__") {
|
|
70
|
+
writeKey(out);
|
|
71
|
+
}
|
|
72
|
+
out[k] = this._write(15, v);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
else if (typeof record.__type === "string") {
|
|
76
|
+
for (const k in record) {
|
|
77
|
+
if (!hasOwn(record, k))
|
|
78
|
+
continue;
|
|
79
|
+
const v = record[k];
|
|
80
|
+
const targetKey = jsonName ? (nameMap[k] ?? k) : k;
|
|
81
|
+
if (!(targetKey in out)) {
|
|
82
|
+
out[targetKey] = this._write(15, v);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return out;
|
|
87
|
+
}
|
|
88
|
+
if (Array.isArray(value) && ns.isListSchema()) {
|
|
89
|
+
const listMember = ns.getValueSchema();
|
|
90
|
+
const out = [];
|
|
91
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
92
|
+
for (const item of value) {
|
|
93
|
+
if (sparse || item != null) {
|
|
94
|
+
out.push(this._write(listMember, item));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return out;
|
|
98
|
+
}
|
|
99
|
+
if (ns.isMapSchema()) {
|
|
100
|
+
const mapMember = ns.getValueSchema();
|
|
101
|
+
const out = {};
|
|
102
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
103
|
+
for (const _k in value) {
|
|
104
|
+
if (!hasOwn(value, _k))
|
|
105
|
+
continue;
|
|
106
|
+
const _v = value[_k];
|
|
107
|
+
if (sparse || _v != null) {
|
|
108
|
+
if (_k === "__proto__") {
|
|
109
|
+
writeKey(out);
|
|
110
|
+
}
|
|
111
|
+
out[_k] = this._write(mapMember, _v);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return out;
|
|
115
|
+
}
|
|
116
|
+
if (value instanceof Uint8Array && ns.isBlobSchema()) {
|
|
117
|
+
if (ns === this.rootSchema) {
|
|
118
|
+
return value;
|
|
119
|
+
}
|
|
120
|
+
return (this.serdeContext?.base64Encoder ?? toBase64)(value);
|
|
121
|
+
}
|
|
122
|
+
if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) {
|
|
123
|
+
const format = determineTimestampFormat(ns, this.settings);
|
|
124
|
+
switch (format) {
|
|
125
|
+
case 5:
|
|
126
|
+
return value.toISOString().replace(".000Z", "Z");
|
|
127
|
+
case 6:
|
|
128
|
+
return dateToUtcString(value);
|
|
129
|
+
case 7:
|
|
130
|
+
return value.getTime() / 1000;
|
|
131
|
+
default:
|
|
132
|
+
console.warn("Missing timestamp format, using epoch seconds", value);
|
|
133
|
+
return value.getTime() / 1000;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (value instanceof NumericValue) {
|
|
137
|
+
this.useReplacer = true;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
if (value === null && container?.isStructSchema()) {
|
|
141
|
+
return void 0;
|
|
142
|
+
}
|
|
143
|
+
if (ns.isStringSchema()) {
|
|
144
|
+
if (typeof value === "undefined" && ns.isIdempotencyToken()) {
|
|
145
|
+
return generateIdempotencyToken();
|
|
146
|
+
}
|
|
147
|
+
const mediaType = ns.getMergedTraits().mediaType;
|
|
148
|
+
if (value != null && mediaType) {
|
|
149
|
+
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
150
|
+
if (isJson) {
|
|
151
|
+
return LazyJsonString.from(value);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return value;
|
|
155
|
+
}
|
|
156
|
+
if (typeof value === "number") {
|
|
157
|
+
if (Math.abs(value) === Infinity || isNaN(value)) {
|
|
158
|
+
return String(value);
|
|
159
|
+
}
|
|
160
|
+
return value;
|
|
161
|
+
}
|
|
162
|
+
if (typeof value === "string" && ns.isBlobSchema()) {
|
|
163
|
+
if (ns === this.rootSchema) {
|
|
164
|
+
return value;
|
|
165
|
+
}
|
|
166
|
+
return (this.serdeContext?.base64Encoder ?? toBase64)(value);
|
|
167
|
+
}
|
|
168
|
+
if (typeof value === "bigint") {
|
|
169
|
+
this.useReplacer = true;
|
|
170
|
+
}
|
|
171
|
+
if (ns.isDocumentSchema()) {
|
|
172
|
+
if (isObject) {
|
|
173
|
+
if (value instanceof Uint8Array) {
|
|
174
|
+
return (this.serdeContext?.base64Encoder ?? toBase64)(value);
|
|
175
|
+
}
|
|
176
|
+
const out = Array.isArray(value) ? [] : {};
|
|
177
|
+
for (const k in value) {
|
|
178
|
+
if (!hasOwn(value, k))
|
|
179
|
+
continue;
|
|
180
|
+
const v = value[k];
|
|
181
|
+
if (k === "__proto__") {
|
|
182
|
+
writeKey(out);
|
|
183
|
+
}
|
|
184
|
+
if (v instanceof NumericValue) {
|
|
185
|
+
this.useReplacer = true;
|
|
186
|
+
out[k] = v;
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
out[k] = this._write(ns, v);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return out;
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
return structuredClone(value);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return value;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { toUtf8 } from "@smithy/core/serde";
|
|
2
|
+
export class JsonBytesStringAdapter extends Uint8Array {
|
|
3
|
+
string = null;
|
|
4
|
+
static allocUnsafe(bytes) {
|
|
5
|
+
if (typeof Buffer === "function") {
|
|
6
|
+
const buffer = Buffer.allocUnsafe(bytes);
|
|
7
|
+
return new JsonBytesStringAdapter(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
|
8
|
+
}
|
|
9
|
+
return new JsonBytesStringAdapter(bytes);
|
|
10
|
+
}
|
|
11
|
+
toString() {
|
|
12
|
+
return this.s();
|
|
13
|
+
}
|
|
14
|
+
valueOf() {
|
|
15
|
+
return this.s();
|
|
16
|
+
}
|
|
17
|
+
includes(searchString, position) {
|
|
18
|
+
if (typeof searchString === "string") {
|
|
19
|
+
return this.s().includes(searchString, position);
|
|
20
|
+
}
|
|
21
|
+
return Uint8Array.prototype.includes.call(this, searchString, position);
|
|
22
|
+
}
|
|
23
|
+
indexOf(searchString, position) {
|
|
24
|
+
if (typeof searchString === "string") {
|
|
25
|
+
return this.s().indexOf(searchString, position);
|
|
26
|
+
}
|
|
27
|
+
return Uint8Array.prototype.indexOf.call(this, searchString, position);
|
|
28
|
+
}
|
|
29
|
+
lastIndexOf(searchString, position) {
|
|
30
|
+
if (typeof searchString === "string") {
|
|
31
|
+
return this.s().lastIndexOf(searchString, position);
|
|
32
|
+
}
|
|
33
|
+
const fn = Uint8Array.prototype.lastIndexOf;
|
|
34
|
+
if (position !== undefined) {
|
|
35
|
+
return fn.call(this, searchString, position);
|
|
36
|
+
}
|
|
37
|
+
return fn.call(this, searchString);
|
|
38
|
+
}
|
|
39
|
+
startsWith(searchString, position) {
|
|
40
|
+
return this.s().startsWith(searchString, position);
|
|
41
|
+
}
|
|
42
|
+
endsWith(searchString, endPosition) {
|
|
43
|
+
return this.s().endsWith(searchString, endPosition);
|
|
44
|
+
}
|
|
45
|
+
match(regexp) {
|
|
46
|
+
return this.s().match(regexp);
|
|
47
|
+
}
|
|
48
|
+
replace(searchValue, replaceValue) {
|
|
49
|
+
return this.s().replace(searchValue, replaceValue);
|
|
50
|
+
}
|
|
51
|
+
search(regexp) {
|
|
52
|
+
return this.s().search(regexp);
|
|
53
|
+
}
|
|
54
|
+
split(separator, limit) {
|
|
55
|
+
return this.s().split(separator, limit);
|
|
56
|
+
}
|
|
57
|
+
substring(start, end) {
|
|
58
|
+
return this.s().substring(start, end);
|
|
59
|
+
}
|
|
60
|
+
trim() {
|
|
61
|
+
return this.s().trim();
|
|
62
|
+
}
|
|
63
|
+
trimStart() {
|
|
64
|
+
return this.s().trimStart();
|
|
65
|
+
}
|
|
66
|
+
trimEnd() {
|
|
67
|
+
return this.s().trimEnd();
|
|
68
|
+
}
|
|
69
|
+
charAt(pos) {
|
|
70
|
+
return this.s().charAt(pos);
|
|
71
|
+
}
|
|
72
|
+
charCodeAt(index) {
|
|
73
|
+
return this.s().charCodeAt(index);
|
|
74
|
+
}
|
|
75
|
+
padStart(maxLength, fillString) {
|
|
76
|
+
return this.s().padStart(maxLength, fillString);
|
|
77
|
+
}
|
|
78
|
+
padEnd(maxLength, fillString) {
|
|
79
|
+
return this.s().padEnd(maxLength, fillString);
|
|
80
|
+
}
|
|
81
|
+
repeat(count) {
|
|
82
|
+
return this.s().repeat(count);
|
|
83
|
+
}
|
|
84
|
+
toUpperCase() {
|
|
85
|
+
return this.s().toUpperCase();
|
|
86
|
+
}
|
|
87
|
+
toLowerCase() {
|
|
88
|
+
return this.s().toLowerCase();
|
|
89
|
+
}
|
|
90
|
+
s() {
|
|
91
|
+
if (this.string == null) {
|
|
92
|
+
const n = Date.now();
|
|
93
|
+
if (n > warned + 60_000) {
|
|
94
|
+
console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. " +
|
|
95
|
+
"It has been automatically converted to string. In a future version this will throw an error.");
|
|
96
|
+
warned = n;
|
|
97
|
+
}
|
|
98
|
+
this.string = toUtf8(this);
|
|
99
|
+
}
|
|
100
|
+
return this.string;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
var warned = 0;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
2
|
+
import { JsonShapeDeserializer2 } from "./JsonShapeDeserializer2";
|
|
3
|
+
import { JsonShapeSerializer2 } from "./JsonShapeSerializer2";
|
|
4
|
+
export class JsonCodec2 extends SerdeContextConfig {
|
|
5
|
+
settings;
|
|
6
|
+
constructor(settings) {
|
|
7
|
+
super();
|
|
8
|
+
this.settings = settings;
|
|
9
|
+
}
|
|
10
|
+
createSerializer() {
|
|
11
|
+
const serializer = new JsonShapeSerializer2(this.settings);
|
|
12
|
+
serializer.setSerdeContext(this.serdeContext);
|
|
13
|
+
return serializer;
|
|
14
|
+
}
|
|
15
|
+
createDeserializer() {
|
|
16
|
+
const deserializer = new JsonShapeDeserializer2(this.settings);
|
|
17
|
+
deserializer.setSerdeContext(this.serdeContext);
|
|
18
|
+
return deserializer;
|
|
19
|
+
}
|
|
20
|
+
}
|