// 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 participant.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 { TrackSource } from "./track_pb.js"; /** * @generated from enum livekit.proto.ParticipantState */ export declare enum ParticipantState { /** * @generated from enum value: PARTICIPANT_STATE_JOINING = 0; */ JOINING = 0, /** * @generated from enum value: PARTICIPANT_STATE_JOINED = 1; */ JOINED = 1, /** * @generated from enum value: PARTICIPANT_STATE_ACTIVE = 2; */ ACTIVE = 2, /** * @generated from enum value: PARTICIPANT_STATE_DISCONNECTED = 3; */ DISCONNECTED = 3, } /** * @generated from enum livekit.proto.ParticipantKind */ export declare enum ParticipantKind { /** * @generated from enum value: PARTICIPANT_KIND_STANDARD = 0; */ STANDARD = 0, /** * @generated from enum value: PARTICIPANT_KIND_INGRESS = 1; */ INGRESS = 1, /** * @generated from enum value: PARTICIPANT_KIND_EGRESS = 2; */ EGRESS = 2, /** * @generated from enum value: PARTICIPANT_KIND_SIP = 3; */ SIP = 3, /** * @generated from enum value: PARTICIPANT_KIND_AGENT = 4; */ AGENT = 4, /** * @generated from enum value: PARTICIPANT_KIND_CONNECTOR = 5; */ CONNECTOR = 5, /** * @generated from enum value: PARTICIPANT_KIND_BRIDGE = 6; */ BRIDGE = 6, } /** * @generated from enum livekit.proto.ParticipantKindDetail */ export declare enum ParticipantKindDetail { /** * @generated from enum value: PARTICIPANT_KIND_DETAIL_CLOUD_AGENT = 0; */ CLOUD_AGENT = 0, /** * @generated from enum value: PARTICIPANT_KIND_DETAIL_FORWARDED = 1; */ FORWARDED = 1, /** * @generated from enum value: PARTICIPANT_KIND_DETAIL_CONNECTOR_WHATSAPP = 2; */ CONNECTOR_WHATSAPP = 2, /** * @generated from enum value: PARTICIPANT_KIND_DETAIL_CONNECTOR_TWILIO = 3; */ CONNECTOR_TWILIO = 3, /** * @generated from enum value: PARTICIPANT_KIND_DETAIL_BRIDGE_RTSP = 4; */ BRIDGE_RTSP = 4, } /** * @generated from enum livekit.proto.DisconnectReason */ export declare enum DisconnectReason { /** * @generated from enum value: UNKNOWN_REASON = 0; */ UNKNOWN_REASON = 0, /** * the client initiated the disconnect * * @generated from enum value: CLIENT_INITIATED = 1; */ CLIENT_INITIATED = 1, /** * another participant with the same identity has joined the room * * @generated from enum value: DUPLICATE_IDENTITY = 2; */ DUPLICATE_IDENTITY = 2, /** * the server instance is shutting down * * @generated from enum value: SERVER_SHUTDOWN = 3; */ SERVER_SHUTDOWN = 3, /** * RoomService.RemoveParticipant was called * * @generated from enum value: PARTICIPANT_REMOVED = 4; */ PARTICIPANT_REMOVED = 4, /** * RoomService.DeleteRoom was called * * @generated from enum value: ROOM_DELETED = 5; */ ROOM_DELETED = 5, /** * the client is attempting to resume a session, but server is not aware of it * * @generated from enum value: STATE_MISMATCH = 6; */ STATE_MISMATCH = 6, /** * client was unable to connect fully * * @generated from enum value: JOIN_FAILURE = 7; */ JOIN_FAILURE = 7, /** * Cloud-only, the server requested Participant to migrate the connection elsewhere * * @generated from enum value: MIGRATION = 8; */ MIGRATION = 8, /** * the signal websocket was closed unexpectedly * * @generated from enum value: SIGNAL_CLOSE = 9; */ SIGNAL_CLOSE = 9, /** * the room was closed, due to all Standard and Ingress participants having left * * @generated from enum value: ROOM_CLOSED = 10; */ ROOM_CLOSED = 10, /** * SIP callee did not respond in time * * @generated from enum value: USER_UNAVAILABLE = 11; */ USER_UNAVAILABLE = 11, /** * SIP callee rejected the call (busy) * * @generated from enum value: USER_REJECTED = 12; */ USER_REJECTED = 12, /** * SIP protocol failure or unexpected response * * @generated from enum value: SIP_TRUNK_FAILURE = 13; */ SIP_TRUNK_FAILURE = 13, /** * @generated from enum value: CONNECTION_TIMEOUT = 14; */ CONNECTION_TIMEOUT = 14, /** * @generated from enum value: MEDIA_FAILURE = 15; */ MEDIA_FAILURE = 15, /** * @generated from enum value: AGENT_ERROR = 16; */ AGENT_ERROR = 16, } /** * @generated from message livekit.proto.ParticipantInfo */ export declare class ParticipantInfo extends Message { /** * @generated from field: required string sid = 1; */ sid?: string; /** * @generated from field: required string name = 2; */ name?: string; /** * @generated from field: required string identity = 3; */ identity?: string; /** * @generated from field: required livekit.proto.ParticipantState state = 4; */ state?: ParticipantState; /** * @generated from field: required string metadata = 5; */ metadata?: string; /** * @generated from field: map attributes = 6; */ attributes: { [key: string]: string }; /** * @generated from field: required livekit.proto.ParticipantKind kind = 7; */ kind?: ParticipantKind; /** * @generated from field: required livekit.proto.DisconnectReason disconnect_reason = 8; */ disconnectReason?: DisconnectReason; /** * ms timestamp of when the participant joined the room, maps to joined_at_ms in livekit_models * * @generated from field: required int64 joined_at = 9; */ joinedAt?: bigint; /** * @generated from field: repeated livekit.proto.ParticipantKindDetail kind_details = 10; */ kindDetails: ParticipantKindDetail[]; /** * @generated from field: optional livekit.proto.ParticipantPermission permission = 11; */ permission?: ParticipantPermission; /** * @generated from field: required int32 client_protocol = 12; */ clientProtocol?: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ParticipantInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantInfo; static fromJson(jsonValue: JsonValue, options?: Partial): ParticipantInfo; static fromJsonString(jsonString: string, options?: Partial): ParticipantInfo; static equals(a: ParticipantInfo | PlainMessage | undefined, b: ParticipantInfo | PlainMessage | undefined): boolean; } /** * @generated from message livekit.proto.OwnedParticipant */ export declare class OwnedParticipant extends Message { /** * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1; */ handle?: FfiOwnedHandle; /** * @generated from field: required livekit.proto.ParticipantInfo info = 2; */ info?: ParticipantInfo; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.OwnedParticipant"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OwnedParticipant; static fromJson(jsonValue: JsonValue, options?: Partial): OwnedParticipant; static fromJsonString(jsonString: string, options?: Partial): OwnedParticipant; static equals(a: OwnedParticipant | PlainMessage | undefined, b: OwnedParticipant | PlainMessage | undefined): boolean; } /** * copied from livekit-protocol/protocol/protobufs/livekit_models.proto and removed deprecated fields * * @generated from message livekit.proto.ParticipantPermission */ export declare class ParticipantPermission extends Message { /** * allow participant to subscribe to other tracks in the room * * @generated from field: required bool can_subscribe = 1; */ canSubscribe?: boolean; /** * allow participant to publish new tracks to room * * @generated from field: required bool can_publish = 2; */ canPublish?: boolean; /** * allow participant to publish data * * @generated from field: required bool can_publish_data = 3; */ canPublishData?: boolean; /** * sources that are allowed to be published * * @generated from field: repeated livekit.proto.TrackSource can_publish_sources = 9; */ canPublishSources: TrackSource[]; /** * indicates that it's hidden to others * * @generated from field: required bool hidden = 7; */ hidden?: boolean; /** * indicates that participant can update own metadata and attributes * * @generated from field: required bool can_update_metadata = 10; */ canUpdateMetadata?: boolean; /** * if a participant can subscribe to metrics * * @generated from field: required bool can_subscribe_metrics = 12; */ canSubscribeMetrics?: boolean; /** * if a participant can manage an agent session via RemoteSession (control and access state) * * @generated from field: required bool can_manage_agent_session = 13; */ canManageAgentSession?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto2; static readonly typeName = "livekit.proto.ParticipantPermission"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantPermission; static fromJson(jsonValue: JsonValue, options?: Partial): ParticipantPermission; static fromJsonString(jsonString: string, options?: Partial): ParticipantPermission; static equals(a: ParticipantPermission | PlainMessage | undefined, b: ParticipantPermission | PlainMessage | undefined): boolean; }