daily-ruby 0.0.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (328) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +13 -12
  4. data/README.md +203 -40
  5. data/daily-ruby.gemspec +4 -4
  6. data/docs/BatchRoomCreateRequest.md +18 -0
  7. data/docs/BatchRoomCreateRequestRoomsInner.md +22 -0
  8. data/docs/BatchRoomDelete200Response.md +18 -0
  9. data/docs/BatchRoomsApi.md +150 -0
  10. data/docs/CreateMeetingToken200Response.md +1 -1
  11. data/docs/CreateMeetingTokenRequest.md +18 -0
  12. data/docs/CreateRoom200Response.md +30 -0
  13. data/docs/{RoomRequest.md → CreateRoomRequest.md} +3 -3
  14. data/docs/DailyLiveStreamingOptions.md +40 -0
  15. data/docs/DailyLiveStreamingOptionsRtmpUrl.md +49 -0
  16. data/docs/DailyStreamingActiveParticipantLayoutConfig.md +18 -0
  17. data/docs/DailyStreamingCustomLayoutConfig.md +24 -0
  18. data/docs/DailyStreamingCustomLayoutConfigCompositionParams.md +15 -0
  19. data/docs/DailyStreamingDefaultLayoutConfig.md +20 -0
  20. data/docs/{ServerErrorResponse.md → DailyStreamingEndpoint.md} +4 -4
  21. data/docs/DailyStreamingLayoutConfig.md +69 -0
  22. data/docs/DailyStreamingOptions.md +36 -0
  23. data/docs/DailyStreamingPortraitLayoutConfig.md +22 -0
  24. data/docs/DailyStreamingPortraitLayoutVariant.md +15 -0
  25. data/docs/DailyStreamingSingleParticipantLayoutConfig.md +20 -0
  26. data/docs/DeleteTranscript200Response.md +30 -0
  27. data/docs/Domain.md +18 -0
  28. data/docs/DomainApi.md +149 -0
  29. data/docs/DomainProperties.md +74 -0
  30. data/docs/Eject200Response.md +18 -0
  31. data/docs/EjectRequest.md +18 -0
  32. data/docs/GetDomainConfig200Response.md +22 -0
  33. data/docs/GetDomainConfig200ResponseConfig.md +54 -0
  34. data/docs/GetDomainConfig200ResponseConfigRecordingsBucket.md +20 -0
  35. data/docs/GetMeetingInfo200Response.md +20 -0
  36. data/docs/GetMeetingInfo200ResponseDataInner.md +28 -0
  37. data/docs/GetMeetingInfo200ResponseDataInnerParticipantsInner.md +26 -0
  38. data/docs/GetPresence200Response.md +18 -0
  39. data/docs/GetPresence200ResponseAIVWWhzHlLHrSdHdw7EWInner.md +28 -0
  40. data/docs/GetRecordingInfo200Response.md +36 -0
  41. data/docs/GetRecordingInfo200ResponseTracksInner.md +22 -0
  42. data/docs/GetRecordingLink200Response.md +20 -0
  43. data/docs/GetTranscriptInfo200Response.md +32 -0
  44. data/docs/GetTranscriptInfo200ResponseOutParams.md +22 -0
  45. data/docs/GetTranscriptLink200Response.md +22 -0
  46. data/docs/ListAPILogs200Response.md +38 -0
  47. data/docs/ListRecordings200Response.md +20 -0
  48. data/docs/ListRecordings200ResponseDataInner.md +30 -0
  49. data/docs/ListRooms200Response.md +20 -0
  50. data/docs/ListRooms200ResponseDataInner.md +30 -0
  51. data/docs/ListRooms200ResponseDataInnerConfig.md +18 -0
  52. data/docs/ListTranscript200Response.md +20 -0
  53. data/docs/ListTranscript200ResponseDataInner.md +28 -0
  54. data/docs/LogsApi.md +177 -0
  55. data/docs/MeetingParticipantsGetRes.md +20 -0
  56. data/docs/MeetingParticipantsGetResDataInner.md +28 -0
  57. data/docs/MeetingTokensApi.md +88 -10
  58. data/docs/MeetingsApi.md +247 -0
  59. data/docs/MeetingsMeetingGetRes.md +28 -0
  60. data/docs/Permissions.md +22 -0
  61. data/docs/{MeetingTokenRequestPropertiesPermissionsCanSend.md → PermissionsCanAdmin.md} +4 -4
  62. data/docs/{MeetingTokenRequestPropertiesPermissionsCanAdmin.md → PermissionsCanSend.md} +4 -4
  63. data/docs/PostWebhook.md +22 -0
  64. data/docs/PresenceApi.md +74 -0
  65. data/docs/Properties.md +60 -0
  66. data/docs/RecordingError.md +24 -0
  67. data/docs/RecordingErrorPayload.md +26 -0
  68. data/docs/RecordingReadyToDownload.md +24 -0
  69. data/docs/RecordingReadyToDownloadPayload.md +34 -0
  70. data/docs/RecordingStarted.md +24 -0
  71. data/docs/RecordingStartedPayload.md +28 -0
  72. data/docs/RecordingStreamingOptions.md +38 -0
  73. data/docs/RecordingsApi.md +303 -0
  74. data/docs/RecordingsBucket.md +26 -0
  75. data/docs/RoomProperties.md +94 -0
  76. data/docs/RoomPropertiesStreamingEndpointsInner.md +28 -0
  77. data/docs/RoomPropertiesStreamingEndpointsInnerHlsConfigVariantsInner.md +26 -0
  78. data/docs/RoomsApi.md +1418 -0
  79. data/docs/RoomsRoomNameGetRes.md +30 -0
  80. data/docs/RoomsRoomNamePresenceGetRes.md +20 -0
  81. data/docs/RoomsRoomNamePresenceGetResDataInner.md +28 -0
  82. data/docs/SendAppMessageRequest.md +20 -0
  83. data/docs/SetRoomConfigRequest.md +20 -0
  84. data/docs/SetSessionDataRequest.md +22 -0
  85. data/docs/StreamingEnded.md +24 -0
  86. data/docs/StreamingEndedPayload.md +22 -0
  87. data/docs/StreamingError.md +24 -0
  88. data/docs/StreamingErrorPayload.md +26 -0
  89. data/docs/StreamingStarted.md +24 -0
  90. data/docs/StreamingStartedPayload.md +24 -0
  91. data/docs/StreamingUpdated.md +24 -0
  92. data/docs/StreamingUpdatedPayload.md +24 -0
  93. data/docs/TranscriptApi.md +305 -0
  94. data/docs/TranscriptionBucket.md +24 -0
  95. data/docs/TranscriptionProperties.md +32 -0
  96. data/docs/TranscriptionPropertiesEndpointing.md +49 -0
  97. data/docs/TranscriptionPropertiesRedact.md +51 -0
  98. data/docs/UpdatePermissionsRequest.md +18 -0
  99. data/docs/UpdatePermissionsRequestDataValue.md +22 -0
  100. data/docs/UpdatePermissionsRequestDataValueCanSend.md +49 -0
  101. data/docs/UpdateWebhook.md +22 -0
  102. data/docs/ValidateMeetingToken200Response.md +28 -0
  103. data/docs/Webhook.md +38 -0
  104. data/docs/WebhooksApi.md +370 -0
  105. data/example.rb +61 -0
  106. data/lib/daily-ruby/api/batch_rooms_api.rb +143 -0
  107. data/lib/daily-ruby/api/domain_api.rb +143 -0
  108. data/lib/daily-ruby/api/logs_api.rb +181 -0
  109. data/lib/daily-ruby/api/meeting_tokens_api.rb +78 -12
  110. data/lib/daily-ruby/api/meetings_api.rb +238 -0
  111. data/lib/daily-ruby/api/presence_api.rb +77 -0
  112. data/lib/daily-ruby/api/recordings_api.rb +280 -0
  113. data/lib/daily-ruby/api/rooms_api.rb +1302 -0
  114. data/lib/daily-ruby/api/transcript_api.rb +283 -0
  115. data/lib/daily-ruby/api/webhooks_api.rb +339 -0
  116. data/lib/daily-ruby/api_client.rb +4 -4
  117. data/lib/daily-ruby/api_error.rb +4 -4
  118. data/lib/daily-ruby/configuration.rb +19 -7
  119. data/lib/daily-ruby/models/{room_deleted_response.rb → batch_room_create_request.rb} +16 -24
  120. data/lib/daily-ruby/models/batch_room_create_request_rooms_inner.rb +232 -0
  121. data/lib/daily-ruby/models/batch_room_delete200_response.rb +214 -0
  122. data/lib/daily-ruby/models/create_meeting_token200_response.rb +4 -4
  123. data/lib/daily-ruby/models/{server_error_response.rb → create_meeting_token_request.rb} +14 -15
  124. data/lib/daily-ruby/models/create_room200_response.rb +270 -0
  125. data/lib/daily-ruby/models/create_room_request.rb +232 -0
  126. data/lib/daily-ruby/models/daily_live_streaming_options.rb +324 -0
  127. data/lib/daily-ruby/models/{meeting_token_request_properties_permissions_can_send.rb → daily_live_streaming_options_rtmp_url.rb} +6 -6
  128. data/lib/daily-ruby/models/{room_request.rb → daily_streaming_active_participant_layout_config.rb} +29 -41
  129. data/lib/daily-ruby/models/daily_streaming_custom_layout_config.rb +293 -0
  130. data/lib/daily-ruby/models/daily_streaming_custom_layout_config_composition_params.rb +105 -0
  131. data/lib/daily-ruby/models/daily_streaming_default_layout_config.rb +264 -0
  132. data/lib/daily-ruby/models/daily_streaming_endpoint.rb +221 -0
  133. data/lib/daily-ruby/models/daily_streaming_layout_config.rb +46 -0
  134. data/lib/daily-ruby/models/daily_streaming_options.rb +304 -0
  135. data/lib/daily-ruby/models/daily_streaming_portrait_layout_config.rb +273 -0
  136. data/lib/daily-ruby/models/daily_streaming_portrait_layout_variant.rb +40 -0
  137. data/lib/daily-ruby/models/daily_streaming_single_participant_layout_config.rb +271 -0
  138. data/lib/daily-ruby/models/delete_transcript200_response.rb +307 -0
  139. data/lib/daily-ruby/models/{meeting_token_request.rb → domain.rb} +8 -9
  140. data/lib/daily-ruby/models/domain_properties.rb +570 -0
  141. data/lib/daily-ruby/models/eject200_response.rb +216 -0
  142. data/lib/daily-ruby/models/eject_request.rb +217 -0
  143. data/lib/daily-ruby/models/get_domain_config200_response.rb +271 -0
  144. data/lib/daily-ruby/models/get_domain_config200_response_config.rb +395 -0
  145. data/lib/daily-ruby/models/get_domain_config200_response_config_recordings_bucket.rb +223 -0
  146. data/lib/daily-ruby/models/get_meeting_info200_response.rb +259 -0
  147. data/lib/daily-ruby/models/get_meeting_info200_response_data_inner.rb +353 -0
  148. data/lib/daily-ruby/models/get_meeting_info200_response_data_inner_participants_inner.rb +290 -0
  149. data/lib/daily-ruby/models/get_presence200_response.rb +243 -0
  150. data/lib/daily-ruby/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner.rb +370 -0
  151. data/lib/daily-ruby/models/get_recording_info200_response.rb +340 -0
  152. data/lib/daily-ruby/models/get_recording_info200_response_tracks_inner.rb +269 -0
  153. data/lib/daily-ruby/models/get_recording_link200_response.rb +225 -0
  154. data/lib/daily-ruby/models/get_transcript_info200_response.rb +317 -0
  155. data/lib/daily-ruby/models/get_transcript_info200_response_out_params.rb +232 -0
  156. data/lib/daily-ruby/models/get_transcript_link200_response.rb +233 -0
  157. data/lib/daily-ruby/models/list_api_logs200_response.rb +315 -0
  158. data/lib/daily-ruby/models/list_recordings200_response.rb +227 -0
  159. data/lib/daily-ruby/models/list_recordings200_response_data_inner.rb +272 -0
  160. data/lib/daily-ruby/models/list_rooms200_response.rb +227 -0
  161. data/lib/daily-ruby/models/list_rooms200_response_data_inner.rb +270 -0
  162. data/lib/daily-ruby/models/list_rooms200_response_data_inner_config.rb +216 -0
  163. data/lib/daily-ruby/models/list_transcript200_response.rb +227 -0
  164. data/lib/daily-ruby/models/list_transcript200_response_data_inner.rb +298 -0
  165. data/lib/daily-ruby/models/meeting_participants_get_res.rb +225 -0
  166. data/lib/daily-ruby/models/meeting_participants_get_res_data_inner.rb +259 -0
  167. data/lib/daily-ruby/models/meetings_meeting_get_res.rb +259 -0
  168. data/lib/daily-ruby/models/permissions.rb +234 -0
  169. data/lib/daily-ruby/models/permissions_can_admin.rb +106 -0
  170. data/lib/daily-ruby/models/permissions_can_send.rb +106 -0
  171. data/lib/daily-ruby/models/post_webhook.rb +259 -0
  172. data/lib/daily-ruby/models/{meeting_token_request_properties.rb → properties.rb} +81 -29
  173. data/lib/daily-ruby/models/recording_error.rb +278 -0
  174. data/lib/daily-ruby/models/recording_error_payload.rb +290 -0
  175. data/lib/daily-ruby/models/recording_ready_to_download.rb +278 -0
  176. data/lib/daily-ruby/models/recording_ready_to_download_payload.rb +344 -0
  177. data/lib/daily-ruby/models/recording_started.rb +278 -0
  178. data/lib/daily-ruby/models/recording_started_payload.rb +299 -0
  179. data/lib/daily-ruby/models/recording_streaming_options.rb +350 -0
  180. data/lib/daily-ruby/models/recordings_bucket.rb +258 -0
  181. data/lib/daily-ruby/models/room_properties.rb +678 -0
  182. data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner.rb +267 -0
  183. data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner.rb +255 -0
  184. data/lib/daily-ruby/models/{room_response.rb → rooms_room_name_get_res.rb} +22 -12
  185. data/lib/daily-ruby/models/rooms_room_name_presence_get_res.rb +225 -0
  186. data/lib/daily-ruby/models/rooms_room_name_presence_get_res_data_inner.rb +259 -0
  187. data/lib/daily-ruby/models/send_app_message_request.rb +227 -0
  188. data/lib/daily-ruby/models/set_room_config_request.rb +223 -0
  189. data/lib/daily-ruby/models/set_session_data_request.rb +273 -0
  190. data/lib/daily-ruby/models/streaming_ended.rb +278 -0
  191. data/lib/daily-ruby/models/streaming_ended_payload.rb +236 -0
  192. data/lib/daily-ruby/models/streaming_error.rb +278 -0
  193. data/lib/daily-ruby/models/streaming_error_payload.rb +256 -0
  194. data/lib/daily-ruby/models/streaming_started.rb +278 -0
  195. data/lib/daily-ruby/models/streaming_started_payload.rb +245 -0
  196. data/lib/daily-ruby/models/streaming_updated.rb +278 -0
  197. data/lib/daily-ruby/models/streaming_updated_payload.rb +245 -0
  198. data/lib/daily-ruby/models/transcription_bucket.rb +246 -0
  199. data/lib/daily-ruby/models/transcription_properties.rb +283 -0
  200. data/lib/daily-ruby/models/transcription_properties_endpointing.rb +106 -0
  201. data/lib/daily-ruby/models/transcription_properties_redact.rb +107 -0
  202. data/lib/daily-ruby/models/{room_not_found_response.rb → update_permissions_request.rb} +16 -24
  203. data/lib/daily-ruby/models/{meeting_token_request_properties_permissions.rb → update_permissions_request_data_value.rb} +13 -12
  204. data/lib/daily-ruby/models/{meeting_token_request_properties_permissions_can_admin.rb → update_permissions_request_data_value_can_send.rb} +5 -5
  205. data/lib/daily-ruby/models/update_webhook.rb +259 -0
  206. data/lib/daily-ruby/models/validate_meeting_token200_response.rb +265 -0
  207. data/lib/daily-ruby/models/webhook.rb +339 -0
  208. data/lib/daily-ruby/version.rb +5 -5
  209. data/lib/daily-ruby.rb +101 -16
  210. data/run.sh +1 -1
  211. data/spec/api/batch_rooms_api_spec.rb +58 -0
  212. data/spec/api/domain_api_spec.rb +58 -0
  213. data/spec/api/logs_api_spec.rb +70 -0
  214. data/spec/api/meeting_tokens_api_spec.rb +20 -7
  215. data/spec/api/meetings_api_spec.rb +81 -0
  216. data/spec/api/presence_api_spec.rb +45 -0
  217. data/spec/api/recordings_api_spec.rb +86 -0
  218. data/spec/api/rooms_api_spec.rb +278 -0
  219. data/spec/api/transcript_api_spec.rb +87 -0
  220. data/spec/api/webhooks_api_spec.rb +95 -0
  221. data/spec/models/batch_room_create_request_rooms_inner_spec.rb +48 -0
  222. data/spec/models/batch_room_create_request_spec.rb +36 -0
  223. data/spec/models/batch_room_delete200_response_spec.rb +36 -0
  224. data/spec/models/create_meeting_token200_response_spec.rb +4 -4
  225. data/spec/models/create_meeting_token_request_spec.rb +36 -0
  226. data/spec/models/create_room200_response_spec.rb +72 -0
  227. data/spec/models/{room_request_spec.rb → create_room_request_spec.rb} +10 -14
  228. data/spec/models/daily_live_streaming_options_rtmp_url_spec.rb +32 -0
  229. data/spec/models/daily_live_streaming_options_spec.rb +102 -0
  230. data/spec/models/daily_streaming_active_participant_layout_config_spec.rb +40 -0
  231. data/spec/models/daily_streaming_custom_layout_config_composition_params_spec.rb +21 -0
  232. data/spec/models/daily_streaming_custom_layout_config_spec.rb +58 -0
  233. data/spec/models/daily_streaming_default_layout_config_spec.rb +46 -0
  234. data/spec/models/daily_streaming_endpoint_spec.rb +36 -0
  235. data/spec/models/daily_streaming_layout_config_spec.rb +38 -0
  236. data/spec/models/daily_streaming_options_spec.rb +90 -0
  237. data/spec/models/daily_streaming_portrait_layout_config_spec.rb +52 -0
  238. data/spec/models/daily_streaming_portrait_layout_variant_spec.rb +30 -0
  239. data/spec/models/daily_streaming_single_participant_layout_config_spec.rb +46 -0
  240. data/spec/models/delete_transcript200_response_spec.rb +76 -0
  241. data/spec/models/{room_request_properties_spec.rb → domain_properties_spec.rb} +39 -49
  242. data/spec/models/domain_spec.rb +36 -0
  243. data/spec/models/eject200_response_spec.rb +36 -0
  244. data/spec/models/eject_request_spec.rb +36 -0
  245. data/spec/models/get_domain_config200_response_config_recordings_bucket_spec.rb +42 -0
  246. data/spec/models/get_domain_config200_response_config_spec.rb +144 -0
  247. data/spec/models/get_domain_config200_response_spec.rb +48 -0
  248. data/spec/models/get_meeting_info200_response_data_inner_participants_inner_spec.rb +60 -0
  249. data/spec/models/get_meeting_info200_response_data_inner_spec.rb +66 -0
  250. data/spec/models/get_meeting_info200_response_spec.rb +42 -0
  251. data/spec/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner_spec.rb +66 -0
  252. data/spec/models/get_presence200_response_spec.rb +36 -0
  253. data/spec/models/get_recording_info200_response_spec.rb +94 -0
  254. data/spec/models/get_recording_info200_response_tracks_inner_spec.rb +52 -0
  255. data/spec/models/get_recording_link200_response_spec.rb +42 -0
  256. data/spec/models/get_transcript_info200_response_out_params_spec.rb +48 -0
  257. data/spec/models/get_transcript_info200_response_spec.rb +82 -0
  258. data/spec/models/get_transcript_link200_response_spec.rb +48 -0
  259. data/spec/models/list_api_logs200_response_spec.rb +96 -0
  260. data/spec/models/list_recordings200_response_data_inner_spec.rb +72 -0
  261. data/spec/models/list_recordings200_response_spec.rb +42 -0
  262. data/spec/models/list_rooms200_response_data_inner_config_spec.rb +36 -0
  263. data/spec/models/list_rooms200_response_data_inner_spec.rb +72 -0
  264. data/spec/models/list_rooms200_response_spec.rb +42 -0
  265. data/spec/models/list_transcript200_response_data_inner_spec.rb +70 -0
  266. data/spec/models/list_transcript200_response_spec.rb +42 -0
  267. data/spec/models/meeting_participants_get_res_data_inner_spec.rb +66 -0
  268. data/spec/models/meeting_participants_get_res_spec.rb +42 -0
  269. data/spec/models/meetings_meeting_get_res_spec.rb +66 -0
  270. data/spec/models/{meeting_token_request_properties_permissions_can_send_spec.rb → permissions_can_admin_spec.rb} +6 -6
  271. data/spec/models/{meeting_token_request_properties_permissions_can_admin_spec.rb → permissions_can_send_spec.rb} +6 -6
  272. data/spec/models/{meeting_token_request_properties_permissions_spec.rb → permissions_spec.rb} +10 -10
  273. data/spec/models/post_webhook_spec.rb +52 -0
  274. data/spec/models/{meeting_token_request_properties_spec.rb → properties_spec.rb} +27 -15
  275. data/spec/models/recording_error_payload_spec.rb +64 -0
  276. data/spec/models/recording_error_spec.rb +58 -0
  277. data/spec/models/recording_ready_to_download_payload_spec.rb +92 -0
  278. data/spec/models/recording_ready_to_download_spec.rb +58 -0
  279. data/spec/models/recording_started_payload_spec.rb +70 -0
  280. data/spec/models/recording_started_spec.rb +58 -0
  281. data/spec/models/recording_streaming_options_spec.rb +100 -0
  282. data/spec/models/recordings_bucket_spec.rb +60 -0
  283. data/spec/models/room_properties_spec.rb +272 -0
  284. data/spec/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner_spec.rb +60 -0
  285. data/spec/models/room_properties_streaming_endpoints_inner_spec.rb +66 -0
  286. data/spec/models/{room_response_spec.rb → rooms_room_name_get_res_spec.rb} +16 -10
  287. data/spec/models/rooms_room_name_presence_get_res_data_inner_spec.rb +66 -0
  288. data/spec/models/rooms_room_name_presence_get_res_spec.rb +42 -0
  289. data/spec/models/send_app_message_request_spec.rb +42 -0
  290. data/spec/models/set_room_config_request_spec.rb +42 -0
  291. data/spec/models/set_session_data_request_spec.rb +52 -0
  292. data/spec/models/streaming_ended_payload_spec.rb +48 -0
  293. data/spec/models/streaming_ended_spec.rb +58 -0
  294. data/spec/models/streaming_error_payload_spec.rb +60 -0
  295. data/spec/models/streaming_error_spec.rb +58 -0
  296. data/spec/models/streaming_started_payload_spec.rb +54 -0
  297. data/spec/models/streaming_started_spec.rb +58 -0
  298. data/spec/models/streaming_updated_payload_spec.rb +54 -0
  299. data/spec/models/streaming_updated_spec.rb +58 -0
  300. data/spec/models/transcription_bucket_spec.rb +54 -0
  301. data/spec/models/transcription_properties_endpointing_spec.rb +32 -0
  302. data/spec/models/transcription_properties_redact_spec.rb +32 -0
  303. data/spec/models/transcription_properties_spec.rb +78 -0
  304. data/spec/models/update_permissions_request_data_value_can_send_spec.rb +32 -0
  305. data/spec/models/update_permissions_request_data_value_spec.rb +48 -0
  306. data/spec/models/update_permissions_request_spec.rb +36 -0
  307. data/spec/models/update_webhook_spec.rb +52 -0
  308. data/spec/models/validate_meeting_token200_response_spec.rb +66 -0
  309. data/spec/models/webhook_spec.rb +100 -0
  310. data/spec/spec_helper.rb +4 -4
  311. metadata +391 -52
  312. data/daily.yaml +0 -422
  313. data/docs/MeetingTokenRequest.md +0 -18
  314. data/docs/MeetingTokenRequestProperties.md +0 -56
  315. data/docs/MeetingTokenRequestPropertiesPermissions.md +0 -22
  316. data/docs/RoomApi.md +0 -227
  317. data/docs/RoomDeletedResponse.md +0 -20
  318. data/docs/RoomNotFoundResponse.md +0 -20
  319. data/docs/RoomRequestProperties.md +0 -76
  320. data/docs/RoomResponse.md +0 -28
  321. data/lib/daily-ruby/api/room_api.rb +0 -218
  322. data/lib/daily-ruby/models/room_request_properties.rb +0 -521
  323. data/script.rb +0 -35
  324. data/spec/api/room_api_spec.rb +0 -74
  325. data/spec/models/meeting_token_request_spec.rb +0 -36
  326. data/spec/models/room_deleted_response_spec.rb +0 -42
  327. data/spec/models/room_not_found_response_spec.rb +0 -42
  328. data/spec/models/server_error_response_spec.rb +0 -36
data/docs/RoomsApi.md ADDED
@@ -0,0 +1,1418 @@
1
+ # Daily::RoomsApi
2
+
3
+ All URIs are relative to *https://api.daily.co/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_room**](RoomsApi.md#create_room) | **POST** /rooms | /rooms |
8
+ | [**delete_room**](RoomsApi.md#delete_room) | **DELETE** /rooms/{room_name} | rooms/:name |
9
+ | [**eject**](RoomsApi.md#eject) | **POST** /rooms/{room_name}/eject | rooms/:name/eject |
10
+ | [**get_room_config**](RoomsApi.md#get_room_config) | **GET** /rooms/{room_name} | rooms/:name |
11
+ | [**get_room_presence**](RoomsApi.md#get_room_presence) | **GET** /rooms/{room_name}/presence | rooms/:name/presence |
12
+ | [**get_session_data**](RoomsApi.md#get_session_data) | **GET** /rooms/{room_name}/get-session-data | rooms/:name/get-session-data |
13
+ | [**list_rooms**](RoomsApi.md#list_rooms) | **GET** /rooms | /rooms |
14
+ | [**room_livestreaming_start**](RoomsApi.md#room_livestreaming_start) | **POST** /rooms/{room_name}/live-streaming/start | rooms/:name/live-streaming/start |
15
+ | [**room_livestreaming_stop**](RoomsApi.md#room_livestreaming_stop) | **POST** /rooms/{room_name}/live-streaming/stop | rooms/:name/live-streaming/stop |
16
+ | [**room_livestreaming_update**](RoomsApi.md#room_livestreaming_update) | **POST** /rooms/{room_name}/live-streaming/update | rooms/:name/live-streaming/update |
17
+ | [**room_recordings_start**](RoomsApi.md#room_recordings_start) | **POST** /rooms/{room_name}/recordings/start | rooms/:name/recordings/start |
18
+ | [**room_recordings_stop**](RoomsApi.md#room_recordings_stop) | **POST** /rooms/{room_name}/recordings/stop | rooms/:name/recordings/stop |
19
+ | [**room_recordings_update**](RoomsApi.md#room_recordings_update) | **POST** /rooms/{room_name}/recordings/update | rooms/:name/recordings/update |
20
+ | [**room_transcription_start**](RoomsApi.md#room_transcription_start) | **POST** /rooms/{room_name}/transcription/start | rooms/:name/transcription/start |
21
+ | [**room_transcription_stop**](RoomsApi.md#room_transcription_stop) | **POST** /rooms/{room_name}/transcription/stop | rooms/:name/transcription/stop |
22
+ | [**send_app_message**](RoomsApi.md#send_app_message) | **POST** /rooms/{room_name}/send-app-message | rooms/:name/send-app-message |
23
+ | [**set_room_config**](RoomsApi.md#set_room_config) | **POST** /rooms/{room_name} | rooms/:name |
24
+ | [**set_session_data**](RoomsApi.md#set_session_data) | **POST** /rooms/{room_name}/set-session-data | rooms/:name/set-session-data |
25
+ | [**update_permissions**](RoomsApi.md#update_permissions) | **POST** /rooms/{room_name}/update-permissions | rooms/:name/update-permissions |
26
+
27
+
28
+ ## create_room
29
+
30
+ > <CreateRoom200Response> create_room(opts)
31
+
32
+ /rooms
33
+
34
+ Create a room
35
+
36
+ ### Examples
37
+
38
+ ```ruby
39
+ require 'time'
40
+ require 'daily-ruby'
41
+ # setup authorization
42
+ Daily.configure do |config|
43
+ # Configure API key authorization: sec0
44
+ config.api_key['sec0'] = 'YOUR API KEY'
45
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
46
+ # config.api_key_prefix['sec0'] = 'Bearer'
47
+ end
48
+
49
+ api_instance = Daily::RoomsApi.new
50
+ opts = {
51
+ create_room_request: Daily::CreateRoomRequest.new # CreateRoomRequest |
52
+ }
53
+
54
+ begin
55
+ # /rooms
56
+ result = api_instance.create_room(opts)
57
+ p result
58
+ rescue Daily::ApiError => e
59
+ puts "Error when calling RoomsApi->create_room: #{e}"
60
+ end
61
+ ```
62
+
63
+ #### Using the create_room_with_http_info variant
64
+
65
+ This returns an Array which contains the response data, status code and headers.
66
+
67
+ > <Array(<CreateRoom200Response>, Integer, Hash)> create_room_with_http_info(opts)
68
+
69
+ ```ruby
70
+ begin
71
+ # /rooms
72
+ data, status_code, headers = api_instance.create_room_with_http_info(opts)
73
+ p status_code # => 2xx
74
+ p headers # => { ... }
75
+ p data # => <CreateRoom200Response>
76
+ rescue Daily::ApiError => e
77
+ puts "Error when calling RoomsApi->create_room_with_http_info: #{e}"
78
+ end
79
+ ```
80
+
81
+ ### Parameters
82
+
83
+ | Name | Type | Description | Notes |
84
+ | ---- | ---- | ----------- | ----- |
85
+ | **create_room_request** | [**CreateRoomRequest**](CreateRoomRequest.md) | | [optional] |
86
+
87
+ ### Return type
88
+
89
+ [**CreateRoom200Response**](CreateRoom200Response.md)
90
+
91
+ ### Authorization
92
+
93
+ [sec0](../README.md#sec0)
94
+
95
+ ### HTTP request headers
96
+
97
+ - **Content-Type**: application/json
98
+ - **Accept**: application/json
99
+
100
+
101
+ ## delete_room
102
+
103
+ > Object delete_room(room_name)
104
+
105
+ rooms/:name
106
+
107
+ Delete a room
108
+
109
+ ### Examples
110
+
111
+ ```ruby
112
+ require 'time'
113
+ require 'daily-ruby'
114
+ # setup authorization
115
+ Daily.configure do |config|
116
+ # Configure API key authorization: sec0
117
+ config.api_key['sec0'] = 'YOUR API KEY'
118
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
119
+ # config.api_key_prefix['sec0'] = 'Bearer'
120
+ end
121
+
122
+ api_instance = Daily::RoomsApi.new
123
+ room_name = 'room_name_example' # String |
124
+
125
+ begin
126
+ # rooms/:name
127
+ result = api_instance.delete_room(room_name)
128
+ p result
129
+ rescue Daily::ApiError => e
130
+ puts "Error when calling RoomsApi->delete_room: #{e}"
131
+ end
132
+ ```
133
+
134
+ #### Using the delete_room_with_http_info variant
135
+
136
+ This returns an Array which contains the response data, status code and headers.
137
+
138
+ > <Array(Object, Integer, Hash)> delete_room_with_http_info(room_name)
139
+
140
+ ```ruby
141
+ begin
142
+ # rooms/:name
143
+ data, status_code, headers = api_instance.delete_room_with_http_info(room_name)
144
+ p status_code # => 2xx
145
+ p headers # => { ... }
146
+ p data # => Object
147
+ rescue Daily::ApiError => e
148
+ puts "Error when calling RoomsApi->delete_room_with_http_info: #{e}"
149
+ end
150
+ ```
151
+
152
+ ### Parameters
153
+
154
+ | Name | Type | Description | Notes |
155
+ | ---- | ---- | ----------- | ----- |
156
+ | **room_name** | **String** | | |
157
+
158
+ ### Return type
159
+
160
+ **Object**
161
+
162
+ ### Authorization
163
+
164
+ [sec0](../README.md#sec0)
165
+
166
+ ### HTTP request headers
167
+
168
+ - **Content-Type**: Not defined
169
+ - **Accept**: application/json
170
+
171
+
172
+ ## eject
173
+
174
+ > <Eject200Response> eject(room_name, opts)
175
+
176
+ rooms/:name/eject
177
+
178
+ Ejects participants from a room
179
+
180
+ ### Examples
181
+
182
+ ```ruby
183
+ require 'time'
184
+ require 'daily-ruby'
185
+ # setup authorization
186
+ Daily.configure do |config|
187
+ # Configure API key authorization: sec0
188
+ config.api_key['sec0'] = 'YOUR API KEY'
189
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
190
+ # config.api_key_prefix['sec0'] = 'Bearer'
191
+ end
192
+
193
+ api_instance = Daily::RoomsApi.new
194
+ room_name = 'room_name_example' # String |
195
+ opts = {
196
+ eject_request: Daily::EjectRequest.new # EjectRequest |
197
+ }
198
+
199
+ begin
200
+ # rooms/:name/eject
201
+ result = api_instance.eject(room_name, opts)
202
+ p result
203
+ rescue Daily::ApiError => e
204
+ puts "Error when calling RoomsApi->eject: #{e}"
205
+ end
206
+ ```
207
+
208
+ #### Using the eject_with_http_info variant
209
+
210
+ This returns an Array which contains the response data, status code and headers.
211
+
212
+ > <Array(<Eject200Response>, Integer, Hash)> eject_with_http_info(room_name, opts)
213
+
214
+ ```ruby
215
+ begin
216
+ # rooms/:name/eject
217
+ data, status_code, headers = api_instance.eject_with_http_info(room_name, opts)
218
+ p status_code # => 2xx
219
+ p headers # => { ... }
220
+ p data # => <Eject200Response>
221
+ rescue Daily::ApiError => e
222
+ puts "Error when calling RoomsApi->eject_with_http_info: #{e}"
223
+ end
224
+ ```
225
+
226
+ ### Parameters
227
+
228
+ | Name | Type | Description | Notes |
229
+ | ---- | ---- | ----------- | ----- |
230
+ | **room_name** | **String** | | |
231
+ | **eject_request** | [**EjectRequest**](EjectRequest.md) | | [optional] |
232
+
233
+ ### Return type
234
+
235
+ [**Eject200Response**](Eject200Response.md)
236
+
237
+ ### Authorization
238
+
239
+ [sec0](../README.md#sec0)
240
+
241
+ ### HTTP request headers
242
+
243
+ - **Content-Type**: application/json
244
+ - **Accept**: application/json
245
+
246
+
247
+ ## get_room_config
248
+
249
+ > <RoomsRoomNameGetRes> get_room_config(room_name)
250
+
251
+ rooms/:name
252
+
253
+ Get info about a room
254
+
255
+ ### Examples
256
+
257
+ ```ruby
258
+ require 'time'
259
+ require 'daily-ruby'
260
+ # setup authorization
261
+ Daily.configure do |config|
262
+ # Configure API key authorization: sec0
263
+ config.api_key['sec0'] = 'YOUR API KEY'
264
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
265
+ # config.api_key_prefix['sec0'] = 'Bearer'
266
+ end
267
+
268
+ api_instance = Daily::RoomsApi.new
269
+ room_name = 'room_name_example' # String |
270
+
271
+ begin
272
+ # rooms/:name
273
+ result = api_instance.get_room_config(room_name)
274
+ p result
275
+ rescue Daily::ApiError => e
276
+ puts "Error when calling RoomsApi->get_room_config: #{e}"
277
+ end
278
+ ```
279
+
280
+ #### Using the get_room_config_with_http_info variant
281
+
282
+ This returns an Array which contains the response data, status code and headers.
283
+
284
+ > <Array(<RoomsRoomNameGetRes>, Integer, Hash)> get_room_config_with_http_info(room_name)
285
+
286
+ ```ruby
287
+ begin
288
+ # rooms/:name
289
+ data, status_code, headers = api_instance.get_room_config_with_http_info(room_name)
290
+ p status_code # => 2xx
291
+ p headers # => { ... }
292
+ p data # => <RoomsRoomNameGetRes>
293
+ rescue Daily::ApiError => e
294
+ puts "Error when calling RoomsApi->get_room_config_with_http_info: #{e}"
295
+ end
296
+ ```
297
+
298
+ ### Parameters
299
+
300
+ | Name | Type | Description | Notes |
301
+ | ---- | ---- | ----------- | ----- |
302
+ | **room_name** | **String** | | |
303
+
304
+ ### Return type
305
+
306
+ [**RoomsRoomNameGetRes**](RoomsRoomNameGetRes.md)
307
+
308
+ ### Authorization
309
+
310
+ [sec0](../README.md#sec0)
311
+
312
+ ### HTTP request headers
313
+
314
+ - **Content-Type**: Not defined
315
+ - **Accept**: application/json
316
+
317
+
318
+ ## get_room_presence
319
+
320
+ > <RoomsRoomNamePresenceGetRes> get_room_presence(room_name, opts)
321
+
322
+ rooms/:name/presence
323
+
324
+ Get a presence snapshot for a room
325
+
326
+ ### Examples
327
+
328
+ ```ruby
329
+ require 'time'
330
+ require 'daily-ruby'
331
+ # setup authorization
332
+ Daily.configure do |config|
333
+ # Configure API key authorization: sec0
334
+ config.api_key['sec0'] = 'YOUR API KEY'
335
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
336
+ # config.api_key_prefix['sec0'] = 'Bearer'
337
+ end
338
+
339
+ api_instance = Daily::RoomsApi.new
340
+ room_name = 'room_name_example' # String | The name of the room
341
+ opts = {
342
+ limit: 56, # Integer | Sets the number of participants returned.
343
+ user_id: 'user_id_example', # String | Returns presence for the user with the given userId, if available. The userId is specified via a [meeting token](/reference/rest-api/meeting-tokens/config#user_id).
344
+ user_name: 'user_name_example' # String | Returns presence for the user with the given name, if available.
345
+ }
346
+
347
+ begin
348
+ # rooms/:name/presence
349
+ result = api_instance.get_room_presence(room_name, opts)
350
+ p result
351
+ rescue Daily::ApiError => e
352
+ puts "Error when calling RoomsApi->get_room_presence: #{e}"
353
+ end
354
+ ```
355
+
356
+ #### Using the get_room_presence_with_http_info variant
357
+
358
+ This returns an Array which contains the response data, status code and headers.
359
+
360
+ > <Array(<RoomsRoomNamePresenceGetRes>, Integer, Hash)> get_room_presence_with_http_info(room_name, opts)
361
+
362
+ ```ruby
363
+ begin
364
+ # rooms/:name/presence
365
+ data, status_code, headers = api_instance.get_room_presence_with_http_info(room_name, opts)
366
+ p status_code # => 2xx
367
+ p headers # => { ... }
368
+ p data # => <RoomsRoomNamePresenceGetRes>
369
+ rescue Daily::ApiError => e
370
+ puts "Error when calling RoomsApi->get_room_presence_with_http_info: #{e}"
371
+ end
372
+ ```
373
+
374
+ ### Parameters
375
+
376
+ | Name | Type | Description | Notes |
377
+ | ---- | ---- | ----------- | ----- |
378
+ | **room_name** | **String** | The name of the room | |
379
+ | **limit** | **Integer** | Sets the number of participants returned. | [optional] |
380
+ | **user_id** | **String** | Returns presence for the user with the given userId, if available. The userId is specified via a [meeting token](/reference/rest-api/meeting-tokens/config#user_id). | [optional] |
381
+ | **user_name** | **String** | Returns presence for the user with the given name, if available. | [optional] |
382
+
383
+ ### Return type
384
+
385
+ [**RoomsRoomNamePresenceGetRes**](RoomsRoomNamePresenceGetRes.md)
386
+
387
+ ### Authorization
388
+
389
+ [sec0](../README.md#sec0)
390
+
391
+ ### HTTP request headers
392
+
393
+ - **Content-Type**: Not defined
394
+ - **Accept**: application/json
395
+
396
+
397
+ ## get_session_data
398
+
399
+ > get_session_data(room_name)
400
+
401
+ rooms/:name/get-session-data
402
+
403
+ Gets meeting session data
404
+
405
+ ### Examples
406
+
407
+ ```ruby
408
+ require 'time'
409
+ require 'daily-ruby'
410
+ # setup authorization
411
+ Daily.configure do |config|
412
+ # Configure API key authorization: sec0
413
+ config.api_key['sec0'] = 'YOUR API KEY'
414
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
415
+ # config.api_key_prefix['sec0'] = 'Bearer'
416
+ end
417
+
418
+ api_instance = Daily::RoomsApi.new
419
+ room_name = 'room_name_example' # String |
420
+
421
+ begin
422
+ # rooms/:name/get-session-data
423
+ api_instance.get_session_data(room_name)
424
+ rescue Daily::ApiError => e
425
+ puts "Error when calling RoomsApi->get_session_data: #{e}"
426
+ end
427
+ ```
428
+
429
+ #### Using the get_session_data_with_http_info variant
430
+
431
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
432
+
433
+ > <Array(nil, Integer, Hash)> get_session_data_with_http_info(room_name)
434
+
435
+ ```ruby
436
+ begin
437
+ # rooms/:name/get-session-data
438
+ data, status_code, headers = api_instance.get_session_data_with_http_info(room_name)
439
+ p status_code # => 2xx
440
+ p headers # => { ... }
441
+ p data # => nil
442
+ rescue Daily::ApiError => e
443
+ puts "Error when calling RoomsApi->get_session_data_with_http_info: #{e}"
444
+ end
445
+ ```
446
+
447
+ ### Parameters
448
+
449
+ | Name | Type | Description | Notes |
450
+ | ---- | ---- | ----------- | ----- |
451
+ | **room_name** | **String** | | |
452
+
453
+ ### Return type
454
+
455
+ nil (empty response body)
456
+
457
+ ### Authorization
458
+
459
+ [sec0](../README.md#sec0)
460
+
461
+ ### HTTP request headers
462
+
463
+ - **Content-Type**: Not defined
464
+ - **Accept**: application/json
465
+
466
+
467
+ ## list_rooms
468
+
469
+ > <ListRooms200Response> list_rooms(opts)
470
+
471
+ /rooms
472
+
473
+ List rooms
474
+
475
+ ### Examples
476
+
477
+ ```ruby
478
+ require 'time'
479
+ require 'daily-ruby'
480
+ # setup authorization
481
+ Daily.configure do |config|
482
+ # Configure API key authorization: sec0
483
+ config.api_key['sec0'] = 'YOUR API KEY'
484
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
485
+ # config.api_key_prefix['sec0'] = 'Bearer'
486
+ end
487
+
488
+ api_instance = Daily::RoomsApi.new
489
+ opts = {
490
+ limit: 56, # Integer | Sets the number of rooms listed
491
+ ending_before: 'ending_before_example', # String | Returns room objects created before a provided room id
492
+ starting_after: 'starting_after_example' # String | Returns room objects created after a provided room id
493
+ }
494
+
495
+ begin
496
+ # /rooms
497
+ result = api_instance.list_rooms(opts)
498
+ p result
499
+ rescue Daily::ApiError => e
500
+ puts "Error when calling RoomsApi->list_rooms: #{e}"
501
+ end
502
+ ```
503
+
504
+ #### Using the list_rooms_with_http_info variant
505
+
506
+ This returns an Array which contains the response data, status code and headers.
507
+
508
+ > <Array(<ListRooms200Response>, Integer, Hash)> list_rooms_with_http_info(opts)
509
+
510
+ ```ruby
511
+ begin
512
+ # /rooms
513
+ data, status_code, headers = api_instance.list_rooms_with_http_info(opts)
514
+ p status_code # => 2xx
515
+ p headers # => { ... }
516
+ p data # => <ListRooms200Response>
517
+ rescue Daily::ApiError => e
518
+ puts "Error when calling RoomsApi->list_rooms_with_http_info: #{e}"
519
+ end
520
+ ```
521
+
522
+ ### Parameters
523
+
524
+ | Name | Type | Description | Notes |
525
+ | ---- | ---- | ----------- | ----- |
526
+ | **limit** | **Integer** | Sets the number of rooms listed | [optional] |
527
+ | **ending_before** | **String** | Returns room objects created before a provided room id | [optional] |
528
+ | **starting_after** | **String** | Returns room objects created after a provided room id | [optional] |
529
+
530
+ ### Return type
531
+
532
+ [**ListRooms200Response**](ListRooms200Response.md)
533
+
534
+ ### Authorization
535
+
536
+ [sec0](../README.md#sec0)
537
+
538
+ ### HTTP request headers
539
+
540
+ - **Content-Type**: Not defined
541
+ - **Accept**: application/json
542
+
543
+
544
+ ## room_livestreaming_start
545
+
546
+ > room_livestreaming_start(room_name, opts)
547
+
548
+ rooms/:name/live-streaming/start
549
+
550
+ Start a live stream in a room
551
+
552
+ ### Examples
553
+
554
+ ```ruby
555
+ require 'time'
556
+ require 'daily-ruby'
557
+ # setup authorization
558
+ Daily.configure do |config|
559
+ # Configure API key authorization: sec0
560
+ config.api_key['sec0'] = 'YOUR API KEY'
561
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
562
+ # config.api_key_prefix['sec0'] = 'Bearer'
563
+ end
564
+
565
+ api_instance = Daily::RoomsApi.new
566
+ room_name = 'room_name_example' # String |
567
+ opts = {
568
+ daily_live_streaming_options: Daily::DailyLiveStreamingOptions.new # DailyLiveStreamingOptions |
569
+ }
570
+
571
+ begin
572
+ # rooms/:name/live-streaming/start
573
+ api_instance.room_livestreaming_start(room_name, opts)
574
+ rescue Daily::ApiError => e
575
+ puts "Error when calling RoomsApi->room_livestreaming_start: #{e}"
576
+ end
577
+ ```
578
+
579
+ #### Using the room_livestreaming_start_with_http_info variant
580
+
581
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
582
+
583
+ > <Array(nil, Integer, Hash)> room_livestreaming_start_with_http_info(room_name, opts)
584
+
585
+ ```ruby
586
+ begin
587
+ # rooms/:name/live-streaming/start
588
+ data, status_code, headers = api_instance.room_livestreaming_start_with_http_info(room_name, opts)
589
+ p status_code # => 2xx
590
+ p headers # => { ... }
591
+ p data # => nil
592
+ rescue Daily::ApiError => e
593
+ puts "Error when calling RoomsApi->room_livestreaming_start_with_http_info: #{e}"
594
+ end
595
+ ```
596
+
597
+ ### Parameters
598
+
599
+ | Name | Type | Description | Notes |
600
+ | ---- | ---- | ----------- | ----- |
601
+ | **room_name** | **String** | | |
602
+ | **daily_live_streaming_options** | [**DailyLiveStreamingOptions**](DailyLiveStreamingOptions.md) | | [optional] |
603
+
604
+ ### Return type
605
+
606
+ nil (empty response body)
607
+
608
+ ### Authorization
609
+
610
+ [sec0](../README.md#sec0)
611
+
612
+ ### HTTP request headers
613
+
614
+ - **Content-Type**: application/json
615
+ - **Accept**: application/json
616
+
617
+
618
+ ## room_livestreaming_stop
619
+
620
+ > room_livestreaming_stop(room_name)
621
+
622
+ rooms/:name/live-streaming/stop
623
+
624
+ Stop a live stream in a room
625
+
626
+ ### Examples
627
+
628
+ ```ruby
629
+ require 'time'
630
+ require 'daily-ruby'
631
+ # setup authorization
632
+ Daily.configure do |config|
633
+ # Configure API key authorization: sec0
634
+ config.api_key['sec0'] = 'YOUR API KEY'
635
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
636
+ # config.api_key_prefix['sec0'] = 'Bearer'
637
+ end
638
+
639
+ api_instance = Daily::RoomsApi.new
640
+ room_name = 'room_name_example' # String |
641
+
642
+ begin
643
+ # rooms/:name/live-streaming/stop
644
+ api_instance.room_livestreaming_stop(room_name)
645
+ rescue Daily::ApiError => e
646
+ puts "Error when calling RoomsApi->room_livestreaming_stop: #{e}"
647
+ end
648
+ ```
649
+
650
+ #### Using the room_livestreaming_stop_with_http_info variant
651
+
652
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
653
+
654
+ > <Array(nil, Integer, Hash)> room_livestreaming_stop_with_http_info(room_name)
655
+
656
+ ```ruby
657
+ begin
658
+ # rooms/:name/live-streaming/stop
659
+ data, status_code, headers = api_instance.room_livestreaming_stop_with_http_info(room_name)
660
+ p status_code # => 2xx
661
+ p headers # => { ... }
662
+ p data # => nil
663
+ rescue Daily::ApiError => e
664
+ puts "Error when calling RoomsApi->room_livestreaming_stop_with_http_info: #{e}"
665
+ end
666
+ ```
667
+
668
+ ### Parameters
669
+
670
+ | Name | Type | Description | Notes |
671
+ | ---- | ---- | ----------- | ----- |
672
+ | **room_name** | **String** | | |
673
+
674
+ ### Return type
675
+
676
+ nil (empty response body)
677
+
678
+ ### Authorization
679
+
680
+ [sec0](../README.md#sec0)
681
+
682
+ ### HTTP request headers
683
+
684
+ - **Content-Type**: Not defined
685
+ - **Accept**: application/json
686
+
687
+
688
+ ## room_livestreaming_update
689
+
690
+ > room_livestreaming_update(room_name, opts)
691
+
692
+ rooms/:name/live-streaming/update
693
+
694
+ Update a live stream in a room
695
+
696
+ ### Examples
697
+
698
+ ```ruby
699
+ require 'time'
700
+ require 'daily-ruby'
701
+ # setup authorization
702
+ Daily.configure do |config|
703
+ # Configure API key authorization: sec0
704
+ config.api_key['sec0'] = 'YOUR API KEY'
705
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
706
+ # config.api_key_prefix['sec0'] = 'Bearer'
707
+ end
708
+
709
+ api_instance = Daily::RoomsApi.new
710
+ room_name = 'room_name_example' # String |
711
+ opts = {
712
+ daily_live_streaming_options: Daily::DailyLiveStreamingOptions.new # DailyLiveStreamingOptions |
713
+ }
714
+
715
+ begin
716
+ # rooms/:name/live-streaming/update
717
+ api_instance.room_livestreaming_update(room_name, opts)
718
+ rescue Daily::ApiError => e
719
+ puts "Error when calling RoomsApi->room_livestreaming_update: #{e}"
720
+ end
721
+ ```
722
+
723
+ #### Using the room_livestreaming_update_with_http_info variant
724
+
725
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
726
+
727
+ > <Array(nil, Integer, Hash)> room_livestreaming_update_with_http_info(room_name, opts)
728
+
729
+ ```ruby
730
+ begin
731
+ # rooms/:name/live-streaming/update
732
+ data, status_code, headers = api_instance.room_livestreaming_update_with_http_info(room_name, opts)
733
+ p status_code # => 2xx
734
+ p headers # => { ... }
735
+ p data # => nil
736
+ rescue Daily::ApiError => e
737
+ puts "Error when calling RoomsApi->room_livestreaming_update_with_http_info: #{e}"
738
+ end
739
+ ```
740
+
741
+ ### Parameters
742
+
743
+ | Name | Type | Description | Notes |
744
+ | ---- | ---- | ----------- | ----- |
745
+ | **room_name** | **String** | | |
746
+ | **daily_live_streaming_options** | [**DailyLiveStreamingOptions**](DailyLiveStreamingOptions.md) | | [optional] |
747
+
748
+ ### Return type
749
+
750
+ nil (empty response body)
751
+
752
+ ### Authorization
753
+
754
+ [sec0](../README.md#sec0)
755
+
756
+ ### HTTP request headers
757
+
758
+ - **Content-Type**: application/json
759
+ - **Accept**: application/json
760
+
761
+
762
+ ## room_recordings_start
763
+
764
+ > room_recordings_start(room_name, opts)
765
+
766
+ rooms/:name/recordings/start
767
+
768
+ Start a recording in a room
769
+
770
+ ### Examples
771
+
772
+ ```ruby
773
+ require 'time'
774
+ require 'daily-ruby'
775
+ # setup authorization
776
+ Daily.configure do |config|
777
+ # Configure API key authorization: sec0
778
+ config.api_key['sec0'] = 'YOUR API KEY'
779
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
780
+ # config.api_key_prefix['sec0'] = 'Bearer'
781
+ end
782
+
783
+ api_instance = Daily::RoomsApi.new
784
+ room_name = 'room_name_example' # String |
785
+ opts = {
786
+ recording_streaming_options: Daily::RecordingStreamingOptions.new # RecordingStreamingOptions |
787
+ }
788
+
789
+ begin
790
+ # rooms/:name/recordings/start
791
+ api_instance.room_recordings_start(room_name, opts)
792
+ rescue Daily::ApiError => e
793
+ puts "Error when calling RoomsApi->room_recordings_start: #{e}"
794
+ end
795
+ ```
796
+
797
+ #### Using the room_recordings_start_with_http_info variant
798
+
799
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
800
+
801
+ > <Array(nil, Integer, Hash)> room_recordings_start_with_http_info(room_name, opts)
802
+
803
+ ```ruby
804
+ begin
805
+ # rooms/:name/recordings/start
806
+ data, status_code, headers = api_instance.room_recordings_start_with_http_info(room_name, opts)
807
+ p status_code # => 2xx
808
+ p headers # => { ... }
809
+ p data # => nil
810
+ rescue Daily::ApiError => e
811
+ puts "Error when calling RoomsApi->room_recordings_start_with_http_info: #{e}"
812
+ end
813
+ ```
814
+
815
+ ### Parameters
816
+
817
+ | Name | Type | Description | Notes |
818
+ | ---- | ---- | ----------- | ----- |
819
+ | **room_name** | **String** | | |
820
+ | **recording_streaming_options** | [**RecordingStreamingOptions**](RecordingStreamingOptions.md) | | [optional] |
821
+
822
+ ### Return type
823
+
824
+ nil (empty response body)
825
+
826
+ ### Authorization
827
+
828
+ [sec0](../README.md#sec0)
829
+
830
+ ### HTTP request headers
831
+
832
+ - **Content-Type**: application/json
833
+ - **Accept**: application/json
834
+
835
+
836
+ ## room_recordings_stop
837
+
838
+ > room_recordings_stop(room_name)
839
+
840
+ rooms/:name/recordings/stop
841
+
842
+ Stop a recording in a room
843
+
844
+ ### Examples
845
+
846
+ ```ruby
847
+ require 'time'
848
+ require 'daily-ruby'
849
+ # setup authorization
850
+ Daily.configure do |config|
851
+ # Configure API key authorization: sec0
852
+ config.api_key['sec0'] = 'YOUR API KEY'
853
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
854
+ # config.api_key_prefix['sec0'] = 'Bearer'
855
+ end
856
+
857
+ api_instance = Daily::RoomsApi.new
858
+ room_name = 'room_name_example' # String |
859
+
860
+ begin
861
+ # rooms/:name/recordings/stop
862
+ api_instance.room_recordings_stop(room_name)
863
+ rescue Daily::ApiError => e
864
+ puts "Error when calling RoomsApi->room_recordings_stop: #{e}"
865
+ end
866
+ ```
867
+
868
+ #### Using the room_recordings_stop_with_http_info variant
869
+
870
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
871
+
872
+ > <Array(nil, Integer, Hash)> room_recordings_stop_with_http_info(room_name)
873
+
874
+ ```ruby
875
+ begin
876
+ # rooms/:name/recordings/stop
877
+ data, status_code, headers = api_instance.room_recordings_stop_with_http_info(room_name)
878
+ p status_code # => 2xx
879
+ p headers # => { ... }
880
+ p data # => nil
881
+ rescue Daily::ApiError => e
882
+ puts "Error when calling RoomsApi->room_recordings_stop_with_http_info: #{e}"
883
+ end
884
+ ```
885
+
886
+ ### Parameters
887
+
888
+ | Name | Type | Description | Notes |
889
+ | ---- | ---- | ----------- | ----- |
890
+ | **room_name** | **String** | | |
891
+
892
+ ### Return type
893
+
894
+ nil (empty response body)
895
+
896
+ ### Authorization
897
+
898
+ [sec0](../README.md#sec0)
899
+
900
+ ### HTTP request headers
901
+
902
+ - **Content-Type**: Not defined
903
+ - **Accept**: application/json
904
+
905
+
906
+ ## room_recordings_update
907
+
908
+ > room_recordings_update(room_name, opts)
909
+
910
+ rooms/:name/recordings/update
911
+
912
+ Update a recording in a room
913
+
914
+ ### Examples
915
+
916
+ ```ruby
917
+ require 'time'
918
+ require 'daily-ruby'
919
+ # setup authorization
920
+ Daily.configure do |config|
921
+ # Configure API key authorization: sec0
922
+ config.api_key['sec0'] = 'YOUR API KEY'
923
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
924
+ # config.api_key_prefix['sec0'] = 'Bearer'
925
+ end
926
+
927
+ api_instance = Daily::RoomsApi.new
928
+ room_name = 'room_name_example' # String |
929
+ opts = {
930
+ daily_streaming_options: Daily::DailyStreamingOptions.new # DailyStreamingOptions |
931
+ }
932
+
933
+ begin
934
+ # rooms/:name/recordings/update
935
+ api_instance.room_recordings_update(room_name, opts)
936
+ rescue Daily::ApiError => e
937
+ puts "Error when calling RoomsApi->room_recordings_update: #{e}"
938
+ end
939
+ ```
940
+
941
+ #### Using the room_recordings_update_with_http_info variant
942
+
943
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
944
+
945
+ > <Array(nil, Integer, Hash)> room_recordings_update_with_http_info(room_name, opts)
946
+
947
+ ```ruby
948
+ begin
949
+ # rooms/:name/recordings/update
950
+ data, status_code, headers = api_instance.room_recordings_update_with_http_info(room_name, opts)
951
+ p status_code # => 2xx
952
+ p headers # => { ... }
953
+ p data # => nil
954
+ rescue Daily::ApiError => e
955
+ puts "Error when calling RoomsApi->room_recordings_update_with_http_info: #{e}"
956
+ end
957
+ ```
958
+
959
+ ### Parameters
960
+
961
+ | Name | Type | Description | Notes |
962
+ | ---- | ---- | ----------- | ----- |
963
+ | **room_name** | **String** | | |
964
+ | **daily_streaming_options** | [**DailyStreamingOptions**](DailyStreamingOptions.md) | | [optional] |
965
+
966
+ ### Return type
967
+
968
+ nil (empty response body)
969
+
970
+ ### Authorization
971
+
972
+ [sec0](../README.md#sec0)
973
+
974
+ ### HTTP request headers
975
+
976
+ - **Content-Type**: application/json
977
+ - **Accept**: application/json
978
+
979
+
980
+ ## room_transcription_start
981
+
982
+ > room_transcription_start(room_name, opts)
983
+
984
+ rooms/:name/transcription/start
985
+
986
+ Start a transcription in a room
987
+
988
+ ### Examples
989
+
990
+ ```ruby
991
+ require 'time'
992
+ require 'daily-ruby'
993
+ # setup authorization
994
+ Daily.configure do |config|
995
+ # Configure API key authorization: sec0
996
+ config.api_key['sec0'] = 'YOUR API KEY'
997
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
998
+ # config.api_key_prefix['sec0'] = 'Bearer'
999
+ end
1000
+
1001
+ api_instance = Daily::RoomsApi.new
1002
+ room_name = 'room_name_example' # String |
1003
+ opts = {
1004
+ transcription_properties: Daily::TranscriptionProperties.new # TranscriptionProperties |
1005
+ }
1006
+
1007
+ begin
1008
+ # rooms/:name/transcription/start
1009
+ api_instance.room_transcription_start(room_name, opts)
1010
+ rescue Daily::ApiError => e
1011
+ puts "Error when calling RoomsApi->room_transcription_start: #{e}"
1012
+ end
1013
+ ```
1014
+
1015
+ #### Using the room_transcription_start_with_http_info variant
1016
+
1017
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1018
+
1019
+ > <Array(nil, Integer, Hash)> room_transcription_start_with_http_info(room_name, opts)
1020
+
1021
+ ```ruby
1022
+ begin
1023
+ # rooms/:name/transcription/start
1024
+ data, status_code, headers = api_instance.room_transcription_start_with_http_info(room_name, opts)
1025
+ p status_code # => 2xx
1026
+ p headers # => { ... }
1027
+ p data # => nil
1028
+ rescue Daily::ApiError => e
1029
+ puts "Error when calling RoomsApi->room_transcription_start_with_http_info: #{e}"
1030
+ end
1031
+ ```
1032
+
1033
+ ### Parameters
1034
+
1035
+ | Name | Type | Description | Notes |
1036
+ | ---- | ---- | ----------- | ----- |
1037
+ | **room_name** | **String** | | |
1038
+ | **transcription_properties** | [**TranscriptionProperties**](TranscriptionProperties.md) | | [optional] |
1039
+
1040
+ ### Return type
1041
+
1042
+ nil (empty response body)
1043
+
1044
+ ### Authorization
1045
+
1046
+ [sec0](../README.md#sec0)
1047
+
1048
+ ### HTTP request headers
1049
+
1050
+ - **Content-Type**: application/json
1051
+ - **Accept**: application/json
1052
+
1053
+
1054
+ ## room_transcription_stop
1055
+
1056
+ > room_transcription_stop(room_name)
1057
+
1058
+ rooms/:name/transcription/stop
1059
+
1060
+ Stop a transcription in a room
1061
+
1062
+ ### Examples
1063
+
1064
+ ```ruby
1065
+ require 'time'
1066
+ require 'daily-ruby'
1067
+ # setup authorization
1068
+ Daily.configure do |config|
1069
+ # Configure API key authorization: sec0
1070
+ config.api_key['sec0'] = 'YOUR API KEY'
1071
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1072
+ # config.api_key_prefix['sec0'] = 'Bearer'
1073
+ end
1074
+
1075
+ api_instance = Daily::RoomsApi.new
1076
+ room_name = 'room_name_example' # String |
1077
+
1078
+ begin
1079
+ # rooms/:name/transcription/stop
1080
+ api_instance.room_transcription_stop(room_name)
1081
+ rescue Daily::ApiError => e
1082
+ puts "Error when calling RoomsApi->room_transcription_stop: #{e}"
1083
+ end
1084
+ ```
1085
+
1086
+ #### Using the room_transcription_stop_with_http_info variant
1087
+
1088
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1089
+
1090
+ > <Array(nil, Integer, Hash)> room_transcription_stop_with_http_info(room_name)
1091
+
1092
+ ```ruby
1093
+ begin
1094
+ # rooms/:name/transcription/stop
1095
+ data, status_code, headers = api_instance.room_transcription_stop_with_http_info(room_name)
1096
+ p status_code # => 2xx
1097
+ p headers # => { ... }
1098
+ p data # => nil
1099
+ rescue Daily::ApiError => e
1100
+ puts "Error when calling RoomsApi->room_transcription_stop_with_http_info: #{e}"
1101
+ end
1102
+ ```
1103
+
1104
+ ### Parameters
1105
+
1106
+ | Name | Type | Description | Notes |
1107
+ | ---- | ---- | ----------- | ----- |
1108
+ | **room_name** | **String** | | |
1109
+
1110
+ ### Return type
1111
+
1112
+ nil (empty response body)
1113
+
1114
+ ### Authorization
1115
+
1116
+ [sec0](../README.md#sec0)
1117
+
1118
+ ### HTTP request headers
1119
+
1120
+ - **Content-Type**: Not defined
1121
+ - **Accept**: application/json
1122
+
1123
+
1124
+ ## send_app_message
1125
+
1126
+ > send_app_message(room_name, opts)
1127
+
1128
+ rooms/:name/send-app-message
1129
+
1130
+ Send a message to participants in a room
1131
+
1132
+ ### Examples
1133
+
1134
+ ```ruby
1135
+ require 'time'
1136
+ require 'daily-ruby'
1137
+ # setup authorization
1138
+ Daily.configure do |config|
1139
+ # Configure API key authorization: sec0
1140
+ config.api_key['sec0'] = 'YOUR API KEY'
1141
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1142
+ # config.api_key_prefix['sec0'] = 'Bearer'
1143
+ end
1144
+
1145
+ api_instance = Daily::RoomsApi.new
1146
+ room_name = 'room_name_example' # String |
1147
+ opts = {
1148
+ send_app_message_request: Daily::SendAppMessageRequest.new # SendAppMessageRequest |
1149
+ }
1150
+
1151
+ begin
1152
+ # rooms/:name/send-app-message
1153
+ api_instance.send_app_message(room_name, opts)
1154
+ rescue Daily::ApiError => e
1155
+ puts "Error when calling RoomsApi->send_app_message: #{e}"
1156
+ end
1157
+ ```
1158
+
1159
+ #### Using the send_app_message_with_http_info variant
1160
+
1161
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1162
+
1163
+ > <Array(nil, Integer, Hash)> send_app_message_with_http_info(room_name, opts)
1164
+
1165
+ ```ruby
1166
+ begin
1167
+ # rooms/:name/send-app-message
1168
+ data, status_code, headers = api_instance.send_app_message_with_http_info(room_name, opts)
1169
+ p status_code # => 2xx
1170
+ p headers # => { ... }
1171
+ p data # => nil
1172
+ rescue Daily::ApiError => e
1173
+ puts "Error when calling RoomsApi->send_app_message_with_http_info: #{e}"
1174
+ end
1175
+ ```
1176
+
1177
+ ### Parameters
1178
+
1179
+ | Name | Type | Description | Notes |
1180
+ | ---- | ---- | ----------- | ----- |
1181
+ | **room_name** | **String** | | |
1182
+ | **send_app_message_request** | [**SendAppMessageRequest**](SendAppMessageRequest.md) | | [optional] |
1183
+
1184
+ ### Return type
1185
+
1186
+ nil (empty response body)
1187
+
1188
+ ### Authorization
1189
+
1190
+ [sec0](../README.md#sec0)
1191
+
1192
+ ### HTTP request headers
1193
+
1194
+ - **Content-Type**: application/json
1195
+ - **Accept**: application/json
1196
+
1197
+
1198
+ ## set_room_config
1199
+
1200
+ > set_room_config(room_name, opts)
1201
+
1202
+ rooms/:name
1203
+
1204
+ Set a room's privacy and config properties
1205
+
1206
+ ### Examples
1207
+
1208
+ ```ruby
1209
+ require 'time'
1210
+ require 'daily-ruby'
1211
+ # setup authorization
1212
+ Daily.configure do |config|
1213
+ # Configure API key authorization: sec0
1214
+ config.api_key['sec0'] = 'YOUR API KEY'
1215
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1216
+ # config.api_key_prefix['sec0'] = 'Bearer'
1217
+ end
1218
+
1219
+ api_instance = Daily::RoomsApi.new
1220
+ room_name = 'room_name_example' # String |
1221
+ opts = {
1222
+ set_room_config_request: Daily::SetRoomConfigRequest.new # SetRoomConfigRequest |
1223
+ }
1224
+
1225
+ begin
1226
+ # rooms/:name
1227
+ api_instance.set_room_config(room_name, opts)
1228
+ rescue Daily::ApiError => e
1229
+ puts "Error when calling RoomsApi->set_room_config: #{e}"
1230
+ end
1231
+ ```
1232
+
1233
+ #### Using the set_room_config_with_http_info variant
1234
+
1235
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1236
+
1237
+ > <Array(nil, Integer, Hash)> set_room_config_with_http_info(room_name, opts)
1238
+
1239
+ ```ruby
1240
+ begin
1241
+ # rooms/:name
1242
+ data, status_code, headers = api_instance.set_room_config_with_http_info(room_name, opts)
1243
+ p status_code # => 2xx
1244
+ p headers # => { ... }
1245
+ p data # => nil
1246
+ rescue Daily::ApiError => e
1247
+ puts "Error when calling RoomsApi->set_room_config_with_http_info: #{e}"
1248
+ end
1249
+ ```
1250
+
1251
+ ### Parameters
1252
+
1253
+ | Name | Type | Description | Notes |
1254
+ | ---- | ---- | ----------- | ----- |
1255
+ | **room_name** | **String** | | |
1256
+ | **set_room_config_request** | [**SetRoomConfigRequest**](SetRoomConfigRequest.md) | | [optional] |
1257
+
1258
+ ### Return type
1259
+
1260
+ nil (empty response body)
1261
+
1262
+ ### Authorization
1263
+
1264
+ [sec0](../README.md#sec0)
1265
+
1266
+ ### HTTP request headers
1267
+
1268
+ - **Content-Type**: application/json
1269
+ - **Accept**: application/json
1270
+
1271
+
1272
+ ## set_session_data
1273
+
1274
+ > set_session_data(room_name, opts)
1275
+
1276
+ rooms/:name/set-session-data
1277
+
1278
+ Sets meeting session data
1279
+
1280
+ ### Examples
1281
+
1282
+ ```ruby
1283
+ require 'time'
1284
+ require 'daily-ruby'
1285
+ # setup authorization
1286
+ Daily.configure do |config|
1287
+ # Configure API key authorization: sec0
1288
+ config.api_key['sec0'] = 'YOUR API KEY'
1289
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1290
+ # config.api_key_prefix['sec0'] = 'Bearer'
1291
+ end
1292
+
1293
+ api_instance = Daily::RoomsApi.new
1294
+ room_name = 'room_name_example' # String |
1295
+ opts = {
1296
+ set_session_data_request: Daily::SetSessionDataRequest.new # SetSessionDataRequest |
1297
+ }
1298
+
1299
+ begin
1300
+ # rooms/:name/set-session-data
1301
+ api_instance.set_session_data(room_name, opts)
1302
+ rescue Daily::ApiError => e
1303
+ puts "Error when calling RoomsApi->set_session_data: #{e}"
1304
+ end
1305
+ ```
1306
+
1307
+ #### Using the set_session_data_with_http_info variant
1308
+
1309
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1310
+
1311
+ > <Array(nil, Integer, Hash)> set_session_data_with_http_info(room_name, opts)
1312
+
1313
+ ```ruby
1314
+ begin
1315
+ # rooms/:name/set-session-data
1316
+ data, status_code, headers = api_instance.set_session_data_with_http_info(room_name, opts)
1317
+ p status_code # => 2xx
1318
+ p headers # => { ... }
1319
+ p data # => nil
1320
+ rescue Daily::ApiError => e
1321
+ puts "Error when calling RoomsApi->set_session_data_with_http_info: #{e}"
1322
+ end
1323
+ ```
1324
+
1325
+ ### Parameters
1326
+
1327
+ | Name | Type | Description | Notes |
1328
+ | ---- | ---- | ----------- | ----- |
1329
+ | **room_name** | **String** | | |
1330
+ | **set_session_data_request** | [**SetSessionDataRequest**](SetSessionDataRequest.md) | | [optional] |
1331
+
1332
+ ### Return type
1333
+
1334
+ nil (empty response body)
1335
+
1336
+ ### Authorization
1337
+
1338
+ [sec0](../README.md#sec0)
1339
+
1340
+ ### HTTP request headers
1341
+
1342
+ - **Content-Type**: application/json
1343
+ - **Accept**: application/json
1344
+
1345
+
1346
+ ## update_permissions
1347
+
1348
+ > update_permissions(room_name, opts)
1349
+
1350
+ rooms/:name/update-permissions
1351
+
1352
+ Modifies permissions for one or more participants in a room
1353
+
1354
+ ### Examples
1355
+
1356
+ ```ruby
1357
+ require 'time'
1358
+ require 'daily-ruby'
1359
+ # setup authorization
1360
+ Daily.configure do |config|
1361
+ # Configure API key authorization: sec0
1362
+ config.api_key['sec0'] = 'YOUR API KEY'
1363
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1364
+ # config.api_key_prefix['sec0'] = 'Bearer'
1365
+ end
1366
+
1367
+ api_instance = Daily::RoomsApi.new
1368
+ room_name = 'room_name_example' # String |
1369
+ opts = {
1370
+ update_permissions_request: Daily::UpdatePermissionsRequest.new # UpdatePermissionsRequest |
1371
+ }
1372
+
1373
+ begin
1374
+ # rooms/:name/update-permissions
1375
+ api_instance.update_permissions(room_name, opts)
1376
+ rescue Daily::ApiError => e
1377
+ puts "Error when calling RoomsApi->update_permissions: #{e}"
1378
+ end
1379
+ ```
1380
+
1381
+ #### Using the update_permissions_with_http_info variant
1382
+
1383
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1384
+
1385
+ > <Array(nil, Integer, Hash)> update_permissions_with_http_info(room_name, opts)
1386
+
1387
+ ```ruby
1388
+ begin
1389
+ # rooms/:name/update-permissions
1390
+ data, status_code, headers = api_instance.update_permissions_with_http_info(room_name, opts)
1391
+ p status_code # => 2xx
1392
+ p headers # => { ... }
1393
+ p data # => nil
1394
+ rescue Daily::ApiError => e
1395
+ puts "Error when calling RoomsApi->update_permissions_with_http_info: #{e}"
1396
+ end
1397
+ ```
1398
+
1399
+ ### Parameters
1400
+
1401
+ | Name | Type | Description | Notes |
1402
+ | ---- | ---- | ----------- | ----- |
1403
+ | **room_name** | **String** | | |
1404
+ | **update_permissions_request** | [**UpdatePermissionsRequest**](UpdatePermissionsRequest.md) | | [optional] |
1405
+
1406
+ ### Return type
1407
+
1408
+ nil (empty response body)
1409
+
1410
+ ### Authorization
1411
+
1412
+ [sec0](../README.md#sec0)
1413
+
1414
+ ### HTTP request headers
1415
+
1416
+ - **Content-Type**: application/json
1417
+ - **Accept**: application/json
1418
+