freeclimb 4.2.0 → 4.3.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 +8 -0
- data/Gemfile.lock +1 -1
- data/README.md +7 -5
- data/docs/DefaultApi.md +4 -1
- data/lib/freeclimb/api/default_api.rb +7 -0
- data/lib/freeclimb/models/account_result.rb +2 -0
- data/lib/freeclimb/models/account_result_all_of.rb +2 -0
- data/lib/freeclimb/models/call_result.rb +3 -0
- data/lib/freeclimb/models/call_result_all_of.rb +3 -0
- data/lib/freeclimb/models/conference_result.rb +2 -0
- data/lib/freeclimb/models/conference_result_all_of.rb +2 -0
- data/lib/freeclimb/models/create_conference.rb +1 -0
- data/lib/freeclimb/models/create_conference_all_of.rb +1 -0
- data/lib/freeclimb/models/create_conference_request.rb +1 -0
- data/lib/freeclimb/models/get_speech.rb +1 -0
- data/lib/freeclimb/models/get_speech_all_of.rb +1 -0
- data/lib/freeclimb/models/log_result.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/update_conference_request.rb +1 -0
- data/lib/freeclimb/version.rb +1 -1
- data/openapi.json +38 -25
- data/spec/api/default_api_spec.rb +5 -1
- data/spec/utils/signature_information_spec.rb +4 -3
- metadata +74 -74
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3fe5bf8c6790b57956fa74c9c4ca271e6647335b530451e5a0df169ca04ab698
|
|
4
|
+
data.tar.gz: e88e5d809bdc9a229a617a197bc2abf162540ed41d14382c4ff92f38a50bdfde
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1bc204e826ee90288418715a41d73fa3b5dd6913918758e3f7e81cf53f7a8c720eda653e0749e0be62c6687d7c57a63581693ba789d66817c062a4dab61fa0bd
|
|
7
|
+
data.tar.gz: 026c172225aa3d1345397ab4fbb909ff37a5fc533aee95e986f44b99a72ec3a8bc029adc225199353a67df462ffafd51d84847f8a245def11c8deb19b0bbbd3e
|
data/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,14 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
9
9
|
|
|
10
10
|
None
|
|
11
11
|
|
|
12
|
+
<a name="4.3.0"></a>
|
|
13
|
+
|
|
14
|
+
## [4.3.0] - 2023-04-27
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Introduce application ID filtering for list calls method
|
|
19
|
+
|
|
12
20
|
<a name="4.2.0"></a>
|
|
13
21
|
|
|
14
22
|
## [4.2.0] - 2023-04-03
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ FreeClimb is a cloud-based application programming interface (API) that puts the
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: 1.0.0
|
|
10
|
-
- Package version: 4.
|
|
10
|
+
- Package version: 4.3.0
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [https://www.freeclimb.com/support/](https://www.freeclimb.com/support/)
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ For more information, please visit [https://www.freeclimb.com/support/](https://
|
|
|
15
15
|
|
|
16
16
|
Add this to the Gemfile:
|
|
17
17
|
|
|
18
|
-
gem 'freeclimb', '~> 4.
|
|
18
|
+
gem 'freeclimb', '~> 4.3.0'
|
|
19
19
|
|
|
20
20
|
and run from your terminal
|
|
21
21
|
|
|
@@ -44,9 +44,9 @@ gem build freeclimb.gemspec
|
|
|
44
44
|
Then either install the gem locally:
|
|
45
45
|
|
|
46
46
|
```shell
|
|
47
|
-
gem install ./freeclimb-4.
|
|
47
|
+
gem install ./freeclimb-4.3.0.gem
|
|
48
48
|
```
|
|
49
|
-
(for development, run `gem install --dev ./freeclimb-4.
|
|
49
|
+
(for development, run `gem install --dev ./freeclimb-4.3.0.gem` to install the development dependencies)
|
|
50
50
|
|
|
51
51
|
## Getting Started
|
|
52
52
|
|
|
@@ -285,6 +285,7 @@ Class | Method | HTTP request | Description
|
|
|
285
285
|
|
|
286
286
|
- **Type**: HTTP basic authentication
|
|
287
287
|
|
|
288
|
+
|
|
288
289
|
<a name="documentation-for-verify-request-signature"></a>
|
|
289
290
|
|
|
290
291
|
## Documentation for verifying request signature
|
|
@@ -309,6 +310,7 @@ Class | Method | HTTP request | Description
|
|
|
309
310
|
Freeclimb::RequestVerifier.verify_request_signature(request_body, request_header, signing_secret, tolerance)
|
|
310
311
|
```
|
|
311
312
|
|
|
313
|
+
|
|
312
314
|
## Getting Help
|
|
313
315
|
|
|
314
|
-
If you are experiencing difficulties, [contact support](https://freeclimb.com/support).
|
|
316
|
+
If you are experiencing difficulties, [contact support](https://freeclimb.com/support).
|
data/docs/DefaultApi.md
CHANGED
|
@@ -2104,7 +2104,8 @@ opts = {
|
|
|
2104
2104
|
status: Freeclimb::CallStatus::QUEUED, # CallStatus | Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`.
|
|
2105
2105
|
start_time: 'start_time_example', # String | Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss.
|
|
2106
2106
|
end_time: 'end_time_example', # String | Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
|
|
2107
|
-
parent_call_id: 'parent_call_id_example' # String | Only show Calls spawned by the call with this ID.
|
|
2107
|
+
parent_call_id: 'parent_call_id_example', # String | Only show Calls spawned by the call with this ID.
|
|
2108
|
+
application_id: ['inner_example'] # Array<String> | Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.
|
|
2108
2109
|
}
|
|
2109
2110
|
|
|
2110
2111
|
begin
|
|
@@ -2154,6 +2155,8 @@ end
|
|
|
2154
2155
|
|
|
2155
2156
|
| **parent_call_id** | **String** | Only show Calls spawned by the call with this ID. | [optional] |
|
|
2156
2157
|
|
|
2158
|
+
| **application_id** | [**Array<String>**](String.md) | Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. | [optional] |
|
|
2159
|
+
|
|
2157
2160
|
|
|
2158
2161
|
### Return type
|
|
2159
2162
|
|
|
@@ -1798,6 +1798,7 @@ module Freeclimb
|
|
|
1798
1798
|
# @option opts [String] :start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss.
|
|
1799
1799
|
# @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
|
|
1800
1800
|
# @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
|
|
1801
|
+
# @option opts [Array<String>] :application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.
|
|
1801
1802
|
# @return [CallList]
|
|
1802
1803
|
def list_calls(opts = {})
|
|
1803
1804
|
data, _status_code, _headers = list_calls_with_http_info(opts)
|
|
@@ -1813,11 +1814,16 @@ module Freeclimb
|
|
|
1813
1814
|
# @option opts [String] :start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss.
|
|
1814
1815
|
# @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
|
|
1815
1816
|
# @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
|
|
1817
|
+
# @option opts [Array<String>] :application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.
|
|
1816
1818
|
# @return [Array<(CallList, Integer, Hash)>] CallList data, response status code and response headers
|
|
1817
1819
|
def list_calls_with_http_info(opts = {})
|
|
1818
1820
|
if @api_client.config.debugging
|
|
1819
1821
|
@api_client.config.logger.debug 'Calling API: DefaultApi.list_calls ...'
|
|
1820
1822
|
end
|
|
1823
|
+
if @api_client.config.client_side_validation && !opts[:'application_id'].nil? && opts[:'application_id'].length > 16
|
|
1824
|
+
fail ArgumentError, 'invalid value for "opts[:"application_id"]" when calling DefaultApi.list_calls, number of items must be less than or equal to 16.'
|
|
1825
|
+
end
|
|
1826
|
+
|
|
1821
1827
|
# resource path
|
|
1822
1828
|
local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
|
1823
1829
|
|
|
@@ -1830,6 +1836,7 @@ module Freeclimb
|
|
|
1830
1836
|
query_params[:'startTime'] = opts[:'start_time'] if !opts[:'start_time'].nil?
|
|
1831
1837
|
query_params[:'endTime'] = opts[:'end_time'] if !opts[:'end_time'].nil?
|
|
1832
1838
|
query_params[:'parentCallId'] = opts[:'parent_call_id'] if !opts[:'parent_call_id'].nil?
|
|
1839
|
+
query_params[:'applicationId'] = @api_client.build_collection_param(opts[:'application_id'], :multi) if !opts[:'application_id'].nil?
|
|
1833
1840
|
|
|
1834
1841
|
# header parameters
|
|
1835
1842
|
header_params = opts[:header_params] || {}
|
|
@@ -133,11 +133,14 @@ module Freeclimb
|
|
|
133
133
|
:'from',
|
|
134
134
|
:'to',
|
|
135
135
|
:'phone_number_id',
|
|
136
|
+
:'call_status',
|
|
136
137
|
:'start_time',
|
|
137
138
|
:'connect_time',
|
|
138
139
|
:'end_time',
|
|
139
140
|
:'duration',
|
|
140
141
|
:'connect_duration',
|
|
142
|
+
:'direction',
|
|
143
|
+
:'answered_by',
|
|
141
144
|
:'subresource_uris'
|
|
142
145
|
])
|
|
143
146
|
end
|
|
@@ -113,11 +113,14 @@ module Freeclimb
|
|
|
113
113
|
:'from',
|
|
114
114
|
:'to',
|
|
115
115
|
:'phone_number_id',
|
|
116
|
+
:'call_status',
|
|
116
117
|
:'start_time',
|
|
117
118
|
:'connect_time',
|
|
118
119
|
:'end_time',
|
|
119
120
|
:'duration',
|
|
120
121
|
:'connect_duration',
|
|
122
|
+
:'direction',
|
|
123
|
+
:'answered_by',
|
|
121
124
|
:'subresource_uris'
|
|
122
125
|
])
|
|
123
126
|
end
|
data/lib/freeclimb/version.rb
CHANGED
data/openapi.json
CHANGED
|
@@ -85,28 +85,33 @@
|
|
|
85
85
|
"type": "string",
|
|
86
86
|
"enum": ["closed", "suspended", "active"],
|
|
87
87
|
"x-enum-varnames": ["CLOSED", "SUSPENDED", "ACTIVE"],
|
|
88
|
-
"description": "The status of this account. It is one of: active, suspended, or closed."
|
|
88
|
+
"description": "The status of this account. It is one of: active, suspended, or closed.",
|
|
89
|
+
"nullable": true
|
|
89
90
|
},
|
|
90
91
|
"AccountType": {
|
|
91
92
|
"type": "string",
|
|
92
93
|
"description": "The type of this account. It is one of: trial or full.",
|
|
93
94
|
"enum": ["trial", "full"],
|
|
94
|
-
"x-enum-varnames": ["TRIAL", "FULL"]
|
|
95
|
+
"x-enum-varnames": ["TRIAL", "FULL"],
|
|
96
|
+
"nullable": true
|
|
95
97
|
},
|
|
96
98
|
"AnsweredBy": {
|
|
97
99
|
"type": "string",
|
|
100
|
+
"nullable": true,
|
|
98
101
|
"enum": ["human", "machine"],
|
|
99
102
|
"x-enum-varnames": ["HUMAN", "MACHINE"],
|
|
100
103
|
"description": "If this Call was initiated with answering machine detection, either `human` or `machine`. Empty otherwise."
|
|
101
104
|
},
|
|
102
105
|
"CallDirection": {
|
|
103
106
|
"type": "string",
|
|
107
|
+
"nullable": true,
|
|
104
108
|
"enum": ["inbound", "outboundAPI", "outboundDial"],
|
|
105
109
|
"x-enum-varnames": ["INBOUND", "OUTBOUND_API", "OUTBOUND_DIAL"],
|
|
106
110
|
"description": "Direction of the Call. `inbound` for Calls into FreeClimb, `outboundAPI` for Calls initiated via the REST API, `outboundDial` for Calls initiated by the `OutDial` PerCL command."
|
|
107
111
|
},
|
|
108
112
|
"CallStatus": {
|
|
109
113
|
"type": "string",
|
|
114
|
+
"nullable": true,
|
|
110
115
|
"enum": [
|
|
111
116
|
"queued",
|
|
112
117
|
"ringing",
|
|
@@ -131,6 +136,7 @@
|
|
|
131
136
|
},
|
|
132
137
|
"ConferenceStatus": {
|
|
133
138
|
"type": "string",
|
|
139
|
+
"nullable": true,
|
|
134
140
|
"enum": ["empty", "populated", "inProgress", "terminated"],
|
|
135
141
|
"x-enum-varnames": ["EMPTY", "POPULATED", "IN_PROGRESS", "TERMINATED"],
|
|
136
142
|
"description": "The status of the Conference. One of: creating, empty, populated, inProgress, or terminated."
|
|
@@ -194,6 +200,7 @@
|
|
|
194
200
|
"GrammarType": {
|
|
195
201
|
"type": "string",
|
|
196
202
|
"enum": ["URL", "BUILTIN"],
|
|
203
|
+
"nullable": true,
|
|
197
204
|
"x-enum-varnames": ["URL", "BUILT_IN"],
|
|
198
205
|
"description": "The grammar file type to use for speech recognition. A value of 'URL' indicates the grammarFile attribute specifies a URL that points to the grammar file. A value of `BUILTIN` indicates the grammarFile attribute specifies the name of one of the platform built-in grammar files."
|
|
199
206
|
},
|
|
@@ -265,6 +272,7 @@
|
|
|
265
272
|
"LogLevel": {
|
|
266
273
|
"type": "string",
|
|
267
274
|
"enum": ["info", "warning", "error"],
|
|
275
|
+
"nullable": true,
|
|
268
276
|
"x-enum-varnames": ["INFO", "WARNING", "ERROR"],
|
|
269
277
|
"description": "Level of the log. Possible values are info, warning, and error."
|
|
270
278
|
},
|
|
@@ -280,6 +288,7 @@
|
|
|
280
288
|
},
|
|
281
289
|
"MessageStatus": {
|
|
282
290
|
"type": "string",
|
|
291
|
+
"nullable": true,
|
|
283
292
|
"description": "Indicates the state of the message through the message lifecycle including: new, queued, rejected, sending, sent, failed, received, undelivered, expired, deleted, and unknown",
|
|
284
293
|
"enum": [
|
|
285
294
|
"new",
|
|
@@ -310,9 +319,10 @@
|
|
|
310
319
|
},
|
|
311
320
|
"PlayBeep": {
|
|
312
321
|
"type": "string",
|
|
322
|
+
"nullable": true,
|
|
313
323
|
"enum": ["always", "never", "entryOnly", "exitOnly"],
|
|
314
324
|
"x-enum-varnames": ["ALWAYS", "NEVER", "ENTRY_ONLY", "EXIT_ONLY"],
|
|
315
|
-
"description": "
|
|
325
|
+
"description": "Indicates whether to play a beep when a Participant enters or leaves the Conference. either `always`, `never`, `entryOnly`, or `exitOnly`. Leaving this unset will make conference default to `always` ",
|
|
316
326
|
"default": "always",
|
|
317
327
|
"x-enum-default-attr": "ALWAYS"
|
|
318
328
|
},
|
|
@@ -520,7 +530,6 @@
|
|
|
520
530
|
"type": "boolean"
|
|
521
531
|
},
|
|
522
532
|
"playBeep": {
|
|
523
|
-
"description": "Indicates whether to play a beep when a Participant enters or leaves the Conference. either `always`, `never`, `entryOnly`, or `exitOnly`. Leaving this unset will make conference default to `always` ",
|
|
524
533
|
"$ref": "#/components/schemas/PlayBeep"
|
|
525
534
|
},
|
|
526
535
|
"record": {
|
|
@@ -653,8 +662,7 @@
|
|
|
653
662
|
"format": "uri"
|
|
654
663
|
},
|
|
655
664
|
"grammarType": {
|
|
656
|
-
"$ref": "#/components/schemas/GrammarType"
|
|
657
|
-
"nullable": true
|
|
665
|
+
"$ref": "#/components/schemas/GrammarType"
|
|
658
666
|
},
|
|
659
667
|
"grammarFile": {
|
|
660
668
|
"description": "The grammar file to use for speech recognition. If grammarType is set to URL, this attribute is specified as a download URL.",
|
|
@@ -1297,12 +1305,10 @@
|
|
|
1297
1305
|
"nullable": true
|
|
1298
1306
|
},
|
|
1299
1307
|
"type": {
|
|
1300
|
-
"$ref": "#/components/schemas/AccountType"
|
|
1301
|
-
"nullable": true
|
|
1308
|
+
"$ref": "#/components/schemas/AccountType"
|
|
1302
1309
|
},
|
|
1303
1310
|
"status": {
|
|
1304
|
-
"$ref": "#/components/schemas/AccountStatus"
|
|
1305
|
-
"nullable": true
|
|
1311
|
+
"$ref": "#/components/schemas/AccountStatus"
|
|
1306
1312
|
},
|
|
1307
1313
|
"subresourceUris": {
|
|
1308
1314
|
"type": "object",
|
|
@@ -1648,8 +1654,7 @@
|
|
|
1648
1654
|
"nullable": true
|
|
1649
1655
|
},
|
|
1650
1656
|
"callStatus": {
|
|
1651
|
-
"$ref": "#/components/schemas/CallStatus"
|
|
1652
|
-
"nullable": true
|
|
1657
|
+
"$ref": "#/components/schemas/CallStatus"
|
|
1653
1658
|
},
|
|
1654
1659
|
"startTime": {
|
|
1655
1660
|
"type": "string",
|
|
@@ -1677,12 +1682,10 @@
|
|
|
1677
1682
|
"nullable": true
|
|
1678
1683
|
},
|
|
1679
1684
|
"direction": {
|
|
1680
|
-
"$ref": "#/components/schemas/CallDirection"
|
|
1681
|
-
"nullable": true
|
|
1685
|
+
"$ref": "#/components/schemas/CallDirection"
|
|
1682
1686
|
},
|
|
1683
1687
|
"answeredBy": {
|
|
1684
|
-
"$ref": "#/components/schemas/AnsweredBy"
|
|
1685
|
-
"nullable": true
|
|
1688
|
+
"$ref": "#/components/schemas/AnsweredBy"
|
|
1686
1689
|
},
|
|
1687
1690
|
"subresourceUris": {
|
|
1688
1691
|
"type": "object",
|
|
@@ -1834,9 +1837,7 @@
|
|
|
1834
1837
|
"nullable": true
|
|
1835
1838
|
},
|
|
1836
1839
|
"level": {
|
|
1837
|
-
"$ref": "#/components/schemas/LogLevel"
|
|
1838
|
-
|
|
1839
|
-
"nullable": true
|
|
1840
|
+
"$ref": "#/components/schemas/LogLevel"
|
|
1840
1841
|
},
|
|
1841
1842
|
"requestId": {
|
|
1842
1843
|
"type": "string",
|
|
@@ -1909,8 +1910,7 @@
|
|
|
1909
1910
|
},
|
|
1910
1911
|
"playBeep": {
|
|
1911
1912
|
"$ref": "#/components/schemas/PlayBeep",
|
|
1912
|
-
"description": "Setting that controls when a beep is played. One of: always, never, entryOnly, exitOnly. Defaults to always."
|
|
1913
|
-
"nullable": true
|
|
1913
|
+
"description": "Setting that controls when a beep is played. One of: always, never, entryOnly, exitOnly. Defaults to always."
|
|
1914
1914
|
},
|
|
1915
1915
|
"record": {
|
|
1916
1916
|
"type": "boolean",
|
|
@@ -1918,8 +1918,7 @@
|
|
|
1918
1918
|
"nullable": true
|
|
1919
1919
|
},
|
|
1920
1920
|
"status": {
|
|
1921
|
-
"$ref": "#/components/schemas/ConferenceStatus"
|
|
1922
|
-
"nullable": true
|
|
1921
|
+
"$ref": "#/components/schemas/ConferenceStatus"
|
|
1923
1922
|
},
|
|
1924
1923
|
"waitUrl": {
|
|
1925
1924
|
"type": "string",
|
|
@@ -2036,8 +2035,7 @@
|
|
|
2036
2035
|
"nullable": true
|
|
2037
2036
|
},
|
|
2038
2037
|
"status": {
|
|
2039
|
-
"$ref": "#/components/schemas/MessageStatus"
|
|
2040
|
-
"nullable": true
|
|
2038
|
+
"$ref": "#/components/schemas/MessageStatus"
|
|
2041
2039
|
},
|
|
2042
2040
|
"from": {
|
|
2043
2041
|
"type": "string",
|
|
@@ -3066,6 +3064,21 @@
|
|
|
3066
3064
|
"type": "string"
|
|
3067
3065
|
}
|
|
3068
3066
|
},
|
|
3067
|
+
{
|
|
3068
|
+
"name": "applicationId",
|
|
3069
|
+
"in": "query",
|
|
3070
|
+
"description": "Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.",
|
|
3071
|
+
"explode": true,
|
|
3072
|
+
"required": false,
|
|
3073
|
+
"schema": {
|
|
3074
|
+
"type": "array",
|
|
3075
|
+
"maxItems": 16,
|
|
3076
|
+
"items": {
|
|
3077
|
+
"type": "string",
|
|
3078
|
+
"pattern": "^AP[0-9a-fA-F]{40}$"
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
},
|
|
3069
3082
|
{
|
|
3070
3083
|
"$ref": "#/components/parameters/AccountId"
|
|
3071
3084
|
}
|
|
@@ -128,6 +128,8 @@ describe 'DefaultApi' do
|
|
|
128
128
|
|
|
129
129
|
@parent_call_id_list_calls_test_value = 'parentCallId_example'
|
|
130
130
|
|
|
131
|
+
@application_id_list_calls_test_value = ['AP0123456789ABCDEFabcedf000000000000000001', 'AP0123456789ABCDEFabcedf000000000000000002', 'AP0123456789ABCDEFabcedf000000000000000002']
|
|
132
|
+
|
|
131
133
|
@status_list_conferences_test_value = 'status_example'
|
|
132
134
|
|
|
133
135
|
@alias_list_conferences_test_value = 'alias_example'
|
|
@@ -914,6 +916,7 @@ describe 'DefaultApi' do
|
|
|
914
916
|
# @option opts [String] :start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss.
|
|
915
917
|
# @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
|
|
916
918
|
# @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
|
|
919
|
+
# @option opts [Array<String>] :application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.
|
|
917
920
|
# @return [CallList]
|
|
918
921
|
describe 'list_calls test' do
|
|
919
922
|
it 'should work' do
|
|
@@ -925,11 +928,12 @@ describe 'DefaultApi' do
|
|
|
925
928
|
start_time = @start_time_list_calls_test_value
|
|
926
929
|
end_time = @end_time_list_calls_test_value
|
|
927
930
|
parent_call_id = @parent_call_id_list_calls_test_value
|
|
931
|
+
application_id = @application_id_list_calls_test_value
|
|
928
932
|
|
|
929
933
|
result = @api_instance.list_calls(
|
|
930
934
|
|
|
931
935
|
{
|
|
932
|
-
:active => active,:to => to,:from => from,:status => status,:start_time => start_time,:end_time => end_time,:parent_call_id => parent_call_id,
|
|
936
|
+
:active => active,:to => to,:from => from,:status => status,:start_time => start_time,:end_time => end_time,:parent_call_id => parent_call_id,:application_id => application_id,
|
|
933
937
|
}
|
|
934
938
|
)
|
|
935
939
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
require 'spec_helper'
|
|
2
|
-
|
|
2
|
+
$time_stamp = 1679944186
|
|
3
|
+
$FIXNUM_MAX = (2**(0.size * 8 -2) -1)
|
|
3
4
|
describe 'SignatureInformation' do
|
|
4
5
|
before do
|
|
5
|
-
@request_header = "t
|
|
6
|
+
@request_header = "t=#{$time_stamp},v1=c3957749baf61df4b1506802579cc69a74c77a1ae21447b930e5a704f9ec4120,v1=1ba18712726898fbbe48cd862dd096a709f7ad761a5bab14bda9ac24d963a6a8"
|
|
6
7
|
@signature_information_object = Freeclimb::SignatureInformation.new(@request_header)
|
|
7
8
|
end
|
|
8
9
|
describe '#is_request_time_valid' do
|
|
@@ -14,7 +15,7 @@ describe 'SignatureInformation' do
|
|
|
14
15
|
end
|
|
15
16
|
context 'request time is not within tolerance threshold' do
|
|
16
17
|
it 'returns false since it does not match condition of request time being within tolerance threshold' do
|
|
17
|
-
tolerance =
|
|
18
|
+
tolerance = $FIXNUM_MAX - $time_stamp
|
|
18
19
|
expect(@signature_information_object.is_request_time_valid(tolerance)).to be false
|
|
19
20
|
end
|
|
20
21
|
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.3.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: 2023-
|
|
11
|
+
date: 2023-05-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -455,92 +455,92 @@ test_files:
|
|
|
455
455
|
- spec/api_client_spec.rb
|
|
456
456
|
- spec/configuration_spec.rb
|
|
457
457
|
- spec/factories.rb
|
|
458
|
-
- spec/models/
|
|
459
|
-
- spec/models/
|
|
460
|
-
- spec/models/
|
|
461
|
-
- spec/models/
|
|
462
|
-
- spec/models/
|
|
463
|
-
- spec/models/
|
|
464
|
-
- spec/models/
|
|
465
|
-
- spec/models/
|
|
458
|
+
- spec/models/account_status_spec.rb
|
|
459
|
+
- spec/models/add_to_conference_spec.rb
|
|
460
|
+
- spec/models/incoming_number_list_spec.rb
|
|
461
|
+
- spec/models/call_list_spec.rb
|
|
462
|
+
- spec/models/queue_result_status_spec.rb
|
|
463
|
+
- spec/models/capabilities_spec.rb
|
|
464
|
+
- spec/models/queue_request_spec.rb
|
|
465
|
+
- spec/models/conference_status_spec.rb
|
|
466
|
+
- spec/models/queue_member_spec.rb
|
|
467
|
+
- spec/models/get_speech_reason_spec.rb
|
|
468
|
+
- spec/models/message_result_spec.rb
|
|
469
|
+
- spec/models/park_spec.rb
|
|
466
470
|
- spec/models/answered_by_spec.rb
|
|
471
|
+
- spec/models/log_result_spec.rb
|
|
472
|
+
- spec/models/message_direction_spec.rb
|
|
473
|
+
- spec/models/record_utterance_term_reason_spec.rb
|
|
474
|
+
- spec/models/conference_participant_result_spec.rb
|
|
475
|
+
- spec/models/remove_from_conference_spec.rb
|
|
476
|
+
- spec/models/redirect_spec.rb
|
|
477
|
+
- spec/models/conference_participant_list_spec.rb
|
|
478
|
+
- spec/models/percl_command_spec.rb
|
|
467
479
|
- spec/models/grammar_type_spec.rb
|
|
480
|
+
- spec/models/call_direction_spec.rb
|
|
481
|
+
- spec/models/log_list_spec.rb
|
|
482
|
+
- spec/models/available_number_spec.rb
|
|
483
|
+
- spec/models/set_listen_spec.rb
|
|
484
|
+
- spec/models/unpark_spec.rb
|
|
485
|
+
- spec/models/play_beep_spec.rb
|
|
486
|
+
- spec/models/available_number_list_spec.rb
|
|
487
|
+
- spec/models/create_conference_spec.rb
|
|
468
488
|
- spec/models/account_result_spec.rb
|
|
489
|
+
- spec/models/message_request_spec.rb
|
|
490
|
+
- spec/models/update_conference_request_status_spec.rb
|
|
491
|
+
- spec/models/get_speech_spec.rb
|
|
469
492
|
- spec/models/incoming_number_request_spec.rb
|
|
470
|
-
- spec/models/
|
|
471
|
-
- spec/models/
|
|
493
|
+
- spec/models/grammar_file_built_in_spec.rb
|
|
494
|
+
- spec/models/update_conference_participant_request_spec.rb
|
|
495
|
+
- spec/models/hangup_spec.rb
|
|
496
|
+
- spec/models/call_result_spec.rb
|
|
497
|
+
- spec/models/queue_member_list_spec.rb
|
|
498
|
+
- spec/models/make_call_request_spec.rb
|
|
499
|
+
- spec/models/account_type_spec.rb
|
|
500
|
+
- spec/models/log_level_spec.rb
|
|
501
|
+
- spec/models/set_talk_spec.rb
|
|
502
|
+
- spec/models/get_digits_spec.rb
|
|
472
503
|
- spec/models/start_record_call_spec.rb
|
|
473
|
-
- spec/models/conference_participant_result_spec.rb
|
|
474
|
-
- spec/models/message_result_spec.rb
|
|
475
|
-
- spec/models/record_utterance_term_reason_spec.rb
|
|
476
|
-
- spec/models/sms_spec.rb
|
|
477
|
-
- spec/models/get_speech_reason_spec.rb
|
|
478
|
-
- spec/models/message_request_spec.rb
|
|
479
|
-
- spec/models/account_status_spec.rb
|
|
480
|
-
- spec/models/out_dial_spec.rb
|
|
481
|
-
- spec/models/call_direction_spec.rb
|
|
482
|
-
- spec/models/language_spec.rb
|
|
483
|
-
- spec/models/play_beep_spec.rb
|
|
484
|
-
- spec/models/conference_status_spec.rb
|
|
485
|
-
- spec/models/request_type_spec.rb
|
|
486
|
-
- spec/models/terminate_conference_spec.rb
|
|
487
|
-
- spec/models/conference_result_spec.rb
|
|
488
|
-
- spec/models/create_conference_request_spec.rb
|
|
489
|
-
- spec/models/buy_incoming_number_request_spec.rb
|
|
490
|
-
- spec/models/reject_spec.rb
|
|
491
504
|
- spec/models/messages_list_spec.rb
|
|
492
|
-
- spec/models/
|
|
493
|
-
- spec/models/
|
|
494
|
-
- spec/models/
|
|
505
|
+
- spec/models/if_machine_spec.rb
|
|
506
|
+
- spec/models/reject_spec.rb
|
|
507
|
+
- spec/models/conference_result_spec.rb
|
|
508
|
+
- spec/models/recording_list_spec.rb
|
|
495
509
|
- spec/models/machine_type_spec.rb
|
|
496
|
-
- spec/models/
|
|
497
|
-
- spec/models/
|
|
498
|
-
- spec/models/
|
|
499
|
-
- spec/models/
|
|
500
|
-
- spec/models/queue_result_spec.rb
|
|
501
|
-
- spec/models/record_utterance_spec.rb
|
|
502
|
-
- spec/models/available_number_spec.rb
|
|
510
|
+
- spec/models/request_type_spec.rb
|
|
511
|
+
- spec/models/message_status_spec.rb
|
|
512
|
+
- spec/models/play_spec.rb
|
|
513
|
+
- spec/models/terminate_conference_spec.rb
|
|
503
514
|
- spec/models/pause_spec.rb
|
|
504
|
-
- spec/models/conference_participant_list_spec.rb
|
|
505
|
-
- spec/models/set_listen_spec.rb
|
|
506
|
-
- spec/models/available_number_list_spec.rb
|
|
507
|
-
- spec/models/add_to_conference_spec.rb
|
|
508
|
-
- spec/models/enqueue_spec.rb
|
|
509
515
|
- spec/models/application_result_spec.rb
|
|
510
|
-
- spec/models/call_result_spec.rb
|
|
511
|
-
- spec/models/update_call_request_spec.rb
|
|
512
|
-
- spec/models/call_status_spec.rb
|
|
513
|
-
- spec/models/grammar_file_built_in_spec.rb
|
|
514
|
-
- spec/models/capabilities_spec.rb
|
|
515
|
-
- spec/models/park_spec.rb
|
|
516
|
-
- spec/models/queue_request_spec.rb
|
|
517
|
-
- spec/models/message_direction_spec.rb
|
|
518
|
-
- spec/models/mutable_resource_model_spec.rb
|
|
519
516
|
- spec/models/update_conference_request_spec.rb
|
|
520
|
-
- spec/models/
|
|
521
|
-
- spec/models/
|
|
517
|
+
- spec/models/language_spec.rb
|
|
518
|
+
- spec/models/percl_script_spec.rb
|
|
522
519
|
- spec/models/play_early_media_spec.rb
|
|
523
|
-
- spec/models/remove_from_conference_spec.rb
|
|
524
|
-
- spec/models/account_type_spec.rb
|
|
525
|
-
- spec/models/queue_result_status_spec.rb
|
|
526
|
-
- spec/models/send_digits_spec.rb
|
|
527
520
|
- spec/models/say_spec.rb
|
|
528
|
-
- spec/models/
|
|
529
|
-
- spec/models/
|
|
530
|
-
- spec/models/
|
|
531
|
-
- spec/models/
|
|
532
|
-
- spec/models/
|
|
533
|
-
- spec/models/
|
|
534
|
-
- spec/models/
|
|
535
|
-
- spec/models/
|
|
536
|
-
- spec/models/
|
|
521
|
+
- spec/models/mutable_resource_model_spec.rb
|
|
522
|
+
- spec/models/out_dial_spec.rb
|
|
523
|
+
- spec/models/record_utterance_spec.rb
|
|
524
|
+
- spec/models/call_status_spec.rb
|
|
525
|
+
- spec/models/account_request_spec.rb
|
|
526
|
+
- spec/models/enqueue_spec.rb
|
|
527
|
+
- spec/models/create_conference_request_spec.rb
|
|
528
|
+
- spec/models/incoming_number_result_spec.rb
|
|
529
|
+
- spec/models/sms_spec.rb
|
|
530
|
+
- spec/models/filter_logs_request_spec.rb
|
|
537
531
|
- spec/models/update_call_request_status_spec.rb
|
|
532
|
+
- spec/models/dequeue_spec.rb
|
|
533
|
+
- spec/models/recording_result_spec.rb
|
|
534
|
+
- spec/models/queue_result_spec.rb
|
|
535
|
+
- spec/models/buy_incoming_number_request_spec.rb
|
|
536
|
+
- spec/models/pagination_model_spec.rb
|
|
537
|
+
- spec/models/update_call_request_spec.rb
|
|
538
538
|
- spec/models/queue_list_spec.rb
|
|
539
|
-
- spec/models/
|
|
540
|
-
- spec/models/
|
|
541
|
-
- spec/models/
|
|
542
|
-
- spec/models/
|
|
539
|
+
- spec/models/application_request_spec.rb
|
|
540
|
+
- spec/models/conference_list_spec.rb
|
|
541
|
+
- spec/models/send_digits_spec.rb
|
|
542
|
+
- spec/models/application_list_spec.rb
|
|
543
543
|
- spec/quickstart_spec.rb
|
|
544
544
|
- spec/spec_helper.rb
|
|
545
|
-
- spec/utils/signature_information_spec.rb
|
|
546
545
|
- spec/utils/request_verifier_spec.rb
|
|
546
|
+
- spec/utils/signature_information_spec.rb
|