@code-yeongyu/senpi 2026.8.20-2 → 2026.8.20
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/CHANGELOG.md +0 -16
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js +13 -38
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/schemas/schemas_0.js +12 -34
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/commands/ConverseCommand.d.ts +0 -29
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/commands/ConverseStreamCommand.d.ts +0 -15
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/commands/CountTokensCommand.d.ts +0 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/models/models_0.d.ts +1 -119
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/runtimeConfig.browser.d.ts +46 -46
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/runtimeConfig.native.d.ts +48 -48
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/schemas/schemas_0.d.ts +0 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/models/models_0.d.ts +0 -76
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/runtimeConfig.browser.d.ts +72 -70
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/runtimeConfig.d.ts +68 -68
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -86
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/schemas/schemas_0.d.ts +0 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +14 -14
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +426 -1343
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +5 -8
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +2 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{codec-v1/JsonCodec.js → JsonCodec.js} +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{codec-v1/JsonShapeDeserializer.js → JsonShapeDeserializer.js} +6 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{codec-v1/JsonShapeSerializer.js → JsonShapeSerializer.js} +5 -8
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{codec-v2/JsonShapeDeserializer2.js → experimental/BufferJsonShapeDeserializer.js} +18 -38
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{codec-v2/JsonShapeSerializer2.js → experimental/ByteJsonShapeSerializer.js} +71 -107
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +9 -93
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-endpoints/lib/aws/partitions.d.ts +54 -54
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +6 -9
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +3 -4
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +3 -5
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{codec-v1/JsonCodec.d.ts → JsonCodec.d.ts} +8 -4
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{codec-v1/JsonShapeDeserializer.d.ts → JsonShapeDeserializer.d.ts} +2 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{codec-v1/JsonShapeSerializer.d.ts → JsonShapeSerializer.d.ts} +2 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{codec-v2/JsonShapeDeserializer2.d.ts → experimental/BufferJsonShapeDeserializer.d.ts} +3 -4
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{codec-v2/JsonShapeSerializer2.d.ts → experimental/ByteJsonShapeSerializer.d.ts} +16 -19
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +7 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +21 -61
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +27 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +16 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +14 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +5 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +11 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +47 -107
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +39 -112
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +48 -107
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +14 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +35 -25
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +4 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +6 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +5 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +5 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +6 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +10 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +6 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +20 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +44 -21
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +5 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +11 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +16 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +4 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +14 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +4 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +7 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +12 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +7 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +7 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +38 -28
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +638 -647
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -29
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +1 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +1 -12
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +7 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +14 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +2 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +27 -15
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +18 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +8 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +28 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +6 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +5 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +13 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +10 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +44 -39
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +5 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +7 -23
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +38 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +133 -57
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +11 -32
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +9 -32
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +8 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +6 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +8 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +8 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +26 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +9 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +74 -40
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +25 -36
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +18 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +22 -30
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +22 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +22 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +29 -50
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +36 -52
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +19 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +28 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +7 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +29 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +57 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +22 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +27 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +49 -57
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +13 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +16 -21
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +31 -47
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +14 -17
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +20 -15
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +13 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +6 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +32 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +2 -4
- package/node_modules/@aws-sdk/core/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/LICENSE +201 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/README.md +9 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +840 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/constants.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +9 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +50 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +241 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +136 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +46 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +173 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +23 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +63 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +46 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +47 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +46 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +36 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +76 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +9 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/http2/ClientHttp2SessionRef.d.ts +46 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +47 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +46 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +36 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +76 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-https.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +9 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +64 -0
- package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +28 -35
- package/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js +28 -35
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/LoginCredentialsFetcher.d.ts +0 -1
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/LoginCredentialsFetcher.d.ts +0 -1
- package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
- package/node_modules/@aws-sdk/eventstream-handler-node/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-websocket/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +44 -44
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +35 -35
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +66 -64
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +70 -68
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +69 -67
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +66 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +73 -71
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +66 -64
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +70 -68
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +66 -64
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +70 -68
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +70 -68
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +68 -68
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +74 -72
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/LICENSE +201 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/README.md +9 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +840 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/constants.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +9 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +50 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +241 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +136 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +46 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +173 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +23 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +63 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +5 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +46 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +47 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +46 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +36 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +76 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +6 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +5 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/http2/ClientHttp2SessionRef.d.ts +46 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +47 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +46 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +36 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +76 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-https.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +6 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +12 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +12 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +64 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@bufbuild/protobuf/README.md +15 -12
- package/node_modules/@bufbuild/protobuf/dist/commonjs/create.js +162 -199
- package/node_modules/@bufbuild/protobuf/dist/commonjs/from-binary.js +153 -321
- package/node_modules/@bufbuild/protobuf/dist/commonjs/from-json.js +303 -601
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.d.ts +1 -27
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.js +56 -80
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect.js +80 -3
- package/node_modules/@bufbuild/protobuf/dist/commonjs/registry.js +3 -12
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-binary.d.ts +0 -4
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-binary.js +127 -365
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-json.js +159 -393
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/base64-encoding.d.ts +1 -3
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/base64-encoding.js +8 -40
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.d.ts +19 -37
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.js +85 -281
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/index.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/index.js +1 -4
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-encoding.d.ts +2 -19
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-encoding.js +13 -47
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/varint.d.ts +4 -4
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/varint.js +23 -35
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/wrappers.js +12 -12
- package/node_modules/@bufbuild/protobuf/dist/esm/create.js +162 -199
- package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +153 -321
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +304 -602
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.d.ts +1 -27
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +57 -79
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +78 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +3 -12
- package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.d.ts +0 -4
- package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +127 -365
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +159 -393
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.d.ts +1 -3
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +8 -40
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.d.ts +19 -37
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +87 -283
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/index.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.d.ts +2 -19
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +13 -46
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.d.ts +4 -4
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +23 -35
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +12 -12
- package/node_modules/@bufbuild/protobuf/package.json +2 -2
- package/node_modules/@code-yeongyu/senpi-codemode/CHANGELOG.md +0 -12
- package/node_modules/@code-yeongyu/senpi-codemode/package.json +4 -4
- package/node_modules/@earendil-works/pi-agent-core/package.json +6 -6
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/node_modules/@earendil-works/pi-ai/package.json +8 -8
- package/node_modules/@earendil-works/pi-pty/package.json +2 -2
- package/node_modules/@earendil-works/pi-telemetry/package.json +2 -2
- package/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +337 -1560
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +23 -23
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +23 -23
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +13 -17
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +10 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +205 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +1 -5
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +4 -4
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +19 -19
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +4 -3
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +4 -6
- package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +5 -8
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +27 -5
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +1 -5
- package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +2 -14
- package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +2 -7
- package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/serde/parse-utils.d.ts +5 -5
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +27 -5
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +1 -5
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +2 -14
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +2 -7
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/parse-utils.d.ts +5 -5
- package/node_modules/@smithy/core/package.json +11 -4
- package/node_modules/@smithy/credential-provider-imds/package.json +12 -4
- package/node_modules/@smithy/fetch-http-handler/package.json +13 -5
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +2 -9
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +2 -9
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/package.json +13 -5
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +9 -9
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +9 -9
- package/node_modules/@smithy/signature-v4/package.json +12 -4
- package/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +14 -14
- package/node_modules/@smithy/types/package.json +39 -29
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/child_process.d.ts +1 -0
- package/node_modules/@types/node/crypto.d.ts +7 -7
- package/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@types/node/dns.d.ts +5 -5
- package/node_modules/@types/node/fs.d.ts +0 -7
- package/node_modules/@types/node/http.d.ts +0 -30
- package/node_modules/@types/node/http2.d.ts +4 -4
- package/node_modules/@types/node/os.d.ts +30 -30
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/perf_hooks.d.ts +1 -2
- package/node_modules/@types/node/process.d.ts +43 -42
- package/node_modules/@types/node/quic.d.ts +84 -1049
- package/node_modules/@types/node/sqlite.d.ts +1 -14
- package/node_modules/@types/node/stream/iter.d.ts +2 -3
- package/node_modules/@types/node/test.d.ts +0 -61
- package/node_modules/@types/node/v8.d.ts +23 -20
- package/package.json +36 -36
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -103
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -20
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -51
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +0 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/message.d.ts +0 -49
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/message.js +0 -157
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/json.d.ts +0 -28
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/json.js +0 -44
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/message.d.ts +0 -49
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/message.js +0 -152
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/json.d.ts +0 -28
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/json.js +0 -41
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +0 -113
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +0 -103
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +0 -621
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +0 -602
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +0 -13
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +0 -15
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +0 -18
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +0 -35
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +0 -13
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +0 -15
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +0 -18
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +0 -35
|
@@ -22,18 +22,13 @@ exports.isEnumJson = isEnumJson;
|
|
|
22
22
|
const descriptors_js_1 = require("./descriptors.js");
|
|
23
23
|
const proto_int64_js_1 = require("./proto-int64.js");
|
|
24
24
|
const create_js_1 = require("./create.js");
|
|
25
|
+
const reflect_js_1 = require("./reflect/reflect.js");
|
|
25
26
|
const error_js_1 = require("./reflect/error.js");
|
|
26
27
|
const reflect_check_js_1 = require("./reflect/reflect-check.js");
|
|
27
28
|
const names_js_1 = require("./reflect/names.js");
|
|
28
|
-
const scalar_js_1 = require("./reflect/scalar.js");
|
|
29
|
-
const unsafe_js_1 = require("./reflect/unsafe.js");
|
|
30
|
-
const message_js_1 = require("./reflect/message.js");
|
|
31
29
|
const base64_encoding_js_1 = require("./wire/base64-encoding.js");
|
|
32
30
|
const index_js_1 = require("./wkt/index.js");
|
|
33
31
|
const extensions_js_1 = require("./extensions.js");
|
|
34
|
-
const json_js_1 = require("./wkt/json.js");
|
|
35
|
-
// bootstrap-inject google.protobuf.FeatureSet.FieldPresence.IMPLICIT: const $name = $number;
|
|
36
|
-
const IMPLICIT = 2;
|
|
37
32
|
function makeReadContext(options) {
|
|
38
33
|
return Object.assign(Object.assign({ ignoreUnknownFields: false, recursionLimit: 100 }, options), { depth: 0 });
|
|
39
34
|
}
|
|
@@ -67,9 +62,20 @@ function mergeFromJsonString(schema, target, json, options) {
|
|
|
67
62
|
* duplicate-key checking.
|
|
68
63
|
*/
|
|
69
64
|
function fromJson(schema, json, options) {
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
65
|
+
const msg = (0, reflect_js_1.reflect)(schema);
|
|
66
|
+
try {
|
|
67
|
+
readMessage(msg, json, makeReadContext(options));
|
|
68
|
+
}
|
|
69
|
+
catch (e) {
|
|
70
|
+
if ((0, error_js_1.isFieldError)(e)) {
|
|
71
|
+
// @ts-expect-error we use the ES2022 error CTOR option "cause" for better stack traces
|
|
72
|
+
throw new Error(`cannot decode ${e.field()} from JSON: ${e.message}`, {
|
|
73
|
+
cause: e,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
throw e;
|
|
77
|
+
}
|
|
78
|
+
return msg.message;
|
|
73
79
|
}
|
|
74
80
|
/**
|
|
75
81
|
* Parse a message from a JSON value, merging fields into the target.
|
|
@@ -84,20 +90,8 @@ function fromJson(schema, json, options) {
|
|
|
84
90
|
* for strict checking.
|
|
85
91
|
*/
|
|
86
92
|
function mergeFromJson(schema, target, json, options) {
|
|
87
|
-
if (target.$typeName !== schema.typeName &&
|
|
88
|
-
schema.fields.length > 0) {
|
|
89
|
-
throw new error_js_1.FieldError(schema.fields[0], `cannot use ${schema.fields[0]} with message ${target.$typeName}`, "ForeignFieldError");
|
|
90
|
-
}
|
|
91
|
-
readMessage(schema, target, json, options);
|
|
92
|
-
return target;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Run the compiled decoder for the message, wrapping FieldErrors with the
|
|
96
|
-
* standard error message.
|
|
97
|
-
*/
|
|
98
|
-
function readMessage(schema, message, json, options) {
|
|
99
93
|
try {
|
|
100
|
-
|
|
94
|
+
readMessage((0, reflect_js_1.reflect)(schema, target), json, makeReadContext(options));
|
|
101
95
|
}
|
|
102
96
|
catch (e) {
|
|
103
97
|
if ((0, error_js_1.isFieldError)(e)) {
|
|
@@ -108,14 +102,13 @@ function readMessage(schema, message, json, options) {
|
|
|
108
102
|
}
|
|
109
103
|
throw e;
|
|
110
104
|
}
|
|
105
|
+
return target;
|
|
111
106
|
}
|
|
112
107
|
/**
|
|
113
108
|
* Parses an enum value from JSON.
|
|
114
109
|
*/
|
|
115
110
|
function enumFromJson(descEnum, json) {
|
|
116
|
-
|
|
117
|
-
// for ignored unknown enum values.
|
|
118
|
-
return compileEnumConverter(descEnum)(json, false);
|
|
111
|
+
return readEnum(descEnum, json, false);
|
|
119
112
|
}
|
|
120
113
|
/**
|
|
121
114
|
* Is the given value a JSON enum value?
|
|
@@ -123,646 +116,315 @@ function enumFromJson(descEnum, json) {
|
|
|
123
116
|
function isEnumJson(descEnum, value) {
|
|
124
117
|
return undefined !== descEnum.values.find((v) => v.name === value);
|
|
125
118
|
}
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
119
|
+
const messageJsonFields = new WeakMap();
|
|
120
|
+
function getJsonField(desc, jsonKey) {
|
|
121
|
+
var _a;
|
|
122
|
+
if (!messageJsonFields.has(desc)) {
|
|
123
|
+
const jsonNames = new Map();
|
|
124
|
+
for (const field of desc.fields) {
|
|
125
|
+
jsonNames.set(field.name, field).set(field.jsonName, field);
|
|
126
|
+
}
|
|
127
|
+
messageJsonFields.set(desc, jsonNames);
|
|
134
128
|
}
|
|
135
|
-
return
|
|
129
|
+
return (_a = messageJsonFields.get(desc)) === null || _a === void 0 ? void 0 : _a.get(jsonKey);
|
|
136
130
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
// All message decoders count against the recursion limit, including
|
|
142
|
-
// well-known types with a custom JSON representation.
|
|
143
|
-
const compiled = (message, json, ctx) => {
|
|
144
|
-
if (++ctx.depth > ctx.recursionLimit) {
|
|
145
|
-
throw new Error(`cannot decode ${descString} from JSON: maximum recursion depth of ${ctx.recursionLimit} reached`);
|
|
146
|
-
}
|
|
147
|
-
readWkt(message, json, ctx);
|
|
148
|
-
ctx.depth--;
|
|
149
|
-
};
|
|
150
|
-
compiledReaders.set(desc, compiled);
|
|
151
|
-
return compiled;
|
|
131
|
+
function readMessage(msg, json, ctx) {
|
|
132
|
+
var _a;
|
|
133
|
+
if (++ctx.depth > ctx.recursionLimit) {
|
|
134
|
+
throw new Error(`cannot decode ${msg.desc} from JSON: maximum recursion depth of ${ctx.recursionLimit} reached`);
|
|
152
135
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
const entry = fieldsByJsonKey.get(jsonKey);
|
|
171
|
-
if (entry !== undefined) {
|
|
172
|
-
const field = entry.field;
|
|
173
|
-
if (fieldSeen.has(field)) {
|
|
174
|
-
// The same field may be set by its proto name and its JSON name, or by
|
|
175
|
-
// a duplicate or unicode-escaped key that JSON.parse already collapsed.
|
|
176
|
-
// Checked before the null-skip below so that a null entry still counts.
|
|
177
|
-
throw new error_js_1.FieldError(field, "set multiple times");
|
|
178
|
-
}
|
|
179
|
-
fieldSeen.add(field);
|
|
180
|
-
if (entry.oneofScalarNullSkip && jsonValue === null) {
|
|
181
|
-
continue;
|
|
182
|
-
}
|
|
183
|
-
if (entry.oneof) {
|
|
184
|
-
const seen = oneofSeen.get(entry.oneof);
|
|
185
|
-
if (seen !== undefined) {
|
|
186
|
-
throw new error_js_1.FieldError(entry.oneof, `oneof set multiple times by ${seen.name} and ${field.name}`);
|
|
187
|
-
}
|
|
188
|
-
oneofSeen.set(entry.oneof, field);
|
|
189
|
-
}
|
|
190
|
-
entry.read(message, jsonValue, ctx);
|
|
136
|
+
if (tryWktFromJson(msg, json, ctx)) {
|
|
137
|
+
ctx.depth--;
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
if (json == null || Array.isArray(json) || typeof json != "object") {
|
|
141
|
+
throw new Error(`cannot decode ${msg.desc} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`);
|
|
142
|
+
}
|
|
143
|
+
const oneofSeen = new Map();
|
|
144
|
+
const fieldSeen = new Set();
|
|
145
|
+
for (const [jsonKey, jsonValue] of Object.entries(json)) {
|
|
146
|
+
const field = getJsonField(msg.desc, jsonKey);
|
|
147
|
+
if (field) {
|
|
148
|
+
if (fieldSeen.has(field)) {
|
|
149
|
+
// The same field may be set by its proto name and its JSON name, or by
|
|
150
|
+
// a duplicate or unicode-escaped key that JSON.parse already collapsed.
|
|
151
|
+
// Checked before the null-skip below so that a null entry still counts.
|
|
152
|
+
throw new error_js_1.FieldError(field, "set multiple times");
|
|
191
153
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
if (extension === undefined && !ctx.ignoreUnknownFields) {
|
|
202
|
-
throw new Error(`cannot decode ${descString} from JSON: key "${jsonKey}" is unknown`);
|
|
154
|
+
fieldSeen.add(field);
|
|
155
|
+
if (field.oneof && jsonValue === null && field.fieldKind == "scalar") {
|
|
156
|
+
// see conformance test Required.Proto3.JsonInput.OneofFieldNull{First,Second}
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
if (field.oneof) {
|
|
160
|
+
const seen = oneofSeen.get(field.oneof);
|
|
161
|
+
if (seen !== undefined) {
|
|
162
|
+
throw new error_js_1.FieldError(field.oneof, `oneof set multiple times by ${seen.name} and ${field.name}`);
|
|
203
163
|
}
|
|
164
|
+
oneofSeen.set(field.oneof, field);
|
|
204
165
|
}
|
|
166
|
+
readField(msg, field, jsonValue, ctx);
|
|
205
167
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
oneofScalarNullSkip: field.oneof !== undefined && field.fieldKind == "scalar",
|
|
217
|
-
};
|
|
218
|
-
fieldsByJsonKey.set(field.name, entry).set(field.jsonName, entry);
|
|
219
|
-
}
|
|
220
|
-
return compiled;
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* Compile a decoder for a well-known type with a custom JSON representation,
|
|
224
|
-
* or return undefined for other messages. The recursion limit is enforced by
|
|
225
|
-
* the caller.
|
|
226
|
-
*/
|
|
227
|
-
function compileWkt(desc) {
|
|
228
|
-
if (!desc.typeName.startsWith("google.protobuf.")) {
|
|
229
|
-
return undefined;
|
|
230
|
-
}
|
|
231
|
-
switch (desc.typeName) {
|
|
232
|
-
case "google.protobuf.Any":
|
|
233
|
-
return (message, json, ctx) => anyFromJson(message, json, ctx);
|
|
234
|
-
case "google.protobuf.Timestamp":
|
|
235
|
-
return (message, json) => timestampFromJson(message, json);
|
|
236
|
-
case "google.protobuf.Duration":
|
|
237
|
-
return (message, json) => durationFromJson(message, json);
|
|
238
|
-
case "google.protobuf.FieldMask":
|
|
239
|
-
return (message, json) => fieldMaskFromJson(message, json);
|
|
240
|
-
case "google.protobuf.Struct":
|
|
241
|
-
return (message, json, ctx) => structFromJson(message, json, ctx);
|
|
242
|
-
case "google.protobuf.Value":
|
|
243
|
-
return (message, json, ctx) => valueFromJson(message, json, ctx);
|
|
244
|
-
case "google.protobuf.ListValue":
|
|
245
|
-
return (message, json, ctx) => listValueFromJson(message, json, ctx);
|
|
246
|
-
default:
|
|
247
|
-
if ((0, index_js_1.isWrapperDesc)(desc)) {
|
|
248
|
-
const valueField = desc.fields[0];
|
|
249
|
-
const localName = valueField.localName;
|
|
250
|
-
const scalar = valueField.scalar;
|
|
251
|
-
const longAsString = valueField.longAsString;
|
|
252
|
-
const readScalar = compileScalarConverter(valueField);
|
|
253
|
-
return (message, json) => {
|
|
254
|
-
if (json === null) {
|
|
255
|
-
message[localName] = (0, scalar_js_1.scalarZeroValue)(scalar, longAsString);
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
message[localName] = readScalar(json);
|
|
259
|
-
}
|
|
260
|
-
};
|
|
168
|
+
else {
|
|
169
|
+
let extension = undefined;
|
|
170
|
+
if (jsonKey.startsWith("[") &&
|
|
171
|
+
jsonKey.endsWith("]") &&
|
|
172
|
+
// biome-ignore lint/suspicious/noAssignInExpressions: no
|
|
173
|
+
(extension = (_a = ctx.registry) === null || _a === void 0 ? void 0 : _a.getExtension(jsonKey.substring(1, jsonKey.length - 1))) &&
|
|
174
|
+
extension.extendee.typeName === msg.desc.typeName) {
|
|
175
|
+
const [container, field, get] = (0, extensions_js_1.createExtensionContainer)(extension);
|
|
176
|
+
readField(container, field, jsonValue, ctx);
|
|
177
|
+
(0, extensions_js_1.setExtension)(msg.message, extension, get());
|
|
261
178
|
}
|
|
262
|
-
|
|
179
|
+
if (!extension && !ctx.ignoreUnknownFields) {
|
|
180
|
+
throw new Error(`cannot decode ${msg.desc} from JSON: key "${jsonKey}" is unknown`);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
263
183
|
}
|
|
184
|
+
ctx.depth--;
|
|
264
185
|
}
|
|
265
|
-
function
|
|
186
|
+
function readField(msg, field, json, ctx) {
|
|
266
187
|
switch (field.fieldKind) {
|
|
267
188
|
case "scalar":
|
|
268
|
-
|
|
189
|
+
readScalarField(msg, field, json);
|
|
190
|
+
break;
|
|
269
191
|
case "enum":
|
|
270
|
-
|
|
192
|
+
readEnumField(msg, field, json, ctx);
|
|
193
|
+
break;
|
|
271
194
|
case "message":
|
|
272
|
-
|
|
195
|
+
readMessageField(msg, field, json, ctx);
|
|
196
|
+
break;
|
|
273
197
|
case "list":
|
|
274
|
-
|
|
198
|
+
readListField(msg.get(field), json, ctx);
|
|
199
|
+
break;
|
|
275
200
|
case "map":
|
|
276
|
-
|
|
201
|
+
readMapField(msg.get(field), json, ctx);
|
|
202
|
+
break;
|
|
277
203
|
}
|
|
278
204
|
}
|
|
279
|
-
function
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
if (field.oneof) {
|
|
283
|
-
// JSON null for a oneof scalar member is skipped by the message decoder.
|
|
284
|
-
const oneofLocalName = field.oneof.localName;
|
|
285
|
-
return (message, json) => {
|
|
286
|
-
message[oneofLocalName] = {
|
|
287
|
-
case: localName,
|
|
288
|
-
value: readScalar(json),
|
|
289
|
-
};
|
|
290
|
-
};
|
|
205
|
+
function readListOrMapItem(field, json, ctx) {
|
|
206
|
+
if (field.scalar && json !== null) {
|
|
207
|
+
return scalarFromJson(field, json);
|
|
291
208
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}
|
|
297
|
-
else {
|
|
298
|
-
message[localName] = readScalar(json);
|
|
299
|
-
}
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
/**
|
|
303
|
-
* Compile a function that resets the field to unset, mirroring the clear
|
|
304
|
-
* operation of the reflect API for fields that are not part of a oneof.
|
|
305
|
-
*/
|
|
306
|
-
function compileClear(field) {
|
|
307
|
-
const localName = field.localName;
|
|
308
|
-
if (field.presence != IMPLICIT) {
|
|
309
|
-
// Fields with explicit presence have properties on the prototype chain
|
|
310
|
-
// for default / zero values (except for proto3). By deleting their own
|
|
311
|
-
// property, the field is reset.
|
|
312
|
-
return (message) => {
|
|
313
|
-
delete message[localName];
|
|
314
|
-
};
|
|
209
|
+
if (field.message && !isResetSentinelNullValue(field, json)) {
|
|
210
|
+
const msgValue = (0, reflect_js_1.reflect)(field.message);
|
|
211
|
+
readMessage(msgValue, json, ctx);
|
|
212
|
+
return msgValue;
|
|
315
213
|
}
|
|
316
|
-
if (field.
|
|
317
|
-
|
|
318
|
-
return (message) => {
|
|
319
|
-
message[localName] = zero;
|
|
320
|
-
};
|
|
214
|
+
if (field.enum && !isResetSentinelNullValue(field, json)) {
|
|
215
|
+
return readEnum(field.enum, json, ctx.ignoreUnknownFields);
|
|
321
216
|
}
|
|
322
|
-
|
|
323
|
-
const longAsString = field.longAsString;
|
|
324
|
-
return (message) => {
|
|
325
|
-
message[localName] = (0, scalar_js_1.scalarZeroValue)(scalar, longAsString);
|
|
326
|
-
};
|
|
217
|
+
throw new error_js_1.FieldError(field, `${field.fieldKind === "list" ? "list item" : "map value"} must not be null`);
|
|
327
218
|
}
|
|
328
|
-
function
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
const localName = field.localName;
|
|
332
|
-
// Fields with enum google.protobuf.NullValue permit a Protobuf-serializable
|
|
333
|
-
// null; for all other enums, JSON null resets the field.
|
|
334
|
-
const nullResets = field.enum.typeName != "google.protobuf.NullValue";
|
|
335
|
-
if (field.oneof) {
|
|
336
|
-
const oneofLocalName = field.oneof.localName;
|
|
337
|
-
return (message, json, ctx) => {
|
|
338
|
-
if (json === null && nullResets) {
|
|
339
|
-
const oneof = message[oneofLocalName];
|
|
340
|
-
if (oneof.case === localName) {
|
|
341
|
-
message[oneofLocalName] = { case: undefined };
|
|
342
|
-
}
|
|
343
|
-
return;
|
|
344
|
-
}
|
|
345
|
-
const value = readEnumValue(json, ctx.ignoreUnknownFields);
|
|
346
|
-
if (value === tokenIgnoredUnknownEnum) {
|
|
347
|
-
return;
|
|
348
|
-
}
|
|
349
|
-
const check = checkEnum(value);
|
|
350
|
-
if (check !== true) {
|
|
351
|
-
throw new error_js_1.FieldError(field, (0, reflect_check_js_1.reasonSingular)(field, value, check));
|
|
352
|
-
}
|
|
353
|
-
message[oneofLocalName] = { case: localName, value };
|
|
354
|
-
};
|
|
219
|
+
function readMapField(map, json, ctx) {
|
|
220
|
+
if (json === null) {
|
|
221
|
+
return;
|
|
355
222
|
}
|
|
356
|
-
const
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
const
|
|
363
|
-
if (
|
|
364
|
-
|
|
223
|
+
const field = map.field();
|
|
224
|
+
if (typeof json != "object" || Array.isArray(json)) {
|
|
225
|
+
throw new error_js_1.FieldError(field, "expected object, got " + (0, reflect_check_js_1.formatVal)(json));
|
|
226
|
+
}
|
|
227
|
+
const seen = new Set();
|
|
228
|
+
for (const [jsonMapKey, jsonMapValue] of Object.entries(json)) {
|
|
229
|
+
const key = mapKeyFromJson(field.mapKey, jsonMapKey);
|
|
230
|
+
if (seen.has(key)) {
|
|
231
|
+
throw new error_js_1.FieldError(field, `duplicate map key "${jsonMapKey}"`);
|
|
365
232
|
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
233
|
+
seen.add(key);
|
|
234
|
+
const value = readListOrMapItem(field, jsonMapValue, ctx);
|
|
235
|
+
if (value !== tokenIgnoredUnknownEnum) {
|
|
236
|
+
map.set(key, value);
|
|
369
237
|
}
|
|
370
|
-
|
|
371
|
-
};
|
|
238
|
+
}
|
|
372
239
|
}
|
|
373
|
-
function
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
const readChild = compiledReader(field.message);
|
|
377
|
-
// Fields with message google.protobuf.Value permit a Protobuf-serializable
|
|
378
|
-
// null; for all other messages, JSON null resets the field.
|
|
379
|
-
const nullResets = field.message.typeName != "google.protobuf.Value";
|
|
380
|
-
if (field.oneof) {
|
|
381
|
-
const oneofLocalName = field.oneof.localName;
|
|
382
|
-
return (message, json, ctx) => {
|
|
383
|
-
const oneof = message[oneofLocalName];
|
|
384
|
-
if (json === null && nullResets) {
|
|
385
|
-
if (oneof.case === localName) {
|
|
386
|
-
message[oneofLocalName] = { case: undefined };
|
|
387
|
-
}
|
|
388
|
-
return;
|
|
389
|
-
}
|
|
390
|
-
const child = toMessage(oneof.case === localName ? oneof.value : undefined);
|
|
391
|
-
readChild(child, json, ctx);
|
|
392
|
-
message[oneofLocalName] = { case: localName, value: toLocal(child) };
|
|
393
|
-
};
|
|
240
|
+
function readListField(list, json, ctx) {
|
|
241
|
+
if (json === null) {
|
|
242
|
+
return;
|
|
394
243
|
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
244
|
+
const field = list.field();
|
|
245
|
+
if (!Array.isArray(json)) {
|
|
246
|
+
throw new error_js_1.FieldError(field, "expected Array, got " + (0, reflect_check_js_1.formatVal)(json));
|
|
247
|
+
}
|
|
248
|
+
for (const jsonItem of json) {
|
|
249
|
+
const value = readListOrMapItem(field, jsonItem, ctx);
|
|
250
|
+
if (value !== tokenIgnoredUnknownEnum) {
|
|
251
|
+
list.add(value);
|
|
399
252
|
}
|
|
400
|
-
|
|
401
|
-
readChild(child, json, ctx);
|
|
402
|
-
message[localName] = toLocal(child);
|
|
403
|
-
};
|
|
253
|
+
}
|
|
404
254
|
}
|
|
405
|
-
function
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
throw new error_js_1.FieldError(field, "expected Array, got " + (0, reflect_check_js_1.formatVal)(json));
|
|
414
|
-
}
|
|
415
|
-
const items = message[localName];
|
|
416
|
-
for (let i = 0; i < json.length; i++) {
|
|
417
|
-
const value = readItem(json[i], ctx, items.length);
|
|
418
|
-
if (value !== tokenIgnoredUnknownEnum) {
|
|
419
|
-
items.push(value);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
};
|
|
255
|
+
function readMessageField(msg, field, json, ctx) {
|
|
256
|
+
if (isResetSentinelNullValue(field, json)) {
|
|
257
|
+
msg.clear(field);
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
const msgValue = msg.isSet(field) ? msg.get(field) : (0, reflect_js_1.reflect)(field.message);
|
|
261
|
+
readMessage(msgValue, json, ctx);
|
|
262
|
+
msg.set(field, msgValue);
|
|
423
263
|
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
const checkValue = (0, reflect_check_js_1.checkScalarValue)(field.scalar);
|
|
433
|
-
const toLocal = compileScalarToLocal(field);
|
|
434
|
-
return (json, ctx, index) => {
|
|
435
|
-
if (json === null) {
|
|
436
|
-
throw new error_js_1.FieldError(field, "list item must not be null");
|
|
437
|
-
}
|
|
438
|
-
const value = parseScalar(json);
|
|
439
|
-
const check = checkValue(value);
|
|
440
|
-
if (check !== true) {
|
|
441
|
-
throw new error_js_1.FieldError(field, `list item #${index + 1}: ${(0, reflect_check_js_1.reasonSingular)(field, value, check)}`);
|
|
442
|
-
}
|
|
443
|
-
return toLocal(value);
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
case "enum": {
|
|
447
|
-
const readEnumValue = compileEnumConverter(field.enum);
|
|
448
|
-
const checkEnum = compileEnumCheck(field.enum);
|
|
449
|
-
const nullResets = field.enum.typeName != "google.protobuf.NullValue";
|
|
450
|
-
return (json, ctx, index) => {
|
|
451
|
-
if (json === null && nullResets) {
|
|
452
|
-
throw new error_js_1.FieldError(field, "list item must not be null");
|
|
453
|
-
}
|
|
454
|
-
const value = readEnumValue(json, ctx.ignoreUnknownFields);
|
|
455
|
-
if (value === tokenIgnoredUnknownEnum) {
|
|
456
|
-
return value;
|
|
457
|
-
}
|
|
458
|
-
const check = checkEnum(value);
|
|
459
|
-
if (check !== true) {
|
|
460
|
-
throw new error_js_1.FieldError(field, `list item #${index + 1}: ${(0, reflect_check_js_1.reasonSingular)(field, value, check)}`);
|
|
461
|
-
}
|
|
462
|
-
return value;
|
|
463
|
-
};
|
|
464
|
-
}
|
|
465
|
-
case "message": {
|
|
466
|
-
const { toMessage, toLocal } = (0, message_js_1.localMessageMapper)(field);
|
|
467
|
-
const readChild = compiledReader(field.message);
|
|
468
|
-
const nullResets = field.message.typeName != "google.protobuf.Value";
|
|
469
|
-
return (json, ctx) => {
|
|
470
|
-
if (json === null && nullResets) {
|
|
471
|
-
throw new error_js_1.FieldError(field, "list item must not be null");
|
|
472
|
-
}
|
|
473
|
-
const child = toMessage(undefined);
|
|
474
|
-
readChild(child, json, ctx);
|
|
475
|
-
return toLocal(child);
|
|
476
|
-
};
|
|
477
|
-
}
|
|
264
|
+
function readEnumField(msg, field, json, ctx) {
|
|
265
|
+
if (isResetSentinelNullValue(field, json)) {
|
|
266
|
+
msg.clear(field);
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
const enumValue = readEnum(field.enum, json, ctx.ignoreUnknownFields);
|
|
270
|
+
if (enumValue !== tokenIgnoredUnknownEnum) {
|
|
271
|
+
msg.set(field, enumValue);
|
|
478
272
|
}
|
|
479
273
|
}
|
|
480
|
-
function
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
// Additional validation for scalar and enum values, matching the checks
|
|
487
|
-
// of the reflect API. Message values need no validation.
|
|
488
|
-
let checkValue;
|
|
489
|
-
let toLocalValue = (value) => value;
|
|
490
|
-
// Fields with google.protobuf.Value or google.protobuf.NullValue values
|
|
491
|
-
// permit a Protobuf-serializable null.
|
|
492
|
-
let nullResets = true;
|
|
493
|
-
switch (field.mapKind) {
|
|
494
|
-
case "scalar": {
|
|
495
|
-
parseValue = compileScalarParse(field);
|
|
496
|
-
checkValue = (0, reflect_check_js_1.checkScalarValue)(field.scalar);
|
|
497
|
-
toLocalValue = compileScalarToLocal(field);
|
|
498
|
-
break;
|
|
499
|
-
}
|
|
500
|
-
case "enum": {
|
|
501
|
-
const readEnumValue = compileEnumConverter(field.enum);
|
|
502
|
-
parseValue = (json, ctx) => readEnumValue(json, ctx.ignoreUnknownFields);
|
|
503
|
-
checkValue = compileEnumCheck(field.enum);
|
|
504
|
-
nullResets = field.enum.typeName != "google.protobuf.NullValue";
|
|
505
|
-
break;
|
|
506
|
-
}
|
|
507
|
-
case "message": {
|
|
508
|
-
const { toMessage, toLocal } = (0, message_js_1.localMessageMapper)(field);
|
|
509
|
-
const readChild = compiledReader(field.message);
|
|
510
|
-
nullResets = field.message.typeName != "google.protobuf.Value";
|
|
511
|
-
parseValue = (json, ctx) => {
|
|
512
|
-
const child = toMessage(undefined);
|
|
513
|
-
readChild(child, json, ctx);
|
|
514
|
-
return toLocal(child);
|
|
515
|
-
};
|
|
516
|
-
break;
|
|
517
|
-
}
|
|
274
|
+
function readScalarField(msg, field, json) {
|
|
275
|
+
if (json === null) {
|
|
276
|
+
msg.clear(field);
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
msg.set(field, scalarFromJson(field, json));
|
|
518
280
|
}
|
|
519
|
-
return (message, json, ctx) => {
|
|
520
|
-
if (json === null) {
|
|
521
|
-
return;
|
|
522
|
-
}
|
|
523
|
-
if (typeof json != "object" || Array.isArray(json)) {
|
|
524
|
-
throw new error_js_1.FieldError(field, "expected object, got " + (0, reflect_check_js_1.formatVal)(json));
|
|
525
|
-
}
|
|
526
|
-
const record = message[localName];
|
|
527
|
-
const seen = new Set();
|
|
528
|
-
const jsonMapKeys = Object.keys(json);
|
|
529
|
-
for (let i = 0; i < jsonMapKeys.length; i++) {
|
|
530
|
-
const jsonMapKey = jsonMapKeys[i];
|
|
531
|
-
const jsonMapValue = json[jsonMapKey];
|
|
532
|
-
const key = parseMapKey(jsonMapKey);
|
|
533
|
-
if (seen.has(key)) {
|
|
534
|
-
throw new error_js_1.FieldError(field, `duplicate map key "${jsonMapKey}"`);
|
|
535
|
-
}
|
|
536
|
-
seen.add(key);
|
|
537
|
-
if (jsonMapValue === null && nullResets) {
|
|
538
|
-
throw new error_js_1.FieldError(field, "map value must not be null");
|
|
539
|
-
}
|
|
540
|
-
const value = parseValue(jsonMapValue, ctx);
|
|
541
|
-
if (value === tokenIgnoredUnknownEnum) {
|
|
542
|
-
continue;
|
|
543
|
-
}
|
|
544
|
-
const checkKey = checkMapKey(key);
|
|
545
|
-
if (checkKey !== true) {
|
|
546
|
-
throw new error_js_1.FieldError(field, `invalid map key: ${(0, reflect_check_js_1.reasonSingular)({ scalar: mapKey }, key, checkKey)}`);
|
|
547
|
-
}
|
|
548
|
-
if (checkValue !== undefined) {
|
|
549
|
-
const check = checkValue(value);
|
|
550
|
-
if (check !== true) {
|
|
551
|
-
throw new error_js_1.FieldError(field, `map entry ${(0, reflect_check_js_1.formatVal)(key)}: ${(0, reflect_check_js_1.reasonSingular)(field, value, check)}`);
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
// Object property keys are always strings or symbols. Assigning with a
|
|
555
|
-
// boolean, number, or bigint key implicitly converts it to a string.
|
|
556
|
-
record[key] = toLocalValue(value);
|
|
557
|
-
}
|
|
558
|
-
};
|
|
559
281
|
}
|
|
560
|
-
const tokenIgnoredUnknownEnum = Symbol();
|
|
561
282
|
/**
|
|
562
|
-
*
|
|
563
|
-
*
|
|
564
|
-
*
|
|
565
|
-
*
|
|
283
|
+
* Indicates whether a value is a sentinel for reseting a field.
|
|
284
|
+
*
|
|
285
|
+
* For this to be true, the value must be a JSON null and the field must not
|
|
286
|
+
* permit a present, Protobuf-serializable null.
|
|
287
|
+
*
|
|
288
|
+
* Only message google.protobuf.Value and enum google.protobuf.NullValue fields
|
|
289
|
+
* permit Protobuf-serializable nulls.
|
|
290
|
+
*
|
|
291
|
+
* Note that field-resetting sentinel nulls are not permitted in lists and maps.
|
|
566
292
|
*/
|
|
567
|
-
function
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
return zero;
|
|
573
|
-
}
|
|
574
|
-
switch (typeof json) {
|
|
575
|
-
case "number":
|
|
576
|
-
if (Number.isInteger(json)) {
|
|
577
|
-
return json;
|
|
578
|
-
}
|
|
579
|
-
break;
|
|
580
|
-
case "string": {
|
|
581
|
-
const value = values.find((ev) => ev.name === json);
|
|
582
|
-
if (value !== undefined) {
|
|
583
|
-
return value.number;
|
|
584
|
-
}
|
|
585
|
-
if (ignoreUnknownFields) {
|
|
586
|
-
return tokenIgnoredUnknownEnum;
|
|
587
|
-
}
|
|
588
|
-
break;
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
throw new Error(`cannot decode ${desc} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`);
|
|
592
|
-
};
|
|
293
|
+
function isResetSentinelNullValue(field, json) {
|
|
294
|
+
var _a, _b;
|
|
295
|
+
return (json === null &&
|
|
296
|
+
((_a = field.message) === null || _a === void 0 ? void 0 : _a.typeName) != "google.protobuf.Value" &&
|
|
297
|
+
((_b = field.enum) === null || _b === void 0 ? void 0 : _b.typeName) != "google.protobuf.NullValue");
|
|
593
298
|
}
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
function compileEnumCheck(desc) {
|
|
599
|
-
if (desc.open) {
|
|
600
|
-
return (0, reflect_check_js_1.checkScalarValue)(descriptors_js_1.ScalarType.INT32);
|
|
299
|
+
const tokenIgnoredUnknownEnum = Symbol();
|
|
300
|
+
function readEnum(desc, json, ignoreUnknownFields) {
|
|
301
|
+
if (json === null) {
|
|
302
|
+
return desc.values[0].number;
|
|
601
303
|
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
}
|
|
620
|
-
return toLocal(value);
|
|
621
|
-
};
|
|
304
|
+
switch (typeof json) {
|
|
305
|
+
case "number":
|
|
306
|
+
if (Number.isInteger(json)) {
|
|
307
|
+
return json;
|
|
308
|
+
}
|
|
309
|
+
break;
|
|
310
|
+
case "string":
|
|
311
|
+
const value = desc.values.find((ev) => ev.name === json);
|
|
312
|
+
if (value !== undefined) {
|
|
313
|
+
return value.number;
|
|
314
|
+
}
|
|
315
|
+
if (ignoreUnknownFields) {
|
|
316
|
+
return tokenIgnoredUnknownEnum;
|
|
317
|
+
}
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
throw new Error(`cannot decode ${desc} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`);
|
|
622
321
|
}
|
|
623
322
|
/**
|
|
624
|
-
*
|
|
625
|
-
*
|
|
626
|
-
*
|
|
627
|
-
*
|
|
323
|
+
* Try to parse a JSON value to a scalar value for the reflect API.
|
|
324
|
+
*
|
|
325
|
+
* Returns the input if the JSON value cannot be converted. Raises a FieldError
|
|
326
|
+
* if conversion would be ambiguous.
|
|
628
327
|
*/
|
|
629
|
-
function
|
|
328
|
+
function scalarFromJson(field, json) {
|
|
329
|
+
// int64, sfixed64, sint64, fixed64, uint64: Reflect supports string and number.
|
|
330
|
+
// string, bool: Supported by reflect.
|
|
630
331
|
switch (field.scalar) {
|
|
631
332
|
// float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity".
|
|
632
333
|
// Either numbers or strings are accepted. Exponent notation is also accepted.
|
|
633
334
|
case descriptors_js_1.ScalarType.DOUBLE:
|
|
634
335
|
case descriptors_js_1.ScalarType.FLOAT:
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
if (
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
throw new error_js_1.FieldError(field, "unexpected NaN number");
|
|
646
|
-
}
|
|
647
|
-
if (!Number.isFinite(json)) {
|
|
648
|
-
// Infinity must be encoded with string constants
|
|
649
|
-
throw new error_js_1.FieldError(field, "unexpected infinite number");
|
|
650
|
-
}
|
|
651
|
-
return json;
|
|
336
|
+
if (json === "NaN")
|
|
337
|
+
return NaN;
|
|
338
|
+
if (json === "Infinity")
|
|
339
|
+
return Number.POSITIVE_INFINITY;
|
|
340
|
+
if (json === "-Infinity")
|
|
341
|
+
return Number.NEGATIVE_INFINITY;
|
|
342
|
+
if (typeof json == "number") {
|
|
343
|
+
if (Number.isNaN(json)) {
|
|
344
|
+
// NaN must be encoded with string constants
|
|
345
|
+
throw new error_js_1.FieldError(field, "unexpected NaN number");
|
|
652
346
|
}
|
|
653
|
-
if (
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
return json;
|
|
657
|
-
}
|
|
658
|
-
if (json.trim().length !== json.length) {
|
|
659
|
-
// extra whitespace
|
|
660
|
-
return json;
|
|
661
|
-
}
|
|
662
|
-
const float = Number(json);
|
|
663
|
-
if (!Number.isFinite(float)) {
|
|
664
|
-
// Infinity and NaN must be encoded with string constants
|
|
665
|
-
return json;
|
|
666
|
-
}
|
|
667
|
-
return float;
|
|
347
|
+
if (!Number.isFinite(json)) {
|
|
348
|
+
// Infinity must be encoded with string constants
|
|
349
|
+
throw new error_js_1.FieldError(field, "unexpected infinite number");
|
|
668
350
|
}
|
|
669
|
-
|
|
670
|
-
}
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
if (typeof json == "string") {
|
|
354
|
+
if (json === "") {
|
|
355
|
+
// empty string is not a number
|
|
356
|
+
break;
|
|
357
|
+
}
|
|
358
|
+
if (json.trim().length !== json.length) {
|
|
359
|
+
// extra whitespace
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
const float = Number(json);
|
|
363
|
+
if (!Number.isFinite(float)) {
|
|
364
|
+
// Infinity and NaN must be encoded with string constants
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
367
|
+
return float;
|
|
368
|
+
}
|
|
369
|
+
break;
|
|
671
370
|
// int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.
|
|
672
371
|
case descriptors_js_1.ScalarType.INT32:
|
|
673
372
|
case descriptors_js_1.ScalarType.FIXED32:
|
|
674
373
|
case descriptors_js_1.ScalarType.SFIXED32:
|
|
675
374
|
case descriptors_js_1.ScalarType.SINT32:
|
|
676
375
|
case descriptors_js_1.ScalarType.UINT32:
|
|
677
|
-
return int32FromJson;
|
|
376
|
+
return int32FromJson(json);
|
|
678
377
|
// bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.
|
|
679
378
|
// Either standard or URL-safe base64 encoding with/without paddings are accepted.
|
|
680
379
|
case descriptors_js_1.ScalarType.BYTES:
|
|
681
|
-
|
|
682
|
-
if (
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
throw new error_js_1.FieldError(field, message);
|
|
692
|
-
}
|
|
380
|
+
if (typeof json == "string") {
|
|
381
|
+
if (json === "") {
|
|
382
|
+
return new Uint8Array(0);
|
|
383
|
+
}
|
|
384
|
+
try {
|
|
385
|
+
return (0, base64_encoding_js_1.base64Decode)(json);
|
|
386
|
+
}
|
|
387
|
+
catch (e) {
|
|
388
|
+
const message = e instanceof Error ? e.message : String(e);
|
|
389
|
+
throw new error_js_1.FieldError(field, message);
|
|
693
390
|
}
|
|
694
|
-
return json;
|
|
695
|
-
};
|
|
696
|
-
// int64, sfixed64, sint64, fixed64, uint64: The validation step accepts
|
|
697
|
-
// string and number. string, bool: no conversion.
|
|
698
|
-
default:
|
|
699
|
-
return (json) => json;
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
/**
|
|
703
|
-
* Compile the conversion of a validated scalar value to its local
|
|
704
|
-
* representation: 64-bit integers become bigint, or string with the
|
|
705
|
-
* longAsString option.
|
|
706
|
-
*/
|
|
707
|
-
function compileScalarToLocal(field) {
|
|
708
|
-
const longAsString = field.fieldKind !== "map" && field.longAsString;
|
|
709
|
-
switch (field.scalar) {
|
|
710
|
-
case descriptors_js_1.ScalarType.INT64:
|
|
711
|
-
case descriptors_js_1.ScalarType.SFIXED64:
|
|
712
|
-
case descriptors_js_1.ScalarType.SINT64:
|
|
713
|
-
if (longAsString) {
|
|
714
|
-
return (value) => String(value);
|
|
715
|
-
}
|
|
716
|
-
return (value) => typeof value == "string" || typeof value == "number"
|
|
717
|
-
? proto_int64_js_1.protoInt64.parse(value)
|
|
718
|
-
: value;
|
|
719
|
-
case descriptors_js_1.ScalarType.FIXED64:
|
|
720
|
-
case descriptors_js_1.ScalarType.UINT64:
|
|
721
|
-
if (longAsString) {
|
|
722
|
-
return (value) => String(value);
|
|
723
391
|
}
|
|
724
|
-
|
|
725
|
-
? proto_int64_js_1.protoInt64.uParse(value)
|
|
726
|
-
: value;
|
|
727
|
-
default:
|
|
728
|
-
return (value) => value;
|
|
392
|
+
break;
|
|
729
393
|
}
|
|
394
|
+
return json;
|
|
730
395
|
}
|
|
731
396
|
/**
|
|
732
|
-
*
|
|
733
|
-
* Canonicalizes 64-bit integers given as string, so that "01
|
|
734
|
-
*
|
|
735
|
-
*
|
|
397
|
+
* Try to parse a JSON value to a map key for the reflect API.
|
|
398
|
+
* Canonicalizes 64-bit integers given as string, so that "01 and "1" are one
|
|
399
|
+
* key, and duplicates can raise an error.
|
|
400
|
+
* Returns the input if the JSON value cannot be converted.
|
|
736
401
|
*/
|
|
737
|
-
function
|
|
402
|
+
function mapKeyFromJson(type, jsonString) {
|
|
738
403
|
switch (type) {
|
|
739
404
|
case descriptors_js_1.ScalarType.BOOL:
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
return jsonString;
|
|
748
|
-
};
|
|
405
|
+
switch (jsonString) {
|
|
406
|
+
case "true":
|
|
407
|
+
return true;
|
|
408
|
+
case "false":
|
|
409
|
+
return false;
|
|
410
|
+
}
|
|
411
|
+
return jsonString;
|
|
749
412
|
case descriptors_js_1.ScalarType.INT32:
|
|
750
413
|
case descriptors_js_1.ScalarType.FIXED32:
|
|
751
414
|
case descriptors_js_1.ScalarType.UINT32:
|
|
752
415
|
case descriptors_js_1.ScalarType.SFIXED32:
|
|
753
416
|
case descriptors_js_1.ScalarType.SINT32:
|
|
754
|
-
return int32FromJson;
|
|
417
|
+
return int32FromJson(jsonString);
|
|
755
418
|
case descriptors_js_1.ScalarType.INT64:
|
|
756
419
|
case descriptors_js_1.ScalarType.SINT64:
|
|
757
420
|
case descriptors_js_1.ScalarType.SFIXED64:
|
|
758
421
|
case descriptors_js_1.ScalarType.UINT64:
|
|
759
422
|
case descriptors_js_1.ScalarType.FIXED64:
|
|
760
|
-
return
|
|
423
|
+
return /^-?0+$/.test(jsonString)
|
|
761
424
|
? "0"
|
|
762
425
|
: jsonString.replace(/^(-?)0+(?=\d)/, "$1");
|
|
763
426
|
default:
|
|
764
|
-
|
|
765
|
-
return (jsonString) => jsonString;
|
|
427
|
+
return jsonString;
|
|
766
428
|
}
|
|
767
429
|
}
|
|
768
430
|
/**
|
|
@@ -882,6 +544,46 @@ function checkDuplicateKeys(jsonString, typeName) {
|
|
|
882
544
|
}
|
|
883
545
|
}
|
|
884
546
|
}
|
|
547
|
+
function tryWktFromJson(msg, jsonValue, ctx) {
|
|
548
|
+
if (!msg.desc.typeName.startsWith("google.protobuf.")) {
|
|
549
|
+
return false;
|
|
550
|
+
}
|
|
551
|
+
switch (msg.desc.typeName) {
|
|
552
|
+
case "google.protobuf.Any":
|
|
553
|
+
anyFromJson(msg.message, jsonValue, ctx);
|
|
554
|
+
return true;
|
|
555
|
+
case "google.protobuf.Timestamp":
|
|
556
|
+
timestampFromJson(msg.message, jsonValue);
|
|
557
|
+
return true;
|
|
558
|
+
case "google.protobuf.Duration":
|
|
559
|
+
durationFromJson(msg.message, jsonValue);
|
|
560
|
+
return true;
|
|
561
|
+
case "google.protobuf.FieldMask":
|
|
562
|
+
fieldMaskFromJson(msg.message, jsonValue);
|
|
563
|
+
return true;
|
|
564
|
+
case "google.protobuf.Struct":
|
|
565
|
+
structFromJson(msg.message, jsonValue, ctx);
|
|
566
|
+
return true;
|
|
567
|
+
case "google.protobuf.Value":
|
|
568
|
+
valueFromJson(msg.message, jsonValue, ctx);
|
|
569
|
+
return true;
|
|
570
|
+
case "google.protobuf.ListValue":
|
|
571
|
+
listValueFromJson(msg.message, jsonValue, ctx);
|
|
572
|
+
return true;
|
|
573
|
+
default:
|
|
574
|
+
if ((0, index_js_1.isWrapperDesc)(msg.desc)) {
|
|
575
|
+
const valueField = msg.desc.fields[0];
|
|
576
|
+
if (jsonValue === null) {
|
|
577
|
+
msg.clear(valueField);
|
|
578
|
+
}
|
|
579
|
+
else {
|
|
580
|
+
msg.set(valueField, scalarFromJson(valueField, jsonValue));
|
|
581
|
+
}
|
|
582
|
+
return true;
|
|
583
|
+
}
|
|
584
|
+
return false;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
885
587
|
function anyFromJson(any, json, ctx) {
|
|
886
588
|
var _a;
|
|
887
589
|
if (json === null || Array.isArray(json) || typeof json != "object") {
|
|
@@ -904,18 +606,19 @@ function anyFromJson(any, json, ctx) {
|
|
|
904
606
|
if (!desc) {
|
|
905
607
|
throw new Error(`cannot decode message ${any.$typeName} from JSON: ${typeUrl} is not in the type registry`);
|
|
906
608
|
}
|
|
907
|
-
const
|
|
609
|
+
const msg = (0, reflect_js_1.reflect)(desc);
|
|
908
610
|
if ((0, index_js_1.hasCustomJsonRepresentation)(desc) &&
|
|
909
611
|
Object.prototype.hasOwnProperty.call(json, "value")) {
|
|
910
|
-
|
|
612
|
+
const value = json.value;
|
|
613
|
+
readMessage(msg, value, ctx);
|
|
911
614
|
}
|
|
912
615
|
else {
|
|
913
616
|
const copy = Object.assign({}, json);
|
|
914
617
|
// biome-ignore lint/performance/noDelete: <explanation>
|
|
915
618
|
delete copy["@type"];
|
|
916
|
-
|
|
619
|
+
readMessage(msg, copy, ctx);
|
|
917
620
|
}
|
|
918
|
-
(0, index_js_1.anyPack)(desc, message, any);
|
|
621
|
+
(0, index_js_1.anyPack)(msg.desc, msg.message, any);
|
|
919
622
|
}
|
|
920
623
|
function timestampFromJson(timestamp, json) {
|
|
921
624
|
if (typeof json !== "string") {
|
|
@@ -931,7 +634,8 @@ function timestampFromJson(timestamp, json) {
|
|
|
931
634
|
if (Number.isNaN(ms)) {
|
|
932
635
|
throw new Error(`cannot decode message ${timestamp.$typeName} from JSON: invalid RFC 3339 string`);
|
|
933
636
|
}
|
|
934
|
-
if (ms <
|
|
637
|
+
if (ms < Date.parse("0001-01-01T00:00:00Z") ||
|
|
638
|
+
ms > Date.parse("9999-12-31T23:59:59Z")) {
|
|
935
639
|
throw new Error(`cannot decode message ${timestamp.$typeName} from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`);
|
|
936
640
|
}
|
|
937
641
|
timestamp.seconds = proto_int64_js_1.protoInt64.parse(ms / 1000);
|
|
@@ -951,7 +655,7 @@ function durationFromJson(duration, json) {
|
|
|
951
655
|
throw new Error(`cannot decode message ${duration.$typeName} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`);
|
|
952
656
|
}
|
|
953
657
|
const longSeconds = Number(match[1]);
|
|
954
|
-
if (longSeconds >
|
|
658
|
+
if (longSeconds > 315576000000 || longSeconds < -315576000000) {
|
|
955
659
|
throw new Error(`cannot decode message ${duration.$typeName} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`);
|
|
956
660
|
}
|
|
957
661
|
duration.seconds = proto_int64_js_1.protoInt64.parse(longSeconds);
|
|
@@ -982,12 +686,10 @@ function structFromJson(struct, json, ctx) {
|
|
|
982
686
|
if (typeof json != "object" || json == null || Array.isArray(json)) {
|
|
983
687
|
throw new Error(`cannot decode message ${struct.$typeName} from JSON ${(0, reflect_check_js_1.formatVal)(json)}`);
|
|
984
688
|
}
|
|
985
|
-
const
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
valueFromJson(parsedValue, json[key], ctx);
|
|
990
|
-
struct.fields[key] = parsedValue;
|
|
689
|
+
for (const [k, v] of Object.entries(json)) {
|
|
690
|
+
const parsedV = (0, create_js_1.create)(index_js_1.ValueSchema);
|
|
691
|
+
valueFromJson(parsedV, v, ctx);
|
|
692
|
+
struct.fields[k] = parsedV;
|
|
991
693
|
}
|
|
992
694
|
}
|
|
993
695
|
function valueFromJson(value, json, ctx) {
|
|
@@ -1029,9 +731,9 @@ function listValueFromJson(listValue, json, ctx) {
|
|
|
1029
731
|
if (!Array.isArray(json)) {
|
|
1030
732
|
throw new Error(`cannot decode message ${listValue.$typeName} from JSON ${(0, reflect_check_js_1.formatVal)(json)}`);
|
|
1031
733
|
}
|
|
1032
|
-
for (
|
|
734
|
+
for (const e of json) {
|
|
1033
735
|
const value = (0, create_js_1.create)(index_js_1.ValueSchema);
|
|
1034
|
-
valueFromJson(value,
|
|
736
|
+
valueFromJson(value, e, ctx);
|
|
1035
737
|
listValue.values.push(value);
|
|
1036
738
|
}
|
|
1037
739
|
}
|