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
25
Versions
37
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 1.19.1 to 1.19.2

2

package.json
{
"name": "@livekit/protocol",
"version": "1.19.1",
"version": "1.19.2",
"description": "",

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

@@ -80,131 +80,6 @@ // Copyright 2023 LiveKit, Inc.

/**
* @generated from message livekit.CreateAgentJobDefinitionRequest
* @generated from message livekit.Job
*/
export declare class CreateAgentJobDefinitionRequest extends Message<CreateAgentJobDefinitionRequest> {
export declare class Job extends Message<Job> {
/**
* @generated from field: livekit.JobType type = 1;
*/
type: JobType;
/**
* @generated from field: string room = 2;
*/
room: string;
/**
* @generated from field: repeated string participant_identity = 3;
*/
participantIdentity: string[];
/**
* @generated from field: string namespace = 4;
*/
namespace: string;
/**
* @generated from field: string metadata = 5;
*/
metadata: string;
constructor(data?: PartialMessage<CreateAgentJobDefinitionRequest>);
static readonly runtime: typeof proto3;
static readonly typeName = "livekit.CreateAgentJobDefinitionRequest";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAgentJobDefinitionRequest;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAgentJobDefinitionRequest;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAgentJobDefinitionRequest;
static equals(a: CreateAgentJobDefinitionRequest | PlainMessage<CreateAgentJobDefinitionRequest> | undefined, b: CreateAgentJobDefinitionRequest | PlainMessage<CreateAgentJobDefinitionRequest> | undefined): boolean;
}
/**
* @generated from message livekit.DeleteAgentJobDefinitionRequest
*/
export declare class DeleteAgentJobDefinitionRequest extends Message<DeleteAgentJobDefinitionRequest> {
/**
* @generated from field: string job_definition_id = 1;
*/
jobDefinitionId: string;
constructor(data?: PartialMessage<DeleteAgentJobDefinitionRequest>);
static readonly runtime: typeof proto3;
static readonly typeName = "livekit.DeleteAgentJobDefinitionRequest";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteAgentJobDefinitionRequest;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteAgentJobDefinitionRequest;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteAgentJobDefinitionRequest;
static equals(a: DeleteAgentJobDefinitionRequest | PlainMessage<DeleteAgentJobDefinitionRequest> | undefined, b: DeleteAgentJobDefinitionRequest | PlainMessage<DeleteAgentJobDefinitionRequest> | undefined): boolean;
}
/**
* @generated from message livekit.ListAgentJobDefinitionsRequesst
*/
export declare class ListAgentJobDefinitionsRequesst extends Message<ListAgentJobDefinitionsRequesst> {
/**
* if set, only the job definition whose id is given will be returned
*
* @generated from field: string job_definition_id = 1;
*/
jobDefinitionId: string;
/**
* name of the room to list agents for. Must be set.
*
* @generated from field: string room = 2;
*/
room: string;
constructor(data?: PartialMessage<ListAgentJobDefinitionsRequesst>);
static readonly runtime: typeof proto3;
static readonly typeName = "livekit.ListAgentJobDefinitionsRequesst";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentJobDefinitionsRequesst;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentJobDefinitionsRequesst;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentJobDefinitionsRequesst;
static equals(a: ListAgentJobDefinitionsRequesst | PlainMessage<ListAgentJobDefinitionsRequesst> | undefined, b: ListAgentJobDefinitionsRequesst | PlainMessage<ListAgentJobDefinitionsRequesst> | undefined): boolean;
}
/**
* @generated from message livekit.ListAgentJobDefinitionsResponse
*/
export declare class ListAgentJobDefinitionsResponse extends Message<ListAgentJobDefinitionsResponse> {
/**
* @generated from field: repeated livekit.JobDefinition job_definitions = 1;
*/
jobDefinitions: JobDefinition[];
constructor(data?: PartialMessage<ListAgentJobDefinitionsResponse>);
static readonly runtime: typeof proto3;
static readonly typeName = "livekit.ListAgentJobDefinitionsResponse";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentJobDefinitionsResponse;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentJobDefinitionsResponse;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentJobDefinitionsResponse;
static equals(a: ListAgentJobDefinitionsResponse | PlainMessage<ListAgentJobDefinitionsResponse> | undefined, b: ListAgentJobDefinitionsResponse | PlainMessage<ListAgentJobDefinitionsResponse> | undefined): boolean;
}
/**
* @generated from message livekit.JobDefinition
*/
export declare class JobDefinition extends Message<JobDefinition> {
/**
* @generated from field: string id = 1;

@@ -215,93 +90,7 @@ */

/**
* @generated from field: livekit.JobType type = 2;
* @generated from field: string dispatch_id = 9;
*/
type: JobType;
dispatchId: string;
/**
* @generated from field: string room = 3;
*/
room: string;
/**
* @generated from field: repeated string participant_identity = 4;
*/
participantIdentity: string[];
/**
* @generated from field: string namespace = 5;
*/
namespace: string;
/**
* @generated from field: string metadata = 6;
*/
metadata: string;
/**
* @generated from field: livekit.JobDefinitionState state = 7;
*/
state?: JobDefinitionState;
constructor(data?: PartialMessage<JobDefinition>);
static readonly runtime: typeof proto3;
static readonly typeName = "livekit.JobDefinition";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobDefinition;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobDefinition;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobDefinition;
static equals(a: JobDefinition | PlainMessage<JobDefinition> | undefined, b: JobDefinition | PlainMessage<JobDefinition> | undefined): boolean;
}
/**
* @generated from message livekit.JobDefinitionState
*/
export declare class JobDefinitionState extends Message<JobDefinitionState> {
/**
* For job definitions of tyoe JT_ROOM, there will be at most 1 job.
* For job definitions of type JT_PUBLISHER, there will be 1 job per provided participant identity, or per publisher in the room if left empty.
*
* @generated from field: repeated livekit.Job jobs = 1;
*/
jobs: Job[];
/**
* @generated from field: int64 created_at = 2;
*/
createdAt: bigint;
/**
* @generated from field: int64 deleted_at = 3;
*/
deletedAt: bigint;
constructor(data?: PartialMessage<JobDefinitionState>);
static readonly runtime: typeof proto3;
static readonly typeName = "livekit.JobDefinitionState";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobDefinitionState;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobDefinitionState;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobDefinitionState;
static equals(a: JobDefinitionState | PlainMessage<JobDefinitionState> | undefined, b: JobDefinitionState | PlainMessage<JobDefinitionState> | undefined): boolean;
}
/**
* @generated from message livekit.Job
*/
export declare class Job extends Message<Job> {
/**
* @generated from field: string id = 1;
*/
id: string;
/**
* @generated from field: livekit.JobType type = 2;

@@ -322,3 +111,4 @@ */

/**
* @generated from field: string namespace = 5;
* @generated from field: string namespace = 5 [deprecated = true];
* @deprecated
*/

@@ -333,4 +123,9 @@ namespace: string;

/**
* @generated from field: livekit.JobState state = 7;
* @generated from field: string agent_name = 7;
*/
agentName: string;
/**
* @generated from field: livekit.JobState state = 8;
*/
state?: JobState;

@@ -630,2 +425,7 @@

/**
* @generated from field: string agent_name = 8;
*/
agentName: string;
/**
* string worker_id = 2;

@@ -638,7 +438,4 @@ *

/**
* @generated from field: string name = 4;
*/
name: string;
/**
* string name = 4 [deprecated = true];
*
* @generated from field: uint32 ping_interval = 5;

@@ -738,3 +535,3 @@ */

/**
* True when the job was previously assigned to another worker but has been
* True when the job was previously assigned to another worker but has been
* migrated due to different reasons (e.g. worker failure, job migration)

@@ -795,2 +592,7 @@ *

/**
* @generated from field: map<string, string> participant_attributes = 7;
*/
participantAttributes: { [key: string]: string };
constructor(data?: PartialMessage<AvailabilityResponse>);

@@ -797,0 +599,0 @@

@@ -59,75 +59,2 @@ // Copyright 2023 LiveKit, Inc.

/**
* @generated from message livekit.CreateAgentJobDefinitionRequest
*/
export const CreateAgentJobDefinitionRequest = /*@__PURE__*/ proto3.makeMessageType(
"livekit.CreateAgentJobDefinitionRequest",
() => [
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(JobType) },
{ no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
{ no: 4, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
],
);
/**
* @generated from message livekit.DeleteAgentJobDefinitionRequest
*/
export const DeleteAgentJobDefinitionRequest = /*@__PURE__*/ proto3.makeMessageType(
"livekit.DeleteAgentJobDefinitionRequest",
() => [
{ no: 1, name: "job_definition_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
],
);
/**
* @generated from message livekit.ListAgentJobDefinitionsRequesst
*/
export const ListAgentJobDefinitionsRequesst = /*@__PURE__*/ proto3.makeMessageType(
"livekit.ListAgentJobDefinitionsRequesst",
() => [
{ no: 1, name: "job_definition_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
],
);
/**
* @generated from message livekit.ListAgentJobDefinitionsResponse
*/
export const ListAgentJobDefinitionsResponse = /*@__PURE__*/ proto3.makeMessageType(
"livekit.ListAgentJobDefinitionsResponse",
() => [
{ no: 1, name: "job_definitions", kind: "message", T: JobDefinition, repeated: true },
],
);
/**
* @generated from message livekit.JobDefinition
*/
export const JobDefinition = /*@__PURE__*/ proto3.makeMessageType(
"livekit.JobDefinition",
() => [
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(JobType) },
{ no: 3, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
{ no: 5, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 6, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 7, name: "state", kind: "message", T: JobDefinitionState },
],
);
/**
* @generated from message livekit.JobDefinitionState
*/
export const JobDefinitionState = /*@__PURE__*/ proto3.makeMessageType(
"livekit.JobDefinitionState",
() => [
{ no: 1, name: "jobs", kind: "message", T: Job, repeated: true },
{ no: 2, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 3, name: "deleted_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
],
);
/**
* @generated from message livekit.Job

@@ -139,2 +66,3 @@ */

{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 9, name: "dispatch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(JobType) },

@@ -145,3 +73,4 @@ { no: 3, name: "room", kind: "message", T: Room },

{ no: 6, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 7, name: "state", kind: "message", T: JobState },
{ no: 7, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 8, name: "state", kind: "message", T: JobState },
],

@@ -238,4 +167,4 @@ );

{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(JobType) },
{ no: 8, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "ping_interval", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },

@@ -291,2 +220,3 @@ { no: 6, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },

{ no: 6, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 7, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
],

@@ -293,0 +223,0 @@ );

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

RTMP = 1,
/**
* @generated from enum value: SRT = 2;
*/
SRT = 2,
}

@@ -1895,2 +1900,7 @@

/**
* @generated from field: string filename_prefix = 4;
*/
filenamePrefix: string;
/**
* @generated from field: int64 image_count = 1;

@@ -1897,0 +1907,0 @@ */

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

{no: 1, name: "RTMP"},
{no: 2, name: "SRT"},
],

@@ -558,2 +559,3 @@ );

() => [
{ no: 4, name: "filename_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 1, name: "image_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },

@@ -560,0 +562,0 @@ { no: 2, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },

@@ -218,2 +218,4 @@ // Copyright 2023 LiveKit, Inc.

/**
* the client initiated the disconnect
*
* @generated from enum value: CLIENT_INITIATED = 1;

@@ -224,2 +226,4 @@ */

/**
* another participant with the same identity has joined the room
*
* @generated from enum value: DUPLICATE_IDENTITY = 2;

@@ -230,2 +234,4 @@ */

/**
* the server instance is shutting down
*
* @generated from enum value: SERVER_SHUTDOWN = 3;

@@ -236,2 +242,4 @@ */

/**
* RoomService.RemoveParticipant was called
*
* @generated from enum value: PARTICIPANT_REMOVED = 4;

@@ -242,2 +250,4 @@ */

/**
* RoomService.DeleteRoom was called
*
* @generated from enum value: ROOM_DELETED = 5;

@@ -248,2 +258,4 @@ */

/**
* the client is attempting to resume a session, but server is not aware of it
*
* @generated from enum value: STATE_MISMATCH = 6;

@@ -254,2 +266,4 @@ */

/**
* client was unable to connect fully
*
* @generated from enum value: JOIN_FAILURE = 7;

@@ -260,2 +274,4 @@ */

/**
* Cloud-only, the server requested Participant to migrate the connection elsewhere
*
* @generated from enum value: MIGRATION = 8;

@@ -266,5 +282,14 @@ */

/**
* 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,
}

@@ -271,0 +296,0 @@

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

{no: 9, name: "SIGNAL_CLOSE"},
{no: 10, name: "ROOM_CLOSED"},
],

@@ -141,0 +142,0 @@ );

@@ -23,3 +23,3 @@ // Copyright 2023 LiveKit, Inc.

import type { AutoParticipantEgress, AutoTrackEgress, RoomCompositeEgressRequest } from "./livekit_egress_pb.js";
import type { CreateAgentJobDefinitionRequest } from "./livekit_agent_pb.js";
import type { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
import type { DataPacket_Kind, ParticipantInfo, ParticipantPermission, ParticipantTracks, Room, TrackInfo } from "./livekit_models_pb.js";

@@ -39,3 +39,3 @@

/**
* configuration to use for this room parameters. Setting parameters below override the config defaults.
* configuration to use for this room parameters. Setting parameters below override the config defaults.
*

@@ -115,2 +115,11 @@ * @generated from field: string config_name = 12;

/**
* replay
*
* NEXT-ID: 14
*
* @generated from field: bool replay_enabled = 13;
*/
replayEnabled: boolean;
constructor(data?: PartialMessage<CreateRoomRequest>);

@@ -170,5 +179,5 @@

/**
* @generated from field: repeated livekit.CreateAgentJobDefinitionRequest agents = 1;
* @generated from field: repeated livekit.RoomAgentDispatch dispatches = 1;
*/
agents: CreateAgentJobDefinitionRequest[];
dispatches: RoomAgentDispatch[];

@@ -175,0 +184,0 @@ constructor(data?: PartialMessage<RoomAgent>);

@@ -22,3 +22,3 @@ // Copyright 2023 LiveKit, Inc.

import { AutoParticipantEgress, AutoTrackEgress, RoomCompositeEgressRequest } from "./livekit_egress_pb.js";
import { CreateAgentJobDefinitionRequest } from "./livekit_agent_pb.js";
import { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
import { DataPacket_Kind, ParticipantInfo, ParticipantPermission, ParticipantTracks, Room, TrackInfo } from "./livekit_models_pb.js";

@@ -44,2 +44,3 @@

{ no: 9, name: "sync_streams", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 13, name: "replay_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
],

@@ -66,3 +67,3 @@ );

() => [
{ no: 1, name: "agents", kind: "message", T: CreateAgentJobDefinitionRequest, repeated: true },
{ no: 1, name: "dispatches", kind: "message", T: RoomAgentDispatch, repeated: true },
],

@@ -69,0 +70,0 @@ );

@@ -410,2 +410,10 @@ // Copyright 2023 LiveKit, Inc.

case: "errorResponse";
} | {
/**
* notify to the publisher when a published track has been subscribed for the first time
*
* @generated from field: livekit.TrackSubscribed track_subscribed = 23;
*/
value: TrackSubscribed;
case: "trackSubscribed";
} | { case: undefined; value?: undefined };

@@ -580,2 +588,7 @@

/**
* @generated from field: bool final = 3;
*/
final: boolean;
constructor(data?: PartialMessage<TrickleRequest>);

@@ -1950,6 +1963,30 @@

/**
* @generated from enum value: INVALID_ARGUMENT = 3;
* @generated from enum value: LIMIT_EXCEEDED = 3;
*/
INVALID_ARGUMENT = 3,
LIMIT_EXCEEDED = 3,
}
/**
* @generated from message livekit.TrackSubscribed
*/
export declare class TrackSubscribed extends Message<TrackSubscribed> {
/**
* @generated from field: string track_sid = 1;
*/
trackSid: string;
constructor(data?: PartialMessage<TrackSubscribed>);
static readonly runtime: typeof proto3;
static readonly typeName = "livekit.TrackSubscribed";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackSubscribed;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackSubscribed;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackSubscribed;
static equals(a: TrackSubscribed | PlainMessage<TrackSubscribed> | undefined, b: TrackSubscribed | PlainMessage<TrackSubscribed> | undefined): boolean;
}

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

{ no: 22, name: "error_response", kind: "message", T: ErrorResponse, oneof: "message" },
{ no: 23, name: "track_subscribed", kind: "message", T: TrackSubscribed, oneof: "message" },
],

@@ -157,2 +158,3 @@ );

{ no: 2, name: "target", kind: "enum", T: proto3.getEnumType(SignalTarget) },
{ no: 3, name: "final", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
],

@@ -619,5 +621,15 @@ );

{no: 2, name: "NOT_ALLOWED"},
{no: 3, name: "INVALID_ARGUMENT"},
{no: 3, name: "LIMIT_EXCEEDED"},
],
);
/**
* @generated from message livekit.TrackSubscribed
*/
export const TrackSubscribed = /*@__PURE__*/ proto3.makeMessageType(
"livekit.TrackSubscribed",
() => [
{ no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
],
);
// Generated by genversion.
export const version = '1.19.1';
export const version = '1.19.2';
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc