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
@@ -0,0 +1,224 @@
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 'date'
14
+ require 'time'
15
+
16
+ module Daily
17
+ #
18
+ class RoomSipCallTransferRequest
19
+ attr_accessor :session_id
20
+
21
+ attr_accessor :to_end_point
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'session_id' => :'sessionId',
27
+ :'to_end_point' => :'toEndPoint'
28
+ }
29
+ end
30
+
31
+ # Returns all the JSON keys this model knows about
32
+ def self.acceptable_attributes
33
+ attribute_map.values
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'session_id' => :'String',
40
+ :'to_end_point' => :'String'
41
+ }
42
+ end
43
+
44
+ # List of attributes with nullable: true
45
+ def self.openapi_nullable
46
+ Set.new([
47
+ ])
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::RoomSipCallTransferRequest` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ attributes = attributes.each_with_object({}) { |(k, v), h|
59
+ if (!self.class.attribute_map.key?(k.to_sym))
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Daily::RoomSipCallTransferRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ end
62
+ h[k.to_sym] = v
63
+ }
64
+
65
+ if attributes.key?(:'session_id')
66
+ self.session_id = attributes[:'session_id']
67
+ end
68
+
69
+ if attributes.key?(:'to_end_point')
70
+ self.to_end_point = attributes[:'to_end_point']
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
+ invalid_properties = Array.new
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ warn '[DEPRECATED] the `valid?` method is obsolete'
86
+ true
87
+ end
88
+
89
+ # Checks equality by comparing each attribute.
90
+ # @param [Object] Object to be compared
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ session_id == o.session_id &&
95
+ to_end_point == o.to_end_point
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Integer] Hash code
106
+ def hash
107
+ [session_id, to_end_point].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def self.build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ attributes = attributes.transform_keys(&:to_sym)
116
+ transformed_hash = {}
117
+ openapi_types.each_pair do |key, type|
118
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
119
+ transformed_hash["#{key}"] = nil
120
+ elsif type =~ /\AArray<(.*)>/i
121
+ # check to ensure the input is an array given that the attribute
122
+ # is documented as an array but the input is not
123
+ if attributes[attribute_map[key]].is_a?(Array)
124
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
125
+ end
126
+ elsif !attributes[attribute_map[key]].nil?
127
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
128
+ end
129
+ end
130
+ new(transformed_hash)
131
+ end
132
+
133
+ # Deserializes the data based on type
134
+ # @param string type Data type
135
+ # @param string value Value to be deserialized
136
+ # @return [Object] Deserialized data
137
+ def self._deserialize(type, value)
138
+ case type.to_sym
139
+ when :Time
140
+ Time.parse(value)
141
+ when :Date
142
+ Date.parse(value)
143
+ when :String
144
+ value.to_s
145
+ when :Integer
146
+ value.to_i
147
+ when :Float
148
+ value.to_f
149
+ when :Boolean
150
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
151
+ true
152
+ else
153
+ false
154
+ end
155
+ when :Object
156
+ # generic object (usually a Hash), return directly
157
+ value
158
+ when /\AArray<(?<inner_type>.+)>\z/
159
+ inner_type = Regexp.last_match[:inner_type]
160
+ value.map { |v| _deserialize(inner_type, v) }
161
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
162
+ k_type = Regexp.last_match[:k_type]
163
+ v_type = Regexp.last_match[:v_type]
164
+ {}.tap do |hash|
165
+ value.each do |k, v|
166
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
167
+ end
168
+ end
169
+ else # model
170
+ # models (e.g. Pet) or oneOf
171
+ klass = Daily.const_get(type)
172
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
173
+ end
174
+ end
175
+
176
+ # Returns the string representation of the object
177
+ # @return [String] String presentation of the object
178
+ def to_s
179
+ to_hash.to_s
180
+ end
181
+
182
+ # to_body is an alias to to_hash (backward compatibility)
183
+ # @return [Hash] Returns the object in the form of hash
184
+ def to_body
185
+ to_hash
186
+ end
187
+
188
+ # Returns the object in the form of hash
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_hash
191
+ hash = {}
192
+ self.class.attribute_map.each_pair do |attr, param|
193
+ value = self.send(attr)
194
+ if value.nil?
195
+ is_nullable = self.class.openapi_nullable.include?(attr)
196
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
197
+ end
198
+
199
+ hash[param] = _to_hash(value)
200
+ end
201
+ hash
202
+ end
203
+
204
+ # Outputs non-array value in the form of hash
205
+ # For object, use to_hash. Otherwise, just return the value
206
+ # @param [Object] value Any valid value
207
+ # @return [Hash] Returns the value in the form of hash
208
+ def _to_hash(value)
209
+ if value.is_a?(Array)
210
+ value.compact.map { |v| _to_hash(v) }
211
+ elsif value.is_a?(Hash)
212
+ {}.tap do |hash|
213
+ value.each { |k, v| hash[k] = _to_hash(v) }
214
+ end
215
+ elsif value.respond_to? :to_hash
216
+ value.to_hash
217
+ else
218
+ value
219
+ end
220
+ end
221
+
222
+ end
223
+
224
+ 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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -119,7 +119,7 @@ module Daily
119
119
  # @return true if the model is valid
120
120
  def valid?
121
121
  warn '[DEPRECATED] the `valid?` method is obsolete'
122
- merge_strategy_validator = EnumAttributeValidator.new('String', ["replace", "shallow-merge"])
122
+ merge_strategy_validator = EnumAttributeValidator.new('String', ["replace", "shallow-merge", "unknown_default_open_api"])
123
123
  return false unless merge_strategy_validator.valid?(@merge_strategy)
124
124
  true
125
125
  end
@@ -127,7 +127,7 @@ module Daily
127
127
  # Custom attribute writer method checking allowed values (enum).
128
128
  # @param [Object] merge_strategy Object to be assigned
129
129
  def merge_strategy=(merge_strategy)
130
- validator = EnumAttributeValidator.new('String', ["replace", "shallow-merge"])
130
+ validator = EnumAttributeValidator.new('String', ["replace", "shallow-merge", "unknown_default_open_api"])
131
131
  unless validator.valid?(merge_strategy)
132
132
  fail ArgumentError, "invalid value for \"merge_strategy\", must be one of #{validator.allowable_values}."
133
133
  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
 
@@ -68,7 +68,7 @@ module Daily
68
68
  {
69
69
  :'version' => :'String',
70
70
  :'type' => :'String',
71
- :'event_ts' => :'Integer',
71
+ :'event_ts' => :'Float',
72
72
  :'payload' => :'StreamingEndedPayload'
73
73
  }
74
74
  end
@@ -123,7 +123,7 @@ module Daily
123
123
  # @return true if the model is valid
124
124
  def valid?
125
125
  warn '[DEPRECATED] the `valid?` method is obsolete'
126
- type_validator = EnumAttributeValidator.new('String', ["streaming.ended"])
126
+ type_validator = EnumAttributeValidator.new('String', ["streaming.ended", "unknown_default_open_api"])
127
127
  return false unless type_validator.valid?(@type)
128
128
  true
129
129
  end
@@ -131,7 +131,7 @@ module Daily
131
131
  # Custom attribute writer method checking allowed values (enum).
132
132
  # @param [Object] type Object to be assigned
133
133
  def type=(type)
134
- validator = EnumAttributeValidator.new('String', ["streaming.ended"])
134
+ validator = EnumAttributeValidator.new('String', ["streaming.ended", "unknown_default_open_api"])
135
135
  unless validator.valid?(type)
136
136
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
137
137
  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
 
@@ -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
 
@@ -68,7 +68,7 @@ module Daily
68
68
  {
69
69
  :'version' => :'String',
70
70
  :'type' => :'String',
71
- :'event_ts' => :'Integer',
71
+ :'event_ts' => :'Float',
72
72
  :'payload' => :'StreamingErrorPayload'
73
73
  }
74
74
  end
@@ -123,7 +123,7 @@ module Daily
123
123
  # @return true if the model is valid
124
124
  def valid?
125
125
  warn '[DEPRECATED] the `valid?` method is obsolete'
126
- type_validator = EnumAttributeValidator.new('String', ["streaming.error"])
126
+ type_validator = EnumAttributeValidator.new('String', ["streaming.error", "unknown_default_open_api"])
127
127
  return false unless type_validator.valid?(@type)
128
128
  true
129
129
  end
@@ -131,7 +131,7 @@ module Daily
131
131
  # Custom attribute writer method checking allowed values (enum).
132
132
  # @param [Object] type Object to be assigned
133
133
  def type=(type)
134
- validator = EnumAttributeValidator.new('String', ["streaming.error"])
134
+ validator = EnumAttributeValidator.new('String', ["streaming.error", "unknown_default_open_api"])
135
135
  unless validator.valid?(type)
136
136
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
137
137
  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
 
@@ -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
 
@@ -68,7 +68,7 @@ module Daily
68
68
  {
69
69
  :'version' => :'String',
70
70
  :'type' => :'String',
71
- :'event_ts' => :'Integer',
71
+ :'event_ts' => :'Float',
72
72
  :'payload' => :'StreamingStartedPayload'
73
73
  }
74
74
  end
@@ -123,7 +123,7 @@ module Daily
123
123
  # @return true if the model is valid
124
124
  def valid?
125
125
  warn '[DEPRECATED] the `valid?` method is obsolete'
126
- type_validator = EnumAttributeValidator.new('String', ["streaming.started"])
126
+ type_validator = EnumAttributeValidator.new('String', ["streaming.started", "unknown_default_open_api"])
127
127
  return false unless type_validator.valid?(@type)
128
128
  true
129
129
  end
@@ -131,7 +131,7 @@ module Daily
131
131
  # Custom attribute writer method checking allowed values (enum).
132
132
  # @param [Object] type Object to be assigned
133
133
  def type=(type)
134
- validator = EnumAttributeValidator.new('String', ["streaming.started"])
134
+ validator = EnumAttributeValidator.new('String', ["streaming.started", "unknown_default_open_api"])
135
135
  unless validator.valid?(type)
136
136
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
137
137
  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
 
@@ -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
 
@@ -68,7 +68,7 @@ module Daily
68
68
  {
69
69
  :'version' => :'String',
70
70
  :'type' => :'String',
71
- :'event_ts' => :'Integer',
71
+ :'event_ts' => :'Float',
72
72
  :'payload' => :'StreamingUpdatedPayload'
73
73
  }
74
74
  end
@@ -123,7 +123,7 @@ module Daily
123
123
  # @return true if the model is valid
124
124
  def valid?
125
125
  warn '[DEPRECATED] the `valid?` method is obsolete'
126
- type_validator = EnumAttributeValidator.new('String', ["streaming.updated"])
126
+ type_validator = EnumAttributeValidator.new('String', ["streaming.updated", "unknown_default_open_api"])
127
127
  return false unless type_validator.valid?(@type)
128
128
  true
129
129
  end
@@ -131,7 +131,7 @@ module Daily
131
131
  # Custom attribute writer method checking allowed values (enum).
132
132
  # @param [Object] type Object to be assigned
133
133
  def type=(type)
134
- validator = EnumAttributeValidator.new('String', ["streaming.updated"])
134
+ validator = EnumAttributeValidator.new('String', ["streaming.updated", "unknown_default_open_api"])
135
135
  unless validator.valid?(type)
136
136
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
137
137
  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
 
@@ -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
 
@@ -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
 
@@ -34,9 +34,12 @@ module Daily
34
34
 
35
35
  attr_accessor :redact
36
36
 
37
- # Specify any Deepgram parameters. See Deepgram's documentation for [available streaming options](https://developers.deepgram.com/docs/features-overview).
37
+ # Specify any Deepgram parameters. See Deepgram's documentation for [available streaming options](https://developers.deepgram.com/docs/features-overview)
38
38
  attr_accessor :extra
39
39
 
40
+ # Whether Deepgram's raw response should be included in all transcription messages
41
+ attr_accessor :include_raw_response
42
+
40
43
  # Attribute mapping from ruby-style variable name to JSON key.
41
44
  def self.attribute_map
42
45
  {
@@ -47,7 +50,8 @@ module Daily
47
50
  :'punctuate' => :'punctuate',
48
51
  :'endpointing' => :'endpointing',
49
52
  :'redact' => :'redact',
50
- :'extra' => :'extra'
53
+ :'extra' => :'extra',
54
+ :'include_raw_response' => :'includeRawResponse'
51
55
  }
52
56
  end
53
57
 
@@ -66,7 +70,8 @@ module Daily
66
70
  :'punctuate' => :'Boolean',
67
71
  :'endpointing' => :'TranscriptionPropertiesEndpointing',
68
72
  :'redact' => :'TranscriptionPropertiesRedact',
69
- :'extra' => :'Object'
73
+ :'extra' => :'Object',
74
+ :'include_raw_response' => :'Boolean'
70
75
  }
71
76
  end
72
77
 
@@ -122,6 +127,10 @@ module Daily
122
127
  if attributes.key?(:'extra')
123
128
  self.extra = attributes[:'extra']
124
129
  end
130
+
131
+ if attributes.key?(:'include_raw_response')
132
+ self.include_raw_response = attributes[:'include_raw_response']
133
+ end
125
134
  end
126
135
 
127
136
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -151,7 +160,8 @@ module Daily
151
160
  punctuate == o.punctuate &&
152
161
  endpointing == o.endpointing &&
153
162
  redact == o.redact &&
154
- extra == o.extra
163
+ extra == o.extra &&
164
+ include_raw_response == o.include_raw_response
155
165
  end
156
166
 
157
167
  # @see the `==` method
@@ -163,7 +173,7 @@ module Daily
163
173
  # Calculates hash code according to all attributes.
164
174
  # @return [Integer] Hash code
165
175
  def hash
166
- [language, model, tier, profanity_filter, punctuate, endpointing, redact, extra].hash
176
+ [language, model, tier, profanity_filter, punctuate, endpointing, redact, extra, include_raw_response].hash
167
177
  end
168
178
 
169
179
  # Builds the object from hash
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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