bandwidth-sdk 19.1.0 → 19.1.1
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.lock +8 -6
- data/README.md +1 -0
- data/bandwidth.yml +70 -0
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +249 -44
- data/coverage/index.html +4533 -2325
- data/docs/AttestationLevelEnum.md +15 -0
- data/docs/CreateCall.md +4 -0
- data/docs/CreateCallResponse.md +5 -1
- data/docs/LookupResult.md +2 -2
- data/lib/bandwidth-sdk/models/attestation_level_enum.rb +41 -0
- data/lib/bandwidth-sdk/models/create_call.rb +58 -1
- data/lib/bandwidth-sdk/models/create_call_response.rb +27 -5
- data/lib/bandwidth-sdk/version.rb +1 -1
- data/lib/bandwidth-sdk.rb +1 -0
- data/spec/unit/api/calls_api_spec.rb +2 -0
- data/spec/unit/models/attestation_level_enum_spec.rb +40 -0
- data/spec/unit/models/create_call_response_spec.rb +15 -5
- data/spec/unit/models/create_call_spec.rb +25 -1
- metadata +5 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 89ac006623500ef6958866d5d0dd2423dd80a1e812d3c679f993bbce560cc988
|
|
4
|
+
data.tar.gz: cadee5274efeb4ae7c330da25b9b7a6617ac2bd9d17d87435d84a47ab19c9887
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30d76a45114f56a8fd31e096d85060f75ab2cb022632ff3c0e8340ce92d4658b90d943befed8725ed382a01d518bf766dae599bcaeda8780f93502811968e372
|
|
7
|
+
data.tar.gz: 2ae7bb596808e155db2d148446918661b90e4ba5cd7d151d0992821c62d5a07adcbe1271f8c76fbe634f00858266b263213082c2deee37f684319096ddd4571d
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bandwidth-sdk (19.1.
|
|
4
|
+
bandwidth-sdk (19.1.1)
|
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
|
6
6
|
faraday-multipart
|
|
7
7
|
marcel
|
|
@@ -41,7 +41,7 @@ GEM
|
|
|
41
41
|
ox (2.14.29)
|
|
42
42
|
bigdecimal (>= 3.0)
|
|
43
43
|
parallel (2.3.0)
|
|
44
|
-
parser (3.3.
|
|
44
|
+
parser (3.3.14.0)
|
|
45
45
|
ast (~> 2.4.1)
|
|
46
46
|
racc
|
|
47
47
|
prism (2.1.0)
|
|
@@ -90,9 +90,11 @@ GEM
|
|
|
90
90
|
rubocop-ast (>= 1.49.0, < 2.0)
|
|
91
91
|
ruby-progressbar (~> 1.7)
|
|
92
92
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
93
|
-
rubocop-ast (1.
|
|
93
|
+
rubocop-ast (1.54.0)
|
|
94
|
+
ast (~> 2.4)
|
|
94
95
|
parser (>= 3.3.7.2)
|
|
95
96
|
prism (>= 1.7)
|
|
97
|
+
racc
|
|
96
98
|
ruby-progressbar (1.13.0)
|
|
97
99
|
simplecov (0.22.0)
|
|
98
100
|
docile (~> 1.1)
|
|
@@ -127,7 +129,7 @@ DEPENDENCIES
|
|
|
127
129
|
|
|
128
130
|
CHECKSUMS
|
|
129
131
|
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
130
|
-
bandwidth-sdk (19.1.
|
|
132
|
+
bandwidth-sdk (19.1.1)
|
|
131
133
|
bigdecimal (4.1.3) sha256=61ebe1e5e559bdc3cc6f2c0ee7f427321fc838f59611c294356eb04d6e21cf66
|
|
132
134
|
byebug (13.0.0) sha256=d2263efe751941ca520fa29744b71972d39cbc41839496706f5d9b22e92ae05d
|
|
133
135
|
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
|
|
@@ -148,7 +150,7 @@ CHECKSUMS
|
|
|
148
150
|
net-protocol (0.4.0) sha256=f9f90c8c6f64794a45160bf422177a336db12809de3beeeaa26b88fcd2e8c853
|
|
149
151
|
ox (2.14.29) sha256=206736d5a8dade9dca10cf72022bc157ad6ca3eecaba3853918426ed88e12dc2
|
|
150
152
|
parallel (2.3.0) sha256=f75a3e904101ce6a1ccb6b8dc800cbafd42166d83330192438dcf29395167a6f
|
|
151
|
-
parser (3.3.
|
|
153
|
+
parser (3.3.14.0) sha256=62f8f76af7b919425ee2d811880e9dcb8011ab40bfd59970dfb583141697e58f
|
|
152
154
|
prism (2.1.0) sha256=1c0a7c6dea0e93183390fb123f007564dbe663198e2f86ad87204151147601f3
|
|
153
155
|
prism (2.1.0-aarch64-linux-gnu) sha256=808dddc72def68e1a0463689414c97e0ba211938eddbab05387a4844aa2b3ec2
|
|
154
156
|
prism (2.1.0-aarch64-linux-musl) sha256=dd1a0732620c1e575dabb07a297a62911fabd72f8e20ce850b522a866f877930
|
|
@@ -171,7 +173,7 @@ CHECKSUMS
|
|
|
171
173
|
rspec-mocks (3.13.9) sha256=ea5c7ff3054a6098ca6039aacef80aec69d5a8a3ef80be8fc88337359b672a30
|
|
172
174
|
rspec-support (3.13.8) sha256=e4160030309b7e3e9d9863dfe720a35dfcc577162f5402cd68fc8c5258a0ffd6
|
|
173
175
|
rubocop (1.86.2) sha256=bb2e97f635eda42c448f2588f4a6ff78f221b8bdfdf65b1e9b07fbd57521b45d
|
|
174
|
-
rubocop-ast (1.
|
|
176
|
+
rubocop-ast (1.54.0) sha256=11f7cadec54e593e905b1bb78f2b28bdd4b8e13b34cb82fe49c876e3dd5008c1
|
|
175
177
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
176
178
|
simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
|
|
177
179
|
simplecov-html (0.13.2) sha256=bd0b8e54e7c2d7685927e8d6286466359b6f16b18cb0df47b508e8d73c777246
|
data/README.md
CHANGED
|
@@ -175,6 +175,7 @@ Class | Method | HTTP request | Description
|
|
|
175
175
|
- [Bandwidth::Address](docs/Address.md)
|
|
176
176
|
- [Bandwidth::AnswerCallback](docs/AnswerCallback.md)
|
|
177
177
|
- [Bandwidth::AsyncLookupRequest](docs/AsyncLookupRequest.md)
|
|
178
|
+
- [Bandwidth::AttestationLevelEnum](docs/AttestationLevelEnum.md)
|
|
178
179
|
- [Bandwidth::BlockedWebhook](docs/BlockedWebhook.md)
|
|
179
180
|
- [Bandwidth::BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
|
|
180
181
|
- [Bandwidth::BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
|
data/bandwidth.yml
CHANGED
|
@@ -3241,6 +3241,16 @@ components:
|
|
|
3241
3241
|
- direction
|
|
3242
3242
|
- to
|
|
3243
3243
|
- from
|
|
3244
|
+
attestationLevelEnum:
|
|
3245
|
+
type: string
|
|
3246
|
+
enum:
|
|
3247
|
+
- A
|
|
3248
|
+
- B
|
|
3249
|
+
- C
|
|
3250
|
+
description: >-
|
|
3251
|
+
The STIR/SHAKEN attestation level Bandwidth signs the call with: `A`
|
|
3252
|
+
(full), `B` (partial), or `C` (gateway).
|
|
3253
|
+
example: B
|
|
3244
3254
|
callbackMethodEnum:
|
|
3245
3255
|
type: string
|
|
3246
3256
|
nullable: true
|
|
@@ -3419,6 +3429,52 @@ components:
|
|
|
3419
3429
|
entire value
|
|
3420
3430
|
|
|
3421
3431
|
cannot exceed 350 characters, including parameters and separators.
|
|
3432
|
+
requestedAttestationLevel:
|
|
3433
|
+
nullable: true
|
|
3434
|
+
allOf:
|
|
3435
|
+
- $ref: '#/components/schemas/attestationLevelEnum'
|
|
3436
|
+
description: >-
|
|
3437
|
+
The STIR/SHAKEN attestation level (`A`, `B`, or `C`) you request
|
|
3438
|
+
Bandwidth sign this call with.
|
|
3439
|
+
|
|
3440
|
+
Applies to outbound calls to US destinations only, and only to
|
|
3441
|
+
accounts that use the
|
|
3442
|
+
|
|
3443
|
+
<a href='/docs/voice/stir-shaken/hosted-signing-service'>Hosted
|
|
3444
|
+
Signing Service</a>; it is ignored
|
|
3445
|
+
|
|
3446
|
+
for all other accounts. If omitted, the attestation policy
|
|
3447
|
+
configured on your account is used.
|
|
3448
|
+
|
|
3449
|
+
|
|
3450
|
+
Cannot be combined with `identity`. A request that includes both is
|
|
3451
|
+
rejected with a `400`, as is
|
|
3452
|
+
|
|
3453
|
+
any value other than `A`, `B`, or `C`.
|
|
3454
|
+
identity:
|
|
3455
|
+
nullable: true
|
|
3456
|
+
type: string
|
|
3457
|
+
minLength: 1
|
|
3458
|
+
maxLength: 2000
|
|
3459
|
+
pattern: ^ *[A-Za-z0-9\-_.+/=;:<>"][A-Za-z0-9\-_.+/=;:<>" ]*$
|
|
3460
|
+
description: >-
|
|
3461
|
+
A complete SIP `Identity` header value that you signed yourself. It
|
|
3462
|
+
must be a valid STIR/SHAKEN
|
|
3463
|
+
|
|
3464
|
+
PASSporT and may not exceed 2000 characters. Bandwidth sends it
|
|
3465
|
+
unmodified on the outbound call and
|
|
3466
|
+
|
|
3467
|
+
does not sign the call. Bandwidth checks only the format and size of
|
|
3468
|
+
the value, not the signature.
|
|
3469
|
+
|
|
3470
|
+
Applies to outbound calls to US destinations only.
|
|
3471
|
+
|
|
3472
|
+
|
|
3473
|
+
Cannot be combined with `requestedAttestationLevel`. A request that
|
|
3474
|
+
includes both, or a value that is too long
|
|
3475
|
+
|
|
3476
|
+
or not in the expected format, is rejected with a `400`.
|
|
3477
|
+
example: eyJhbGciOiJFUzI1NiIsInBwdCI6InNoYWtlbiIsInR5cCI6InBhc3Nwb3J0IiwieDV1IjoiaHR0cHM6Ly9jZXJ0LmV4YW1wbGUvY2VydC5wZW0ifQ.eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6WyIxOTE5NTU1MTIzNCJdfSwiaWF0IjoxNzAwMDAwMDAwLCJvcmlnIjp7InRuIjoiMTU1NTU1NTEyMTIifSwib3JpZ2lkIjoiMTIzNCJ9.c2lnbmF0dXJl;info=<https://cert.example/cert.pem>;alg=ES256;ppt="shaken"
|
|
3422
3478
|
applicationId:
|
|
3423
3479
|
type: string
|
|
3424
3480
|
description: The id of the application associated with the `from` number.
|
|
@@ -3688,6 +3744,20 @@ components:
|
|
|
3688
3744
|
type: integer
|
|
3689
3745
|
example: 5
|
|
3690
3746
|
description: The priority of this call over other calls from your account.
|
|
3747
|
+
requestedAttestationLevel:
|
|
3748
|
+
nullable: true
|
|
3749
|
+
allOf:
|
|
3750
|
+
- $ref: '#/components/schemas/attestationLevelEnum'
|
|
3751
|
+
description: >-
|
|
3752
|
+
The `requestedAttestationLevel` provided in the Create Call request,
|
|
3753
|
+
if any. This is the level you requested,
|
|
3754
|
+
|
|
3755
|
+
which can differ from the level the call is ultimately signed with.
|
|
3756
|
+
identity:
|
|
3757
|
+
nullable: true
|
|
3758
|
+
type: string
|
|
3759
|
+
description: The `identity` value provided in the Create Call request, if any.
|
|
3760
|
+
example: eyJhbGciOiJFUzI1NiIsInBwdCI6InNoYWtlbiIsInR5cCI6InBhc3Nwb3J0IiwieDV1IjoiaHR0cHM6Ly9jZXJ0LmV4YW1wbGUvY2VydC5wZW0ifQ.eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6WyIxOTE5NTU1MTIzNCJdfSwiaWF0IjoxNzAwMDAwMDAwLCJvcmlnIjp7InRuIjoiMTU1NTU1NTEyMTIifSwib3JpZ2lkIjoiMTIzNCJ9.c2lnbmF0dXJl;info=<https://cert.example/cert.pem>;alg=ES256;ppt="shaken"
|
|
3691
3761
|
callState:
|
|
3692
3762
|
type: object
|
|
3693
3763
|
properties:
|
data/coverage/.last_run.json
CHANGED