// 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_agent_dispatch.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 { Job } from "./livekit_agent_pb.js"; /** * @generated from enum livekit.JobRestartPolicy */ export declare enum JobRestartPolicy { /** * restart when the job fails (default) * * @generated from enum value: JRP_ON_FAILURE = 0; */ JRP_ON_FAILURE = 0, /** * never restart * * @generated from enum value: JRP_NEVER = 1; */ JRP_NEVER = 1, } /** * @generated from message livekit.CreateAgentDispatchRequest */ export declare class CreateAgentDispatchRequest extends Message { /** * @generated from field: string agent_name = 1; */ agentName: string; /** * @generated from field: string room = 2; */ room: string; /** * @generated from field: string metadata = 3; */ metadata: string; /** * cloud only * * @generated from field: livekit.JobRestartPolicy restart_policy = 4; */ restartPolicy: JobRestartPolicy; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.CreateAgentDispatchRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CreateAgentDispatchRequest; static fromJson(jsonValue: JsonValue, options?: Partial): CreateAgentDispatchRequest; static fromJsonString(jsonString: string, options?: Partial): CreateAgentDispatchRequest; static equals(a: CreateAgentDispatchRequest | PlainMessage | undefined, b: CreateAgentDispatchRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.RoomAgentDispatch */ export declare class RoomAgentDispatch extends Message { /** * @generated from field: string agent_name = 1; */ agentName: string; /** * @generated from field: string metadata = 2; */ metadata: string; /** * cloud only * * @generated from field: livekit.JobRestartPolicy restart_policy = 3; */ restartPolicy: JobRestartPolicy; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.RoomAgentDispatch"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RoomAgentDispatch; static fromJson(jsonValue: JsonValue, options?: Partial): RoomAgentDispatch; static fromJsonString(jsonString: string, options?: Partial): RoomAgentDispatch; static equals(a: RoomAgentDispatch | PlainMessage | undefined, b: RoomAgentDispatch | PlainMessage | undefined): boolean; } /** * @generated from message livekit.DeleteAgentDispatchRequest */ export declare class DeleteAgentDispatchRequest extends Message { /** * @generated from field: string dispatch_id = 1; */ dispatchId: string; /** * @generated from field: string room = 2; */ room: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DeleteAgentDispatchRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAgentDispatchRequest; static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAgentDispatchRequest; static fromJsonString(jsonString: string, options?: Partial): DeleteAgentDispatchRequest; static equals(a: DeleteAgentDispatchRequest | PlainMessage | undefined, b: DeleteAgentDispatchRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.ListAgentDispatchRequest */ export declare class ListAgentDispatchRequest extends Message { /** * if set, only the dispatch whose id is given will be returned * * @generated from field: string dispatch_id = 1; */ dispatchId: string; /** * name of the room to list agents for. Must be set. * * @generated from field: string room = 2; */ room: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ListAgentDispatchRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ListAgentDispatchRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ListAgentDispatchRequest; static fromJsonString(jsonString: string, options?: Partial): ListAgentDispatchRequest; static equals(a: ListAgentDispatchRequest | PlainMessage | undefined, b: ListAgentDispatchRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.ListAgentDispatchResponse */ export declare class ListAgentDispatchResponse extends Message { /** * @generated from field: repeated livekit.AgentDispatch agent_dispatches = 1; */ agentDispatches: AgentDispatch[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ListAgentDispatchResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ListAgentDispatchResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ListAgentDispatchResponse; static fromJsonString(jsonString: string, options?: Partial): ListAgentDispatchResponse; static equals(a: ListAgentDispatchResponse | PlainMessage | undefined, b: ListAgentDispatchResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.AgentDispatch */ export declare class AgentDispatch extends Message { /** * @generated from field: string id = 1; */ id: string; /** * @generated from field: string agent_name = 2; */ agentName: string; /** * @generated from field: string room = 3; */ room: string; /** * @generated from field: string metadata = 4; */ metadata: string; /** * @generated from field: livekit.AgentDispatchState state = 5; */ state?: AgentDispatchState; /** * cloud only * * @generated from field: livekit.JobRestartPolicy restart_policy = 6; */ restartPolicy: JobRestartPolicy; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.AgentDispatch"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AgentDispatch; static fromJson(jsonValue: JsonValue, options?: Partial): AgentDispatch; static fromJsonString(jsonString: string, options?: Partial): AgentDispatch; static equals(a: AgentDispatch | PlainMessage | undefined, b: AgentDispatch | PlainMessage | undefined): boolean; } /** * @generated from message livekit.AgentDispatchState */ export declare class AgentDispatchState extends Message { /** * For dispatches of tyoe JT_ROOM, there will be at most 1 job. * For dispatches of type JT_PUBLISHER, there will be 1 per publisher. * * @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); static readonly runtime: typeof proto3; static readonly typeName = "livekit.AgentDispatchState"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AgentDispatchState; static fromJson(jsonValue: JsonValue, options?: Partial): AgentDispatchState; static fromJsonString(jsonString: string, options?: Partial): AgentDispatchState; static equals(a: AgentDispatchState | PlainMessage | undefined, b: AgentDispatchState | PlainMessage | undefined): boolean; }