@floegence/flowersec-core 5.10.5 → 6.0.0
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/README.md +170 -58
- package/THIRD_PARTY_NOTICES.md +3070 -5
- package/dist/application/rpcJSON.d.ts +15 -0
- package/dist/{rpc/validate.js → application/rpcJSON.js} +1 -1
- package/dist/browser/clientV4.d.ts +61 -0
- package/dist/browser/clientV4.js +179 -0
- package/dist/browser/index.d.ts +15 -8
- package/dist/browser/index.js +5 -3
- package/dist/browser/indexedDBPoolV4.d.ts +101 -0
- package/dist/browser/indexedDBPoolV4.js +634 -0
- package/dist/browser/liveHTTPSV4.d.ts +35 -0
- package/dist/browser/liveHTTPSV4.js +162 -0
- package/dist/browser/localBrowserBridge.d.ts +20 -0
- package/dist/browser/localBrowserBridge.js +82 -0
- package/dist/browser/poolServerAllow.d.ts +21 -0
- package/dist/browser/poolServerAllow.js +151 -0
- package/dist/browser/webTransportPositionsV4.d.ts +16 -0
- package/dist/browser/webTransportPositionsV4.js +75 -0
- package/dist/browser/webTransportStreamV4.d.ts +36 -0
- package/dist/browser/webTransportStreamV4.js +370 -0
- package/dist/browser/webTransportV4.d.ts +126 -0
- package/dist/browser/webTransportV4.js +627 -0
- package/dist/browser/wssV4.d.ts +69 -0
- package/dist/browser/wssV4.js +339 -0
- package/dist/cli.d.ts +24 -1
- package/dist/cli.js +91 -119
- package/dist/defaults.d.ts +1 -23
- package/dist/defaults.js +1 -23
- package/dist/facade.d.ts +104 -21
- package/dist/facade.js +45 -8
- package/dist/generated/brotliWorker.d.ts +1 -0
- package/dist/generated/brotliWorker.js +3 -0
- package/dist/generated/idna151.d.ts +2 -0
- package/dist/generated/idna151.js +38 -0
- package/dist/generated/normalization151.d.ts +5 -0
- package/dist/generated/normalization151.js +878 -0
- package/dist/generated/sqliteWorkers.d.ts +2 -0
- package/dist/generated/sqliteWorkers.js +3 -0
- package/dist/generated/transportV4APIResults.d.ts +21 -1
- package/dist/generated/transportV4APIResults.js +42 -1
- package/dist/generated/transportV4Registry.d.ts +276 -2
- package/dist/generated/transportV4Registry.js +10 -4
- package/dist/interop/browserRunner.d.ts +72 -0
- package/dist/interop/browserRunner.js +354 -0
- package/dist/interop/currentContracts.d.ts +6 -0
- package/dist/interop/currentContracts.js +14 -0
- package/dist/interop/currentNativeTunnel.d.ts +30 -0
- package/dist/interop/currentNativeTunnel.js +149 -0
- package/dist/interop/currentParity.d.ts +68 -0
- package/dist/interop/currentParity.js +392 -0
- package/dist/interop/currentPeer.d.ts +241 -0
- package/dist/interop/currentPeer.js +630 -0
- package/dist/interop/currentRegisteredTunnelPeer.d.ts +37 -0
- package/dist/interop/currentRegisteredTunnelPeer.js +93 -0
- package/dist/interop/currentRelayPeer.d.ts +118 -0
- package/dist/interop/currentRelayPeer.js +251 -0
- package/dist/interop/currentServer.d.ts +44 -0
- package/dist/interop/currentServer.js +293 -0
- package/dist/interop/currentTLSPin.d.ts +9 -0
- package/dist/interop/currentTLSPin.js +44 -0
- package/dist/interop/currentTunnelMaterial.d.ts +34 -0
- package/dist/interop/currentTunnelMaterial.js +100 -0
- package/dist/interop/httpApplicationPeer.d.ts +15 -0
- package/dist/interop/httpApplicationPeer.js +167 -0
- package/dist/interop/invalidProofPeer.d.ts +8 -0
- package/dist/interop/invalidProofPeer.js +106 -0
- package/dist/interop/proxyServerPeer.js +8 -56
- package/dist/interop/serverParityPeer.d.ts +101 -1
- package/dist/interop/serverParityPeer.js +550 -578
- package/dist/node/acceptorCurrent.d.ts +55 -0
- package/dist/node/acceptorCurrent.js +286 -0
- package/dist/node/admissionRecord.d.ts +23 -0
- package/dist/node/admissionRecord.js +178 -0
- package/dist/node/clientV4.d.ts +59 -0
- package/dist/node/clientV4.js +197 -0
- package/dist/node/endpointDialer.d.ts +70 -0
- package/dist/node/endpointDialer.js +231 -0
- package/dist/node/endpointListener.d.ts +48 -0
- package/dist/node/endpointListener.js +403 -0
- package/dist/node/endpointTransport.d.ts +7 -0
- package/dist/node/endpointTransport.js +18 -0
- package/dist/node/grantIssuerCurrent.d.ts +64 -0
- package/dist/node/grantIssuerCurrent.js +355 -0
- package/dist/node/index.d.ts +52 -18
- package/dist/node/index.js +24 -7
- package/dist/node/liveHTTPSV4.d.ts +26 -0
- package/dist/node/liveHTTPSV4.js +283 -0
- package/dist/node/liveTunnelAuthorityCurrent.d.ts +153 -0
- package/dist/node/liveTunnelAuthorityCurrent.js +590 -0
- package/dist/node/nativeDuplexBridgeV4.d.ts +41 -0
- package/dist/node/nativeDuplexBridgeV4.js +494 -0
- package/dist/node/nativeTransportCurrent.d.ts +196 -0
- package/dist/node/nativeTransportCurrent.js +37 -0
- package/dist/node/poolServerAllow.d.ts +33 -0
- package/dist/node/poolServerAllow.js +277 -0
- package/dist/node/proxyCredentials.d.ts +67 -0
- package/dist/node/proxyCredentials.js +364 -0
- package/dist/node/proxyNetwork.d.ts +18 -0
- package/dist/node/proxyNetwork.js +213 -0
- package/dist/node/proxyServer.d.ts +30 -4
- package/dist/node/proxyServer.js +599 -154
- package/dist/node/rawQUICCurrent.d.ts +139 -0
- package/dist/node/rawQUICCurrent.js +1177 -0
- package/dist/node/registeredLiveTunnelControl.d.ts +74 -0
- package/dist/node/registeredLiveTunnelControl.js +865 -0
- package/dist/node/registeredPoolTunnelAuthority.d.ts +41 -0
- package/dist/node/registeredPoolTunnelAuthority.js +297 -0
- package/dist/node/registeredTunnelControl.d.ts +189 -0
- package/dist/node/registeredTunnelControl.js +1007 -0
- package/dist/node/registeredWinnerContinuation.d.ts +26 -0
- package/dist/node/registeredWinnerContinuation.js +83 -0
- package/dist/node/relayNativePair.d.ts +62 -0
- package/dist/node/relayNativePair.js +737 -0
- package/dist/node/relayRecord.d.ts +57 -0
- package/dist/node/relayRecord.js +275 -0
- package/dist/node/serveRawQUIC.d.ts +58 -0
- package/dist/node/serveRawQUIC.js +331 -0
- package/dist/node/serveWSS.d.ts +58 -0
- package/dist/node/serveWSS.js +309 -0
- package/dist/node/sqliteAdmission.d.ts +100 -0
- package/dist/node/sqliteAdmission.js +1185 -0
- package/dist/node/sqliteExecutionContentV4.d.ts +63 -0
- package/dist/node/sqliteExecutionContentV4.js +251 -0
- package/dist/node/sqliteExecutionV4.d.ts +114 -0
- package/dist/node/sqliteExecutionV4.js +1052 -0
- package/dist/node/sqliteFormat.d.ts +20 -0
- package/dist/node/sqliteFormat.js +72 -0
- package/dist/node/sqliteInspectionV4.d.ts +7 -0
- package/dist/node/sqliteInspectionV4.js +47 -0
- package/dist/node/sqliteNativeV4.d.ts +3 -0
- package/dist/node/sqliteNativeV4.js +16 -0
- package/dist/node/sqlitePoolV4.d.ts +41 -0
- package/dist/node/sqlitePoolV4.js +282 -0
- package/dist/node/sqlitePoolWorkerProgramV4.js +411 -0
- package/dist/node/sqlitePoolWorkerV4.d.ts +67 -0
- package/dist/node/sqlitePoolWorkerV4.js +206 -0
- package/dist/node/sqliteV4.d.ts +82 -0
- package/dist/node/sqliteV4.js +166 -0
- package/dist/node/sqliteWorkerProgramV4.js +175 -0
- package/dist/node/sqliteWorkerV4.d.ts +47 -0
- package/dist/node/sqliteWorkerV4.js +142 -0
- package/dist/node/streamDuplexV4.d.ts +33 -0
- package/dist/node/streamDuplexV4.js +359 -0
- package/dist/node/tunnelListenerPreparation.d.ts +37 -0
- package/dist/node/tunnelListenerPreparation.js +162 -0
- package/dist/node/tunnelRuntime.d.ts +124 -0
- package/dist/node/tunnelRuntime.js +1205 -0
- package/dist/node/webTransportCurrent.d.ts +24 -0
- package/dist/node/webTransportCurrent.js +12 -0
- package/dist/node/wssV4.d.ts +96 -0
- package/dist/node/wssV4.js +822 -0
- package/dist/proxy/admission.d.ts +21 -0
- package/dist/proxy/admission.js +126 -0
- package/dist/proxy/brotliBody.d.ts +10 -0
- package/dist/proxy/brotliBody.js +85 -0
- package/dist/proxy/credentialControl.d.ts +30 -0
- package/dist/proxy/credentialControl.js +86 -0
- package/dist/proxy/currentStream.d.ts +24 -0
- package/dist/proxy/currentStream.js +158 -0
- package/dist/proxy/fetch.d.ts +3 -2
- package/dist/proxy/fetch.js +96 -29
- package/dist/proxy/headers.d.ts +8 -0
- package/dist/proxy/headers.js +63 -0
- package/dist/proxy/index.d.ts +4 -0
- package/dist/proxy/index.js +2 -0
- package/dist/proxy/integration.d.ts +12 -8
- package/dist/proxy/integration.js +23 -16
- package/dist/proxy/policy.d.ts +5 -0
- package/dist/proxy/policy.js +60 -22
- package/dist/proxy/publicationOwner.d.ts +10 -0
- package/dist/proxy/publicationOwner.js +130 -0
- package/dist/proxy/requestAssociation.d.ts +11 -0
- package/dist/proxy/requestAssociation.js +8 -0
- package/dist/proxy/runtime.d.ts +3 -1
- package/dist/proxy/runtime.js +403 -170
- package/dist/proxy/scope.js +2 -2
- package/dist/proxy/serviceWorker.d.ts +3 -0
- package/dist/proxy/serviceWorker.js +634 -176
- package/dist/proxy/serviceWorkerRuntime.js +26 -1
- package/dist/proxy/stream.d.ts +16 -3
- package/dist/proxy/stream.js +6 -0
- package/dist/proxy/surface.d.ts +45 -0
- package/dist/proxy/surface.js +384 -0
- package/dist/proxy/types.d.ts +49 -6
- package/dist/proxy/windowBridge.d.ts +11 -3
- package/dist/proxy/windowBridge.js +68 -25
- package/dist/proxy/wire.d.ts +11 -0
- package/dist/proxy/wire.js +214 -0
- package/dist/proxy/wsPatch.js +13 -6
- package/dist/public/contract.d.ts +0 -71
- package/dist/public/contract.js +0 -8
- package/dist/public/streamKind.d.ts +3 -0
- package/dist/public/streamKind.js +19 -0
- package/dist/public/streamMetadata.d.ts +34 -2
- package/dist/public/streamMetadata.js +206 -13
- package/dist/v4/admissionOffer.d.ts +8 -0
- package/dist/v4/checkpoint.d.ts +23 -0
- package/dist/v4/checkpoint.js +16 -0
- package/dist/v4/clientServices.d.ts +35 -0
- package/dist/v4/clientServices.js +11 -0
- package/dist/v4/connectionDiagnostic.d.ts +42 -0
- package/dist/v4/connectionDiagnostic.js +45 -0
- package/dist/v4/connectionRequirements.d.ts +5 -0
- package/dist/v4/connectionRequirements.js +34 -0
- package/dist/v4/controller.d.ts +122 -0
- package/dist/v4/controller.js +1161 -0
- package/dist/v4/controllerNotifications.d.ts +81 -0
- package/dist/v4/controllerNotifications.js +610 -0
- package/dist/v4/diagnostics.d.ts +44 -0
- package/dist/v4/diagnostics.js +9 -0
- package/dist/v4/drain.d.ts +39 -0
- package/dist/v4/drain.js +80 -0
- package/dist/v4/duplexBridge.d.ts +53 -0
- package/dist/v4/duplexBridge.js +446 -0
- package/dist/v4/entrypoints.d.ts +20 -0
- package/dist/v4/entrypoints.js +50 -0
- package/dist/v4/eventSource.d.ts +34 -0
- package/dist/v4/eventSource.js +28 -0
- package/dist/v4/handlerPlan.d.ts +53 -0
- package/dist/v4/handlerPlan.js +129 -0
- package/dist/v4/liveness.d.ts +20 -0
- package/dist/v4/liveness.js +10 -0
- package/dist/v4/localReport.d.ts +17 -0
- package/dist/v4/localReport.js +10 -0
- package/dist/v4/messageDefinition.d.ts +66 -0
- package/dist/v4/messageDefinition.js +109 -0
- package/dist/v4/messageStream.d.ts +89 -0
- package/dist/v4/messageStream.js +1375 -0
- package/dist/v4/notificationOperation.d.ts +30 -0
- package/dist/v4/notificationOperation.js +31 -0
- package/dist/v4/notificationSubscription.d.ts +47 -0
- package/dist/v4/notificationSubscription.js +24 -0
- package/dist/v4/operationReference.d.ts +28 -0
- package/dist/v4/operationReference.js +61 -0
- package/dist/v4/operationReferenceCodec.d.ts +20 -0
- package/dist/v4/operationReferenceCodec.js +129 -0
- package/dist/v4/operationReferenceStore.d.ts +90 -0
- package/dist/v4/operationReferenceStore.js +272 -0
- package/dist/v4/operationResultRead.d.ts +26 -0
- package/dist/v4/operationResultRead.js +24 -0
- package/dist/v4/poolControl.d.ts +11 -0
- package/dist/v4/poolControl.js +50 -0
- package/dist/v4/poolSource.d.ts +93 -0
- package/dist/v4/poolSource.js +900 -0
- package/dist/v4/public.d.ts +232 -0
- package/dist/v4/public.js +632 -0
- package/dist/v4/responsePublication.d.ts +48 -0
- package/dist/v4/responsePublication.js +227 -0
- package/dist/v4/resume.d.ts +17 -0
- package/dist/v4/resume.js +15 -0
- package/dist/v4/runtime/applicationExecutor.d.ts +190 -0
- package/dist/v4/runtime/applicationExecutor.js +759 -0
- package/dist/v4/runtime/applicationHeader.d.ts +61 -0
- package/dist/v4/runtime/applicationHeader.js +222 -0
- package/dist/v4/runtime/canonicalText.d.ts +8 -0
- package/dist/v4/runtime/canonicalText.js +142 -0
- package/dist/v4/runtime/cbor.d.ts +92 -0
- package/dist/v4/runtime/cbor.js +728 -0
- package/dist/v4/runtime/cborWriter.d.ts +18 -0
- package/dist/v4/runtime/cborWriter.js +59 -0
- package/dist/v4/runtime/checkpointToken.d.ts +41 -0
- package/dist/v4/runtime/checkpointToken.js +61 -0
- package/dist/v4/runtime/clientAdmission.d.ts +40 -0
- package/dist/v4/runtime/clientAdmission.js +378 -0
- package/dist/v4/runtime/clientSessionSpec.d.ts +45 -0
- package/dist/v4/runtime/clientSessionSpec.js +91 -0
- package/dist/v4/runtime/clock.d.ts +80 -0
- package/dist/v4/runtime/clock.js +284 -0
- package/dist/v4/runtime/connectionFacts.d.ts +23 -0
- package/dist/v4/runtime/connectionFacts.js +106 -0
- package/dist/v4/runtime/contractAcceptance.d.ts +20 -0
- package/dist/v4/runtime/contractAcceptance.js +91 -0
- package/dist/v4/runtime/contractQuery.d.ts +57 -0
- package/dist/v4/runtime/contractQuery.js +265 -0
- package/dist/v4/runtime/contractQueryAccess.d.ts +25 -0
- package/dist/v4/runtime/contractQueryAccess.js +117 -0
- package/dist/v4/runtime/contractQueryAcquisition.d.ts +83 -0
- package/dist/v4/runtime/contractQueryAcquisition.js +572 -0
- package/dist/v4/runtime/contractQueryClient.d.ts +70 -0
- package/dist/v4/runtime/contractQueryClient.js +411 -0
- package/dist/v4/runtime/contractQueryCodecs.d.ts +20 -0
- package/dist/v4/runtime/contractQueryCodecs.js +71 -0
- package/dist/v4/runtime/contractQueryExchange.d.ts +36 -0
- package/dist/v4/runtime/contractQueryExchange.js +160 -0
- package/dist/v4/runtime/contractQueryService.d.ts +42 -0
- package/dist/v4/runtime/contractQueryService.js +572 -0
- package/dist/v4/runtime/contractQuerySession.d.ts +38 -0
- package/dist/v4/runtime/contractQuerySession.js +158 -0
- package/dist/v4/runtime/contractRoutes.d.ts +87 -0
- package/dist/v4/runtime/contractRoutes.js +396 -0
- package/dist/v4/runtime/contractSnapshotReader.d.ts +59 -0
- package/dist/v4/runtime/contractSnapshotReader.js +418 -0
- package/dist/v4/runtime/contractSnapshotWriter.d.ts +32 -0
- package/dist/v4/runtime/contractSnapshotWriter.js +208 -0
- package/dist/v4/runtime/controllerServiceSource.d.ts +23 -0
- package/dist/v4/runtime/controllerServiceSource.js +109 -0
- package/dist/v4/runtime/controllerUnaryRoute.d.ts +28 -0
- package/dist/v4/runtime/credentialNamespace.d.ts +143 -0
- package/dist/v4/runtime/credentialNamespace.js +1286 -0
- package/dist/v4/runtime/credentialSupport.d.ts +60 -0
- package/dist/v4/runtime/credentialSupport.js +294 -0
- package/dist/v4/runtime/credentialVerifier.d.ts +404 -0
- package/dist/v4/runtime/credentialVerifier.js +1443 -0
- package/dist/v4/runtime/cryptoUsage.d.ts +135 -0
- package/dist/v4/runtime/cryptoUsage.js +552 -0
- package/dist/v4/runtime/deadline.d.ts +31 -0
- package/dist/v4/runtime/deadline.js +188 -0
- package/dist/v4/runtime/diagnosticCounters.d.ts +15 -0
- package/dist/v4/runtime/diagnosticCounters.js +78 -0
- package/dist/v4/runtime/diagnosticObservation.d.ts +25 -0
- package/dist/v4/runtime/diagnosticObservation.js +67 -0
- package/dist/v4/runtime/diagnosticSink.d.ts +16 -0
- package/dist/v4/runtime/diagnosticSink.js +320 -0
- package/dist/v4/runtime/ed25519.d.ts +1 -0
- package/dist/v4/runtime/ed25519.js +34 -0
- package/dist/v4/runtime/endpointHop.d.ts +12 -0
- package/dist/v4/runtime/endpointHop.js +26 -0
- package/dist/v4/runtime/envelope.d.ts +66 -0
- package/dist/v4/runtime/envelope.js +275 -0
- package/dist/v4/runtime/environment.d.ts +277 -0
- package/dist/v4/runtime/environment.js +1911 -0
- package/dist/v4/runtime/executionManagementChannel.d.ts +27 -0
- package/dist/v4/runtime/executionManagementChannel.js +733 -0
- package/dist/v4/runtime/executionManagementCodec.d.ts +84 -0
- package/dist/v4/runtime/executionManagementCodec.js +127 -0
- package/dist/v4/runtime/executionStorage.d.ts +71 -0
- package/dist/v4/runtime/executionStorage.js +10 -0
- package/dist/v4/runtime/fixedDiagnosticExecutor.d.ts +34 -0
- package/dist/v4/runtime/fixedDiagnosticExecutor.js +149 -0
- package/dist/v4/runtime/fixedManagementExecutor.d.ts +21 -0
- package/dist/v4/runtime/fixedManagementExecutor.js +153 -0
- package/dist/v4/runtime/fixedQueryExecutor.d.ts +46 -0
- package/dist/v4/runtime/fixedQueryExecutor.js +311 -0
- package/dist/v4/runtime/grantDigest.d.ts +9 -0
- package/dist/v4/runtime/grantDigest.js +31 -0
- package/dist/v4/runtime/hopAuthentication.d.ts +51 -0
- package/dist/v4/runtime/hopAuthentication.js +392 -0
- package/dist/v4/runtime/host.d.ts +15 -0
- package/dist/v4/runtime/host.js +332 -0
- package/dist/v4/runtime/initializerWorkload.d.ts +38 -0
- package/dist/v4/runtime/initializerWorkload.js +164 -0
- package/dist/v4/runtime/lifecycle.d.ts +5 -0
- package/dist/v4/runtime/lifecycle.js +17 -0
- package/dist/v4/runtime/liveAuthorization.d.ts +42 -0
- package/dist/v4/runtime/liveAuthorization.js +133 -0
- package/dist/v4/runtime/liveAuthorizationWire.d.ts +8 -0
- package/dist/v4/runtime/liveAuthorizationWire.js +31 -0
- package/dist/v4/runtime/liveCarrierPreparation.d.ts +9 -0
- package/dist/v4/runtime/liveCarrierPreparation.js +27 -0
- package/dist/v4/runtime/liveness.d.ts +37 -0
- package/dist/v4/runtime/liveness.js +319 -0
- package/dist/v4/runtime/maintenancePositions.d.ts +29 -0
- package/dist/v4/runtime/maintenancePositions.js +152 -0
- package/dist/v4/runtime/messageCodec.d.ts +20 -0
- package/dist/v4/runtime/messageCodec.js +192 -0
- package/dist/v4/runtime/namespaceContinuity.d.ts +20 -0
- package/dist/v4/runtime/namespaceContinuity.js +176 -0
- package/dist/v4/runtime/nativeCandidates.d.ts +18 -0
- package/dist/v4/runtime/nativeCandidates.js +109 -0
- package/dist/v4/runtime/nativeFailure.d.ts +10 -0
- package/dist/v4/runtime/nativeFailure.js +32 -0
- package/dist/v4/runtime/nativeFrame.d.ts +47 -0
- package/dist/v4/runtime/nativeFrame.js +318 -0
- package/dist/v4/runtime/nativeIngress.d.ts +30 -0
- package/dist/v4/runtime/nativeIngress.js +177 -0
- package/dist/v4/runtime/nativePositions.d.ts +24 -0
- package/dist/v4/runtime/nativePositions.js +131 -0
- package/dist/v4/runtime/nativeProviderPositions.d.ts +16 -0
- package/dist/v4/runtime/nativeProviderPositions.js +75 -0
- package/dist/v4/runtime/nativeSend.d.ts +15 -0
- package/dist/v4/runtime/nativeSend.js +57 -0
- package/dist/v4/runtime/noiseHandshake.d.ts +70 -0
- package/dist/v4/runtime/noiseHandshake.js +373 -0
- package/dist/v4/runtime/noiseWasmBinary.d.ts +2 -0
- package/dist/v4/runtime/noiseWasmBinary.js +3 -0
- package/dist/v4/runtime/notifyChannel.d.ts +37 -0
- package/dist/v4/runtime/notifyChannel.js +277 -0
- package/dist/v4/runtime/notifyDispatch.d.ts +108 -0
- package/dist/v4/runtime/notifyDispatch.js +717 -0
- package/dist/v4/runtime/notifyExecution.d.ts +18 -0
- package/dist/v4/runtime/notifyExecution.js +59 -0
- package/dist/v4/runtime/notifyPreparation.d.ts +70 -0
- package/dist/v4/runtime/notifyPreparation.js +465 -0
- package/dist/v4/runtime/openAdmission.d.ts +125 -0
- package/dist/v4/runtime/openAdmission.js +810 -0
- package/dist/v4/runtime/peerOpenPreparation.d.ts +18 -0
- package/dist/v4/runtime/peerOpenPreparation.js +61 -0
- package/dist/v4/runtime/poolJournal.d.ts +18 -0
- package/dist/v4/runtime/poolJournal.js +14 -0
- package/dist/v4/runtime/poolJournalStorage.d.ts +4 -0
- package/dist/v4/runtime/poolJournalStorage.js +172 -0
- package/dist/v4/runtime/poolRecord.d.ts +9 -0
- package/dist/v4/runtime/poolRecord.js +23 -0
- package/dist/v4/runtime/poolRecordStorage.d.ts +10 -0
- package/dist/v4/runtime/poolRecordStorage.js +216 -0
- package/dist/v4/runtime/poolServerAllow.d.ts +49 -0
- package/dist/v4/runtime/poolServerAllow.js +38 -0
- package/dist/v4/runtime/poolSpend.d.ts +20 -0
- package/dist/v4/runtime/poolSpend.js +4 -0
- package/dist/v4/runtime/queryRenewalPosition.d.ts +59 -0
- package/dist/v4/runtime/queryRenewalPosition.js +220 -0
- package/dist/v4/runtime/random.d.ts +15 -0
- package/dist/v4/runtime/random.js +71 -0
- package/dist/v4/runtime/rawStreamPreparation.d.ts +40 -0
- package/dist/v4/runtime/rawStreamPreparation.js +125 -0
- package/dist/v4/runtime/receiveDirection.d.ts +135 -0
- package/dist/v4/runtime/receiveDirection.js +957 -0
- package/dist/v4/runtime/receiveWorkspace.d.ts +19 -0
- package/dist/v4/runtime/receiveWorkspace.js +82 -0
- package/dist/v4/runtime/record.d.ts +7 -0
- package/dist/v4/runtime/record.js +173 -0
- package/dist/v4/runtime/recordCrypto.d.ts +121 -0
- package/dist/v4/runtime/recordCrypto.js +633 -0
- package/dist/v4/runtime/recordWorkspace.d.ts +17 -0
- package/dist/v4/runtime/recordWorkspace.js +69 -0
- package/dist/v4/runtime/registeredCarrierPreparation.d.ts +17 -0
- package/dist/v4/runtime/registeredCarrierPreparation.js +191 -0
- package/dist/v4/runtime/rekey.d.ts +40 -0
- package/dist/v4/runtime/rekey.js +362 -0
- package/dist/v4/runtime/relayCredentials.d.ts +126 -0
- package/dist/v4/runtime/relayCredentials.js +349 -0
- package/dist/v4/runtime/replayWindow.d.ts +6 -0
- package/dist/v4/runtime/replayWindow.js +59 -0
- package/dist/v4/runtime/resources.d.ts +200 -0
- package/dist/v4/runtime/resources.js +1236 -0
- package/dist/v4/runtime/resumeCodec.d.ts +44 -0
- package/dist/v4/runtime/resumeCodec.js +192 -0
- package/dist/v4/runtime/resumeStream.d.ts +23 -0
- package/dist/v4/runtime/resumeStream.js +23 -0
- package/dist/v4/runtime/rpcApplication.d.ts +234 -0
- package/dist/v4/runtime/rpcApplication.js +2170 -0
- package/dist/v4/runtime/rpcApplicationServices.d.ts +18 -0
- package/dist/v4/runtime/rpcApplicationServices.js +62 -0
- package/dist/v4/runtime/rpcCallCapacity.d.ts +62 -0
- package/dist/v4/runtime/rpcCallCapacity.js +289 -0
- package/dist/v4/runtime/rpcChannel.d.ts +58 -0
- package/dist/v4/runtime/rpcChannel.js +334 -0
- package/dist/v4/runtime/rpcCompletion.d.ts +42 -0
- package/dist/v4/runtime/rpcCompletion.js +152 -0
- package/dist/v4/runtime/rpcEventSource.d.ts +27 -0
- package/dist/v4/runtime/rpcEventSource.js +201 -0
- package/dist/v4/runtime/rpcFragment.d.ts +42 -0
- package/dist/v4/runtime/rpcFragment.js +227 -0
- package/dist/v4/runtime/rpcInput.d.ts +41 -0
- package/dist/v4/runtime/rpcInput.js +137 -0
- package/dist/v4/runtime/rpcNetwork.d.ts +143 -0
- package/dist/v4/runtime/rpcNetwork.js +652 -0
- package/dist/v4/runtime/rpcOutputInterest.d.ts +20 -0
- package/dist/v4/runtime/rpcOutputInterest.js +106 -0
- package/dist/v4/runtime/rpcPayload.d.ts +24 -0
- package/dist/v4/runtime/rpcPayload.js +82 -0
- package/dist/v4/runtime/rpcPreacceptedStreams.d.ts +46 -0
- package/dist/v4/runtime/rpcPreacceptedStreams.js +406 -0
- package/dist/v4/runtime/rpcPublisher.d.ts +49 -0
- package/dist/v4/runtime/rpcPublisher.js +406 -0
- package/dist/v4/runtime/rpcReceiver.d.ts +40 -0
- package/dist/v4/runtime/rpcReceiver.js +255 -0
- package/dist/v4/runtime/rpcResumeDispatch.d.ts +46 -0
- package/dist/v4/runtime/rpcResumeDispatch.js +266 -0
- package/dist/v4/runtime/rpcStream.d.ts +14 -0
- package/dist/v4/runtime/rpcStream.js +12 -0
- package/dist/v4/runtime/rpcStreamMessages.d.ts +53 -0
- package/dist/v4/runtime/rpcStreamMessages.js +428 -0
- package/dist/v4/runtime/rpcStreamPreparation.d.ts +21 -0
- package/dist/v4/runtime/rpcStreamPreparation.js +110 -0
- package/dist/v4/runtime/rpcStreamingDispatch.d.ts +26 -0
- package/dist/v4/runtime/rpcStreamingDispatch.js +607 -0
- package/dist/v4/runtime/rpcStreamingExchange.d.ts +91 -0
- package/dist/v4/runtime/rpcStreamingExchange.js +812 -0
- package/dist/v4/runtime/rpcUnaryCall.d.ts +16 -0
- package/dist/v4/runtime/rpcUnaryCall.js +152 -0
- package/dist/v4/runtime/rpcUnaryDispatch.d.ts +34 -0
- package/dist/v4/runtime/rpcUnaryDispatch.js +569 -0
- package/dist/v4/runtime/rpcUnaryExchange.d.ts +127 -0
- package/dist/v4/runtime/rpcUnaryExchange.js +1042 -0
- package/dist/v4/runtime/rpcUnaryPreparation.d.ts +102 -0
- package/dist/v4/runtime/rpcUnaryPreparation.js +736 -0
- package/dist/v4/runtime/rpcUnaryRegistration.d.ts +33 -0
- package/dist/v4/runtime/rpcUnaryRegistration.js +113 -0
- package/dist/v4/runtime/rpcUnaryResultRecipient.d.ts +21 -0
- package/dist/v4/runtime/rpcUnaryResultRecipient.js +57 -0
- package/dist/v4/runtime/schema.d.ts +26 -0
- package/dist/v4/runtime/schema.js +668 -0
- package/dist/v4/runtime/schemaRegistry.d.ts +128 -0
- package/dist/v4/runtime/schemaRegistry.js +74 -0
- package/dist/v4/runtime/sendBudget.d.ts +10 -0
- package/dist/v4/runtime/sendBudget.js +46 -0
- package/dist/v4/runtime/serveGroup.d.ts +73 -0
- package/dist/v4/runtime/serveGroup.js +589 -0
- package/dist/v4/runtime/serverAdmission.d.ts +33 -0
- package/dist/v4/runtime/serverAdmission.js +342 -0
- package/dist/v4/runtime/serverAdmissionAuthority.d.ts +23 -0
- package/dist/v4/runtime/serverAdmissionAuthority.js +5 -0
- package/dist/v4/runtime/serverSessionSpec.d.ts +9 -0
- package/dist/v4/runtime/serverSessionSpec.js +12 -0
- package/dist/v4/runtime/serviceBinding.d.ts +128 -0
- package/dist/v4/runtime/serviceBinding.js +1435 -0
- package/dist/v4/runtime/serviceBindingConfig.d.ts +72 -0
- package/dist/v4/runtime/serviceBindingConfig.js +85 -0
- package/dist/v4/runtime/serviceBindingPool.d.ts +58 -0
- package/dist/v4/runtime/serviceBindingPool.js +327 -0
- package/dist/v4/runtime/serviceContract.d.ts +111 -0
- package/dist/v4/runtime/serviceContract.js +588 -0
- package/dist/v4/runtime/serviceInputs.d.ts +30 -0
- package/dist/v4/runtime/serviceInputs.js +201 -0
- package/dist/v4/runtime/serviceOfferPlan.d.ts +81 -0
- package/dist/v4/runtime/serviceOfferPlan.js +335 -0
- package/dist/v4/runtime/serviceOfferScheduler.d.ts +12 -0
- package/dist/v4/runtime/serviceOfferScheduler.js +201 -0
- package/dist/v4/runtime/serviceOfferWork.d.ts +25 -0
- package/dist/v4/runtime/serviceOfferWork.js +1 -0
- package/dist/v4/runtime/session.d.ts +411 -0
- package/dist/v4/runtime/session.js +6369 -0
- package/dist/v4/runtime/sessionActivity.d.ts +19 -0
- package/dist/v4/runtime/sessionActivity.js +97 -0
- package/dist/v4/runtime/sessionAdmission.d.ts +93 -0
- package/dist/v4/runtime/sessionAdmission.js +498 -0
- package/dist/v4/runtime/sessionCleanup.d.ts +47 -0
- package/dist/v4/runtime/sessionCleanup.js +268 -0
- package/dist/v4/runtime/sessionKeyPreparation.d.ts +19 -0
- package/dist/v4/runtime/sessionKeyPreparation.js +50 -0
- package/dist/v4/runtime/signedMap.d.ts +68 -0
- package/dist/v4/runtime/signedMap.js +425 -0
- package/dist/v4/runtime/streamAdapter.d.ts +113 -0
- package/dist/v4/runtime/streamAdapter.js +62 -0
- package/dist/v4/runtime/streamData.d.ts +11 -0
- package/dist/v4/runtime/streamData.js +50 -0
- package/dist/v4/runtime/streamOpenPreparation.d.ts +23 -0
- package/dist/v4/runtime/streamOpenPreparation.js +77 -0
- package/dist/v4/runtime/streamRegistration.d.ts +87 -0
- package/dist/v4/runtime/streamRegistration.js +296 -0
- package/dist/v4/runtime/taskObservation.d.ts +1 -0
- package/dist/v4/runtime/taskObservation.js +48 -0
- package/dist/v4/runtime/timeArithmetic.d.ts +29 -0
- package/dist/v4/runtime/timeArithmetic.js +107 -0
- package/dist/v4/runtime/unreliable.d.ts +76 -0
- package/dist/v4/runtime/unreliable.js +473 -0
- package/dist/v4/runtime/volatileExecutions.d.ts +128 -0
- package/dist/v4/runtime/volatileExecutions.js +792 -0
- package/dist/v4/runtime/wireRegistry.d.ts +52 -0
- package/dist/v4/runtime/wireRegistry.js +29 -0
- package/dist/v4/runtime/writeRequest.d.ts +42 -0
- package/dist/v4/runtime/writeRequest.js +237 -0
- package/dist/v4/serve.d.ts +107 -0
- package/dist/v4/serve.js +80 -0
- package/dist/v4/serviceClient.d.ts +92 -0
- package/dist/v4/serviceClient.js +323 -0
- package/dist/v4/serviceDefinition.d.ts +138 -0
- package/dist/v4/serviceDefinition.js +150 -0
- package/dist/v4/serviceDependencies.d.ts +66 -0
- package/dist/v4/serviceDependencies.js +250 -0
- package/dist/v4/serviceFactory.d.ts +31 -0
- package/dist/v4/serviceFactory.js +157 -0
- package/dist/v4/serviceHandlers.d.ts +55 -0
- package/dist/v4/serviceHandlers.js +15 -0
- package/dist/v4/serviceMembers.d.ts +4 -0
- package/dist/v4/serviceMembers.js +12 -0
- package/dist/v4/staticServiceContracts.d.ts +43 -0
- package/dist/v4/staticServiceContracts.js +161 -0
- package/dist/v4/storageFormat.d.ts +16 -0
- package/dist/v4/storageFormat.js +5 -0
- package/dist/v4/streamContent.d.ts +30 -0
- package/dist/v4/streamContent.js +29 -0
- package/dist/v4/streamHandlers.d.ts +61 -0
- package/dist/v4/streamHandlers.js +16 -0
- package/dist/v4/streamingOperation.d.ts +64 -0
- package/dist/v4/streamingOperation.js +141 -0
- package/dist/v4/testSupport/cbor.d.ts +124 -0
- package/dist/v4/testSupport/cbor.js +230 -0
- package/dist/v4/testSupport/credentials.d.ts +55 -0
- package/dist/v4/testSupport/credentials.js +111 -0
- package/dist/v4/testSupport/unicode.d.ts +19 -0
- package/dist/v4/testSupport/unicode.js +112 -0
- package/dist/v4/unaryOperation.d.ts +59 -0
- package/dist/v4/unaryOperation.js +80 -0
- package/dist/v4/unreliable.d.ts +26 -0
- package/dist/v4/unreliable.js +10 -0
- package/dist/v4/webStreams.d.ts +30 -0
- package/dist/v4/webStreams.js +377 -0
- package/package.json +15 -12
- package/sbom/cyclonedx.json +756 -38
- package/sbom/spdx.json +555 -38
- package/dist/browser/connectSessionV3.d.ts +0 -31
- package/dist/browser/connectSessionV3.js +0 -241
- package/dist/browser/directWebSocketProfileV1.d.ts +0 -14
- package/dist/browser/directWebSocketProfileV1.js +0 -71
- package/dist/browser/httpDirectV1.d.ts +0 -30
- package/dist/browser/httpDirectV1.js +0 -52
- package/dist/browser/privateLoopbackV1.d.ts +0 -30
- package/dist/browser/privateLoopbackV1.js +0 -70
- package/dist/framing/index.d.ts +0 -1
- package/dist/framing/index.js +0 -1
- package/dist/framing/jsonframe.d.ts +0 -14
- package/dist/framing/jsonframe.js +0 -42
- package/dist/node/acceptor.d.ts +0 -36
- package/dist/node/acceptor.js +0 -155
- package/dist/node/acceptorV3.d.ts +0 -57
- package/dist/node/acceptorV3.js +0 -227
- package/dist/node/byteStreamDuplex.d.ts +0 -4
- package/dist/node/byteStreamDuplex.js +0 -69
- package/dist/node/connectSessionV3.d.ts +0 -24
- package/dist/node/connectSessionV3.js +0 -79
- package/dist/node/connectionPath.d.ts +0 -28
- package/dist/node/connectionPath.js +0 -169
- package/dist/node/nativeTransportAddon.d.ts +0 -104
- package/dist/node/nativeTransportAddon.js +0 -212
- package/dist/node/rawQuicAdapterV3.d.ts +0 -10
- package/dist/node/rawQuicAdapterV3.js +0 -76
- package/dist/node/rawQuicServerV3.d.ts +0 -24
- package/dist/node/rawQuicServerV3.js +0 -34
- package/dist/node/runtimeAuthorizationV3.d.ts +0 -29
- package/dist/node/runtimeAuthorizationV3.js +0 -126
- package/dist/node/tunnelRuntimeV3.d.ts +0 -57
- package/dist/node/tunnelRuntimeV3.js +0 -857
- package/dist/node/webSocketServerV3.d.ts +0 -27
- package/dist/node/webSocketServerV3.js +0 -219
- package/dist/node/wsFactory.d.ts +0 -8
- package/dist/node/wsFactory.js +0 -84
- package/dist/public/streamHandlers.d.ts +0 -20
- package/dist/public/streamHandlers.js +0 -127
- package/dist/rpc/callError.d.ts +0 -5
- package/dist/rpc/callError.js +0 -11
- package/dist/rpc/caller.d.ts +0 -8
- package/dist/rpc/client.d.ts +0 -23
- package/dist/rpc/client.js +0 -171
- package/dist/rpc/index.d.ts +0 -6
- package/dist/rpc/index.js +0 -6
- package/dist/rpc/rpcProxy.d.ts +0 -16
- package/dist/rpc/rpcProxy.js +0 -58
- package/dist/rpc/server.d.ts +0 -51
- package/dist/rpc/server.js +0 -283
- package/dist/rpc/typed.d.ts +0 -5
- package/dist/rpc/typed.js +0 -9
- package/dist/rpc/validate.d.ts +0 -4
- package/dist/rpc/wire.d.ts +0 -15
- package/dist/v3/admissionError.d.ts +0 -4
- package/dist/v3/admissionError.js +0 -8
- package/dist/v3/artifact.d.ts +0 -145
- package/dist/v3/artifact.js +0 -1176
- package/dist/v3/artifactLease.d.ts +0 -17
- package/dist/v3/artifactLease.js +0 -109
- package/dist/v3/browserRuntime.d.ts +0 -37
- package/dist/v3/browserRuntime.js +0 -197
- package/dist/v3/browserSessionRuntime.d.ts +0 -2
- package/dist/v3/browserSessionRuntime.js +0 -21
- package/dist/v3/capability.d.ts +0 -32
- package/dist/v3/capability.js +0 -345
- package/dist/v3/carrier.d.ts +0 -84
- package/dist/v3/carrier.js +0 -411
- package/dist/v3/connectionController.d.ts +0 -100
- package/dist/v3/connectionController.js +0 -861
- package/dist/v3/contract.d.ts +0 -65
- package/dist/v3/contract.js +0 -3
- package/dist/v3/controller.d.ts +0 -45
- package/dist/v3/controller.js +0 -316
- package/dist/v3/handshake.d.ts +0 -81
- package/dist/v3/handshake.js +0 -471
- package/dist/v3/jcs.d.ts +0 -6
- package/dist/v3/jcs.js +0 -69
- package/dist/v3/jsonPreflight.d.ts +0 -1
- package/dist/v3/jsonPreflight.js +0 -251
- package/dist/v3/nodeRuntime.d.ts +0 -43
- package/dist/v3/nodeRuntime.js +0 -373
- package/dist/v3/nodeSessionRuntime.d.ts +0 -2
- package/dist/v3/nodeSessionRuntime.js +0 -13
- package/dist/v3/protocol.d.ts +0 -99
- package/dist/v3/protocol.js +0 -674
- package/dist/v3/publicApi.d.ts +0 -12
- package/dist/v3/publicApi.js +0 -46
- package/dist/v3/publicSession.js +0 -281
- package/dist/v3/retryDisposition.d.ts +0 -16
- package/dist/v3/retryDisposition.js +0 -23
- package/dist/v3/runtimeAdapters.d.ts +0 -9
- package/dist/v3/runtimeAdapters.js +0 -109
- package/dist/v3/security.d.ts +0 -36
- package/dist/v3/security.js +0 -113
- package/dist/v3/serverAdmission.d.ts +0 -38
- package/dist/v3/serverAdmission.js +0 -223
- package/dist/v3/session.d.ts +0 -322
- package/dist/v3/session.js +0 -2302
- package/dist/v3/sessionConnector.d.ts +0 -42
- package/dist/v3/sessionConnector.js +0 -513
- package/dist/v3/streamLifetimeLedger.d.ts +0 -31
- package/dist/v3/streamLifetimeLedger.js +0 -131
- package/dist/v3/streamMetadata.js +0 -7
- package/dist/v3/transportConstants.d.ts +0 -56
- package/dist/v3/transportConstants.js +0 -59
- package/dist/v3/unreliableMessage.d.ts +0 -44
- package/dist/v3/unreliableMessage.js +0 -287
- package/dist/v3/webSocketCarrier.d.ts +0 -31
- package/dist/v3/webSocketCarrier.js +0 -370
- package/dist/v3/webTransportCarrier.d.ts +0 -27
- package/dist/v3/webTransportCarrier.js +0 -552
- package/dist/ws-client/binaryTransport.d.ts +0 -64
- package/dist/ws-client/binaryTransport.js +0 -393
- package/dist/yamux/byteReader.d.ts +0 -13
- package/dist/yamux/byteReader.js +0 -81
- package/dist/yamux/constants.d.ts +0 -10
- package/dist/yamux/constants.js +0 -14
- package/dist/yamux/errors.d.ts +0 -15
- package/dist/yamux/errors.js +0 -34
- package/dist/yamux/header.d.ts +0 -17
- package/dist/yamux/header.js +0 -26
- package/dist/yamux/index.d.ts +0 -6
- package/dist/yamux/index.js +0 -6
- package/dist/yamux/session.d.ts +0 -81
- package/dist/yamux/session.js +0 -401
- package/dist/yamux/stream.d.ts +0 -42
- package/dist/yamux/stream.js +0 -296
- /package/dist/{rpc/caller.js → node/sqlitePoolWorkerProgramV4.d.ts} +0 -0
- /package/dist/{rpc/wire.js → node/sqliteWorkerProgramV4.d.ts} +0 -0
- /package/dist/{v3/publicSession.d.ts → v4/admissionOffer.js} +0 -0
- /package/dist/{v3/streamMetadata.d.ts → v4/runtime/controllerUnaryRoute.js} +0 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { execFile, spawn } from "node:child_process";
|
|
2
|
+
import { createHash } from "node:crypto";
|
|
3
|
+
import { mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
|
|
4
|
+
import { homedir } from "node:os";
|
|
5
|
+
import { basename, join } from "node:path";
|
|
6
|
+
import { promisify } from "node:util";
|
|
7
|
+
async function bounded(operation, milliseconds, label) {
|
|
8
|
+
let timer;
|
|
9
|
+
try {
|
|
10
|
+
return await Promise.race([operation, new Promise((_, reject) => {
|
|
11
|
+
timer = setTimeout(() => reject(new Error(`${label} timed out`)), milliseconds);
|
|
12
|
+
})]);
|
|
13
|
+
}
|
|
14
|
+
finally {
|
|
15
|
+
clearTimeout(timer);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/** Own the current peer executable directly, so cancellation joins the server
|
|
19
|
+
* and its cleanup rather than terminating a compiler with a surviving child. */
|
|
20
|
+
export async function startHTTPApplicationPeer(mode) {
|
|
21
|
+
const base = process.env.FLOWERSEC_TEST_ARTIFACT_DIR ?? join(homedir(), ".cache", "flowersec-engineering");
|
|
22
|
+
await mkdir(base, { recursive: true, mode: 0o700 });
|
|
23
|
+
const directory = await mkdtemp(join(base, "http-application-peer-"));
|
|
24
|
+
const executable = join(directory, process.platform === "win32" ? "peer.exe" : "peer");
|
|
25
|
+
const cwd = new URL("../../../flowersec-go/", import.meta.url);
|
|
26
|
+
let preservationFailed = false;
|
|
27
|
+
let retainedFailures = 0;
|
|
28
|
+
const retainFailure = async (error, diagnostic = "") => {
|
|
29
|
+
try {
|
|
30
|
+
const bytes = Buffer.from(`${String(error)}\n${diagnostic}`);
|
|
31
|
+
const path = join(base, `${basename(directory)}-${++retainedFailures}.log`);
|
|
32
|
+
const checksum = createHash("sha256").update(bytes).digest("hex");
|
|
33
|
+
await writeFile(path, bytes, { mode: 0o600 });
|
|
34
|
+
await writeFile(path + ".sha256", `${checksum} ${basename(path)}\n`, { mode: 0o600 });
|
|
35
|
+
if (createHash("sha256").update(await readFile(path)).digest("hex") !== checksum)
|
|
36
|
+
throw new Error("peer diagnostic preservation failed");
|
|
37
|
+
}
|
|
38
|
+
catch (failure) {
|
|
39
|
+
preservationFailed = true;
|
|
40
|
+
throw failure;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
try {
|
|
44
|
+
await promisify(execFile)("go", ["build", "-o", executable, "./internal/cmd/http-application-peer"], {
|
|
45
|
+
cwd, timeout: 60000, maxBuffer: 65536,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
await retainFailure(error);
|
|
50
|
+
await rm(directory, { recursive: true });
|
|
51
|
+
throw error;
|
|
52
|
+
}
|
|
53
|
+
const child = spawn(executable, ["--mode", mode], {
|
|
54
|
+
cwd, env: { ...process.env, FLOWERSEC_SERVER_PARITY_PEER: "1", FLOWERSEC_TEST_ARTIFACT_DIR: join(directory, "runtime") },
|
|
55
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
56
|
+
});
|
|
57
|
+
let exited = false, diagnostic = "", output = "", launchError;
|
|
58
|
+
const completed = new Promise(resolve => {
|
|
59
|
+
child.once("error", error => { launchError = error; });
|
|
60
|
+
child.once("close", (code, signal) => { exited = true; resolve({ code, signal }); });
|
|
61
|
+
});
|
|
62
|
+
child.stderr.setEncoding("utf8");
|
|
63
|
+
child.stderr.on("data", (chunk) => { diagnostic = (diagnostic + chunk).slice(-65536); });
|
|
64
|
+
let resolveLine, rejectLine;
|
|
65
|
+
const firstLine = new Promise((resolve, reject) => { resolveLine = resolve; rejectLine = reject; });
|
|
66
|
+
child.stdout.setEncoding("utf8");
|
|
67
|
+
const receive = (chunk) => {
|
|
68
|
+
if (output.length + chunk.length > 1048576) {
|
|
69
|
+
rejectLine(new Error("HTTP application readiness exceeds its bound"));
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
output += chunk;
|
|
73
|
+
const newline = output.indexOf("\n");
|
|
74
|
+
if (newline >= 0) {
|
|
75
|
+
child.stdout.removeListener("data", receive);
|
|
76
|
+
child.stdout.resume();
|
|
77
|
+
resolveLine(output.slice(0, newline));
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
child.stdout.on("data", receive);
|
|
81
|
+
void completed.then(result => rejectLine(launchError ?? new Error(`HTTP application peer exited ${String(result.code)} before readiness: ${diagnostic}`)));
|
|
82
|
+
const signal = (value) => {
|
|
83
|
+
if (exited || child.pid === undefined)
|
|
84
|
+
return;
|
|
85
|
+
try {
|
|
86
|
+
child.kill(value);
|
|
87
|
+
}
|
|
88
|
+
catch (error) {
|
|
89
|
+
if (error.code !== "ESRCH")
|
|
90
|
+
throw error;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
let stopping;
|
|
94
|
+
const stop = () => stopping ??= (async () => {
|
|
95
|
+
try {
|
|
96
|
+
if (!exited) {
|
|
97
|
+
signal("SIGTERM");
|
|
98
|
+
let signalError;
|
|
99
|
+
const escalation = setTimeout(() => { try {
|
|
100
|
+
signal("SIGKILL");
|
|
101
|
+
}
|
|
102
|
+
catch (error) {
|
|
103
|
+
signalError = error;
|
|
104
|
+
} }, 6000);
|
|
105
|
+
try {
|
|
106
|
+
await bounded(completed, 9000, "HTTP application peer cleanup");
|
|
107
|
+
if (signalError !== undefined)
|
|
108
|
+
throw signalError;
|
|
109
|
+
}
|
|
110
|
+
finally {
|
|
111
|
+
clearTimeout(escalation);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const result = await completed;
|
|
115
|
+
if (launchError !== undefined)
|
|
116
|
+
throw launchError;
|
|
117
|
+
if (result.code !== 0 || result.signal !== null)
|
|
118
|
+
throw new Error(`peer exit ${String(result.code)} (${String(result.signal)}): ${diagnostic}`);
|
|
119
|
+
if (!preservationFailed)
|
|
120
|
+
await rm(directory, { recursive: true });
|
|
121
|
+
}
|
|
122
|
+
catch (error) {
|
|
123
|
+
await retainFailure(error, diagnostic);
|
|
124
|
+
// Retain an executable only while its original process is still live.
|
|
125
|
+
// A failed joined process needs its verified diagnostic, not scratch files.
|
|
126
|
+
if (exited && !preservationFailed)
|
|
127
|
+
await rm(directory, { recursive: true, force: true });
|
|
128
|
+
throw error;
|
|
129
|
+
}
|
|
130
|
+
})();
|
|
131
|
+
try {
|
|
132
|
+
const ready = JSON.parse(await bounded(firstLine, 15000, "HTTP application peer readiness"));
|
|
133
|
+
if (ready === null || typeof ready !== "object" || ready.wire_revision !== 4 ||
|
|
134
|
+
typeof ready.origin !== "string" || typeof ready.trust_pem !== "string" ||
|
|
135
|
+
mode === "local" && (typeof ready.artifact_json !== "string" || typeof ready.bridge_token !== "string")) {
|
|
136
|
+
throw new Error("invalid current HTTP application deployment");
|
|
137
|
+
}
|
|
138
|
+
return Object.freeze({ ready, stop, async wait() {
|
|
139
|
+
const result = await bounded(completed, 20000, "HTTP application peer completion");
|
|
140
|
+
if (launchError !== undefined)
|
|
141
|
+
throw launchError;
|
|
142
|
+
if (result.code !== 0 || result.signal !== null)
|
|
143
|
+
throw new Error(`HTTP application peer failed ${String(result.code)} (${String(result.signal)}): ${diagnostic}`);
|
|
144
|
+
} });
|
|
145
|
+
}
|
|
146
|
+
catch (error) {
|
|
147
|
+
const failures = [error];
|
|
148
|
+
try {
|
|
149
|
+
await retainFailure(error, diagnostic);
|
|
150
|
+
}
|
|
151
|
+
catch (failure) {
|
|
152
|
+
failures.push(failure);
|
|
153
|
+
}
|
|
154
|
+
try {
|
|
155
|
+
await stop();
|
|
156
|
+
}
|
|
157
|
+
catch (failure) {
|
|
158
|
+
failures.push(failure);
|
|
159
|
+
}
|
|
160
|
+
if (failures.length === 1)
|
|
161
|
+
throw error;
|
|
162
|
+
throw new AggregateError(failures, "HTTP application peer startup and cleanup failed");
|
|
163
|
+
}
|
|
164
|
+
finally {
|
|
165
|
+
child.stdout.removeListener("data", receive);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The Go TLS engine presents a real P-256 leaf and signs CertificateVerify
|
|
2
|
+
* with a different key. The SDK must reject that proof before admission. */
|
|
3
|
+
export declare function startInvalidProofPeer(carrier: "websocket" | "raw_quic"): Promise<Readonly<{
|
|
4
|
+
address: string;
|
|
5
|
+
leafDER: Buffer<ArrayBuffer>;
|
|
6
|
+
stop: () => Promise<void>;
|
|
7
|
+
wait(): Promise<void>;
|
|
8
|
+
}>>;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
async function bounded(operation, milliseconds) {
|
|
3
|
+
let timer;
|
|
4
|
+
try {
|
|
5
|
+
return await Promise.race([operation, new Promise((_resolve, reject) => {
|
|
6
|
+
timer = setTimeout(() => reject(new Error("invalid-proof peer observation timed out")), milliseconds);
|
|
7
|
+
})]);
|
|
8
|
+
}
|
|
9
|
+
finally {
|
|
10
|
+
if (timer !== undefined)
|
|
11
|
+
clearTimeout(timer);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
/** The Go TLS engine presents a real P-256 leaf and signs CertificateVerify
|
|
15
|
+
* with a different key. The SDK must reject that proof before admission. */
|
|
16
|
+
export async function startInvalidProofPeer(carrier) {
|
|
17
|
+
const child = spawn("go", ["run", "./internal/cmd/invalid-proof-peer", "--carrier", carrier], {
|
|
18
|
+
cwd: new URL("../../../flowersec-go/", import.meta.url), stdio: ["ignore", "pipe", "pipe"],
|
|
19
|
+
detached: process.platform !== "win32",
|
|
20
|
+
});
|
|
21
|
+
let stderr = "", stdout = "", launchError, exited = false;
|
|
22
|
+
const completed = new Promise(resolve => {
|
|
23
|
+
child.once("error", error => { launchError = error; });
|
|
24
|
+
child.once("close", (code, signal) => { exited = true; resolve({ code, signal, ...(launchError === undefined ? {} : { error: launchError }) }); });
|
|
25
|
+
});
|
|
26
|
+
child.stderr.setEncoding("utf8");
|
|
27
|
+
child.stderr.on("data", (chunk) => { stderr = (stderr + chunk).slice(-65536); });
|
|
28
|
+
let stopping;
|
|
29
|
+
const terminate = (signal) => {
|
|
30
|
+
if (exited || child.pid === undefined)
|
|
31
|
+
return;
|
|
32
|
+
try {
|
|
33
|
+
if (process.platform === "win32")
|
|
34
|
+
child.kill(signal);
|
|
35
|
+
else
|
|
36
|
+
process.kill(-child.pid, signal);
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
if (error.code !== "ESRCH")
|
|
40
|
+
throw error;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const stop = () => stopping ??= (async () => {
|
|
44
|
+
if (exited)
|
|
45
|
+
return;
|
|
46
|
+
terminate("SIGTERM");
|
|
47
|
+
let escalation;
|
|
48
|
+
try {
|
|
49
|
+
escalation = setTimeout(() => { try {
|
|
50
|
+
terminate("SIGKILL");
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
child.kill("SIGKILL");
|
|
54
|
+
} }, 1000);
|
|
55
|
+
await bounded(completed, 5000);
|
|
56
|
+
}
|
|
57
|
+
finally {
|
|
58
|
+
if (escalation !== undefined)
|
|
59
|
+
clearTimeout(escalation);
|
|
60
|
+
}
|
|
61
|
+
})();
|
|
62
|
+
let readyLine, failedReady;
|
|
63
|
+
const firstLine = new Promise((resolve, reject) => { readyLine = resolve; failedReady = reject; });
|
|
64
|
+
child.stdout.setEncoding("utf8");
|
|
65
|
+
const receive = (chunk) => {
|
|
66
|
+
if (stdout.length + chunk.length > 65536) {
|
|
67
|
+
failedReady(new Error("invalid-proof peer readiness exceeds its bound"));
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
stdout += chunk;
|
|
71
|
+
const newline = stdout.indexOf("\n");
|
|
72
|
+
if (newline >= 0) {
|
|
73
|
+
child.stdout.removeListener("data", receive);
|
|
74
|
+
child.stdout.resume();
|
|
75
|
+
readyLine(stdout.slice(0, newline));
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
child.stdout.on("data", receive);
|
|
79
|
+
void completed.then(result => failedReady(result.error ?? new Error(`invalid-proof peer exited ${String(result.code)} before readiness: ${stderr}`)));
|
|
80
|
+
try {
|
|
81
|
+
const record = JSON.parse(await bounded(firstLine, 15000));
|
|
82
|
+
if (record === null || typeof record !== "object")
|
|
83
|
+
throw new Error("invalid-proof peer readiness is not a record");
|
|
84
|
+
const ready = record;
|
|
85
|
+
if (typeof ready.address !== "string" || !/^127\.0\.0\.1:[1-9][0-9]{0,4}$/u.test(ready.address) || typeof ready.leaf_der_base64 !== "string")
|
|
86
|
+
throw new Error("invalid-proof peer readiness has invalid fields");
|
|
87
|
+
const port = Number(ready.address.slice(ready.address.lastIndexOf(":") + 1));
|
|
88
|
+
const leafDER = Buffer.from(ready.leaf_der_base64, "base64");
|
|
89
|
+
if (port > 65535 || leafDER.length < 1 || leafDER.length > 65536 || leafDER.toString("base64") !== ready.leaf_der_base64)
|
|
90
|
+
throw new Error("invalid-proof peer readiness has invalid TLS material");
|
|
91
|
+
return Object.freeze({ address: ready.address, leafDER, stop, async wait() {
|
|
92
|
+
const result = await bounded(completed, 15000);
|
|
93
|
+
if (result.error !== undefined)
|
|
94
|
+
throw result.error;
|
|
95
|
+
if (result.code !== 0 || result.signal !== null)
|
|
96
|
+
throw new Error(`invalid-proof peer exited ${String(result.code)} (${String(result.signal)}): ${stderr}`);
|
|
97
|
+
} });
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
await stop();
|
|
101
|
+
throw error;
|
|
102
|
+
}
|
|
103
|
+
finally {
|
|
104
|
+
child.stdout.removeListener("data", receive);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { createAcceptor, parseArtifact, ProxyServer, SessionHandlers, } from "../node/index.js";
|
|
4
|
-
import { testCertificatePEM, testPrivateKeyPEM } from "../testSupport/tlsFixture.js";
|
|
1
|
+
import { ProxyServer } from "../node/index.js";
|
|
2
|
+
import { createCurrentPeerServer } from "./currentServer.js";
|
|
5
3
|
const ORIGIN = "https://app.example";
|
|
6
4
|
const args = process.argv.slice(2);
|
|
7
5
|
if (args.length !== 2 || args[0] !== "--upstream" || args[1] === undefined) {
|
|
@@ -21,7 +19,6 @@ async function run(upstream) {
|
|
|
21
19
|
upstreamOrigin: upstream,
|
|
22
20
|
allowedOrigins: [ORIGIN],
|
|
23
21
|
maxConcurrentStreams: 4,
|
|
24
|
-
maxJsonFrameBytes: 4096,
|
|
25
22
|
maxChunkBytes: 8,
|
|
26
23
|
maxBodyBytes: 8,
|
|
27
24
|
maxWebSocketFrameBytes: 32,
|
|
@@ -35,63 +32,18 @@ async function run(upstream) {
|
|
|
35
32
|
forbiddenCookieNamePrefixes: ["private_"],
|
|
36
33
|
onError: (error) => console.error(error instanceof Error ? error.message : String(error)),
|
|
37
34
|
});
|
|
38
|
-
const
|
|
39
|
-
proxy.register(handlers);
|
|
40
|
-
let trustedArtifact;
|
|
41
|
-
const acceptor = await createAcceptor({
|
|
42
|
-
listeners: [{
|
|
43
|
-
carrier: "websocket",
|
|
44
|
-
path: "direct",
|
|
45
|
-
host: "127.0.0.1",
|
|
46
|
-
port: 0,
|
|
47
|
-
allowedOrigins: [ORIGIN],
|
|
48
|
-
tls: { certificate: testCertificatePEM, privateKey: testPrivateKeyPEM },
|
|
49
|
-
}],
|
|
50
|
-
maxInboundStreams: 16,
|
|
51
|
-
authorize: async () => trustedArtifact === undefined
|
|
52
|
-
? { accepted: false, retryable: false, reason: "invalid_credential" }
|
|
53
|
-
: { accepted: true, artifact: trustedArtifact },
|
|
54
|
-
resolveHandlers: () => handlers,
|
|
55
|
-
});
|
|
35
|
+
const owner = await createCurrentPeerServer(environment => proxy.register(environment, { applicationBytes: 65536n, authorize: () => true }), ORIGIN);
|
|
56
36
|
try {
|
|
57
|
-
const
|
|
58
|
-
if (address === undefined)
|
|
59
|
-
throw new Error("Node ProxyServer listener did not bind");
|
|
60
|
-
const artifactJSON = await issueArtifact(`wss://localhost:${address.port}/flowersec/v3/direct`);
|
|
61
|
-
trustedArtifact = parseArtifact(artifactJSON);
|
|
62
|
-
const acceptedPromise = acceptor.accept();
|
|
37
|
+
const acceptedPromise = owner.acceptor.accept();
|
|
63
38
|
process.stdout.write(`${JSON.stringify({
|
|
64
|
-
runtime: "node-typescript",
|
|
65
|
-
|
|
66
|
-
origin: ORIGIN,
|
|
67
|
-
trust_pem: testCertificatePEM,
|
|
39
|
+
runtime: "node-typescript", artifact_json: owner.artifactJSON, origin: ORIGIN,
|
|
40
|
+
trust_pem: owner.trustPEM, wire_revision: 4,
|
|
68
41
|
})}\n`);
|
|
69
42
|
const accepted = await acceptedPromise;
|
|
70
|
-
|
|
71
|
-
await accepted.session.waitTermination().catch(() => undefined);
|
|
72
|
-
await serving;
|
|
43
|
+
await accepted.session.waitTermination();
|
|
73
44
|
}
|
|
74
45
|
finally {
|
|
75
46
|
await proxy.close();
|
|
76
|
-
await
|
|
47
|
+
await owner.close();
|
|
77
48
|
}
|
|
78
49
|
}
|
|
79
|
-
async function issueArtifact(endpoint) {
|
|
80
|
-
const child = spawn("go", ["run", "./internal/cmd/parity-artifact-issuer"], {
|
|
81
|
-
cwd: fileURLToPath(new URL("../../../flowersec-go", import.meta.url)),
|
|
82
|
-
env: { ...process.env, FLOWERSEC_SERVER_PARITY_PEER: "1" },
|
|
83
|
-
stdio: ["pipe", "pipe", "pipe"],
|
|
84
|
-
});
|
|
85
|
-
child.stdin.end(`${JSON.stringify({ mode: "direct", endpoint })}\n`);
|
|
86
|
-
const stdout = [];
|
|
87
|
-
const stderr = [];
|
|
88
|
-
child.stdout.on("data", (chunk) => stdout.push(chunk));
|
|
89
|
-
child.stderr.on("data", (chunk) => stderr.push(chunk));
|
|
90
|
-
const code = await new Promise((resolve) => child.once("exit", resolve));
|
|
91
|
-
if (code !== 0)
|
|
92
|
-
throw new Error(`proxy artifact issuer failed: ${Buffer.concat(stderr).toString("utf8")}`);
|
|
93
|
-
const response = JSON.parse(Buffer.concat(stdout).toString("utf8"));
|
|
94
|
-
if (response.artifact_json === undefined)
|
|
95
|
-
throw new Error("proxy artifact issuer omitted artifact");
|
|
96
|
-
return response.artifact_json;
|
|
97
|
-
}
|
|
@@ -1 +1,101 @@
|
|
|
1
|
-
|
|
1
|
+
import type { PoolServerAllowBinding } from "../node/index.js";
|
|
2
|
+
import { type CurrentRelayPeerDeployment } from "./currentRelayPeer.js";
|
|
3
|
+
import { type CurrentTunnelAuthorization } from "./currentTunnelMaterial.js";
|
|
4
|
+
import { type CurrentPoolPeerMaterial } from "./currentPeer.js";
|
|
5
|
+
export type Role = "server" | "client" | "relay" | "tunnel-endpoint-a" | "tunnel-endpoint-b";
|
|
6
|
+
export type ParityCarrier = "websocket" | "raw-quic";
|
|
7
|
+
export type ParityListener = "endpoint" | "relay";
|
|
8
|
+
export interface CurrentParityTopology {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly endpoint_a: string;
|
|
11
|
+
readonly endpoint_b: string;
|
|
12
|
+
readonly tunnel_runtime: string;
|
|
13
|
+
readonly ingress_carrier_a: ParityCarrier;
|
|
14
|
+
readonly ingress_carrier_b: ParityCarrier;
|
|
15
|
+
}
|
|
16
|
+
export interface ParityPeerInput {
|
|
17
|
+
next<T>(): Promise<T>;
|
|
18
|
+
}
|
|
19
|
+
export interface CurrentRelayReady {
|
|
20
|
+
readonly type: "relay-ready";
|
|
21
|
+
readonly runtime: string;
|
|
22
|
+
readonly carrier: ParityCarrier;
|
|
23
|
+
readonly path: "tunnel";
|
|
24
|
+
readonly wire_revision: 4;
|
|
25
|
+
readonly profile: string;
|
|
26
|
+
readonly source: "preauthorized_pool" | "live_authority";
|
|
27
|
+
readonly endpoint_url?: string;
|
|
28
|
+
readonly trust_pem: string;
|
|
29
|
+
readonly origin: string;
|
|
30
|
+
readonly trust_roots_der?: readonly string[];
|
|
31
|
+
readonly server_certificate_der?: string;
|
|
32
|
+
readonly server_carrier?: ParityCarrier;
|
|
33
|
+
readonly route_digest: string;
|
|
34
|
+
readonly client_tls_certificate_pem?: string;
|
|
35
|
+
readonly client_tls_private_key_pem?: string;
|
|
36
|
+
readonly server_tls_certificate_pem?: string;
|
|
37
|
+
readonly server_tls_private_key_pem?: string;
|
|
38
|
+
readonly material_digest?: string;
|
|
39
|
+
readonly endpoint_a_artifact_json?: string;
|
|
40
|
+
readonly endpoint_b_artifact_json?: string;
|
|
41
|
+
readonly authorizations?: readonly CurrentTunnelAuthorization[];
|
|
42
|
+
readonly verification_records?: CurrentPoolPeerMaterial["namespaces"];
|
|
43
|
+
}
|
|
44
|
+
export interface CurrentParityMaterialPublication {
|
|
45
|
+
readonly wire_revision: 4;
|
|
46
|
+
readonly endpoint_a_artifact_json: string;
|
|
47
|
+
readonly endpoint_b_artifact_json: string;
|
|
48
|
+
readonly client_tls_certificate_pem?: string;
|
|
49
|
+
readonly client_tls_private_key_pem?: string;
|
|
50
|
+
readonly server_tls_certificate_pem?: string;
|
|
51
|
+
readonly server_tls_private_key_pem?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface CurrentEndpointBReady {
|
|
54
|
+
readonly server_allow?: PoolServerAllowBinding;
|
|
55
|
+
readonly client_tls_certificate_pem?: string;
|
|
56
|
+
readonly client_tls_private_key_pem?: string;
|
|
57
|
+
readonly type: "endpoint-b-ready";
|
|
58
|
+
readonly runtime: string;
|
|
59
|
+
readonly carrier: ParityCarrier;
|
|
60
|
+
readonly path: "tunnel";
|
|
61
|
+
readonly wire_revision: 4;
|
|
62
|
+
readonly profile?: string;
|
|
63
|
+
readonly source?: "preauthorized_pool" | "live_authority";
|
|
64
|
+
readonly relay: CurrentRelayReady;
|
|
65
|
+
readonly endpoint_a_artifact_json: string;
|
|
66
|
+
readonly endpoint_b_artifact_json: string;
|
|
67
|
+
readonly authorizations?: readonly CurrentTunnelAuthorization[];
|
|
68
|
+
readonly verification_records?: CurrentPoolPeerMaterial["namespaces"];
|
|
69
|
+
}
|
|
70
|
+
export declare function requireCurrentRelay(ready: unknown, endpointRole?: 0 | 1): asserts ready is CurrentRelayReady;
|
|
71
|
+
export declare function requireCurrentListenerTLS(certificatePEM: unknown, privateKeyPEM: unknown): asserts certificatePEM is string;
|
|
72
|
+
/** Detached publication equality precedes any Environment or carrier ingress.
|
|
73
|
+
* It neither authorizes a Grant nor synthesizes an original durable record. */
|
|
74
|
+
export declare function requireCurrentTunnelPublication(publication: CurrentParityMaterialPublication, relay: CurrentRelayReady, endpointRole?: 0 | 1): void;
|
|
75
|
+
export interface CurrentRelayAcknowledgment {
|
|
76
|
+
readonly type: "configure";
|
|
77
|
+
readonly wire_revision: 4;
|
|
78
|
+
readonly route_digest: string;
|
|
79
|
+
readonly authorizations?: readonly unknown[];
|
|
80
|
+
readonly verification_records?: unknown;
|
|
81
|
+
}
|
|
82
|
+
export declare function requireCurrentRelayAcknowledgment(command: CurrentRelayAcknowledgment, relay: CurrentRelayReady): void;
|
|
83
|
+
export declare function readCurrentParityMaterialPublication(path: string, digest: string): Promise<CurrentParityMaterialPublication>;
|
|
84
|
+
export declare function publishCurrentParityMaterial(path: string, material: CurrentParityMaterialPublication): Promise<Readonly<{
|
|
85
|
+
digest: string;
|
|
86
|
+
close(): Promise<void>;
|
|
87
|
+
}>>;
|
|
88
|
+
export declare function runCurrentV4Relay(deployment: CurrentRelayPeerDeployment, input: ParityPeerInput, carrier: ParityCarrier, serverCarrier?: ParityCarrier, clientListener?: ParityListener, serverListener?: ParityListener): Promise<void>;
|
|
89
|
+
export declare function runCurrentV4EndpointB(input: ParityPeerInput, carrier: ParityCarrier, publicationPath?: string, clientListener?: ParityListener, serverListener?: ParityListener, deploymentPath?: string): Promise<void>;
|
|
90
|
+
export declare function runCurrentV4EndpointA(input: ParityPeerInput, carrier: ParityCarrier, clientListener?: ParityListener, serverListener?: ParityListener): Promise<void>;
|
|
91
|
+
export declare function parseArguments(arguments_: readonly string[]): Readonly<{
|
|
92
|
+
role: Role;
|
|
93
|
+
carrier: ParityCarrier;
|
|
94
|
+
serverCarrier?: ParityCarrier;
|
|
95
|
+
clientListener?: ParityListener;
|
|
96
|
+
serverListener?: ParityListener;
|
|
97
|
+
wireRevision: 4;
|
|
98
|
+
deploymentPath?: string;
|
|
99
|
+
materialPublicationPath?: string;
|
|
100
|
+
}>;
|
|
101
|
+
export declare function runParityPeer(arguments_?: readonly string[]): Promise<void>;
|