@rstreamlabs/webtty 1.9.1 → 1.10.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 +39 -9
- package/dist/{chunk-QOAMHBHC.mjs → chunk-6DA72SBW.mjs} +368 -47
- package/dist/index.d.mts +23 -9
- package/dist/index.d.ts +23 -9
- package/dist/index.js +370 -47
- package/dist/index.mjs +5 -1
- package/dist/node.d.mts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +385 -52
- package/dist/node.mjs +20 -6
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -685,7 +685,10 @@ declare namespace rstream {
|
|
|
685
685
|
PAYLOAD_CIPHER_SUITE_AES_256_GCM = 1,
|
|
686
686
|
|
|
687
687
|
/** PAYLOAD_CIPHER_SUITE_CHACHA20_POLY1305 value */
|
|
688
|
-
PAYLOAD_CIPHER_SUITE_CHACHA20_POLY1305 = 2
|
|
688
|
+
PAYLOAD_CIPHER_SUITE_CHACHA20_POLY1305 = 2,
|
|
689
|
+
|
|
690
|
+
/** PAYLOAD_CIPHER_SUITE_AES_256_GCM_RANDOM_NONCE value */
|
|
691
|
+
PAYLOAD_CIPHER_SUITE_AES_256_GCM_RANDOM_NONCE = 3
|
|
689
692
|
}
|
|
690
693
|
|
|
691
694
|
/** KeyEnvelopeSuite enum. */
|
|
@@ -698,7 +701,10 @@ declare namespace rstream {
|
|
|
698
701
|
KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_AES_256_GCM = 1,
|
|
699
702
|
|
|
700
703
|
/** KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_CHACHA20_POLY1305 value */
|
|
701
|
-
KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_CHACHA20_POLY1305 = 2
|
|
704
|
+
KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_CHACHA20_POLY1305 = 2,
|
|
705
|
+
|
|
706
|
+
/** KEY_ENVELOPE_SUITE_P256_HKDF_SHA256_AES_256_GCM_RANDOM_NONCE value */
|
|
707
|
+
KEY_ENVELOPE_SUITE_P256_HKDF_SHA256_AES_256_GCM_RANDOM_NONCE = 3
|
|
702
708
|
}
|
|
703
709
|
|
|
704
710
|
/** ProtocolVersion enum. */
|
|
@@ -4868,9 +4874,13 @@ interface WebTTYClientConfig {
|
|
|
4868
4874
|
}
|
|
4869
4875
|
type WebTTYClientTransport = "websocket" | "webtransport";
|
|
4870
4876
|
interface WebTTYClientEndpointIdentity {
|
|
4877
|
+
/** Suite profile bound into client proof transcripts. */
|
|
4878
|
+
keyEnvelopeSuite?: WebTTYKeyEnvelopeSuite;
|
|
4871
4879
|
signing: WebTTYSigningIdentity;
|
|
4872
4880
|
}
|
|
4873
4881
|
interface WebTTYExpectedServerIdentity {
|
|
4882
|
+
/** Expected server encryption suite; inferred from the public key when omitted. */
|
|
4883
|
+
keyEnvelopeSuite?: WebTTYKeyEnvelopeSuite;
|
|
4874
4884
|
encryptionKeyId: Uint8Array;
|
|
4875
4885
|
encryptionPublicKey: Uint8Array;
|
|
4876
4886
|
signingKeyId: Uint8Array;
|
|
@@ -4899,10 +4909,10 @@ interface WebTTYWebTransportOptions {
|
|
|
4899
4909
|
serverCertificateHashes?: WebTTYWebTransportCertificateHash[];
|
|
4900
4910
|
}
|
|
4901
4911
|
type WebTTYOpenCapability = "encrypted-payload" | "session-crypto";
|
|
4902
|
-
type WebTTYPayloadCipherSuite = "aes-256-gcm" | "chacha20-poly1305";
|
|
4903
|
-
type WebTTYKeyEnvelopeSuite = "hpke-x25519-hkdf-sha256-aes-256-gcm" | "hpke-x25519-hkdf-sha256-chacha20-poly1305";
|
|
4904
|
-
type WebTTYE2EPayloadCipherSuite = "aes-256-gcm";
|
|
4905
|
-
type WebTTYE2EKeyEnvelopeSuite = "hpke-x25519-hkdf-sha256-aes-256-gcm";
|
|
4912
|
+
type WebTTYPayloadCipherSuite = "aes-256-gcm" | "chacha20-poly1305" | "aes-256-gcm-random-nonce";
|
|
4913
|
+
type WebTTYKeyEnvelopeSuite = "hpke-x25519-hkdf-sha256-aes-256-gcm" | "hpke-x25519-hkdf-sha256-chacha20-poly1305" | "p256-hkdf-sha256-aes-256-gcm-random-nonce";
|
|
4914
|
+
type WebTTYE2EPayloadCipherSuite = "aes-256-gcm" | "aes-256-gcm-random-nonce";
|
|
4915
|
+
type WebTTYE2EKeyEnvelopeSuite = "hpke-x25519-hkdf-sha256-aes-256-gcm" | "p256-hkdf-sha256-aes-256-gcm-random-nonce";
|
|
4906
4916
|
interface WebTTYKeyEnvelope {
|
|
4907
4917
|
encapsulatedKey?: Uint8Array;
|
|
4908
4918
|
recipientKeyId?: Uint8Array;
|
|
@@ -4948,7 +4958,7 @@ interface WebTTYPayloadCryptoInfo {
|
|
|
4948
4958
|
/**
|
|
4949
4959
|
* Key encapsulation mechanism used to grant access to the payload key.
|
|
4950
4960
|
*/
|
|
4951
|
-
keyAgreement: "HPKE X25519";
|
|
4961
|
+
keyAgreement: "HPKE X25519" | "ECDH P-256";
|
|
4952
4962
|
/**
|
|
4953
4963
|
* Key derivation function used by HPKE.
|
|
4954
4964
|
*/
|
|
@@ -5196,9 +5206,12 @@ declare function hashWebTTYSessionKeyGrant(grant?: rstream.webtty.protobuf.Sessi
|
|
|
5196
5206
|
declare function webTTYServerProofTranscriptBytes(transcript: WebTTYServerProofTranscript): Uint8Array;
|
|
5197
5207
|
declare function hashWebTTYServerProofTranscript(transcript: WebTTYServerProofTranscript): Promise<Uint8Array>;
|
|
5198
5208
|
|
|
5209
|
+
declare const webTTYFIPSCompatiblePayloadSuite: WebTTYE2EPayloadCipherSuite;
|
|
5210
|
+
declare const webTTYFIPSCompatibleKeyEnvelopeSuite: WebTTYE2EKeyEnvelopeSuite;
|
|
5199
5211
|
type WebTTYE2EKeyMaterial = Uint8Array | string;
|
|
5200
5212
|
type WebTTYE2ERecipientKind = "public_key" | "user" | "workspace_device" | "workspace_keyset" | "server";
|
|
5201
5213
|
interface WebTTYE2EIdentity {
|
|
5214
|
+
keyEnvelopeSuite?: WebTTYE2EKeyEnvelopeSuite;
|
|
5202
5215
|
keyId: WebTTYE2EKeyMaterial;
|
|
5203
5216
|
privateKey: WebTTYE2EKeyMaterial;
|
|
5204
5217
|
publicKey: WebTTYE2EKeyMaterial;
|
|
@@ -5207,6 +5220,7 @@ interface WebTTYE2ERecipient {
|
|
|
5207
5220
|
id?: string;
|
|
5208
5221
|
keyId?: WebTTYE2EKeyMaterial;
|
|
5209
5222
|
kind?: WebTTYE2ERecipientKind;
|
|
5223
|
+
keyEnvelopeSuite?: WebTTYE2EKeyEnvelopeSuite;
|
|
5210
5224
|
publicKey: WebTTYE2EKeyMaterial;
|
|
5211
5225
|
}
|
|
5212
5226
|
interface WebTTYE2EKeyContextRecipient {
|
|
@@ -5233,7 +5247,7 @@ interface WebTTYE2EPayloadCrypto extends WebTTYPayloadCrypto {
|
|
|
5233
5247
|
encryptStderr: (chunk: Uint8Array) => Promise<WebTTYEncryptedPayload>;
|
|
5234
5248
|
encryptStdout: (chunk: Uint8Array) => Promise<WebTTYEncryptedPayload>;
|
|
5235
5249
|
}
|
|
5236
|
-
declare function generateWebTTYE2EIdentity(): Promise<WebTTYE2EIdentity>;
|
|
5250
|
+
declare function generateWebTTYE2EIdentity(keyEnvelopeSuite?: WebTTYE2EKeyEnvelopeSuite): Promise<WebTTYE2EIdentity>;
|
|
5237
5251
|
declare function webTTYE2EKeyID(publicKey: Uint8Array): Promise<Uint8Array>;
|
|
5238
5252
|
declare function encodeWebTTYE2EKeyMaterial(value: WebTTYE2EKeyMaterial): string;
|
|
5239
5253
|
declare function decodeWebTTYE2EKeyMaterial(value: string): Uint8Array;
|
|
@@ -5462,4 +5476,4 @@ declare function decryptWebTTYRecordedTextLog(events: readonly WebTTYRecordedSes
|
|
|
5462
5476
|
declare function createWebTTYE2EReplayPayloadCryptoFromKeyGrant(grant: WebTTYRecordedKeyGrantDecryptMaterial, identity: WebTTYE2EIdentity): Promise<WebTTYE2EPayloadCrypto>;
|
|
5463
5477
|
declare function renderWebTTYRecordedTextLog(events: readonly WebTTYRecordedSessionEvent[], chunks: readonly WebTTYReplayChunk[], options?: WebTTYRecordedTextLogOptions): WebTTYRecordedTextLog;
|
|
5464
5478
|
|
|
5465
|
-
export { type ExecuteWebTTYCommandOptions, WebTTY, type WebTTYAttachCapability, type WebTTYAttachConfig, type WebTTYAttachRole, type WebTTYAuthRequirement, type WebTTYClientConfig, type WebTTYClientEndpointIdentity, type WebTTYClientProofTranscript, type WebTTYClientTransport, WebTTYCommand, type WebTTYCommandLog, type WebTTYCommandLogBytes, type WebTTYCommandOutput, type WebTTYCommandReadOptions, type WebTTYCommandResult, type WebTTYCommandStatus, type WebTTYCommandStream, type WebTTYE2EIdentity, type WebTTYE2EKeyContextConfig, type WebTTYE2EKeyContextRecipient, type WebTTYE2EKeyEnvelopeSuite, type WebTTYE2EKeyMaterial, type WebTTYE2EPayloadCipherSuite, type WebTTYE2EPayloadCrypto, type WebTTYE2EPayloadCryptoConfig, type WebTTYE2ERecipient, type WebTTYE2ERecipientKind, type WebTTYEncryptedPayload, type WebTTYEvents, type WebTTYExecutionConfig, type WebTTYExpectedServerIdentity, WebTTYFileSystem, type WebTTYFileSystemConfig, WebTTYFileSystemError, type WebTTYFileSystemItem, type WebTTYFileSystemMkdirOptions, type WebTTYFileSystemReadFileOptions, type WebTTYFileSystemReaddirOptions, type WebTTYFileSystemRequestOptions, type WebTTYFileSystemRmOptions, type WebTTYFileSystemWriteData, type WebTTYFileSystemWriteFileOptions, type WebTTYFileSystemWriteStreamOptions, type WebTTYKeyEnvelope, type WebTTYKeyEnvelopeSuite, type WebTTYOpenCapability, type WebTTYPayloadCipherSuite, type WebTTYPayloadCrypto, type WebTTYPayloadCryptoInfo, type WebTTYPayloadCryptoMetadata, type WebTTYProofSignature, type WebTTYRecordedCryptoMetadata, type WebTTYRecordedKeyGrantDecryptMaterial, type WebTTYRecordedSessionEvent, type WebTTYRecordedStreamType, type WebTTYRecordedTextLog, type WebTTYRecordedTextLogOptions, WebTTYRemoteExecutor, type WebTTYRemoteExecutorConfig, type WebTTYReplayChunk, type WebTTYRunCommandOptions, type WebTTYServerProofTranscript, type WebTTYSessionKeyGrant, type WebTTYSignatureSuite, type WebTTYSigningIdentity, type WebTTYURLProvider, type WebTTYWebTransportCertificateHash, type 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 };
|
|
5479
|
+
export { type ExecuteWebTTYCommandOptions, WebTTY, type WebTTYAttachCapability, type WebTTYAttachConfig, type WebTTYAttachRole, type WebTTYAuthRequirement, type WebTTYClientConfig, type WebTTYClientEndpointIdentity, type WebTTYClientProofTranscript, type WebTTYClientTransport, WebTTYCommand, type WebTTYCommandLog, type WebTTYCommandLogBytes, type WebTTYCommandOutput, type WebTTYCommandReadOptions, type WebTTYCommandResult, type WebTTYCommandStatus, type WebTTYCommandStream, type WebTTYE2EIdentity, type WebTTYE2EKeyContextConfig, type WebTTYE2EKeyContextRecipient, type WebTTYE2EKeyEnvelopeSuite, type WebTTYE2EKeyMaterial, type WebTTYE2EPayloadCipherSuite, type WebTTYE2EPayloadCrypto, type WebTTYE2EPayloadCryptoConfig, type WebTTYE2ERecipient, type WebTTYE2ERecipientKind, type WebTTYEncryptedPayload, type WebTTYEvents, type WebTTYExecutionConfig, type WebTTYExpectedServerIdentity, WebTTYFileSystem, type WebTTYFileSystemConfig, WebTTYFileSystemError, type WebTTYFileSystemItem, type WebTTYFileSystemMkdirOptions, type WebTTYFileSystemReadFileOptions, type WebTTYFileSystemReaddirOptions, type WebTTYFileSystemRequestOptions, type WebTTYFileSystemRmOptions, type WebTTYFileSystemWriteData, type WebTTYFileSystemWriteFileOptions, type WebTTYFileSystemWriteStreamOptions, type WebTTYKeyEnvelope, type WebTTYKeyEnvelopeSuite, type WebTTYOpenCapability, type WebTTYPayloadCipherSuite, type WebTTYPayloadCrypto, type WebTTYPayloadCryptoInfo, type WebTTYPayloadCryptoMetadata, type WebTTYProofSignature, type WebTTYRecordedCryptoMetadata, type WebTTYRecordedKeyGrantDecryptMaterial, type WebTTYRecordedSessionEvent, type WebTTYRecordedStreamType, type WebTTYRecordedTextLog, type WebTTYRecordedTextLogOptions, WebTTYRemoteExecutor, type WebTTYRemoteExecutorConfig, type WebTTYReplayChunk, type WebTTYRunCommandOptions, type WebTTYServerProofTranscript, type WebTTYSessionKeyGrant, type WebTTYSignatureSuite, type WebTTYSigningIdentity, type WebTTYURLProvider, type WebTTYWebTransportCertificateHash, type 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, webTTYFIPSCompatibleKeyEnvelopeSuite, webTTYFIPSCompatiblePayloadSuite, webTTYRecordedEventEncryptedPayload, webTTYServerProofTranscriptBytes, webTTYSigningKeyID };
|
package/dist/index.d.ts
CHANGED
|
@@ -685,7 +685,10 @@ declare namespace rstream {
|
|
|
685
685
|
PAYLOAD_CIPHER_SUITE_AES_256_GCM = 1,
|
|
686
686
|
|
|
687
687
|
/** PAYLOAD_CIPHER_SUITE_CHACHA20_POLY1305 value */
|
|
688
|
-
PAYLOAD_CIPHER_SUITE_CHACHA20_POLY1305 = 2
|
|
688
|
+
PAYLOAD_CIPHER_SUITE_CHACHA20_POLY1305 = 2,
|
|
689
|
+
|
|
690
|
+
/** PAYLOAD_CIPHER_SUITE_AES_256_GCM_RANDOM_NONCE value */
|
|
691
|
+
PAYLOAD_CIPHER_SUITE_AES_256_GCM_RANDOM_NONCE = 3
|
|
689
692
|
}
|
|
690
693
|
|
|
691
694
|
/** KeyEnvelopeSuite enum. */
|
|
@@ -698,7 +701,10 @@ declare namespace rstream {
|
|
|
698
701
|
KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_AES_256_GCM = 1,
|
|
699
702
|
|
|
700
703
|
/** KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_CHACHA20_POLY1305 value */
|
|
701
|
-
KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_CHACHA20_POLY1305 = 2
|
|
704
|
+
KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_CHACHA20_POLY1305 = 2,
|
|
705
|
+
|
|
706
|
+
/** KEY_ENVELOPE_SUITE_P256_HKDF_SHA256_AES_256_GCM_RANDOM_NONCE value */
|
|
707
|
+
KEY_ENVELOPE_SUITE_P256_HKDF_SHA256_AES_256_GCM_RANDOM_NONCE = 3
|
|
702
708
|
}
|
|
703
709
|
|
|
704
710
|
/** ProtocolVersion enum. */
|
|
@@ -4868,9 +4874,13 @@ interface WebTTYClientConfig {
|
|
|
4868
4874
|
}
|
|
4869
4875
|
type WebTTYClientTransport = "websocket" | "webtransport";
|
|
4870
4876
|
interface WebTTYClientEndpointIdentity {
|
|
4877
|
+
/** Suite profile bound into client proof transcripts. */
|
|
4878
|
+
keyEnvelopeSuite?: WebTTYKeyEnvelopeSuite;
|
|
4871
4879
|
signing: WebTTYSigningIdentity;
|
|
4872
4880
|
}
|
|
4873
4881
|
interface WebTTYExpectedServerIdentity {
|
|
4882
|
+
/** Expected server encryption suite; inferred from the public key when omitted. */
|
|
4883
|
+
keyEnvelopeSuite?: WebTTYKeyEnvelopeSuite;
|
|
4874
4884
|
encryptionKeyId: Uint8Array;
|
|
4875
4885
|
encryptionPublicKey: Uint8Array;
|
|
4876
4886
|
signingKeyId: Uint8Array;
|
|
@@ -4899,10 +4909,10 @@ interface WebTTYWebTransportOptions {
|
|
|
4899
4909
|
serverCertificateHashes?: WebTTYWebTransportCertificateHash[];
|
|
4900
4910
|
}
|
|
4901
4911
|
type WebTTYOpenCapability = "encrypted-payload" | "session-crypto";
|
|
4902
|
-
type WebTTYPayloadCipherSuite = "aes-256-gcm" | "chacha20-poly1305";
|
|
4903
|
-
type WebTTYKeyEnvelopeSuite = "hpke-x25519-hkdf-sha256-aes-256-gcm" | "hpke-x25519-hkdf-sha256-chacha20-poly1305";
|
|
4904
|
-
type WebTTYE2EPayloadCipherSuite = "aes-256-gcm";
|
|
4905
|
-
type WebTTYE2EKeyEnvelopeSuite = "hpke-x25519-hkdf-sha256-aes-256-gcm";
|
|
4912
|
+
type WebTTYPayloadCipherSuite = "aes-256-gcm" | "chacha20-poly1305" | "aes-256-gcm-random-nonce";
|
|
4913
|
+
type WebTTYKeyEnvelopeSuite = "hpke-x25519-hkdf-sha256-aes-256-gcm" | "hpke-x25519-hkdf-sha256-chacha20-poly1305" | "p256-hkdf-sha256-aes-256-gcm-random-nonce";
|
|
4914
|
+
type WebTTYE2EPayloadCipherSuite = "aes-256-gcm" | "aes-256-gcm-random-nonce";
|
|
4915
|
+
type WebTTYE2EKeyEnvelopeSuite = "hpke-x25519-hkdf-sha256-aes-256-gcm" | "p256-hkdf-sha256-aes-256-gcm-random-nonce";
|
|
4906
4916
|
interface WebTTYKeyEnvelope {
|
|
4907
4917
|
encapsulatedKey?: Uint8Array;
|
|
4908
4918
|
recipientKeyId?: Uint8Array;
|
|
@@ -4948,7 +4958,7 @@ interface WebTTYPayloadCryptoInfo {
|
|
|
4948
4958
|
/**
|
|
4949
4959
|
* Key encapsulation mechanism used to grant access to the payload key.
|
|
4950
4960
|
*/
|
|
4951
|
-
keyAgreement: "HPKE X25519";
|
|
4961
|
+
keyAgreement: "HPKE X25519" | "ECDH P-256";
|
|
4952
4962
|
/**
|
|
4953
4963
|
* Key derivation function used by HPKE.
|
|
4954
4964
|
*/
|
|
@@ -5196,9 +5206,12 @@ declare function hashWebTTYSessionKeyGrant(grant?: rstream.webtty.protobuf.Sessi
|
|
|
5196
5206
|
declare function webTTYServerProofTranscriptBytes(transcript: WebTTYServerProofTranscript): Uint8Array;
|
|
5197
5207
|
declare function hashWebTTYServerProofTranscript(transcript: WebTTYServerProofTranscript): Promise<Uint8Array>;
|
|
5198
5208
|
|
|
5209
|
+
declare const webTTYFIPSCompatiblePayloadSuite: WebTTYE2EPayloadCipherSuite;
|
|
5210
|
+
declare const webTTYFIPSCompatibleKeyEnvelopeSuite: WebTTYE2EKeyEnvelopeSuite;
|
|
5199
5211
|
type WebTTYE2EKeyMaterial = Uint8Array | string;
|
|
5200
5212
|
type WebTTYE2ERecipientKind = "public_key" | "user" | "workspace_device" | "workspace_keyset" | "server";
|
|
5201
5213
|
interface WebTTYE2EIdentity {
|
|
5214
|
+
keyEnvelopeSuite?: WebTTYE2EKeyEnvelopeSuite;
|
|
5202
5215
|
keyId: WebTTYE2EKeyMaterial;
|
|
5203
5216
|
privateKey: WebTTYE2EKeyMaterial;
|
|
5204
5217
|
publicKey: WebTTYE2EKeyMaterial;
|
|
@@ -5207,6 +5220,7 @@ interface WebTTYE2ERecipient {
|
|
|
5207
5220
|
id?: string;
|
|
5208
5221
|
keyId?: WebTTYE2EKeyMaterial;
|
|
5209
5222
|
kind?: WebTTYE2ERecipientKind;
|
|
5223
|
+
keyEnvelopeSuite?: WebTTYE2EKeyEnvelopeSuite;
|
|
5210
5224
|
publicKey: WebTTYE2EKeyMaterial;
|
|
5211
5225
|
}
|
|
5212
5226
|
interface WebTTYE2EKeyContextRecipient {
|
|
@@ -5233,7 +5247,7 @@ interface WebTTYE2EPayloadCrypto extends WebTTYPayloadCrypto {
|
|
|
5233
5247
|
encryptStderr: (chunk: Uint8Array) => Promise<WebTTYEncryptedPayload>;
|
|
5234
5248
|
encryptStdout: (chunk: Uint8Array) => Promise<WebTTYEncryptedPayload>;
|
|
5235
5249
|
}
|
|
5236
|
-
declare function generateWebTTYE2EIdentity(): Promise<WebTTYE2EIdentity>;
|
|
5250
|
+
declare function generateWebTTYE2EIdentity(keyEnvelopeSuite?: WebTTYE2EKeyEnvelopeSuite): Promise<WebTTYE2EIdentity>;
|
|
5237
5251
|
declare function webTTYE2EKeyID(publicKey: Uint8Array): Promise<Uint8Array>;
|
|
5238
5252
|
declare function encodeWebTTYE2EKeyMaterial(value: WebTTYE2EKeyMaterial): string;
|
|
5239
5253
|
declare function decodeWebTTYE2EKeyMaterial(value: string): Uint8Array;
|
|
@@ -5462,4 +5476,4 @@ declare function decryptWebTTYRecordedTextLog(events: readonly WebTTYRecordedSes
|
|
|
5462
5476
|
declare function createWebTTYE2EReplayPayloadCryptoFromKeyGrant(grant: WebTTYRecordedKeyGrantDecryptMaterial, identity: WebTTYE2EIdentity): Promise<WebTTYE2EPayloadCrypto>;
|
|
5463
5477
|
declare function renderWebTTYRecordedTextLog(events: readonly WebTTYRecordedSessionEvent[], chunks: readonly WebTTYReplayChunk[], options?: WebTTYRecordedTextLogOptions): WebTTYRecordedTextLog;
|
|
5464
5478
|
|
|
5465
|
-
export { type ExecuteWebTTYCommandOptions, WebTTY, type WebTTYAttachCapability, type WebTTYAttachConfig, type WebTTYAttachRole, type WebTTYAuthRequirement, type WebTTYClientConfig, type WebTTYClientEndpointIdentity, type WebTTYClientProofTranscript, type WebTTYClientTransport, WebTTYCommand, type WebTTYCommandLog, type WebTTYCommandLogBytes, type WebTTYCommandOutput, type WebTTYCommandReadOptions, type WebTTYCommandResult, type WebTTYCommandStatus, type WebTTYCommandStream, type WebTTYE2EIdentity, type WebTTYE2EKeyContextConfig, type WebTTYE2EKeyContextRecipient, type WebTTYE2EKeyEnvelopeSuite, type WebTTYE2EKeyMaterial, type WebTTYE2EPayloadCipherSuite, type WebTTYE2EPayloadCrypto, type WebTTYE2EPayloadCryptoConfig, type WebTTYE2ERecipient, type WebTTYE2ERecipientKind, type WebTTYEncryptedPayload, type WebTTYEvents, type WebTTYExecutionConfig, type WebTTYExpectedServerIdentity, WebTTYFileSystem, type WebTTYFileSystemConfig, WebTTYFileSystemError, type WebTTYFileSystemItem, type WebTTYFileSystemMkdirOptions, type WebTTYFileSystemReadFileOptions, type WebTTYFileSystemReaddirOptions, type WebTTYFileSystemRequestOptions, type WebTTYFileSystemRmOptions, type WebTTYFileSystemWriteData, type WebTTYFileSystemWriteFileOptions, type WebTTYFileSystemWriteStreamOptions, type WebTTYKeyEnvelope, type WebTTYKeyEnvelopeSuite, type WebTTYOpenCapability, type WebTTYPayloadCipherSuite, type WebTTYPayloadCrypto, type WebTTYPayloadCryptoInfo, type WebTTYPayloadCryptoMetadata, type WebTTYProofSignature, type WebTTYRecordedCryptoMetadata, type WebTTYRecordedKeyGrantDecryptMaterial, type WebTTYRecordedSessionEvent, type WebTTYRecordedStreamType, type WebTTYRecordedTextLog, type WebTTYRecordedTextLogOptions, WebTTYRemoteExecutor, type WebTTYRemoteExecutorConfig, type WebTTYReplayChunk, type WebTTYRunCommandOptions, type WebTTYServerProofTranscript, type WebTTYSessionKeyGrant, type WebTTYSignatureSuite, type WebTTYSigningIdentity, type WebTTYURLProvider, type WebTTYWebTransportCertificateHash, type 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 };
|
|
5479
|
+
export { type ExecuteWebTTYCommandOptions, WebTTY, type WebTTYAttachCapability, type WebTTYAttachConfig, type WebTTYAttachRole, type WebTTYAuthRequirement, type WebTTYClientConfig, type WebTTYClientEndpointIdentity, type WebTTYClientProofTranscript, type WebTTYClientTransport, WebTTYCommand, type WebTTYCommandLog, type WebTTYCommandLogBytes, type WebTTYCommandOutput, type WebTTYCommandReadOptions, type WebTTYCommandResult, type WebTTYCommandStatus, type WebTTYCommandStream, type WebTTYE2EIdentity, type WebTTYE2EKeyContextConfig, type WebTTYE2EKeyContextRecipient, type WebTTYE2EKeyEnvelopeSuite, type WebTTYE2EKeyMaterial, type WebTTYE2EPayloadCipherSuite, type WebTTYE2EPayloadCrypto, type WebTTYE2EPayloadCryptoConfig, type WebTTYE2ERecipient, type WebTTYE2ERecipientKind, type WebTTYEncryptedPayload, type WebTTYEvents, type WebTTYExecutionConfig, type WebTTYExpectedServerIdentity, WebTTYFileSystem, type WebTTYFileSystemConfig, WebTTYFileSystemError, type WebTTYFileSystemItem, type WebTTYFileSystemMkdirOptions, type WebTTYFileSystemReadFileOptions, type WebTTYFileSystemReaddirOptions, type WebTTYFileSystemRequestOptions, type WebTTYFileSystemRmOptions, type WebTTYFileSystemWriteData, type WebTTYFileSystemWriteFileOptions, type WebTTYFileSystemWriteStreamOptions, type WebTTYKeyEnvelope, type WebTTYKeyEnvelopeSuite, type WebTTYOpenCapability, type WebTTYPayloadCipherSuite, type WebTTYPayloadCrypto, type WebTTYPayloadCryptoInfo, type WebTTYPayloadCryptoMetadata, type WebTTYProofSignature, type WebTTYRecordedCryptoMetadata, type WebTTYRecordedKeyGrantDecryptMaterial, type WebTTYRecordedSessionEvent, type WebTTYRecordedStreamType, type WebTTYRecordedTextLog, type WebTTYRecordedTextLogOptions, WebTTYRemoteExecutor, type WebTTYRemoteExecutorConfig, type WebTTYReplayChunk, type WebTTYRunCommandOptions, type WebTTYServerProofTranscript, type WebTTYSessionKeyGrant, type WebTTYSignatureSuite, type WebTTYSigningIdentity, type WebTTYURLProvider, type WebTTYWebTransportCertificateHash, type 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, webTTYFIPSCompatibleKeyEnvelopeSuite, webTTYFIPSCompatiblePayloadSuite, webTTYRecordedEventEncryptedPayload, webTTYServerProofTranscriptBytes, webTTYSigningKeyID };
|