@code-yeongyu/senpi 2026.8.19 → 2026.8.20-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +133 -0
- package/dist/cli-main.js +4 -0
- package/dist/cli-main.js.map +1 -1
- package/dist/cli.js +31 -3
- package/dist/cli.js.map +1 -1
- package/dist/compile-cache.d.ts +2 -0
- package/dist/compile-cache.d.ts.map +1 -0
- package/dist/compile-cache.js +33 -0
- package/dist/compile-cache.js.map +1 -0
- package/dist/core/agent-session.d.ts +5 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +94 -12
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +6 -0
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +13 -0
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/cursor-exec-bridge-session.d.ts +2 -1
- package/dist/core/cursor-exec-bridge-session.d.ts.map +1 -1
- package/dist/core/cursor-exec-bridge-session.js +5 -2
- package/dist/core/cursor-exec-bridge-session.js.map +1 -1
- package/dist/core/cursor-exec-bridge.d.ts +9 -1
- package/dist/core/cursor-exec-bridge.d.ts.map +1 -1
- package/dist/core/cursor-exec-bridge.js +26 -2
- package/dist/core/cursor-exec-bridge.js.map +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/custom-tools.d.ts +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/custom-tools.d.ts.map +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/custom-tools.js +5 -2
- package/dist/core/extensions/builtin/claude-sdk-oauth/custom-tools.js.map +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/sdk-boundary.d.ts +6 -4
- package/dist/core/extensions/builtin/claude-sdk-oauth/sdk-boundary.d.ts.map +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/sdk-boundary.js +24 -2
- package/dist/core/extensions/builtin/claude-sdk-oauth/sdk-boundary.js.map +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/sdk-boundary.lazy.d.ts +39 -0
- package/dist/core/extensions/builtin/claude-sdk-oauth/sdk-boundary.lazy.d.ts.map +1 -0
- package/dist/core/extensions/builtin/claude-sdk-oauth/sdk-boundary.lazy.js +31 -0
- package/dist/core/extensions/builtin/claude-sdk-oauth/sdk-boundary.lazy.js.map +1 -0
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-continuity.d.ts +2 -0
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-continuity.d.ts.map +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-continuity.js +35 -0
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-continuity.js.map +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-observability.d.ts +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-observability.d.ts.map +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-observability.js +1 -0
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-observability.js.map +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-reattach.d.ts +8 -0
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-reattach.d.ts.map +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-reattach.js +4 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-reattach.js.map +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-turn-attempt.d.ts.map +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-turn-attempt.js +28 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/session-turn-attempt.js.map +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/stream.d.ts.map +1 -1
- package/dist/core/extensions/builtin/claude-sdk-oauth/stream.js +5 -2
- package/dist/core/extensions/builtin/claude-sdk-oauth/stream.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/index.js +5 -0
- package/dist/core/extensions/builtin/compaction/index.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/log.d.ts +1 -1
- package/dist/core/extensions/builtin/compaction/log.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/log.js +1 -0
- package/dist/core/extensions/builtin/compaction/log.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/speculative.d.ts +1 -0
- package/dist/core/extensions/builtin/compaction/speculative.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/speculative.js +4 -0
- package/dist/core/extensions/builtin/compaction/speculative.js.map +1 -1
- package/dist/core/extensions/builtin/config-reload/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/config-reload/index.js +13 -10
- package/dist/core/extensions/builtin/config-reload/index.js.map +1 -1
- package/dist/core/extensions/builtin/config-reload/watch-engine.d.ts +8 -1
- package/dist/core/extensions/builtin/config-reload/watch-engine.d.ts.map +1 -1
- package/dist/core/extensions/builtin/config-reload/watch-engine.js +98 -18
- package/dist/core/extensions/builtin/config-reload/watch-engine.js.map +1 -1
- package/dist/core/extensions/builtin/config-reload/watch-event-source.d.ts +1 -1
- package/dist/core/extensions/builtin/config-reload/watch-event-source.d.ts.map +1 -1
- package/dist/core/extensions/builtin/config-reload/watch-event-source.js +7 -2
- package/dist/core/extensions/builtin/config-reload/watch-event-source.js.map +1 -1
- package/dist/core/extensions/builtin/goal/elapsed-ticker.d.ts.map +1 -1
- package/dist/core/extensions/builtin/goal/elapsed-ticker.js +15 -1
- package/dist/core/extensions/builtin/goal/elapsed-ticker.js.map +1 -1
- package/dist/core/extensions/builtin/goal/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/goal/index.js +7 -22
- package/dist/core/extensions/builtin/goal/index.js.map +1 -1
- package/dist/core/extensions/builtin/goal/stale-context.d.ts +9 -0
- package/dist/core/extensions/builtin/goal/stale-context.d.ts.map +1 -0
- package/dist/core/extensions/builtin/goal/stale-context.js +11 -0
- package/dist/core/extensions/builtin/goal/stale-context.js.map +1 -0
- package/dist/core/extensions/builtin/goal/wait-ticker.d.ts +8 -0
- package/dist/core/extensions/builtin/goal/wait-ticker.d.ts.map +1 -1
- package/dist/core/extensions/builtin/goal/wait-ticker.js +37 -3
- package/dist/core/extensions/builtin/goal/wait-ticker.js.map +1 -1
- package/dist/core/extensions/builtin/mcp/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/mcp/index.js +12 -1
- package/dist/core/extensions/builtin/mcp/index.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-url-widget.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-url-widget.js +7 -15
- package/dist/core/extensions/builtin/prompt-url-widget.js.map +1 -1
- package/dist/core/extensions/builtin/rules/ui/rules-banner.d.ts.map +1 -1
- package/dist/core/extensions/builtin/rules/ui/rules-banner.js +21 -25
- package/dist/core/extensions/builtin/rules/ui/rules-banner.js.map +1 -1
- package/dist/core/extensions/builtin/todotools/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/todotools/index.js +20 -0
- package/dist/core/extensions/builtin/todotools/index.js.map +1 -1
- package/dist/core/extensions/builtin/todotools/native-todo-mirror.d.ts +3 -0
- package/dist/core/extensions/builtin/todotools/native-todo-mirror.d.ts.map +1 -0
- package/dist/core/extensions/builtin/todotools/native-todo-mirror.js +22 -0
- package/dist/core/extensions/builtin/todotools/native-todo-mirror.js.map +1 -0
- package/dist/core/extensions/builtin/webfetch/webfetch/content.lazy.d.ts +17 -0
- package/dist/core/extensions/builtin/webfetch/webfetch/content.lazy.d.ts.map +1 -0
- package/dist/core/extensions/builtin/webfetch/webfetch/content.lazy.js +22 -0
- package/dist/core/extensions/builtin/webfetch/webfetch/content.lazy.js.map +1 -0
- package/dist/core/extensions/builtin/webfetch/webfetch/tool.js +3 -3
- package/dist/core/extensions/builtin/webfetch/webfetch/tool.js.map +1 -1
- package/dist/core/messages.d.ts +9 -2
- package/dist/core/messages.d.ts.map +1 -1
- package/dist/core/messages.js +13 -18
- package/dist/core/messages.js.map +1 -1
- package/dist/core/retry-fallback/hint-policy.d.ts +3 -2
- package/dist/core/retry-fallback/hint-policy.d.ts.map +1 -1
- package/dist/core/retry-fallback/hint-policy.js +19 -8
- package/dist/core/retry-fallback/hint-policy.js.map +1 -1
- package/dist/core/retry-fallback/settings.js.map +1 -1
- package/dist/core/session-discovery.d.ts +16 -0
- package/dist/core/session-discovery.d.ts.map +1 -0
- package/dist/core/session-discovery.js +101 -0
- package/dist/core/session-discovery.js.map +1 -0
- package/dist/core/session-manager.d.ts +2 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +4 -170
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/session-record.d.ts +14 -0
- package/dist/core/session-record.d.ts.map +1 -0
- package/dist/core/session-record.js +47 -0
- package/dist/core/session-record.js.map +1 -0
- package/dist/core/session-summary-cache.d.ts +40 -0
- package/dist/core/session-summary-cache.d.ts.map +1 -0
- package/dist/core/session-summary-cache.js +79 -0
- package/dist/core/session-summary-cache.js.map +1 -0
- package/dist/core/session-summary-lru.d.ts +54 -0
- package/dist/core/session-summary-lru.d.ts.map +1 -0
- package/dist/core/session-summary-lru.js +72 -0
- package/dist/core/session-summary-lru.js.map +1 -0
- package/dist/core/session-summary.d.ts +29 -0
- package/dist/core/session-summary.d.ts.map +1 -0
- package/dist/core/session-summary.js +90 -0
- package/dist/core/session-summary.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/inspector-policy.d.ts +6 -0
- package/dist/inspector-policy.d.ts.map +1 -1
- package/dist/inspector-policy.js +6 -1
- package/dist/inspector-policy.js.map +1 -1
- package/dist/modes/interactive/components/earendil-announcement.d.ts.map +1 -1
- package/dist/modes/interactive/components/earendil-announcement.js +8 -8
- package/dist/modes/interactive/components/earendil-announcement.js.map +1 -1
- package/dist/modes/interactive/components/progressive-transcript-container.d.ts +72 -0
- package/dist/modes/interactive/components/progressive-transcript-container.d.ts.map +1 -0
- package/dist/modes/interactive/components/progressive-transcript-container.js +150 -0
- package/dist/modes/interactive/components/progressive-transcript-container.js.map +1 -0
- package/dist/modes/interactive/components/status-indicator.d.ts +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
- package/dist/modes/interactive/components/status-indicator.js +8 -2
- package/dist/modes/interactive/components/status-indicator.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +4 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +127 -65
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/split-trailing-assistant-text.d.ts +7 -0
- package/dist/modes/interactive/split-trailing-assistant-text.d.ts.map +1 -0
- package/dist/modes/interactive/split-trailing-assistant-text.js +19 -0
- package/dist/modes/interactive/split-trailing-assistant-text.js.map +1 -0
- package/dist/senpi +31 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js +38 -13
- 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 +34 -12
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/commands/ConverseCommand.d.ts +29 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/commands/ConverseStreamCommand.d.ts +15 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/commands/CountTokensCommand.d.ts +14 -0
- 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 +119 -1
- 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 +3 -0
- 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 +76 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-types/ts3.4/runtimeConfig.browser.d.ts +70 -72
- 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 +86 -88
- 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 +3 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +14 -14
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1328 -411
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +8 -5
- 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/JsonSettings.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonCodec.js → codec-v1/JsonCodec.js} +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeDeserializer.js → codec-v1/JsonShapeDeserializer.js} +6 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeSerializer.js → codec-v1/JsonShapeSerializer.js} +8 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +103 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +20 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.js → codec-v2/JsonShapeDeserializer2.js} +38 -18
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.js → codec-v2/JsonShapeSerializer2.js} +107 -71
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +93 -9
- 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 +9 -6
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +3 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +3 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +4 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +5 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +4 -8
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +3 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +3 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.d.ts → codec-v2/JsonShapeDeserializer2.d.ts} +4 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.d.ts → codec-v2/JsonShapeSerializer2.d.ts} +19 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +4 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +61 -21
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +13 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +4 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +5 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +16 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +4 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +107 -47
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +112 -39
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +107 -48
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +13 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +25 -35
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +14 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +2 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +16 -20
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +21 -44
- 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 +2 -5
- 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 +8 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +14 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +7 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +6 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +6 -12
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +6 -7
- 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 +4 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +2 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +28 -38
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +647 -638
- 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 +29 -56
- 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 +6 -1
- 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 +12 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +4 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +7 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +7 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +15 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +10 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +3 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +14 -28
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +4 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +9 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +39 -44
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +1 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +1 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +4 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +23 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +13 -38
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +57 -133
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +32 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +32 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +1 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +1 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +2 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +1 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +6 -26
- 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 +1 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +5 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +40 -74
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +9 -24
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +36 -25
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +3 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +5 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +30 -22
- 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 +50 -29
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +52 -36
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +1 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +11 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +18 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +27 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +9 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +15 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +39 -0
- 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/jsonReplacer.d.ts +7 -21
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +7 -15
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +2 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +14 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +18 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +57 -49
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +7 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +21 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +47 -31
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +17 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +15 -20
- 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 +4 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +1 -6
- 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 +14 -32
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +4 -2
- 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/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 +35 -28
- package/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js +35 -28
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/LoginCredentialsFetcher.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/LoginCredentialsFetcher.d.ts +1 -0
- 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 +64 -66
- 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 +68 -70
- 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 +67 -69
- 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 +71 -73
- 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 +64 -66
- 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 +68 -70
- 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 +64 -66
- 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 +68 -70
- 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 +68 -70
- 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 +72 -74
- 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/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 +12 -15
- package/node_modules/@bufbuild/protobuf/dist/commonjs/create.js +199 -162
- package/node_modules/@bufbuild/protobuf/dist/commonjs/from-binary.js +321 -153
- package/node_modules/@bufbuild/protobuf/dist/commonjs/from-json.js +601 -303
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/message.d.ts +49 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/message.js +157 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.d.ts +27 -1
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.js +80 -56
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect.js +3 -80
- package/node_modules/@bufbuild/protobuf/dist/commonjs/registry.js +12 -3
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-binary.d.ts +4 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-binary.js +365 -127
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-json.js +393 -159
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/base64-encoding.d.ts +3 -1
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/base64-encoding.js +40 -8
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.d.ts +37 -19
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.js +281 -85
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/index.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/index.js +4 -1
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-encoding.d.ts +19 -2
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-encoding.js +47 -13
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/varint.d.ts +4 -4
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/varint.js +35 -23
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/json.d.ts +28 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/json.js +44 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/wrappers.js +12 -12
- package/node_modules/@bufbuild/protobuf/dist/esm/create.js +199 -162
- package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +321 -153
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +602 -304
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/message.d.ts +49 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/message.js +152 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.d.ts +27 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +79 -57
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +1 -78
- package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +12 -3
- package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.d.ts +4 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +365 -127
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +393 -159
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.d.ts +3 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +40 -8
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.d.ts +37 -19
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +283 -87
- 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 +19 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +46 -13
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.d.ts +4 -4
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +35 -23
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/json.d.ts +28 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/json.js +41 -0
- 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 +24 -0
- package/node_modules/@code-yeongyu/senpi-codemode/package.json +4 -4
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +38 -3
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/assistant-terminal-state.d.ts +8 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/assistant-terminal-state.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/assistant-terminal-state.js +25 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/assistant-terminal-state.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/package.json +6 -6
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.d.ts +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.js +284 -209
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-conversation-rotation.d.ts +37 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-conversation-rotation.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-conversation-rotation.js +110 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-conversation-rotation.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-task-args.d.ts +3 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-task-args.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-task-args.js +17 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cursor-task-args.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/cursor/selection-descriptor.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/cursor/selection-descriptor.js +27 -11
- package/node_modules/@earendil-works/pi-ai/dist/cursor/selection-descriptor.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/index.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts +30 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +33 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +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 +1562 -339
- 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 +17 -13
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +0 -10
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -205
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +113 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +103 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +621 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +602 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +5 -1
- 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 +3 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +6 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +8 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +0 -2
- package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -27
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
- package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
- 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 +14 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +7 -2
- 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 +5 -27
- 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/codec-v1/CborShapeDeserializer.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
- 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 +14 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +7 -2
- 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 +4 -11
- package/node_modules/@smithy/credential-provider-imds/package.json +4 -12
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -13
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +9 -2
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +9 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/package.json +5 -13
- 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 +4 -12
- package/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +14 -14
- package/node_modules/@smithy/types/package.json +29 -39
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/child_process.d.ts +0 -1
- 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 +7 -0
- package/node_modules/@types/node/http.d.ts +30 -0
- 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 +2 -1
- package/node_modules/@types/node/process.d.ts +42 -43
- package/node_modules/@types/node/quic.d.ts +1049 -84
- package/node_modules/@types/node/sqlite.d.ts +14 -1
- package/node_modules/@types/node/stream/iter.d.ts +3 -2
- package/node_modules/@types/node/test.d.ts +61 -0
- package/node_modules/@types/node/v8.d.ts +20 -23
- package/package.json +36 -36
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +0 -19
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +0 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +0 -28
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +0 -29
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +0 -57
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/LICENSE +0 -201
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/README.md +0 -9
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +0 -840
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +0 -19
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/constants.js +0 -1
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +0 -9
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +0 -50
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/index.js +0 -3
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +0 -241
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +0 -136
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +0 -46
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +0 -173
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +0 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-https.js +0 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -36
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +0 -21
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -22
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -23
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/timing.js +0 -4
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +0 -63
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +0 -10
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +0 -5
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +0 -4
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +0 -46
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +0 -3
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +0 -47
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -46
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +0 -36
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +0 -76
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +0 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +0 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +0 -6
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +0 -6
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +0 -9
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +0 -10
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +0 -5
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +0 -4
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/http2/ClientHttp2SessionRef.d.ts +0 -46
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +0 -3
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +0 -47
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +0 -46
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +0 -36
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +0 -76
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2.d.ts +0 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-https.d.ts +0 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +0 -6
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -6
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +0 -9
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -12
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +0 -12
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +0 -64
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/LICENSE +0 -201
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/README.md +0 -9
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +0 -840
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +0 -19
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/constants.js +0 -1
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +0 -9
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +0 -50
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/index.js +0 -3
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +0 -241
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +0 -136
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +0 -46
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +0 -173
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-https.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -36
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +0 -21
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -22
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -23
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/timing.js +0 -4
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +0 -63
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +0 -10
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +0 -5
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +0 -4
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +0 -46
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +0 -3
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +0 -47
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -46
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +0 -36
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +0 -76
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +0 -6
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +0 -6
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +0 -9
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +0 -10
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +0 -5
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +0 -4
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/http2/ClientHttp2SessionRef.d.ts +0 -46
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +0 -3
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +0 -47
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +0 -46
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +0 -36
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +0 -76
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-https.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +0 -6
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -6
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +0 -9
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -12
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +0 -12
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +0 -64
|
@@ -22,13 +22,18 @@ 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");
|
|
26
25
|
const error_js_1 = require("./reflect/error.js");
|
|
27
26
|
const reflect_check_js_1 = require("./reflect/reflect-check.js");
|
|
28
27
|
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");
|
|
29
31
|
const base64_encoding_js_1 = require("./wire/base64-encoding.js");
|
|
30
32
|
const index_js_1 = require("./wkt/index.js");
|
|
31
33
|
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;
|
|
32
37
|
function makeReadContext(options) {
|
|
33
38
|
return Object.assign(Object.assign({ ignoreUnknownFields: false, recursionLimit: 100 }, options), { depth: 0 });
|
|
34
39
|
}
|
|
@@ -62,20 +67,9 @@ function mergeFromJsonString(schema, target, json, options) {
|
|
|
62
67
|
* duplicate-key checking.
|
|
63
68
|
*/
|
|
64
69
|
function fromJson(schema, json, options) {
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
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;
|
|
70
|
+
const message = (0, create_js_1.create)(schema);
|
|
71
|
+
readMessage(schema, message, json, options);
|
|
72
|
+
return message;
|
|
79
73
|
}
|
|
80
74
|
/**
|
|
81
75
|
* Parse a message from a JSON value, merging fields into the target.
|
|
@@ -90,8 +84,20 @@ function fromJson(schema, json, options) {
|
|
|
90
84
|
* for strict checking.
|
|
91
85
|
*/
|
|
92
86
|
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) {
|
|
93
99
|
try {
|
|
94
|
-
|
|
100
|
+
compiledReader(schema)(message, json, makeReadContext(options));
|
|
95
101
|
}
|
|
96
102
|
catch (e) {
|
|
97
103
|
if ((0, error_js_1.isFieldError)(e)) {
|
|
@@ -102,13 +108,14 @@ function mergeFromJson(schema, target, json, options) {
|
|
|
102
108
|
}
|
|
103
109
|
throw e;
|
|
104
110
|
}
|
|
105
|
-
return target;
|
|
106
111
|
}
|
|
107
112
|
/**
|
|
108
113
|
* Parses an enum value from JSON.
|
|
109
114
|
*/
|
|
110
115
|
function enumFromJson(descEnum, json) {
|
|
111
|
-
|
|
116
|
+
// With ignoreUnknownFields false, the converter never returns the token
|
|
117
|
+
// for ignored unknown enum values.
|
|
118
|
+
return compileEnumConverter(descEnum)(json, false);
|
|
112
119
|
}
|
|
113
120
|
/**
|
|
114
121
|
* Is the given value a JSON enum value?
|
|
@@ -116,315 +123,646 @@ function enumFromJson(descEnum, json) {
|
|
|
116
123
|
function isEnumJson(descEnum, value) {
|
|
117
124
|
return undefined !== descEnum.values.find((v) => v.name === value);
|
|
118
125
|
}
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
messageJsonFields.set(desc, jsonNames);
|
|
126
|
+
const compiledReaders = new WeakMap();
|
|
127
|
+
/**
|
|
128
|
+
* Return the compiled decoder for a message, compiling it on first use.
|
|
129
|
+
*/
|
|
130
|
+
function compiledReader(desc) {
|
|
131
|
+
let compiled = compiledReaders.get(desc);
|
|
132
|
+
if (compiled === undefined) {
|
|
133
|
+
compiled = compileMessage(desc);
|
|
128
134
|
}
|
|
129
|
-
return
|
|
135
|
+
return compiled;
|
|
130
136
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
ctx
|
|
138
|
-
|
|
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");
|
|
137
|
+
function compileMessage(desc) {
|
|
138
|
+
const descString = String(desc);
|
|
139
|
+
const readWkt = compileWkt(desc);
|
|
140
|
+
if (readWkt !== undefined) {
|
|
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`);
|
|
153
146
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
147
|
+
readWkt(message, json, ctx);
|
|
148
|
+
ctx.depth--;
|
|
149
|
+
};
|
|
150
|
+
compiledReaders.set(desc, compiled);
|
|
151
|
+
return compiled;
|
|
152
|
+
}
|
|
153
|
+
const typeName = desc.typeName;
|
|
154
|
+
// Fields are looked up by their proto name and their JSON name.
|
|
155
|
+
const fieldsByJsonKey = new Map();
|
|
156
|
+
const compiled = (message, json, ctx) => {
|
|
157
|
+
var _a;
|
|
158
|
+
if (++ctx.depth > ctx.recursionLimit) {
|
|
159
|
+
throw new Error(`cannot decode ${descString} from JSON: maximum recursion depth of ${ctx.recursionLimit} reached`);
|
|
160
|
+
}
|
|
161
|
+
if (json == null || Array.isArray(json) || typeof json != "object") {
|
|
162
|
+
throw new Error(`cannot decode ${descString} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`);
|
|
163
|
+
}
|
|
164
|
+
const oneofSeen = new Map();
|
|
165
|
+
const fieldSeen = new Set();
|
|
166
|
+
const jsonKeys = Object.keys(json);
|
|
167
|
+
for (let i = 0; i < jsonKeys.length; i++) {
|
|
168
|
+
const jsonKey = jsonKeys[i];
|
|
169
|
+
const jsonValue = json[jsonKey];
|
|
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);
|
|
158
191
|
}
|
|
159
|
-
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
|
|
192
|
+
else {
|
|
193
|
+
const extension = jsonKey.startsWith("[") && jsonKey.endsWith("]")
|
|
194
|
+
? (_a = ctx.registry) === null || _a === void 0 ? void 0 : _a.getExtension(jsonKey.substring(1, jsonKey.length - 1))
|
|
195
|
+
: undefined;
|
|
196
|
+
if ((extension === null || extension === void 0 ? void 0 : extension.extendee.typeName) == typeName) {
|
|
197
|
+
const [container, field, get] = (0, extensions_js_1.createExtensionContainer)(extension);
|
|
198
|
+
compileFieldReader(field)(container[unsafe_js_1.unsafeLocal], jsonValue, ctx);
|
|
199
|
+
(0, extensions_js_1.setExtension)(message, extension, get());
|
|
200
|
+
}
|
|
201
|
+
if (extension === undefined && !ctx.ignoreUnknownFields) {
|
|
202
|
+
throw new Error(`cannot decode ${descString} from JSON: key "${jsonKey}" is unknown`);
|
|
163
203
|
}
|
|
164
|
-
oneofSeen.set(field.oneof, field);
|
|
165
204
|
}
|
|
166
|
-
readField(msg, field, jsonValue, ctx);
|
|
167
205
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
206
|
+
ctx.depth--;
|
|
207
|
+
};
|
|
208
|
+
// Register before compiling fields, so that recursive message types
|
|
209
|
+
// resolve to this instance instead of compiling endlessly.
|
|
210
|
+
compiledReaders.set(desc, compiled);
|
|
211
|
+
for (const field of desc.fields) {
|
|
212
|
+
const entry = {
|
|
213
|
+
read: compileFieldReader(field),
|
|
214
|
+
field,
|
|
215
|
+
oneof: field.oneof,
|
|
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
|
+
};
|
|
181
261
|
}
|
|
182
|
-
|
|
262
|
+
return undefined;
|
|
183
263
|
}
|
|
184
|
-
ctx.depth--;
|
|
185
264
|
}
|
|
186
|
-
function
|
|
265
|
+
function compileFieldReader(field) {
|
|
187
266
|
switch (field.fieldKind) {
|
|
188
267
|
case "scalar":
|
|
189
|
-
|
|
190
|
-
break;
|
|
268
|
+
return compileScalarFieldReader(field);
|
|
191
269
|
case "enum":
|
|
192
|
-
|
|
193
|
-
break;
|
|
270
|
+
return compileEnumFieldReader(field);
|
|
194
271
|
case "message":
|
|
195
|
-
|
|
196
|
-
break;
|
|
272
|
+
return compileMessageFieldReader(field);
|
|
197
273
|
case "list":
|
|
198
|
-
|
|
199
|
-
break;
|
|
274
|
+
return compileListFieldReader(field);
|
|
200
275
|
case "map":
|
|
201
|
-
|
|
202
|
-
break;
|
|
276
|
+
return compileMapFieldReader(field);
|
|
203
277
|
}
|
|
204
278
|
}
|
|
205
|
-
function
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
|
|
279
|
+
function compileScalarFieldReader(field) {
|
|
280
|
+
const readScalar = compileScalarConverter(field);
|
|
281
|
+
const localName = field.localName;
|
|
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
|
+
};
|
|
213
291
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
function readMapField(map, json, ctx) {
|
|
220
|
-
if (json === null) {
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
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}"`);
|
|
292
|
+
const clear = compileClear(field);
|
|
293
|
+
return (message, json) => {
|
|
294
|
+
if (json === null) {
|
|
295
|
+
clear(message);
|
|
232
296
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
if (value !== tokenIgnoredUnknownEnum) {
|
|
236
|
-
map.set(key, value);
|
|
297
|
+
else {
|
|
298
|
+
message[localName] = readScalar(json);
|
|
237
299
|
}
|
|
238
|
-
}
|
|
300
|
+
};
|
|
239
301
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
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
|
+
};
|
|
247
315
|
}
|
|
248
|
-
|
|
249
|
-
const
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}
|
|
316
|
+
if (field.fieldKind == "enum") {
|
|
317
|
+
const zero = field.enum.values[0].number;
|
|
318
|
+
return (message) => {
|
|
319
|
+
message[localName] = zero;
|
|
320
|
+
};
|
|
253
321
|
}
|
|
322
|
+
const scalar = field.scalar;
|
|
323
|
+
const longAsString = field.longAsString;
|
|
324
|
+
return (message) => {
|
|
325
|
+
message[localName] = (0, scalar_js_1.scalarZeroValue)(scalar, longAsString);
|
|
326
|
+
};
|
|
254
327
|
}
|
|
255
|
-
function
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
328
|
+
function compileEnumFieldReader(field) {
|
|
329
|
+
const readEnumValue = compileEnumConverter(field.enum);
|
|
330
|
+
const checkEnum = compileEnumCheck(field.enum);
|
|
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
|
+
};
|
|
259
355
|
}
|
|
260
|
-
const
|
|
261
|
-
|
|
262
|
-
|
|
356
|
+
const clear = compileClear(field);
|
|
357
|
+
return (message, json, ctx) => {
|
|
358
|
+
if (json === null && nullResets) {
|
|
359
|
+
clear(message);
|
|
360
|
+
return;
|
|
361
|
+
}
|
|
362
|
+
const value = readEnumValue(json, ctx.ignoreUnknownFields);
|
|
363
|
+
if (value === tokenIgnoredUnknownEnum) {
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
const check = checkEnum(value);
|
|
367
|
+
if (check !== true) {
|
|
368
|
+
throw new error_js_1.FieldError(field, (0, reflect_check_js_1.reasonSingular)(field, value, check));
|
|
369
|
+
}
|
|
370
|
+
message[localName] = value;
|
|
371
|
+
};
|
|
263
372
|
}
|
|
264
|
-
function
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
373
|
+
function compileMessageFieldReader(field) {
|
|
374
|
+
const localName = field.localName;
|
|
375
|
+
const { toMessage, toLocal } = (0, message_js_1.localMessageMapper)(field);
|
|
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
|
+
};
|
|
272
394
|
}
|
|
395
|
+
return (message, json, ctx) => {
|
|
396
|
+
if (json === null && nullResets) {
|
|
397
|
+
delete message[localName];
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
400
|
+
const child = toMessage(message[localName]);
|
|
401
|
+
readChild(child, json, ctx);
|
|
402
|
+
message[localName] = toLocal(child);
|
|
403
|
+
};
|
|
273
404
|
}
|
|
274
|
-
function
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
405
|
+
function compileListFieldReader(field) {
|
|
406
|
+
const localName = field.localName;
|
|
407
|
+
const readItem = compileListItemReader(field);
|
|
408
|
+
return (message, json, ctx) => {
|
|
409
|
+
if (json === null) {
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
if (!Array.isArray(json)) {
|
|
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
|
+
};
|
|
281
423
|
}
|
|
282
424
|
/**
|
|
283
|
-
*
|
|
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.
|
|
425
|
+
* Compile a decoder for a list item. The index is only used in errors, and
|
|
426
|
+
* accounts for previously merged items.
|
|
292
427
|
*/
|
|
293
|
-
function
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
428
|
+
function compileListItemReader(field) {
|
|
429
|
+
switch (field.listKind) {
|
|
430
|
+
case "scalar": {
|
|
431
|
+
const parseScalar = compileScalarParse(field);
|
|
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
|
+
}
|
|
478
|
+
}
|
|
298
479
|
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
480
|
+
function compileMapFieldReader(field) {
|
|
481
|
+
const localName = field.localName;
|
|
482
|
+
const mapKey = field.mapKey;
|
|
483
|
+
const parseMapKey = compileMapKeyParse(mapKey);
|
|
484
|
+
const checkMapKey = (0, reflect_check_js_1.checkScalarValue)(mapKey);
|
|
485
|
+
let parseValue;
|
|
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
|
+
}
|
|
303
518
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
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}"`);
|
|
308
535
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
if (value !== undefined) {
|
|
313
|
-
return value.number;
|
|
536
|
+
seen.add(key);
|
|
537
|
+
if (jsonMapValue === null && nullResets) {
|
|
538
|
+
throw new error_js_1.FieldError(field, "map value must not be null");
|
|
314
539
|
}
|
|
315
|
-
|
|
316
|
-
|
|
540
|
+
const value = parseValue(jsonMapValue, ctx);
|
|
541
|
+
if (value === tokenIgnoredUnknownEnum) {
|
|
542
|
+
continue;
|
|
317
543
|
}
|
|
318
|
-
|
|
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
|
+
}
|
|
560
|
+
const tokenIgnoredUnknownEnum = Symbol();
|
|
561
|
+
/**
|
|
562
|
+
* Compile a converter from a JSON value to an enum value. JSON null returns
|
|
563
|
+
* the enum's first value. With ignoreUnknownFields false, unknown string
|
|
564
|
+
* values raise an error; with true, they return tokenIgnoredUnknownEnum.
|
|
565
|
+
* The value is not checked against the enum's values, see compileEnumCheck.
|
|
566
|
+
*/
|
|
567
|
+
function compileEnumConverter(desc) {
|
|
568
|
+
const zero = desc.values[0].number;
|
|
569
|
+
const values = desc.values;
|
|
570
|
+
return (json, ignoreUnknownFields) => {
|
|
571
|
+
if (json === null) {
|
|
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
|
+
};
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Compile the check that the reflect API performs for enum values: open
|
|
596
|
+
* enums accept any int32 value, closed enums accept only declared values.
|
|
597
|
+
*/
|
|
598
|
+
function compileEnumCheck(desc) {
|
|
599
|
+
if (desc.open) {
|
|
600
|
+
return (0, reflect_check_js_1.checkScalarValue)(descriptors_js_1.ScalarType.INT32);
|
|
319
601
|
}
|
|
320
|
-
|
|
602
|
+
const values = desc.values;
|
|
603
|
+
return (value) => values.some((v) => v.number === value);
|
|
321
604
|
}
|
|
322
605
|
/**
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
|
|
606
|
+
* Compile a converter from a JSON value to the local representation of a
|
|
607
|
+
* scalar, fusing JSON parsing, the validation of the reflect API, and the
|
|
608
|
+
* conversion to the local 64-bit integer representation.
|
|
609
|
+
*/
|
|
610
|
+
function compileScalarConverter(field) {
|
|
611
|
+
const parseScalar = compileScalarParse(field);
|
|
612
|
+
const checkValue = (0, reflect_check_js_1.checkScalarValue)(field.scalar);
|
|
613
|
+
const toLocal = compileScalarToLocal(field);
|
|
614
|
+
return (json) => {
|
|
615
|
+
const value = parseScalar(json);
|
|
616
|
+
const check = checkValue(value);
|
|
617
|
+
if (check !== true) {
|
|
618
|
+
throw new error_js_1.FieldError(field, (0, reflect_check_js_1.reasonSingular)(field, value, check));
|
|
619
|
+
}
|
|
620
|
+
return toLocal(value);
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* Compile the JSON-specific parsing step for a scalar value: the special
|
|
625
|
+
* string values of float and double, string-encoded numbers, and base64
|
|
626
|
+
* bytes. Returns the input unchanged if the JSON value cannot be converted;
|
|
627
|
+
* the validation step raises an error for it.
|
|
327
628
|
*/
|
|
328
|
-
function
|
|
329
|
-
// int64, sfixed64, sint64, fixed64, uint64: Reflect supports string and number.
|
|
330
|
-
// string, bool: Supported by reflect.
|
|
629
|
+
function compileScalarParse(field) {
|
|
331
630
|
switch (field.scalar) {
|
|
332
631
|
// float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity".
|
|
333
632
|
// Either numbers or strings are accepted. Exponent notation is also accepted.
|
|
334
633
|
case descriptors_js_1.ScalarType.DOUBLE:
|
|
335
634
|
case descriptors_js_1.ScalarType.FLOAT:
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
if (
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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;
|
|
635
|
+
return (json) => {
|
|
636
|
+
if (json === "NaN")
|
|
637
|
+
return NaN;
|
|
638
|
+
if (json === "Infinity")
|
|
639
|
+
return Number.POSITIVE_INFINITY;
|
|
640
|
+
if (json === "-Infinity")
|
|
641
|
+
return Number.NEGATIVE_INFINITY;
|
|
642
|
+
if (typeof json == "number") {
|
|
643
|
+
if (Number.isNaN(json)) {
|
|
644
|
+
// NaN must be encoded with string constants
|
|
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;
|
|
361
652
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
653
|
+
if (typeof json == "string") {
|
|
654
|
+
if (json === "") {
|
|
655
|
+
// empty string is not a number
|
|
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;
|
|
366
668
|
}
|
|
367
|
-
return
|
|
368
|
-
}
|
|
369
|
-
break;
|
|
669
|
+
return json;
|
|
670
|
+
};
|
|
370
671
|
// int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.
|
|
371
672
|
case descriptors_js_1.ScalarType.INT32:
|
|
372
673
|
case descriptors_js_1.ScalarType.FIXED32:
|
|
373
674
|
case descriptors_js_1.ScalarType.SFIXED32:
|
|
374
675
|
case descriptors_js_1.ScalarType.SINT32:
|
|
375
676
|
case descriptors_js_1.ScalarType.UINT32:
|
|
376
|
-
return int32FromJson
|
|
677
|
+
return int32FromJson;
|
|
377
678
|
// bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.
|
|
378
679
|
// Either standard or URL-safe base64 encoding with/without paddings are accepted.
|
|
379
680
|
case descriptors_js_1.ScalarType.BYTES:
|
|
380
|
-
|
|
381
|
-
if (json
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
681
|
+
return (json) => {
|
|
682
|
+
if (typeof json == "string") {
|
|
683
|
+
if (json === "") {
|
|
684
|
+
return new Uint8Array(0);
|
|
685
|
+
}
|
|
686
|
+
try {
|
|
687
|
+
return (0, base64_encoding_js_1.base64Decode)(json);
|
|
688
|
+
}
|
|
689
|
+
catch (e) {
|
|
690
|
+
const message = e instanceof Error ? e.message : String(e);
|
|
691
|
+
throw new error_js_1.FieldError(field, message);
|
|
692
|
+
}
|
|
390
693
|
}
|
|
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);
|
|
391
715
|
}
|
|
392
|
-
|
|
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
|
+
}
|
|
724
|
+
return (value) => typeof value == "string" || typeof value == "number"
|
|
725
|
+
? proto_int64_js_1.protoInt64.uParse(value)
|
|
726
|
+
: value;
|
|
727
|
+
default:
|
|
728
|
+
return (value) => value;
|
|
393
729
|
}
|
|
394
|
-
return json;
|
|
395
730
|
}
|
|
396
731
|
/**
|
|
397
|
-
*
|
|
398
|
-
* Canonicalizes 64-bit integers given as string, so that "01 and "1" are
|
|
399
|
-
* key, and duplicates can raise an error.
|
|
400
|
-
*
|
|
732
|
+
* Return a parser from a JSON value to a map key for the given key type.
|
|
733
|
+
* Canonicalizes 64-bit integers given as string, so that "01" and "1" are
|
|
734
|
+
* one key, and duplicates can raise an error.
|
|
735
|
+
* The parser returns the input if the JSON value cannot be converted.
|
|
401
736
|
*/
|
|
402
|
-
function
|
|
737
|
+
function compileMapKeyParse(type) {
|
|
403
738
|
switch (type) {
|
|
404
739
|
case descriptors_js_1.ScalarType.BOOL:
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
740
|
+
return (jsonString) => {
|
|
741
|
+
switch (jsonString) {
|
|
742
|
+
case "true":
|
|
743
|
+
return true;
|
|
744
|
+
case "false":
|
|
745
|
+
return false;
|
|
746
|
+
}
|
|
747
|
+
return jsonString;
|
|
748
|
+
};
|
|
412
749
|
case descriptors_js_1.ScalarType.INT32:
|
|
413
750
|
case descriptors_js_1.ScalarType.FIXED32:
|
|
414
751
|
case descriptors_js_1.ScalarType.UINT32:
|
|
415
752
|
case descriptors_js_1.ScalarType.SFIXED32:
|
|
416
753
|
case descriptors_js_1.ScalarType.SINT32:
|
|
417
|
-
return int32FromJson
|
|
754
|
+
return int32FromJson;
|
|
418
755
|
case descriptors_js_1.ScalarType.INT64:
|
|
419
756
|
case descriptors_js_1.ScalarType.SINT64:
|
|
420
757
|
case descriptors_js_1.ScalarType.SFIXED64:
|
|
421
758
|
case descriptors_js_1.ScalarType.UINT64:
|
|
422
759
|
case descriptors_js_1.ScalarType.FIXED64:
|
|
423
|
-
return /^-?0+$/.test(jsonString)
|
|
760
|
+
return (jsonString) => /^-?0+$/.test(jsonString)
|
|
424
761
|
? "0"
|
|
425
762
|
: jsonString.replace(/^(-?)0+(?=\d)/, "$1");
|
|
426
763
|
default:
|
|
427
|
-
|
|
764
|
+
// ScalarType.STRING
|
|
765
|
+
return (jsonString) => jsonString;
|
|
428
766
|
}
|
|
429
767
|
}
|
|
430
768
|
/**
|
|
@@ -544,46 +882,6 @@ function checkDuplicateKeys(jsonString, typeName) {
|
|
|
544
882
|
}
|
|
545
883
|
}
|
|
546
884
|
}
|
|
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
|
-
}
|
|
587
885
|
function anyFromJson(any, json, ctx) {
|
|
588
886
|
var _a;
|
|
589
887
|
if (json === null || Array.isArray(json) || typeof json != "object") {
|
|
@@ -606,19 +904,18 @@ function anyFromJson(any, json, ctx) {
|
|
|
606
904
|
if (!desc) {
|
|
607
905
|
throw new Error(`cannot decode message ${any.$typeName} from JSON: ${typeUrl} is not in the type registry`);
|
|
608
906
|
}
|
|
609
|
-
const
|
|
907
|
+
const message = (0, create_js_1.create)(desc);
|
|
610
908
|
if ((0, index_js_1.hasCustomJsonRepresentation)(desc) &&
|
|
611
909
|
Object.prototype.hasOwnProperty.call(json, "value")) {
|
|
612
|
-
|
|
613
|
-
readMessage(msg, value, ctx);
|
|
910
|
+
compiledReader(desc)(message, json.value, ctx);
|
|
614
911
|
}
|
|
615
912
|
else {
|
|
616
913
|
const copy = Object.assign({}, json);
|
|
617
914
|
// biome-ignore lint/performance/noDelete: <explanation>
|
|
618
915
|
delete copy["@type"];
|
|
619
|
-
|
|
916
|
+
compiledReader(desc)(message, copy, ctx);
|
|
620
917
|
}
|
|
621
|
-
(0, index_js_1.anyPack)(
|
|
918
|
+
(0, index_js_1.anyPack)(desc, message, any);
|
|
622
919
|
}
|
|
623
920
|
function timestampFromJson(timestamp, json) {
|
|
624
921
|
if (typeof json !== "string") {
|
|
@@ -634,8 +931,7 @@ function timestampFromJson(timestamp, json) {
|
|
|
634
931
|
if (Number.isNaN(ms)) {
|
|
635
932
|
throw new Error(`cannot decode message ${timestamp.$typeName} from JSON: invalid RFC 3339 string`);
|
|
636
933
|
}
|
|
637
|
-
if (ms <
|
|
638
|
-
ms > Date.parse("9999-12-31T23:59:59Z")) {
|
|
934
|
+
if (ms < json_js_1.timestampMsMin || ms > json_js_1.timestampMsMax) {
|
|
639
935
|
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`);
|
|
640
936
|
}
|
|
641
937
|
timestamp.seconds = proto_int64_js_1.protoInt64.parse(ms / 1000);
|
|
@@ -655,7 +951,7 @@ function durationFromJson(duration, json) {
|
|
|
655
951
|
throw new Error(`cannot decode message ${duration.$typeName} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`);
|
|
656
952
|
}
|
|
657
953
|
const longSeconds = Number(match[1]);
|
|
658
|
-
if (longSeconds >
|
|
954
|
+
if (longSeconds > json_js_1.durationSecondsMax || longSeconds < json_js_1.durationSecondsMin) {
|
|
659
955
|
throw new Error(`cannot decode message ${duration.$typeName} from JSON: ${(0, reflect_check_js_1.formatVal)(json)}`);
|
|
660
956
|
}
|
|
661
957
|
duration.seconds = proto_int64_js_1.protoInt64.parse(longSeconds);
|
|
@@ -686,10 +982,12 @@ function structFromJson(struct, json, ctx) {
|
|
|
686
982
|
if (typeof json != "object" || json == null || Array.isArray(json)) {
|
|
687
983
|
throw new Error(`cannot decode message ${struct.$typeName} from JSON ${(0, reflect_check_js_1.formatVal)(json)}`);
|
|
688
984
|
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
985
|
+
const keys = Object.keys(json);
|
|
986
|
+
for (let i = 0; i < keys.length; i++) {
|
|
987
|
+
const key = keys[i];
|
|
988
|
+
const parsedValue = (0, create_js_1.create)(index_js_1.ValueSchema);
|
|
989
|
+
valueFromJson(parsedValue, json[key], ctx);
|
|
990
|
+
struct.fields[key] = parsedValue;
|
|
693
991
|
}
|
|
694
992
|
}
|
|
695
993
|
function valueFromJson(value, json, ctx) {
|
|
@@ -731,9 +1029,9 @@ function listValueFromJson(listValue, json, ctx) {
|
|
|
731
1029
|
if (!Array.isArray(json)) {
|
|
732
1030
|
throw new Error(`cannot decode message ${listValue.$typeName} from JSON ${(0, reflect_check_js_1.formatVal)(json)}`);
|
|
733
1031
|
}
|
|
734
|
-
for (
|
|
1032
|
+
for (let i = 0; i < json.length; i++) {
|
|
735
1033
|
const value = (0, create_js_1.create)(index_js_1.ValueSchema);
|
|
736
|
-
valueFromJson(value,
|
|
1034
|
+
valueFromJson(value, json[i], ctx);
|
|
737
1035
|
listValue.values.push(value);
|
|
738
1036
|
}
|
|
739
1037
|
}
|