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
29
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.26.0

2

package.json
{
"name": "@livekit/protocol",
"version": "1.24.0",
"version": "1.26.0",
"description": "",

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

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

import type { IngressInfo } from "./livekit_ingress_pb.js";
import type { SIPCallInfo, SIPDispatchRuleInfo, SIPInboundTrunkInfo, SIPOutboundTrunkInfo } from "./livekit_sip_pb.js";

@@ -185,2 +186,52 @@ /**

INGRESS_UPDATED = 29,
/**
* @generated from enum value: SIP_INBOUND_TRUNK_CREATED = 30;
*/
SIP_INBOUND_TRUNK_CREATED = 30,
/**
* @generated from enum value: SIP_INBOUND_TRUNK_DELETED = 31;
*/
SIP_INBOUND_TRUNK_DELETED = 31,
/**
* @generated from enum value: SIP_OUTBOUND_TRUNK_CREATED = 32;
*/
SIP_OUTBOUND_TRUNK_CREATED = 32,
/**
* @generated from enum value: SIP_OUTBOUND_TRUNK_DELETED = 33;
*/
SIP_OUTBOUND_TRUNK_DELETED = 33,
/**
* @generated from enum value: SIP_DISPATCH_RULE_CREATED = 34;
*/
SIP_DISPATCH_RULE_CREATED = 34,
/**
* @generated from enum value: SIP_DISPATCH_RULE_DELETED = 35;
*/
SIP_DISPATCH_RULE_DELETED = 35,
/**
* @generated from enum value: SIP_PARTICIPANT_CREATED = 36;
*/
SIP_PARTICIPANT_CREATED = 36,
/**
* @generated from enum value: SIP_CALL_INCOMING = 37;
*/
SIP_CALL_INCOMING = 37,
/**
* @generated from enum value: SIP_CALL_STARTED = 38;
*/
SIP_CALL_STARTED = 38,
/**
* @generated from enum value: SIP_CALL_ENDED = 39;
*/
SIP_CALL_ENDED = 39,
}

@@ -640,2 +691,37 @@

/**
* @generated from field: string sip_call_id = 26;
*/
sipCallId: string;
/**
* @generated from field: livekit.SIPCallInfo sip_call = 27;
*/
sipCall?: SIPCallInfo;
/**
* @generated from field: string sip_trunk_id = 28;
*/
sipTrunkId: string;
/**
* @generated from field: livekit.SIPInboundTrunkInfo sip_inbound_trunk = 29;
*/
sipInboundTrunk?: SIPInboundTrunkInfo;
/**
* @generated from field: livekit.SIPOutboundTrunkInfo sip_outbound_trunk = 30;
*/
sipOutboundTrunk?: SIPOutboundTrunkInfo;
/**
* @generated from field: string sip_dispatch_rule_id = 31;
*/
sipDispatchRuleId: string;
/**
* @generated from field: livekit.SIPDispatchRuleInfo sip_dispatch_rule = 32;
*/
sipDispatchRule?: SIPDispatchRuleInfo;
constructor(data?: PartialMessage<AnalyticsEvent>);

@@ -642,0 +728,0 @@

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

import { IngressInfo } from "./livekit_ingress_pb.js";
import { SIPCallInfo, SIPDispatchRuleInfo, SIPInboundTrunkInfo, SIPOutboundTrunkInfo } from "./livekit_sip_pb.js";

@@ -71,2 +72,12 @@ /**

{no: 29, name: "INGRESS_UPDATED"},
{no: 30, name: "SIP_INBOUND_TRUNK_CREATED"},
{no: 31, name: "SIP_INBOUND_TRUNK_DELETED"},
{no: 32, name: "SIP_OUTBOUND_TRUNK_CREATED"},
{no: 33, name: "SIP_OUTBOUND_TRUNK_DELETED"},
{no: 34, name: "SIP_DISPATCH_RULE_CREATED"},
{no: 35, name: "SIP_DISPATCH_RULE_DELETED"},
{no: 36, name: "SIP_PARTICIPANT_CREATED"},
{no: 37, name: "SIP_CALL_INCOMING"},
{no: 38, name: "SIP_CALL_STARTED"},
{no: 39, name: "SIP_CALL_ENDED"},
],

@@ -195,2 +206,9 @@ );

{ no: 24, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 26, name: "sip_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 27, name: "sip_call", kind: "message", T: SIPCallInfo },
{ no: 28, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 29, name: "sip_inbound_trunk", kind: "message", T: SIPInboundTrunkInfo },
{ no: 30, name: "sip_outbound_trunk", kind: "message", T: SIPOutboundTrunkInfo },
{ no: 31, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 32, name: "sip_dispatch_rule", kind: "message", T: SIPDispatchRuleInfo },
],

@@ -197,0 +215,0 @@ );

@@ -20,4 +20,5 @@ // Copyright 2023 LiveKit, Inc.

import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
import type { DisconnectReason } from "./livekit_models_pb.js";

@@ -50,2 +51,35 @@ /**

/**
* @generated from enum livekit.SIPCallStatus
*/
export declare enum SIPCallStatus {
/**
* Incoming call is being handled by the SIP service. The SIP participant hasn't joined a LiveKit room yet
*
* @generated from enum value: SCS_CALL_INCOMING = 0;
*/
SCS_CALL_INCOMING = 0,
/**
* SIP participant for outgoing call has been created. The SIP outgoing call is being established
*
* @generated from enum value: SCS_PARTICIPANT_JOINED = 1;
*/
SCS_PARTICIPANT_JOINED = 1,
/**
* Call is ongoing. SIP participant is active in the LiveKit room
*
* @generated from enum value: SCS_ACTIVE = 2;
*/
SCS_ACTIVE = 2,
/**
* Call has ended
*
* @generated from enum value: SCS_DISCONNECTED = 3;
*/
SCS_DISCONNECTED = 3,
}
/**
* @generated from message livekit.CreateSIPTrunkRequest

@@ -375,2 +409,16 @@ * @deprecated

/**
* Max time for the caller to wait for track subscription.
*
* @generated from field: google.protobuf.Duration ringing_timeout = 11;
*/
ringingTimeout?: Duration;
/**
* Max call duration.
*
* @generated from field: google.protobuf.Duration max_call_duration = 12;
*/
maxCallDuration?: Duration;
constructor(data?: PartialMessage<SIPInboundTrunkInfo>);

@@ -1198,2 +1246,16 @@

/**
* Max time for the callee to answer the call.
*
* @generated from field: google.protobuf.Duration ringing_timeout = 11;
*/
ringingTimeout?: Duration;
/**
* Max call duration.
*
* @generated from field: google.protobuf.Duration max_call_duration = 12;
*/
maxCallDuration?: Duration;
constructor(data?: PartialMessage<CreateSIPParticipantRequest>);

@@ -1287,1 +1349,121 @@

/**
* @generated from message livekit.SIPCallInfo
*/
export declare class SIPCallInfo extends Message<SIPCallInfo> {
/**
* @generated from field: string call_id = 1;
*/
callId: string;
/**
* @generated from field: string trunk_id = 2;
*/
trunkId: string;
/**
* @generated from field: string room_name = 3;
*/
roomName: string;
/**
* ID of the current/previous room published to
*
* @generated from field: string room_id = 4;
*/
roomId: string;
/**
* @generated from field: string participant_identity = 5;
*/
participantIdentity: string;
/**
* @generated from field: livekit.SIPUri from_uri = 6;
*/
fromUri?: SIPUri;
/**
* @generated from field: livekit.SIPUri to_uri = 7;
*/
toUri?: SIPUri;
/**
* @generated from field: livekit.SIPCallStatus call_status = 8;
*/
callStatus: SIPCallStatus;
/**
* @generated from field: int64 started_at = 9;
*/
startedAt: bigint;
/**
* @generated from field: int64 ended_at = 10;
*/
endedAt: bigint;
/**
* @generated from field: livekit.DisconnectReason disconnect_reason = 11;
*/
disconnectReason: DisconnectReason;
constructor(data?: PartialMessage<SIPCallInfo>);
static readonly runtime: typeof proto3;
static readonly typeName = "livekit.SIPCallInfo";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPCallInfo;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPCallInfo;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPCallInfo;
static equals(a: SIPCallInfo | PlainMessage<SIPCallInfo> | undefined, b: SIPCallInfo | PlainMessage<SIPCallInfo> | undefined): boolean;
}
/**
* @generated from message livekit.SIPUri
*/
export declare class SIPUri extends Message<SIPUri> {
/**
* @generated from field: string user = 1;
*/
user: string;
/**
* @generated from field: string host = 2;
*/
host: string;
/**
* @generated from field: string ip = 3;
*/
ip: string;
/**
* @generated from field: string port = 4;
*/
port: string;
/**
* @generated from field: livekit.SIPTransport transport = 5;
*/
transport: SIPTransport;
constructor(data?: PartialMessage<SIPUri>);
static readonly runtime: typeof proto3;
static readonly typeName = "livekit.SIPUri";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SIPUri;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SIPUri;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SIPUri;
static equals(a: SIPUri | PlainMessage<SIPUri> | undefined, b: SIPUri | PlainMessage<SIPUri> | undefined): boolean;
}

@@ -20,3 +20,4 @@ // Copyright 2023 LiveKit, Inc.

import { proto3 } from "@bufbuild/protobuf";
import { Duration, proto3 } from "@bufbuild/protobuf";
import { DisconnectReason } from "./livekit_models_pb.js";

@@ -37,2 +38,15 @@ /**

/**
* @generated from enum livekit.SIPCallStatus
*/
export const SIPCallStatus = /*@__PURE__*/ proto3.makeEnum(
"livekit.SIPCallStatus",
[
{no: 0, name: "SCS_CALL_INCOMING"},
{no: 1, name: "SCS_PARTICIPANT_JOINED"},
{no: 2, name: "SCS_ACTIVE"},
{no: 3, name: "SCS_DISCONNECTED"},
],
);
/**
* @generated from message livekit.CreateSIPTrunkRequest

@@ -120,2 +134,4 @@ * @deprecated

{ no: 10, name: "headers_to_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
{ no: 11, name: "ringing_timeout", kind: "message", T: Duration },
{ no: 12, name: "max_call_duration", kind: "message", T: Duration },
],

@@ -385,2 +401,4 @@ );

{ no: 10, name: "hide_phone_number", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 11, name: "ringing_timeout", kind: "message", T: Duration },
{ no: 12, name: "max_call_duration", kind: "message", T: Duration },
],

@@ -414,1 +432,35 @@ );

/**
* @generated from message livekit.SIPCallInfo
*/
export const SIPCallInfo = /*@__PURE__*/ proto3.makeMessageType(
"livekit.SIPCallInfo",
() => [
{ no: 1, name: "call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 6, name: "from_uri", kind: "message", T: SIPUri },
{ no: 7, name: "to_uri", kind: "message", T: SIPUri },
{ no: 8, name: "call_status", kind: "enum", T: proto3.getEnumType(SIPCallStatus) },
{ no: 9, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 10, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 11, name: "disconnect_reason", kind: "enum", T: proto3.getEnumType(DisconnectReason) },
],
);
/**
* @generated from message livekit.SIPUri
*/
export const SIPUri = /*@__PURE__*/ proto3.makeMessageType(
"livekit.SIPUri",
() => [
{ no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "host", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "ip", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "port", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "transport", kind: "enum", T: proto3.getEnumType(SIPTransport) },
],
);
// Generated by genversion.
export const version = '1.24.0';
export const version = '1.26.0';