@rstreamlabs/webtty 1.9.1 → 1.11.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/dist/index.d.mts CHANGED
@@ -1,5 +1,7 @@
1
1
  import * as $protobuf from 'protobufjs';
2
2
  import Long from 'long';
3
+ import { RemoteFileSystem, FileSystemError, RemoteFileSystemConfig, FileSystemItem, FileSystemMkdirOptions, FileSystemReadFileOptions, FileSystemReaddirOptions, FileSystemRequestOptions, FileSystemRmOptions, FileSystemWriteData, FileSystemWriteFileOptions, FileSystemWriteStreamOptions, resolveFileSystemURL } from '@rstreamlabs/filesystem';
4
+ export { parseWebDAVMultiStatus } from '@rstreamlabs/filesystem';
3
5
 
4
6
  /** Namespace rstream. */
5
7
  declare namespace rstream {
@@ -685,7 +687,10 @@ declare namespace rstream {
685
687
  PAYLOAD_CIPHER_SUITE_AES_256_GCM = 1,
686
688
 
687
689
  /** PAYLOAD_CIPHER_SUITE_CHACHA20_POLY1305 value */
688
- PAYLOAD_CIPHER_SUITE_CHACHA20_POLY1305 = 2
690
+ PAYLOAD_CIPHER_SUITE_CHACHA20_POLY1305 = 2,
691
+
692
+ /** PAYLOAD_CIPHER_SUITE_AES_256_GCM_RANDOM_NONCE value */
693
+ PAYLOAD_CIPHER_SUITE_AES_256_GCM_RANDOM_NONCE = 3
689
694
  }
690
695
 
691
696
  /** KeyEnvelopeSuite enum. */
@@ -698,7 +703,10 @@ declare namespace rstream {
698
703
  KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_AES_256_GCM = 1,
699
704
 
700
705
  /** KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_CHACHA20_POLY1305 value */
701
- KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_CHACHA20_POLY1305 = 2
706
+ KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_CHACHA20_POLY1305 = 2,
707
+
708
+ /** KEY_ENVELOPE_SUITE_P256_HKDF_SHA256_AES_256_GCM_RANDOM_NONCE value */
709
+ KEY_ENVELOPE_SUITE_P256_HKDF_SHA256_AES_256_GCM_RANDOM_NONCE = 3
702
710
  }
703
711
 
704
712
  /** ProtocolVersion enum. */
@@ -4819,6 +4827,10 @@ interface WebTTYClientConfig {
4819
4827
  * @default "websocket"
4820
4828
  */
4821
4829
  transport?: WebTTYClientTransport;
4830
+ /** Maximum encoded message size in bytes; defaults to 1 MiB. */
4831
+ maxMessageSize?: number;
4832
+ /** Per-client WebSocket implementation; use nodeWebSocketFactory in Node.js. */
4833
+ webSocketFactory?: WebTTYWebSocketFactory;
4822
4834
  /**
4823
4835
  * Browser WebTransport constructor options.
4824
4836
  *
@@ -4867,10 +4879,32 @@ interface WebTTYClientConfig {
4867
4879
  clientBrowserId?: string;
4868
4880
  }
4869
4881
  type WebTTYClientTransport = "websocket" | "webtransport";
4882
+ interface WebTTYWebSocketEvents {
4883
+ close: object;
4884
+ error: object;
4885
+ message: {
4886
+ readonly data: unknown;
4887
+ };
4888
+ open: object;
4889
+ }
4890
+ interface WebTTYWebSocket {
4891
+ readonly bufferedAmount: number;
4892
+ send(data: Uint8Array<ArrayBuffer>): void;
4893
+ close(): void;
4894
+ addEventListener<K extends keyof WebTTYWebSocketEvents>(type: K, listener: (event: WebTTYWebSocketEvents[K]) => void): void;
4895
+ removeEventListener<K extends keyof WebTTYWebSocketEvents>(type: K, listener: (event: WebTTYWebSocketEvents[K]) => void): void;
4896
+ }
4897
+ type WebTTYWebSocketFactory = (url: string, options: {
4898
+ maxMessageSize: number;
4899
+ }) => WebTTYWebSocket;
4870
4900
  interface WebTTYClientEndpointIdentity {
4901
+ /** Suite profile bound into client proof transcripts. */
4902
+ keyEnvelopeSuite?: WebTTYKeyEnvelopeSuite;
4871
4903
  signing: WebTTYSigningIdentity;
4872
4904
  }
4873
4905
  interface WebTTYExpectedServerIdentity {
4906
+ /** Expected server encryption suite; inferred from the public key when omitted. */
4907
+ keyEnvelopeSuite?: WebTTYKeyEnvelopeSuite;
4874
4908
  encryptionKeyId: Uint8Array;
4875
4909
  encryptionPublicKey: Uint8Array;
4876
4910
  signingKeyId: Uint8Array;
@@ -4899,10 +4933,10 @@ interface WebTTYWebTransportOptions {
4899
4933
  serverCertificateHashes?: WebTTYWebTransportCertificateHash[];
4900
4934
  }
4901
4935
  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";
4936
+ type WebTTYPayloadCipherSuite = "aes-256-gcm" | "chacha20-poly1305" | "aes-256-gcm-random-nonce";
4937
+ type WebTTYKeyEnvelopeSuite = "hpke-x25519-hkdf-sha256-aes-256-gcm" | "hpke-x25519-hkdf-sha256-chacha20-poly1305" | "p256-hkdf-sha256-aes-256-gcm-random-nonce";
4938
+ type WebTTYE2EPayloadCipherSuite = "aes-256-gcm" | "aes-256-gcm-random-nonce";
4939
+ type WebTTYE2EKeyEnvelopeSuite = "hpke-x25519-hkdf-sha256-aes-256-gcm" | "p256-hkdf-sha256-aes-256-gcm-random-nonce";
4906
4940
  interface WebTTYKeyEnvelope {
4907
4941
  encapsulatedKey?: Uint8Array;
4908
4942
  recipientKeyId?: Uint8Array;
@@ -4948,7 +4982,7 @@ interface WebTTYPayloadCryptoInfo {
4948
4982
  /**
4949
4983
  * Key encapsulation mechanism used to grant access to the payload key.
4950
4984
  */
4951
- keyAgreement: "HPKE X25519";
4985
+ keyAgreement: "HPKE X25519" | "ECDH P-256";
4952
4986
  /**
4953
4987
  * Key derivation function used by HPKE.
4954
4988
  */
@@ -5058,6 +5092,7 @@ interface WebTTYEvents {
5058
5092
  * WebTTY client for managing remote execution sessions.
5059
5093
  */
5060
5094
  declare class WebTTY {
5095
+ private readonly connectionAbort;
5061
5096
  private connection;
5062
5097
  private connectionState;
5063
5098
  private heartbeatTimer;
@@ -5065,6 +5100,11 @@ declare class WebTTY {
5065
5100
  private readonly execConfig;
5066
5101
  private readonly events;
5067
5102
  private receiveQueue;
5103
+ private receivedBytes;
5104
+ private receivedMessages;
5105
+ private stdinClosed;
5106
+ private stderrClosed;
5107
+ private stdoutClosed;
5068
5108
  /**
5069
5109
  * Creates a new WebTTY instance.
5070
5110
  *
@@ -5114,6 +5154,7 @@ declare class WebTTY {
5114
5154
  private clientProofForAttach;
5115
5155
  private connectWebTransport;
5116
5156
  private handleConnectionMessage;
5157
+ private boundedMessagePayload;
5117
5158
  private trackReceiveQueue;
5118
5159
  private processMessage;
5119
5160
  private processDataMessage;
@@ -5196,9 +5237,12 @@ declare function hashWebTTYSessionKeyGrant(grant?: rstream.webtty.protobuf.Sessi
5196
5237
  declare function webTTYServerProofTranscriptBytes(transcript: WebTTYServerProofTranscript): Uint8Array;
5197
5238
  declare function hashWebTTYServerProofTranscript(transcript: WebTTYServerProofTranscript): Promise<Uint8Array>;
5198
5239
 
5240
+ declare const webTTYFIPSCompatiblePayloadSuite: WebTTYE2EPayloadCipherSuite;
5241
+ declare const webTTYFIPSCompatibleKeyEnvelopeSuite: WebTTYE2EKeyEnvelopeSuite;
5199
5242
  type WebTTYE2EKeyMaterial = Uint8Array | string;
5200
5243
  type WebTTYE2ERecipientKind = "public_key" | "user" | "workspace_device" | "workspace_keyset" | "server";
5201
5244
  interface WebTTYE2EIdentity {
5245
+ keyEnvelopeSuite?: WebTTYE2EKeyEnvelopeSuite;
5202
5246
  keyId: WebTTYE2EKeyMaterial;
5203
5247
  privateKey: WebTTYE2EKeyMaterial;
5204
5248
  publicKey: WebTTYE2EKeyMaterial;
@@ -5207,6 +5251,7 @@ interface WebTTYE2ERecipient {
5207
5251
  id?: string;
5208
5252
  keyId?: WebTTYE2EKeyMaterial;
5209
5253
  kind?: WebTTYE2ERecipientKind;
5254
+ keyEnvelopeSuite?: WebTTYE2EKeyEnvelopeSuite;
5210
5255
  publicKey: WebTTYE2EKeyMaterial;
5211
5256
  }
5212
5257
  interface WebTTYE2EKeyContextRecipient {
@@ -5233,7 +5278,7 @@ interface WebTTYE2EPayloadCrypto extends WebTTYPayloadCrypto {
5233
5278
  encryptStderr: (chunk: Uint8Array) => Promise<WebTTYEncryptedPayload>;
5234
5279
  encryptStdout: (chunk: Uint8Array) => Promise<WebTTYEncryptedPayload>;
5235
5280
  }
5236
- declare function generateWebTTYE2EIdentity(): Promise<WebTTYE2EIdentity>;
5281
+ declare function generateWebTTYE2EIdentity(keyEnvelopeSuite?: WebTTYE2EKeyEnvelopeSuite): Promise<WebTTYE2EIdentity>;
5237
5282
  declare function webTTYE2EKeyID(publicKey: Uint8Array): Promise<Uint8Array>;
5238
5283
  declare function encodeWebTTYE2EKeyMaterial(value: WebTTYE2EKeyMaterial): string;
5239
5284
  declare function decodeWebTTYE2EKeyMaterial(value: string): Uint8Array;
@@ -5330,83 +5375,22 @@ declare class WebTTYRemoteExecutor {
5330
5375
  runCommand(command: string, args?: readonly string[], options?: WebTTYRunCommandOptions): Promise<WebTTYCommandResult>;
5331
5376
  }
5332
5377
 
5333
- interface WebTTYFileSystemConfig {
5334
- authToken?: string;
5335
- fetch?: typeof fetch;
5336
- fsPath?: string;
5337
- headers?: HeadersInit;
5338
- url: WebTTYURLProvider;
5339
- }
5340
- interface WebTTYFileSystemItem {
5341
- kind: "directory" | "file";
5342
- modified?: string;
5343
- path: string;
5344
- size?: number;
5345
- }
5346
- interface WebTTYFileSystemRequestOptions {
5347
- signal?: AbortSignal;
5348
- }
5349
- interface WebTTYFileSystemReadFileOptions extends WebTTYFileSystemRequestOptions {
5350
- encoding?: string | null;
5351
- }
5352
- interface WebTTYFileSystemMkdirOptions extends WebTTYFileSystemRequestOptions {
5353
- recursive?: boolean;
5354
- }
5355
- interface WebTTYFileSystemReaddirOptions extends WebTTYFileSystemRequestOptions {
5356
- withFileTypes?: boolean;
5357
- }
5358
- interface WebTTYFileSystemRmOptions extends WebTTYFileSystemRequestOptions {
5359
- force?: boolean;
5360
- recursive?: boolean;
5361
- }
5362
- interface WebTTYFileSystemWriteFileOptions extends WebTTYFileSystemRequestOptions {
5363
- contentType?: string;
5364
- }
5365
- interface WebTTYFileSystemWriteStreamOptions extends WebTTYFileSystemRequestOptions {
5366
- contentType?: string;
5367
- }
5368
- type WebTTYFileSystemWriteData = BodyInit;
5369
- declare class WebTTYFileSystemError extends Error {
5370
- readonly operation: string;
5371
- readonly status: number;
5378
+ declare const resolveWebTTYFileSystemURL: typeof resolveFileSystemURL;
5379
+ type WebTTYFileSystemConfig = RemoteFileSystemConfig;
5380
+ type WebTTYFileSystemItem = FileSystemItem;
5381
+ type WebTTYFileSystemRequestOptions = FileSystemRequestOptions;
5382
+ type WebTTYFileSystemReadFileOptions = FileSystemReadFileOptions;
5383
+ type WebTTYFileSystemMkdirOptions = FileSystemMkdirOptions;
5384
+ type WebTTYFileSystemReaddirOptions = FileSystemReaddirOptions;
5385
+ type WebTTYFileSystemRmOptions = FileSystemRmOptions;
5386
+ type WebTTYFileSystemWriteFileOptions = FileSystemWriteFileOptions;
5387
+ type WebTTYFileSystemWriteStreamOptions = FileSystemWriteStreamOptions;
5388
+ type WebTTYFileSystemWriteData = FileSystemWriteData;
5389
+ declare class WebTTYFileSystemError extends FileSystemError {
5372
5390
  constructor(operation: string, status: number, message: string);
5373
5391
  }
5374
- declare function resolveWebTTYFileSystemURL(input: string | URL, remotePath?: string, fsPath?: string): URL;
5375
- declare function parseWebDAVMultiStatus(xml: string, fsPath?: string): WebTTYFileSystemItem[];
5376
- declare class WebTTYFileSystem {
5377
- private readonly config;
5378
- constructor(config: WebTTYFileSystemConfig);
5379
- list(path?: string, options?: WebTTYFileSystemRequestOptions): Promise<WebTTYFileSystemItem[]>;
5380
- readBytes(path: string, options?: WebTTYFileSystemRequestOptions): Promise<Uint8Array>;
5381
- readFile(path: string, options?: {
5382
- encoding?: null;
5383
- signal?: AbortSignal;
5384
- } | null): Promise<Uint8Array>;
5385
- readFile(path: string, options: {
5386
- encoding: string;
5387
- signal?: AbortSignal;
5388
- } | string): Promise<string>;
5389
- readText(path: string, options?: WebTTYFileSystemRequestOptions): Promise<string>;
5390
- readStream(path: string, options?: WebTTYFileSystemRequestOptions): Promise<ReadableStream<Uint8Array>>;
5391
- writeFile(path: string, data: WebTTYFileSystemWriteData, options?: WebTTYFileSystemWriteFileOptions): Promise<void>;
5392
- writeBytes(path: string, data: BodyInit, options?: WebTTYFileSystemRequestOptions): Promise<void>;
5393
- writeStream(path: string, data: ReadableStream<Uint8Array>, options?: WebTTYFileSystemWriteStreamOptions): Promise<void>;
5394
- writeText(path: string, data: string, options?: WebTTYFileSystemRequestOptions): Promise<void>;
5395
- copyFile(sourcePath: string, targetPath: string, options?: WebTTYFileSystemRequestOptions): Promise<void>;
5396
- createDirectory(path: string, options?: WebTTYFileSystemRequestOptions): Promise<void>;
5397
- exists(path: string, options?: WebTTYFileSystemRequestOptions): Promise<boolean>;
5398
- mkdir(path: string, options?: WebTTYFileSystemMkdirOptions): Promise<string | undefined>;
5399
- readdir(path: string, options: WebTTYFileSystemReaddirOptions & {
5400
- withFileTypes: true;
5401
- }): Promise<WebTTYFileSystemItem[]>;
5402
- readdir(path?: string, options?: WebTTYFileSystemReaddirOptions): Promise<string[]>;
5403
- rename(oldPath: string, newPath: string, options?: WebTTYFileSystemRequestOptions): Promise<void>;
5404
- rm(path: string, options?: WebTTYFileSystemRmOptions): Promise<void>;
5405
- stat(path: string, options?: WebTTYFileSystemRequestOptions): Promise<WebTTYFileSystemItem>;
5406
- delete(path: string, options?: WebTTYFileSystemRequestOptions): Promise<void>;
5407
- private createDirectoryRecursive;
5408
- private resourceURL;
5409
- private request;
5392
+ declare class WebTTYFileSystem extends RemoteFileSystem {
5393
+ protected createError(operation: string, status: number, message: string): WebTTYFileSystemError;
5410
5394
  }
5411
5395
 
5412
5396
  type WebTTYRecordedStreamType = "stdin" | "stdout" | "stderr";
@@ -5462,4 +5446,4 @@ declare function decryptWebTTYRecordedTextLog(events: readonly WebTTYRecordedSes
5462
5446
  declare function createWebTTYE2EReplayPayloadCryptoFromKeyGrant(grant: WebTTYRecordedKeyGrantDecryptMaterial, identity: WebTTYE2EIdentity): Promise<WebTTYE2EPayloadCrypto>;
5463
5447
  declare function renderWebTTYRecordedTextLog(events: readonly WebTTYRecordedSessionEvent[], chunks: readonly WebTTYReplayChunk[], options?: WebTTYRecordedTextLogOptions): WebTTYRecordedTextLog;
5464
5448
 
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 };
5449
+ 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 WebTTYWebSocket, type WebTTYWebSocketEvents, type WebTTYWebSocketFactory, type WebTTYWebTransportCertificateHash, type WebTTYWebTransportOptions, createWebTTYE2EClientPayloadCrypto, createWebTTYE2EKeyContext, createWebTTYE2EReplayPayloadCryptoFromKeyGrant, createWebTTYE2EServerPayloadCrypto, decodeWebTTYE2EKeyMaterial, decryptWebTTYRecordedEvent, decryptWebTTYRecordedTextLog, encodeWebTTYE2EKeyMaterial, executeWebTTYCommand, generateWebTTYE2EIdentity, generateWebTTYSigningIdentity, hashWebTTYAttachGrant, hashWebTTYClientCredential, hashWebTTYClientProofTranscript, hashWebTTYConfig, hashWebTTYServerProofTranscript, hashWebTTYSessionKeyGrant, openWebTTYCommand, renderWebTTYRecordedTextLog, resolveWebTTYExecutionURL, resolveWebTTYFileSystemURL, runWebTTYCommand, signWebTTYClientProofTranscript, signWebTTYServerProofTranscript, verifyWebTTYClientProofTranscript, verifyWebTTYServerProofTranscript, webTTYClientProofTranscriptBytes, webTTYE2EKeyID, webTTYFIPSCompatibleKeyEnvelopeSuite, webTTYFIPSCompatiblePayloadSuite, webTTYRecordedEventEncryptedPayload, webTTYServerProofTranscriptBytes, webTTYSigningKeyID };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import * as $protobuf from 'protobufjs';
2
2
  import Long from 'long';
3
+ import { RemoteFileSystem, FileSystemError, RemoteFileSystemConfig, FileSystemItem, FileSystemMkdirOptions, FileSystemReadFileOptions, FileSystemReaddirOptions, FileSystemRequestOptions, FileSystemRmOptions, FileSystemWriteData, FileSystemWriteFileOptions, FileSystemWriteStreamOptions, resolveFileSystemURL } from '@rstreamlabs/filesystem';
4
+ export { parseWebDAVMultiStatus } from '@rstreamlabs/filesystem';
3
5
 
4
6
  /** Namespace rstream. */
5
7
  declare namespace rstream {
@@ -685,7 +687,10 @@ declare namespace rstream {
685
687
  PAYLOAD_CIPHER_SUITE_AES_256_GCM = 1,
686
688
 
687
689
  /** PAYLOAD_CIPHER_SUITE_CHACHA20_POLY1305 value */
688
- PAYLOAD_CIPHER_SUITE_CHACHA20_POLY1305 = 2
690
+ PAYLOAD_CIPHER_SUITE_CHACHA20_POLY1305 = 2,
691
+
692
+ /** PAYLOAD_CIPHER_SUITE_AES_256_GCM_RANDOM_NONCE value */
693
+ PAYLOAD_CIPHER_SUITE_AES_256_GCM_RANDOM_NONCE = 3
689
694
  }
690
695
 
691
696
  /** KeyEnvelopeSuite enum. */
@@ -698,7 +703,10 @@ declare namespace rstream {
698
703
  KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_AES_256_GCM = 1,
699
704
 
700
705
  /** KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_CHACHA20_POLY1305 value */
701
- KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_CHACHA20_POLY1305 = 2
706
+ KEY_ENVELOPE_SUITE_HPKE_X25519_HKDF_SHA256_CHACHA20_POLY1305 = 2,
707
+
708
+ /** KEY_ENVELOPE_SUITE_P256_HKDF_SHA256_AES_256_GCM_RANDOM_NONCE value */
709
+ KEY_ENVELOPE_SUITE_P256_HKDF_SHA256_AES_256_GCM_RANDOM_NONCE = 3
702
710
  }
703
711
 
704
712
  /** ProtocolVersion enum. */
@@ -4819,6 +4827,10 @@ interface WebTTYClientConfig {
4819
4827
  * @default "websocket"
4820
4828
  */
4821
4829
  transport?: WebTTYClientTransport;
4830
+ /** Maximum encoded message size in bytes; defaults to 1 MiB. */
4831
+ maxMessageSize?: number;
4832
+ /** Per-client WebSocket implementation; use nodeWebSocketFactory in Node.js. */
4833
+ webSocketFactory?: WebTTYWebSocketFactory;
4822
4834
  /**
4823
4835
  * Browser WebTransport constructor options.
4824
4836
  *
@@ -4867,10 +4879,32 @@ interface WebTTYClientConfig {
4867
4879
  clientBrowserId?: string;
4868
4880
  }
4869
4881
  type WebTTYClientTransport = "websocket" | "webtransport";
4882
+ interface WebTTYWebSocketEvents {
4883
+ close: object;
4884
+ error: object;
4885
+ message: {
4886
+ readonly data: unknown;
4887
+ };
4888
+ open: object;
4889
+ }
4890
+ interface WebTTYWebSocket {
4891
+ readonly bufferedAmount: number;
4892
+ send(data: Uint8Array<ArrayBuffer>): void;
4893
+ close(): void;
4894
+ addEventListener<K extends keyof WebTTYWebSocketEvents>(type: K, listener: (event: WebTTYWebSocketEvents[K]) => void): void;
4895
+ removeEventListener<K extends keyof WebTTYWebSocketEvents>(type: K, listener: (event: WebTTYWebSocketEvents[K]) => void): void;
4896
+ }
4897
+ type WebTTYWebSocketFactory = (url: string, options: {
4898
+ maxMessageSize: number;
4899
+ }) => WebTTYWebSocket;
4870
4900
  interface WebTTYClientEndpointIdentity {
4901
+ /** Suite profile bound into client proof transcripts. */
4902
+ keyEnvelopeSuite?: WebTTYKeyEnvelopeSuite;
4871
4903
  signing: WebTTYSigningIdentity;
4872
4904
  }
4873
4905
  interface WebTTYExpectedServerIdentity {
4906
+ /** Expected server encryption suite; inferred from the public key when omitted. */
4907
+ keyEnvelopeSuite?: WebTTYKeyEnvelopeSuite;
4874
4908
  encryptionKeyId: Uint8Array;
4875
4909
  encryptionPublicKey: Uint8Array;
4876
4910
  signingKeyId: Uint8Array;
@@ -4899,10 +4933,10 @@ interface WebTTYWebTransportOptions {
4899
4933
  serverCertificateHashes?: WebTTYWebTransportCertificateHash[];
4900
4934
  }
4901
4935
  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";
4936
+ type WebTTYPayloadCipherSuite = "aes-256-gcm" | "chacha20-poly1305" | "aes-256-gcm-random-nonce";
4937
+ type WebTTYKeyEnvelopeSuite = "hpke-x25519-hkdf-sha256-aes-256-gcm" | "hpke-x25519-hkdf-sha256-chacha20-poly1305" | "p256-hkdf-sha256-aes-256-gcm-random-nonce";
4938
+ type WebTTYE2EPayloadCipherSuite = "aes-256-gcm" | "aes-256-gcm-random-nonce";
4939
+ type WebTTYE2EKeyEnvelopeSuite = "hpke-x25519-hkdf-sha256-aes-256-gcm" | "p256-hkdf-sha256-aes-256-gcm-random-nonce";
4906
4940
  interface WebTTYKeyEnvelope {
4907
4941
  encapsulatedKey?: Uint8Array;
4908
4942
  recipientKeyId?: Uint8Array;
@@ -4948,7 +4982,7 @@ interface WebTTYPayloadCryptoInfo {
4948
4982
  /**
4949
4983
  * Key encapsulation mechanism used to grant access to the payload key.
4950
4984
  */
4951
- keyAgreement: "HPKE X25519";
4985
+ keyAgreement: "HPKE X25519" | "ECDH P-256";
4952
4986
  /**
4953
4987
  * Key derivation function used by HPKE.
4954
4988
  */
@@ -5058,6 +5092,7 @@ interface WebTTYEvents {
5058
5092
  * WebTTY client for managing remote execution sessions.
5059
5093
  */
5060
5094
  declare class WebTTY {
5095
+ private readonly connectionAbort;
5061
5096
  private connection;
5062
5097
  private connectionState;
5063
5098
  private heartbeatTimer;
@@ -5065,6 +5100,11 @@ declare class WebTTY {
5065
5100
  private readonly execConfig;
5066
5101
  private readonly events;
5067
5102
  private receiveQueue;
5103
+ private receivedBytes;
5104
+ private receivedMessages;
5105
+ private stdinClosed;
5106
+ private stderrClosed;
5107
+ private stdoutClosed;
5068
5108
  /**
5069
5109
  * Creates a new WebTTY instance.
5070
5110
  *
@@ -5114,6 +5154,7 @@ declare class WebTTY {
5114
5154
  private clientProofForAttach;
5115
5155
  private connectWebTransport;
5116
5156
  private handleConnectionMessage;
5157
+ private boundedMessagePayload;
5117
5158
  private trackReceiveQueue;
5118
5159
  private processMessage;
5119
5160
  private processDataMessage;
@@ -5196,9 +5237,12 @@ declare function hashWebTTYSessionKeyGrant(grant?: rstream.webtty.protobuf.Sessi
5196
5237
  declare function webTTYServerProofTranscriptBytes(transcript: WebTTYServerProofTranscript): Uint8Array;
5197
5238
  declare function hashWebTTYServerProofTranscript(transcript: WebTTYServerProofTranscript): Promise<Uint8Array>;
5198
5239
 
5240
+ declare const webTTYFIPSCompatiblePayloadSuite: WebTTYE2EPayloadCipherSuite;
5241
+ declare const webTTYFIPSCompatibleKeyEnvelopeSuite: WebTTYE2EKeyEnvelopeSuite;
5199
5242
  type WebTTYE2EKeyMaterial = Uint8Array | string;
5200
5243
  type WebTTYE2ERecipientKind = "public_key" | "user" | "workspace_device" | "workspace_keyset" | "server";
5201
5244
  interface WebTTYE2EIdentity {
5245
+ keyEnvelopeSuite?: WebTTYE2EKeyEnvelopeSuite;
5202
5246
  keyId: WebTTYE2EKeyMaterial;
5203
5247
  privateKey: WebTTYE2EKeyMaterial;
5204
5248
  publicKey: WebTTYE2EKeyMaterial;
@@ -5207,6 +5251,7 @@ interface WebTTYE2ERecipient {
5207
5251
  id?: string;
5208
5252
  keyId?: WebTTYE2EKeyMaterial;
5209
5253
  kind?: WebTTYE2ERecipientKind;
5254
+ keyEnvelopeSuite?: WebTTYE2EKeyEnvelopeSuite;
5210
5255
  publicKey: WebTTYE2EKeyMaterial;
5211
5256
  }
5212
5257
  interface WebTTYE2EKeyContextRecipient {
@@ -5233,7 +5278,7 @@ interface WebTTYE2EPayloadCrypto extends WebTTYPayloadCrypto {
5233
5278
  encryptStderr: (chunk: Uint8Array) => Promise<WebTTYEncryptedPayload>;
5234
5279
  encryptStdout: (chunk: Uint8Array) => Promise<WebTTYEncryptedPayload>;
5235
5280
  }
5236
- declare function generateWebTTYE2EIdentity(): Promise<WebTTYE2EIdentity>;
5281
+ declare function generateWebTTYE2EIdentity(keyEnvelopeSuite?: WebTTYE2EKeyEnvelopeSuite): Promise<WebTTYE2EIdentity>;
5237
5282
  declare function webTTYE2EKeyID(publicKey: Uint8Array): Promise<Uint8Array>;
5238
5283
  declare function encodeWebTTYE2EKeyMaterial(value: WebTTYE2EKeyMaterial): string;
5239
5284
  declare function decodeWebTTYE2EKeyMaterial(value: string): Uint8Array;
@@ -5330,83 +5375,22 @@ declare class WebTTYRemoteExecutor {
5330
5375
  runCommand(command: string, args?: readonly string[], options?: WebTTYRunCommandOptions): Promise<WebTTYCommandResult>;
5331
5376
  }
5332
5377
 
5333
- interface WebTTYFileSystemConfig {
5334
- authToken?: string;
5335
- fetch?: typeof fetch;
5336
- fsPath?: string;
5337
- headers?: HeadersInit;
5338
- url: WebTTYURLProvider;
5339
- }
5340
- interface WebTTYFileSystemItem {
5341
- kind: "directory" | "file";
5342
- modified?: string;
5343
- path: string;
5344
- size?: number;
5345
- }
5346
- interface WebTTYFileSystemRequestOptions {
5347
- signal?: AbortSignal;
5348
- }
5349
- interface WebTTYFileSystemReadFileOptions extends WebTTYFileSystemRequestOptions {
5350
- encoding?: string | null;
5351
- }
5352
- interface WebTTYFileSystemMkdirOptions extends WebTTYFileSystemRequestOptions {
5353
- recursive?: boolean;
5354
- }
5355
- interface WebTTYFileSystemReaddirOptions extends WebTTYFileSystemRequestOptions {
5356
- withFileTypes?: boolean;
5357
- }
5358
- interface WebTTYFileSystemRmOptions extends WebTTYFileSystemRequestOptions {
5359
- force?: boolean;
5360
- recursive?: boolean;
5361
- }
5362
- interface WebTTYFileSystemWriteFileOptions extends WebTTYFileSystemRequestOptions {
5363
- contentType?: string;
5364
- }
5365
- interface WebTTYFileSystemWriteStreamOptions extends WebTTYFileSystemRequestOptions {
5366
- contentType?: string;
5367
- }
5368
- type WebTTYFileSystemWriteData = BodyInit;
5369
- declare class WebTTYFileSystemError extends Error {
5370
- readonly operation: string;
5371
- readonly status: number;
5378
+ declare const resolveWebTTYFileSystemURL: typeof resolveFileSystemURL;
5379
+ type WebTTYFileSystemConfig = RemoteFileSystemConfig;
5380
+ type WebTTYFileSystemItem = FileSystemItem;
5381
+ type WebTTYFileSystemRequestOptions = FileSystemRequestOptions;
5382
+ type WebTTYFileSystemReadFileOptions = FileSystemReadFileOptions;
5383
+ type WebTTYFileSystemMkdirOptions = FileSystemMkdirOptions;
5384
+ type WebTTYFileSystemReaddirOptions = FileSystemReaddirOptions;
5385
+ type WebTTYFileSystemRmOptions = FileSystemRmOptions;
5386
+ type WebTTYFileSystemWriteFileOptions = FileSystemWriteFileOptions;
5387
+ type WebTTYFileSystemWriteStreamOptions = FileSystemWriteStreamOptions;
5388
+ type WebTTYFileSystemWriteData = FileSystemWriteData;
5389
+ declare class WebTTYFileSystemError extends FileSystemError {
5372
5390
  constructor(operation: string, status: number, message: string);
5373
5391
  }
5374
- declare function resolveWebTTYFileSystemURL(input: string | URL, remotePath?: string, fsPath?: string): URL;
5375
- declare function parseWebDAVMultiStatus(xml: string, fsPath?: string): WebTTYFileSystemItem[];
5376
- declare class WebTTYFileSystem {
5377
- private readonly config;
5378
- constructor(config: WebTTYFileSystemConfig);
5379
- list(path?: string, options?: WebTTYFileSystemRequestOptions): Promise<WebTTYFileSystemItem[]>;
5380
- readBytes(path: string, options?: WebTTYFileSystemRequestOptions): Promise<Uint8Array>;
5381
- readFile(path: string, options?: {
5382
- encoding?: null;
5383
- signal?: AbortSignal;
5384
- } | null): Promise<Uint8Array>;
5385
- readFile(path: string, options: {
5386
- encoding: string;
5387
- signal?: AbortSignal;
5388
- } | string): Promise<string>;
5389
- readText(path: string, options?: WebTTYFileSystemRequestOptions): Promise<string>;
5390
- readStream(path: string, options?: WebTTYFileSystemRequestOptions): Promise<ReadableStream<Uint8Array>>;
5391
- writeFile(path: string, data: WebTTYFileSystemWriteData, options?: WebTTYFileSystemWriteFileOptions): Promise<void>;
5392
- writeBytes(path: string, data: BodyInit, options?: WebTTYFileSystemRequestOptions): Promise<void>;
5393
- writeStream(path: string, data: ReadableStream<Uint8Array>, options?: WebTTYFileSystemWriteStreamOptions): Promise<void>;
5394
- writeText(path: string, data: string, options?: WebTTYFileSystemRequestOptions): Promise<void>;
5395
- copyFile(sourcePath: string, targetPath: string, options?: WebTTYFileSystemRequestOptions): Promise<void>;
5396
- createDirectory(path: string, options?: WebTTYFileSystemRequestOptions): Promise<void>;
5397
- exists(path: string, options?: WebTTYFileSystemRequestOptions): Promise<boolean>;
5398
- mkdir(path: string, options?: WebTTYFileSystemMkdirOptions): Promise<string | undefined>;
5399
- readdir(path: string, options: WebTTYFileSystemReaddirOptions & {
5400
- withFileTypes: true;
5401
- }): Promise<WebTTYFileSystemItem[]>;
5402
- readdir(path?: string, options?: WebTTYFileSystemReaddirOptions): Promise<string[]>;
5403
- rename(oldPath: string, newPath: string, options?: WebTTYFileSystemRequestOptions): Promise<void>;
5404
- rm(path: string, options?: WebTTYFileSystemRmOptions): Promise<void>;
5405
- stat(path: string, options?: WebTTYFileSystemRequestOptions): Promise<WebTTYFileSystemItem>;
5406
- delete(path: string, options?: WebTTYFileSystemRequestOptions): Promise<void>;
5407
- private createDirectoryRecursive;
5408
- private resourceURL;
5409
- private request;
5392
+ declare class WebTTYFileSystem extends RemoteFileSystem {
5393
+ protected createError(operation: string, status: number, message: string): WebTTYFileSystemError;
5410
5394
  }
5411
5395
 
5412
5396
  type WebTTYRecordedStreamType = "stdin" | "stdout" | "stderr";
@@ -5462,4 +5446,4 @@ declare function decryptWebTTYRecordedTextLog(events: readonly WebTTYRecordedSes
5462
5446
  declare function createWebTTYE2EReplayPayloadCryptoFromKeyGrant(grant: WebTTYRecordedKeyGrantDecryptMaterial, identity: WebTTYE2EIdentity): Promise<WebTTYE2EPayloadCrypto>;
5463
5447
  declare function renderWebTTYRecordedTextLog(events: readonly WebTTYRecordedSessionEvent[], chunks: readonly WebTTYReplayChunk[], options?: WebTTYRecordedTextLogOptions): WebTTYRecordedTextLog;
5464
5448
 
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 };
5449
+ 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 WebTTYWebSocket, type WebTTYWebSocketEvents, type WebTTYWebSocketFactory, type WebTTYWebTransportCertificateHash, type WebTTYWebTransportOptions, createWebTTYE2EClientPayloadCrypto, createWebTTYE2EKeyContext, createWebTTYE2EReplayPayloadCryptoFromKeyGrant, createWebTTYE2EServerPayloadCrypto, decodeWebTTYE2EKeyMaterial, decryptWebTTYRecordedEvent, decryptWebTTYRecordedTextLog, encodeWebTTYE2EKeyMaterial, executeWebTTYCommand, generateWebTTYE2EIdentity, generateWebTTYSigningIdentity, hashWebTTYAttachGrant, hashWebTTYClientCredential, hashWebTTYClientProofTranscript, hashWebTTYConfig, hashWebTTYServerProofTranscript, hashWebTTYSessionKeyGrant, openWebTTYCommand, renderWebTTYRecordedTextLog, resolveWebTTYExecutionURL, resolveWebTTYFileSystemURL, runWebTTYCommand, signWebTTYClientProofTranscript, signWebTTYServerProofTranscript, verifyWebTTYClientProofTranscript, verifyWebTTYServerProofTranscript, webTTYClientProofTranscriptBytes, webTTYE2EKeyID, webTTYFIPSCompatibleKeyEnvelopeSuite, webTTYFIPSCompatiblePayloadSuite, webTTYRecordedEventEncryptedPayload, webTTYServerProofTranscriptBytes, webTTYSigningKeyID };