daily-ruby 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -1
  3. data/Gemfile.lock +9 -28
  4. data/README.md +62 -52
  5. data/daily-ruby.gemspec +4 -3
  6. data/docs/BatchProcessorError.md +24 -0
  7. data/docs/BatchProcessorErrorPayload.md +26 -0
  8. data/docs/BatchProcessorErrorPayloadInput.md +24 -0
  9. data/docs/BatchProcessorJobFinished.md +24 -0
  10. data/docs/BatchProcessorJobFinishedPayload.md +26 -0
  11. data/docs/BatchProcessorJobFinishedPayloadInput.md +24 -0
  12. data/docs/BatchProcessorJobFinishedPayloadOutput.md +24 -0
  13. data/docs/BatchProcessorJobFinishedPayloadOutputConcept.md +20 -0
  14. data/docs/BatchProcessorJobFinishedPayloadOutputSoap.md +20 -0
  15. data/docs/BatchProcessorJobFinishedPayloadOutputSoapS3Config.md +22 -0
  16. data/docs/BatchProcessorJobFinishedPayloadOutputSummary.md +20 -0
  17. data/docs/BatchProcessorJobFinishedPayloadOutputTranscriptionInner.md +20 -0
  18. data/docs/BuyPhoneNumberRequest.md +18 -0
  19. data/docs/DailyStreamingCustomLayoutConfig.md +1 -1
  20. data/docs/DailyStreamingCustomLayoutConfigCompositionParamsValue.md +15 -0
  21. data/docs/DialinApi.md +80 -0
  22. data/docs/DialoutProperties.md +26 -0
  23. data/docs/DialoutPropertiesCodecs.md +20 -0
  24. data/docs/DomainProperties.md +14 -4
  25. data/docs/EjectRequest.md +6 -2
  26. data/docs/GetDomainConfig200ResponseConfig.md +2 -0
  27. data/docs/GetTranscriptInfo200Response.md +1 -1
  28. data/docs/ListAPILogs200Response.md +1 -1
  29. data/docs/MeetingEnded.md +24 -0
  30. data/docs/MeetingEndedPayload.md +24 -0
  31. data/docs/MeetingParticipantsGetRes.md +0 -2
  32. data/docs/MeetingStarted.md +24 -0
  33. data/docs/MeetingStartedPayload.md +22 -0
  34. data/docs/ParticipantJoined.md +24 -0
  35. data/docs/ParticipantJoinedPayload.md +32 -0
  36. data/docs/ParticipantJoinedPayloadPermissions.md +22 -0
  37. data/docs/ParticipantLeft.md +24 -0
  38. data/docs/ParticipantLeftPayload.md +34 -0
  39. data/docs/PhoneNumbersApi.md +304 -0
  40. data/docs/PinDialinInner.md +22 -0
  41. data/docs/PinDialinInnerIvrGreeting.md +18 -0
  42. data/docs/PinlessCallUpdateRequest.md +22 -0
  43. data/docs/PinlessDialinInner.md +24 -0
  44. data/docs/PostWebhook.md +5 -1
  45. data/docs/Properties.md +3 -1
  46. data/docs/RecordingError.md +1 -1
  47. data/docs/RecordingReadyToDownload.md +1 -1
  48. data/docs/RecordingStarted.md +1 -1
  49. data/docs/RoomDialOutSendDTMFRequest.md +20 -0
  50. data/docs/RoomDialOutStopRequest.md +18 -0
  51. data/docs/RoomProperties.md +12 -2
  52. data/docs/RoomSipCallTransferRequest.md +20 -0
  53. data/docs/RoomsApi.md +376 -0
  54. data/docs/StreamingEnded.md +1 -1
  55. data/docs/StreamingError.md +1 -1
  56. data/docs/StreamingStarted.md +1 -1
  57. data/docs/StreamingUpdated.md +1 -1
  58. data/docs/TranscriptionProperties.md +4 -2
  59. data/docs/UpdateWebhook.md +5 -1
  60. data/docs/WaitingParticipantJoined.md +24 -0
  61. data/docs/WaitingParticipantJoinedPayload.md +32 -0
  62. data/docs/WaitingParticipantLeft.md +24 -0
  63. data/docs/WaitingParticipantLeftPayload.md +34 -0
  64. data/docs/Webhook.md +6 -4
  65. data/example.rb +12 -4
  66. data/lib/daily-ruby/api/batch_rooms_api.rb +3 -3
  67. data/lib/daily-ruby/api/dialin_api.rb +86 -0
  68. data/lib/daily-ruby/api/domain_api.rb +3 -3
  69. data/lib/daily-ruby/api/logs_api.rb +4 -4
  70. data/lib/daily-ruby/api/meeting_tokens_api.rb +3 -3
  71. data/lib/daily-ruby/api/meetings_api.rb +4 -4
  72. data/lib/daily-ruby/api/phone_numbers_api.rb +281 -0
  73. data/lib/daily-ruby/api/presence_api.rb +2 -2
  74. data/lib/daily-ruby/api/recordings_api.rb +5 -5
  75. data/lib/daily-ruby/api/rooms_api.rb +370 -20
  76. data/lib/daily-ruby/api/transcript_api.rb +6 -6
  77. data/lib/daily-ruby/api/webhooks_api.rb +6 -6
  78. data/lib/daily-ruby/api_client.rb +34 -28
  79. data/lib/daily-ruby/api_error.rb +1 -1
  80. data/lib/daily-ruby/configuration.rb +11 -1
  81. data/lib/daily-ruby/models/batch_processor_error.rb +278 -0
  82. data/lib/daily-ruby/models/batch_processor_error_payload.rb +289 -0
  83. data/lib/daily-ruby/models/batch_processor_error_payload_input.rb +280 -0
  84. data/lib/daily-ruby/models/batch_processor_job_finished.rb +278 -0
  85. data/lib/daily-ruby/models/batch_processor_job_finished_payload.rb +288 -0
  86. data/lib/daily-ruby/models/batch_processor_job_finished_payload_input.rb +280 -0
  87. data/lib/daily-ruby/models/batch_processor_job_finished_payload_output.rb +245 -0
  88. data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_concept.rb +259 -0
  89. data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_soap.rb +259 -0
  90. data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_soap_s3_config.rb +236 -0
  91. data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_summary.rb +259 -0
  92. data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_transcription_inner.rb +258 -0
  93. data/lib/daily-ruby/models/batch_room_create_request.rb +1 -1
  94. data/lib/daily-ruby/models/batch_room_create_request_rooms_inner.rb +1 -1
  95. data/lib/daily-ruby/models/batch_room_delete200_response.rb +1 -1
  96. data/lib/daily-ruby/models/buy_phone_number_request.rb +215 -0
  97. data/lib/daily-ruby/models/create_meeting_token200_response.rb +1 -1
  98. data/lib/daily-ruby/models/create_meeting_token_request.rb +1 -1
  99. data/lib/daily-ruby/models/create_room200_response.rb +1 -1
  100. data/lib/daily-ruby/models/create_room_request.rb +1 -1
  101. data/lib/daily-ruby/models/daily_live_streaming_options.rb +1 -1
  102. data/lib/daily-ruby/models/daily_live_streaming_options_rtmp_url.rb +1 -1
  103. data/lib/daily-ruby/models/daily_streaming_active_participant_layout_config.rb +3 -3
  104. data/lib/daily-ruby/models/daily_streaming_custom_layout_config.rb +4 -4
  105. data/lib/daily-ruby/models/daily_streaming_custom_layout_config_composition_params.rb +1 -1
  106. data/lib/daily-ruby/models/daily_streaming_custom_layout_config_composition_params_value.rb +105 -0
  107. data/lib/daily-ruby/models/daily_streaming_default_layout_config.rb +3 -3
  108. data/lib/daily-ruby/models/daily_streaming_endpoint.rb +1 -1
  109. data/lib/daily-ruby/models/daily_streaming_layout_config.rb +1 -1
  110. data/lib/daily-ruby/models/daily_streaming_options.rb +1 -1
  111. data/lib/daily-ruby/models/daily_streaming_portrait_layout_config.rb +3 -3
  112. data/lib/daily-ruby/models/daily_streaming_portrait_layout_variant.rb +3 -2
  113. data/lib/daily-ruby/models/daily_streaming_single_participant_layout_config.rb +3 -3
  114. data/lib/daily-ruby/models/delete_transcript200_response.rb +3 -3
  115. data/lib/daily-ruby/models/dialout_properties.rb +254 -0
  116. data/lib/daily-ruby/models/dialout_properties_codecs.rb +228 -0
  117. data/lib/daily-ruby/models/domain.rb +1 -1
  118. data/lib/daily-ruby/models/domain_properties.rb +74 -16
  119. data/lib/daily-ruby/models/eject200_response.rb +1 -1
  120. data/lib/daily-ruby/models/eject_request.rb +30 -6
  121. data/lib/daily-ruby/models/get_domain_config200_response.rb +1 -1
  122. data/lib/daily-ruby/models/get_domain_config200_response_config.rb +11 -2
  123. data/lib/daily-ruby/models/get_domain_config200_response_config_recordings_bucket.rb +1 -1
  124. data/lib/daily-ruby/models/get_meeting_info200_response.rb +1 -1
  125. data/lib/daily-ruby/models/get_meeting_info200_response_data_inner.rb +1 -1
  126. data/lib/daily-ruby/models/get_meeting_info200_response_data_inner_participants_inner.rb +1 -1
  127. data/lib/daily-ruby/models/get_presence200_response.rb +1 -1
  128. data/lib/daily-ruby/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner.rb +1 -1
  129. data/lib/daily-ruby/models/get_recording_info200_response.rb +3 -3
  130. data/lib/daily-ruby/models/get_recording_info200_response_tracks_inner.rb +3 -3
  131. data/lib/daily-ruby/models/get_recording_link200_response.rb +1 -1
  132. data/lib/daily-ruby/models/get_transcript_info200_response.rb +4 -4
  133. data/lib/daily-ruby/models/get_transcript_info200_response_out_params.rb +2 -1
  134. data/lib/daily-ruby/models/get_transcript_link200_response.rb +1 -1
  135. data/lib/daily-ruby/models/list_api_logs200_response.rb +2 -2
  136. data/lib/daily-ruby/models/list_recordings200_response.rb +1 -1
  137. data/lib/daily-ruby/models/list_recordings200_response_data_inner.rb +1 -1
  138. data/lib/daily-ruby/models/list_rooms200_response.rb +1 -1
  139. data/lib/daily-ruby/models/list_rooms200_response_data_inner.rb +1 -1
  140. data/lib/daily-ruby/models/list_rooms200_response_data_inner_config.rb +1 -1
  141. data/lib/daily-ruby/models/list_transcript200_response.rb +1 -1
  142. data/lib/daily-ruby/models/list_transcript200_response_data_inner.rb +3 -3
  143. data/lib/daily-ruby/models/meeting_ended.rb +278 -0
  144. data/lib/daily-ruby/models/meeting_ended_payload.rb +246 -0
  145. data/lib/daily-ruby/models/meeting_participants_get_res.rb +2 -11
  146. data/lib/daily-ruby/models/meeting_participants_get_res_data_inner.rb +1 -1
  147. data/lib/daily-ruby/models/meeting_started.rb +278 -0
  148. data/lib/daily-ruby/models/meeting_started_payload.rb +236 -0
  149. data/lib/daily-ruby/models/meetings_meeting_get_res.rb +1 -1
  150. data/lib/daily-ruby/models/participant_joined.rb +278 -0
  151. data/lib/daily-ruby/models/participant_joined_payload.rb +285 -0
  152. data/lib/daily-ruby/models/participant_joined_payload_permissions.rb +240 -0
  153. data/lib/daily-ruby/models/participant_left.rb +278 -0
  154. data/lib/daily-ruby/models/participant_left_payload.rb +295 -0
  155. data/lib/daily-ruby/models/permissions.rb +1 -1
  156. data/lib/daily-ruby/models/permissions_can_admin.rb +1 -1
  157. data/lib/daily-ruby/models/permissions_can_send.rb +1 -1
  158. data/lib/daily-ruby/models/pin_dialin_inner.rb +234 -0
  159. data/lib/daily-ruby/models/pin_dialin_inner_ivr_greeting.rb +215 -0
  160. data/lib/daily-ruby/models/pinless_call_update_request.rb +235 -0
  161. data/lib/daily-ruby/models/pinless_dialin_inner.rb +245 -0
  162. data/lib/daily-ruby/models/post_webhook.rb +37 -5
  163. data/lib/daily-ruby/models/properties.rb +17 -7
  164. data/lib/daily-ruby/models/recording_error.rb +4 -4
  165. data/lib/daily-ruby/models/recording_error_payload.rb +3 -3
  166. data/lib/daily-ruby/models/recording_ready_to_download.rb +4 -4
  167. data/lib/daily-ruby/models/recording_ready_to_download_payload.rb +5 -5
  168. data/lib/daily-ruby/models/recording_started.rb +4 -4
  169. data/lib/daily-ruby/models/recording_started_payload.rb +3 -3
  170. data/lib/daily-ruby/models/recording_streaming_options.rb +3 -3
  171. data/lib/daily-ruby/models/recordings_bucket.rb +1 -1
  172. data/lib/daily-ruby/models/room_dial_out_send_dtmf_request.rb +224 -0
  173. data/lib/daily-ruby/models/room_dial_out_stop_request.rb +215 -0
  174. data/lib/daily-ruby/models/room_properties.rb +67 -9
  175. data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner.rb +267 -267
  176. data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner.rb +1 -1
  177. data/lib/daily-ruby/models/room_sip_call_transfer_request.rb +224 -0
  178. data/lib/daily-ruby/models/rooms_room_name_get_res.rb +1 -1
  179. data/lib/daily-ruby/models/rooms_room_name_presence_get_res.rb +1 -1
  180. data/lib/daily-ruby/models/rooms_room_name_presence_get_res_data_inner.rb +1 -1
  181. data/lib/daily-ruby/models/send_app_message_request.rb +1 -1
  182. data/lib/daily-ruby/models/set_room_config_request.rb +1 -1
  183. data/lib/daily-ruby/models/set_session_data_request.rb +3 -3
  184. data/lib/daily-ruby/models/streaming_ended.rb +4 -4
  185. data/lib/daily-ruby/models/streaming_ended_payload.rb +1 -1
  186. data/lib/daily-ruby/models/streaming_error.rb +4 -4
  187. data/lib/daily-ruby/models/streaming_error_payload.rb +1 -1
  188. data/lib/daily-ruby/models/streaming_started.rb +4 -4
  189. data/lib/daily-ruby/models/streaming_started_payload.rb +1 -1
  190. data/lib/daily-ruby/models/streaming_updated.rb +4 -4
  191. data/lib/daily-ruby/models/streaming_updated_payload.rb +1 -1
  192. data/lib/daily-ruby/models/transcription_bucket.rb +1 -1
  193. data/lib/daily-ruby/models/transcription_properties.rb +16 -6
  194. data/lib/daily-ruby/models/transcription_properties_endpointing.rb +1 -1
  195. data/lib/daily-ruby/models/transcription_properties_redact.rb +1 -1
  196. data/lib/daily-ruby/models/update_permissions_request.rb +1 -1
  197. data/lib/daily-ruby/models/update_permissions_request_data_value.rb +1 -1
  198. data/lib/daily-ruby/models/update_permissions_request_data_value_can_send.rb +1 -1
  199. data/lib/daily-ruby/models/update_webhook.rb +37 -5
  200. data/lib/daily-ruby/models/validate_meeting_token200_response.rb +1 -1
  201. data/lib/daily-ruby/models/waiting_participant_joined.rb +278 -0
  202. data/lib/daily-ruby/models/waiting_participant_joined_payload.rb +285 -0
  203. data/lib/daily-ruby/models/waiting_participant_left.rb +278 -0
  204. data/lib/daily-ruby/models/waiting_participant_left_payload.rb +295 -0
  205. data/lib/daily-ruby/models/webhook.rb +32 -10
  206. data/lib/daily-ruby/version.rb +2 -2
  207. data/lib/daily-ruby.rb +39 -2
  208. data/pkg/daily-ruby-1.0.2.gem +0 -0
  209. data/run.sh +3 -3
  210. data/spec/api/dialin_api_spec.rb +47 -0
  211. data/spec/api/phone_numbers_api_spec.rb +87 -0
  212. data/spec/models/batch_processor_error_payload_input_spec.rb +58 -0
  213. data/spec/models/batch_processor_error_payload_spec.rb +64 -0
  214. data/spec/models/batch_processor_error_spec.rb +58 -0
  215. data/spec/models/batch_processor_job_finished_payload_input_spec.rb +58 -0
  216. data/spec/models/batch_processor_job_finished_payload_output_concept_spec.rb +46 -0
  217. data/spec/models/batch_processor_job_finished_payload_output_soap_s3_config_spec.rb +48 -0
  218. data/spec/models/batch_processor_job_finished_payload_output_soap_spec.rb +46 -0
  219. data/spec/models/batch_processor_job_finished_payload_output_spec.rb +54 -0
  220. data/spec/models/batch_processor_job_finished_payload_output_summary_spec.rb +46 -0
  221. data/spec/models/batch_processor_job_finished_payload_output_transcription_inner_spec.rb +46 -0
  222. data/spec/models/batch_processor_job_finished_payload_spec.rb +64 -0
  223. data/spec/models/batch_processor_job_finished_spec.rb +58 -0
  224. data/spec/models/buy_phone_number_request_spec.rb +36 -0
  225. data/spec/models/{daily_streaming_custom_layout_config_composition_params_spec.rb → daily_streaming_custom_layout_config_composition_params_value_spec.rb} +3 -3
  226. data/spec/models/dialout_properties_codecs_spec.rb +42 -0
  227. data/spec/models/dialout_properties_spec.rb +60 -0
  228. data/spec/models/meeting_ended_payload_spec.rb +54 -0
  229. data/spec/models/meeting_ended_spec.rb +58 -0
  230. data/spec/models/meeting_started_payload_spec.rb +48 -0
  231. data/spec/models/meeting_started_spec.rb +58 -0
  232. data/spec/models/participant_joined_payload_permissions_spec.rb +48 -0
  233. data/spec/models/participant_joined_payload_spec.rb +78 -0
  234. data/spec/models/participant_joined_spec.rb +58 -0
  235. data/spec/models/participant_left_payload_spec.rb +84 -0
  236. data/spec/models/participant_left_spec.rb +58 -0
  237. data/spec/models/pin_dialin_inner_ivr_greeting_spec.rb +36 -0
  238. data/spec/models/pin_dialin_inner_spec.rb +48 -0
  239. data/spec/models/pinless_call_update_request_spec.rb +48 -0
  240. data/spec/models/pinless_dialin_inner_spec.rb +54 -0
  241. data/spec/models/room_dial_out_send_dtmf_request_spec.rb +42 -0
  242. data/spec/models/room_dial_out_stop_request_spec.rb +36 -0
  243. data/spec/models/room_sip_call_transfer_request_spec.rb +42 -0
  244. data/spec/models/waiting_participant_joined_payload_spec.rb +78 -0
  245. data/spec/models/waiting_participant_joined_spec.rb +58 -0
  246. data/spec/models/waiting_participant_left_payload_spec.rb +84 -0
  247. data/spec/models/waiting_participant_left_spec.rb +58 -0
  248. data/spec/spec_helper.rb +1 -1
  249. metadata +171 -6
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.1.1
7
7
  Contact: help@daily.co
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -47,7 +47,7 @@ module Daily
47
47
  # header parameters
48
48
  header_params = opts[:header_params] || {}
49
49
  # HTTP header 'Accept' (if needed)
50
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
50
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
51
51
  # HTTP header 'Content-Type'
52
52
  content_type = @api_client.select_header_content_type(['application/json'])
53
53
  if !content_type.nil?
@@ -109,7 +109,7 @@ module Daily
109
109
  # header parameters
110
110
  header_params = opts[:header_params] || {}
111
111
  # HTTP header 'Accept' (if needed)
112
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
112
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
113
113
 
114
114
  # form parameters
115
115
  form_params = opts[:form_params] || {}
@@ -0,0 +1,86 @@
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.8.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Daily
16
+ class DialinApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # /dialin/pinlessCallUpdate
23
+ # Direct a SIP or PSTN call on hold to a specified SIP URI associated to a Daily Room.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [PinlessCallUpdateRequest] :pinless_call_update_request
26
+ # @return [nil]
27
+ def pinless_call_update(opts = {})
28
+ pinless_call_update_with_http_info(opts)
29
+ nil
30
+ end
31
+
32
+ # /dialin/pinlessCallUpdate
33
+ # Direct a SIP or PSTN call on hold to a specified SIP URI associated to a Daily Room.
34
+ # @param [Hash] opts the optional parameters
35
+ # @option opts [PinlessCallUpdateRequest] :pinless_call_update_request
36
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
+ def pinless_call_update_with_http_info(opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: DialinApi.pinless_call_update ...'
40
+ end
41
+ # resource path
42
+ local_var_path = '/dialin/pinlessCallUpdate'
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']) unless header_params['Accept']
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[:'pinless_call_update_request'])
62
+
63
+ # return_type
64
+ return_type = opts[:debug_return_type]
65
+
66
+ # auth_names
67
+ auth_names = opts[:debug_auth_names] || ['sec0']
68
+
69
+ new_options = opts.merge(
70
+ :operation => :"DialinApi.pinless_call_update",
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: DialinApi#pinless_call_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+ end
86
+ end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.1.1
7
7
  Contact: help@daily.co
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -45,7 +45,7 @@ module Daily
45
45
  # header parameters
46
46
  header_params = opts[:header_params] || {}
47
47
  # HTTP header 'Accept' (if needed)
48
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
48
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
49
49
 
50
50
  # form parameters
51
51
  form_params = opts[:form_params] || {}
@@ -104,7 +104,7 @@ module Daily
104
104
  # header parameters
105
105
  header_params = opts[:header_params] || {}
106
106
  # HTTP header 'Accept' (if needed)
107
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
107
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
108
108
  # HTTP header 'Content-Type'
109
109
  content_type = @api_client.select_header_content_type(['application/json'])
110
110
  if !content_type.nil?
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.1.1
7
7
  Contact: help@daily.co
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -58,7 +58,7 @@ module Daily
58
58
  # header parameters
59
59
  header_params = opts[:header_params] || {}
60
60
  # HTTP header 'Accept' (if needed)
61
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
62
62
 
63
63
  # form parameters
64
64
  form_params = opts[:form_params] || {}
@@ -124,7 +124,7 @@ module Daily
124
124
  if @api_client.config.debugging
125
125
  @api_client.config.logger.debug 'Calling API: LogsApi.list_logs ...'
126
126
  end
127
- allowable_values = ["ERROR", "INFO", "DEBUG"]
127
+ allowable_values = ["ERROR", "INFO", "DEBUG", "unknown_default_open_api"]
128
128
  if @api_client.config.client_side_validation && opts[:'log_level'] && !allowable_values.include?(opts[:'log_level'])
129
129
  fail ArgumentError, "invalid value for \"log_level\", must be one of #{allowable_values}"
130
130
  end
@@ -147,7 +147,7 @@ module Daily
147
147
  # header parameters
148
148
  header_params = opts[:header_params] || {}
149
149
  # HTTP header 'Accept' (if needed)
150
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
150
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
151
151
 
152
152
  # form parameters
153
153
  form_params = opts[:form_params] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.1.1
7
7
  Contact: help@daily.co
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -47,7 +47,7 @@ module Daily
47
47
  # header parameters
48
48
  header_params = opts[:header_params] || {}
49
49
  # HTTP header 'Accept' (if needed)
50
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
50
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
51
51
  # HTTP header 'Content-Type'
52
52
  content_type = @api_client.select_header_content_type(['application/json'])
53
53
  if !content_type.nil?
@@ -118,7 +118,7 @@ module Daily
118
118
  # header parameters
119
119
  header_params = opts[:header_params] || {}
120
120
  # HTTP header 'Accept' (if needed)
121
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
121
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
122
122
 
123
123
  # form parameters
124
124
  form_params = opts[:form_params] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.1.1
7
7
  Contact: help@daily.co
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -51,7 +51,7 @@ module Daily
51
51
  # header parameters
52
52
  header_params = opts[:header_params] || {}
53
53
  # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
55
55
 
56
56
  # form parameters
57
57
  form_params = opts[:form_params] || {}
@@ -132,7 +132,7 @@ module Daily
132
132
  # header parameters
133
133
  header_params = opts[:header_params] || {}
134
134
  # HTTP header 'Accept' (if needed)
135
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
135
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
136
136
 
137
137
  # form parameters
138
138
  form_params = opts[:form_params] || {}
@@ -204,7 +204,7 @@ module Daily
204
204
  # header parameters
205
205
  header_params = opts[:header_params] || {}
206
206
  # HTTP header 'Accept' (if needed)
207
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
207
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
208
208
 
209
209
  # form parameters
210
210
  form_params = opts[:form_params] || {}
@@ -0,0 +1,281 @@
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.8.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Daily
16
+ class PhoneNumbersApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # /buy-phone-number
23
+ # This will buy a phone number. In the POST request you can either provide the phone number you want to buy, or leave it empty. If the specified `number` is still available, it will be bought or the API will return a failure. Alternatively, if you skipped the `number` field, a random phone number from California (CA) will be bought.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [BuyPhoneNumberRequest] :buy_phone_number_request
26
+ # @return [Object]
27
+ def buy_phone_number(opts = {})
28
+ data, _status_code, _headers = buy_phone_number_with_http_info(opts)
29
+ data
30
+ end
31
+
32
+ # /buy-phone-number
33
+ # This will buy a phone number. In the POST request you can either provide the phone number you want to buy, or leave it empty. If the specified &#x60;number&#x60; is still available, it will be bought or the API will return a failure. Alternatively, if you skipped the &#x60;number&#x60; field, a random phone number from California (CA) will be bought.
34
+ # @param [Hash] opts the optional parameters
35
+ # @option opts [BuyPhoneNumberRequest] :buy_phone_number_request
36
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
37
+ def buy_phone_number_with_http_info(opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: PhoneNumbersApi.buy_phone_number ...'
40
+ end
41
+ # resource path
42
+ local_var_path = '/buy-phone-number'
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']) unless header_params['Accept']
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[:'buy_phone_number_request'])
62
+
63
+ # return_type
64
+ return_type = opts[:debug_return_type] || 'Object'
65
+
66
+ # auth_names
67
+ auth_names = opts[:debug_auth_names] || ['sec0']
68
+
69
+ new_options = opts.merge(
70
+ :operation => :"PhoneNumbersApi.buy_phone_number",
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: PhoneNumbersApi#buy_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # /list-available-numbers
87
+ # Search for available phone numbers to purchase
88
+ # @param [Hash] opts the optional parameters
89
+ # @option opts [String] :areacode An areacode to search within.
90
+ # @option opts [String] :region A region or state to search within. Must be an ISO 3166-2 alpha-2 code, i.e. CA for California. Cannot be used in combination with areacode.
91
+ # @option opts [String] :city A specific City to search within. Example, New York. The string must be url encoded because it is a url parameter. Must be used in combination with region. Cannot be used in combination with areacode, starts_with, contains, or ends_with.
92
+ # @option opts [String] :contains A string of 3 to 7 digits that should appear somewhere in the number.
93
+ # @option opts [String] :starts_with A string of 3 to 7 digits that should be used as the start of a number. Cannot be used in combination with contains or ends_with.
94
+ # @option opts [String] :ends_with A string of 3 to 7 digits that should be used as the end of a number. Cannot be used in combination with starts_with or contains.
95
+ # @return [nil]
96
+ def list_available_numbers(opts = {})
97
+ list_available_numbers_with_http_info(opts)
98
+ nil
99
+ end
100
+
101
+ # /list-available-numbers
102
+ # Search for available phone numbers to purchase
103
+ # @param [Hash] opts the optional parameters
104
+ # @option opts [String] :areacode An areacode to search within.
105
+ # @option opts [String] :region A region or state to search within. Must be an ISO 3166-2 alpha-2 code, i.e. CA for California. Cannot be used in combination with areacode.
106
+ # @option opts [String] :city A specific City to search within. Example, New York. The string must be url encoded because it is a url parameter. Must be used in combination with region. Cannot be used in combination with areacode, starts_with, contains, or ends_with.
107
+ # @option opts [String] :contains A string of 3 to 7 digits that should appear somewhere in the number.
108
+ # @option opts [String] :starts_with A string of 3 to 7 digits that should be used as the start of a number. Cannot be used in combination with contains or ends_with.
109
+ # @option opts [String] :ends_with A string of 3 to 7 digits that should be used as the end of a number. Cannot be used in combination with starts_with or contains.
110
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
111
+ def list_available_numbers_with_http_info(opts = {})
112
+ if @api_client.config.debugging
113
+ @api_client.config.logger.debug 'Calling API: PhoneNumbersApi.list_available_numbers ...'
114
+ end
115
+ # resource path
116
+ local_var_path = '/list-available-numbers'
117
+
118
+ # query parameters
119
+ query_params = opts[:query_params] || {}
120
+ query_params[:'areacode'] = opts[:'areacode'] if !opts[:'areacode'].nil?
121
+ query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
122
+ query_params[:'city'] = opts[:'city'] if !opts[:'city'].nil?
123
+ query_params[:'contains'] = opts[:'contains'] if !opts[:'contains'].nil?
124
+ query_params[:'starts_with'] = opts[:'starts_with'] if !opts[:'starts_with'].nil?
125
+ query_params[:'ends_with'] = opts[:'ends_with'] if !opts[:'ends_with'].nil?
126
+
127
+ # header parameters
128
+ header_params = opts[:header_params] || {}
129
+ # HTTP header 'Accept' (if needed)
130
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
131
+
132
+ # form parameters
133
+ form_params = opts[:form_params] || {}
134
+
135
+ # http body (model)
136
+ post_body = opts[:debug_body]
137
+
138
+ # return_type
139
+ return_type = opts[:debug_return_type]
140
+
141
+ # auth_names
142
+ auth_names = opts[:debug_auth_names] || ['sec0']
143
+
144
+ new_options = opts.merge(
145
+ :operation => :"PhoneNumbersApi.list_available_numbers",
146
+ :header_params => header_params,
147
+ :query_params => query_params,
148
+ :form_params => form_params,
149
+ :body => post_body,
150
+ :auth_names => auth_names,
151
+ :return_type => return_type
152
+ )
153
+
154
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
155
+ if @api_client.config.debugging
156
+ @api_client.config.logger.debug "API called: PhoneNumbersApi#list_available_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
157
+ end
158
+ return data, status_code, headers
159
+ end
160
+
161
+ # /purchased-phone-numbers
162
+ # List the purchased phone numbers for this domain
163
+ # @param [Hash] opts the optional parameters
164
+ # @return [nil]
165
+ def purchased_phone_nunbers(opts = {})
166
+ purchased_phone_nunbers_with_http_info(opts)
167
+ nil
168
+ end
169
+
170
+ # /purchased-phone-numbers
171
+ # List the purchased phone numbers for this domain
172
+ # @param [Hash] opts the optional parameters
173
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
174
+ def purchased_phone_nunbers_with_http_info(opts = {})
175
+ if @api_client.config.debugging
176
+ @api_client.config.logger.debug 'Calling API: PhoneNumbersApi.purchased_phone_nunbers ...'
177
+ end
178
+ # resource path
179
+ local_var_path = '/purchased-phone-numbers'
180
+
181
+ # query parameters
182
+ query_params = opts[:query_params] || {}
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']) unless header_params['Accept']
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]
197
+
198
+ # auth_names
199
+ auth_names = opts[:debug_auth_names] || ['sec0']
200
+
201
+ new_options = opts.merge(
202
+ :operation => :"PhoneNumbersApi.purchased_phone_nunbers",
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: PhoneNumbersApi#purchased_phone_nunbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
214
+ end
215
+ return data, status_code, headers
216
+ end
217
+
218
+ # release-phone-number/:id
219
+ # Release a purchased number. The number is referenced by its id. A number cannot be deleted within the 14 days of purchase. Calling this API before this period expires results in an error.
220
+ # @param id [String]
221
+ # @param [Hash] opts the optional parameters
222
+ # @return [Object]
223
+ def release_phone_number(id, opts = {})
224
+ data, _status_code, _headers = release_phone_number_with_http_info(id, opts)
225
+ data
226
+ end
227
+
228
+ # release-phone-number/:id
229
+ # Release a purchased number. The number is referenced by its id. A number cannot be deleted within the 14 days of purchase. Calling this API before this period expires results in an error.
230
+ # @param id [String]
231
+ # @param [Hash] opts the optional parameters
232
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
233
+ def release_phone_number_with_http_info(id, opts = {})
234
+ if @api_client.config.debugging
235
+ @api_client.config.logger.debug 'Calling API: PhoneNumbersApi.release_phone_number ...'
236
+ end
237
+ # verify the required parameter 'id' is set
238
+ if @api_client.config.client_side_validation && id.nil?
239
+ fail ArgumentError, "Missing the required parameter 'id' when calling PhoneNumbersApi.release_phone_number"
240
+ end
241
+ # resource path
242
+ local_var_path = '/release-phone-number/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
243
+
244
+ # query parameters
245
+ query_params = opts[:query_params] || {}
246
+
247
+ # header parameters
248
+ header_params = opts[:header_params] || {}
249
+ # HTTP header 'Accept' (if needed)
250
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
251
+
252
+ # form parameters
253
+ form_params = opts[:form_params] || {}
254
+
255
+ # http body (model)
256
+ post_body = opts[:debug_body]
257
+
258
+ # return_type
259
+ return_type = opts[:debug_return_type] || 'Object'
260
+
261
+ # auth_names
262
+ auth_names = opts[:debug_auth_names] || ['sec0']
263
+
264
+ new_options = opts.merge(
265
+ :operation => :"PhoneNumbersApi.release_phone_number",
266
+ :header_params => header_params,
267
+ :query_params => query_params,
268
+ :form_params => form_params,
269
+ :body => post_body,
270
+ :auth_names => auth_names,
271
+ :return_type => return_type
272
+ )
273
+
274
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
275
+ if @api_client.config.debugging
276
+ @api_client.config.logger.debug "API called: PhoneNumbersApi#release_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
277
+ end
278
+ return data, status_code, headers
279
+ end
280
+ end
281
+ end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.1.1
7
7
  Contact: help@daily.co
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -43,7 +43,7 @@ module Daily
43
43
  # header parameters
44
44
  header_params = opts[:header_params] || {}
45
45
  # HTTP header 'Accept' (if needed)
46
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
46
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
47
47
 
48
48
  # form parameters
49
49
  form_params = opts[:form_params] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.1.1
7
7
  Contact: help@daily.co
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.3.0
9
+ Generator version: 7.8.0
10
10
 
11
11
  =end
12
12
 
@@ -51,7 +51,7 @@ module Daily
51
51
  # header parameters
52
52
  header_params = opts[:header_params] || {}
53
53
  # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
55
55
 
56
56
  # form parameters
57
57
  form_params = opts[:form_params] || {}
@@ -114,7 +114,7 @@ module Daily
114
114
  # header parameters
115
115
  header_params = opts[:header_params] || {}
116
116
  # HTTP header 'Accept' (if needed)
117
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
117
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
118
118
 
119
119
  # form parameters
120
120
  form_params = opts[:form_params] || {}
@@ -177,7 +177,7 @@ module Daily
177
177
  # header parameters
178
178
  header_params = opts[:header_params] || {}
179
179
  # HTTP header 'Accept' (if needed)
180
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
180
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
181
181
 
182
182
  # form parameters
183
183
  form_params = opts[:form_params] || {}
@@ -246,7 +246,7 @@ module Daily
246
246
  # header parameters
247
247
  header_params = opts[:header_params] || {}
248
248
  # HTTP header 'Accept' (if needed)
249
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
249
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
250
250
 
251
251
  # form parameters
252
252
  form_params = opts[:form_params] || {}