daily-ruby 1.0.2 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +24 -0
  3. data/README.md +4 -4
  4. data/lib/daily-ruby/models/domain_properties.rb +4 -8
  5. data/lib/daily-ruby/models/room_properties.rb +3 -8
  6. data/lib/daily-ruby/version.rb +1 -1
  7. metadata +5 -423
  8. data/Gemfile +0 -8
  9. data/Gemfile.lock +0 -61
  10. data/Rakefile +0 -10
  11. data/daily-ruby.gemspec +0 -41
  12. data/docs/BatchProcessorError.md +0 -24
  13. data/docs/BatchProcessorErrorPayload.md +0 -26
  14. data/docs/BatchProcessorErrorPayloadInput.md +0 -24
  15. data/docs/BatchProcessorJobFinished.md +0 -24
  16. data/docs/BatchProcessorJobFinishedPayload.md +0 -26
  17. data/docs/BatchProcessorJobFinishedPayloadInput.md +0 -24
  18. data/docs/BatchProcessorJobFinishedPayloadOutput.md +0 -24
  19. data/docs/BatchProcessorJobFinishedPayloadOutputConcept.md +0 -20
  20. data/docs/BatchProcessorJobFinishedPayloadOutputSoap.md +0 -20
  21. data/docs/BatchProcessorJobFinishedPayloadOutputSoapS3Config.md +0 -22
  22. data/docs/BatchProcessorJobFinishedPayloadOutputSummary.md +0 -20
  23. data/docs/BatchProcessorJobFinishedPayloadOutputTranscriptionInner.md +0 -20
  24. data/docs/BatchRoomCreateRequest.md +0 -18
  25. data/docs/BatchRoomCreateRequestRoomsInner.md +0 -22
  26. data/docs/BatchRoomDelete200Response.md +0 -18
  27. data/docs/BatchRoomsApi.md +0 -150
  28. data/docs/BuyPhoneNumberRequest.md +0 -18
  29. data/docs/CreateMeetingToken200Response.md +0 -18
  30. data/docs/CreateMeetingTokenRequest.md +0 -18
  31. data/docs/CreateRoom200Response.md +0 -30
  32. data/docs/CreateRoomRequest.md +0 -22
  33. data/docs/DailyLiveStreamingOptions.md +0 -40
  34. data/docs/DailyLiveStreamingOptionsRtmpUrl.md +0 -49
  35. data/docs/DailyStreamingActiveParticipantLayoutConfig.md +0 -18
  36. data/docs/DailyStreamingCustomLayoutConfig.md +0 -24
  37. data/docs/DailyStreamingCustomLayoutConfigCompositionParams.md +0 -15
  38. data/docs/DailyStreamingCustomLayoutConfigCompositionParamsValue.md +0 -15
  39. data/docs/DailyStreamingDefaultLayoutConfig.md +0 -20
  40. data/docs/DailyStreamingEndpoint.md +0 -18
  41. data/docs/DailyStreamingLayoutConfig.md +0 -69
  42. data/docs/DailyStreamingOptions.md +0 -36
  43. data/docs/DailyStreamingPortraitLayoutConfig.md +0 -22
  44. data/docs/DailyStreamingPortraitLayoutVariant.md +0 -15
  45. data/docs/DailyStreamingSingleParticipantLayoutConfig.md +0 -20
  46. data/docs/DeleteTranscript200Response.md +0 -30
  47. data/docs/DialinApi.md +0 -80
  48. data/docs/DialoutProperties.md +0 -26
  49. data/docs/DialoutPropertiesCodecs.md +0 -20
  50. data/docs/Domain.md +0 -18
  51. data/docs/DomainApi.md +0 -149
  52. data/docs/DomainProperties.md +0 -84
  53. data/docs/Eject200Response.md +0 -18
  54. data/docs/EjectRequest.md +0 -22
  55. data/docs/GetDomainConfig200Response.md +0 -22
  56. data/docs/GetDomainConfig200ResponseConfig.md +0 -56
  57. data/docs/GetDomainConfig200ResponseConfigRecordingsBucket.md +0 -20
  58. data/docs/GetMeetingInfo200Response.md +0 -20
  59. data/docs/GetMeetingInfo200ResponseDataInner.md +0 -28
  60. data/docs/GetMeetingInfo200ResponseDataInnerParticipantsInner.md +0 -26
  61. data/docs/GetPresence200Response.md +0 -18
  62. data/docs/GetPresence200ResponseAIVWWhzHlLHrSdHdw7EWInner.md +0 -28
  63. data/docs/GetRecordingInfo200Response.md +0 -36
  64. data/docs/GetRecordingInfo200ResponseTracksInner.md +0 -22
  65. data/docs/GetRecordingLink200Response.md +0 -20
  66. data/docs/GetTranscriptInfo200Response.md +0 -32
  67. data/docs/GetTranscriptInfo200ResponseOutParams.md +0 -22
  68. data/docs/GetTranscriptLink200Response.md +0 -22
  69. data/docs/ListAPILogs200Response.md +0 -38
  70. data/docs/ListRecordings200Response.md +0 -20
  71. data/docs/ListRecordings200ResponseDataInner.md +0 -30
  72. data/docs/ListRooms200Response.md +0 -20
  73. data/docs/ListRooms200ResponseDataInner.md +0 -30
  74. data/docs/ListRooms200ResponseDataInnerConfig.md +0 -18
  75. data/docs/ListTranscript200Response.md +0 -20
  76. data/docs/ListTranscript200ResponseDataInner.md +0 -28
  77. data/docs/LogsApi.md +0 -177
  78. data/docs/MeetingEnded.md +0 -24
  79. data/docs/MeetingEndedPayload.md +0 -24
  80. data/docs/MeetingParticipantsGetRes.md +0 -18
  81. data/docs/MeetingParticipantsGetResDataInner.md +0 -28
  82. data/docs/MeetingStarted.md +0 -24
  83. data/docs/MeetingStartedPayload.md +0 -22
  84. data/docs/MeetingTokensApi.md +0 -157
  85. data/docs/MeetingsApi.md +0 -247
  86. data/docs/MeetingsMeetingGetRes.md +0 -28
  87. data/docs/ParticipantJoined.md +0 -24
  88. data/docs/ParticipantJoinedPayload.md +0 -32
  89. data/docs/ParticipantJoinedPayloadPermissions.md +0 -22
  90. data/docs/ParticipantLeft.md +0 -24
  91. data/docs/ParticipantLeftPayload.md +0 -34
  92. data/docs/Permissions.md +0 -22
  93. data/docs/PermissionsCanAdmin.md +0 -49
  94. data/docs/PermissionsCanSend.md +0 -49
  95. data/docs/PhoneNumbersApi.md +0 -304
  96. data/docs/PinDialinInner.md +0 -22
  97. data/docs/PinDialinInnerIvrGreeting.md +0 -18
  98. data/docs/PinlessCallUpdateRequest.md +0 -22
  99. data/docs/PinlessDialinInner.md +0 -24
  100. data/docs/PostWebhook.md +0 -26
  101. data/docs/PresenceApi.md +0 -74
  102. data/docs/Properties.md +0 -62
  103. data/docs/RecordingError.md +0 -24
  104. data/docs/RecordingErrorPayload.md +0 -26
  105. data/docs/RecordingReadyToDownload.md +0 -24
  106. data/docs/RecordingReadyToDownloadPayload.md +0 -34
  107. data/docs/RecordingStarted.md +0 -24
  108. data/docs/RecordingStartedPayload.md +0 -28
  109. data/docs/RecordingStreamingOptions.md +0 -38
  110. data/docs/RecordingsApi.md +0 -303
  111. data/docs/RecordingsBucket.md +0 -26
  112. data/docs/RoomDialOutSendDTMFRequest.md +0 -20
  113. data/docs/RoomDialOutStopRequest.md +0 -18
  114. data/docs/RoomProperties.md +0 -104
  115. data/docs/RoomPropertiesStreamingEndpointsInner.md +0 -28
  116. data/docs/RoomPropertiesStreamingEndpointsInnerHlsConfigVariantsInner.md +0 -26
  117. data/docs/RoomSipCallTransferRequest.md +0 -20
  118. data/docs/RoomsApi.md +0 -1794
  119. data/docs/RoomsRoomNameGetRes.md +0 -30
  120. data/docs/RoomsRoomNamePresenceGetRes.md +0 -20
  121. data/docs/RoomsRoomNamePresenceGetResDataInner.md +0 -28
  122. data/docs/SendAppMessageRequest.md +0 -20
  123. data/docs/SetRoomConfigRequest.md +0 -20
  124. data/docs/SetSessionDataRequest.md +0 -22
  125. data/docs/StreamingEnded.md +0 -24
  126. data/docs/StreamingEndedPayload.md +0 -22
  127. data/docs/StreamingError.md +0 -24
  128. data/docs/StreamingErrorPayload.md +0 -26
  129. data/docs/StreamingStarted.md +0 -24
  130. data/docs/StreamingStartedPayload.md +0 -24
  131. data/docs/StreamingUpdated.md +0 -24
  132. data/docs/StreamingUpdatedPayload.md +0 -24
  133. data/docs/TranscriptApi.md +0 -305
  134. data/docs/TranscriptionBucket.md +0 -24
  135. data/docs/TranscriptionProperties.md +0 -34
  136. data/docs/TranscriptionPropertiesEndpointing.md +0 -49
  137. data/docs/TranscriptionPropertiesRedact.md +0 -51
  138. data/docs/UpdatePermissionsRequest.md +0 -18
  139. data/docs/UpdatePermissionsRequestDataValue.md +0 -22
  140. data/docs/UpdatePermissionsRequestDataValueCanSend.md +0 -49
  141. data/docs/UpdateWebhook.md +0 -26
  142. data/docs/ValidateMeetingToken200Response.md +0 -28
  143. data/docs/WaitingParticipantJoined.md +0 -24
  144. data/docs/WaitingParticipantJoinedPayload.md +0 -32
  145. data/docs/WaitingParticipantLeft.md +0 -24
  146. data/docs/WaitingParticipantLeftPayload.md +0 -34
  147. data/docs/Webhook.md +0 -40
  148. data/docs/WebhooksApi.md +0 -370
  149. data/example.rb +0 -69
  150. data/git_push.sh +0 -57
  151. data/pkg/daily-ruby-1.0.2.gem +0 -0
  152. data/run.sh +0 -16
  153. data/spec/api/batch_rooms_api_spec.rb +0 -58
  154. data/spec/api/dialin_api_spec.rb +0 -47
  155. data/spec/api/domain_api_spec.rb +0 -58
  156. data/spec/api/logs_api_spec.rb +0 -70
  157. data/spec/api/meeting_tokens_api_spec.rb +0 -60
  158. data/spec/api/meetings_api_spec.rb +0 -81
  159. data/spec/api/phone_numbers_api_spec.rb +0 -87
  160. data/spec/api/presence_api_spec.rb +0 -45
  161. data/spec/api/recordings_api_spec.rb +0 -86
  162. data/spec/api/rooms_api_spec.rb +0 -278
  163. data/spec/api/transcript_api_spec.rb +0 -87
  164. data/spec/api/webhooks_api_spec.rb +0 -95
  165. data/spec/models/batch_processor_error_payload_input_spec.rb +0 -58
  166. data/spec/models/batch_processor_error_payload_spec.rb +0 -64
  167. data/spec/models/batch_processor_error_spec.rb +0 -58
  168. data/spec/models/batch_processor_job_finished_payload_input_spec.rb +0 -58
  169. data/spec/models/batch_processor_job_finished_payload_output_concept_spec.rb +0 -46
  170. data/spec/models/batch_processor_job_finished_payload_output_soap_s3_config_spec.rb +0 -48
  171. data/spec/models/batch_processor_job_finished_payload_output_soap_spec.rb +0 -46
  172. data/spec/models/batch_processor_job_finished_payload_output_spec.rb +0 -54
  173. data/spec/models/batch_processor_job_finished_payload_output_summary_spec.rb +0 -46
  174. data/spec/models/batch_processor_job_finished_payload_output_transcription_inner_spec.rb +0 -46
  175. data/spec/models/batch_processor_job_finished_payload_spec.rb +0 -64
  176. data/spec/models/batch_processor_job_finished_spec.rb +0 -58
  177. data/spec/models/batch_room_create_request_rooms_inner_spec.rb +0 -48
  178. data/spec/models/batch_room_create_request_spec.rb +0 -36
  179. data/spec/models/batch_room_delete200_response_spec.rb +0 -36
  180. data/spec/models/buy_phone_number_request_spec.rb +0 -36
  181. data/spec/models/create_meeting_token200_response_spec.rb +0 -36
  182. data/spec/models/create_meeting_token_request_spec.rb +0 -36
  183. data/spec/models/create_room200_response_spec.rb +0 -72
  184. data/spec/models/create_room_request_spec.rb +0 -48
  185. data/spec/models/daily_live_streaming_options_rtmp_url_spec.rb +0 -32
  186. data/spec/models/daily_live_streaming_options_spec.rb +0 -102
  187. data/spec/models/daily_streaming_active_participant_layout_config_spec.rb +0 -40
  188. data/spec/models/daily_streaming_custom_layout_config_composition_params_value_spec.rb +0 -21
  189. data/spec/models/daily_streaming_custom_layout_config_spec.rb +0 -58
  190. data/spec/models/daily_streaming_default_layout_config_spec.rb +0 -46
  191. data/spec/models/daily_streaming_endpoint_spec.rb +0 -36
  192. data/spec/models/daily_streaming_layout_config_spec.rb +0 -38
  193. data/spec/models/daily_streaming_options_spec.rb +0 -90
  194. data/spec/models/daily_streaming_portrait_layout_config_spec.rb +0 -52
  195. data/spec/models/daily_streaming_portrait_layout_variant_spec.rb +0 -30
  196. data/spec/models/daily_streaming_single_participant_layout_config_spec.rb +0 -46
  197. data/spec/models/delete_transcript200_response_spec.rb +0 -76
  198. data/spec/models/dialout_properties_codecs_spec.rb +0 -42
  199. data/spec/models/dialout_properties_spec.rb +0 -60
  200. data/spec/models/domain_properties_spec.rb +0 -208
  201. data/spec/models/domain_spec.rb +0 -36
  202. data/spec/models/eject200_response_spec.rb +0 -36
  203. data/spec/models/eject_request_spec.rb +0 -36
  204. data/spec/models/get_domain_config200_response_config_recordings_bucket_spec.rb +0 -42
  205. data/spec/models/get_domain_config200_response_config_spec.rb +0 -144
  206. data/spec/models/get_domain_config200_response_spec.rb +0 -48
  207. data/spec/models/get_meeting_info200_response_data_inner_participants_inner_spec.rb +0 -60
  208. data/spec/models/get_meeting_info200_response_data_inner_spec.rb +0 -66
  209. data/spec/models/get_meeting_info200_response_spec.rb +0 -42
  210. data/spec/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner_spec.rb +0 -66
  211. data/spec/models/get_presence200_response_spec.rb +0 -36
  212. data/spec/models/get_recording_info200_response_spec.rb +0 -94
  213. data/spec/models/get_recording_info200_response_tracks_inner_spec.rb +0 -52
  214. data/spec/models/get_recording_link200_response_spec.rb +0 -42
  215. data/spec/models/get_transcript_info200_response_out_params_spec.rb +0 -48
  216. data/spec/models/get_transcript_info200_response_spec.rb +0 -82
  217. data/spec/models/get_transcript_link200_response_spec.rb +0 -48
  218. data/spec/models/list_api_logs200_response_spec.rb +0 -96
  219. data/spec/models/list_recordings200_response_data_inner_spec.rb +0 -72
  220. data/spec/models/list_recordings200_response_spec.rb +0 -42
  221. data/spec/models/list_rooms200_response_data_inner_config_spec.rb +0 -36
  222. data/spec/models/list_rooms200_response_data_inner_spec.rb +0 -72
  223. data/spec/models/list_rooms200_response_spec.rb +0 -42
  224. data/spec/models/list_transcript200_response_data_inner_spec.rb +0 -70
  225. data/spec/models/list_transcript200_response_spec.rb +0 -42
  226. data/spec/models/meeting_ended_payload_spec.rb +0 -54
  227. data/spec/models/meeting_ended_spec.rb +0 -58
  228. data/spec/models/meeting_participants_get_res_data_inner_spec.rb +0 -66
  229. data/spec/models/meeting_participants_get_res_spec.rb +0 -42
  230. data/spec/models/meeting_started_payload_spec.rb +0 -48
  231. data/spec/models/meeting_started_spec.rb +0 -58
  232. data/spec/models/meetings_meeting_get_res_spec.rb +0 -66
  233. data/spec/models/participant_joined_payload_permissions_spec.rb +0 -48
  234. data/spec/models/participant_joined_payload_spec.rb +0 -78
  235. data/spec/models/participant_joined_spec.rb +0 -58
  236. data/spec/models/participant_left_payload_spec.rb +0 -84
  237. data/spec/models/participant_left_spec.rb +0 -58
  238. data/spec/models/permissions_can_admin_spec.rb +0 -32
  239. data/spec/models/permissions_can_send_spec.rb +0 -32
  240. data/spec/models/permissions_spec.rb +0 -48
  241. data/spec/models/pin_dialin_inner_ivr_greeting_spec.rb +0 -36
  242. data/spec/models/pin_dialin_inner_spec.rb +0 -48
  243. data/spec/models/pinless_call_update_request_spec.rb +0 -48
  244. data/spec/models/pinless_dialin_inner_spec.rb +0 -54
  245. data/spec/models/post_webhook_spec.rb +0 -52
  246. data/spec/models/properties_spec.rb +0 -170
  247. data/spec/models/recording_error_payload_spec.rb +0 -64
  248. data/spec/models/recording_error_spec.rb +0 -58
  249. data/spec/models/recording_ready_to_download_payload_spec.rb +0 -92
  250. data/spec/models/recording_ready_to_download_spec.rb +0 -58
  251. data/spec/models/recording_started_payload_spec.rb +0 -70
  252. data/spec/models/recording_started_spec.rb +0 -58
  253. data/spec/models/recording_streaming_options_spec.rb +0 -100
  254. data/spec/models/recordings_bucket_spec.rb +0 -60
  255. data/spec/models/room_dial_out_send_dtmf_request_spec.rb +0 -42
  256. data/spec/models/room_dial_out_stop_request_spec.rb +0 -36
  257. data/spec/models/room_properties_spec.rb +0 -272
  258. data/spec/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner_spec.rb +0 -60
  259. data/spec/models/room_properties_streaming_endpoints_inner_spec.rb +0 -66
  260. data/spec/models/room_sip_call_transfer_request_spec.rb +0 -42
  261. data/spec/models/rooms_room_name_get_res_spec.rb +0 -72
  262. data/spec/models/rooms_room_name_presence_get_res_data_inner_spec.rb +0 -66
  263. data/spec/models/rooms_room_name_presence_get_res_spec.rb +0 -42
  264. data/spec/models/send_app_message_request_spec.rb +0 -42
  265. data/spec/models/set_room_config_request_spec.rb +0 -42
  266. data/spec/models/set_session_data_request_spec.rb +0 -52
  267. data/spec/models/streaming_ended_payload_spec.rb +0 -48
  268. data/spec/models/streaming_ended_spec.rb +0 -58
  269. data/spec/models/streaming_error_payload_spec.rb +0 -60
  270. data/spec/models/streaming_error_spec.rb +0 -58
  271. data/spec/models/streaming_started_payload_spec.rb +0 -54
  272. data/spec/models/streaming_started_spec.rb +0 -58
  273. data/spec/models/streaming_updated_payload_spec.rb +0 -54
  274. data/spec/models/streaming_updated_spec.rb +0 -58
  275. data/spec/models/transcription_bucket_spec.rb +0 -54
  276. data/spec/models/transcription_properties_endpointing_spec.rb +0 -32
  277. data/spec/models/transcription_properties_redact_spec.rb +0 -32
  278. data/spec/models/transcription_properties_spec.rb +0 -78
  279. data/spec/models/update_permissions_request_data_value_can_send_spec.rb +0 -32
  280. data/spec/models/update_permissions_request_data_value_spec.rb +0 -48
  281. data/spec/models/update_permissions_request_spec.rb +0 -36
  282. data/spec/models/update_webhook_spec.rb +0 -52
  283. data/spec/models/validate_meeting_token200_response_spec.rb +0 -66
  284. data/spec/models/waiting_participant_joined_payload_spec.rb +0 -78
  285. data/spec/models/waiting_participant_joined_spec.rb +0 -58
  286. data/spec/models/waiting_participant_left_payload_spec.rb +0 -84
  287. data/spec/models/waiting_participant_left_spec.rb +0 -58
  288. data/spec/models/webhook_spec.rb +0 -100
  289. data/spec/spec_helper.rb +0 -111
data/docs/WebhooksApi.md DELETED
@@ -1,370 +0,0 @@
1
- # Daily::WebhooksApi
2
-
3
- All URIs are relative to *https://api.daily.co/v1*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**create_webhook**](WebhooksApi.md#create_webhook) | **POST** /webhooks | /webhooks |
8
- | [**delete_webhook**](WebhooksApi.md#delete_webhook) | **DELETE** /webhooks/{id} | webhooks/:id |
9
- | [**get_webhook_config**](WebhooksApi.md#get_webhook_config) | **GET** /webhooks/{id} | webhooks/:id |
10
- | [**get_webhooks**](WebhooksApi.md#get_webhooks) | **GET** /webhooks | /webhooks |
11
- | [**update_webhook_config**](WebhooksApi.md#update_webhook_config) | **POST** /webhooks/{id} | webhooks/:id |
12
-
13
-
14
- ## create_webhook
15
-
16
- > <Webhook> create_webhook(opts)
17
-
18
- /webhooks
19
-
20
- Create a webhook
21
-
22
- ### Examples
23
-
24
- ```ruby
25
- require 'time'
26
- require 'daily-ruby'
27
- # setup authorization
28
- Daily.configure do |config|
29
- # Configure API key authorization: sec0
30
- config.api_key['sec0'] = 'YOUR API KEY'
31
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
32
- # config.api_key_prefix['sec0'] = 'Bearer'
33
- end
34
-
35
- api_instance = Daily::WebhooksApi.new
36
- opts = {
37
- post_webhook: Daily::PostWebhook.new # PostWebhook |
38
- }
39
-
40
- begin
41
- # /webhooks
42
- result = api_instance.create_webhook(opts)
43
- p result
44
- rescue Daily::ApiError => e
45
- puts "Error when calling WebhooksApi->create_webhook: #{e}"
46
- end
47
- ```
48
-
49
- #### Using the create_webhook_with_http_info variant
50
-
51
- This returns an Array which contains the response data, status code and headers.
52
-
53
- > <Array(<Webhook>, Integer, Hash)> create_webhook_with_http_info(opts)
54
-
55
- ```ruby
56
- begin
57
- # /webhooks
58
- data, status_code, headers = api_instance.create_webhook_with_http_info(opts)
59
- p status_code # => 2xx
60
- p headers # => { ... }
61
- p data # => <Webhook>
62
- rescue Daily::ApiError => e
63
- puts "Error when calling WebhooksApi->create_webhook_with_http_info: #{e}"
64
- end
65
- ```
66
-
67
- ### Parameters
68
-
69
- | Name | Type | Description | Notes |
70
- | ---- | ---- | ----------- | ----- |
71
- | **post_webhook** | [**PostWebhook**](PostWebhook.md) | | [optional] |
72
-
73
- ### Return type
74
-
75
- [**Webhook**](Webhook.md)
76
-
77
- ### Authorization
78
-
79
- [sec0](../README.md#sec0)
80
-
81
- ### HTTP request headers
82
-
83
- - **Content-Type**: application/json
84
- - **Accept**: application/json
85
-
86
-
87
- ## delete_webhook
88
-
89
- > Object delete_webhook(id)
90
-
91
- webhooks/:id
92
-
93
- Delete a webhook
94
-
95
- ### Examples
96
-
97
- ```ruby
98
- require 'time'
99
- require 'daily-ruby'
100
- # setup authorization
101
- Daily.configure do |config|
102
- # Configure API key authorization: sec0
103
- config.api_key['sec0'] = 'YOUR API KEY'
104
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
105
- # config.api_key_prefix['sec0'] = 'Bearer'
106
- end
107
-
108
- api_instance = Daily::WebhooksApi.new
109
- id = 'id_example' # String |
110
-
111
- begin
112
- # webhooks/:id
113
- result = api_instance.delete_webhook(id)
114
- p result
115
- rescue Daily::ApiError => e
116
- puts "Error when calling WebhooksApi->delete_webhook: #{e}"
117
- end
118
- ```
119
-
120
- #### Using the delete_webhook_with_http_info variant
121
-
122
- This returns an Array which contains the response data, status code and headers.
123
-
124
- > <Array(Object, Integer, Hash)> delete_webhook_with_http_info(id)
125
-
126
- ```ruby
127
- begin
128
- # webhooks/:id
129
- data, status_code, headers = api_instance.delete_webhook_with_http_info(id)
130
- p status_code # => 2xx
131
- p headers # => { ... }
132
- p data # => Object
133
- rescue Daily::ApiError => e
134
- puts "Error when calling WebhooksApi->delete_webhook_with_http_info: #{e}"
135
- end
136
- ```
137
-
138
- ### Parameters
139
-
140
- | Name | Type | Description | Notes |
141
- | ---- | ---- | ----------- | ----- |
142
- | **id** | **String** | | |
143
-
144
- ### Return type
145
-
146
- **Object**
147
-
148
- ### Authorization
149
-
150
- [sec0](../README.md#sec0)
151
-
152
- ### HTTP request headers
153
-
154
- - **Content-Type**: Not defined
155
- - **Accept**: application/json
156
-
157
-
158
- ## get_webhook_config
159
-
160
- > <Array<Webhook>> get_webhook_config(id)
161
-
162
- webhooks/:id
163
-
164
- Get info about a webhook
165
-
166
- ### Examples
167
-
168
- ```ruby
169
- require 'time'
170
- require 'daily-ruby'
171
- # setup authorization
172
- Daily.configure do |config|
173
- # Configure API key authorization: sec0
174
- config.api_key['sec0'] = 'YOUR API KEY'
175
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
176
- # config.api_key_prefix['sec0'] = 'Bearer'
177
- end
178
-
179
- api_instance = Daily::WebhooksApi.new
180
- id = 'id_example' # String |
181
-
182
- begin
183
- # webhooks/:id
184
- result = api_instance.get_webhook_config(id)
185
- p result
186
- rescue Daily::ApiError => e
187
- puts "Error when calling WebhooksApi->get_webhook_config: #{e}"
188
- end
189
- ```
190
-
191
- #### Using the get_webhook_config_with_http_info variant
192
-
193
- This returns an Array which contains the response data, status code and headers.
194
-
195
- > <Array(<Array<Webhook>>, Integer, Hash)> get_webhook_config_with_http_info(id)
196
-
197
- ```ruby
198
- begin
199
- # webhooks/:id
200
- data, status_code, headers = api_instance.get_webhook_config_with_http_info(id)
201
- p status_code # => 2xx
202
- p headers # => { ... }
203
- p data # => <Array<Webhook>>
204
- rescue Daily::ApiError => e
205
- puts "Error when calling WebhooksApi->get_webhook_config_with_http_info: #{e}"
206
- end
207
- ```
208
-
209
- ### Parameters
210
-
211
- | Name | Type | Description | Notes |
212
- | ---- | ---- | ----------- | ----- |
213
- | **id** | **String** | | |
214
-
215
- ### Return type
216
-
217
- [**Array&lt;Webhook&gt;**](Webhook.md)
218
-
219
- ### Authorization
220
-
221
- [sec0](../README.md#sec0)
222
-
223
- ### HTTP request headers
224
-
225
- - **Content-Type**: Not defined
226
- - **Accept**: application/json
227
-
228
-
229
- ## get_webhooks
230
-
231
- > <Array<Webhook>> get_webhooks
232
-
233
- /webhooks
234
-
235
- Get Webhooks
236
-
237
- ### Examples
238
-
239
- ```ruby
240
- require 'time'
241
- require 'daily-ruby'
242
- # setup authorization
243
- Daily.configure do |config|
244
- # Configure API key authorization: sec0
245
- config.api_key['sec0'] = 'YOUR API KEY'
246
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
247
- # config.api_key_prefix['sec0'] = 'Bearer'
248
- end
249
-
250
- api_instance = Daily::WebhooksApi.new
251
-
252
- begin
253
- # /webhooks
254
- result = api_instance.get_webhooks
255
- p result
256
- rescue Daily::ApiError => e
257
- puts "Error when calling WebhooksApi->get_webhooks: #{e}"
258
- end
259
- ```
260
-
261
- #### Using the get_webhooks_with_http_info variant
262
-
263
- This returns an Array which contains the response data, status code and headers.
264
-
265
- > <Array(<Array<Webhook>>, Integer, Hash)> get_webhooks_with_http_info
266
-
267
- ```ruby
268
- begin
269
- # /webhooks
270
- data, status_code, headers = api_instance.get_webhooks_with_http_info
271
- p status_code # => 2xx
272
- p headers # => { ... }
273
- p data # => <Array<Webhook>>
274
- rescue Daily::ApiError => e
275
- puts "Error when calling WebhooksApi->get_webhooks_with_http_info: #{e}"
276
- end
277
- ```
278
-
279
- ### Parameters
280
-
281
- This endpoint does not need any parameter.
282
-
283
- ### Return type
284
-
285
- [**Array&lt;Webhook&gt;**](Webhook.md)
286
-
287
- ### Authorization
288
-
289
- [sec0](../README.md#sec0)
290
-
291
- ### HTTP request headers
292
-
293
- - **Content-Type**: Not defined
294
- - **Accept**: application/json
295
-
296
-
297
- ## update_webhook_config
298
-
299
- > <Webhook> update_webhook_config(id, opts)
300
-
301
- webhooks/:id
302
-
303
- Update webhook config
304
-
305
- ### Examples
306
-
307
- ```ruby
308
- require 'time'
309
- require 'daily-ruby'
310
- # setup authorization
311
- Daily.configure do |config|
312
- # Configure API key authorization: sec0
313
- config.api_key['sec0'] = 'YOUR API KEY'
314
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
315
- # config.api_key_prefix['sec0'] = 'Bearer'
316
- end
317
-
318
- api_instance = Daily::WebhooksApi.new
319
- id = 'id_example' # String |
320
- opts = {
321
- update_webhook: Daily::UpdateWebhook.new # UpdateWebhook |
322
- }
323
-
324
- begin
325
- # webhooks/:id
326
- result = api_instance.update_webhook_config(id, opts)
327
- p result
328
- rescue Daily::ApiError => e
329
- puts "Error when calling WebhooksApi->update_webhook_config: #{e}"
330
- end
331
- ```
332
-
333
- #### Using the update_webhook_config_with_http_info variant
334
-
335
- This returns an Array which contains the response data, status code and headers.
336
-
337
- > <Array(<Webhook>, Integer, Hash)> update_webhook_config_with_http_info(id, opts)
338
-
339
- ```ruby
340
- begin
341
- # webhooks/:id
342
- data, status_code, headers = api_instance.update_webhook_config_with_http_info(id, opts)
343
- p status_code # => 2xx
344
- p headers # => { ... }
345
- p data # => <Webhook>
346
- rescue Daily::ApiError => e
347
- puts "Error when calling WebhooksApi->update_webhook_config_with_http_info: #{e}"
348
- end
349
- ```
350
-
351
- ### Parameters
352
-
353
- | Name | Type | Description | Notes |
354
- | ---- | ---- | ----------- | ----- |
355
- | **id** | **String** | | |
356
- | **update_webhook** | [**UpdateWebhook**](UpdateWebhook.md) | | [optional] |
357
-
358
- ### Return type
359
-
360
- [**Webhook**](Webhook.md)
361
-
362
- ### Authorization
363
-
364
- [sec0](../README.md#sec0)
365
-
366
- ### HTTP request headers
367
-
368
- - **Content-Type**: application/json
369
- - **Accept**: application/json
370
-
data/example.rb DELETED
@@ -1,69 +0,0 @@
1
- # Load the gem
2
- require 'daily-ruby'
3
-
4
- p 'Version: ' + Daily::VERSION
5
-
6
- # Setup authorization
7
- Daily.configure do |config|
8
- # Configure Bearer authorization: bearerAuth
9
- config.api_key['sec0'] = ENV['DAILY_API_KEY']
10
- config.api_key_prefix['sec0'] = 'Bearer'
11
- # Configure faraday connection
12
- # config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
13
- end
14
-
15
-
16
- room_api_instance = Daily::RoomsApi.new
17
- opts = {
18
- create_room_request: Daily::CreateRoomRequest.new(
19
- privacy: 'private',
20
- properties: {
21
- exp: (Time.now + (3600 * 2)).to_i, # Delete the room after two hours
22
- enable_mesh_sfu: true,
23
- sfu_switchover: 0.5,
24
- dialin: {
25
- display_name: 'Phone Caller',
26
- wait_for_meeting_start: true
27
- }
28
- }
29
- )
30
- }
31
-
32
- begin
33
- # Create a new room
34
- room = room_api_instance.create_room(opts)
35
- p room
36
- rescue Daily::ApiError => e
37
- puts "Error when calling RoomApi->create_room: #{e}"
38
- end
39
-
40
- meeting_token_api_instance = Daily::MeetingTokensApi.new
41
-
42
- # Create an owner meeting_token for the room with privacy set to private and
43
- # the expiration set to 2 hours from now.
44
-
45
- opts = {
46
- create_meeting_token_request: Daily::CreateMeetingTokenRequest.new({
47
- properties: {
48
- is_owner: true,
49
- room_name: room.name,
50
- exp: (Time.now + (3600 * 2)).to_i # Expire the token after two hours
51
- }
52
- })
53
- }
54
-
55
- p opts
56
-
57
-
58
- begin
59
- # Create a new meeting token
60
- meeting_token = meeting_token_api_instance.create_meeting_token(opts)
61
- p meeting_token
62
- rescue Daily::ApiError => e
63
- puts "Error when calling MeetingTokensApi->create_meeting_token: #{e}"
64
- end
65
-
66
-
67
- p "Room url: " + room.url
68
- p "Meeting token: " + meeting_token.token
69
-
data/git_push.sh DELETED
@@ -1,57 +0,0 @@
1
- #!/bin/sh
2
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
- #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
-
6
- git_user_id=$1
7
- git_repo_id=$2
8
- release_note=$3
9
- git_host=$4
10
-
11
- if [ "$git_host" = "" ]; then
12
- git_host="github.com"
13
- echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
- fi
15
-
16
- if [ "$git_user_id" = "" ]; then
17
- git_user_id="GIT_USER_ID"
18
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
- fi
20
-
21
- if [ "$git_repo_id" = "" ]; then
22
- git_repo_id="GIT_REPO_ID"
23
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
- fi
25
-
26
- if [ "$release_note" = "" ]; then
27
- release_note="Minor update"
28
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
- fi
30
-
31
- # Initialize the local directory as a Git repository
32
- git init
33
-
34
- # Adds the files in the local repository and stages them for commit.
35
- git add .
36
-
37
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
- git commit -m "$release_note"
39
-
40
- # Sets the new remote
41
- git_remote=$(git remote)
42
- if [ "$git_remote" = "" ]; then # git remote not defined
43
-
44
- if [ "$GIT_TOKEN" = "" ]; then
45
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
- git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
- else
48
- git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
- fi
50
-
51
- fi
52
-
53
- git pull origin master
54
-
55
- # Pushes (Forces) the changes in the local repository up to the remote repository
56
- echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
- git push origin master 2>&1 | grep -v 'To https'
Binary file
data/run.sh DELETED
@@ -1,16 +0,0 @@
1
- #!/bin/bash
2
-
3
- openapi-generator generate -g ruby -o . \
4
- -i ~/git/pluot-core/north-star/packages/docs-site/lib/oas/index.yaml \
5
- --additional-properties=gemName=daily-ruby \
6
- --additional-properties=moduleName=Daily \
7
- --additional-properties=gemVersion=1.0.2 \
8
- --additional-properties=gemLicense=MIT \
9
- --additional-properties=gemAuthor=Daily \
10
- --additional-properties=gemAuthorEmail=help@daily.co \
11
- --additional-properties=gemDescription="The official Daily API Ruby client" \
12
- --additional-properties=gemSummary="The official Daily API Ruby client" \
13
- --additional-properties=gemHomepage="https://www.github.com/daily-co/daily-ruby" \
14
- --additional-properties=disallowAdditionalPropertiesIfNotPresent=false \
15
- --additional-properties=library=faraday \
16
- --additional-properties=enumUnknownDefaultCase=true \
@@ -1,58 +0,0 @@
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 'spec_helper'
14
- require 'json'
15
-
16
- # Unit tests for Daily::BatchRoomsApi
17
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
- # Please update as you see appropriate
19
- describe 'BatchRoomsApi' do
20
- before do
21
- # run before each test
22
- @api_instance = Daily::BatchRoomsApi.new
23
- end
24
-
25
- after do
26
- # run after each test
27
- end
28
-
29
- describe 'test an instance of BatchRoomsApi' do
30
- it 'should create an instance of BatchRoomsApi' do
31
- expect(@api_instance).to be_instance_of(Daily::BatchRoomsApi)
32
- end
33
- end
34
-
35
- # unit tests for batch_room_create
36
- # /batch/rooms
37
- # Create rooms in bulk
38
- # @param [Hash] opts the optional parameters
39
- # @option opts [BatchRoomCreateRequest] :batch_room_create_request
40
- # @return [Array<RoomsRoomNameGetRes>]
41
- describe 'batch_room_create test' do
42
- it 'should work' do
43
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
- end
45
- end
46
-
47
- # unit tests for batch_room_delete
48
- # /batch/rooms
49
- # Delete rooms in bulk
50
- # @param [Hash] opts the optional parameters
51
- # @return [BatchRoomDelete200Response]
52
- describe 'batch_room_delete test' do
53
- it 'should work' do
54
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
- end
56
- end
57
-
58
- end
@@ -1,47 +0,0 @@
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
- Generator version: 7.5.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
-
16
- # Unit tests for Daily::DialinApi
17
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
- # Please update as you see appropriate
19
- describe 'DialinApi' do
20
- before do
21
- # run before each test
22
- @api_instance = Daily::DialinApi.new
23
- end
24
-
25
- after do
26
- # run after each test
27
- end
28
-
29
- describe 'test an instance of DialinApi' do
30
- it 'should create an instance of DialinApi' do
31
- expect(@api_instance).to be_instance_of(Daily::DialinApi)
32
- end
33
- end
34
-
35
- # unit tests for pinless_call_update
36
- # /dialin/pinlessCallUpdate
37
- # Direct a SIP or PSTN call on hold to a specified SIP URI associated to a Daily Room.
38
- # @param [Hash] opts the optional parameters
39
- # @option opts [PinlessCallUpdateRequest] :pinless_call_update_request
40
- # @return [nil]
41
- describe 'pinless_call_update test' do
42
- it 'should work' do
43
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
- end
45
- end
46
-
47
- end
@@ -1,58 +0,0 @@
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 'spec_helper'
14
- require 'json'
15
-
16
- # Unit tests for Daily::DomainApi
17
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
- # Please update as you see appropriate
19
- describe 'DomainApi' do
20
- before do
21
- # run before each test
22
- @api_instance = Daily::DomainApi.new
23
- end
24
-
25
- after do
26
- # run after each test
27
- end
28
-
29
- describe 'test an instance of DomainApi' do
30
- it 'should create an instance of DomainApi' do
31
- expect(@api_instance).to be_instance_of(Daily::DomainApi)
32
- end
33
- end
34
-
35
- # unit tests for get_domain_config
36
- # Get domain configuration
37
- # Get top-level configuration of your domain
38
- # @param [Hash] opts the optional parameters
39
- # @return [GetDomainConfig200Response]
40
- describe 'get_domain_config test' do
41
- it 'should work' do
42
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
- end
44
- end
45
-
46
- # unit tests for set_domain_config
47
- # Set domain configuration
48
- # Set top-level configuration options for your domain
49
- # @param [Hash] opts the optional parameters
50
- # @option opts [Domain] :domain
51
- # @return [nil]
52
- describe 'set_domain_config test' do
53
- it 'should work' do
54
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
- end
56
- end
57
-
58
- end