You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.ts 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { ParticipantFeaturesKey } from '../participants/types';
  2. /**
  3. * The list of supported meeting features to enable/disable through jwt.
  4. */
  5. export const MEET_FEATURES: Record<string, ParticipantFeaturesKey> = {
  6. BRANDING: 'branding',
  7. CALENDAR: 'calendar',
  8. CREATE_POLLS: 'create-polls',
  9. FLIP: 'flip',
  10. INBOUND_CALL: 'inbound-call',
  11. LIVESTREAMING: 'livestreaming',
  12. LOBBY: 'lobby',
  13. MODERATION: 'moderation',
  14. OUTBOUND_CALL: 'outbound-call',
  15. RECORDING: 'recording',
  16. ROOM: 'room',
  17. SCREEN_SHARING: 'screen-sharing',
  18. SEND_GROUPCHAT: 'send-groupchat',
  19. SIP_INBOUND_CALL: 'sip-inbound-call',
  20. SIP_OUTBOUND_CALL: 'sip-outbound-call',
  21. TRANSCRIPTION: 'transcription'
  22. };
  23. /**
  24. * The JWT validation errors for JaaS.
  25. */
  26. export const JWT_VALIDATION_ERRORS = {
  27. AUD_INVALID: 'audInvalid',
  28. CONTEXT_NOT_FOUND: 'contextNotFound',
  29. EXP_INVALID: 'expInvalid',
  30. FEATURE_INVALID: 'featureInvalid',
  31. FEATURE_VALUE_INVALID: 'featureValueInvalid',
  32. FEATURES_NOT_FOUND: 'featuresNotFound',
  33. HEADER_NOT_FOUND: 'headerNotFound',
  34. ISS_INVALID: 'issInvalid',
  35. KID_NOT_FOUND: 'kidNotFound',
  36. KID_MISMATCH: 'kidMismatch',
  37. NBF_FUTURE: 'nbfFuture',
  38. NBF_INVALID: 'nbfInvalid',
  39. PAYLOAD_NOT_FOUND: 'payloadNotFound',
  40. TOKEN_EXPIRED: 'tokenExpired'
  41. };