Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ingress creation parameter inline documentation #296

Merged
merged 8 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/mean-stingrays-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-server-sdk": patch
---

Fix ingress creation parameter inline documentation
16 changes: 8 additions & 8 deletions packages/livekit-server-sdk/src/IngressClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ export interface CreateIngressOptions {
*/
name?: string;
/**
* name of the room to send media to. optional
* name of the room to send media to.
*/
roomName?: string;
roomName: string;
/**
* unique identity of the participant. optional
* unique identity of the participant.
*/
participantIdentity?: string;
participantIdentity: string;
/**
* participant display name
*/
Expand Down Expand Up @@ -67,11 +67,11 @@ export interface UpdateIngressOptions {
*/
name: string;
/**
* name of the room to send media to. optional
* name of the room to send media to.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is optional right? on updates.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything is optional in the dictionary in the sense that parameters left out will not be updated. It's odd to single out these 2 parameters. We could flag all parameters as optional, but this seems redundant on a parameter called "UpdateIngressOptions".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it.. makes sense.

*/
roomName?: string;
/**
* unique identity of the participant. optional
* unique identity of the participant.
*/
participantIdentity?: string;
/**
Expand Down Expand Up @@ -148,9 +148,9 @@ export class IngressClient extends ServiceBase {

if (opts !== undefined) {
name = opts.name || '';
roomName = opts.roomName || '';
roomName = opts.roomName;
participantName = opts.participantName || '';
participantIdentity = opts.participantIdentity || '';
participantIdentity = opts.participantIdentity;
bypassTranscoding = opts.bypassTranscoding || false;
enableTranscoding = opts.enableTranscoding;
url = opts.url || '';
Expand Down