freeclimb 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -1
  3. data/Gemfile +2 -1
  4. data/Gemfile.lock +21 -15
  5. data/README.md +5 -4
  6. data/docs/MessageResult.md +7 -1
  7. data/docs/TFNCampaign.md +34 -0
  8. data/lib/freeclimb/configuration.rb +1 -2
  9. data/lib/freeclimb/models/dequeue.rb +2 -4
  10. data/lib/freeclimb/models/message_result.rb +36 -5
  11. data/lib/freeclimb/models/remove_from_conference.rb +2 -4
  12. data/lib/freeclimb/models/start_record_call.rb +2 -4
  13. data/lib/freeclimb/models/terminate_conference.rb +2 -4
  14. data/lib/freeclimb/models/tfn_campaign.rb +370 -0
  15. data/lib/freeclimb/models/unpark.rb +2 -4
  16. data/lib/freeclimb/version.rb +1 -1
  17. data/lib/freeclimb.rb +1 -0
  18. data/openapi.json +93 -38
  19. data/spec/api/default_api_spec.rb +39 -117
  20. data/spec/models/account_request_spec.rb +113 -2
  21. data/spec/models/account_result_spec.rb +591 -28
  22. data/spec/models/account_status_spec.rb +1 -0
  23. data/spec/models/account_type_spec.rb +1 -0
  24. data/spec/models/add_to_conference_notification_webhook_spec.rb +654 -5
  25. data/spec/models/add_to_conference_spec.rb +471 -2
  26. data/spec/models/add_to_queue_notification_webhook_spec.rb +465 -2
  27. data/spec/models/answered_by_spec.rb +1 -0
  28. data/spec/models/application_list_spec.rb +323 -2
  29. data/spec/models/application_request_spec.rb +393 -2
  30. data/spec/models/application_result_spec.rb +723 -14
  31. data/spec/models/available_number_list_spec.rb +323 -2
  32. data/spec/models/available_number_spec.rb +380 -21
  33. data/spec/models/barge_in_reason_spec.rb +1 -0
  34. data/spec/models/buy_incoming_number_request_spec.rb +169 -2
  35. data/spec/models/call_control_webhook_spec.rb +281 -2
  36. data/spec/models/call_direction_spec.rb +1 -0
  37. data/spec/models/call_ended_reason_spec.rb +1 -0
  38. data/spec/models/call_list_spec.rb +323 -2
  39. data/spec/models/call_result_spec.rb +1020 -9
  40. data/spec/models/call_status_spec.rb +1 -0
  41. data/spec/models/call_status_webhook_spec.rb +501 -2
  42. data/spec/models/capabilities_spec.rb +191 -2
  43. data/spec/models/completion_request_spec.rb +54 -2
  44. data/spec/models/completion_result_spec.rb +93 -2
  45. data/spec/models/completion_result_status_spec.rb +1 -0
  46. data/spec/models/conference_list_spec.rb +323 -2
  47. data/spec/models/conference_participant_list_spec.rb +323 -2
  48. data/spec/models/conference_participant_result_spec.rb +532 -7
  49. data/spec/models/conference_recording_status_webhook_spec.rb +654 -5
  50. data/spec/models/conference_result_spec.rb +768 -55
  51. data/spec/models/conference_status_spec.rb +1 -0
  52. data/spec/models/conference_status_webhook_spec.rb +654 -5
  53. data/spec/models/create_conference_request_spec.rb +243 -2
  54. data/spec/models/create_conference_spec.rb +281 -2
  55. data/spec/models/create_conference_webhook_spec.rb +654 -5
  56. data/spec/models/create_web_rtc_token_spec.rb +151 -2
  57. data/spec/models/dequeue_spec.rb +1 -0
  58. data/spec/models/dequeue_webhook_spec.rb +565 -8
  59. data/spec/models/enqueue_spec.rb +225 -2
  60. data/spec/models/filter_logs_request_spec.rb +57 -2
  61. data/spec/models/get_digits_reason_spec.rb +1 -0
  62. data/spec/models/get_digits_spec.rb +379 -2
  63. data/spec/models/get_digits_webhook_spec.rb +623 -12
  64. data/spec/models/get_speech_reason_spec.rb +1 -0
  65. data/spec/models/get_speech_spec.rb +556 -11
  66. data/spec/models/get_speech_webhook_spec.rb +870 -15
  67. data/spec/models/grammar_file_built_in_spec.rb +1 -0
  68. data/spec/models/grammar_type_spec.rb +1 -0
  69. data/spec/models/hangup_spec.rb +57 -2
  70. data/spec/models/if_machine_spec.rb +1 -0
  71. data/spec/models/inbound_call_webhook_spec.rb +521 -2
  72. data/spec/models/incoming_number_list_spec.rb +323 -2
  73. data/spec/models/incoming_number_request_spec.rb +169 -2
  74. data/spec/models/incoming_number_result_spec.rb +930 -43
  75. data/spec/models/language_spec.rb +1 -0
  76. data/spec/models/leave_conference_webhook_spec.rb +465 -2
  77. data/spec/models/log_level_spec.rb +1 -0
  78. data/spec/models/log_list_spec.rb +323 -2
  79. data/spec/models/log_result_spec.rb +368 -9
  80. data/spec/models/machine_detected_webhook_spec.rb +565 -10
  81. data/spec/models/machine_type_spec.rb +1 -0
  82. data/spec/models/make_call_request_spec.rb +529 -6
  83. data/spec/models/message_delivery_webhook_spec.rb +565 -6
  84. data/spec/models/message_direction_spec.rb +1 -0
  85. data/spec/models/message_request_spec.rb +469 -2
  86. data/spec/models/message_result_spec.rb +1364 -225
  87. data/spec/models/message_status_spec.rb +1 -0
  88. data/spec/models/message_status_webhook_spec.rb +615 -20
  89. data/spec/models/messages_list_spec.rb +323 -2
  90. data/spec/models/mutable_resource_model_spec.rb +207 -2
  91. data/spec/models/out_dial_api_connect_webhook_spec.rb +521 -2
  92. data/spec/models/out_dial_connect_webhook_spec.rb +521 -2
  93. data/spec/models/out_dial_spec.rb +505 -2
  94. data/spec/models/out_dial_start_webhook_spec.rb +599 -24
  95. data/spec/models/pagination_model_spec.rb +285 -2
  96. data/spec/models/park_spec.rb +169 -2
  97. data/spec/models/pause_spec.rb +39 -2
  98. data/spec/models/percl_command_spec.rb +54 -2
  99. data/spec/models/percl_script_spec.rb +39 -2
  100. data/spec/models/play_beep_spec.rb +1 -0
  101. data/spec/models/play_early_media_spec.rb +57 -2
  102. data/spec/models/play_spec.rb +133 -2
  103. data/spec/models/queue_list_spec.rb +323 -2
  104. data/spec/models/queue_member_list_spec.rb +323 -2
  105. data/spec/models/queue_member_spec.rb +245 -2
  106. data/spec/models/queue_request_spec.rb +95 -2
  107. data/spec/models/queue_result_spec.rb +564 -15
  108. data/spec/models/queue_result_status_spec.rb +1 -0
  109. data/spec/models/queue_wait_webhook_spec.rb +616 -21
  110. data/spec/models/record_utterance_spec.rb +303 -2
  111. data/spec/models/record_utterance_term_reason_spec.rb +1 -0
  112. data/spec/models/record_webhook_spec.rb +868 -13
  113. data/spec/models/recording_list_spec.rb +323 -2
  114. data/spec/models/recording_result_spec.rb +469 -2
  115. data/spec/models/redirect_spec.rb +57 -2
  116. data/spec/models/redirect_webhook_spec.rb +521 -2
  117. data/spec/models/reject_spec.rb +57 -2
  118. data/spec/models/remove_from_conference_spec.rb +1 -0
  119. data/spec/models/remove_from_queue_notification_webhook_spec.rb +546 -9
  120. data/spec/models/request_type_spec.rb +1 -0
  121. data/spec/models/say_spec.rb +189 -2
  122. data/spec/models/send_digits_spec.rb +133 -2
  123. data/spec/models/set_dtmf_pass_through_spec.rb +39 -2
  124. data/spec/models/set_listen_spec.rb +39 -2
  125. data/spec/models/set_talk_spec.rb +39 -2
  126. data/spec/models/sms_spec.rb +225 -2
  127. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +1 -0
  128. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +1 -0
  129. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +1 -0
  130. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +1 -0
  131. data/spec/models/sms_ten_dlc_brand_spec.rb +1969 -423
  132. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +1 -0
  133. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +323 -2
  134. data/spec/models/sms_ten_dlc_campaign_spec.rb +2224 -550
  135. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +1 -0
  136. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +323 -2
  137. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +597 -17
  138. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +1537 -155
  139. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +1 -0
  140. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +323 -2
  141. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +1 -0
  142. data/spec/models/sms_toll_free_campaign_spec.rb +355 -2
  143. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +323 -2
  144. data/spec/models/start_record_call_spec.rb +1 -0
  145. data/spec/models/terminate_conference_spec.rb +1 -0
  146. data/spec/models/tfn_campaign_spec.rb +1089 -0
  147. data/spec/models/tfn_spec.rb +57 -2
  148. data/spec/models/transcribe_reason_spec.rb +1 -0
  149. data/spec/models/transcribe_term_reason_spec.rb +1 -0
  150. data/spec/models/transcribe_utterance_record_spec.rb +115 -2
  151. data/spec/models/transcribe_utterance_spec.rb +288 -21
  152. data/spec/models/transcribe_webhook_spec.rb +1049 -4
  153. data/spec/models/unpark_spec.rb +1 -0
  154. data/spec/models/update_call_request_spec.rb +37 -2
  155. data/spec/models/update_call_request_status_spec.rb +1 -0
  156. data/spec/models/update_conference_participant_request_spec.rb +115 -2
  157. data/spec/models/update_conference_request_spec.rb +129 -2
  158. data/spec/models/update_conference_request_status_spec.rb +1 -0
  159. data/spec/models/webhook_spec.rb +54 -2
  160. metadata +129 -125
@@ -0,0 +1,370 @@
1
+ =begin
2
+ #FreeClimb API
3
+
4
+ #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@freeclimb.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.9.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Freeclimb
17
+ class TFNCampaign
18
+ # ID of the account that created this participant.
19
+ attr_accessor :account_id
20
+
21
+ # TFNCampaignId
22
+ attr_accessor :campaign_id
23
+
24
+ attr_accessor :use_case
25
+
26
+ attr_accessor :registration_status
27
+
28
+ attr_accessor :date_created
29
+
30
+ attr_accessor :date_updated
31
+
32
+ attr_accessor :date_created_iso
33
+
34
+ attr_accessor :date_updated_iso
35
+
36
+ attr_accessor :revision
37
+
38
+ class EnumAttributeValidator
39
+ attr_reader :datatype
40
+ attr_reader :allowable_values
41
+
42
+ def initialize(datatype, allowable_values)
43
+ @allowable_values = allowable_values.map do |value|
44
+ case datatype.to_s
45
+ when /Integer/i
46
+ value.to_i
47
+ when /Float/i
48
+ value.to_f
49
+ else
50
+ value
51
+ end
52
+ end
53
+ end
54
+
55
+ def valid?(value)
56
+ !value || allowable_values.include?(value)
57
+ end
58
+ end
59
+
60
+ # Attribute mapping from ruby-style variable name to JSON key.
61
+ def self.attribute_map
62
+ {
63
+ :'account_id' => :'accountId',
64
+ :'campaign_id' => :'campaignId',
65
+ :'use_case' => :'useCase',
66
+ :'registration_status' => :'registrationStatus',
67
+ :'date_created' => :'dateCreated',
68
+ :'date_updated' => :'dateUpdated',
69
+ :'date_created_iso' => :'dateCreatedISO',
70
+ :'date_updated_iso' => :'dateUpdatedISO',
71
+ :'revision' => :'revision'
72
+ }
73
+ end
74
+
75
+ # Returns all the JSON keys this model knows about
76
+ def self.acceptable_attributes
77
+ attribute_map.values
78
+ end
79
+
80
+ # Attribute type mapping.
81
+ def self.openapi_types
82
+ {
83
+ :'account_id' => :'String',
84
+ :'campaign_id' => :'String',
85
+ :'use_case' => :'String',
86
+ :'registration_status' => :'SMSTollFreeCampaignRegistrationStatus',
87
+ :'date_created' => :'String',
88
+ :'date_updated' => :'String',
89
+ :'date_created_iso' => :'String',
90
+ :'date_updated_iso' => :'String',
91
+ :'revision' => :'Integer'
92
+ }
93
+ end
94
+
95
+ # List of attributes with nullable: true
96
+ def self.openapi_nullable
97
+ Set.new([
98
+ :'account_id',
99
+ ])
100
+ end
101
+
102
+ # Initializes the object
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ def initialize(attributes = {})
105
+ if (!attributes.is_a?(Hash))
106
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Freeclimb::TFNCampaign` initialize method"
107
+ end
108
+
109
+ # check to see if the attribute exists and convert string to symbol for hash key
110
+ attributes = attributes.each_with_object({}) { |(k, v), h|
111
+ if (!self.class.attribute_map.key?(k.to_sym))
112
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Freeclimb::TFNCampaign`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
113
+ end
114
+ h[k.to_sym] = v
115
+ }
116
+
117
+ if attributes.key?(:'account_id')
118
+ self.account_id = attributes[:'account_id']
119
+ end
120
+
121
+ if attributes.key?(:'campaign_id')
122
+ self.campaign_id = attributes[:'campaign_id']
123
+ end
124
+
125
+ if attributes.key?(:'use_case')
126
+ self.use_case = attributes[:'use_case']
127
+ end
128
+
129
+ if attributes.key?(:'registration_status')
130
+ self.registration_status = attributes[:'registration_status']
131
+ end
132
+
133
+ if attributes.key?(:'date_created')
134
+ self.date_created = attributes[:'date_created']
135
+ end
136
+
137
+ if attributes.key?(:'date_updated')
138
+ self.date_updated = attributes[:'date_updated']
139
+ end
140
+
141
+ if attributes.key?(:'date_created_iso')
142
+ self.date_created_iso = attributes[:'date_created_iso']
143
+ end
144
+
145
+ if attributes.key?(:'date_updated_iso')
146
+ self.date_updated_iso = attributes[:'date_updated_iso']
147
+ end
148
+
149
+ if attributes.key?(:'revision')
150
+ self.revision = attributes[:'revision']
151
+ end
152
+ end
153
+
154
+ # Show invalid properties with the reasons. Usually used together with valid?
155
+ # @return Array for valid properties with the reasons
156
+ def list_invalid_properties
157
+ invalid_properties = Array.new
158
+ if @campaign_id.nil?
159
+ invalid_properties.push('invalid value for "campaign_id", campaign_id cannot be nil.')
160
+ end
161
+
162
+ pattern = Regexp.new(/cmptfn_[a-fA-F0-9]{40}/)
163
+ if @campaign_id !~ pattern
164
+ invalid_properties.push("invalid value for \"campaign_id\", must conform to the pattern #{pattern}.")
165
+ end
166
+
167
+ if @use_case.nil?
168
+ invalid_properties.push('invalid value for "use_case", use_case cannot be nil.')
169
+ end
170
+
171
+ if @registration_status.nil?
172
+ invalid_properties.push('invalid value for "registration_status", registration_status cannot be nil.')
173
+ end
174
+
175
+ if @date_created.nil?
176
+ invalid_properties.push('invalid value for "date_created", date_created cannot be nil.')
177
+ end
178
+
179
+ if @date_updated.nil?
180
+ invalid_properties.push('invalid value for "date_updated", date_updated cannot be nil.')
181
+ end
182
+
183
+ if @date_created_iso.nil?
184
+ invalid_properties.push('invalid value for "date_created_iso", date_created_iso cannot be nil.')
185
+ end
186
+
187
+ if @date_updated_iso.nil?
188
+ invalid_properties.push('invalid value for "date_updated_iso", date_updated_iso cannot be nil.')
189
+ end
190
+
191
+ if @revision.nil?
192
+ invalid_properties.push('invalid value for "revision", revision cannot be nil.')
193
+ end
194
+
195
+ invalid_properties
196
+ end
197
+
198
+ # Check to see if the all the properties in the model are valid
199
+ # @return true if the model is valid
200
+ def valid?
201
+
202
+ if @account_id.nil?
203
+ false
204
+ else
205
+ list_invalid_properties.length() == 0
206
+ end
207
+ end
208
+
209
+ # Custom attribute writer method with validation
210
+ # @param [Object] campaign_id Value to be assigned
211
+ def campaign_id=(campaign_id)
212
+ if campaign_id.nil?
213
+ fail ArgumentError, 'campaign_id cannot be nil'
214
+ end
215
+
216
+ pattern = Regexp.new(/cmptfn_[a-fA-F0-9]{40}/)
217
+ if campaign_id !~ pattern
218
+ fail ArgumentError, "invalid value for \"campaign_id\", must conform to the pattern #{pattern}."
219
+ end
220
+
221
+ @campaign_id = campaign_id
222
+ end
223
+
224
+ # Checks equality by comparing each attribute.
225
+ # @param [Object] Object to be compared
226
+ def ==(o)
227
+ return true if self.equal?(o)
228
+ self.class == o.class &&
229
+ account_id == o.account_id &&
230
+ campaign_id == o.campaign_id &&
231
+ use_case == o.use_case &&
232
+ registration_status == o.registration_status &&
233
+ date_created == o.date_created &&
234
+ date_updated == o.date_updated &&
235
+ date_created_iso == o.date_created_iso &&
236
+ date_updated_iso == o.date_updated_iso &&
237
+ revision == o.revision
238
+ end
239
+
240
+ # @see the `==` method
241
+ # @param [Object] Object to be compared
242
+ def eql?(o)
243
+ self == o
244
+ end
245
+
246
+ # Calculates hash code according to all attributes.
247
+ # @return [Integer] Hash code
248
+ def hash
249
+ [account_id, campaign_id, use_case, registration_status, date_created, date_updated, date_created_iso, date_updated_iso, revision].hash
250
+ end
251
+
252
+ # Builds the object from hash
253
+ # @param [Hash] attributes Model attributes in the form of hash
254
+ # @return [Object] Returns the model itself
255
+ def self.build_from_hash(attributes)
256
+ new.build_from_hash(attributes)
257
+ end
258
+
259
+ # Builds the object from hash
260
+ # @param [Hash] attributes Model attributes in the form of hash
261
+ # @return [Object] Returns the model itself
262
+ def build_from_hash(attributes)
263
+ return nil unless attributes.is_a?(Hash)
264
+ self.class.openapi_types.each_pair do |key, type|
265
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
266
+ self.send("#{key}=", nil)
267
+ elsif type =~ /\AArray<(.*)>/i
268
+ # check to ensure the input is an array given that the attribute
269
+ # is documented as an array but the input is not
270
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
271
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
272
+ end
273
+ elsif !attributes[self.class.attribute_map[key]].nil?
274
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
275
+ end
276
+ end
277
+
278
+ self
279
+ end
280
+
281
+ # Deserializes the data based on type
282
+ # @param string type Data type
283
+ # @param string value Value to be deserialized
284
+ # @return [Object] Deserialized data
285
+ def _deserialize(type, value)
286
+ case type.to_sym
287
+ when :Time
288
+ Time.parse(value)
289
+ when :Date
290
+ Date.parse(value)
291
+ when :String
292
+ value.to_s
293
+ when :Integer
294
+ value.to_i
295
+ when :Float
296
+ value.to_f
297
+ when :Boolean
298
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
299
+ true
300
+ else
301
+ false
302
+ end
303
+ when :Object
304
+ # generic object (usually a Hash), return directly
305
+ value
306
+ when /\AArray<(?<inner_type>.+)>\z/
307
+ inner_type = Regexp.last_match[:inner_type]
308
+ value.map { |v| _deserialize(inner_type, v) }
309
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
310
+ k_type = Regexp.last_match[:k_type]
311
+ v_type = Regexp.last_match[:v_type]
312
+ {}.tap do |hash|
313
+ value.each do |k, v|
314
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
315
+ end
316
+ end
317
+ else # model
318
+ # models (e.g. Pet) or oneOf
319
+ klass = Freeclimb.const_get(type)
320
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
321
+ end
322
+ end
323
+
324
+ # Returns the string representation of the object
325
+ # @return [String] String presentation of the object
326
+ def to_s
327
+ to_hash.to_s
328
+ end
329
+
330
+ # to_body is an alias to to_hash (backward compatibility)
331
+ # @return [Hash] Returns the object in the form of hash
332
+ def to_body
333
+ to_hash
334
+ end
335
+
336
+ # Returns the object in the form of hash
337
+ # @return [Hash] Returns the object in the form of hash
338
+ def to_hash
339
+ hash = {}
340
+ self.class.attribute_map.each_pair do |attr, param|
341
+ value = self.send(attr)
342
+ if value.nil?
343
+ is_nullable = self.class.openapi_nullable.include?(attr)
344
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
345
+ end
346
+
347
+ hash[param] = _to_hash(value)
348
+ end
349
+ hash
350
+ end
351
+
352
+ # Outputs non-array value in the form of hash
353
+ # For object, use to_hash. Otherwise, just return the value
354
+ # @param [Object] value Any valid value
355
+ # @return [Hash] Returns the value in the form of hash
356
+ def _to_hash(value)
357
+ if value.is_a?(Array)
358
+ value.compact.map { |v| _to_hash(v) }
359
+ elsif value.is_a?(Hash)
360
+ {}.tap do |hash|
361
+ value.each { |k, v| hash[k] = _to_hash(v) }
362
+ end
363
+ elsif value.respond_to? :to_hash
364
+ value.to_hash
365
+ else
366
+ value
367
+ end
368
+ end
369
+ end
370
+ end
@@ -18,8 +18,7 @@ module Freeclimb
18
18
  class Unpark < PerclCommand
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
- {
22
- }
21
+ {}
23
22
  end
24
23
 
25
24
  # Returns all the JSON keys this model knows about, including the ones defined in its parent(s)
@@ -29,8 +28,7 @@ module Freeclimb
29
28
 
30
29
  # Attribute type mapping.
31
30
  def self.openapi_types
32
- {
33
- }
31
+ {}
34
32
  end
35
33
 
36
34
  # List of attributes with nullable: true
@@ -11,5 +11,5 @@ OpenAPI Generator version: 7.9.0
11
11
  =end
12
12
 
13
13
  module Freeclimb
14
- VERSION = '5.0.0'
14
+ VERSION = '5.1.0'
15
15
  end
data/lib/freeclimb.rb CHANGED
@@ -98,6 +98,7 @@ require 'freeclimb/models/sms_toll_free_campaign'
98
98
  require 'freeclimb/models/sms_toll_free_campaign_registration_status'
99
99
  require 'freeclimb/models/sms_toll_free_campaigns_list_result'
100
100
  require 'freeclimb/models/tfn'
101
+ require 'freeclimb/models/tfn_campaign'
101
102
  require 'freeclimb/models/transcribe_reason'
102
103
  require 'freeclimb/models/transcribe_term_reason'
103
104
  require 'freeclimb/models/transcribe_utterance_record'
data/openapi.json CHANGED
@@ -151,12 +151,7 @@
151
151
  },
152
152
  "GetDigitsReason": {
153
153
  "type": "string",
154
- "enum": [
155
- "finishKey",
156
- "timeout",
157
- "maxDigits",
158
- "tone"
159
- ],
154
+ "enum": ["finishKey", "timeout", "maxDigits", "tone"],
160
155
  "description": "This field explains how the GetDigits action ended. The value is one of the below: •finishKey - The finish key as specified had been pressed by the caller. Digit string has all keys up to, but not including, the finish key. •timeout - The timeout limit was reached prior to any other criteria being met. If any digits were collected, they will be included. •maxDigits - The maximum number of digits was reached and digit collection ended. •tone - Answering machine or fax tone detection occurred, interrupting digit collection. Any digits received up to this point are included in this webhook."
161
156
  },
162
157
  "ConferenceStatus": {
@@ -420,12 +415,7 @@
420
415
  "SMSTenDLCBrandIdentityStatus": {
421
416
  "type": "string",
422
417
  "description": "TCR assessment of the brand identification status.",
423
- "enum": [
424
- "SELF_DECLARED",
425
- "UNVERIFIED",
426
- "VERIFIED",
427
- "VETTED_VERIFIED"
428
- ]
418
+ "enum": ["SELF_DECLARED", "UNVERIFIED", "VERIFIED", "VETTED_VERIFIED"]
429
419
  },
430
420
  "CompletionResultStatus": {
431
421
  "type": "string",
@@ -494,32 +484,32 @@
494
484
  "Webhook": {
495
485
  "type": "object",
496
486
  "discriminator": {
497
- "propertyName": "requestType",
498
- "mapping": {
499
- "addToConferenceNotification": "#/components/schemas/AddToConferenceNotificationWebhook",
500
- "addToQueueNotification": "#/components/schemas/AddToQueueNotificationWebhook",
501
- "callControl": "#/components/schemas/CallControlWebhook",
502
- "callStatus": "#/components/schemas/CallStatusWebhook",
503
- "conferenceRecordingStatus": "#/components/schemas/ConferenceRecordingStatusWebhook",
504
- "conferenceStatus": "#/components/schemas/ConferenceStatusWebhook",
505
- "createConference": "#/components/schemas/CreateConferenceWebhook",
506
- "dequeue": "#/components/schemas/DequeueWebhook",
507
- "getDigits": "#/components/schemas/GetDigitsWebhook",
508
- "getSpeech": "#/components/schemas/GetSpeechWebhook",
509
- "inboundCall": "#/components/schemas/InboundCallWebhook",
510
- "leaveConference": "#/components/schemas/LeaveConferenceWebhook",
511
- "machineDetected": "#/components/schemas/MachineDetectedWebhook",
512
- "messageDelivery": "#/components/schemas/MessageDeliveryWebhook",
513
- "messageStatus": "#/components/schemas/MessageStatusWebhook",
514
- "outDialApiConnect": "#/components/schemas/OutDialApiConnectWebhook",
515
- "outDialConnect": "#/components/schemas/OutDialConnectWebhook",
516
- "outDialStart": "#/components/schemas/OutDialStartWebhook",
517
- "queueWait": "#/components/schemas/QueueWaitWebhook",
518
- "record": "#/components/schemas/RecordWebhook",
519
- "redirect": "#/components/schemas/RedirectWebhook",
520
- "removeFromQueueNotification": "#/components/schemas/RemoveFromQueueNotificationWebhook",
521
- "transcribe": "#/components/schemas/TranscribeWebhook"
522
- }
487
+ "propertyName": "requestType",
488
+ "mapping": {
489
+ "addToConferenceNotification": "#/components/schemas/AddToConferenceNotificationWebhook",
490
+ "addToQueueNotification": "#/components/schemas/AddToQueueNotificationWebhook",
491
+ "callControl": "#/components/schemas/CallControlWebhook",
492
+ "callStatus": "#/components/schemas/CallStatusWebhook",
493
+ "conferenceRecordingStatus": "#/components/schemas/ConferenceRecordingStatusWebhook",
494
+ "conferenceStatus": "#/components/schemas/ConferenceStatusWebhook",
495
+ "createConference": "#/components/schemas/CreateConferenceWebhook",
496
+ "dequeue": "#/components/schemas/DequeueWebhook",
497
+ "getDigits": "#/components/schemas/GetDigitsWebhook",
498
+ "getSpeech": "#/components/schemas/GetSpeechWebhook",
499
+ "inboundCall": "#/components/schemas/InboundCallWebhook",
500
+ "leaveConference": "#/components/schemas/LeaveConferenceWebhook",
501
+ "machineDetected": "#/components/schemas/MachineDetectedWebhook",
502
+ "messageDelivery": "#/components/schemas/MessageDeliveryWebhook",
503
+ "messageStatus": "#/components/schemas/MessageStatusWebhook",
504
+ "outDialApiConnect": "#/components/schemas/OutDialApiConnectWebhook",
505
+ "outDialConnect": "#/components/schemas/OutDialConnectWebhook",
506
+ "outDialStart": "#/components/schemas/OutDialStartWebhook",
507
+ "queueWait": "#/components/schemas/QueueWaitWebhook",
508
+ "record": "#/components/schemas/RecordWebhook",
509
+ "redirect": "#/components/schemas/RedirectWebhook",
510
+ "removeFromQueueNotification": "#/components/schemas/RemoveFromQueueNotificationWebhook",
511
+ "transcribe": "#/components/schemas/TranscribeWebhook"
512
+ }
523
513
  },
524
514
  "properties": {
525
515
  "requestType": {
@@ -3596,11 +3586,76 @@
3596
3586
  "format": "uri"
3597
3587
  },
3598
3588
  "nullable": true
3589
+ },
3590
+ "tfn": {
3591
+ "$ref": "#/components/schemas/TFN",
3592
+ "nullable": true
3593
+ },
3594
+ "phoneNumberId": {
3595
+ "type": "string",
3596
+ "description": "String that uniquely identifies the phoneNumber resource used to send this Message",
3597
+ "nullable": true
3598
+ },
3599
+ "applicationId": {
3600
+ "type": "string",
3601
+ "description": "String that uniquely identifies the Application resource used to send this Message",
3602
+ "nullable": true
3599
3603
  }
3600
3604
  }
3601
3605
  }
3602
3606
  ]
3603
3607
  },
3608
+ "TFNCampaign": {
3609
+ "type": "object",
3610
+ "required": [
3611
+ "accountId",
3612
+ "campaignId",
3613
+ "useCase",
3614
+ "registrationStatus",
3615
+ "dateCreated",
3616
+ "dateUpdated",
3617
+ "dateCreatedISO",
3618
+ "dateUpdatedISO",
3619
+ "revision"
3620
+ ],
3621
+ "properties": {
3622
+ "accountId": {
3623
+ "type": "string",
3624
+ "description": "ID of the account that created this participant.",
3625
+ "nullable": true
3626
+ },
3627
+ "campaignId": {
3628
+ "$ref": "#/components/schemas/TFNCampaignId"
3629
+ },
3630
+ "useCase": {
3631
+ "type": "string"
3632
+ },
3633
+ "registrationStatus": {
3634
+ "$ref": "#/components/schemas/SMSTollFreeCampaignRegistrationStatus"
3635
+ },
3636
+ "dateCreated": {
3637
+ "type": "string"
3638
+ },
3639
+ "dateUpdated": {
3640
+ "type": "string"
3641
+ },
3642
+ "dateCreatedISO": {
3643
+ "type": "string"
3644
+ },
3645
+ "dateUpdatedISO": {
3646
+ "type": "string"
3647
+ },
3648
+ "revision": {
3649
+ "type": "integer"
3650
+ }
3651
+ }
3652
+ },
3653
+ "TFNCampaignId": {
3654
+ "type": "string",
3655
+ "description": "TFNCampaignId",
3656
+ "pattern": "cmptfn_[a-fA-F0-9]{40}",
3657
+ "example": "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a"
3658
+ },
3604
3659
  "CreateConferenceRequest": {
3605
3660
  "type": "object",
3606
3661
  "properties": {