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.

149 lines
4.9 KiB

  1. # Constants
  2. ## Conversation
  3. ### Conversation types
  4. * `1` "One to one"
  5. * `2` Group
  6. * `3` Public
  7. * `4` Changelog
  8. * `5` Former "One to one" (When a user is deleted from the server or removed from all their conversations, `1` "One to one" rooms are converted to this type)
  9. ### Object types
  10. | Constant | Can be created | Description | Object ID |
  11. |------------------|----------------|------------------------------------------------------------------|---------------------------------------|
  12. | `file` | No | Conversations about a file in the right sidebar of the files app | File ID |
  13. | `share:password` | No | Video verification to verify the identity of the share recipient | Share token |
  14. | `room` | Yes | Room is a breakout room | Token of the main/parent conversation |
  15. ### Read-only states
  16. * `0` Read-write
  17. * `1` Read-only
  18. ### Listable scope
  19. * `0` Participants only
  20. * `1` Regular users only, excluding guest app users
  21. * `2` Everyone
  22. ### Webinar lobby states
  23. * `0` No lobby
  24. * `1` Lobby for non moderators
  25. ### SIP states
  26. * `0` Disabled
  27. * `1` Enabled (Each participant needs a unique PIN)
  28. * `2` Enabled without PIN (Only the conversation token is required)
  29. ### Breakout room modes
  30. * `0` Not configured
  31. * `1` Automatic - Attendees are unsorted and then distributed equaly over the rooms, so they all have the same participant count (+/- 1)
  32. * `2` Manual - A map with attendee to room number specifies the participants
  33. * `3` Free - Each attendee picks their own breakout room
  34. ### Breakout room status
  35. * `0` Stopped (breakout rooms lobbies are enabled)
  36. * `1` Started (breakout rooms lobbies are disabled)
  37. ## Participants
  38. ### Participant types
  39. * `1` Owner
  40. * `2` Moderator
  41. * `3` User
  42. * `4` Guest
  43. * `5` User following a public link
  44. * `6` Guest with moderator permissions
  45. ### Participant in-call flag
  46. * `0` Disconnected
  47. * `1` In-call
  48. * `2` Provides audio
  49. * `4` Provides video
  50. * `8` Uses SIP dial-in
  51. ### Participant notification levels
  52. * `0` Default (`1` for one-to-one conversations, `2` for other conversations)
  53. * `1` Always notify
  54. * `2` Notify on mention
  55. * `3` Never notify
  56. ### Participant call notification levels
  57. * `0` Off
  58. * `1` On (default)
  59. ### Participant read status privacy
  60. * `0` Read status is public
  61. * `1` Read status is private
  62. ### Attendee types
  63. * `users` - Logged-in users
  64. * `groups` - Groups
  65. * `circles` - [Circle from the Circles app](https://github.com/nextcloud/circles)
  66. * `guests` - Guest without a login
  67. * `emails` - A guest invited by email address
  68. ### Attendee permissions
  69. * `0` Default permissions (will pick the one from the next level of: user, call, conversation)
  70. * `1` Custom permissions (this is required to be able to remove all other permissions)
  71. * `2` Start call
  72. * `4` Join call
  73. * `8` Can ignore lobby
  74. * `16` Can publish audio stream
  75. * `32` Can publish video stream
  76. * `64` Can publish screen sharing stream
  77. * `128` Can post chat message, share items and do reactions
  78. ### Attendee permission modifications
  79. * `set` - Setting this permission set.
  80. * `add` - Add the given flags to the permissions.
  81. * `remove` - Remove the given flags from the permissions.
  82. ### Actor types of chat messages
  83. * `users` - Logged-in users
  84. * `guests` - Guest users (attendee type `guests` and `emails`)
  85. * `bots` - Used by commands (actor-id is the used `/command`) and the changelog conversation (actor-id is `changelog`)
  86. * `bridged` - Users whose messages are bridged in by the [Matterbridge integration](matterbridge.md)
  87. ## Call
  88. ### Start call
  89. * `0` - Everyone
  90. * `1` - Participants of the conversation with an account on the instance
  91. * `2` - Moderators
  92. * `3` - No one
  93. ### Call recording status
  94. * `0` - No recording
  95. * `1` - Recording video
  96. * `2` - Recording audio
  97. * `3` - Starting video recording
  98. * `4` - Starting audio recording
  99. * `5` - Recording failed
  100. ## Chat
  101. ### Shared item types
  102. * `audio` - Shared audio file
  103. * `deckcard` - Shared deck card
  104. * `file` - Shared files not falling into any other category
  105. * `location` - Shared geo location
  106. * `media` - Shared files with mimetype starting with image or video
  107. * `other` - Shared objects not falling into any other category
  108. * `voice` - Voice messages
  109. * `recording` - Audio and video recording file of a call
  110. ## Poll
  111. ### Poll status
  112. * `0` - Open: Participants can cast votes
  113. * `1` - Closed: Participants can no longer cast votes and the result is displayed
  114. ### Poll mode
  115. * `0` - Public: Participants can see the result immediately and also who voted for which option
  116. * `1` - Hidden: The result is hidden until the poll is closed and then only the number of votes for each option are displayed
  117. ## Signaling modes
  118. * `internal` - No external signaling server is used
  119. * `external` - A single external signaling server is used
  120. * `conversation_cluster` - An external signaling server is assigned per conversation.