// Copyright 2023 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 "target=dts+js" // @generated from file livekit_ingress.proto (package livekit, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import type { AudioCodec, TokenPagination, TrackInfo, TrackSource, VideoCodec, VideoLayer } from "./livekit_models_pb.js"; /** * @generated from enum livekit.IngressInput */ export declare enum IngressInput { /** * @generated from enum value: RTMP_INPUT = 0; */ RTMP_INPUT = 0, /** * @generated from enum value: WHIP_INPUT = 1; */ WHIP_INPUT = 1, /** * Pull from the provided URL. Only HTTP url are supported, serving either a single media file or a HLS stream * * @generated from enum value: URL_INPUT = 2; */ URL_INPUT = 2, } /** * @generated from enum livekit.IngressAudioEncodingPreset */ export declare enum IngressAudioEncodingPreset { /** * OPUS, 2 channels, 96kbps * * @generated from enum value: OPUS_STEREO_96KBPS = 0; */ OPUS_STEREO_96KBPS = 0, /** * OPUS, 1 channel, 64kbps * * @generated from enum value: OPUS_MONO_64KBS = 1; */ OPUS_MONO_64KBS = 1, } /** * @generated from enum livekit.IngressVideoEncodingPreset */ export declare enum IngressVideoEncodingPreset { /** * 1280x720, 30fps, 1900kbps main layer, 3 layers total * * @generated from enum value: H264_720P_30FPS_3_LAYERS = 0; */ H264_720P_30FPS_3_LAYERS = 0, /** * 1980x1080, 30fps, 3500kbps main layer, 3 layers total * * @generated from enum value: H264_1080P_30FPS_3_LAYERS = 1; */ H264_1080P_30FPS_3_LAYERS = 1, /** * 960x540, 25fps, 1000kbps main layer, 2 layers total * * @generated from enum value: H264_540P_25FPS_2_LAYERS = 2; */ H264_540P_25FPS_2_LAYERS = 2, /** * 1280x720, 30fps, 1900kbps, no simulcast * * @generated from enum value: H264_720P_30FPS_1_LAYER = 3; */ H264_720P_30FPS_1_LAYER = 3, /** * 1980x1080, 30fps, 3500kbps, no simulcast * * @generated from enum value: H264_1080P_30FPS_1_LAYER = 4; */ H264_1080P_30FPS_1_LAYER = 4, /** * 1280x720, 30fps, 2500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content * * @generated from enum value: H264_720P_30FPS_3_LAYERS_HIGH_MOTION = 5; */ H264_720P_30FPS_3_LAYERS_HIGH_MOTION = 5, /** * 1980x1080, 30fps, 4500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content * * @generated from enum value: H264_1080P_30FPS_3_LAYERS_HIGH_MOTION = 6; */ H264_1080P_30FPS_3_LAYERS_HIGH_MOTION = 6, /** * 960x540, 25fps, 1300kbps main layer, 2 layers total, higher bitrate for high motion, harder to encode content * * @generated from enum value: H264_540P_25FPS_2_LAYERS_HIGH_MOTION = 7; */ H264_540P_25FPS_2_LAYERS_HIGH_MOTION = 7, /** * 1280x720, 30fps, 2500kbps, no simulcast, higher bitrate for high motion, harder to encode content * * @generated from enum value: H264_720P_30FPS_1_LAYER_HIGH_MOTION = 8; */ H264_720P_30FPS_1_LAYER_HIGH_MOTION = 8, /** * 1980x1080, 30fps, 4500kbps, no simulcast, higher bitrate for high motion, harder to encode content * * @generated from enum value: H264_1080P_30FPS_1_LAYER_HIGH_MOTION = 9; */ H264_1080P_30FPS_1_LAYER_HIGH_MOTION = 9, } /** * @generated from message livekit.CreateIngressRequest */ export declare class CreateIngressRequest extends Message { /** * @generated from field: livekit.IngressInput input_type = 1; */ inputType: IngressInput; /** * Where to pull media from, only for URL input type * * @generated from field: string url = 9; */ url: string; /** * User provided identifier for the ingress * * @generated from field: string name = 2; */ name: string; /** * room to publish to * * @generated from field: string room_name = 3; */ roomName: string; /** * publish as participant * * @generated from field: string participant_identity = 4; */ participantIdentity: string; /** * name of publishing participant (used for display only) * * @generated from field: string participant_name = 5; */ participantName: string; /** * metadata associated with the publishing participant * * @generated from field: string participant_metadata = 10; */ participantMetadata: string; /** * [depreacted ] whether to pass through the incoming media without transcoding, only compatible with some input types. Use `enable_transcoding` instead. * * @generated from field: bool bypass_transcoding = 8 [deprecated = true]; * @deprecated */ bypassTranscoding: boolean; /** * Whether to transcode the ingested media. Only WHIP supports disabling transcoding currently. WHIP will default to transcoding disabled. Replaces `bypass_transcoding. * * @generated from field: optional bool enable_transcoding = 11; */ enableTranscoding?: boolean; /** * @generated from field: livekit.IngressAudioOptions audio = 6; */ audio?: IngressAudioOptions; /** * @generated from field: livekit.IngressVideoOptions video = 7; */ video?: IngressVideoOptions; /** * The default value is true and when set to false, the new connection attempts will be rejected * * @generated from field: optional bool enabled = 12; */ enabled?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.CreateIngressRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CreateIngressRequest; static fromJson(jsonValue: JsonValue, options?: Partial): CreateIngressRequest; static fromJsonString(jsonString: string, options?: Partial): CreateIngressRequest; static equals(a: CreateIngressRequest | PlainMessage | undefined, b: CreateIngressRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.IngressAudioOptions */ export declare class IngressAudioOptions extends Message { /** * @generated from field: string name = 1; */ name: string; /** * @generated from field: livekit.TrackSource source = 2; */ source: TrackSource; /** * @generated from oneof livekit.IngressAudioOptions.encoding_options */ encodingOptions: { /** * @generated from field: livekit.IngressAudioEncodingPreset preset = 3; */ value: IngressAudioEncodingPreset; case: "preset"; } | { /** * @generated from field: livekit.IngressAudioEncodingOptions options = 4; */ value: IngressAudioEncodingOptions; case: "options"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.IngressAudioOptions"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): IngressAudioOptions; static fromJson(jsonValue: JsonValue, options?: Partial): IngressAudioOptions; static fromJsonString(jsonString: string, options?: Partial): IngressAudioOptions; static equals(a: IngressAudioOptions | PlainMessage | undefined, b: IngressAudioOptions | PlainMessage | undefined): boolean; } /** * @generated from message livekit.IngressVideoOptions */ export declare class IngressVideoOptions extends Message { /** * @generated from field: string name = 1; */ name: string; /** * @generated from field: livekit.TrackSource source = 2; */ source: TrackSource; /** * @generated from oneof livekit.IngressVideoOptions.encoding_options */ encodingOptions: { /** * @generated from field: livekit.IngressVideoEncodingPreset preset = 3; */ value: IngressVideoEncodingPreset; case: "preset"; } | { /** * @generated from field: livekit.IngressVideoEncodingOptions options = 4; */ value: IngressVideoEncodingOptions; case: "options"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.IngressVideoOptions"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): IngressVideoOptions; static fromJson(jsonValue: JsonValue, options?: Partial): IngressVideoOptions; static fromJsonString(jsonString: string, options?: Partial): IngressVideoOptions; static equals(a: IngressVideoOptions | PlainMessage | undefined, b: IngressVideoOptions | PlainMessage | undefined): boolean; } /** * @generated from message livekit.IngressAudioEncodingOptions */ export declare class IngressAudioEncodingOptions extends Message { /** * desired audio codec to publish to room * * @generated from field: livekit.AudioCodec audio_codec = 1; */ audioCodec: AudioCodec; /** * @generated from field: uint32 bitrate = 2; */ bitrate: number; /** * @generated from field: bool disable_dtx = 3; */ disableDtx: boolean; /** * @generated from field: uint32 channels = 4; */ channels: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.IngressAudioEncodingOptions"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): IngressAudioEncodingOptions; static fromJson(jsonValue: JsonValue, options?: Partial): IngressAudioEncodingOptions; static fromJsonString(jsonString: string, options?: Partial): IngressAudioEncodingOptions; static equals(a: IngressAudioEncodingOptions | PlainMessage | undefined, b: IngressAudioEncodingOptions | PlainMessage | undefined): boolean; } /** * @generated from message livekit.IngressVideoEncodingOptions */ export declare class IngressVideoEncodingOptions extends Message { /** * desired codec to publish to room * * @generated from field: livekit.VideoCodec video_codec = 1; */ videoCodec: VideoCodec; /** * @generated from field: double frame_rate = 2; */ frameRate: number; /** * simulcast layers to publish, when empty, should usually be set to layers at 1/2 and 1/4 of the dimensions * * @generated from field: repeated livekit.VideoLayer layers = 3; */ layers: VideoLayer[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.IngressVideoEncodingOptions"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): IngressVideoEncodingOptions; static fromJson(jsonValue: JsonValue, options?: Partial): IngressVideoEncodingOptions; static fromJsonString(jsonString: string, options?: Partial): IngressVideoEncodingOptions; static equals(a: IngressVideoEncodingOptions | PlainMessage | undefined, b: IngressVideoEncodingOptions | PlainMessage | undefined): boolean; } /** * @generated from message livekit.IngressInfo */ export declare class IngressInfo extends Message { /** * @generated from field: string ingress_id = 1; */ ingressId: string; /** * @generated from field: string name = 2; */ name: string; /** * @generated from field: string stream_key = 3; */ streamKey: string; /** * URL to point the encoder to for push (RTMP, WHIP), or location to pull media from for pull (URL) * * @generated from field: string url = 4; */ url: string; /** * for RTMP input, it'll be a rtmp:// URL * for FILE input, it'll be a http:// URL * for SRT input, it'll be a srt:// URL * * @generated from field: livekit.IngressInput input_type = 5; */ inputType: IngressInput; /** * @generated from field: bool bypass_transcoding = 13 [deprecated = true]; * @deprecated */ bypassTranscoding: boolean; /** * @generated from field: optional bool enable_transcoding = 15; */ enableTranscoding?: boolean; /** * @generated from field: livekit.IngressAudioOptions audio = 6; */ audio?: IngressAudioOptions; /** * @generated from field: livekit.IngressVideoOptions video = 7; */ video?: IngressVideoOptions; /** * @generated from field: string room_name = 8; */ roomName: string; /** * @generated from field: string participant_identity = 9; */ participantIdentity: string; /** * @generated from field: string participant_name = 10; */ participantName: string; /** * @generated from field: string participant_metadata = 14; */ participantMetadata: string; /** * @generated from field: bool reusable = 11; */ reusable: boolean; /** * Description of error/stream non compliance and debug info for publisher otherwise (received bitrate, resolution, bandwidth) * * @generated from field: livekit.IngressState state = 12; */ state?: IngressState; /** * The default value is true and when set to false, the new connection attempts will be rejected * * @generated from field: optional bool enabled = 16; */ enabled?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.IngressInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): IngressInfo; static fromJson(jsonValue: JsonValue, options?: Partial): IngressInfo; static fromJsonString(jsonString: string, options?: Partial): IngressInfo; static equals(a: IngressInfo | PlainMessage | undefined, b: IngressInfo | PlainMessage | undefined): boolean; } /** * @generated from message livekit.IngressState */ export declare class IngressState extends Message { /** * @generated from field: livekit.IngressState.Status status = 1; */ status: IngressState_Status; /** * Error/non compliance description if any * * @generated from field: string error = 2; */ error: string; /** * @generated from field: livekit.InputVideoState video = 3; */ video?: InputVideoState; /** * @generated from field: livekit.InputAudioState audio = 4; */ audio?: InputAudioState; /** * ID of the current/previous room published to * * @generated from field: string room_id = 5; */ roomId: string; /** * @generated from field: int64 started_at = 7; */ startedAt: bigint; /** * @generated from field: int64 ended_at = 8; */ endedAt: bigint; /** * @generated from field: int64 updated_at = 10; */ updatedAt: bigint; /** * @generated from field: string resource_id = 9; */ resourceId: string; /** * @generated from field: repeated livekit.TrackInfo tracks = 6; */ tracks: TrackInfo[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.IngressState"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): IngressState; static fromJson(jsonValue: JsonValue, options?: Partial): IngressState; static fromJsonString(jsonString: string, options?: Partial): IngressState; static equals(a: IngressState | PlainMessage | undefined, b: IngressState | PlainMessage | undefined): boolean; } /** * @generated from enum livekit.IngressState.Status */ export declare enum IngressState_Status { /** * @generated from enum value: ENDPOINT_INACTIVE = 0; */ ENDPOINT_INACTIVE = 0, /** * @generated from enum value: ENDPOINT_BUFFERING = 1; */ ENDPOINT_BUFFERING = 1, /** * @generated from enum value: ENDPOINT_PUBLISHING = 2; */ ENDPOINT_PUBLISHING = 2, /** * @generated from enum value: ENDPOINT_ERROR = 3; */ ENDPOINT_ERROR = 3, /** * @generated from enum value: ENDPOINT_COMPLETE = 4; */ ENDPOINT_COMPLETE = 4, } /** * @generated from message livekit.InputVideoState */ export declare class InputVideoState extends Message { /** * @generated from field: string mime_type = 1; */ mimeType: string; /** * @generated from field: uint32 average_bitrate = 2; */ averageBitrate: number; /** * @generated from field: uint32 width = 3; */ width: number; /** * @generated from field: uint32 height = 4; */ height: number; /** * @generated from field: double framerate = 5; */ framerate: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.InputVideoState"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): InputVideoState; static fromJson(jsonValue: JsonValue, options?: Partial): InputVideoState; static fromJsonString(jsonString: string, options?: Partial): InputVideoState; static equals(a: InputVideoState | PlainMessage | undefined, b: InputVideoState | PlainMessage | undefined): boolean; } /** * @generated from message livekit.InputAudioState */ export declare class InputAudioState extends Message { /** * @generated from field: string mime_type = 1; */ mimeType: string; /** * @generated from field: uint32 average_bitrate = 2; */ averageBitrate: number; /** * @generated from field: uint32 channels = 3; */ channels: number; /** * @generated from field: uint32 sample_rate = 4; */ sampleRate: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.InputAudioState"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): InputAudioState; static fromJson(jsonValue: JsonValue, options?: Partial): InputAudioState; static fromJsonString(jsonString: string, options?: Partial): InputAudioState; static equals(a: InputAudioState | PlainMessage | undefined, b: InputAudioState | PlainMessage | undefined): boolean; } /** * @generated from message livekit.UpdateIngressRequest */ export declare class UpdateIngressRequest extends Message { /** * @generated from field: string ingress_id = 1; */ ingressId: string; /** * @generated from field: string name = 2; */ name: string; /** * @generated from field: string room_name = 3; */ roomName: string; /** * @generated from field: string participant_identity = 4; */ participantIdentity: string; /** * @generated from field: string participant_name = 5; */ participantName: string; /** * @generated from field: string participant_metadata = 9; */ participantMetadata: string; /** * @generated from field: optional bool bypass_transcoding = 8 [deprecated = true]; * @deprecated */ bypassTranscoding?: boolean; /** * @generated from field: optional bool enable_transcoding = 10; */ enableTranscoding?: boolean; /** * @generated from field: livekit.IngressAudioOptions audio = 6; */ audio?: IngressAudioOptions; /** * @generated from field: livekit.IngressVideoOptions video = 7; */ video?: IngressVideoOptions; /** * The default value is true and when set to false, the new connection attempts will be rejected * * @generated from field: optional bool enabled = 11; */ enabled?: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.UpdateIngressRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): UpdateIngressRequest; static fromJson(jsonValue: JsonValue, options?: Partial): UpdateIngressRequest; static fromJsonString(jsonString: string, options?: Partial): UpdateIngressRequest; static equals(a: UpdateIngressRequest | PlainMessage | undefined, b: UpdateIngressRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.ListIngressRequest */ export declare class ListIngressRequest extends Message { /** * @generated from field: livekit.TokenPagination page_token = 3; */ pageToken?: TokenPagination; /** * when blank, lists all ingress endpoints * * (optional, filter by room name) * * @generated from field: string room_name = 1; */ roomName: string; /** * (optional, filter by ingress ID) * * @generated from field: string ingress_id = 2; */ ingressId: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ListIngressRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ListIngressRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ListIngressRequest; static fromJsonString(jsonString: string, options?: Partial): ListIngressRequest; static equals(a: ListIngressRequest | PlainMessage | undefined, b: ListIngressRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.ListIngressResponse */ export declare class ListIngressResponse extends Message { /** * @generated from field: livekit.TokenPagination next_page_token = 2; */ nextPageToken?: TokenPagination; /** * next field id: 3 * * @generated from field: repeated livekit.IngressInfo items = 1; */ items: IngressInfo[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ListIngressResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ListIngressResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ListIngressResponse; static fromJsonString(jsonString: string, options?: Partial): ListIngressResponse; static equals(a: ListIngressResponse | PlainMessage | undefined, b: ListIngressResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.DeleteIngressRequest */ export declare class DeleteIngressRequest extends Message { /** * @generated from field: string ingress_id = 1; */ ingressId: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DeleteIngressRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DeleteIngressRequest; static fromJson(jsonValue: JsonValue, options?: Partial): DeleteIngressRequest; static fromJsonString(jsonString: string, options?: Partial): DeleteIngressRequest; static equals(a: DeleteIngressRequest | PlainMessage | undefined, b: DeleteIngressRequest | PlainMessage | undefined): boolean; }