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/RoomApi.md DELETED
@@ -1,227 +0,0 @@
1
- # Daily::RoomApi
2
-
3
- All URIs are relative to *https://api.daily.co/v1*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**create_room**](RoomApi.md#create_room) | **POST** /rooms | Create a new room |
8
- | [**delete_room**](RoomApi.md#delete_room) | **DELETE** /rooms/{name} | Delete room |
9
- | [**get_rooms**](RoomApi.md#get_rooms) | **GET** /rooms | Get a list rooms |
10
-
11
-
12
- ## create_room
13
-
14
- > <RoomResponse> create_room(opts)
15
-
16
- Create a new room
17
-
18
- A POST request to /rooms creates a new room.
19
-
20
- ### Examples
21
-
22
- ```ruby
23
- require 'time'
24
- require 'daily-ruby'
25
- # setup authorization
26
- Daily.configure do |config|
27
- # Configure Bearer authorization: bearerAuth
28
- config.access_token = 'YOUR_BEARER_TOKEN'
29
- end
30
-
31
- api_instance = Daily::RoomApi.new
32
- opts = {
33
- room_request: Daily::RoomRequest.new # RoomRequest | A room object
34
- }
35
-
36
- begin
37
- # Create a new room
38
- result = api_instance.create_room(opts)
39
- p result
40
- rescue Daily::ApiError => e
41
- puts "Error when calling RoomApi->create_room: #{e}"
42
- end
43
- ```
44
-
45
- #### Using the create_room_with_http_info variant
46
-
47
- This returns an Array which contains the response data, status code and headers.
48
-
49
- > <Array(<RoomResponse>, Integer, Hash)> create_room_with_http_info(opts)
50
-
51
- ```ruby
52
- begin
53
- # Create a new room
54
- data, status_code, headers = api_instance.create_room_with_http_info(opts)
55
- p status_code # => 2xx
56
- p headers # => { ... }
57
- p data # => <RoomResponse>
58
- rescue Daily::ApiError => e
59
- puts "Error when calling RoomApi->create_room_with_http_info: #{e}"
60
- end
61
- ```
62
-
63
- ### Parameters
64
-
65
- | Name | Type | Description | Notes |
66
- | ---- | ---- | ----------- | ----- |
67
- | **room_request** | [**RoomRequest**](RoomRequest.md) | A room object | [optional] |
68
-
69
- ### Return type
70
-
71
- [**RoomResponse**](RoomResponse.md)
72
-
73
- ### Authorization
74
-
75
- [bearerAuth](../README.md#bearerAuth)
76
-
77
- ### HTTP request headers
78
-
79
- - **Content-Type**: application/json
80
- - **Accept**: application/json
81
-
82
-
83
- ## delete_room
84
-
85
- > <RoomDeletedResponse> delete_room(name)
86
-
87
- Delete room
88
-
89
- Delete a Daily room.
90
-
91
- ### Examples
92
-
93
- ```ruby
94
- require 'time'
95
- require 'daily-ruby'
96
- # setup authorization
97
- Daily.configure do |config|
98
- # Configure Bearer authorization: bearerAuth
99
- config.access_token = 'YOUR_BEARER_TOKEN'
100
- end
101
-
102
- api_instance = Daily::RoomApi.new
103
- name = 'name_example' # String | The room name that needs to be deleted
104
-
105
- begin
106
- # Delete room
107
- result = api_instance.delete_room(name)
108
- p result
109
- rescue Daily::ApiError => e
110
- puts "Error when calling RoomApi->delete_room: #{e}"
111
- end
112
- ```
113
-
114
- #### Using the delete_room_with_http_info variant
115
-
116
- This returns an Array which contains the response data, status code and headers.
117
-
118
- > <Array(<RoomDeletedResponse>, Integer, Hash)> delete_room_with_http_info(name)
119
-
120
- ```ruby
121
- begin
122
- # Delete room
123
- data, status_code, headers = api_instance.delete_room_with_http_info(name)
124
- p status_code # => 2xx
125
- p headers # => { ... }
126
- p data # => <RoomDeletedResponse>
127
- rescue Daily::ApiError => e
128
- puts "Error when calling RoomApi->delete_room_with_http_info: #{e}"
129
- end
130
- ```
131
-
132
- ### Parameters
133
-
134
- | Name | Type | Description | Notes |
135
- | ---- | ---- | ----------- | ----- |
136
- | **name** | **String** | The room name that needs to be deleted | |
137
-
138
- ### Return type
139
-
140
- [**RoomDeletedResponse**](RoomDeletedResponse.md)
141
-
142
- ### Authorization
143
-
144
- [bearerAuth](../README.md#bearerAuth)
145
-
146
- ### HTTP request headers
147
-
148
- - **Content-Type**: Not defined
149
- - **Accept**: application/json
150
-
151
-
152
- ## get_rooms
153
-
154
- > <Array<RoomResponse>> get_rooms(opts)
155
-
156
- Get a list rooms
157
-
158
- A GET request to /rooms returns a list of rooms.
159
-
160
- ### Examples
161
-
162
- ```ruby
163
- require 'time'
164
- require 'daily-ruby'
165
- # setup authorization
166
- Daily.configure do |config|
167
- # Configure Bearer authorization: bearerAuth
168
- config.access_token = 'YOUR_BEARER_TOKEN'
169
- end
170
-
171
- api_instance = Daily::RoomApi.new
172
- opts = {
173
- offset: 56, # Integer | The number of items to skip before starting to collect the result set.
174
- limit: 56, # Integer | The numbers of items to return.
175
- ending_before: 'ending_before_example', # String | A cursor for use in pagination. ending_before is an object ID that defines your place in the list.
176
- starting_after: 'starting_after_example' # String | A cursor for use in pagination. starting_after is an object ID that defines your place in the list.
177
- }
178
-
179
- begin
180
- # Get a list rooms
181
- result = api_instance.get_rooms(opts)
182
- p result
183
- rescue Daily::ApiError => e
184
- puts "Error when calling RoomApi->get_rooms: #{e}"
185
- end
186
- ```
187
-
188
- #### Using the get_rooms_with_http_info variant
189
-
190
- This returns an Array which contains the response data, status code and headers.
191
-
192
- > <Array(<Array<RoomResponse>>, Integer, Hash)> get_rooms_with_http_info(opts)
193
-
194
- ```ruby
195
- begin
196
- # Get a list rooms
197
- data, status_code, headers = api_instance.get_rooms_with_http_info(opts)
198
- p status_code # => 2xx
199
- p headers # => { ... }
200
- p data # => <Array<RoomResponse>>
201
- rescue Daily::ApiError => e
202
- puts "Error when calling RoomApi->get_rooms_with_http_info: #{e}"
203
- end
204
- ```
205
-
206
- ### Parameters
207
-
208
- | Name | Type | Description | Notes |
209
- | ---- | ---- | ----------- | ----- |
210
- | **offset** | **Integer** | The number of items to skip before starting to collect the result set. | [optional] |
211
- | **limit** | **Integer** | The numbers of items to return. | [optional] |
212
- | **ending_before** | **String** | A cursor for use in pagination. ending_before is an object ID that defines your place in the list. | [optional] |
213
- | **starting_after** | **String** | A cursor for use in pagination. starting_after is an object ID that defines your place in the list. | [optional] |
214
-
215
- ### Return type
216
-
217
- [**Array&lt;RoomResponse&gt;**](RoomResponse.md)
218
-
219
- ### Authorization
220
-
221
- [bearerAuth](../README.md#bearerAuth)
222
-
223
- ### HTTP request headers
224
-
225
- - **Content-Type**: Not defined
226
- - **Accept**: application/json
227
-
@@ -1,20 +0,0 @@
1
- # Daily::RoomDeletedResponse
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **name** | **String** | | [optional] |
8
- | **deleted** | **Boolean** | | [optional] |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'daily-ruby'
14
-
15
- instance = Daily::RoomDeletedResponse.new(
16
- name: null,
17
- deleted: null
18
- )
19
- ```
20
-
@@ -1,20 +0,0 @@
1
- # Daily::RoomNotFoundResponse
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **error** | **String** | | [optional] |
8
- | **info** | **String** | | [optional] |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'daily-ruby'
14
-
15
- instance = Daily::RoomNotFoundResponse.new(
16
- error: null,
17
- info: null
18
- )
19
- ```
20
-
@@ -1,76 +0,0 @@
1
- # Daily::RoomRequestProperties
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **nbf** | **Integer** | | [optional] |
8
- | **exp** | **Integer** | | [optional] |
9
- | **max_participants** | **Integer** | | [optional] |
10
- | **enable_people_ui** | **Boolean** | | [optional] |
11
- | **enable_pip_ui** | **Boolean** | | [optional] |
12
- | **enable_emoji_reactions** | **Boolean** | | [optional] |
13
- | **enable_hand_raising** | **Boolean** | | [optional] |
14
- | **enable_prejoin_ui** | **Boolean** | | [optional] |
15
- | **enable_live_captions_ui** | **Boolean** | | [optional] |
16
- | **enable_network_ui** | **Boolean** | | [optional] |
17
- | **enable_noise_cancellation_ui** | **Boolean** | | [optional] |
18
- | **enable_breakout_rooms** | **Boolean** | | [optional] |
19
- | **enable_knocking** | **Boolean** | | [optional] |
20
- | **enable_screenshare** | **Boolean** | | [optional] |
21
- | **enable_video_processing_ui** | **Boolean** | | [optional] |
22
- | **enable_chat** | **Boolean** | | [optional] |
23
- | **start_video_off** | **Boolean** | | [optional] |
24
- | **start_audio_off** | **Boolean** | | [optional] |
25
- | **owner_only_broadcast** | **Boolean** | | [optional] |
26
- | **enable_recording** | **String** | | [optional] |
27
- | **eject_at_room_exp** | **Boolean** | | [optional] |
28
- | **eject_after_elapsed** | **Boolean** | | [optional] |
29
- | **enable_advanced_chat** | **Boolean** | | [optional] |
30
- | **enable_hidden_participants** | **Boolean** | | [optional] |
31
- | **enable_mesh_sfu** | **Boolean** | | [optional] |
32
- | **sfu_switchover** | **Float** | | [optional] |
33
- | **experimental_optimize_large_calls** | **Boolean** | | [optional] |
34
- | **lang** | **String** | | [optional] |
35
- | **meeting_join_hook** | **String** | | [optional] |
36
- | **geo** | **String** | | [optional] |
37
-
38
- ## Example
39
-
40
- ```ruby
41
- require 'daily-ruby'
42
-
43
- instance = Daily::RoomRequestProperties.new(
44
- nbf: null,
45
- exp: null,
46
- max_participants: null,
47
- enable_people_ui: null,
48
- enable_pip_ui: null,
49
- enable_emoji_reactions: null,
50
- enable_hand_raising: null,
51
- enable_prejoin_ui: null,
52
- enable_live_captions_ui: null,
53
- enable_network_ui: null,
54
- enable_noise_cancellation_ui: null,
55
- enable_breakout_rooms: null,
56
- enable_knocking: null,
57
- enable_screenshare: null,
58
- enable_video_processing_ui: null,
59
- enable_chat: null,
60
- start_video_off: null,
61
- start_audio_off: null,
62
- owner_only_broadcast: null,
63
- enable_recording: null,
64
- eject_at_room_exp: null,
65
- eject_after_elapsed: null,
66
- enable_advanced_chat: null,
67
- enable_hidden_participants: null,
68
- enable_mesh_sfu: null,
69
- sfu_switchover: null,
70
- experimental_optimize_large_calls: null,
71
- lang: null,
72
- meeting_join_hook: null,
73
- geo: null
74
- )
75
- ```
76
-
data/docs/RoomResponse.md DELETED
@@ -1,28 +0,0 @@
1
- # Daily::RoomResponse
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | | [optional] |
8
- | **name** | **String** | | [optional] |
9
- | **api_created** | **Boolean** | | [optional] |
10
- | **privacy** | **String** | | [optional] |
11
- | **url** | **String** | | [optional] |
12
- | **created_at** | **Time** | | [optional] |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'daily-ruby'
18
-
19
- instance = Daily::RoomResponse.new(
20
- id: null,
21
- name: null,
22
- api_created: null,
23
- privacy: null,
24
- url: null,
25
- created_at: null
26
- )
27
- ```
28
-
@@ -1,218 +0,0 @@
1
- =begin
2
- #Daily
3
-
4
- #The official library for communicating with the Daily REST API.
5
-
6
- The version of the OpenAPI document: 0.0.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
10
-
11
- =end
12
-
13
- require 'cgi'
14
-
15
- module Daily
16
- class RoomApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Create a new room
23
- # A POST request to /rooms creates a new room.
24
- # @param [Hash] opts the optional parameters
25
- # @option opts [RoomRequest] :room_request A room object
26
- # @return [RoomResponse]
27
- def create_room(opts = {})
28
- data, _status_code, _headers = create_room_with_http_info(opts)
29
- data
30
- end
31
-
32
- # Create a new room
33
- # A POST request to /rooms creates a new room.
34
- # @param [Hash] opts the optional parameters
35
- # @option opts [RoomRequest] :room_request A room object
36
- # @return [Array<(RoomResponse, Integer, Hash)>] RoomResponse data, response status code and response headers
37
- def create_room_with_http_info(opts = {})
38
- if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: RoomApi.create_room ...'
40
- end
41
- # resource path
42
- local_var_path = '/rooms'
43
-
44
- # query parameters
45
- query_params = opts[:query_params] || {}
46
-
47
- # header parameters
48
- header_params = opts[:header_params] || {}
49
- # HTTP header 'Accept' (if needed)
50
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
51
- # HTTP header 'Content-Type'
52
- content_type = @api_client.select_header_content_type(['application/json'])
53
- if !content_type.nil?
54
- header_params['Content-Type'] = content_type
55
- end
56
-
57
- # form parameters
58
- form_params = opts[:form_params] || {}
59
-
60
- # http body (model)
61
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'room_request'])
62
-
63
- # return_type
64
- return_type = opts[:debug_return_type] || 'RoomResponse'
65
-
66
- # auth_names
67
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
68
-
69
- new_options = opts.merge(
70
- :operation => :"RoomApi.create_room",
71
- :header_params => header_params,
72
- :query_params => query_params,
73
- :form_params => form_params,
74
- :body => post_body,
75
- :auth_names => auth_names,
76
- :return_type => return_type
77
- )
78
-
79
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
- if @api_client.config.debugging
81
- @api_client.config.logger.debug "API called: RoomApi#create_room\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- end
83
- return data, status_code, headers
84
- end
85
-
86
- # Delete room
87
- # Delete a Daily room.
88
- # @param name [String] The room name that needs to be deleted
89
- # @param [Hash] opts the optional parameters
90
- # @return [RoomDeletedResponse]
91
- def delete_room(name, opts = {})
92
- data, _status_code, _headers = delete_room_with_http_info(name, opts)
93
- data
94
- end
95
-
96
- # Delete room
97
- # Delete a Daily room.
98
- # @param name [String] The room name that needs to be deleted
99
- # @param [Hash] opts the optional parameters
100
- # @return [Array<(RoomDeletedResponse, Integer, Hash)>] RoomDeletedResponse data, response status code and response headers
101
- def delete_room_with_http_info(name, opts = {})
102
- if @api_client.config.debugging
103
- @api_client.config.logger.debug 'Calling API: RoomApi.delete_room ...'
104
- end
105
- # verify the required parameter 'name' is set
106
- if @api_client.config.client_side_validation && name.nil?
107
- fail ArgumentError, "Missing the required parameter 'name' when calling RoomApi.delete_room"
108
- end
109
- # resource path
110
- local_var_path = '/rooms/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
111
-
112
- # query parameters
113
- query_params = opts[:query_params] || {}
114
-
115
- # header parameters
116
- header_params = opts[:header_params] || {}
117
- # HTTP header 'Accept' (if needed)
118
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
119
-
120
- # form parameters
121
- form_params = opts[:form_params] || {}
122
-
123
- # http body (model)
124
- post_body = opts[:debug_body]
125
-
126
- # return_type
127
- return_type = opts[:debug_return_type] || 'RoomDeletedResponse'
128
-
129
- # auth_names
130
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
131
-
132
- new_options = opts.merge(
133
- :operation => :"RoomApi.delete_room",
134
- :header_params => header_params,
135
- :query_params => query_params,
136
- :form_params => form_params,
137
- :body => post_body,
138
- :auth_names => auth_names,
139
- :return_type => return_type
140
- )
141
-
142
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
143
- if @api_client.config.debugging
144
- @api_client.config.logger.debug "API called: RoomApi#delete_room\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
145
- end
146
- return data, status_code, headers
147
- end
148
-
149
- # Get a list rooms
150
- # A GET request to /rooms returns a list of rooms.
151
- # @param [Hash] opts the optional parameters
152
- # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
153
- # @option opts [Integer] :limit The numbers of items to return.
154
- # @option opts [String] :ending_before A cursor for use in pagination. ending_before is an object ID that defines your place in the list.
155
- # @option opts [String] :starting_after A cursor for use in pagination. starting_after is an object ID that defines your place in the list.
156
- # @return [Array<RoomResponse>]
157
- def get_rooms(opts = {})
158
- data, _status_code, _headers = get_rooms_with_http_info(opts)
159
- data
160
- end
161
-
162
- # Get a list rooms
163
- # A GET request to /rooms returns a list of rooms.
164
- # @param [Hash] opts the optional parameters
165
- # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
166
- # @option opts [Integer] :limit The numbers of items to return.
167
- # @option opts [String] :ending_before A cursor for use in pagination. ending_before is an object ID that defines your place in the list.
168
- # @option opts [String] :starting_after A cursor for use in pagination. starting_after is an object ID that defines your place in the list.
169
- # @return [Array<(Array<RoomResponse>, Integer, Hash)>] Array<RoomResponse> data, response status code and response headers
170
- def get_rooms_with_http_info(opts = {})
171
- if @api_client.config.debugging
172
- @api_client.config.logger.debug 'Calling API: RoomApi.get_rooms ...'
173
- end
174
- # resource path
175
- local_var_path = '/rooms'
176
-
177
- # query parameters
178
- query_params = opts[:query_params] || {}
179
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
180
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
181
- query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
182
- query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
183
-
184
- # header parameters
185
- header_params = opts[:header_params] || {}
186
- # HTTP header 'Accept' (if needed)
187
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
188
-
189
- # form parameters
190
- form_params = opts[:form_params] || {}
191
-
192
- # http body (model)
193
- post_body = opts[:debug_body]
194
-
195
- # return_type
196
- return_type = opts[:debug_return_type] || 'Array<RoomResponse>'
197
-
198
- # auth_names
199
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
200
-
201
- new_options = opts.merge(
202
- :operation => :"RoomApi.get_rooms",
203
- :header_params => header_params,
204
- :query_params => query_params,
205
- :form_params => form_params,
206
- :body => post_body,
207
- :auth_names => auth_names,
208
- :return_type => return_type
209
- )
210
-
211
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
212
- if @api_client.config.debugging
213
- @api_client.config.logger.debug "API called: RoomApi#get_rooms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
214
- end
215
- return data, status_code, headers
216
- end
217
- end
218
- end