bandwidth-sdk 17.1.0 → 17.2.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/Gemfile +1 -1
- data/Gemfile.lock +33 -24
- data/README.md +2 -0
- data/bandwidth.yml +81 -5
- data/coverage/.resultset.json +11 -5
- data/coverage/index.html +395 -323
- data/custom_templates/Gemfile.mustache +1 -1
- data/custom_templates/partial_anyof_module.mustache +135 -0
- data/docs/LookupResult.md +2 -2
- data/docs/MessagesApi.md +1 -1
- data/docs/MultiChannelAction.md +5 -1
- data/docs/RbmActionBase.md +1 -1
- data/docs/RbmActionOpenUrl.md +5 -1
- data/docs/RbmMessageMedia.md +1 -1
- data/docs/RbmOpenUrlEnum.md +15 -0
- data/docs/RbmSuggestionResponse.md +1 -1
- data/docs/RbmWebViewEnum.md +15 -0
- data/docs/TfvStatus.md +3 -1
- data/docs/VerificationRequest.md +3 -1
- data/docs/VerificationUpdateRequest.md +3 -1
- data/lib/bandwidth-sdk/api/messages_api.rb +2 -2
- data/lib/bandwidth-sdk/models/multi_channel_action.rb +23 -67
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_request_object.rb +20 -67
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_response_object.rb +20 -67
- data/lib/bandwidth-sdk/models/rbm_action_open_url.rb +22 -4
- data/lib/bandwidth-sdk/models/rbm_message_media.rb +4 -2
- data/lib/bandwidth-sdk/models/rbm_open_url_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/rbm_web_view_enum.rb +41 -0
- data/lib/bandwidth-sdk/models/tfv_status.rb +39 -4
- data/lib/bandwidth-sdk/models/verification_request.rb +39 -4
- data/lib/bandwidth-sdk/models/verification_update_request.rb +39 -4
- data/lib/bandwidth-sdk/version.rb +1 -1
- data/lib/bandwidth-sdk.rb +2 -0
- data/spec/smoke/multi_channel_api_spec.rb +236 -7
- data/spec/unit/api/toll_free_verification_api_spec.rb +4 -0
- metadata +7 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c5d14b2821c1ff9ebb48adfc098d47c38af240d0a9465c0633bddb8b54601dc
|
|
4
|
+
data.tar.gz: e52f699ba29e164cf3f34e8555efa1c4114b65463ecc198b1f1bf12a3bc426aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3de616049b04f80a2b473bbdcd24158ee9abbb65b4b457b156270b5a6729c3819c9b319a6da2e2e646c00e3f1825e48dc06c6f694e0e1f6225f83d03dce4999f
|
|
7
|
+
data.tar.gz: 8661311a1bedff724a5da1b99a1c46c85b6bdcd94866e5d1a44b7fe058df6bc50ff88ec9d949903720a10722c2d5db4defecab25dd599c5b81b59d4582113516
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bandwidth-sdk (17.
|
|
4
|
+
bandwidth-sdk (17.2.0)
|
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
|
6
6
|
faraday-multipart
|
|
7
7
|
marcel
|
|
@@ -11,8 +11,9 @@ GEM
|
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
13
|
ast (2.4.3)
|
|
14
|
-
bigdecimal (
|
|
15
|
-
byebug (
|
|
14
|
+
bigdecimal (4.0.1)
|
|
15
|
+
byebug (13.0.0)
|
|
16
|
+
reline (>= 0.6.0)
|
|
16
17
|
coderay (1.1.3)
|
|
17
18
|
diff-lcs (1.6.2)
|
|
18
19
|
docile (1.4.1)
|
|
@@ -20,35 +21,40 @@ GEM
|
|
|
20
21
|
faraday-net_http (>= 2.0, < 3.5)
|
|
21
22
|
json
|
|
22
23
|
logger
|
|
23
|
-
faraday-multipart (1.
|
|
24
|
+
faraday-multipart (1.2.0)
|
|
24
25
|
multipart-post (~> 2.0)
|
|
25
26
|
faraday-net_http (3.4.2)
|
|
26
27
|
net-http (~> 0.5)
|
|
27
|
-
|
|
28
|
+
io-console (0.8.2)
|
|
29
|
+
json (2.18.1)
|
|
30
|
+
language_server-protocol (3.17.0.5)
|
|
31
|
+
lint_roller (1.1.0)
|
|
28
32
|
logger (1.7.0)
|
|
29
33
|
marcel (1.1.0)
|
|
30
34
|
method_source (1.1.0)
|
|
31
35
|
multipart-post (2.4.1)
|
|
32
|
-
net-http (0.
|
|
36
|
+
net-http (0.9.1)
|
|
33
37
|
uri (>= 0.11.1)
|
|
34
38
|
ox (2.14.23)
|
|
35
39
|
bigdecimal (>= 3.0)
|
|
36
40
|
parallel (1.27.0)
|
|
37
|
-
parser (3.3.10.
|
|
41
|
+
parser (3.3.10.1)
|
|
38
42
|
ast (~> 2.4.1)
|
|
39
43
|
racc
|
|
40
|
-
prism (1.
|
|
41
|
-
pry (0.
|
|
44
|
+
prism (1.9.0)
|
|
45
|
+
pry (0.16.0)
|
|
42
46
|
coderay (~> 1.1)
|
|
43
47
|
method_source (~> 1.0)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
reline (>= 0.6.0)
|
|
49
|
+
pry-byebug (3.12.0)
|
|
50
|
+
byebug (~> 13.0)
|
|
51
|
+
pry (>= 0.13, < 0.17)
|
|
47
52
|
racc (1.8.1)
|
|
48
53
|
rainbow (3.1.1)
|
|
49
54
|
rake (13.2.1)
|
|
50
55
|
regexp_parser (2.11.3)
|
|
51
|
-
|
|
56
|
+
reline (0.6.3)
|
|
57
|
+
io-console (~> 0.5)
|
|
52
58
|
rspec (3.13.2)
|
|
53
59
|
rspec-core (~> 3.13.0)
|
|
54
60
|
rspec-expectations (~> 3.13.0)
|
|
@@ -61,20 +67,21 @@ GEM
|
|
|
61
67
|
rspec-mocks (3.13.7)
|
|
62
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
63
69
|
rspec-support (~> 3.13.0)
|
|
64
|
-
rspec-support (3.13.
|
|
65
|
-
rubocop (1.
|
|
70
|
+
rspec-support (3.13.7)
|
|
71
|
+
rubocop (1.82.1)
|
|
66
72
|
json (~> 2.3)
|
|
73
|
+
language_server-protocol (~> 3.17.0.2)
|
|
74
|
+
lint_roller (~> 1.1.0)
|
|
67
75
|
parallel (~> 1.10)
|
|
68
|
-
parser (>= 3.
|
|
76
|
+
parser (>= 3.3.0.2)
|
|
69
77
|
rainbow (>= 2.2.2, < 4.0)
|
|
70
|
-
regexp_parser (>=
|
|
71
|
-
|
|
72
|
-
rubocop-ast (>= 1.28.0, < 2.0)
|
|
78
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
79
|
+
rubocop-ast (>= 1.48.0, < 2.0)
|
|
73
80
|
ruby-progressbar (~> 1.7)
|
|
74
|
-
unicode-display_width (>= 2.4.0, <
|
|
75
|
-
rubocop-ast (1.
|
|
81
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
82
|
+
rubocop-ast (1.49.0)
|
|
76
83
|
parser (>= 3.3.7.2)
|
|
77
|
-
prism (~> 1.
|
|
84
|
+
prism (~> 1.7)
|
|
78
85
|
ruby-progressbar (1.13.0)
|
|
79
86
|
simplecov (0.21.2)
|
|
80
87
|
docile (~> 1.1)
|
|
@@ -82,7 +89,9 @@ GEM
|
|
|
82
89
|
simplecov_json_formatter (~> 0.1)
|
|
83
90
|
simplecov-html (0.13.2)
|
|
84
91
|
simplecov_json_formatter (0.1.4)
|
|
85
|
-
unicode-display_width (2.
|
|
92
|
+
unicode-display_width (3.2.0)
|
|
93
|
+
unicode-emoji (~> 4.1)
|
|
94
|
+
unicode-emoji (4.2.0)
|
|
86
95
|
uri (1.1.1)
|
|
87
96
|
|
|
88
97
|
PLATFORMS
|
|
@@ -94,7 +103,7 @@ DEPENDENCIES
|
|
|
94
103
|
pry-byebug
|
|
95
104
|
rake (~> 13.2.1)
|
|
96
105
|
rspec (~> 3.6, >= 3.6.0)
|
|
97
|
-
rubocop (~> 1.
|
|
106
|
+
rubocop (~> 1.82.0)
|
|
98
107
|
simplecov (~> 0.21.2)
|
|
99
108
|
|
|
100
109
|
BUNDLED WITH
|
data/README.md
CHANGED
|
@@ -297,8 +297,10 @@ Class | Method | HTTP request | Description
|
|
|
297
297
|
- [Bandwidth::RbmMessageContentRichCard](docs/RbmMessageContentRichCard.md)
|
|
298
298
|
- [Bandwidth::RbmMessageContentText](docs/RbmMessageContentText.md)
|
|
299
299
|
- [Bandwidth::RbmMessageMedia](docs/RbmMessageMedia.md)
|
|
300
|
+
- [Bandwidth::RbmOpenUrlEnum](docs/RbmOpenUrlEnum.md)
|
|
300
301
|
- [Bandwidth::RbmStandaloneCard](docs/RbmStandaloneCard.md)
|
|
301
302
|
- [Bandwidth::RbmSuggestionResponse](docs/RbmSuggestionResponse.md)
|
|
303
|
+
- [Bandwidth::RbmWebViewEnum](docs/RbmWebViewEnum.md)
|
|
302
304
|
- [Bandwidth::RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
|
|
303
305
|
- [Bandwidth::RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
|
|
304
306
|
- [Bandwidth::RecordingStateEnum](docs/RecordingStateEnum.md)
|
data/bandwidth.yml
CHANGED
|
@@ -163,7 +163,13 @@ paths:
|
|
|
163
163
|
/users/{accountId}/messages:
|
|
164
164
|
get:
|
|
165
165
|
summary: List Messages
|
|
166
|
-
description:
|
|
166
|
+
description: >
|
|
167
|
+
Returns a list of messages based on query parameters.
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
**Rate Limit:** This endpoint is rate limited to 3500 requests per 5
|
|
171
|
+
minutes per Source IP address. Exceeding the limit returns HTTP 429 with
|
|
172
|
+
a `Retry-After` header.
|
|
167
173
|
operationId: listMessages
|
|
168
174
|
tags:
|
|
169
175
|
- Messages
|
|
@@ -207,10 +213,12 @@ paths:
|
|
|
207
213
|
$ref: '#/components/responses/messagingForbiddenError'
|
|
208
214
|
'404':
|
|
209
215
|
$ref: '#/components/responses/messagingNotFoundError'
|
|
216
|
+
'405':
|
|
217
|
+
$ref: '#/components/responses/messagingMethodNotAllowedError'
|
|
210
218
|
'415':
|
|
211
219
|
$ref: '#/components/responses/messagingInvalidMediaTypeError'
|
|
212
220
|
'429':
|
|
213
|
-
$ref: '#/components/responses/
|
|
221
|
+
$ref: '#/components/responses/listMessagesTooManyRequestsError'
|
|
214
222
|
'500':
|
|
215
223
|
$ref: '#/components/responses/messagingInternalServerError'
|
|
216
224
|
post:
|
|
@@ -2257,7 +2265,9 @@ components:
|
|
|
2257
2265
|
type: object
|
|
2258
2266
|
properties:
|
|
2259
2267
|
media:
|
|
2260
|
-
|
|
2268
|
+
type: array
|
|
2269
|
+
items:
|
|
2270
|
+
$ref: '#/components/schemas/rbmMessageContentFile'
|
|
2261
2271
|
suggestions:
|
|
2262
2272
|
$ref: '#/components/schemas/multiChannelFullActions'
|
|
2263
2273
|
required:
|
|
@@ -2378,6 +2388,35 @@ components:
|
|
|
2378
2388
|
- OPEN_URL
|
|
2379
2389
|
- REQUEST_LOCATION
|
|
2380
2390
|
example: REPLY
|
|
2391
|
+
rbmOpenUrlEnum:
|
|
2392
|
+
type: string
|
|
2393
|
+
description: >-
|
|
2394
|
+
Specifies how the URL should be opened on a mobile device.
|
|
2395
|
+
|
|
2396
|
+
- `BROWSER` Opens the URL in the device's default browser. If
|
|
2397
|
+
application is not set or the device doesn’t support WebView, this
|
|
2398
|
+
option is used by default.
|
|
2399
|
+
|
|
2400
|
+
- `WEBVIEW` Opens the URL in an in-app WebView.
|
|
2401
|
+
enum:
|
|
2402
|
+
- BROWSER
|
|
2403
|
+
- WEBVIEW
|
|
2404
|
+
example: WEBVIEW
|
|
2405
|
+
rbmWebViewEnum:
|
|
2406
|
+
type: string
|
|
2407
|
+
description: >-
|
|
2408
|
+
Defines the layout of the WebView on a mobile device. It must be defined
|
|
2409
|
+
when application is set to `WEBVIEW`
|
|
2410
|
+
|
|
2411
|
+
- `FULL` WebView takes the full screen.
|
|
2412
|
+
|
|
2413
|
+
- `HALF` WebView takes half of the screen.
|
|
2414
|
+
|
|
2415
|
+
- `TALL` WebView takes three-quarters of the screen.
|
|
2416
|
+
enum:
|
|
2417
|
+
- FULL
|
|
2418
|
+
- HALF
|
|
2419
|
+
- TALL
|
|
2381
2420
|
rbmActionText:
|
|
2382
2421
|
title: Text
|
|
2383
2422
|
type: string
|
|
@@ -2482,6 +2521,10 @@ components:
|
|
|
2482
2521
|
description: The URL to open in browser.
|
|
2483
2522
|
example: https://dev.bandwidth.com
|
|
2484
2523
|
maxLength: 2048
|
|
2524
|
+
application:
|
|
2525
|
+
$ref: '#/components/schemas/rbmOpenUrlEnum'
|
|
2526
|
+
webviewViewMode:
|
|
2527
|
+
$ref: '#/components/schemas/rbmWebViewEnum'
|
|
2485
2528
|
required:
|
|
2486
2529
|
- url
|
|
2487
2530
|
multiChannelFullActions:
|
|
@@ -5842,7 +5885,6 @@ components:
|
|
|
5842
5885
|
type: object
|
|
5843
5886
|
internalTicketNumber:
|
|
5844
5887
|
type: string
|
|
5845
|
-
format: uuid
|
|
5846
5888
|
description: >-
|
|
5847
5889
|
Unique identifier (UUID) generated by Bandwidth to assist in tracking
|
|
5848
5890
|
the verification status of a toll-free number - included in all webhook
|
|
@@ -5850,7 +5892,6 @@ components:
|
|
|
5850
5892
|
example: acde070d-8c4c-4f0d-9d8a-162843c10333
|
|
5851
5893
|
internalTicketNumberForWebhook:
|
|
5852
5894
|
type: string
|
|
5853
|
-
format: uuid
|
|
5854
5895
|
description: >-
|
|
5855
5896
|
Unique identifier (UUID) generated by Bandwidth to assist in tracking
|
|
5856
5897
|
the verification status of a toll-free number.
|
|
@@ -5923,6 +5964,8 @@ components:
|
|
|
5923
5964
|
$ref: '#/components/schemas/helpMessageResponse'
|
|
5924
5965
|
ageGatedContent:
|
|
5925
5966
|
$ref: '#/components/schemas/ageGatedContent'
|
|
5967
|
+
cvToken:
|
|
5968
|
+
$ref: '#/components/schemas/cvToken'
|
|
5926
5969
|
verificationUpdateRequest:
|
|
5927
5970
|
type: object
|
|
5928
5971
|
required:
|
|
@@ -5972,6 +6015,8 @@ components:
|
|
|
5972
6015
|
$ref: '#/components/schemas/helpMessageResponse'
|
|
5973
6016
|
ageGatedContent:
|
|
5974
6017
|
$ref: '#/components/schemas/ageGatedContent'
|
|
6018
|
+
cvToken:
|
|
6019
|
+
$ref: '#/components/schemas/cvToken'
|
|
5975
6020
|
tfvBasicAuthentication:
|
|
5976
6021
|
type: object
|
|
5977
6022
|
properties:
|
|
@@ -6423,6 +6468,8 @@ components:
|
|
|
6423
6468
|
$ref: '#/components/schemas/blocked'
|
|
6424
6469
|
blockedReason:
|
|
6425
6470
|
$ref: '#/components/schemas/blockedReason'
|
|
6471
|
+
cvToken:
|
|
6472
|
+
$ref: '#/components/schemas/cvToken'
|
|
6426
6473
|
tfvSubmissionInfo:
|
|
6427
6474
|
type: object
|
|
6428
6475
|
properties:
|
|
@@ -6487,6 +6534,18 @@ components:
|
|
|
6487
6534
|
nullable: true
|
|
6488
6535
|
pattern: ^[ -~]{16,64}$
|
|
6489
6536
|
type: string
|
|
6537
|
+
cvToken:
|
|
6538
|
+
type: string
|
|
6539
|
+
description: >-
|
|
6540
|
+
The token provided by Campaign Verify to validate your political use
|
|
6541
|
+
case. Only required for 527 political organizations. If you are not a
|
|
6542
|
+
527 political organization, this field should be omitted. If you pass an
|
|
6543
|
+
empty string, it will be passed along and potentially rejected.
|
|
6544
|
+
minLength: 0
|
|
6545
|
+
maxLength: 500
|
|
6546
|
+
nullable: true
|
|
6547
|
+
example: >-
|
|
6548
|
+
cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
|
|
6490
6549
|
responses:
|
|
6491
6550
|
createMessageResponse:
|
|
6492
6551
|
description: Accepted
|
|
@@ -6701,6 +6760,23 @@ components:
|
|
|
6701
6760
|
- type: internal-server-error
|
|
6702
6761
|
description: Internal server error. No further information available
|
|
6703
6762
|
source: {}
|
|
6763
|
+
listMessagesTooManyRequestsError:
|
|
6764
|
+
description: Too Many Requests
|
|
6765
|
+
headers:
|
|
6766
|
+
Retry-After:
|
|
6767
|
+
description: The number of seconds to wait before retrying the request.
|
|
6768
|
+
schema:
|
|
6769
|
+
type: integer
|
|
6770
|
+
example: 300
|
|
6771
|
+
content:
|
|
6772
|
+
application/json:
|
|
6773
|
+
schema:
|
|
6774
|
+
$ref: '#/components/schemas/messagingRequestError'
|
|
6775
|
+
example:
|
|
6776
|
+
type: rate_limit_exceeded
|
|
6777
|
+
description: >-
|
|
6778
|
+
Rate limit exceeded. Wait for Retry-After time before sending
|
|
6779
|
+
another request.
|
|
6704
6780
|
createCallResponse:
|
|
6705
6781
|
description: Created
|
|
6706
6782
|
headers:
|
data/coverage/.resultset.json
CHANGED
|
@@ -197,6 +197,8 @@
|
|
|
197
197
|
1,
|
|
198
198
|
1,
|
|
199
199
|
1,
|
|
200
|
+
1,
|
|
201
|
+
1,
|
|
200
202
|
null,
|
|
201
203
|
null,
|
|
202
204
|
1,
|
|
@@ -793,13 +795,13 @@
|
|
|
793
795
|
null,
|
|
794
796
|
null,
|
|
795
797
|
1,
|
|
796
|
-
|
|
798
|
+
443,
|
|
797
799
|
null,
|
|
798
800
|
45,
|
|
799
801
|
null,
|
|
800
802
|
8,
|
|
801
803
|
null,
|
|
802
|
-
|
|
804
|
+
267,
|
|
803
805
|
null,
|
|
804
806
|
21,
|
|
805
807
|
null,
|
|
@@ -826,8 +828,8 @@
|
|
|
826
828
|
null,
|
|
827
829
|
null,
|
|
828
830
|
null,
|
|
829
|
-
|
|
830
|
-
|
|
831
|
+
84,
|
|
832
|
+
84,
|
|
831
833
|
null,
|
|
832
834
|
null,
|
|
833
835
|
null,
|
|
@@ -8690,6 +8692,10 @@
|
|
|
8690
8692
|
1,
|
|
8691
8693
|
1,
|
|
8692
8694
|
1,
|
|
8695
|
+
1,
|
|
8696
|
+
1,
|
|
8697
|
+
1,
|
|
8698
|
+
1,
|
|
8693
8699
|
null,
|
|
8694
8700
|
null,
|
|
8695
8701
|
1,
|
|
@@ -11656,6 +11662,6 @@
|
|
|
11656
11662
|
]
|
|
11657
11663
|
}
|
|
11658
11664
|
},
|
|
11659
|
-
"timestamp":
|
|
11665
|
+
"timestamp": 1770147454
|
|
11660
11666
|
}
|
|
11661
11667
|
}
|