Manage Types

Read call types

await client.video.listCallTypes();

//or
await client.video.getCallType({ name: "livestream" });

Create call type

await client.video.createCallType({
  name: "allhands",
  settings: {
    audio: {
      mic_default_on: true,
      default_device: "speaker",
    },
  },
  grants: {
    admin: [
      OwnCapability.SEND_AUDIO,
      OwnCapability.SEND_VIDEO,
      OwnCapability.MUTE_USERS,
    ],
    user: [OwnCapability.SEND_AUDIO, OwnCapability.SEND_VIDEO],
  },
});

Update call type

await client.video.updateCallType({
  name: "allhands",
  settings: {
    audio: {
      mic_default_on: false,
      default_device: "earpiece",
    },
  },
});

Delete call type

await client.video.deleteCallType({ name: "allhands" });