// 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 rpc.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"; /** * @generated from message livekit.proto.RpcError */ export declare class RpcError extends Message { /** * @generated from field: required uint32 code = 1; */ code?: number; /** * @generated from field: required string message = 2; */ message?: string; /** * @generated from field: optional string data = 3; */ data?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.RpcError"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RpcError; static fromJson(jsonValue: JsonValue, options?: Partial): RpcError; static fromJsonString(jsonString: string, options?: Partial): RpcError; static equals(a: RpcError | PlainMessage | undefined, b: RpcError | PlainMessage | undefined): boolean; } /** * FFI Requests * * @generated from message livekit.proto.PerformRpcRequest */ export declare class PerformRpcRequest extends Message { /** * @generated from field: required uint64 local_participant_handle = 1; */ localParticipantHandle?: bigint; /** * @generated from field: required string destination_identity = 2; */ destinationIdentity?: string; /** * @generated from field: required string method = 3; */ method?: string; /** * @generated from field: required string payload = 4; */ payload?: string; /** * @generated from field: optional uint32 response_timeout_ms = 5; */ responseTimeoutMs?: number; /** * @generated from field: optional uint64 request_async_id = 6; */ requestAsyncId?: bigint; /** * @generated from field: optional uint32 max_round_trip_latency_ms = 7; */ maxRoundTripLatencyMs?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.PerformRpcRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PerformRpcRequest; static fromJson(jsonValue: JsonValue, options?: Partial): PerformRpcRequest; static fromJsonString(jsonString: string, options?: Partial): PerformRpcRequest; static equals(a: PerformRpcRequest | PlainMessage | undefined, b: PerformRpcRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.RegisterRpcMethodRequest */ export declare class RegisterRpcMethodRequest extends Message { /** * @generated from field: required uint64 local_participant_handle = 1; */ localParticipantHandle?: bigint; /** * @generated from field: required string method = 2; */ method?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.RegisterRpcMethodRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RegisterRpcMethodRequest; static fromJson(jsonValue: JsonValue, options?: Partial): RegisterRpcMethodRequest; static fromJsonString(jsonString: string, options?: Partial): RegisterRpcMethodRequest; static equals(a: RegisterRpcMethodRequest | PlainMessage | undefined, b: RegisterRpcMethodRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.UnregisterRpcMethodRequest */ export declare class UnregisterRpcMethodRequest extends Message { /** * @generated from field: required uint64 local_participant_handle = 1; */ localParticipantHandle?: bigint; /** * @generated from field: required string method = 2; */ method?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.UnregisterRpcMethodRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): UnregisterRpcMethodRequest; static fromJson(jsonValue: JsonValue, options?: Partial): UnregisterRpcMethodRequest; static fromJsonString(jsonString: string, options?: Partial): UnregisterRpcMethodRequest; static equals(a: UnregisterRpcMethodRequest | PlainMessage | undefined, b: UnregisterRpcMethodRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.RpcMethodInvocationResponseRequest */ export declare class RpcMethodInvocationResponseRequest extends Message { /** * @generated from field: required uint64 local_participant_handle = 1; */ localParticipantHandle?: bigint; /** * @generated from field: required uint64 invocation_id = 2; */ invocationId?: bigint; /** * @generated from field: optional string payload = 3; */ payload?: string; /** * @generated from field: optional livekit.proto.RpcError error = 4; */ error?: RpcError; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.RpcMethodInvocationResponseRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RpcMethodInvocationResponseRequest; static fromJson(jsonValue: JsonValue, options?: Partial): RpcMethodInvocationResponseRequest; static fromJsonString(jsonString: string, options?: Partial): RpcMethodInvocationResponseRequest; static equals(a: RpcMethodInvocationResponseRequest | PlainMessage | undefined, b: RpcMethodInvocationResponseRequest | PlainMessage | undefined): boolean; } /** * FFI Responses * * @generated from message livekit.proto.PerformRpcResponse */ export declare class PerformRpcResponse 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.PerformRpcResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PerformRpcResponse; static fromJson(jsonValue: JsonValue, options?: Partial): PerformRpcResponse; static fromJsonString(jsonString: string, options?: Partial): PerformRpcResponse; static equals(a: PerformRpcResponse | PlainMessage | undefined, b: PerformRpcResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.RegisterRpcMethodResponse */ export declare class RegisterRpcMethodResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.RegisterRpcMethodResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RegisterRpcMethodResponse; static fromJson(jsonValue: JsonValue, options?: Partial): RegisterRpcMethodResponse; static fromJsonString(jsonString: string, options?: Partial): RegisterRpcMethodResponse; static equals(a: RegisterRpcMethodResponse | PlainMessage | undefined, b: RegisterRpcMethodResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.UnregisterRpcMethodResponse */ export declare class UnregisterRpcMethodResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.UnregisterRpcMethodResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): UnregisterRpcMethodResponse; static fromJson(jsonValue: JsonValue, options?: Partial): UnregisterRpcMethodResponse; static fromJsonString(jsonString: string, options?: Partial): UnregisterRpcMethodResponse; static equals(a: UnregisterRpcMethodResponse | PlainMessage | undefined, b: UnregisterRpcMethodResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.RpcMethodInvocationResponseResponse */ export declare class RpcMethodInvocationResponseResponse extends Message { /** * @generated from field: optional string error = 1; */ error?: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.RpcMethodInvocationResponseResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RpcMethodInvocationResponseResponse; static fromJson(jsonValue: JsonValue, options?: Partial): RpcMethodInvocationResponseResponse; static fromJsonString(jsonString: string, options?: Partial): RpcMethodInvocationResponseResponse; static equals(a: RpcMethodInvocationResponseResponse | PlainMessage | undefined, b: RpcMethodInvocationResponseResponse | PlainMessage | undefined): boolean; } /** * FFI Callbacks * * @generated from message livekit.proto.PerformRpcCallback */ export declare class PerformRpcCallback extends Message { /** * @generated from field: required uint64 async_id = 1; */ asyncId?: bigint; /** * @generated from field: optional string payload = 2; */ payload?: string; /** * @generated from field: optional livekit.proto.RpcError error = 3; */ error?: RpcError; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.PerformRpcCallback"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PerformRpcCallback; static fromJson(jsonValue: JsonValue, options?: Partial): PerformRpcCallback; static fromJsonString(jsonString: string, options?: Partial): PerformRpcCallback; static equals(a: PerformRpcCallback | PlainMessage | undefined, b: PerformRpcCallback | PlainMessage | undefined): boolean; } /** * FFI Events * * @generated from message livekit.proto.RpcMethodInvocationEvent */ export declare class RpcMethodInvocationEvent extends Message { /** * @generated from field: required uint64 local_participant_handle = 1; */ localParticipantHandle?: bigint; /** * @generated from field: required uint64 invocation_id = 2; */ invocationId?: bigint; /** * @generated from field: required string method = 3; */ method?: string; /** * @generated from field: required string request_id = 4; */ requestId?: string; /** * @generated from field: required string caller_identity = 5; */ callerIdentity?: string; /** * @generated from field: required string payload = 6; */ payload?: string; /** * @generated from field: required uint32 response_timeout_ms = 7; */ responseTimeoutMs?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.RpcMethodInvocationEvent"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RpcMethodInvocationEvent; static fromJson(jsonValue: JsonValue, options?: Partial): RpcMethodInvocationEvent; static fromJsonString(jsonString: string, options?: Partial): RpcMethodInvocationEvent; static equals(a: RpcMethodInvocationEvent | PlainMessage | undefined, b: RpcMethodInvocationEvent | PlainMessage | undefined): boolean; }