// Copyright 2025 LiveKit, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // @generated by protoc-gen-es v1.10.1 with parameter "js_import_style=legacy_commonjs" // @generated from file data_stream.proto (package livekit.proto, syntax proto2) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto2 } from "@bufbuild/protobuf"; import type { FfiOwnedHandle } from "./handle_pb.js"; import type { EncryptionType } from "./e2ee_pb.js"; /** * A reader for an incoming stream. * * @generated from message livekit.proto.OwnedTextStreamReader */ export declare class OwnedTextStreamReader extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.TextStreamInfo info = 2; */ info?: TextStreamInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedTextStreamReader"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedTextStreamReader; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedTextStreamReader; static fromJsonString(jsonString: string, options?: Partial): OwnedTextStreamReader; static equals(a: OwnedTextStreamReader | PlainMessage | undefined, b: OwnedTextStreamReader | PlainMessage | undefined): boolean; } /** * Reads an incoming text stream incrementally. * * @generated from message livekit.proto.TextStreamReaderReadIncrementalRequest */ export declare class TextStreamReaderReadIncrementalRequest extends Message { /** * @generated from field: required uint64 reader_handle = 1; */ readerHandle?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamReaderReadIncrementalRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderReadIncrementalRequest; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderReadIncrementalRequest; static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderReadIncrementalRequest; static equals(a: TextStreamReaderReadIncrementalRequest | PlainMessage | undefined, b: TextStreamReaderReadIncrementalRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TextStreamReaderReadIncrementalResponse */ export declare class TextStreamReaderReadIncrementalResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamReaderReadIncrementalResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderReadIncrementalResponse; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderReadIncrementalResponse; static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderReadIncrementalResponse; static equals(a: TextStreamReaderReadIncrementalResponse | PlainMessage | undefined, b: TextStreamReaderReadIncrementalResponse | PlainMessage | undefined): boolean; } /** * Reads an incoming text stream in its entirety. * * @generated from message livekit.proto.TextStreamReaderReadAllRequest */ export declare class TextStreamReaderReadAllRequest extends Message { /** * @generated from field: required uint64 reader_handle = 1; */ readerHandle?: bigint; /** * @generated from field: optional uint64 request_async_id = 2; */ requestAsyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamReaderReadAllRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderReadAllRequest; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderReadAllRequest; static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderReadAllRequest; static equals(a: TextStreamReaderReadAllRequest | PlainMessage | undefined, b: TextStreamReaderReadAllRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TextStreamReaderReadAllResponse */ export declare class TextStreamReaderReadAllResponse extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamReaderReadAllResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderReadAllResponse; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderReadAllResponse; static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderReadAllResponse; static equals(a: TextStreamReaderReadAllResponse | PlainMessage | undefined, b: TextStreamReaderReadAllResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TextStreamReaderReadAllCallback */ export declare class TextStreamReaderReadAllCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from oneof livekit.proto.TextStreamReaderReadAllCallback.result */ result: { /** * @generated from field: string content = 2; */ value: string; case: "content"; } | { /** * @generated from field: livekit.proto.StreamError error = 3; */ value: StreamError; case: "error"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamReaderReadAllCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderReadAllCallback; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderReadAllCallback; static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderReadAllCallback; static equals(a: TextStreamReaderReadAllCallback | PlainMessage | undefined, b: TextStreamReaderReadAllCallback | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TextStreamReaderEvent */ export declare class TextStreamReaderEvent extends Message { /** * @generated from field: required uint64 reader_handle = 1; */ readerHandle?: bigint; /** * @generated from oneof livekit.proto.TextStreamReaderEvent.detail */ detail: { /** * @generated from field: livekit.proto.TextStreamReaderChunkReceived chunk_received = 2; */ value: TextStreamReaderChunkReceived; case: "chunkReceived"; } | { /** * @generated from field: livekit.proto.TextStreamReaderEOS eos = 3; */ value: TextStreamReaderEOS; case: "eos"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamReaderEvent"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderEvent; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderEvent; static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderEvent; static equals(a: TextStreamReaderEvent | PlainMessage | undefined, b: TextStreamReaderEvent | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TextStreamReaderChunkReceived */ export declare class TextStreamReaderChunkReceived extends Message { /** * @generated from field: required string content = 1; */ content?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamReaderChunkReceived"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderChunkReceived; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderChunkReceived; static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderChunkReceived; static equals(a: TextStreamReaderChunkReceived | PlainMessage | undefined, b: TextStreamReaderChunkReceived | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TextStreamReaderEOS */ export declare class TextStreamReaderEOS extends Message { /** * @generated from field: optional livekit.proto.StreamError error = 1; */ error?: StreamError; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamReaderEOS"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamReaderEOS; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamReaderEOS; static fromJsonString(jsonString: string, options?: Partial): TextStreamReaderEOS; static equals(a: TextStreamReaderEOS | PlainMessage | undefined, b: TextStreamReaderEOS | PlainMessage | undefined): boolean; } /** * A reader for an incoming stream. * * @generated from message livekit.proto.OwnedByteStreamReader */ export declare class OwnedByteStreamReader extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.ByteStreamInfo info = 2; */ info?: ByteStreamInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedByteStreamReader"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedByteStreamReader; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedByteStreamReader; static fromJsonString(jsonString: string, options?: Partial): OwnedByteStreamReader; static equals(a: OwnedByteStreamReader | PlainMessage | undefined, b: OwnedByteStreamReader | PlainMessage | undefined): boolean; } /** * Reads an incoming byte stream incrementally. * * @generated from message livekit.proto.ByteStreamReaderReadIncrementalRequest */ export declare class ByteStreamReaderReadIncrementalRequest extends Message { /** * @generated from field: required uint64 reader_handle = 1; */ readerHandle?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamReaderReadIncrementalRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderReadIncrementalRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderReadIncrementalRequest; static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderReadIncrementalRequest; static equals(a: ByteStreamReaderReadIncrementalRequest | PlainMessage | undefined, b: ByteStreamReaderReadIncrementalRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ByteStreamReaderReadIncrementalResponse */ export declare class ByteStreamReaderReadIncrementalResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamReaderReadIncrementalResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderReadIncrementalResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderReadIncrementalResponse; static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderReadIncrementalResponse; static equals(a: ByteStreamReaderReadIncrementalResponse | PlainMessage | undefined, b: ByteStreamReaderReadIncrementalResponse | PlainMessage | undefined): boolean; } /** * Reads an incoming byte stream in its entirety. * * @generated from message livekit.proto.ByteStreamReaderReadAllRequest */ export declare class ByteStreamReaderReadAllRequest extends Message { /** * @generated from field: required uint64 reader_handle = 1; */ readerHandle?: bigint; /** * @generated from field: optional uint64 request_async_id = 2; */ requestAsyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamReaderReadAllRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderReadAllRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderReadAllRequest; static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderReadAllRequest; static equals(a: ByteStreamReaderReadAllRequest | PlainMessage | undefined, b: ByteStreamReaderReadAllRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ByteStreamReaderReadAllResponse */ export declare class ByteStreamReaderReadAllResponse extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamReaderReadAllResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderReadAllResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderReadAllResponse; static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderReadAllResponse; static equals(a: ByteStreamReaderReadAllResponse | PlainMessage | undefined, b: ByteStreamReaderReadAllResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ByteStreamReaderReadAllCallback */ export declare class ByteStreamReaderReadAllCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from oneof livekit.proto.ByteStreamReaderReadAllCallback.result */ result: { /** * @generated from field: bytes content = 2; */ value: Uint8Array; case: "content"; } | { /** * @generated from field: livekit.proto.StreamError error = 3; */ value: StreamError; case: "error"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamReaderReadAllCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderReadAllCallback; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderReadAllCallback; static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderReadAllCallback; static equals(a: ByteStreamReaderReadAllCallback | PlainMessage | undefined, b: ByteStreamReaderReadAllCallback | PlainMessage | undefined): boolean; } /** * Writes data from an incoming stream to a file as it arrives. * * @generated from message livekit.proto.ByteStreamReaderWriteToFileRequest */ export declare class ByteStreamReaderWriteToFileRequest extends Message { /** * @generated from field: required uint64 reader_handle = 1; */ readerHandle?: bigint; /** * @generated from field: optional uint64 request_async_id = 2; */ requestAsyncId?: bigint; /** * Directory to write the file in (must be writable by the current process). * If not provided, the file will be written to the system's temp directory. * * @generated from field: optional string directory = 3; */ directory?: string; /** * Name to use for the written file. * If not provided, the file's name and extension will be inferred from * the stream's info. * * @generated from field: optional string name_override = 4; */ nameOverride?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamReaderWriteToFileRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderWriteToFileRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderWriteToFileRequest; static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderWriteToFileRequest; static equals(a: ByteStreamReaderWriteToFileRequest | PlainMessage | undefined, b: ByteStreamReaderWriteToFileRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ByteStreamReaderWriteToFileResponse */ export declare class ByteStreamReaderWriteToFileResponse extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamReaderWriteToFileResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderWriteToFileResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderWriteToFileResponse; static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderWriteToFileResponse; static equals(a: ByteStreamReaderWriteToFileResponse | PlainMessage | undefined, b: ByteStreamReaderWriteToFileResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ByteStreamReaderWriteToFileCallback */ export declare class ByteStreamReaderWriteToFileCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from oneof livekit.proto.ByteStreamReaderWriteToFileCallback.result */ result: { /** * Path the file was written to. * * @generated from field: string file_path = 2; */ value: string; case: "filePath"; } | { /** * @generated from field: livekit.proto.StreamError error = 3; */ value: StreamError; case: "error"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamReaderWriteToFileCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderWriteToFileCallback; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderWriteToFileCallback; static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderWriteToFileCallback; static equals(a: ByteStreamReaderWriteToFileCallback | PlainMessage | undefined, b: ByteStreamReaderWriteToFileCallback | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ByteStreamReaderEvent */ export declare class ByteStreamReaderEvent extends Message { /** * @generated from field: required uint64 reader_handle = 1; */ readerHandle?: bigint; /** * @generated from oneof livekit.proto.ByteStreamReaderEvent.detail */ detail: { /** * @generated from field: livekit.proto.ByteStreamReaderChunkReceived chunk_received = 2; */ value: ByteStreamReaderChunkReceived; case: "chunkReceived"; } | { /** * @generated from field: livekit.proto.ByteStreamReaderEOS eos = 3; */ value: ByteStreamReaderEOS; case: "eos"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamReaderEvent"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderEvent; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderEvent; static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderEvent; static equals(a: ByteStreamReaderEvent | PlainMessage | undefined, b: ByteStreamReaderEvent | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ByteStreamReaderChunkReceived */ export declare class ByteStreamReaderChunkReceived extends Message { /** * @generated from field: required bytes content = 1; */ content?: Uint8Array; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamReaderChunkReceived"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderChunkReceived; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderChunkReceived; static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderChunkReceived; static equals(a: ByteStreamReaderChunkReceived | PlainMessage | undefined, b: ByteStreamReaderChunkReceived | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ByteStreamReaderEOS */ export declare class ByteStreamReaderEOS extends Message { /** * @generated from field: optional livekit.proto.StreamError error = 1; */ error?: StreamError; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamReaderEOS"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamReaderEOS; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamReaderEOS; static fromJsonString(jsonString: string, options?: Partial): ByteStreamReaderEOS; static equals(a: ByteStreamReaderEOS | PlainMessage | undefined, b: ByteStreamReaderEOS | PlainMessage | undefined): boolean; } /** * Sends the contents of a file over a data stream. * * @generated from message livekit.proto.StreamSendFileRequest */ export declare class StreamSendFileRequest extends Message { /** * @generated from field: required uint64 local_participant_handle = 1; */ localParticipantHandle?: bigint; /** * @generated from field: required livekit.proto.StreamByteOptions options = 2; */ options?: StreamByteOptions; /** * Path of the file to send (must be readable by the current process). * * @generated from field: required string file_path = 3; */ filePath?: string; /** * @generated from field: optional uint64 request_async_id = 4; */ requestAsyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StreamSendFileRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendFileRequest; static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendFileRequest; static fromJsonString(jsonString: string, options?: Partial): StreamSendFileRequest; static equals(a: StreamSendFileRequest | PlainMessage | undefined, b: StreamSendFileRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.StreamSendFileResponse */ export declare class StreamSendFileResponse extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StreamSendFileResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendFileResponse; static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendFileResponse; static fromJsonString(jsonString: string, options?: Partial): StreamSendFileResponse; static equals(a: StreamSendFileResponse | PlainMessage | undefined, b: StreamSendFileResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.StreamSendFileCallback */ export declare class StreamSendFileCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from oneof livekit.proto.StreamSendFileCallback.result */ result: { /** * @generated from field: livekit.proto.ByteStreamInfo info = 2; */ value: ByteStreamInfo; case: "info"; } | { /** * @generated from field: livekit.proto.StreamError error = 3; */ value: StreamError; case: "error"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StreamSendFileCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendFileCallback; static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendFileCallback; static fromJsonString(jsonString: string, options?: Partial): StreamSendFileCallback; static equals(a: StreamSendFileCallback | PlainMessage | undefined, b: StreamSendFileCallback | PlainMessage | undefined): boolean; } /** * Sends bytes over a data stream. * * @generated from message livekit.proto.StreamSendBytesRequest */ export declare class StreamSendBytesRequest extends Message { /** * @generated from field: required uint64 local_participant_handle = 1; */ localParticipantHandle?: bigint; /** * @generated from field: required livekit.proto.StreamByteOptions options = 2; */ options?: StreamByteOptions; /** * Bytes to send. * * @generated from field: required bytes bytes = 3; */ bytes?: Uint8Array; /** * @generated from field: optional uint64 request_async_id = 4; */ requestAsyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StreamSendBytesRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendBytesRequest; static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendBytesRequest; static fromJsonString(jsonString: string, options?: Partial): StreamSendBytesRequest; static equals(a: StreamSendBytesRequest | PlainMessage | undefined, b: StreamSendBytesRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.StreamSendBytesResponse */ export declare class StreamSendBytesResponse extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StreamSendBytesResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendBytesResponse; static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendBytesResponse; static fromJsonString(jsonString: string, options?: Partial): StreamSendBytesResponse; static equals(a: StreamSendBytesResponse | PlainMessage | undefined, b: StreamSendBytesResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.StreamSendBytesCallback */ export declare class StreamSendBytesCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from oneof livekit.proto.StreamSendBytesCallback.result */ result: { /** * @generated from field: livekit.proto.ByteStreamInfo info = 2; */ value: ByteStreamInfo; case: "info"; } | { /** * @generated from field: livekit.proto.StreamError error = 3; */ value: StreamError; case: "error"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StreamSendBytesCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendBytesCallback; static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendBytesCallback; static fromJsonString(jsonString: string, options?: Partial): StreamSendBytesCallback; static equals(a: StreamSendBytesCallback | PlainMessage | undefined, b: StreamSendBytesCallback | PlainMessage | undefined): boolean; } /** * Sends text over a data stream. * * @generated from message livekit.proto.StreamSendTextRequest */ export declare class StreamSendTextRequest extends Message { /** * @generated from field: required uint64 local_participant_handle = 1; */ localParticipantHandle?: bigint; /** * @generated from field: required livekit.proto.StreamTextOptions options = 2; */ options?: StreamTextOptions; /** * Text to send. * * @generated from field: required string text = 3; */ text?: string; /** * @generated from field: optional uint64 request_async_id = 4; */ requestAsyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StreamSendTextRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendTextRequest; static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendTextRequest; static fromJsonString(jsonString: string, options?: Partial): StreamSendTextRequest; static equals(a: StreamSendTextRequest | PlainMessage | undefined, b: StreamSendTextRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.StreamSendTextResponse */ export declare class StreamSendTextResponse extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StreamSendTextResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendTextResponse; static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendTextResponse; static fromJsonString(jsonString: string, options?: Partial): StreamSendTextResponse; static equals(a: StreamSendTextResponse | PlainMessage | undefined, b: StreamSendTextResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.StreamSendTextCallback */ export declare class StreamSendTextCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from oneof livekit.proto.StreamSendTextCallback.result */ result: { /** * @generated from field: livekit.proto.TextStreamInfo info = 2; */ value: TextStreamInfo; case: "info"; } | { /** * @generated from field: livekit.proto.StreamError error = 3; */ value: StreamError; case: "error"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StreamSendTextCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StreamSendTextCallback; static fromJson(jsonValue: JsonValue, options?: Partial): StreamSendTextCallback; static fromJsonString(jsonString: string, options?: Partial): StreamSendTextCallback; static equals(a: StreamSendTextCallback | PlainMessage | undefined, b: StreamSendTextCallback | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.OwnedByteStreamWriter */ export declare class OwnedByteStreamWriter extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.ByteStreamInfo info = 2; */ info?: ByteStreamInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedByteStreamWriter"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedByteStreamWriter; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedByteStreamWriter; static fromJsonString(jsonString: string, options?: Partial): OwnedByteStreamWriter; static equals(a: OwnedByteStreamWriter | PlainMessage | undefined, b: OwnedByteStreamWriter | PlainMessage | undefined): boolean; } /** * Opens an outgoing stream. * Call must be balanced with a StreamCloseRequest. * * @generated from message livekit.proto.ByteStreamOpenRequest */ export declare class ByteStreamOpenRequest extends Message { /** * @generated from field: required uint64 local_participant_handle = 1; */ localParticipantHandle?: bigint; /** * Options to use for opening the stream. * * @generated from field: required livekit.proto.StreamByteOptions options = 2; */ options?: StreamByteOptions; /** * @generated from field: optional uint64 request_async_id = 3; */ requestAsyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamOpenRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamOpenRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamOpenRequest; static fromJsonString(jsonString: string, options?: Partial): ByteStreamOpenRequest; static equals(a: ByteStreamOpenRequest | PlainMessage | undefined, b: ByteStreamOpenRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ByteStreamOpenResponse */ export declare class ByteStreamOpenResponse extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamOpenResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamOpenResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamOpenResponse; static fromJsonString(jsonString: string, options?: Partial): ByteStreamOpenResponse; static equals(a: ByteStreamOpenResponse | PlainMessage | undefined, b: ByteStreamOpenResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ByteStreamOpenCallback */ export declare class ByteStreamOpenCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from oneof livekit.proto.ByteStreamOpenCallback.result */ result: { /** * @generated from field: livekit.proto.OwnedByteStreamWriter writer = 2; */ value: OwnedByteStreamWriter; case: "writer"; } | { /** * @generated from field: livekit.proto.StreamError error = 3; */ value: StreamError; case: "error"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamOpenCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamOpenCallback; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamOpenCallback; static fromJsonString(jsonString: string, options?: Partial): ByteStreamOpenCallback; static equals(a: ByteStreamOpenCallback | PlainMessage | undefined, b: ByteStreamOpenCallback | PlainMessage | undefined): boolean; } /** * Writes data to a stream writer. * * @generated from message livekit.proto.ByteStreamWriterWriteRequest */ export declare class ByteStreamWriterWriteRequest extends Message { /** * @generated from field: required uint64 writer_handle = 1; */ writerHandle?: bigint; /** * @generated from field: required bytes bytes = 2; */ bytes?: Uint8Array; /** * @generated from field: optional uint64 request_async_id = 3; */ requestAsyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamWriterWriteRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamWriterWriteRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamWriterWriteRequest; static fromJsonString(jsonString: string, options?: Partial): ByteStreamWriterWriteRequest; static equals(a: ByteStreamWriterWriteRequest | PlainMessage | undefined, b: ByteStreamWriterWriteRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ByteStreamWriterWriteResponse */ export declare class ByteStreamWriterWriteResponse extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamWriterWriteResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamWriterWriteResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamWriterWriteResponse; static fromJsonString(jsonString: string, options?: Partial): ByteStreamWriterWriteResponse; static equals(a: ByteStreamWriterWriteResponse | PlainMessage | undefined, b: ByteStreamWriterWriteResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ByteStreamWriterWriteCallback */ export declare class ByteStreamWriterWriteCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from field: optional livekit.proto.StreamError error = 2; */ error?: StreamError; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamWriterWriteCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamWriterWriteCallback; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamWriterWriteCallback; static fromJsonString(jsonString: string, options?: Partial): ByteStreamWriterWriteCallback; static equals(a: ByteStreamWriterWriteCallback | PlainMessage | undefined, b: ByteStreamWriterWriteCallback | PlainMessage | undefined): boolean; } /** * Closes a stream writer. * * @generated from message livekit.proto.ByteStreamWriterCloseRequest */ export declare class ByteStreamWriterCloseRequest extends Message { /** * @generated from field: required uint64 writer_handle = 1; */ writerHandle?: bigint; /** * @generated from field: optional string reason = 2; */ reason?: string; /** * @generated from field: optional uint64 request_async_id = 3; */ requestAsyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamWriterCloseRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamWriterCloseRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamWriterCloseRequest; static fromJsonString(jsonString: string, options?: Partial): ByteStreamWriterCloseRequest; static equals(a: ByteStreamWriterCloseRequest | PlainMessage | undefined, b: ByteStreamWriterCloseRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ByteStreamWriterCloseResponse */ export declare class ByteStreamWriterCloseResponse extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamWriterCloseResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamWriterCloseResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamWriterCloseResponse; static fromJsonString(jsonString: string, options?: Partial): ByteStreamWriterCloseResponse; static equals(a: ByteStreamWriterCloseResponse | PlainMessage | undefined, b: ByteStreamWriterCloseResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.ByteStreamWriterCloseCallback */ export declare class ByteStreamWriterCloseCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from field: optional livekit.proto.StreamError error = 2; */ error?: StreamError; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamWriterCloseCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamWriterCloseCallback; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamWriterCloseCallback; static fromJsonString(jsonString: string, options?: Partial): ByteStreamWriterCloseCallback; static equals(a: ByteStreamWriterCloseCallback | PlainMessage | undefined, b: ByteStreamWriterCloseCallback | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.OwnedTextStreamWriter */ export declare class OwnedTextStreamWriter extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.TextStreamInfo info = 2; */ info?: TextStreamInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedTextStreamWriter"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedTextStreamWriter; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedTextStreamWriter; static fromJsonString(jsonString: string, options?: Partial): OwnedTextStreamWriter; static equals(a: OwnedTextStreamWriter | PlainMessage | undefined, b: OwnedTextStreamWriter | PlainMessage | undefined): boolean; } /** * Opens an outgoing text stream. * Call must be balanced with a TextStreamCloseRequest. * * @generated from message livekit.proto.TextStreamOpenRequest */ export declare class TextStreamOpenRequest extends Message { /** * @generated from field: required uint64 local_participant_handle = 1; */ localParticipantHandle?: bigint; /** * Options to use for opening the stream. * * @generated from field: required livekit.proto.StreamTextOptions options = 2; */ options?: StreamTextOptions; /** * @generated from field: optional uint64 request_async_id = 3; */ requestAsyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamOpenRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamOpenRequest; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamOpenRequest; static fromJsonString(jsonString: string, options?: Partial): TextStreamOpenRequest; static equals(a: TextStreamOpenRequest | PlainMessage | undefined, b: TextStreamOpenRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TextStreamOpenResponse */ export declare class TextStreamOpenResponse extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamOpenResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamOpenResponse; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamOpenResponse; static fromJsonString(jsonString: string, options?: Partial): TextStreamOpenResponse; static equals(a: TextStreamOpenResponse | PlainMessage | undefined, b: TextStreamOpenResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TextStreamOpenCallback */ export declare class TextStreamOpenCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from oneof livekit.proto.TextStreamOpenCallback.result */ result: { /** * @generated from field: livekit.proto.OwnedTextStreamWriter writer = 2; */ value: OwnedTextStreamWriter; case: "writer"; } | { /** * @generated from field: livekit.proto.StreamError error = 3; */ value: StreamError; case: "error"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamOpenCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamOpenCallback; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamOpenCallback; static fromJsonString(jsonString: string, options?: Partial): TextStreamOpenCallback; static equals(a: TextStreamOpenCallback | PlainMessage | undefined, b: TextStreamOpenCallback | PlainMessage | undefined): boolean; } /** * Writes text to a text stream writer. * * @generated from message livekit.proto.TextStreamWriterWriteRequest */ export declare class TextStreamWriterWriteRequest extends Message { /** * @generated from field: required uint64 writer_handle = 1; */ writerHandle?: bigint; /** * @generated from field: required string text = 2; */ text?: string; /** * @generated from field: optional uint64 request_async_id = 3; */ requestAsyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamWriterWriteRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamWriterWriteRequest; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamWriterWriteRequest; static fromJsonString(jsonString: string, options?: Partial): TextStreamWriterWriteRequest; static equals(a: TextStreamWriterWriteRequest | PlainMessage | undefined, b: TextStreamWriterWriteRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TextStreamWriterWriteResponse */ export declare class TextStreamWriterWriteResponse extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamWriterWriteResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamWriterWriteResponse; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamWriterWriteResponse; static fromJsonString(jsonString: string, options?: Partial): TextStreamWriterWriteResponse; static equals(a: TextStreamWriterWriteResponse | PlainMessage | undefined, b: TextStreamWriterWriteResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TextStreamWriterWriteCallback */ export declare class TextStreamWriterWriteCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from field: optional livekit.proto.StreamError error = 2; */ error?: StreamError; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamWriterWriteCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamWriterWriteCallback; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamWriterWriteCallback; static fromJsonString(jsonString: string, options?: Partial): TextStreamWriterWriteCallback; static equals(a: TextStreamWriterWriteCallback | PlainMessage | undefined, b: TextStreamWriterWriteCallback | PlainMessage | undefined): boolean; } /** * Closes a text stream writer. * * @generated from message livekit.proto.TextStreamWriterCloseRequest */ export declare class TextStreamWriterCloseRequest extends Message { /** * @generated from field: required uint64 writer_handle = 1; */ writerHandle?: bigint; /** * @generated from field: optional string reason = 2; */ reason?: string; /** * @generated from field: optional uint64 request_async_id = 3; */ requestAsyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamWriterCloseRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamWriterCloseRequest; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamWriterCloseRequest; static fromJsonString(jsonString: string, options?: Partial): TextStreamWriterCloseRequest; static equals(a: TextStreamWriterCloseRequest | PlainMessage | undefined, b: TextStreamWriterCloseRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TextStreamWriterCloseResponse */ export declare class TextStreamWriterCloseResponse extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamWriterCloseResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamWriterCloseResponse; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamWriterCloseResponse; static fromJsonString(jsonString: string, options?: Partial): TextStreamWriterCloseResponse; static equals(a: TextStreamWriterCloseResponse | PlainMessage | undefined, b: TextStreamWriterCloseResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TextStreamWriterCloseCallback */ export declare class TextStreamWriterCloseCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from field: optional livekit.proto.StreamError error = 2; */ error?: StreamError; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamWriterCloseCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamWriterCloseCallback; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamWriterCloseCallback; static fromJsonString(jsonString: string, options?: Partial): TextStreamWriterCloseCallback; static equals(a: TextStreamWriterCloseCallback | PlainMessage | undefined, b: TextStreamWriterCloseCallback | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.TextStreamInfo */ export declare class TextStreamInfo extends Message { /** * unique identifier for this data stream * * @generated from field: required string stream_id = 1; */ streamId?: string; /** * using int64 for Unix timestamp * * @generated from field: required int64 timestamp = 2; */ timestamp?: bigint; /** * @generated from field: required string mime_type = 3; */ mimeType?: string; /** * @generated from field: required string topic = 4; */ topic?: string; /** * only populated for finite streams, if it's a stream of unknown size this stays empty * * @generated from field: optional uint64 total_length = 5; */ totalLength?: bigint; /** * user defined attributes map that can carry additional info * * @generated from field: map attributes = 6; */ attributes: { [key: string]: string }; /** * @generated from field: required livekit.proto.TextStreamInfo.OperationType operation_type = 7; */ operationType?: TextStreamInfo_OperationType; /** * Optional: Version for updates/edits * * @generated from field: optional int32 version = 8; */ version?: number; /** * Optional: Reply to specific message * * @generated from field: optional string reply_to_stream_id = 9; */ replyToStreamId?: string; /** * file attachments for text streams * * @generated from field: repeated string attached_stream_ids = 10; */ attachedStreamIds: string[]; /** * true if the text has been generated by an agent from a participant's audio transcription * * @generated from field: optional bool generated = 11; */ generated?: boolean; /** * @generated from field: required livekit.proto.EncryptionType encryption_type = 12; */ encryptionType?: EncryptionType; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.TextStreamInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TextStreamInfo; static fromJson(jsonValue: JsonValue, options?: Partial): TextStreamInfo; static fromJsonString(jsonString: string, options?: Partial): TextStreamInfo; static equals(a: TextStreamInfo | PlainMessage | undefined, b: TextStreamInfo | PlainMessage | undefined): boolean; } /** * @generated from enum livekit.proto.TextStreamInfo.OperationType */ export declare enum TextStreamInfo_OperationType { /** * @generated from enum value: CREATE = 0; */ CREATE = 0, /** * @generated from enum value: UPDATE = 1; */ UPDATE = 1, /** * @generated from enum value: DELETE = 2; */ DELETE = 2, /** * @generated from enum value: REACTION = 3; */ REACTION = 3, } /** * @generated from message livekit.proto.ByteStreamInfo */ export declare class ByteStreamInfo extends Message { /** * unique identifier for this data stream * * @generated from field: required string stream_id = 1; */ streamId?: string; /** * using int64 for Unix timestamp * * @generated from field: required int64 timestamp = 2; */ timestamp?: bigint; /** * @generated from field: required string mime_type = 3; */ mimeType?: string; /** * @generated from field: required string topic = 4; */ topic?: string; /** * only populated for finite streams, if it's a stream of unknown size this stays empty * * @generated from field: optional uint64 total_length = 5; */ totalLength?: bigint; /** * user defined attributes map that can carry additional info * * @generated from field: map attributes = 6; */ attributes: { [key: string]: string }; /** * @generated from field: required string name = 7; */ name?: string; /** * @generated from field: required livekit.proto.EncryptionType encryption_type = 8; */ encryptionType?: EncryptionType; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ByteStreamInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ByteStreamInfo; static fromJson(jsonValue: JsonValue, options?: Partial): ByteStreamInfo; static fromJsonString(jsonString: string, options?: Partial): ByteStreamInfo; static equals(a: ByteStreamInfo | PlainMessage | undefined, b: ByteStreamInfo | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.StreamTextOptions */ export declare class StreamTextOptions extends Message { /** * @generated from field: required string topic = 1; */ topic?: string; /** * @generated from field: map attributes = 2; */ attributes: { [key: string]: string }; /** * @generated from field: repeated string destination_identities = 3; */ destinationIdentities: string[]; /** * @generated from field: optional string id = 4; */ id?: string; /** * @generated from field: optional livekit.proto.TextStreamInfo.OperationType operation_type = 5; */ operationType?: TextStreamInfo_OperationType; /** * @generated from field: optional int32 version = 6; */ version?: number; /** * @generated from field: optional string reply_to_stream_id = 7; */ replyToStreamId?: string; /** * @generated from field: repeated string attached_stream_ids = 8; */ attachedStreamIds: string[]; /** * @generated from field: optional bool generated = 9; */ generated?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StreamTextOptions"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StreamTextOptions; static fromJson(jsonValue: JsonValue, options?: Partial): StreamTextOptions; static fromJsonString(jsonString: string, options?: Partial): StreamTextOptions; static equals(a: StreamTextOptions | PlainMessage | undefined, b: StreamTextOptions | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.StreamByteOptions */ export declare class StreamByteOptions extends Message { /** * @generated from field: required string topic = 1; */ topic?: string; /** * @generated from field: map attributes = 2; */ attributes: { [key: string]: string }; /** * @generated from field: repeated string destination_identities = 3; */ destinationIdentities: string[]; /** * @generated from field: optional string id = 4; */ id?: string; /** * @generated from field: optional string name = 5; */ name?: string; /** * @generated from field: optional string mime_type = 6; */ mimeType?: string; /** * @generated from field: optional uint64 total_length = 7; */ totalLength?: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StreamByteOptions"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StreamByteOptions; static fromJson(jsonValue: JsonValue, options?: Partial): StreamByteOptions; static fromJsonString(jsonString: string, options?: Partial): StreamByteOptions; static equals(a: StreamByteOptions | PlainMessage | undefined, b: StreamByteOptions | PlainMessage | undefined): boolean; } /** * Error pertaining to a stream. * * @generated from message livekit.proto.StreamError */ export declare class StreamError extends Message { /** * TODO(ladvoc): make this an enum. * * @generated from field: required string description = 1; */ description?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.StreamError"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StreamError; static fromJson(jsonValue: JsonValue, options?: Partial): StreamError; static fromJsonString(jsonString: string, options?: Partial): StreamError; static equals(a: StreamError | PlainMessage | undefined, b: StreamError | PlainMessage | undefined): boolean; }