bandwidth-sdk 18.1.1 → 18.1.2
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 +4 -4
- data/README.md +1 -0
- data/bandwidth.yml +119 -21
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +562 -142
- data/coverage/index.html +6749 -2231
- data/docs/Callback.md +1 -1
- data/docs/RbmActionBase.md +1 -1
- data/docs/RbmSuggestionResponse.md +3 -1
- data/docs/RecordingTranscriptionClip.md +26 -0
- data/docs/RecordingTranscriptions.md +3 -1
- data/docs/TfvStatus.md +4 -0
- data/docs/Transcription.md +2 -0
- data/lib/bandwidth-sdk/models/callback.rb +1 -1
- data/lib/bandwidth-sdk/models/inbound_callback_type_enum.rb +2 -2
- data/lib/bandwidth-sdk/models/rbm_suggestion_response.rb +15 -4
- data/lib/bandwidth-sdk/models/recording_transcription_clip.rb +214 -0
- data/lib/bandwidth-sdk/models/recording_transcriptions.rb +16 -4
- data/lib/bandwidth-sdk/models/tfv_status.rb +25 -1
- data/lib/bandwidth-sdk/models/transcription.rb +11 -1
- data/lib/bandwidth-sdk/version.rb +1 -1
- data/lib/bandwidth-sdk.rb +1 -0
- data/spec/unit/api/recordings_api_spec.rb +1 -0
- data/spec/unit/models/callback_spec.rb +1 -1
- data/spec/unit/models/inbound_callback_type_enum_spec.rb +3 -3
- data/spec/unit/models/rbm_suggestion_response_spec.rb +9 -5
- data/spec/unit/models/recording_transcription_clip_spec.rb +96 -0
- data/spec/unit/models/recording_transcriptions_spec.rb +27 -4
- data/spec/unit/models/tfv_status_spec.rb +14 -2
- data/spec/unit/models/transcription_spec.rb +5 -1
- metadata +227 -223
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9032cc273b90797fb2a3ca3bf9b009da5617ca6954ea6e1d184b623243bec712
|
|
4
|
+
data.tar.gz: 77e94e8f7e9a6434fee58e27c780e24b669a4a58d2501aa61b6eb7de68ba695c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ecdd08dbcbc911ffe4686d843624d9ee59fe5138eee34506e5df4cc6d3b54194cfadc3cc972ff32e5d8e8d53d72dc95a4892f35e4c17a597584f27d7b6a2a1e
|
|
7
|
+
data.tar.gz: 4f4dc908bd3dc73d85acab1116f6ac94b02a067f6f2f7085ef1f664cd5ac0492782064e6ff74cfb6df37cde458e0ec1bfb23d7f1a346076742a7c6aca2cf5430
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bandwidth-sdk (18.1.
|
|
4
|
+
bandwidth-sdk (18.1.2)
|
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
|
6
6
|
faraday-multipart
|
|
7
7
|
marcel
|
|
@@ -17,7 +17,7 @@ GEM
|
|
|
17
17
|
coderay (1.1.3)
|
|
18
18
|
diff-lcs (1.6.2)
|
|
19
19
|
docile (1.4.1)
|
|
20
|
-
faraday (2.14.
|
|
20
|
+
faraday (2.14.3)
|
|
21
21
|
faraday-net_http (>= 2.0, < 3.5)
|
|
22
22
|
json
|
|
23
23
|
logger
|
|
@@ -26,7 +26,7 @@ GEM
|
|
|
26
26
|
faraday-net_http (3.4.4)
|
|
27
27
|
net-http (~> 0.5)
|
|
28
28
|
io-console (0.8.2)
|
|
29
|
-
json (2.
|
|
29
|
+
json (2.20.0)
|
|
30
30
|
language_server-protocol (3.17.0.5)
|
|
31
31
|
lint_roller (1.1.0)
|
|
32
32
|
logger (1.7.0)
|
|
@@ -35,7 +35,7 @@ GEM
|
|
|
35
35
|
multipart-post (2.4.1)
|
|
36
36
|
net-http (0.9.1)
|
|
37
37
|
uri (>= 0.11.1)
|
|
38
|
-
ox (2.14.
|
|
38
|
+
ox (2.14.27)
|
|
39
39
|
bigdecimal (>= 3.0)
|
|
40
40
|
parallel (2.1.0)
|
|
41
41
|
parser (3.3.11.1)
|
data/README.md
CHANGED
|
@@ -328,6 +328,7 @@ Class | Method | HTTP request | Description
|
|
|
328
328
|
- [Bandwidth::RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
|
|
329
329
|
- [Bandwidth::RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
|
|
330
330
|
- [Bandwidth::RecordingStateEnum](docs/RecordingStateEnum.md)
|
|
331
|
+
- [Bandwidth::RecordingTranscriptionClip](docs/RecordingTranscriptionClip.md)
|
|
331
332
|
- [Bandwidth::RecordingTranscriptionMetadata](docs/RecordingTranscriptionMetadata.md)
|
|
332
333
|
- [Bandwidth::RecordingTranscriptions](docs/RecordingTranscriptions.md)
|
|
333
334
|
- [Bandwidth::RedirectCallback](docs/RedirectCallback.md)
|
data/bandwidth.yml
CHANGED
|
@@ -2889,6 +2889,11 @@ components:
|
|
|
2889
2889
|
example: Yes, I would like to proceed
|
|
2890
2890
|
postbackData:
|
|
2891
2891
|
$ref: '#/components/schemas/rbmActionPostbackData'
|
|
2892
|
+
pairedMessageId:
|
|
2893
|
+
type: string
|
|
2894
|
+
nullable: true
|
|
2895
|
+
description: Corresponding parent message ID (MT).
|
|
2896
|
+
example: 1752697342534u24xerqdukke523x
|
|
2892
2897
|
rbmLocationResponse:
|
|
2893
2898
|
type: object
|
|
2894
2899
|
properties:
|
|
@@ -2925,7 +2930,7 @@ components:
|
|
|
2925
2930
|
message-failed: '#/components/schemas/statusCallback'
|
|
2926
2931
|
message-read: '#/components/schemas/statusCallback'
|
|
2927
2932
|
message-received: '#/components/schemas/inboundCallback'
|
|
2928
|
-
|
|
2933
|
+
requested-location-response: '#/components/schemas/inboundCallback'
|
|
2929
2934
|
suggestion-response: '#/components/schemas/inboundCallback'
|
|
2930
2935
|
statusCallback:
|
|
2931
2936
|
type: object
|
|
@@ -3035,14 +3040,15 @@ components:
|
|
|
3035
3040
|
- `message-received` indicates an MO message from a Bandwidth user's
|
|
3036
3041
|
client to a Bandwidth number.
|
|
3037
3042
|
|
|
3038
|
-
- `
|
|
3039
|
-
sent by the Bandwidth user's client after receiving an RBM
|
|
3043
|
+
- `requested-location-response` indicates a response to a location
|
|
3044
|
+
request sent by the Bandwidth user's client after receiving an RBM
|
|
3045
|
+
message.
|
|
3040
3046
|
|
|
3041
3047
|
- `suggestion-response` indicates a response to a suggestion sent by the
|
|
3042
3048
|
Bandwidth user's client after receiving an RBM message.
|
|
3043
3049
|
enum:
|
|
3044
3050
|
- message-received
|
|
3045
|
-
-
|
|
3051
|
+
- requested-location-response
|
|
3046
3052
|
- suggestion-response
|
|
3047
3053
|
example: message-received
|
|
3048
3054
|
statusCallbackMessage:
|
|
@@ -4348,6 +4354,72 @@ components:
|
|
|
4348
4354
|
type: array
|
|
4349
4355
|
items:
|
|
4350
4356
|
$ref: '#/components/schemas/transcription'
|
|
4357
|
+
clips:
|
|
4358
|
+
type: array
|
|
4359
|
+
description: >-
|
|
4360
|
+
A list of individual speech clips with speaker, timing, and
|
|
4361
|
+
confidence information.
|
|
4362
|
+
items:
|
|
4363
|
+
$ref: '#/components/schemas/recordingTranscriptionClip'
|
|
4364
|
+
example:
|
|
4365
|
+
transcripts:
|
|
4366
|
+
- speaker: 0
|
|
4367
|
+
text: Hi, is Thursday at two still good for you? Perfect, talk soon.
|
|
4368
|
+
confidence: 0.96
|
|
4369
|
+
- speaker: 1
|
|
4370
|
+
text: Yes, that works great. See you then! Sounds good, bye!
|
|
4371
|
+
confidence: 0.97
|
|
4372
|
+
clips:
|
|
4373
|
+
- speaker: 0
|
|
4374
|
+
text: Hi, is Thursday at two still good for you?
|
|
4375
|
+
confidence: 0.97
|
|
4376
|
+
startTimeSeconds: 0.4
|
|
4377
|
+
endTimeSeconds: 3.1
|
|
4378
|
+
- speaker: 1
|
|
4379
|
+
text: Yes, that works great. See you then!
|
|
4380
|
+
confidence: 0.95
|
|
4381
|
+
startTimeSeconds: 3.8
|
|
4382
|
+
endTimeSeconds: 6.2
|
|
4383
|
+
- speaker: 0
|
|
4384
|
+
text: Perfect, talk soon.
|
|
4385
|
+
confidence: 0.94
|
|
4386
|
+
startTimeSeconds: 6.9
|
|
4387
|
+
endTimeSeconds: 8.1
|
|
4388
|
+
- speaker: 1
|
|
4389
|
+
text: Sounds good, bye!
|
|
4390
|
+
confidence: 0.98
|
|
4391
|
+
startTimeSeconds: 8.5
|
|
4392
|
+
endTimeSeconds: 9.7
|
|
4393
|
+
recordingTranscriptionClip:
|
|
4394
|
+
type: object
|
|
4395
|
+
properties:
|
|
4396
|
+
speaker:
|
|
4397
|
+
type: integer
|
|
4398
|
+
description: Zero-based index identifying the speaker.
|
|
4399
|
+
example: 0
|
|
4400
|
+
text:
|
|
4401
|
+
type: string
|
|
4402
|
+
description: The transcribed text of this clip.
|
|
4403
|
+
example: Hi there, thanks for calling!
|
|
4404
|
+
confidence:
|
|
4405
|
+
type: number
|
|
4406
|
+
format: double
|
|
4407
|
+
minimum: 0
|
|
4408
|
+
maximum: 1
|
|
4409
|
+
description: >-
|
|
4410
|
+
How confident the transcription engine was in transcribing this clip
|
|
4411
|
+
(from `0.0` to `1.0`).
|
|
4412
|
+
example: 0.85
|
|
4413
|
+
startTimeSeconds:
|
|
4414
|
+
type: number
|
|
4415
|
+
format: double
|
|
4416
|
+
description: The start time of this clip within the recording, in seconds.
|
|
4417
|
+
example: 2.3
|
|
4418
|
+
endTimeSeconds:
|
|
4419
|
+
type: number
|
|
4420
|
+
format: double
|
|
4421
|
+
description: The end time of this clip within the recording, in seconds.
|
|
4422
|
+
example: 3.1
|
|
4351
4423
|
callTranscriptionMetadataList:
|
|
4352
4424
|
type: array
|
|
4353
4425
|
items:
|
|
@@ -5474,6 +5546,10 @@ components:
|
|
|
5474
5546
|
transcription:
|
|
5475
5547
|
type: object
|
|
5476
5548
|
properties:
|
|
5549
|
+
speaker:
|
|
5550
|
+
type: integer
|
|
5551
|
+
description: Zero-based index identifying the speaker.
|
|
5552
|
+
example: 0
|
|
5477
5553
|
text:
|
|
5478
5554
|
type: string
|
|
5479
5555
|
description: The transcribed text
|
|
@@ -6034,12 +6110,30 @@ components:
|
|
|
6034
6110
|
description: Reason code for denial.
|
|
6035
6111
|
type: integer
|
|
6036
6112
|
example: 511
|
|
6113
|
+
denialStatusCodeNullable:
|
|
6114
|
+
description: Reason code for denial.
|
|
6115
|
+
nullable: true
|
|
6116
|
+
type: integer
|
|
6117
|
+
example: 511
|
|
6037
6118
|
resubmitAllowed:
|
|
6038
6119
|
description: >-
|
|
6039
6120
|
Whether a Toll-Free Verification request qualifies for resubmission via
|
|
6040
6121
|
PUT.
|
|
6041
6122
|
example: true
|
|
6042
6123
|
type: boolean
|
|
6124
|
+
additionalDenialReason:
|
|
6125
|
+
type: object
|
|
6126
|
+
properties:
|
|
6127
|
+
statusCode:
|
|
6128
|
+
$ref: '#/components/schemas/denialStatusCode'
|
|
6129
|
+
reason:
|
|
6130
|
+
$ref: '#/components/schemas/declineReasonDescription'
|
|
6131
|
+
resubmitAllowed:
|
|
6132
|
+
$ref: '#/components/schemas/resubmitAllowed'
|
|
6133
|
+
required:
|
|
6134
|
+
- statusCode
|
|
6135
|
+
- reason
|
|
6136
|
+
- resubmitAllowed
|
|
6043
6137
|
blocked:
|
|
6044
6138
|
description: >-
|
|
6045
6139
|
Whether a Toll-Free Verification is blocked. This attribute will only be
|
|
@@ -6194,19 +6288,6 @@ components:
|
|
|
6194
6288
|
type: boolean
|
|
6195
6289
|
description: Indicates whether the content is age-gated.
|
|
6196
6290
|
example: false
|
|
6197
|
-
additionalDenialReason:
|
|
6198
|
-
properties:
|
|
6199
|
-
statusCode:
|
|
6200
|
-
$ref: '#/components/schemas/denialStatusCode'
|
|
6201
|
-
reason:
|
|
6202
|
-
$ref: '#/components/schemas/declineReasonDescription'
|
|
6203
|
-
resubmitAllowed:
|
|
6204
|
-
$ref: '#/components/schemas/resubmitAllowed'
|
|
6205
|
-
required:
|
|
6206
|
-
- statusCode
|
|
6207
|
-
- reason
|
|
6208
|
-
- resubmitAllowed
|
|
6209
|
-
type: object
|
|
6210
6291
|
internalTicketNumber:
|
|
6211
6292
|
type: string
|
|
6212
6293
|
description: >-
|
|
@@ -6402,6 +6483,7 @@ components:
|
|
|
6402
6483
|
description: >-
|
|
6403
6484
|
An optional list of denial reasons in addition to
|
|
6404
6485
|
declineReasonDescription when multiple reasons apply.
|
|
6486
|
+
type: array
|
|
6405
6487
|
items:
|
|
6406
6488
|
$ref: '#/components/schemas/additionalDenialReason'
|
|
6407
6489
|
example:
|
|
@@ -6411,7 +6493,6 @@ components:
|
|
|
6411
6493
|
- statusCode: 513
|
|
6412
6494
|
reason: Reason B
|
|
6413
6495
|
resubmitAllowed: true
|
|
6414
|
-
type: array
|
|
6415
6496
|
declineReasonDescription:
|
|
6416
6497
|
$ref: '#/components/schemas/declineReasonDescription'
|
|
6417
6498
|
denialStatusCode:
|
|
@@ -6779,6 +6860,23 @@ components:
|
|
|
6779
6860
|
$ref: '#/components/schemas/internalTicketNumber'
|
|
6780
6861
|
declineReasonDescription:
|
|
6781
6862
|
$ref: '#/components/schemas/declineReasonDescription'
|
|
6863
|
+
denialStatusCode:
|
|
6864
|
+
$ref: '#/components/schemas/denialStatusCodeNullable'
|
|
6865
|
+
additionalDenialReasons:
|
|
6866
|
+
description: >-
|
|
6867
|
+
An optional list of denial reasons in addition to
|
|
6868
|
+
declineReasonDescription when multiple reasons apply.
|
|
6869
|
+
nullable: true
|
|
6870
|
+
type: array
|
|
6871
|
+
items:
|
|
6872
|
+
$ref: '#/components/schemas/additionalDenialReason'
|
|
6873
|
+
example:
|
|
6874
|
+
- statusCode: 512
|
|
6875
|
+
reason: Reason A
|
|
6876
|
+
resubmitAllowed: true
|
|
6877
|
+
- statusCode: 513
|
|
6878
|
+
reason: Reason B
|
|
6879
|
+
resubmitAllowed: true
|
|
6782
6880
|
resubmitAllowed:
|
|
6783
6881
|
$ref: '#/components/schemas/resubmitAllowed'
|
|
6784
6882
|
createdDateTime:
|
|
@@ -9132,7 +9230,7 @@ components:
|
|
|
9132
9230
|
tag: '{"myTag": "myTagValue"}'
|
|
9133
9231
|
updateEndpointBxmlRequestExample:
|
|
9134
9232
|
summary: Update Endpoint BXML Request Example
|
|
9135
|
-
value: <
|
|
9233
|
+
value: <Response><StartRecording /></Response>
|
|
9136
9234
|
endpointDisconnectedEventExample:
|
|
9137
9235
|
summary: Endpoint Disconnected Event
|
|
9138
9236
|
value:
|
|
@@ -9656,10 +9754,10 @@ components:
|
|
|
9656
9754
|
|
|
9657
9755
|
<p>The payload type will be one of <code>message-received</code>,
|
|
9658
9756
|
<code>suggestion-response</code>, or
|
|
9659
|
-
<code>location-
|
|
9757
|
+
<code>requested-location-response</code>.
|
|
9660
9758
|
|
|
9661
9759
|
<p>Note that <code>suggestion-response</code> and
|
|
9662
|
-
<code>location-
|
|
9760
|
+
<code>requested-location-response</code> callback types are
|
|
9663
9761
|
pertinent only for RBM messages sent from the
|
|
9664
9762
|
<code>/messages/multiChannel</code> endpoint.
|
|
9665
9763
|
|
data/coverage/.last_run.json
CHANGED