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/example.rb ADDED
@@ -0,0 +1,61 @@
1
+ # Load the gem
2
+ require 'daily-ruby'
3
+
4
+ # Setup authorization
5
+ Daily.configure do |config|
6
+ # Configure Bearer authorization: bearerAuth
7
+ config.api_key['sec0'] = ENV['DAILY_API_KEY']
8
+ config.api_key_prefix['sec0'] = 'Bearer'
9
+ # Configure faraday connection
10
+ # config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
11
+ end
12
+
13
+ room_api_instance = Daily::RoomsApi.new
14
+ opts = {
15
+ room_request: Daily::CreateRoomRequest.new(
16
+ privacy: 'private',
17
+ properties: Daily::RoomProperties.new({
18
+ exp: (Time.now + (3600 * 2)).to_i, # Delete the room after two hours
19
+ enable_mesh_sfu: true,
20
+ sfu_switchover: 0.5
21
+ })
22
+ )
23
+ }
24
+
25
+ begin
26
+ # Create a new room
27
+ room = room_api_instance.create_room(opts)
28
+ p room
29
+ rescue Daily::ApiError => e
30
+ puts "Error when calling RoomApi->create_room: #{e}"
31
+ end
32
+
33
+ meeting_token_api_instance = Daily::MeetingTokensApi.new
34
+
35
+ # Create an owner meeting_token for the room with privacy set to private and
36
+ # the expiration set to 2 hours from now.
37
+
38
+ opts = {
39
+ create_meeting_token_request: Daily::CreateMeetingTokenRequest.new({
40
+ properties: {
41
+ is_owner: true,
42
+ room_name: room.name,
43
+ exp: (Time.now + (3600 * 2)).to_i # Expire the token after two hours
44
+ }
45
+ })
46
+ }
47
+
48
+ p opts
49
+
50
+
51
+ begin
52
+ # Create a new meeting token
53
+ meeting_token = meeting_token_api_instance.create_meeting_token(opts)
54
+ p meeting_token
55
+ rescue Daily::ApiError => e
56
+ puts "Error when calling MeetingTokensApi->create_meeting_token: #{e}"
57
+ end
58
+
59
+
60
+ p "Room url: " + room.url
61
+ p "Meeting token: " + meeting_token.token
@@ -0,0 +1,143 @@
1
+ =begin
2
+ #Daily API
3
+
4
+ #The Daily REST API offers the ability to manage the following: - Overall Domain Configuration - Individual Room creation and config management - Meeting token creation and validation - Recording and compositing management - Meeting analytics - Logs and metrics - Real-time presence Please reach out to help@daily.co if we can help with anything
5
+
6
+ The version of the OpenAPI document: 1.1.1
7
+ Contact: help@daily.co
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 BatchRoomsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # /batch/rooms
23
+ # Create rooms in bulk
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [BatchRoomCreateRequest] :batch_room_create_request
26
+ # @return [Array<RoomsRoomNameGetRes>]
27
+ def batch_room_create(opts = {})
28
+ data, _status_code, _headers = batch_room_create_with_http_info(opts)
29
+ data
30
+ end
31
+
32
+ # /batch/rooms
33
+ # Create rooms in bulk
34
+ # @param [Hash] opts the optional parameters
35
+ # @option opts [BatchRoomCreateRequest] :batch_room_create_request
36
+ # @return [Array<(Array<RoomsRoomNameGetRes>, Integer, Hash)>] Array<RoomsRoomNameGetRes> data, response status code and response headers
37
+ def batch_room_create_with_http_info(opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: BatchRoomsApi.batch_room_create ...'
40
+ end
41
+ # resource path
42
+ local_var_path = '/batch/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[:'batch_room_create_request'])
62
+
63
+ # return_type
64
+ return_type = opts[:debug_return_type] || 'Array<RoomsRoomNameGetRes>'
65
+
66
+ # auth_names
67
+ auth_names = opts[:debug_auth_names] || ['sec0']
68
+
69
+ new_options = opts.merge(
70
+ :operation => :"BatchRoomsApi.batch_room_create",
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: BatchRoomsApi#batch_room_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # /batch/rooms
87
+ # Delete rooms in bulk
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [BatchRoomDelete200Response]
90
+ def batch_room_delete(opts = {})
91
+ data, _status_code, _headers = batch_room_delete_with_http_info(opts)
92
+ data
93
+ end
94
+
95
+ # /batch/rooms
96
+ # Delete rooms in bulk
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [Array<(BatchRoomDelete200Response, Integer, Hash)>] BatchRoomDelete200Response data, response status code and response headers
99
+ def batch_room_delete_with_http_info(opts = {})
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug 'Calling API: BatchRoomsApi.batch_room_delete ...'
102
+ end
103
+ # resource path
104
+ local_var_path = '/batch/rooms'
105
+
106
+ # query parameters
107
+ query_params = opts[:query_params] || {}
108
+
109
+ # header parameters
110
+ header_params = opts[:header_params] || {}
111
+ # HTTP header 'Accept' (if needed)
112
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
113
+
114
+ # form parameters
115
+ form_params = opts[:form_params] || {}
116
+
117
+ # http body (model)
118
+ post_body = opts[:debug_body]
119
+
120
+ # return_type
121
+ return_type = opts[:debug_return_type] || 'BatchRoomDelete200Response'
122
+
123
+ # auth_names
124
+ auth_names = opts[:debug_auth_names] || ['sec0']
125
+
126
+ new_options = opts.merge(
127
+ :operation => :"BatchRoomsApi.batch_room_delete",
128
+ :header_params => header_params,
129
+ :query_params => query_params,
130
+ :form_params => form_params,
131
+ :body => post_body,
132
+ :auth_names => auth_names,
133
+ :return_type => return_type
134
+ )
135
+
136
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
137
+ if @api_client.config.debugging
138
+ @api_client.config.logger.debug "API called: BatchRoomsApi#batch_room_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
139
+ end
140
+ return data, status_code, headers
141
+ end
142
+ end
143
+ end
@@ -0,0 +1,143 @@
1
+ =begin
2
+ #Daily API
3
+
4
+ #The Daily REST API offers the ability to manage the following: - Overall Domain Configuration - Individual Room creation and config management - Meeting token creation and validation - Recording and compositing management - Meeting analytics - Logs and metrics - Real-time presence Please reach out to help@daily.co if we can help with anything
5
+
6
+ The version of the OpenAPI document: 1.1.1
7
+ Contact: help@daily.co
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 DomainApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get domain configuration
23
+ # Get top-level configuration of your domain
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [GetDomainConfig200Response]
26
+ def get_domain_config(opts = {})
27
+ data, _status_code, _headers = get_domain_config_with_http_info(opts)
28
+ data
29
+ end
30
+
31
+ # Get domain configuration
32
+ # Get top-level configuration of your domain
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(GetDomainConfig200Response, Integer, Hash)>] GetDomainConfig200Response data, response status code and response headers
35
+ def get_domain_config_with_http_info(opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: DomainApi.get_domain_config ...'
38
+ end
39
+ # resource path
40
+ local_var_path = '/'
41
+
42
+ # query parameters
43
+ query_params = opts[:query_params] || {}
44
+
45
+ # header parameters
46
+ header_params = opts[:header_params] || {}
47
+ # HTTP header 'Accept' (if needed)
48
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
49
+
50
+ # form parameters
51
+ form_params = opts[:form_params] || {}
52
+
53
+ # http body (model)
54
+ post_body = opts[:debug_body]
55
+
56
+ # return_type
57
+ return_type = opts[:debug_return_type] || 'GetDomainConfig200Response'
58
+
59
+ # auth_names
60
+ auth_names = opts[:debug_auth_names] || ['sec0']
61
+
62
+ new_options = opts.merge(
63
+ :operation => :"DomainApi.get_domain_config",
64
+ :header_params => header_params,
65
+ :query_params => query_params,
66
+ :form_params => form_params,
67
+ :body => post_body,
68
+ :auth_names => auth_names,
69
+ :return_type => return_type
70
+ )
71
+
72
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
73
+ if @api_client.config.debugging
74
+ @api_client.config.logger.debug "API called: DomainApi#get_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
+ end
76
+ return data, status_code, headers
77
+ end
78
+
79
+ # Set domain configuration
80
+ # Set top-level configuration options for your domain
81
+ # @param [Hash] opts the optional parameters
82
+ # @option opts [Domain] :domain
83
+ # @return [nil]
84
+ def set_domain_config(opts = {})
85
+ set_domain_config_with_http_info(opts)
86
+ nil
87
+ end
88
+
89
+ # Set domain configuration
90
+ # Set top-level configuration options for your domain
91
+ # @param [Hash] opts the optional parameters
92
+ # @option opts [Domain] :domain
93
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
94
+ def set_domain_config_with_http_info(opts = {})
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug 'Calling API: DomainApi.set_domain_config ...'
97
+ end
98
+ # resource path
99
+ local_var_path = '/'
100
+
101
+ # query parameters
102
+ query_params = opts[:query_params] || {}
103
+
104
+ # header parameters
105
+ header_params = opts[:header_params] || {}
106
+ # HTTP header 'Accept' (if needed)
107
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
108
+ # HTTP header 'Content-Type'
109
+ content_type = @api_client.select_header_content_type(['application/json'])
110
+ if !content_type.nil?
111
+ header_params['Content-Type'] = content_type
112
+ end
113
+
114
+ # form parameters
115
+ form_params = opts[:form_params] || {}
116
+
117
+ # http body (model)
118
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'domain'])
119
+
120
+ # return_type
121
+ return_type = opts[:debug_return_type]
122
+
123
+ # auth_names
124
+ auth_names = opts[:debug_auth_names] || ['sec0']
125
+
126
+ new_options = opts.merge(
127
+ :operation => :"DomainApi.set_domain_config",
128
+ :header_params => header_params,
129
+ :query_params => query_params,
130
+ :form_params => form_params,
131
+ :body => post_body,
132
+ :auth_names => auth_names,
133
+ :return_type => return_type
134
+ )
135
+
136
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
137
+ if @api_client.config.debugging
138
+ @api_client.config.logger.debug "API called: DomainApi#set_domain_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
139
+ end
140
+ return data, status_code, headers
141
+ end
142
+ end
143
+ end
@@ -0,0 +1,181 @@
1
+ =begin
2
+ #Daily API
3
+
4
+ #The Daily REST API offers the ability to manage the following: - Overall Domain Configuration - Individual Room creation and config management - Meeting token creation and validation - Recording and compositing management - Meeting analytics - Logs and metrics - Real-time presence Please reach out to help@daily.co if we can help with anything
5
+
6
+ The version of the OpenAPI document: 1.1.1
7
+ Contact: help@daily.co
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 LogsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # /logs/api
23
+ # @param [Hash] opts the optional parameters
24
+ # @option opts [String] :starting_after Given the log ID, will return all records after that ID. See [pagination docs](../../rest-api#pagination)
25
+ # @option opts [String] :ending_before Given the log ID, will return all records before that ID. See [pagination docs](../../rest-api#pagination)
26
+ # @option opts [Integer] :limit Limit the number of logs and/or metrics returned (default to 20)
27
+ # @option opts [String] :source The source of the given logs, either &#x60;\&quot;api\&quot;&#x60; or &#x60;\&quot;webhook\&quot;&#x60; (default to '\"api\"')
28
+ # @option opts [String] :url Either the webhook server URL, or the API endpoint that was logged
29
+ # @return [ListAPILogs200Response]
30
+ def list_api_logs(opts = {})
31
+ data, _status_code, _headers = list_api_logs_with_http_info(opts)
32
+ data
33
+ end
34
+
35
+ # /logs/api
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :starting_after Given the log ID, will return all records after that ID. See [pagination docs](../../rest-api#pagination)
38
+ # @option opts [String] :ending_before Given the log ID, will return all records before that ID. See [pagination docs](../../rest-api#pagination)
39
+ # @option opts [Integer] :limit Limit the number of logs and/or metrics returned (default to 20)
40
+ # @option opts [String] :source The source of the given logs, either &#x60;\&quot;api\&quot;&#x60; or &#x60;\&quot;webhook\&quot;&#x60; (default to '\"api\"')
41
+ # @option opts [String] :url Either the webhook server URL, or the API endpoint that was logged
42
+ # @return [Array<(ListAPILogs200Response, Integer, Hash)>] ListAPILogs200Response data, response status code and response headers
43
+ def list_api_logs_with_http_info(opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: LogsApi.list_api_logs ...'
46
+ end
47
+ # resource path
48
+ local_var_path = '/logs/api'
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+ query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
53
+ query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
54
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
55
+ query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
56
+ query_params[:'url'] = opts[:'url'] if !opts[:'url'].nil?
57
+
58
+ # header parameters
59
+ header_params = opts[:header_params] || {}
60
+ # HTTP header 'Accept' (if needed)
61
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
62
+
63
+ # form parameters
64
+ form_params = opts[:form_params] || {}
65
+
66
+ # http body (model)
67
+ post_body = opts[:debug_body]
68
+
69
+ # return_type
70
+ return_type = opts[:debug_return_type] || 'ListAPILogs200Response'
71
+
72
+ # auth_names
73
+ auth_names = opts[:debug_auth_names] || ['sec0']
74
+
75
+ new_options = opts.merge(
76
+ :operation => :"LogsApi.list_api_logs",
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type
83
+ )
84
+
85
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: LogsApi#list_api_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+
92
+ # /logs
93
+ # @param [Hash] opts the optional parameters
94
+ # @option opts [Boolean] :include_logs If true, you get a \&quot;logs\&quot; array in the results (default to true)
95
+ # @option opts [Boolean] :include_metrics If true, results have \&quot;metrics\&quot; array (default to false)
96
+ # @option opts [String] :user_session_id Filters by this user ID (aka \&quot;participant ID\&quot;). Required if &#x60;mtgSessionId&#x60; is not present in the request
97
+ # @option opts [String] :mtg_session_id Filters by this Session ID. Required if &#x60;userSessionId&#x60; is not present in the request
98
+ # @option opts [String] :log_level Filters by the given log level name
99
+ # @option opts [String] :order ASC or DESC, case insensitive (default to 'DESC')
100
+ # @option opts [Integer] :start_time A JS timestamp (ms since epoch in UTC)
101
+ # @option opts [Integer] :end_time A JS timestamp (ms since epoch), defaults to the current time
102
+ # @option opts [Integer] :limit Limit the number of logs and/or metrics returned (default to 20)
103
+ # @option opts [Integer] :offset Number of records to skip before returning results (default to 0)
104
+ # @return [Object]
105
+ def list_logs(opts = {})
106
+ data, _status_code, _headers = list_logs_with_http_info(opts)
107
+ data
108
+ end
109
+
110
+ # /logs
111
+ # @param [Hash] opts the optional parameters
112
+ # @option opts [Boolean] :include_logs If true, you get a \&quot;logs\&quot; array in the results (default to true)
113
+ # @option opts [Boolean] :include_metrics If true, results have \&quot;metrics\&quot; array (default to false)
114
+ # @option opts [String] :user_session_id Filters by this user ID (aka \&quot;participant ID\&quot;). Required if &#x60;mtgSessionId&#x60; is not present in the request
115
+ # @option opts [String] :mtg_session_id Filters by this Session ID. Required if &#x60;userSessionId&#x60; is not present in the request
116
+ # @option opts [String] :log_level Filters by the given log level name
117
+ # @option opts [String] :order ASC or DESC, case insensitive (default to 'DESC')
118
+ # @option opts [Integer] :start_time A JS timestamp (ms since epoch in UTC)
119
+ # @option opts [Integer] :end_time A JS timestamp (ms since epoch), defaults to the current time
120
+ # @option opts [Integer] :limit Limit the number of logs and/or metrics returned (default to 20)
121
+ # @option opts [Integer] :offset Number of records to skip before returning results (default to 0)
122
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
123
+ def list_logs_with_http_info(opts = {})
124
+ if @api_client.config.debugging
125
+ @api_client.config.logger.debug 'Calling API: LogsApi.list_logs ...'
126
+ end
127
+ allowable_values = ["ERROR", "INFO", "DEBUG"]
128
+ if @api_client.config.client_side_validation && opts[:'log_level'] && !allowable_values.include?(opts[:'log_level'])
129
+ fail ArgumentError, "invalid value for \"log_level\", must be one of #{allowable_values}"
130
+ end
131
+ # resource path
132
+ local_var_path = '/logs'
133
+
134
+ # query parameters
135
+ query_params = opts[:query_params] || {}
136
+ query_params[:'includeLogs'] = opts[:'include_logs'] if !opts[:'include_logs'].nil?
137
+ query_params[:'includeMetrics'] = opts[:'include_metrics'] if !opts[:'include_metrics'].nil?
138
+ query_params[:'userSessionId'] = opts[:'user_session_id'] if !opts[:'user_session_id'].nil?
139
+ query_params[:'mtgSessionId'] = opts[:'mtg_session_id'] if !opts[:'mtg_session_id'].nil?
140
+ query_params[:'logLevel'] = opts[:'log_level'] if !opts[:'log_level'].nil?
141
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
142
+ query_params[:'startTime'] = opts[:'start_time'] if !opts[:'start_time'].nil?
143
+ query_params[:'endTime'] = opts[:'end_time'] if !opts[:'end_time'].nil?
144
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
145
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
146
+
147
+ # header parameters
148
+ header_params = opts[:header_params] || {}
149
+ # HTTP header 'Accept' (if needed)
150
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
151
+
152
+ # form parameters
153
+ form_params = opts[:form_params] || {}
154
+
155
+ # http body (model)
156
+ post_body = opts[:debug_body]
157
+
158
+ # return_type
159
+ return_type = opts[:debug_return_type] || 'Object'
160
+
161
+ # auth_names
162
+ auth_names = opts[:debug_auth_names] || ['sec0']
163
+
164
+ new_options = opts.merge(
165
+ :operation => :"LogsApi.list_logs",
166
+ :header_params => header_params,
167
+ :query_params => query_params,
168
+ :form_params => form_params,
169
+ :body => post_body,
170
+ :auth_names => auth_names,
171
+ :return_type => return_type
172
+ )
173
+
174
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
175
+ if @api_client.config.debugging
176
+ @api_client.config.logger.debug "API called: LogsApi#list_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
177
+ end
178
+ return data, status_code, headers
179
+ end
180
+ end
181
+ end
@@ -1,10 +1,10 @@
1
1
  =begin
2
- #Daily
2
+ #Daily API
3
3
 
4
- #The official library for communicating with the Daily REST API.
5
-
6
- The version of the OpenAPI document: 0.0.0
4
+ #The Daily REST API offers the ability to manage the following: - Overall Domain Configuration - Individual Room creation and config management - Meeting token creation and validation - Recording and compositing management - Meeting analytics - Logs and metrics - Real-time presence Please reach out to help@daily.co if we can help with anything
7
5
 
6
+ The version of the OpenAPI document: 1.1.1
7
+ Contact: help@daily.co
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
10
10
 
@@ -19,20 +19,20 @@ module Daily
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Creates a meeting token
23
- # A POST request to /meeting-tokens creates a new meeting token.
22
+ # meeting-tokens
23
+ # Create a meeting token
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [MeetingTokenRequest] :meeting_token_request A room object
25
+ # @option opts [CreateMeetingTokenRequest] :create_meeting_token_request
26
26
  # @return [CreateMeetingToken200Response]
27
27
  def create_meeting_token(opts = {})
28
28
  data, _status_code, _headers = create_meeting_token_with_http_info(opts)
29
29
  data
30
30
  end
31
31
 
32
- # Creates a meeting token
33
- # A POST request to /meeting-tokens creates a new meeting token.
32
+ # meeting-tokens
33
+ # Create a meeting token
34
34
  # @param [Hash] opts the optional parameters
35
- # @option opts [MeetingTokenRequest] :meeting_token_request A room object
35
+ # @option opts [CreateMeetingTokenRequest] :create_meeting_token_request
36
36
  # @return [Array<(CreateMeetingToken200Response, Integer, Hash)>] CreateMeetingToken200Response data, response status code and response headers
37
37
  def create_meeting_token_with_http_info(opts = {})
38
38
  if @api_client.config.debugging
@@ -58,13 +58,13 @@ module Daily
58
58
  form_params = opts[:form_params] || {}
59
59
 
60
60
  # http body (model)
61
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'meeting_token_request'])
61
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_meeting_token_request'])
62
62
 
63
63
  # return_type
64
64
  return_type = opts[:debug_return_type] || 'CreateMeetingToken200Response'
65
65
 
66
66
  # auth_names
67
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
67
+ auth_names = opts[:debug_auth_names] || ['sec0']
68
68
 
69
69
  new_options = opts.merge(
70
70
  :operation => :"MeetingTokensApi.create_meeting_token",
@@ -82,5 +82,71 @@ module Daily
82
82
  end
83
83
  return data, status_code, headers
84
84
  end
85
+
86
+ # meeting-tokens/:meeting_token
87
+ # Validate meeting tokens
88
+ # @param meeting_token [String]
89
+ # @param [Hash] opts the optional parameters
90
+ # @option opts [Boolean] :ignore_nbf Ignore the &#x60;nbf&#x60; in a JWT, if given
91
+ # @return [ValidateMeetingToken200Response]
92
+ def validate_meeting_token(meeting_token, opts = {})
93
+ data, _status_code, _headers = validate_meeting_token_with_http_info(meeting_token, opts)
94
+ data
95
+ end
96
+
97
+ # meeting-tokens/:meeting_token
98
+ # Validate meeting tokens
99
+ # @param meeting_token [String]
100
+ # @param [Hash] opts the optional parameters
101
+ # @option opts [Boolean] :ignore_nbf Ignore the &#x60;nbf&#x60; in a JWT, if given
102
+ # @return [Array<(ValidateMeetingToken200Response, Integer, Hash)>] ValidateMeetingToken200Response data, response status code and response headers
103
+ def validate_meeting_token_with_http_info(meeting_token, opts = {})
104
+ if @api_client.config.debugging
105
+ @api_client.config.logger.debug 'Calling API: MeetingTokensApi.validate_meeting_token ...'
106
+ end
107
+ # verify the required parameter 'meeting_token' is set
108
+ if @api_client.config.client_side_validation && meeting_token.nil?
109
+ fail ArgumentError, "Missing the required parameter 'meeting_token' when calling MeetingTokensApi.validate_meeting_token"
110
+ end
111
+ # resource path
112
+ local_var_path = '/meeting-tokens/{meeting_token}'.sub('{' + 'meeting_token' + '}', CGI.escape(meeting_token.to_s))
113
+
114
+ # query parameters
115
+ query_params = opts[:query_params] || {}
116
+ query_params[:'ignoreNbf'] = opts[:'ignore_nbf'] if !opts[:'ignore_nbf'].nil?
117
+
118
+ # header parameters
119
+ header_params = opts[:header_params] || {}
120
+ # HTTP header 'Accept' (if needed)
121
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
122
+
123
+ # form parameters
124
+ form_params = opts[:form_params] || {}
125
+
126
+ # http body (model)
127
+ post_body = opts[:debug_body]
128
+
129
+ # return_type
130
+ return_type = opts[:debug_return_type] || 'ValidateMeetingToken200Response'
131
+
132
+ # auth_names
133
+ auth_names = opts[:debug_auth_names] || ['sec0']
134
+
135
+ new_options = opts.merge(
136
+ :operation => :"MeetingTokensApi.validate_meeting_token",
137
+ :header_params => header_params,
138
+ :query_params => query_params,
139
+ :form_params => form_params,
140
+ :body => post_body,
141
+ :auth_names => auth_names,
142
+ :return_type => return_type
143
+ )
144
+
145
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
146
+ if @api_client.config.debugging
147
+ @api_client.config.logger.debug "API called: MeetingTokensApi#validate_meeting_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
148
+ end
149
+ return data, status_code, headers
150
+ end
85
151
  end
86
152
  end