freeclimb 4.8.0 → 4.9.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +1 -1
- data/README.md +6 -4
- data/docs/AddToConference.md +3 -1
- data/docs/AddToConferenceAllOf.md +3 -1
- data/docs/CallResult.md +3 -1
- data/docs/CallResultAllOf.md +3 -1
- data/docs/ConferenceParticipantResult.md +2 -0
- data/docs/ConferenceParticipantResultAllOf.md +2 -0
- data/docs/DefaultApi.md +3 -1
- data/docs/SetDTMFPassThrough.md +18 -0
- data/docs/SetDTMFPassThroughAllOf.md +18 -0
- data/docs/UpdateConferenceParticipantRequest.md +3 -1
- data/lib/freeclimb/api/default_api.rb +3 -0
- data/lib/freeclimb/models/add_to_conference.rb +14 -4
- data/lib/freeclimb/models/add_to_conference_all_of.rb +14 -4
- data/lib/freeclimb/models/call_result.rb +16 -5
- data/lib/freeclimb/models/call_result_all_of.rb +16 -5
- data/lib/freeclimb/models/conference_participant_result.rb +12 -1
- data/lib/freeclimb/models/conference_participant_result_all_of.rb +12 -1
- data/lib/freeclimb/models/message_request.rb +1 -0
- data/lib/freeclimb/models/message_request_all_of.rb +1 -0
- data/lib/freeclimb/models/message_result.rb +1 -0
- data/lib/freeclimb/models/message_result_all_of.rb +1 -0
- data/lib/freeclimb/models/set_dtmf_pass_through.rb +238 -0
- data/lib/freeclimb/models/set_dtmf_pass_through_all_of.rb +224 -0
- data/lib/freeclimb/models/set_listen.rb +1 -1
- data/lib/freeclimb/models/set_talk.rb +1 -1
- data/lib/freeclimb/models/update_conference_participant_request.rb +14 -4
- data/lib/freeclimb/version.rb +1 -1
- data/lib/freeclimb.rb +2 -0
- data/openapi.json +54 -4
- data/spec/models/set_dtmf_pass_through_spec.rb +163 -0
- metadata +8 -2
data/openapi.json
CHANGED
@@ -464,6 +464,7 @@
|
|
464
464
|
"SendDigits": "#/components/schemas/SendDigits",
|
465
465
|
"SetListen": "#/components/schemas/SetListen",
|
466
466
|
"SetTalk": "#/components/schemas/SetTalk",
|
467
|
+
"SetDTMFPassThrough": "#/components/schemas/SetDTMFPassThrough",
|
467
468
|
"Sms": "#/components/schemas/Sms",
|
468
469
|
"StartRecordCall": "#/components/schemas/StartRecordCall",
|
469
470
|
"TerminateConference": "#/components/schemas/TerminateConference",
|
@@ -536,6 +537,10 @@
|
|
536
537
|
"talk": {
|
537
538
|
"description": "If `true`, the Participant joins the Conference with talk privileges. This may be modified later via the REST API or `SetTalk` PerCL command. ",
|
538
539
|
"type": "boolean"
|
540
|
+
},
|
541
|
+
"dtmfPassThrough": {
|
542
|
+
"description": "If `true`, the Participant joins the Conference with dtmfPassThrough privileges. This may be modified later via the REST API or `SetDTMFPassThrough` PerCL command. ",
|
543
|
+
"type": "boolean"
|
539
544
|
}
|
540
545
|
}
|
541
546
|
}
|
@@ -1175,7 +1180,7 @@
|
|
1175
1180
|
]
|
1176
1181
|
},
|
1177
1182
|
"SetListen": {
|
1178
|
-
"description": "The `SetListen` command enables or disables the listen privilege for
|
1183
|
+
"description": "The `SetListen` command enables or disables the listen privilege for this Conference Participant. The Participant can hear what the other participants are saying only if this privilege is enabled.",
|
1179
1184
|
"x-percl-command": true,
|
1180
1185
|
"x-ref-properties": ["false"],
|
1181
1186
|
"allOf": [
|
@@ -1195,7 +1200,7 @@
|
|
1195
1200
|
]
|
1196
1201
|
},
|
1197
1202
|
"SetTalk": {
|
1198
|
-
"description": "The `SetTalk` command enables or disables the talk privilege for
|
1203
|
+
"description": "The `SetTalk` command enables or disables the talk privilege for this Conference Participant. If 'true', no audio from that Participant is shared with the other Participants of the Conference.",
|
1199
1204
|
"x-percl-command": true,
|
1200
1205
|
"x-ref-properties": ["false"],
|
1201
1206
|
"allOf": [
|
@@ -1214,6 +1219,26 @@
|
|
1214
1219
|
}
|
1215
1220
|
]
|
1216
1221
|
},
|
1222
|
+
"SetDTMFPassThrough": {
|
1223
|
+
"description": "The `SetDTMFPassThrough` command enables or disables the dtmfPassThrough privilege for this Conference Participant. If 'true', DTMFs will be passed through from this Participant to all other Participants in the Conference",
|
1224
|
+
"x-percl-command": true,
|
1225
|
+
"x-ref-properties": ["false"],
|
1226
|
+
"allOf": [
|
1227
|
+
{
|
1228
|
+
"$ref": "#/components/schemas/PerclCommand"
|
1229
|
+
},
|
1230
|
+
{
|
1231
|
+
"required": [],
|
1232
|
+
"type": "object",
|
1233
|
+
"properties": {
|
1234
|
+
"dtmfPassThrough": {
|
1235
|
+
"description": "Specifying `false` mutes the Participant's dtmf audio.",
|
1236
|
+
"type": "boolean"
|
1237
|
+
}
|
1238
|
+
}
|
1239
|
+
}
|
1240
|
+
]
|
1241
|
+
},
|
1217
1242
|
"Sms": {
|
1218
1243
|
"description": "The `Sms` command can be used to send an SMS message to a phone number during a phone call. International SMS is disabled by default.",
|
1219
1244
|
"x-percl-command": true,
|
@@ -1842,6 +1867,11 @@
|
|
1842
1867
|
"type": "object",
|
1843
1868
|
"description": "The list of subresources for this Call. These include things like logs and recordings associated with the Call.",
|
1844
1869
|
"nullable": true
|
1870
|
+
},
|
1871
|
+
"applicationId": {
|
1872
|
+
"type": "string",
|
1873
|
+
"description": "ApplicationId associated with the Call.",
|
1874
|
+
"nullable": true
|
1845
1875
|
}
|
1846
1876
|
}
|
1847
1877
|
}
|
@@ -2155,7 +2185,8 @@
|
|
2155
2185
|
"items": {
|
2156
2186
|
"type": "string",
|
2157
2187
|
"format": "uri"
|
2158
|
-
}
|
2188
|
+
},
|
2189
|
+
"nullable": true
|
2159
2190
|
}
|
2160
2191
|
}
|
2161
2192
|
}
|
@@ -2282,7 +2313,8 @@
|
|
2282
2313
|
"items": {
|
2283
2314
|
"type": "string",
|
2284
2315
|
"format": "uri"
|
2285
|
-
}
|
2316
|
+
},
|
2317
|
+
"nullable": true
|
2286
2318
|
}
|
2287
2319
|
}
|
2288
2320
|
}
|
@@ -2360,6 +2392,11 @@
|
|
2360
2392
|
"description": "True if this Participant has listen privileges in the Conference. False otherwise.",
|
2361
2393
|
"nullable": true
|
2362
2394
|
},
|
2395
|
+
"dtmfPassThrough": {
|
2396
|
+
"type": "boolean",
|
2397
|
+
"description": "True if this Participant had dtmfPassThrough privileges in the Conference. False otherwise.",
|
2398
|
+
"nullable": true
|
2399
|
+
},
|
2363
2400
|
"startConfOnEnter": {
|
2364
2401
|
"type": "boolean",
|
2365
2402
|
"description": "True if this Participant joining the Conference caused the Conference to start (status = inProgress). False otherwise.",
|
@@ -2379,6 +2416,10 @@
|
|
2379
2416
|
"listen": {
|
2380
2417
|
"type": "boolean",
|
2381
2418
|
"description": "(Optional) Default is `true`. Setting to `false` silences the Conference for this Participant. FreeClimb returns an error and ignores any other value."
|
2419
|
+
},
|
2420
|
+
"dtmfPassThrough": {
|
2421
|
+
"type": "boolean",
|
2422
|
+
"description": "(Optional) Default is `true`. Setting to `false` mutes dtmf audio for this Participant. FreeClimb returns an error and ignores any other value."
|
2382
2423
|
}
|
2383
2424
|
}
|
2384
2425
|
},
|
@@ -4936,6 +4977,15 @@
|
|
4936
4977
|
"type": "boolean"
|
4937
4978
|
}
|
4938
4979
|
},
|
4980
|
+
{
|
4981
|
+
"name": "dtmfPassThrough",
|
4982
|
+
"in": "query",
|
4983
|
+
"description": "Only show Participants with the dtmfPassThrough privilege.",
|
4984
|
+
"required": false,
|
4985
|
+
"schema": {
|
4986
|
+
"type": "boolean"
|
4987
|
+
}
|
4988
|
+
},
|
4939
4989
|
{
|
4940
4990
|
"$ref": "#/components/parameters/AccountId"
|
4941
4991
|
},
|
@@ -0,0 +1,163 @@
|
|
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: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Freeclimb::SetDTMFPassThrough
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Freeclimb::SetDTMFPassThrough do
|
21
|
+
let(:instance) { Freeclimb::SetDTMFPassThrough.new }
|
22
|
+
|
23
|
+
describe 'test an instance of SetDTMFPassThrough' do
|
24
|
+
it 'should create an instance of SetDTMFPassThrough' do
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::SetDTMFPassThrough)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test attribute "dtmf_pass_through"' do
|
30
|
+
it 'should work' do
|
31
|
+
instance.dtmf_pass_through = false
|
32
|
+
expect(instance.dtmf_pass_through).to eq(false)
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
describe 'test method "initialize"' do
|
38
|
+
it 'properly initializes with values' do
|
39
|
+
expect{instance = Freeclimb::SetDTMFPassThrough.new(
|
40
|
+
dtmf_pass_through: true,
|
41
|
+
)}.not_to raise_error()
|
42
|
+
end
|
43
|
+
it 'fails to initialize with input argument that is not a hash in Freeclimb::SetDTMFPassThrough' do
|
44
|
+
expect{instance = Freeclimb::SetDTMFPassThrough.new(
|
45
|
+
dtmf_pass_through: true,
|
46
|
+
invalid_attribute: true
|
47
|
+
)}.to raise_error(ArgumentError)
|
48
|
+
end
|
49
|
+
it 'fails to initialize with invalid attribute' do
|
50
|
+
expect{instance = Freeclimb::SetDTMFPassThrough.new(
|
51
|
+
dtmf_pass_through: true,
|
52
|
+
invalid_attribute: true
|
53
|
+
)}.to raise_error(ArgumentError)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
describe 'test method "valid"' do
|
58
|
+
it 'checks if properties are valid' do
|
59
|
+
instance = Freeclimb::SetDTMFPassThrough.new(
|
60
|
+
dtmf_pass_through: true,
|
61
|
+
)
|
62
|
+
expect(instance.valid?).to eq(true)
|
63
|
+
end
|
64
|
+
|
65
|
+
|
66
|
+
skip 'checks if properties are invalid' do
|
67
|
+
instance = Freeclimb::SetDTMFPassThrough.new(
|
68
|
+
|
69
|
+
)
|
70
|
+
expect(instance.valid?).to eq(false)
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
74
|
+
|
75
|
+
describe 'test method "eql?"' do
|
76
|
+
it 'checks if objects are equal' do
|
77
|
+
obj = Object.new()
|
78
|
+
instance_1 = Freeclimb::SetDTMFPassThrough.new(
|
79
|
+
dtmf_pass_through: true,
|
80
|
+
)
|
81
|
+
instance_2 = Freeclimb::SetDTMFPassThrough.new(
|
82
|
+
dtmf_pass_through: true,
|
83
|
+
)
|
84
|
+
expect(instance_1.eql?(instance_2)).to eq(true)
|
85
|
+
end
|
86
|
+
|
87
|
+
it 'checks if objects are not equal' do
|
88
|
+
instance_1 = Freeclimb::SetDTMFPassThrough.new(
|
89
|
+
dtmf_pass_through: true,
|
90
|
+
)
|
91
|
+
instance_2 = Freeclimb::SetDTMFPassThrough.new(
|
92
|
+
dtmf_pass_through: false,
|
93
|
+
)
|
94
|
+
expect(instance_1.eql?(instance_2)).to eq(false)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
describe 'test method "hash"' do
|
99
|
+
it 'calculates hash code' do
|
100
|
+
instance = Freeclimb::SetDTMFPassThrough.new(
|
101
|
+
dtmf_pass_through: true,
|
102
|
+
)
|
103
|
+
expect(instance.hash).to be_a_kind_of(Integer)
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
describe 'test method "build_from_hash"' do
|
108
|
+
it 'builds equivalent model from hash code' do
|
109
|
+
instance_1 = Freeclimb::SetDTMFPassThrough.new(
|
110
|
+
dtmf_pass_through: true,
|
111
|
+
)
|
112
|
+
instance_2 = Freeclimb::SetDTMFPassThrough.new
|
113
|
+
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
describe 'test method "_deserialize"' do
|
118
|
+
instance = Freeclimb::SetDTMFPassThrough.new(
|
119
|
+
dtmf_pass_through: true,
|
120
|
+
)
|
121
|
+
it 'deserializes the data of dtmf_pass_through' do
|
122
|
+
expect(instance._deserialize("Boolean", instance.dtmf_pass_through)).to be_a_kind_of(TrueClass)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
describe 'test method "to_s"' do
|
127
|
+
it 'returns the string representation of the object' do
|
128
|
+
instance = Freeclimb::SetDTMFPassThrough.new(
|
129
|
+
dtmf_pass_through: true,
|
130
|
+
)
|
131
|
+
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
describe 'test method "to_hash"' do
|
136
|
+
it 'returns the object in the form of hash' do
|
137
|
+
instance = Freeclimb::SetDTMFPassThrough.new(
|
138
|
+
dtmf_pass_through: true,
|
139
|
+
)
|
140
|
+
expect(instance.to_hash).to be_a_kind_of(Hash)
|
141
|
+
end
|
142
|
+
it 'creates equal hash for two equal objects' do
|
143
|
+
obj = Object.new()
|
144
|
+
instance_1 = Freeclimb::SetDTMFPassThrough.new(
|
145
|
+
dtmf_pass_through: true,
|
146
|
+
)
|
147
|
+
instance_2 = Freeclimb::SetDTMFPassThrough.new(
|
148
|
+
dtmf_pass_through: true,
|
149
|
+
)
|
150
|
+
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
describe 'test method "_to_hash"' do
|
155
|
+
instance = Freeclimb::SetDTMFPassThrough.new(
|
156
|
+
dtmf_pass_through: true,
|
157
|
+
)
|
158
|
+
it 'returns dtmf_pass_through in the form of hash' do
|
159
|
+
expect(instance._to_hash(instance.dtmf_pass_through)).to eq(instance.dtmf_pass_through)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freeclimb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -199,6 +199,8 @@ files:
|
|
199
199
|
- docs/SayAllOf.md
|
200
200
|
- docs/SendDigits.md
|
201
201
|
- docs/SendDigitsAllOf.md
|
202
|
+
- docs/SetDTMFPassThrough.md
|
203
|
+
- docs/SetDTMFPassThroughAllOf.md
|
202
204
|
- docs/SetListen.md
|
203
205
|
- docs/SetListenAllOf.md
|
204
206
|
- docs/SetTalk.md
|
@@ -339,6 +341,8 @@ files:
|
|
339
341
|
- lib/freeclimb/models/say_all_of.rb
|
340
342
|
- lib/freeclimb/models/send_digits.rb
|
341
343
|
- lib/freeclimb/models/send_digits_all_of.rb
|
344
|
+
- lib/freeclimb/models/set_dtmf_pass_through.rb
|
345
|
+
- lib/freeclimb/models/set_dtmf_pass_through_all_of.rb
|
342
346
|
- lib/freeclimb/models/set_listen.rb
|
343
347
|
- lib/freeclimb/models/set_listen_all_of.rb
|
344
348
|
- lib/freeclimb/models/set_talk.rb
|
@@ -456,6 +460,7 @@ files:
|
|
456
460
|
- spec/models/request_type_spec.rb
|
457
461
|
- spec/models/say_spec.rb
|
458
462
|
- spec/models/send_digits_spec.rb
|
463
|
+
- spec/models/set_dtmf_pass_through_spec.rb
|
459
464
|
- spec/models/set_listen_spec.rb
|
460
465
|
- spec/models/set_talk_spec.rb
|
461
466
|
- spec/models/sms_spec.rb
|
@@ -539,6 +544,7 @@ test_files:
|
|
539
544
|
- spec/models/message_direction_spec.rb
|
540
545
|
- spec/models/application_request_spec.rb
|
541
546
|
- spec/models/queue_member_list_spec.rb
|
547
|
+
- spec/models/set_dtmf_pass_through_spec.rb
|
542
548
|
- spec/models/update_call_request_spec.rb
|
543
549
|
- spec/models/play_spec.rb
|
544
550
|
- spec/models/sms_ten_dlc_campaigns_list_result_spec.rb
|