New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@livekit/protocol

Package Overview
Dependencies
Maintainers
0
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@livekit/protocol - npm Package Compare versions

Comparing version

to
1.34.0

2

package.json
{
"name": "@livekit/protocol",
"version": "1.33.0",
"version": "1.34.0",
"description": "",

@@ -5,0 +5,0 @@ "type": "module",

@@ -37,2 +37,7 @@ // Copyright 2023 LiveKit, Inc.

JT_PUBLISHER = 1,
/**
* @generated from enum value: JT_PARTICIPANT = 2;
*/
JT_PARTICIPANT = 2,
}

@@ -39,0 +44,0 @@

@@ -31,2 +31,3 @@ // Copyright 2023 LiveKit, Inc.

{no: 1, name: "JT_PUBLISHER"},
{no: 2, name: "JT_PARTICIPANT"},
],

@@ -33,0 +34,0 @@ );

@@ -26,2 +26,3 @@ // Copyright 2023 LiveKit, Inc.

import type { SIPCallInfo, SIPDispatchRuleInfo, SIPInboundTrunkInfo, SIPOutboundTrunkInfo } from "./livekit_sip_pb.js";
import type { CreateRoomRequest, DeleteRoomRequest, ListParticipantsRequest, ListRoomsRequest, MuteRoomTrackRequest, RoomParticipantIdentity, SendDataRequest, UpdateParticipantRequest, UpdateRoomMetadataRequest, UpdateSubscriptionsRequest } from "./livekit_room_pb.js";

@@ -241,2 +242,12 @@ /**

REPORT = 40,
/**
* @generated from enum value: API_CALL = 41;
*/
API_CALL = 41,
/**
* @generated from enum value: WEBHOOK = 42;
*/
WEBHOOK = 42,
}

@@ -736,2 +747,12 @@

/**
* @generated from field: livekit.APICallInfo api_call = 34;
*/
apiCall?: APICallInfo;
/**
* @generated from field: livekit.WebhookInfo webhook = 35;
*/
webhook?: WebhookInfo;
constructor(data?: PartialMessage<AnalyticsEvent>);

@@ -1040,1 +1061,308 @@

/**
* @generated from message livekit.APICallRequest
*/
export declare class APICallRequest extends Message<APICallRequest> {
/**
* @generated from oneof livekit.APICallRequest.message
*/
message: {
/**
* @generated from field: livekit.CreateRoomRequest create_room_request = 1;
*/
value: CreateRoomRequest;
case: "createRoomRequest";
} | {
/**
* @generated from field: livekit.ListRoomsRequest list_rooms_request = 2;
*/
value: ListRoomsRequest;
case: "listRoomsRequest";
} | {
/**
* @generated from field: livekit.DeleteRoomRequest delete_room_request = 3;
*/
value: DeleteRoomRequest;
case: "deleteRoomRequest";
} | {
/**
* @generated from field: livekit.ListParticipantsRequest list_participants_request = 4;
*/
value: ListParticipantsRequest;
case: "listParticipantsRequest";
} | {
/**
* @generated from field: livekit.RoomParticipantIdentity room_participant_identity = 5;
*/
value: RoomParticipantIdentity;
case: "roomParticipantIdentity";
} | {
/**
* @generated from field: livekit.MuteRoomTrackRequest mute_room_track_request = 6;
*/
value: MuteRoomTrackRequest;
case: "muteRoomTrackRequest";
} | {
/**
* @generated from field: livekit.UpdateParticipantRequest update_participant_request = 7;
*/
value: UpdateParticipantRequest;
case: "updateParticipantRequest";
} | {
/**
* @generated from field: livekit.UpdateSubscriptionsRequest update_subscriptions_request = 8;
*/
value: UpdateSubscriptionsRequest;
case: "updateSubscriptionsRequest";
} | {
/**
* @generated from field: livekit.SendDataRequest send_data_request = 9;
*/
value: SendDataRequest;
case: "sendDataRequest";
} | {
/**
* @generated from field: livekit.UpdateRoomMetadataRequest update_room_metadata_request = 10;
*/
value: UpdateRoomMetadataRequest;
case: "updateRoomMetadataRequest";
} | { case: undefined; value?: undefined };
constructor(data?: PartialMessage<APICallRequest>);
static readonly runtime: typeof proto3;
static readonly typeName = "livekit.APICallRequest";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): APICallRequest;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): APICallRequest;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): APICallRequest;
static equals(a: APICallRequest | PlainMessage<APICallRequest> | undefined, b: APICallRequest | PlainMessage<APICallRequest> | undefined): boolean;
}
/**
* @generated from message livekit.APICallInfo
*/
export declare class APICallInfo extends Message<APICallInfo> {
/**
* @generated from field: string project_id = 1;
*/
projectId: string;
/**
* @generated from field: livekit.APICallRequest request = 2;
*/
request?: APICallRequest;
/**
* @generated from field: string service = 3;
*/
service: string;
/**
* @generated from field: string method = 4;
*/
method: string;
/**
* @generated from field: string node_id = 5;
*/
nodeId: string;
/**
* @generated from field: int32 status = 6;
*/
status: number;
/**
* @generated from field: string twirp_error_code = 7;
*/
twirpErrorCode: string;
/**
* @generated from field: string twirp_error_message = 8;
*/
twirpErrorMessage: string;
/**
* @generated from field: string room_name = 9;
*/
roomName: string;
/**
* @generated from field: string room_id = 10;
*/
roomId: string;
/**
* @generated from field: string participant_identity = 11;
*/
participantIdentity: string;
/**
* @generated from field: string participant_id = 12;
*/
participantId: string;
/**
* @generated from field: string track_id = 13;
*/
trackId: string;
/**
* @generated from field: google.protobuf.Timestamp started_at = 14;
*/
startedAt?: Timestamp;
/**
* @generated from field: int64 duration_ns = 15;
*/
durationNs: bigint;
constructor(data?: PartialMessage<APICallInfo>);
static readonly runtime: typeof proto3;
static readonly typeName = "livekit.APICallInfo";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): APICallInfo;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): APICallInfo;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): APICallInfo;
static equals(a: APICallInfo | PlainMessage<APICallInfo> | undefined, b: APICallInfo | PlainMessage<APICallInfo> | undefined): boolean;
}
/**
* @generated from message livekit.WebhookInfo
*/
export declare class WebhookInfo extends Message<WebhookInfo> {
/**
* @generated from field: string event_id = 1;
*/
eventId: string;
/**
* @generated from field: string event = 2;
*/
event: string;
/**
* @generated from field: string project_id = 3;
*/
projectId: string;
/**
* @generated from field: string room_name = 4;
*/
roomName: string;
/**
* @generated from field: string room_id = 5;
*/
roomId: string;
/**
* @generated from field: string participant_identity = 6;
*/
participantIdentity: string;
/**
* @generated from field: string participant_id = 7;
*/
participantId: string;
/**
* @generated from field: string track_id = 8;
*/
trackId: string;
/**
* @generated from field: string egress_id = 9;
*/
egressId: string;
/**
* @generated from field: string ingress_id = 10;
*/
ingressId: string;
/**
* @generated from field: google.protobuf.Timestamp created_at = 11;
*/
createdAt?: Timestamp;
/**
* @generated from field: google.protobuf.Timestamp queued_at = 12;
*/
queuedAt?: Timestamp;
/**
* @generated from field: int64 queue_duration_ns = 13;
*/
queueDurationNs: bigint;
/**
* @generated from field: google.protobuf.Timestamp sent_at = 14;
*/
sentAt?: Timestamp;
/**
* @generated from field: int64 send_duration_ns = 15;
*/
sendDurationNs: bigint;
/**
* @generated from field: string url = 16;
*/
url: string;
/**
* @generated from field: int32 num_dropped = 17;
*/
numDropped: number;
/**
* @generated from field: bool is_dropped = 18;
*/
isDropped: boolean;
/**
* @generated from field: string service_status = 19;
*/
serviceStatus: string;
/**
* @generated from field: int32 service_error_code = 20;
*/
serviceErrorCode: number;
/**
* @generated from field: string service_error = 21;
*/
serviceError: string;
/**
* @generated from field: string send_error = 22;
*/
sendError: string;
constructor(data?: PartialMessage<WebhookInfo>);
static readonly runtime: typeof proto3;
static readonly typeName = "livekit.WebhookInfo";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebhookInfo;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebhookInfo;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebhookInfo;
static equals(a: WebhookInfo | PlainMessage<WebhookInfo> | undefined, b: WebhookInfo | PlainMessage<WebhookInfo> | undefined): boolean;
}

@@ -25,2 +25,3 @@ // Copyright 2023 LiveKit, Inc.

import { SIPCallInfo, SIPDispatchRuleInfo, SIPInboundTrunkInfo, SIPOutboundTrunkInfo } from "./livekit_sip_pb.js";
import { CreateRoomRequest, DeleteRoomRequest, ListParticipantsRequest, ListRoomsRequest, MuteRoomTrackRequest, RoomParticipantIdentity, SendDataRequest, UpdateParticipantRequest, UpdateRoomMetadataRequest, UpdateSubscriptionsRequest } from "./livekit_room_pb.js";

@@ -83,2 +84,4 @@ /**

{no: 40, name: "REPORT"},
{no: 41, name: "API_CALL"},
{no: 42, name: "WEBHOOK"},
],

@@ -215,2 +218,4 @@ );

{ no: 33, name: "report", kind: "message", T: ReportInfo },
{ no: 34, name: "api_call", kind: "message", T: APICallInfo },
{ no: 35, name: "webhook", kind: "message", T: WebhookInfo },
],

@@ -319,1 +324,75 @@ );

/**
* @generated from message livekit.APICallRequest
*/
export const APICallRequest = /*@__PURE__*/ proto3.makeMessageType(
"livekit.APICallRequest",
() => [
{ no: 1, name: "create_room_request", kind: "message", T: CreateRoomRequest, oneof: "message" },
{ no: 2, name: "list_rooms_request", kind: "message", T: ListRoomsRequest, oneof: "message" },
{ no: 3, name: "delete_room_request", kind: "message", T: DeleteRoomRequest, oneof: "message" },
{ no: 4, name: "list_participants_request", kind: "message", T: ListParticipantsRequest, oneof: "message" },
{ no: 5, name: "room_participant_identity", kind: "message", T: RoomParticipantIdentity, oneof: "message" },
{ no: 6, name: "mute_room_track_request", kind: "message", T: MuteRoomTrackRequest, oneof: "message" },
{ no: 7, name: "update_participant_request", kind: "message", T: UpdateParticipantRequest, oneof: "message" },
{ no: 8, name: "update_subscriptions_request", kind: "message", T: UpdateSubscriptionsRequest, oneof: "message" },
{ no: 9, name: "send_data_request", kind: "message", T: SendDataRequest, oneof: "message" },
{ no: 10, name: "update_room_metadata_request", kind: "message", T: UpdateRoomMetadataRequest, oneof: "message" },
],
);
/**
* @generated from message livekit.APICallInfo
*/
export const APICallInfo = /*@__PURE__*/ proto3.makeMessageType(
"livekit.APICallInfo",
() => [
{ no: 1, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "request", kind: "message", T: APICallRequest },
{ no: 3, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 6, name: "status", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
{ no: 7, name: "twirp_error_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 8, name: "twirp_error_message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 9, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 10, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 11, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 12, name: "participant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 13, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 14, name: "started_at", kind: "message", T: Timestamp },
{ no: 15, name: "duration_ns", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
],
);
/**
* @generated from message livekit.WebhookInfo
*/
export const WebhookInfo = /*@__PURE__*/ proto3.makeMessageType(
"livekit.WebhookInfo",
() => [
{ no: 1, name: "event_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "event", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 6, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 7, name: "participant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 8, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 9, name: "egress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 10, name: "ingress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 11, name: "created_at", kind: "message", T: Timestamp },
{ no: 12, name: "queued_at", kind: "message", T: Timestamp },
{ no: 13, name: "queue_duration_ns", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 14, name: "sent_at", kind: "message", T: Timestamp },
{ no: 15, name: "send_duration_ns", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 16, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 17, name: "num_dropped", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
{ no: 18, name: "is_dropped", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 19, name: "service_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 20, name: "service_error_code", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
{ no: 21, name: "service_error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 22, name: "send_error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
],
);

@@ -114,2 +114,28 @@ // Copyright 2023 LiveKit, Inc.

/**
* @generated from enum livekit.AudioMixing
*/
export declare enum AudioMixing {
/**
* all users are mixed together
*
* @generated from enum value: DEFAULT_MIXING = 0;
*/
DEFAULT_MIXING = 0,
/**
* agent audio in the left channel, all other audio in the right channel
*
* @generated from enum value: DUAL_CHANNEL_AGENT = 1;
*/
DUAL_CHANNEL_AGENT = 1,
/**
* each new audio track alternates between left and right channels
*
* @generated from enum value: DUAL_CHANNEL_ALTERNATE = 2;
*/
DUAL_CHANNEL_ALTERNATE = 2,
}
/**
* @generated from enum livekit.EncodingOptionsPreset

@@ -258,2 +284,9 @@ */

/**
* only applies to audio_only egress (default DEFAULT_MIXING)
*
* @generated from field: livekit.AudioMixing audio_mixing = 15;
*/
audioMixing: AudioMixing;
/**
* (default false)

@@ -260,0 +293,0 @@ *

@@ -81,2 +81,14 @@ // Copyright 2023 LiveKit, Inc.

/**
* @generated from enum livekit.AudioMixing
*/
export const AudioMixing = /*@__PURE__*/ proto3.makeEnum(
"livekit.AudioMixing",
[
{no: 0, name: "DEFAULT_MIXING"},
{no: 1, name: "DUAL_CHANNEL_AGENT"},
{no: 2, name: "DUAL_CHANNEL_ALTERNATE"},
],
);
/**
* @generated from enum livekit.EncodingOptionsPreset

@@ -136,2 +148,3 @@ */

{ no: 3, name: "audio_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 15, name: "audio_mixing", kind: "enum", T: proto3.getEnumType(AudioMixing) },
{ no: 4, name: "video_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },

@@ -138,0 +151,0 @@ { no: 5, name: "custom_base_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },

@@ -533,2 +533,17 @@ // Copyright 2023 LiveKit, Inc.

/**
* @generated from message livekit.SIPOutboundConfig
*/
export const SIPOutboundConfig = /*@__PURE__*/ proto3.makeMessageType(
"livekit.SIPOutboundConfig",
() => [
{ no: 1, name: "hostname", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "transport", kind: "enum", T: proto3.getEnumType(SIPTransport) },
{ no: 3, name: "auth_username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "auth_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "headers_to_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
{ no: 6, name: "attributes_to_headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
],
);
/**
* A SIP Participant is a singular SIP session connected to a LiveKit room via

@@ -543,2 +558,3 @@ * a SIP Trunk into a SIP DispatchRule

{ no: 1, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 20, name: "trunk", kind: "message", T: SIPOutboundConfig },
{ no: 2, name: "sip_call_to", kind: "scalar", T: 9 /* ScalarType.STRING */ },

@@ -545,0 +561,0 @@ { no: 15, name: "sip_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },

// Generated by genversion.
export const version = '1.33.0';
export const version = '1.34.0';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display