@rstreamlabs/webtty 1.6.5 → 1.9.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 +327 -22
- package/dist/chunk-7OHAFDJE.mjs +10679 -0
- package/dist/index.d.mts +5324 -5
- package/dist/index.d.ts +5324 -5
- package/dist/index.js +9658 -1058
- package/dist/index.mjs +76 -2112
- package/dist/node.d.mts +38 -0
- package/dist/node.d.ts +38 -0
- package/dist/node.js +11129 -0
- package/dist/node.mjs +451 -0
- package/examples/filesystem-sidecar/.env.local.example +1 -0
- package/examples/filesystem-sidecar/README.md +11 -0
- package/examples/filesystem-sidecar/package.json +20 -0
- package/examples/filesystem-sidecar/src/main.ts +42 -0
- package/examples/filesystem-sidecar/tsconfig.json +14 -0
- package/examples/remote-command/.env.local.example +1 -0
- package/examples/remote-command/README.md +11 -0
- package/examples/remote-command/package.json +20 -0
- package/examples/remote-command/src/main.ts +37 -0
- package/examples/remote-command/tsconfig.json +14 -0
- package/package.json +23 -3
package/dist/node.d.mts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { WebTTYE2EPayloadCrypto, WebTTYE2ERecipient } from './index.mjs';
|
|
2
|
+
export { ExecuteWebTTYCommandOptions, WebTTY, WebTTYAttachCapability, WebTTYAttachConfig, WebTTYAttachRole, WebTTYAuthRequirement, WebTTYClientConfig, WebTTYClientEndpointIdentity, WebTTYClientProofTranscript, WebTTYClientTransport, WebTTYCommand, WebTTYCommandLog, WebTTYCommandLogBytes, WebTTYCommandOutput, WebTTYCommandReadOptions, WebTTYCommandResult, WebTTYCommandStatus, WebTTYCommandStream, WebTTYE2EIdentity, WebTTYE2EKeyContextConfig, WebTTYE2EKeyContextRecipient, WebTTYE2EKeyEnvelopeSuite, WebTTYE2EKeyMaterial, WebTTYE2EPayloadCipherSuite, WebTTYE2EPayloadCryptoConfig, WebTTYE2ERecipientKind, WebTTYEncryptedPayload, WebTTYEvents, WebTTYExecutionConfig, WebTTYExpectedServerIdentity, WebTTYFileSystem, WebTTYFileSystemConfig, WebTTYFileSystemError, WebTTYFileSystemItem, WebTTYFileSystemMkdirOptions, WebTTYFileSystemReadFileOptions, WebTTYFileSystemReaddirOptions, WebTTYFileSystemRequestOptions, WebTTYFileSystemRmOptions, WebTTYFileSystemWriteData, WebTTYFileSystemWriteFileOptions, WebTTYFileSystemWriteStreamOptions, WebTTYKeyEnvelope, WebTTYKeyEnvelopeSuite, WebTTYOpenCapability, WebTTYPayloadCipherSuite, WebTTYPayloadCrypto, WebTTYPayloadCryptoInfo, WebTTYPayloadCryptoMetadata, WebTTYProofSignature, WebTTYRecordedCryptoMetadata, WebTTYRecordedKeyGrantDecryptMaterial, WebTTYRecordedSessionEvent, WebTTYRecordedStreamType, WebTTYRecordedTextLog, WebTTYRecordedTextLogOptions, WebTTYRemoteExecutor, WebTTYRemoteExecutorConfig, WebTTYReplayChunk, WebTTYRunCommandOptions, WebTTYServerProofTranscript, WebTTYSessionKeyGrant, WebTTYSignatureSuite, WebTTYSigningIdentity, WebTTYURLProvider, WebTTYWebTransportCertificateHash, WebTTYWebTransportOptions, createWebTTYE2EClientPayloadCrypto, createWebTTYE2EKeyContext, createWebTTYE2EReplayPayloadCryptoFromKeyGrant, createWebTTYE2EServerPayloadCrypto, decodeWebTTYE2EKeyMaterial, decryptWebTTYRecordedEvent, decryptWebTTYRecordedTextLog, encodeWebTTYE2EKeyMaterial, executeWebTTYCommand, generateWebTTYE2EIdentity, generateWebTTYSigningIdentity, hashWebTTYAttachGrant, hashWebTTYClientCredential, hashWebTTYClientProofTranscript, hashWebTTYConfig, hashWebTTYServerProofTranscript, hashWebTTYSessionKeyGrant, openWebTTYCommand, parseWebDAVMultiStatus, renderWebTTYRecordedTextLog, resolveWebTTYExecutionURL, resolveWebTTYFileSystemURL, runWebTTYCommand, signWebTTYClientProofTranscript, signWebTTYServerProofTranscript, verifyWebTTYClientProofTranscript, verifyWebTTYServerProofTranscript, webTTYClientProofTranscriptBytes, webTTYE2EKeyID, webTTYRecordedEventEncryptedPayload, webTTYServerProofTranscriptBytes, webTTYSigningKeyID } from './index.mjs';
|
|
3
|
+
import 'protobufjs';
|
|
4
|
+
import 'long';
|
|
5
|
+
|
|
6
|
+
interface WebTTYLocalE2EEnv {
|
|
7
|
+
[key: string]: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
interface WebTTYKnownServerKeyEntry {
|
|
10
|
+
client_identity?: string;
|
|
11
|
+
created_at?: string;
|
|
12
|
+
key_id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
public_key: string;
|
|
15
|
+
signing_key_id?: string;
|
|
16
|
+
signing_public_key?: string;
|
|
17
|
+
}
|
|
18
|
+
interface WebTTYKnownServerKeysFile {
|
|
19
|
+
crypto_suite: string;
|
|
20
|
+
known_servers: WebTTYKnownServerKeyEntry[];
|
|
21
|
+
version: number;
|
|
22
|
+
}
|
|
23
|
+
interface WebTTYLocalTrustOptions {
|
|
24
|
+
env?: WebTTYLocalE2EEnv;
|
|
25
|
+
keyContext?: Uint8Array | string;
|
|
26
|
+
required?: boolean;
|
|
27
|
+
target?: string;
|
|
28
|
+
hostKeyId?: string;
|
|
29
|
+
knownServerKey?: string | readonly string[];
|
|
30
|
+
knownServersFile?: string;
|
|
31
|
+
}
|
|
32
|
+
declare function defaultWebTTYKnownServersPath(env?: WebTTYLocalE2EEnv): Promise<string>;
|
|
33
|
+
declare function parseWebTTYKnownServerKey(value: string): Promise<WebTTYE2ERecipient>;
|
|
34
|
+
declare function readWebTTYKnownServerKeysFile(filePath?: string, env?: WebTTYLocalE2EEnv): Promise<WebTTYKnownServerKeysFile>;
|
|
35
|
+
declare function loadWebTTYKnownServerKeysFile(filePath?: string, env?: WebTTYLocalE2EEnv): Promise<WebTTYE2ERecipient[]>;
|
|
36
|
+
declare function createWebTTYE2EClientPayloadCryptoFromLocalTrust(options?: WebTTYLocalTrustOptions): Promise<WebTTYE2EPayloadCrypto | undefined>;
|
|
37
|
+
|
|
38
|
+
export { WebTTYE2EPayloadCrypto, WebTTYE2ERecipient, type WebTTYKnownServerKeyEntry, type WebTTYKnownServerKeysFile, type WebTTYLocalE2EEnv, type WebTTYLocalTrustOptions, createWebTTYE2EClientPayloadCryptoFromLocalTrust, defaultWebTTYKnownServersPath, loadWebTTYKnownServerKeysFile, parseWebTTYKnownServerKey, readWebTTYKnownServerKeysFile };
|
package/dist/node.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { WebTTYE2EPayloadCrypto, WebTTYE2ERecipient } from './index.js';
|
|
2
|
+
export { ExecuteWebTTYCommandOptions, WebTTY, WebTTYAttachCapability, WebTTYAttachConfig, WebTTYAttachRole, WebTTYAuthRequirement, WebTTYClientConfig, WebTTYClientEndpointIdentity, WebTTYClientProofTranscript, WebTTYClientTransport, WebTTYCommand, WebTTYCommandLog, WebTTYCommandLogBytes, WebTTYCommandOutput, WebTTYCommandReadOptions, WebTTYCommandResult, WebTTYCommandStatus, WebTTYCommandStream, WebTTYE2EIdentity, WebTTYE2EKeyContextConfig, WebTTYE2EKeyContextRecipient, WebTTYE2EKeyEnvelopeSuite, WebTTYE2EKeyMaterial, WebTTYE2EPayloadCipherSuite, WebTTYE2EPayloadCryptoConfig, WebTTYE2ERecipientKind, WebTTYEncryptedPayload, WebTTYEvents, WebTTYExecutionConfig, WebTTYExpectedServerIdentity, WebTTYFileSystem, WebTTYFileSystemConfig, WebTTYFileSystemError, WebTTYFileSystemItem, WebTTYFileSystemMkdirOptions, WebTTYFileSystemReadFileOptions, WebTTYFileSystemReaddirOptions, WebTTYFileSystemRequestOptions, WebTTYFileSystemRmOptions, WebTTYFileSystemWriteData, WebTTYFileSystemWriteFileOptions, WebTTYFileSystemWriteStreamOptions, WebTTYKeyEnvelope, WebTTYKeyEnvelopeSuite, WebTTYOpenCapability, WebTTYPayloadCipherSuite, WebTTYPayloadCrypto, WebTTYPayloadCryptoInfo, WebTTYPayloadCryptoMetadata, WebTTYProofSignature, WebTTYRecordedCryptoMetadata, WebTTYRecordedKeyGrantDecryptMaterial, WebTTYRecordedSessionEvent, WebTTYRecordedStreamType, WebTTYRecordedTextLog, WebTTYRecordedTextLogOptions, WebTTYRemoteExecutor, WebTTYRemoteExecutorConfig, WebTTYReplayChunk, WebTTYRunCommandOptions, WebTTYServerProofTranscript, WebTTYSessionKeyGrant, WebTTYSignatureSuite, WebTTYSigningIdentity, WebTTYURLProvider, WebTTYWebTransportCertificateHash, WebTTYWebTransportOptions, createWebTTYE2EClientPayloadCrypto, createWebTTYE2EKeyContext, createWebTTYE2EReplayPayloadCryptoFromKeyGrant, createWebTTYE2EServerPayloadCrypto, decodeWebTTYE2EKeyMaterial, decryptWebTTYRecordedEvent, decryptWebTTYRecordedTextLog, encodeWebTTYE2EKeyMaterial, executeWebTTYCommand, generateWebTTYE2EIdentity, generateWebTTYSigningIdentity, hashWebTTYAttachGrant, hashWebTTYClientCredential, hashWebTTYClientProofTranscript, hashWebTTYConfig, hashWebTTYServerProofTranscript, hashWebTTYSessionKeyGrant, openWebTTYCommand, parseWebDAVMultiStatus, renderWebTTYRecordedTextLog, resolveWebTTYExecutionURL, resolveWebTTYFileSystemURL, runWebTTYCommand, signWebTTYClientProofTranscript, signWebTTYServerProofTranscript, verifyWebTTYClientProofTranscript, verifyWebTTYServerProofTranscript, webTTYClientProofTranscriptBytes, webTTYE2EKeyID, webTTYRecordedEventEncryptedPayload, webTTYServerProofTranscriptBytes, webTTYSigningKeyID } from './index.js';
|
|
3
|
+
import 'protobufjs';
|
|
4
|
+
import 'long';
|
|
5
|
+
|
|
6
|
+
interface WebTTYLocalE2EEnv {
|
|
7
|
+
[key: string]: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
interface WebTTYKnownServerKeyEntry {
|
|
10
|
+
client_identity?: string;
|
|
11
|
+
created_at?: string;
|
|
12
|
+
key_id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
public_key: string;
|
|
15
|
+
signing_key_id?: string;
|
|
16
|
+
signing_public_key?: string;
|
|
17
|
+
}
|
|
18
|
+
interface WebTTYKnownServerKeysFile {
|
|
19
|
+
crypto_suite: string;
|
|
20
|
+
known_servers: WebTTYKnownServerKeyEntry[];
|
|
21
|
+
version: number;
|
|
22
|
+
}
|
|
23
|
+
interface WebTTYLocalTrustOptions {
|
|
24
|
+
env?: WebTTYLocalE2EEnv;
|
|
25
|
+
keyContext?: Uint8Array | string;
|
|
26
|
+
required?: boolean;
|
|
27
|
+
target?: string;
|
|
28
|
+
hostKeyId?: string;
|
|
29
|
+
knownServerKey?: string | readonly string[];
|
|
30
|
+
knownServersFile?: string;
|
|
31
|
+
}
|
|
32
|
+
declare function defaultWebTTYKnownServersPath(env?: WebTTYLocalE2EEnv): Promise<string>;
|
|
33
|
+
declare function parseWebTTYKnownServerKey(value: string): Promise<WebTTYE2ERecipient>;
|
|
34
|
+
declare function readWebTTYKnownServerKeysFile(filePath?: string, env?: WebTTYLocalE2EEnv): Promise<WebTTYKnownServerKeysFile>;
|
|
35
|
+
declare function loadWebTTYKnownServerKeysFile(filePath?: string, env?: WebTTYLocalE2EEnv): Promise<WebTTYE2ERecipient[]>;
|
|
36
|
+
declare function createWebTTYE2EClientPayloadCryptoFromLocalTrust(options?: WebTTYLocalTrustOptions): Promise<WebTTYE2EPayloadCrypto | undefined>;
|
|
37
|
+
|
|
38
|
+
export { WebTTYE2EPayloadCrypto, WebTTYE2ERecipient, type WebTTYKnownServerKeyEntry, type WebTTYKnownServerKeysFile, type WebTTYLocalE2EEnv, type WebTTYLocalTrustOptions, createWebTTYE2EClientPayloadCryptoFromLocalTrust, defaultWebTTYKnownServersPath, loadWebTTYKnownServerKeysFile, parseWebTTYKnownServerKey, readWebTTYKnownServerKeysFile };
|