Skip to content

Commit

Permalink
export agent dispatch protobufs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao committed Oct 21, 2024
1 parent 3b90574 commit 1768b4e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion auth/accesstoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (t *AccessToken) SetRoomConfig(config *livekit.RoomConfiguration) *AccessTo
}

// SetAgents is a shortcut for setting agents in room configuration
func (t *AccessToken) SetAgents(agents []*livekit.RoomAgentDispatch) *AccessToken {
func (t *AccessToken) SetAgents(agents ...*livekit.RoomAgentDispatch) *AccessToken {
if t.grant.RoomConfig == nil {
t.grant.RoomConfig = &RoomConfiguration{}
}
Expand Down
15 changes: 8 additions & 7 deletions packages/javascript/src/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// @ts-check
export * from "./gen/version.js";
export * from "./gen/livekit_room_pb.js";
export { protoInt64 } from "@bufbuild/protobuf";
export * from "./gen/livekit_agent_dispatch_pb.js";
export * from "./gen/livekit_agent_pb.js";
export * from "./gen/livekit_models_pb.js";
export * from "./gen/livekit_rtc_pb.js";
export * from "./gen/livekit_webhook_pb.js";
export * from "./gen/livekit_egress_pb.js";
export * from "./gen/livekit_ingress_pb.js";
export * from "./gen/livekit_sip_pb.js";
export * from "./gen/livekit_metrics_pb.js";
export { protoInt64 } from "@bufbuild/protobuf";
export * from "./gen/livekit_models_pb.js";
export * from "./gen/livekit_room_pb.js";
export * from "./gen/livekit_rtc_pb.js";
export * from "./gen/livekit_sip_pb.js";
export * from "./gen/livekit_webhook_pb.js";
export * from "./gen/version.js";

0 comments on commit 1768b4e

Please sign in to comment.