freeclimb 4.5.2 → 4.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +15 -7
  5. data/docs/AddToConference.md +0 -2
  6. data/docs/AddToConferenceAllOf.md +0 -2
  7. data/docs/CreateWebRTCToken.md +22 -0
  8. data/docs/DefaultApi.md +303 -7
  9. data/docs/GetDigits.md +1 -1
  10. data/docs/GetDigitsAllOf.md +1 -1
  11. data/docs/IncomingNumberResult.md +3 -1
  12. data/docs/IncomingNumberResultAllOf.md +3 -1
  13. data/docs/MessageRequest.md +2 -2
  14. data/docs/MessageRequestAllOf.md +2 -2
  15. data/docs/MessageResult.md +3 -1
  16. data/docs/MessageResultAllOf.md +3 -1
  17. data/docs/Play.md +0 -2
  18. data/docs/PlayAllOf.md +0 -2
  19. data/docs/RemoveFromConference.md +1 -4
  20. data/docs/SMSTenDLCCampaign.md +10 -0
  21. data/docs/SMSTollFreeCampaign.md +30 -0
  22. data/docs/SMSTollFreeCampaignsListResult.md +32 -0
  23. data/docs/SMSTollFreeCampaignsListResultAllOf.md +18 -0
  24. data/docs/Say.md +0 -2
  25. data/docs/SayAllOf.md +0 -2
  26. data/docs/SetListen.md +0 -2
  27. data/docs/SetListenAllOf.md +0 -2
  28. data/docs/SetTalk.md +0 -2
  29. data/docs/SetTalkAllOf.md +0 -2
  30. data/docs/TFN.md +18 -0
  31. data/docs/TerminateConference.md +1 -4
  32. data/docs/TranscribeUtterance.md +1 -1
  33. data/docs/TranscribeUtteranceAllOf.md +28 -0
  34. data/docs/TranscribeUtteranceAllOfRecord.md +22 -0
  35. data/lib/freeclimb/api/default_api.rb +262 -7
  36. data/lib/freeclimb/models/account_request.rb +0 -2
  37. data/lib/freeclimb/models/account_result.rb +0 -6
  38. data/lib/freeclimb/models/add_to_conference.rb +1 -29
  39. data/lib/freeclimb/models/add_to_conference_all_of.rb +1 -29
  40. data/lib/freeclimb/models/application_result.rb +0 -6
  41. data/lib/freeclimb/models/buy_incoming_number_request.rb +0 -4
  42. data/lib/freeclimb/models/call_result.rb +0 -6
  43. data/lib/freeclimb/models/conference_participant_result.rb +0 -6
  44. data/lib/freeclimb/models/conference_result.rb +0 -6
  45. data/lib/freeclimb/models/create_conference.rb +0 -8
  46. data/lib/freeclimb/models/create_conference_all_of.rb +0 -8
  47. data/lib/freeclimb/models/create_conference_request.rb +0 -6
  48. data/lib/freeclimb/models/create_web_rtc_token.rb +274 -0
  49. data/lib/freeclimb/models/dequeue.rb +1 -0
  50. data/lib/freeclimb/models/enqueue.rb +0 -6
  51. data/lib/freeclimb/models/enqueue_all_of.rb +0 -6
  52. data/lib/freeclimb/models/get_digits.rb +1 -17
  53. data/lib/freeclimb/models/get_digits_all_of.rb +1 -17
  54. data/lib/freeclimb/models/get_speech.rb +0 -22
  55. data/lib/freeclimb/models/get_speech_all_of.rb +0 -22
  56. data/lib/freeclimb/models/incoming_number_request.rb +0 -2
  57. data/lib/freeclimb/models/incoming_number_result.rb +14 -13
  58. data/lib/freeclimb/models/incoming_number_result_all_of.rb +14 -5
  59. data/lib/freeclimb/models/make_call_request.rb +0 -18
  60. data/lib/freeclimb/models/message_request.rb +10 -24
  61. data/lib/freeclimb/models/message_request_all_of.rb +10 -16
  62. data/lib/freeclimb/models/message_result.rb +17 -11
  63. data/lib/freeclimb/models/message_result_all_of.rb +17 -5
  64. data/lib/freeclimb/models/mutable_resource_model.rb +0 -6
  65. data/lib/freeclimb/models/out_dial.rb +0 -18
  66. data/lib/freeclimb/models/out_dial_all_of.rb +0 -18
  67. data/lib/freeclimb/models/park.rb +0 -4
  68. data/lib/freeclimb/models/park_all_of.rb +0 -4
  69. data/lib/freeclimb/models/play.rb +1 -17
  70. data/lib/freeclimb/models/play_all_of.rb +1 -17
  71. data/lib/freeclimb/models/queue_request.rb +0 -2
  72. data/lib/freeclimb/models/queue_result.rb +0 -6
  73. data/lib/freeclimb/models/record_utterance.rb +0 -12
  74. data/lib/freeclimb/models/record_utterance_all_of.rb +0 -12
  75. data/lib/freeclimb/models/recording_result.rb +0 -6
  76. data/lib/freeclimb/models/remove_from_conference.rb +4 -23
  77. data/lib/freeclimb/models/say.rb +1 -19
  78. data/lib/freeclimb/models/say_all_of.rb +1 -19
  79. data/lib/freeclimb/models/send_digits.rb +0 -4
  80. data/lib/freeclimb/models/send_digits_all_of.rb +0 -4
  81. data/lib/freeclimb/models/set_listen.rb +2 -18
  82. data/lib/freeclimb/models/set_listen_all_of.rb +2 -18
  83. data/lib/freeclimb/models/set_talk.rb +2 -18
  84. data/lib/freeclimb/models/set_talk_all_of.rb +2 -18
  85. data/lib/freeclimb/models/sms.rb +0 -6
  86. data/lib/freeclimb/models/sms_all_of.rb +0 -6
  87. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +0 -60
  88. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +121 -41
  89. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +0 -44
  90. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +0 -20
  91. data/lib/freeclimb/models/sms_toll_free_campaign.rb +337 -0
  92. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +311 -0
  93. data/lib/freeclimb/models/{remove_from_conference_all_of.rb → sms_toll_free_campaigns_list_result_all_of.rb} +14 -16
  94. data/lib/freeclimb/models/start_record_call.rb +1 -0
  95. data/lib/freeclimb/models/terminate_conference.rb +4 -23
  96. data/lib/freeclimb/models/{terminate_conference_all_of.rb → tfn.rb} +15 -14
  97. data/lib/freeclimb/models/transcribe_utterance.rb +11 -16
  98. data/lib/freeclimb/models/transcribe_utterance_all_of.rb +281 -0
  99. data/lib/freeclimb/models/{transcribe_utterance_record.rb → transcribe_utterance_all_of_record.rb} +3 -7
  100. data/lib/freeclimb/models/unpark.rb +1 -0
  101. data/lib/freeclimb/models/update_conference_participant_request.rb +0 -2
  102. data/lib/freeclimb/models/update_conference_request.rb +0 -2
  103. data/lib/freeclimb/version.rb +1 -1
  104. data/lib/freeclimb.rb +8 -4
  105. data/openapi.json +407 -88
  106. data/package.json +8 -0
  107. data/spec/api/default_api_spec.rb +215 -55
  108. data/spec/models/account_request_spec.rb +8 -6
  109. data/spec/models/account_result_spec.rb +28 -9
  110. data/spec/models/add_to_conference_spec.rb +21 -37
  111. data/spec/models/application_list_spec.rb +46 -22
  112. data/spec/models/application_request_spec.rb +13 -6
  113. data/spec/models/application_result_spec.rb +24 -9
  114. data/spec/models/available_number_list_spec.rb +46 -22
  115. data/spec/models/available_number_spec.rb +23 -10
  116. data/spec/models/buy_incoming_number_request_spec.rb +11 -7
  117. data/spec/models/call_list_spec.rb +46 -22
  118. data/spec/models/call_result_spec.rb +49 -15
  119. data/spec/models/capabilities_spec.rb +26 -11
  120. data/spec/models/conference_list_spec.rb +46 -22
  121. data/spec/models/conference_participant_list_spec.rb +46 -22
  122. data/spec/models/conference_participant_result_spec.rb +24 -9
  123. data/spec/models/conference_result_spec.rb +32 -9
  124. data/spec/models/create_conference_request_spec.rb +15 -6
  125. data/spec/models/create_conference_spec.rb +19 -7
  126. data/spec/models/create_web_rtc_token_spec.rb +231 -0
  127. data/spec/models/enqueue_spec.rb +16 -9
  128. data/spec/models/filter_logs_request_spec.rb +9 -7
  129. data/spec/models/get_digits_spec.rb +59 -35
  130. data/spec/models/get_speech_spec.rb +60 -24
  131. data/spec/models/hangup_spec.rb +7 -6
  132. data/spec/models/incoming_number_list_spec.rb +46 -22
  133. data/spec/models/incoming_number_request_spec.rb +9 -6
  134. data/spec/models/incoming_number_result_spec.rb +68 -13
  135. data/spec/models/log_list_spec.rb +46 -22
  136. data/spec/models/log_result_spec.rb +21 -9
  137. data/spec/models/make_call_request_spec.rb +26 -11
  138. data/spec/models/message_request_spec.rb +49 -35
  139. data/spec/models/message_result_spec.rb +64 -11
  140. data/spec/models/messages_list_spec.rb +46 -22
  141. data/spec/models/mutable_resource_model_spec.rb +15 -9
  142. data/spec/models/out_dial_spec.rb +33 -13
  143. data/spec/models/pagination_model_spec.rb +40 -21
  144. data/spec/models/park_spec.rb +13 -8
  145. data/spec/models/pause_spec.rb +14 -10
  146. data/spec/models/percl_command_spec.rb +6 -6
  147. data/spec/models/percl_script_spec.rb +11 -6
  148. data/spec/models/play_early_media_spec.rb +9 -7
  149. data/spec/models/play_spec.rb +17 -40
  150. data/spec/models/queue_list_spec.rb +46 -22
  151. data/spec/models/queue_member_list_spec.rb +46 -22
  152. data/spec/models/queue_member_spec.rb +21 -12
  153. data/spec/models/queue_request_spec.rb +13 -9
  154. data/spec/models/queue_result_spec.rb +37 -18
  155. data/spec/models/record_utterance_spec.rb +28 -13
  156. data/spec/models/recording_list_spec.rb +46 -22
  157. data/spec/models/recording_result_spec.rb +25 -12
  158. data/spec/models/redirect_spec.rb +9 -7
  159. data/spec/models/reject_spec.rb +7 -6
  160. data/spec/models/remove_from_conference_spec.rb +0 -133
  161. data/spec/models/say_spec.rb +18 -40
  162. data/spec/models/send_digits_spec.rb +17 -10
  163. data/spec/models/set_listen_spec.rb +8 -37
  164. data/spec/models/set_talk_spec.rb +8 -37
  165. data/spec/models/sms_spec.rb +16 -9
  166. data/spec/models/sms_ten_dlc_brand_spec.rb +38 -4
  167. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +46 -22
  168. data/spec/models/sms_ten_dlc_campaign_spec.rb +228 -4
  169. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +46 -22
  170. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +25 -7
  171. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +56 -8
  172. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +46 -22
  173. data/spec/models/sms_toll_free_campaign_spec.rb +382 -0
  174. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +395 -0
  175. data/spec/models/terminate_conference_spec.rb +0 -133
  176. data/spec/models/tfn_spec.rb +164 -0
  177. data/spec/models/{transcribe_utterance_record_spec.rb → transcribe_utterance_all_of_record_spec.rb} +78 -67
  178. data/spec/models/transcribe_utterance_spec.rb +37 -96
  179. data/spec/models/update_call_request_spec.rb +12 -7
  180. data/spec/models/update_conference_participant_request_spec.rb +10 -6
  181. data/spec/models/update_conference_request_spec.rb +15 -6
  182. data/yarn.lock +1292 -0
  183. metadata +105 -84
@@ -1763,6 +1763,123 @@ module Freeclimb
1763
1763
  return data, status_code, headers
1764
1764
  end
1765
1765
 
1766
+ # Get a TollFree SMS Campaign
1767
+ # @param campaign_id [String] String that uniquely identifies this TollFree Campaign resource.
1768
+ # @param [Hash] opts the optional parameters
1769
+ # @return [SMSTollFreeCampaign]
1770
+ def get_toll_free_sms_campaign(campaign_id, opts = {})
1771
+ data, _status_code, _headers = get_toll_free_sms_campaign_with_http_info(campaign_id, opts)
1772
+ data
1773
+ end
1774
+
1775
+ # Get a TollFree SMS Campaign
1776
+ # @param campaign_id [String] String that uniquely identifies this TollFree Campaign resource.
1777
+ # @param [Hash] opts the optional parameters
1778
+ # @return [Array<(SMSTollFreeCampaign, Integer, Hash)>] SMSTollFreeCampaign data, response status code and response headers
1779
+ def get_toll_free_sms_campaign_with_http_info(campaign_id, opts = {})
1780
+ if @api_client.config.debugging
1781
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_toll_free_sms_campaign ...'
1782
+ end
1783
+
1784
+ # verify the required parameter 'campaign_id' is set
1785
+ if @api_client.config.client_side_validation && campaign_id.nil?
1786
+ fail ArgumentError, "Missing the required parameter 'campaign_id' when calling DefaultApi.get_toll_free_sms_campaign"
1787
+ end
1788
+ # resource path
1789
+ local_var_path = '/Accounts/{accountId}/Messages/TollFree/Campaigns/{campaignId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
1790
+
1791
+ # query parameters
1792
+ query_params = opts[:query_params] || {}
1793
+
1794
+ # header parameters
1795
+ header_params = opts[:header_params] || {}
1796
+ # HTTP header 'Accept' (if needed)
1797
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1798
+
1799
+ # form parameters
1800
+ form_params = opts[:form_params] || {}
1801
+
1802
+ # http body (model)
1803
+ post_body = opts[:debug_body]
1804
+
1805
+ # return_type
1806
+ return_type = opts[:debug_return_type] || 'SMSTollFreeCampaign'
1807
+
1808
+ # auth_names
1809
+ auth_names = opts[:debug_auth_names] || ['fc']
1810
+
1811
+ new_options = opts.merge(
1812
+ :operation => :"DefaultApi.get_toll_free_sms_campaign",
1813
+ :header_params => header_params,
1814
+ :query_params => query_params,
1815
+ :form_params => form_params,
1816
+ :body => post_body,
1817
+ :auth_names => auth_names,
1818
+ :return_type => return_type
1819
+ )
1820
+
1821
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1822
+ if @api_client.config.debugging
1823
+ @api_client.config.logger.debug "API called: DefaultApi#get_toll_free_sms_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1824
+ end
1825
+ return data, status_code, headers
1826
+ end
1827
+
1828
+ # Get list of TollFree Campaigns
1829
+ # @param [Hash] opts the optional parameters
1830
+ # @return [SMSTollFreeCampaignsListResult]
1831
+ def get_toll_free_sms_campaigns(opts = {})
1832
+ data, _status_code, _headers = get_toll_free_sms_campaigns_with_http_info(opts)
1833
+ data
1834
+ end
1835
+
1836
+ # Get list of TollFree Campaigns
1837
+ # @param [Hash] opts the optional parameters
1838
+ # @return [Array<(SMSTollFreeCampaignsListResult, Integer, Hash)>] SMSTollFreeCampaignsListResult data, response status code and response headers
1839
+ def get_toll_free_sms_campaigns_with_http_info(opts = {})
1840
+ if @api_client.config.debugging
1841
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_toll_free_sms_campaigns ...'
1842
+ end
1843
+ # resource path
1844
+ local_var_path = '/Accounts/{accountId}/Messages/TollFree/Campaigns'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1845
+
1846
+ # query parameters
1847
+ query_params = opts[:query_params] || {}
1848
+
1849
+ # header parameters
1850
+ header_params = opts[:header_params] || {}
1851
+ # HTTP header 'Accept' (if needed)
1852
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1853
+
1854
+ # form parameters
1855
+ form_params = opts[:form_params] || {}
1856
+
1857
+ # http body (model)
1858
+ post_body = opts[:debug_body]
1859
+
1860
+ # return_type
1861
+ return_type = opts[:debug_return_type] || 'SMSTollFreeCampaignsListResult'
1862
+
1863
+ # auth_names
1864
+ auth_names = opts[:debug_auth_names] || ['fc']
1865
+
1866
+ new_options = opts.merge(
1867
+ :operation => :"DefaultApi.get_toll_free_sms_campaigns",
1868
+ :header_params => header_params,
1869
+ :query_params => query_params,
1870
+ :form_params => form_params,
1871
+ :body => post_body,
1872
+ :auth_names => auth_names,
1873
+ :return_type => return_type
1874
+ )
1875
+
1876
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1877
+ if @api_client.config.debugging
1878
+ @api_client.config.logger.debug "API called: DefaultApi#get_toll_free_sms_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1879
+ end
1880
+ return data, status_code, headers
1881
+ end
1882
+
1766
1883
  # List Active Queues
1767
1884
  # @param [Hash] opts the optional parameters
1768
1885
  # @option opts [String] :_alias Return only the Queue resources with aliases that exactly match this name.
@@ -2229,6 +2346,74 @@ module Freeclimb
2229
2346
  return data, status_code, headers
2230
2347
  end
2231
2348
 
2349
+ # List Conference Recordings
2350
+ # @param conference_id [String] Show only Recordings made during the conference with this ID.
2351
+ # @param [Hash] opts the optional parameters
2352
+ # @option opts [String] :call_id Show only Recordings made during the Call with this ID.
2353
+ # @option opts [String] :date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*.
2354
+ # @return [RecordingList]
2355
+ def list_conference_recordings(conference_id, opts = {})
2356
+ data, _status_code, _headers = list_conference_recordings_with_http_info(conference_id, opts)
2357
+ data
2358
+ end
2359
+
2360
+ # List Conference Recordings
2361
+ # @param conference_id [String] Show only Recordings made during the conference with this ID.
2362
+ # @param [Hash] opts the optional parameters
2363
+ # @option opts [String] :call_id Show only Recordings made during the Call with this ID.
2364
+ # @option opts [String] :date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*.
2365
+ # @return [Array<(RecordingList, Integer, Hash)>] RecordingList data, response status code and response headers
2366
+ def list_conference_recordings_with_http_info(conference_id, opts = {})
2367
+ if @api_client.config.debugging
2368
+ @api_client.config.logger.debug 'Calling API: DefaultApi.list_conference_recordings ...'
2369
+ end
2370
+
2371
+ # verify the required parameter 'conference_id' is set
2372
+ if @api_client.config.client_side_validation && conference_id.nil?
2373
+ fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.list_conference_recordings"
2374
+ end
2375
+ # resource path
2376
+ local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
2377
+
2378
+ # query parameters
2379
+ query_params = opts[:query_params] || {}
2380
+ query_params[:'callId'] = opts[:'call_id'] if !opts[:'call_id'].nil?
2381
+ query_params[:'dateCreated'] = opts[:'date_created'] if !opts[:'date_created'].nil?
2382
+
2383
+ # header parameters
2384
+ header_params = opts[:header_params] || {}
2385
+ # HTTP header 'Accept' (if needed)
2386
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2387
+
2388
+ # form parameters
2389
+ form_params = opts[:form_params] || {}
2390
+
2391
+ # http body (model)
2392
+ post_body = opts[:debug_body]
2393
+
2394
+ # return_type
2395
+ return_type = opts[:debug_return_type] || 'RecordingList'
2396
+
2397
+ # auth_names
2398
+ auth_names = opts[:debug_auth_names] || ['fc']
2399
+
2400
+ new_options = opts.merge(
2401
+ :operation => :"DefaultApi.list_conference_recordings",
2402
+ :header_params => header_params,
2403
+ :query_params => query_params,
2404
+ :form_params => form_params,
2405
+ :body => post_body,
2406
+ :auth_names => auth_names,
2407
+ :return_type => return_type
2408
+ )
2409
+
2410
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2411
+ if @api_client.config.debugging
2412
+ @api_client.config.logger.debug "API called: DefaultApi#list_conference_recordings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2413
+ end
2414
+ return data, status_code, headers
2415
+ end
2416
+
2232
2417
  # List Conferences
2233
2418
  # @param [Hash] opts the optional parameters
2234
2419
  # @option opts [String] :status Only show conferences that currently have the specified status. Valid values: &#x60;empty&#x60;, &#x60;populated&#x60;, &#x60;inProgress&#x60;, or &#x60;terminated&#x60;.
@@ -2312,6 +2497,7 @@ module Freeclimb
2312
2497
  # @option opts [Boolean] :capabilities_toll_free
2313
2498
  # @option opts [Boolean] :capabilities_ten_dlc
2314
2499
  # @option opts [Boolean] :capabilities_short_code
2500
+ # @option opts [String] :tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID.
2315
2501
  # @option opts [Boolean] :offnet Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource.
2316
2502
  # @return [IncomingNumberList]
2317
2503
  def list_incoming_numbers(opts = {})
@@ -2335,6 +2521,7 @@ module Freeclimb
2335
2521
  # @option opts [Boolean] :capabilities_toll_free
2336
2522
  # @option opts [Boolean] :capabilities_ten_dlc
2337
2523
  # @option opts [Boolean] :capabilities_short_code
2524
+ # @option opts [String] :tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID.
2338
2525
  # @option opts [Boolean] :offnet Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource.
2339
2526
  # @return [Array<(IncomingNumberList, Integer, Hash)>] IncomingNumberList data, response status code and response headers
2340
2527
  def list_incoming_numbers_with_http_info(opts = {})
@@ -2360,6 +2547,7 @@ module Freeclimb
2360
2547
  query_params[:'capabilities.tollFree'] = opts[:'capabilities_toll_free'] if !opts[:'capabilities_toll_free'].nil?
2361
2548
  query_params[:'capabilities.tenDLC'] = opts[:'capabilities_ten_dlc'] if !opts[:'capabilities_ten_dlc'].nil?
2362
2549
  query_params[:'capabilities.shortCode'] = opts[:'capabilities_short_code'] if !opts[:'capabilities_short_code'].nil?
2550
+ query_params[:'tfn.campaignId'] = opts[:'tfn_campaign_id'] if !opts[:'tfn_campaign_id'].nil?
2363
2551
  query_params[:'offnet'] = opts[:'offnet'] if !opts[:'offnet'].nil?
2364
2552
 
2365
2553
  # header parameters
@@ -2731,6 +2919,75 @@ module Freeclimb
2731
2919
  return data, status_code, headers
2732
2920
  end
2733
2921
 
2922
+ # Make a JWT for WebRTC calling
2923
+ # Make a JWT for WebRTC calling
2924
+ # @param create_web_rtc_token [CreateWebRTCToken] Information needed to craft a JWT compatible with the platforms WebRTC APIs
2925
+ # @param [Hash] opts the optional parameters
2926
+ # @return [String]
2927
+ def make_a_webrtc_jwt(create_web_rtc_token, opts = {})
2928
+ data, _status_code, _headers = make_a_webrtc_jwt_with_http_info(create_web_rtc_token, opts)
2929
+ data
2930
+ end
2931
+
2932
+ # Make a JWT for WebRTC calling
2933
+ # Make a JWT for WebRTC calling
2934
+ # @param create_web_rtc_token [CreateWebRTCToken] Information needed to craft a JWT compatible with the platforms WebRTC APIs
2935
+ # @param [Hash] opts the optional parameters
2936
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
2937
+ def make_a_webrtc_jwt_with_http_info(create_web_rtc_token, opts = {})
2938
+ if @api_client.config.debugging
2939
+ @api_client.config.logger.debug 'Calling API: DefaultApi.make_a_webrtc_jwt ...'
2940
+ end
2941
+
2942
+ # verify the required parameter 'create_web_rtc_token' is set
2943
+ if @api_client.config.client_side_validation && create_web_rtc_token.nil?
2944
+ fail ArgumentError, "Missing the required parameter 'create_web_rtc_token' when calling DefaultApi.make_a_webrtc_jwt"
2945
+ end
2946
+ # resource path
2947
+ local_var_path = '/Accounts/{accountId}/Calls/WebRTC/Token'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2948
+
2949
+ # query parameters
2950
+ query_params = opts[:query_params] || {}
2951
+
2952
+ # header parameters
2953
+ header_params = opts[:header_params] || {}
2954
+ # HTTP header 'Accept' (if needed)
2955
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
2956
+ # HTTP header 'Content-Type'
2957
+ content_type = @api_client.select_header_content_type(['application/json'])
2958
+ if !content_type.nil?
2959
+ header_params['Content-Type'] = content_type
2960
+ end
2961
+
2962
+ # form parameters
2963
+ form_params = opts[:form_params] || {}
2964
+
2965
+ # http body (model)
2966
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_web_rtc_token)
2967
+
2968
+ # return_type
2969
+ return_type = opts[:debug_return_type] || 'String'
2970
+
2971
+ # auth_names
2972
+ auth_names = opts[:debug_auth_names] || ['fc']
2973
+
2974
+ new_options = opts.merge(
2975
+ :operation => :"DefaultApi.make_a_webrtc_jwt",
2976
+ :header_params => header_params,
2977
+ :query_params => query_params,
2978
+ :form_params => form_params,
2979
+ :body => post_body,
2980
+ :auth_names => auth_names,
2981
+ :return_type => return_type
2982
+ )
2983
+
2984
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2985
+ if @api_client.config.debugging
2986
+ @api_client.config.logger.debug "API called: DefaultApi#make_a_webrtc_jwt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2987
+ end
2988
+ return data, status_code, headers
2989
+ end
2990
+
2734
2991
  # Remove a Participant
2735
2992
  # @param conference_id [String] ID of the conference this participant is in.
2736
2993
  # @param call_id [String] ID of the Call associated with this participant.
@@ -2931,17 +3188,17 @@ module Freeclimb
2931
3188
  # @param conference_id [String] String that uniquely identifies this conference resource.
2932
3189
  # @param [Hash] opts the optional parameters
2933
3190
  # @option opts [UpdateConferenceRequest] :update_conference_request Conference Details to update
2934
- # @return [ConferenceResult]
3191
+ # @return [nil]
2935
3192
  def update_a_conference(conference_id, opts = {})
2936
- data, _status_code, _headers = update_a_conference_with_http_info(conference_id, opts)
2937
- data
3193
+ update_a_conference_with_http_info(conference_id, opts)
3194
+ nil
2938
3195
  end
2939
3196
 
2940
3197
  # Update a Conference
2941
3198
  # @param conference_id [String] String that uniquely identifies this conference resource.
2942
3199
  # @param [Hash] opts the optional parameters
2943
3200
  # @option opts [UpdateConferenceRequest] :update_conference_request Conference Details to update
2944
- # @return [Array<(ConferenceResult, Integer, Hash)>] ConferenceResult data, response status code and response headers
3201
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2945
3202
  def update_a_conference_with_http_info(conference_id, opts = {})
2946
3203
  if @api_client.config.debugging
2947
3204
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_conference ...'
@@ -2959,8 +3216,6 @@ module Freeclimb
2959
3216
 
2960
3217
  # header parameters
2961
3218
  header_params = opts[:header_params] || {}
2962
- # HTTP header 'Accept' (if needed)
2963
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2964
3219
  # HTTP header 'Content-Type'
2965
3220
  content_type = @api_client.select_header_content_type(['application/json'])
2966
3221
  if !content_type.nil?
@@ -2974,7 +3229,7 @@ module Freeclimb
2974
3229
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_conference_request'])
2975
3230
 
2976
3231
  # return_type
2977
- return_type = opts[:debug_return_type] || 'ConferenceResult'
3232
+ return_type = opts[:debug_return_type]
2978
3233
 
2979
3234
  # auth_names
2980
3235
  auth_names = opts[:debug_auth_names] || ['fc']
@@ -85,8 +85,6 @@ module Freeclimb
85
85
 
86
86
  if @_alias.nil?
87
87
  false
88
- elsif @label.nil?
89
- false
90
88
  else
91
89
  list_invalid_properties.length() == 0
92
90
  end
@@ -179,12 +179,6 @@ module Freeclimb
179
179
 
180
180
  if @uri.nil?
181
181
  false
182
- elsif @date_created.nil?
183
- false
184
- elsif @date_updated.nil?
185
- false
186
- elsif @revision.nil?
187
- false
188
182
  else
189
183
  list_invalid_properties.length() == 0
190
184
  end
@@ -28,9 +28,6 @@ module Freeclimb
28
28
  # ID of the Conference to which to add the Participant (Call leg). Conference must exist or an error will result.
29
29
  attr_accessor :conference_id
30
30
 
31
- # ID of the Call that will be added to the specified Conference. The Call must be in progress or an error will result. If the Call is part of an existing Conference, it is first removed from that Conference and is then moved to the new one.
32
- attr_accessor :call_id
33
-
34
31
  # URL to be invoked when the Participant leaves the Conference.
35
32
  attr_accessor :leave_conference_url
36
33
 
@@ -53,7 +50,6 @@ module Freeclimb
53
50
  :'call_control_sequence' => :'callControlSequence',
54
51
  :'call_control_url' => :'callControlUrl',
55
52
  :'conference_id' => :'conferenceId',
56
- :'call_id' => :'callId',
57
53
  :'leave_conference_url' => :'leaveConferenceUrl',
58
54
  :'listen' => :'listen',
59
55
  :'notification_url' => :'notificationUrl',
@@ -74,7 +70,6 @@ module Freeclimb
74
70
  :'call_control_sequence' => :'String',
75
71
  :'call_control_url' => :'String',
76
72
  :'conference_id' => :'String',
77
- :'call_id' => :'String',
78
73
  :'leave_conference_url' => :'String',
79
74
  :'listen' => :'Boolean',
80
75
  :'notification_url' => :'String',
@@ -131,10 +126,6 @@ module Freeclimb
131
126
  self.conference_id = attributes[:'conference_id']
132
127
  end
133
128
 
134
- if attributes.key?(:'call_id')
135
- self.call_id = attributes[:'call_id']
136
- end
137
-
138
129
  if attributes.key?(:'leave_conference_url')
139
130
  self.leave_conference_url = attributes[:'leave_conference_url']
140
131
  end
@@ -174,24 +165,6 @@ module Freeclimb
174
165
 
175
166
  if @allow_call_control.nil?
176
167
  false
177
- elsif @call_control_sequence.nil?
178
- false
179
- elsif @call_control_url.nil?
180
- false
181
- elsif @conference_id.nil?
182
- false
183
- elsif @call_id.nil?
184
- false
185
- elsif @leave_conference_url.nil?
186
- false
187
- elsif @listen.nil?
188
- false
189
- elsif @notification_url.nil?
190
- false
191
- elsif @start_conf_on_enter.nil?
192
- false
193
- elsif @talk.nil?
194
- false
195
168
  else
196
169
  list_invalid_properties.length() == 0
197
170
  end
@@ -206,7 +179,6 @@ module Freeclimb
206
179
  call_control_sequence == o.call_control_sequence &&
207
180
  call_control_url == o.call_control_url &&
208
181
  conference_id == o.conference_id &&
209
- call_id == o.call_id &&
210
182
  leave_conference_url == o.leave_conference_url &&
211
183
  listen == o.listen &&
212
184
  notification_url == o.notification_url &&
@@ -223,7 +195,7 @@ module Freeclimb
223
195
  # Calculates hash code according to all attributes.
224
196
  # @return [Integer] Hash code
225
197
  def hash
226
- [allow_call_control, call_control_sequence, call_control_url, conference_id, call_id, leave_conference_url, listen, notification_url, start_conf_on_enter, talk].hash
198
+ [allow_call_control, call_control_sequence, call_control_url, conference_id, leave_conference_url, listen, notification_url, start_conf_on_enter, talk].hash
227
199
  end
228
200
 
229
201
  # Builds the object from hash
@@ -27,9 +27,6 @@ module Freeclimb
27
27
  # ID of the Conference to which to add the Participant (Call leg). Conference must exist or an error will result.
28
28
  attr_accessor :conference_id
29
29
 
30
- # ID of the Call that will be added to the specified Conference. The Call must be in progress or an error will result. If the Call is part of an existing Conference, it is first removed from that Conference and is then moved to the new one.
31
- attr_accessor :call_id
32
-
33
30
  # URL to be invoked when the Participant leaves the Conference.
34
31
  attr_accessor :leave_conference_url
35
32
 
@@ -52,7 +49,6 @@ module Freeclimb
52
49
  :'call_control_sequence' => :'callControlSequence',
53
50
  :'call_control_url' => :'callControlUrl',
54
51
  :'conference_id' => :'conferenceId',
55
- :'call_id' => :'callId',
56
52
  :'leave_conference_url' => :'leaveConferenceUrl',
57
53
  :'listen' => :'listen',
58
54
  :'notification_url' => :'notificationUrl',
@@ -73,7 +69,6 @@ module Freeclimb
73
69
  :'call_control_sequence' => :'String',
74
70
  :'call_control_url' => :'String',
75
71
  :'conference_id' => :'String',
76
- :'call_id' => :'String',
77
72
  :'leave_conference_url' => :'String',
78
73
  :'listen' => :'Boolean',
79
74
  :'notification_url' => :'String',
@@ -119,10 +114,6 @@ module Freeclimb
119
114
  self.conference_id = attributes[:'conference_id']
120
115
  end
121
116
 
122
- if attributes.key?(:'call_id')
123
- self.call_id = attributes[:'call_id']
124
- end
125
-
126
117
  if attributes.key?(:'leave_conference_url')
127
118
  self.leave_conference_url = attributes[:'leave_conference_url']
128
119
  end
@@ -161,24 +152,6 @@ module Freeclimb
161
152
 
162
153
  if @allow_call_control.nil?
163
154
  false
164
- elsif @call_control_sequence.nil?
165
- false
166
- elsif @call_control_url.nil?
167
- false
168
- elsif @conference_id.nil?
169
- false
170
- elsif @call_id.nil?
171
- false
172
- elsif @leave_conference_url.nil?
173
- false
174
- elsif @listen.nil?
175
- false
176
- elsif @notification_url.nil?
177
- false
178
- elsif @start_conf_on_enter.nil?
179
- false
180
- elsif @talk.nil?
181
- false
182
155
  else
183
156
  list_invalid_properties.length() == 0
184
157
  end
@@ -193,7 +166,6 @@ module Freeclimb
193
166
  call_control_sequence == o.call_control_sequence &&
194
167
  call_control_url == o.call_control_url &&
195
168
  conference_id == o.conference_id &&
196
- call_id == o.call_id &&
197
169
  leave_conference_url == o.leave_conference_url &&
198
170
  listen == o.listen &&
199
171
  notification_url == o.notification_url &&
@@ -210,7 +182,7 @@ module Freeclimb
210
182
  # Calculates hash code according to all attributes.
211
183
  # @return [Integer] Hash code
212
184
  def hash
213
- [allow_call_control, call_control_sequence, call_control_url, conference_id, call_id, leave_conference_url, listen, notification_url, start_conf_on_enter, talk].hash
185
+ [allow_call_control, call_control_sequence, call_control_url, conference_id, leave_conference_url, listen, notification_url, start_conf_on_enter, talk].hash
214
186
  end
215
187
 
216
188
  # Builds the object from hash
@@ -201,12 +201,6 @@ module Freeclimb
201
201
 
202
202
  if @uri.nil?
203
203
  false
204
- elsif @date_created.nil?
205
- false
206
- elsif @date_updated.nil?
207
- false
208
- elsif @revision.nil?
209
- false
210
204
  else
211
205
  list_invalid_properties.length() == 0
212
206
  end
@@ -98,10 +98,6 @@ module Freeclimb
98
98
 
99
99
  if @phone_number.nil?
100
100
  false
101
- elsif @_alias.nil?
102
- false
103
- elsif @application_id.nil?
104
- false
105
101
  else
106
102
  list_invalid_properties.length() == 0
107
103
  end
@@ -258,12 +258,6 @@ module Freeclimb
258
258
 
259
259
  if @uri.nil?
260
260
  false
261
- elsif @date_created.nil?
262
- false
263
- elsif @date_updated.nil?
264
- false
265
- elsif @revision.nil?
266
- false
267
261
  else
268
262
  list_invalid_properties.length() == 0
269
263
  end
@@ -171,12 +171,6 @@ module Freeclimb
171
171
 
172
172
  if @uri.nil?
173
173
  false
174
- elsif @date_created.nil?
175
- false
176
- elsif @date_updated.nil?
177
- false
178
- elsif @revision.nil?
179
- false
180
174
  else
181
175
  list_invalid_properties.length() == 0
182
176
  end
@@ -211,12 +211,6 @@ module Freeclimb
211
211
 
212
212
  if @uri.nil?
213
213
  false
214
- elsif @date_created.nil?
215
- false
216
- elsif @date_updated.nil?
217
- false
218
- elsif @revision.nil?
219
- false
220
214
  else
221
215
  list_invalid_properties.length() == 0
222
216
  end
@@ -140,14 +140,6 @@ module Freeclimb
140
140
 
141
141
  if @action_url.nil?
142
142
  false
143
- elsif @_alias.nil?
144
- false
145
- elsif @record.nil?
146
- false
147
- elsif @status_callback_url.nil?
148
- false
149
- elsif @wait_url.nil?
150
- false
151
143
  else
152
144
  list_invalid_properties.length() == 0
153
145
  end
@@ -127,14 +127,6 @@ module Freeclimb
127
127
 
128
128
  if @action_url.nil?
129
129
  false
130
- elsif @_alias.nil?
131
- false
132
- elsif @record.nil?
133
- false
134
- elsif @status_callback_url.nil?
135
- false
136
- elsif @wait_url.nil?
137
- false
138
130
  else
139
131
  list_invalid_properties.length() == 0
140
132
  end
@@ -114,12 +114,6 @@ module Freeclimb
114
114
 
115
115
  if @_alias.nil?
116
116
  false
117
- elsif @record.nil?
118
- false
119
- elsif @wait_url.nil?
120
- false
121
- elsif @status_callback_url.nil?
122
- false
123
117
  else
124
118
  list_invalid_properties.length() == 0
125
119
  end