bandwidth-sdk 18.1.1 → 18.1.3

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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +1 -0
  4. data/bandwidth.yml +153 -27
  5. data/coverage/.last_run.json +1 -1
  6. data/coverage/.resultset.json +572 -145
  7. data/coverage/index.html +6905 -2309
  8. data/docs/Callback.md +1 -1
  9. data/docs/RbmActionBase.md +1 -1
  10. data/docs/RbmSuggestionResponse.md +3 -1
  11. data/docs/RecordingTranscriptionClip.md +26 -0
  12. data/docs/RecordingTranscriptions.md +3 -1
  13. data/docs/StatusCallback.md +1 -1
  14. data/docs/TfvStatus.md +4 -0
  15. data/docs/Transcription.md +2 -0
  16. data/lib/bandwidth-sdk/models/callback.rb +1 -1
  17. data/lib/bandwidth-sdk/models/inbound_callback_type_enum.rb +2 -2
  18. data/lib/bandwidth-sdk/models/rbm_suggestion_response.rb +15 -4
  19. data/lib/bandwidth-sdk/models/recording_transcription_clip.rb +214 -0
  20. data/lib/bandwidth-sdk/models/recording_transcriptions.rb +16 -4
  21. data/lib/bandwidth-sdk/models/status_callback_type_enum.rb +2 -1
  22. data/lib/bandwidth-sdk/models/tfv_status.rb +25 -1
  23. data/lib/bandwidth-sdk/models/transcription.rb +11 -1
  24. data/lib/bandwidth-sdk/version.rb +1 -1
  25. data/lib/bandwidth-sdk.rb +1 -0
  26. data/spec/unit/api/recordings_api_spec.rb +1 -0
  27. data/spec/unit/models/callback_spec.rb +1 -1
  28. data/spec/unit/models/inbound_callback_type_enum_spec.rb +3 -3
  29. data/spec/unit/models/rbm_suggestion_response_spec.rb +9 -5
  30. data/spec/unit/models/recording_transcription_clip_spec.rb +96 -0
  31. data/spec/unit/models/recording_transcriptions_spec.rb +27 -4
  32. data/spec/unit/models/status_callback_type_enum_spec.rb +6 -0
  33. data/spec/unit/models/tfv_status_spec.rb +14 -2
  34. data/spec/unit/models/transcription_spec.rb +5 -1
  35. metadata +227 -223
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bed120c7532192b370e0374a09ab05a19ff948ed6a467cff4f5a7f6c9f68264
4
- data.tar.gz: 0c6b5f890f571a2e1ef9a5e14a4aa0e5f9a310bdcc0afa8dfde4ddb60dab5835
3
+ metadata.gz: 46feb439869cf3f696c51a831a7e5bcc4b1f7d7bcdb647ea8520ff3b9acdd9d1
4
+ data.tar.gz: a8c577817beedc7f987e7a7de6916a97e9a289a20756636fedbd9b7b16d2ffb6
5
5
  SHA512:
6
- metadata.gz: b61d228672e667ac2983a71f3f19731f287e96b8313d5728cb17129298d4ccfd9fc142cb3850cfc8866e63d8da7ceccab9f58e9e4a064faa2df1afb5f3c4c4a6
7
- data.tar.gz: 23a1c3ca2734b38bf942c2edcc91532bf2cdde91f4cf0fb68003338ed0ea69462bdbff42d1e039ef43dab9c283577357ca95aec7b33d87a3f5f7f83d6bc3c369
6
+ metadata.gz: 3ef5be39eb184d7edc118021b2ab57363e6122621beee5cbd052f33f278a760e4b86e3d06c18d8c30dc9100bc2dee3765616e73e4556516869c213ce63560f80
7
+ data.tar.gz: 688af54441e86e758259048657eda082db6685c7e75c110f84ad6f7aa12f61bbb8c3c18090d8f81ad8f4c5c974cb43392d8262fae808f1662fd390108846bbc7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bandwidth-sdk (18.1.1)
4
+ bandwidth-sdk (18.1.3)
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.2)
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.19.7)
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.26)
38
+ ox (2.14.28)
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
- request-location-response: '#/components/schemas/inboundCallback'
2933
+ requested-location-response: '#/components/schemas/inboundCallback'
2929
2934
  suggestion-response: '#/components/schemas/inboundCallback'
2930
2935
  statusCallback:
2931
2936
  type: object
@@ -2957,7 +2962,7 @@ components:
2957
2962
  description:
2958
2963
  type: string
2959
2964
  description: A detailed description of the event described by the callback.
2960
- example: Message delivered to carrier.
2965
+ example: Message delivered to handset.
2961
2966
  message:
2962
2967
  $ref: '#/components/schemas/statusCallbackMessage'
2963
2968
  errorCode:
@@ -3013,7 +3018,11 @@ components:
3013
3018
  - `message-sending` indicates that Bandwidth is sending the message to
3014
3019
  the upstream provider.
3015
3020
 
3016
- - `message-delivered` indicates that the message was successfully sent.
3021
+ - `message-sent` indicates that the message has left the Bandwidth
3022
+ network and is in transit to the provider.
3023
+
3024
+ - `message-delivered` indicates that the message was successfully
3025
+ delivered to handset.
3017
3026
 
3018
3027
  - `message-failed` indicates that the message could not be sent to the
3019
3028
  intended recipient.
@@ -3022,6 +3031,7 @@ components:
3022
3031
  recipient.
3023
3032
  enum:
3024
3033
  - message-sending
3034
+ - message-sent
3025
3035
  - message-delivered
3026
3036
  - message-failed
3027
3037
  - message-read
@@ -3035,14 +3045,15 @@ components:
3035
3045
  - `message-received` indicates an MO message from a Bandwidth user's
3036
3046
  client to a Bandwidth number.
3037
3047
 
3038
- - `request-location-response` indicates a response to a location request
3039
- sent by the Bandwidth user's client after receiving an RBM message.
3048
+ - `requested-location-response` indicates a response to a location
3049
+ request sent by the Bandwidth user's client after receiving an RBM
3050
+ message.
3040
3051
 
3041
3052
  - `suggestion-response` indicates a response to a suggestion sent by the
3042
3053
  Bandwidth user's client after receiving an RBM message.
3043
3054
  enum:
3044
3055
  - message-received
3045
- - request-location-response
3056
+ - requested-location-response
3046
3057
  - suggestion-response
3047
3058
  example: message-received
3048
3059
  statusCallbackMessage:
@@ -4348,6 +4359,72 @@ components:
4348
4359
  type: array
4349
4360
  items:
4350
4361
  $ref: '#/components/schemas/transcription'
4362
+ clips:
4363
+ type: array
4364
+ description: >-
4365
+ A list of individual speech clips with speaker, timing, and
4366
+ confidence information.
4367
+ items:
4368
+ $ref: '#/components/schemas/recordingTranscriptionClip'
4369
+ example:
4370
+ transcripts:
4371
+ - speaker: 0
4372
+ text: Hi, is Thursday at two still good for you? Perfect, talk soon.
4373
+ confidence: 0.96
4374
+ - speaker: 1
4375
+ text: Yes, that works great. See you then! Sounds good, bye!
4376
+ confidence: 0.97
4377
+ clips:
4378
+ - speaker: 0
4379
+ text: Hi, is Thursday at two still good for you?
4380
+ confidence: 0.97
4381
+ startTimeSeconds: 0.4
4382
+ endTimeSeconds: 3.1
4383
+ - speaker: 1
4384
+ text: Yes, that works great. See you then!
4385
+ confidence: 0.95
4386
+ startTimeSeconds: 3.8
4387
+ endTimeSeconds: 6.2
4388
+ - speaker: 0
4389
+ text: Perfect, talk soon.
4390
+ confidence: 0.94
4391
+ startTimeSeconds: 6.9
4392
+ endTimeSeconds: 8.1
4393
+ - speaker: 1
4394
+ text: Sounds good, bye!
4395
+ confidence: 0.98
4396
+ startTimeSeconds: 8.5
4397
+ endTimeSeconds: 9.7
4398
+ recordingTranscriptionClip:
4399
+ type: object
4400
+ properties:
4401
+ speaker:
4402
+ type: integer
4403
+ description: Zero-based index identifying the speaker.
4404
+ example: 0
4405
+ text:
4406
+ type: string
4407
+ description: The transcribed text of this clip.
4408
+ example: Hi there, thanks for calling!
4409
+ confidence:
4410
+ type: number
4411
+ format: double
4412
+ minimum: 0
4413
+ maximum: 1
4414
+ description: >-
4415
+ How confident the transcription engine was in transcribing this clip
4416
+ (from `0.0` to `1.0`).
4417
+ example: 0.85
4418
+ startTimeSeconds:
4419
+ type: number
4420
+ format: double
4421
+ description: The start time of this clip within the recording, in seconds.
4422
+ example: 2.3
4423
+ endTimeSeconds:
4424
+ type: number
4425
+ format: double
4426
+ description: The end time of this clip within the recording, in seconds.
4427
+ example: 3.1
4351
4428
  callTranscriptionMetadataList:
4352
4429
  type: array
4353
4430
  items:
@@ -5474,6 +5551,10 @@ components:
5474
5551
  transcription:
5475
5552
  type: object
5476
5553
  properties:
5554
+ speaker:
5555
+ type: integer
5556
+ description: Zero-based index identifying the speaker.
5557
+ example: 0
5477
5558
  text:
5478
5559
  type: string
5479
5560
  description: The transcribed text
@@ -6034,12 +6115,30 @@ components:
6034
6115
  description: Reason code for denial.
6035
6116
  type: integer
6036
6117
  example: 511
6118
+ denialStatusCodeNullable:
6119
+ description: Reason code for denial.
6120
+ nullable: true
6121
+ type: integer
6122
+ example: 511
6037
6123
  resubmitAllowed:
6038
6124
  description: >-
6039
6125
  Whether a Toll-Free Verification request qualifies for resubmission via
6040
6126
  PUT.
6041
6127
  example: true
6042
6128
  type: boolean
6129
+ additionalDenialReason:
6130
+ type: object
6131
+ properties:
6132
+ statusCode:
6133
+ $ref: '#/components/schemas/denialStatusCode'
6134
+ reason:
6135
+ $ref: '#/components/schemas/declineReasonDescription'
6136
+ resubmitAllowed:
6137
+ $ref: '#/components/schemas/resubmitAllowed'
6138
+ required:
6139
+ - statusCode
6140
+ - reason
6141
+ - resubmitAllowed
6043
6142
  blocked:
6044
6143
  description: >-
6045
6144
  Whether a Toll-Free Verification is blocked. This attribute will only be
@@ -6194,19 +6293,6 @@ components:
6194
6293
  type: boolean
6195
6294
  description: Indicates whether the content is age-gated.
6196
6295
  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
6296
  internalTicketNumber:
6211
6297
  type: string
6212
6298
  description: >-
@@ -6402,6 +6488,7 @@ components:
6402
6488
  description: >-
6403
6489
  An optional list of denial reasons in addition to
6404
6490
  declineReasonDescription when multiple reasons apply.
6491
+ type: array
6405
6492
  items:
6406
6493
  $ref: '#/components/schemas/additionalDenialReason'
6407
6494
  example:
@@ -6411,7 +6498,6 @@ components:
6411
6498
  - statusCode: 513
6412
6499
  reason: Reason B
6413
6500
  resubmitAllowed: true
6414
- type: array
6415
6501
  declineReasonDescription:
6416
6502
  $ref: '#/components/schemas/declineReasonDescription'
6417
6503
  denialStatusCode:
@@ -6779,6 +6865,23 @@ components:
6779
6865
  $ref: '#/components/schemas/internalTicketNumber'
6780
6866
  declineReasonDescription:
6781
6867
  $ref: '#/components/schemas/declineReasonDescription'
6868
+ denialStatusCode:
6869
+ $ref: '#/components/schemas/denialStatusCodeNullable'
6870
+ additionalDenialReasons:
6871
+ description: >-
6872
+ An optional list of denial reasons in addition to
6873
+ declineReasonDescription when multiple reasons apply.
6874
+ nullable: true
6875
+ type: array
6876
+ items:
6877
+ $ref: '#/components/schemas/additionalDenialReason'
6878
+ example:
6879
+ - statusCode: 512
6880
+ reason: Reason A
6881
+ resubmitAllowed: true
6882
+ - statusCode: 513
6883
+ reason: Reason B
6884
+ resubmitAllowed: true
6782
6885
  resubmitAllowed:
6783
6886
  $ref: '#/components/schemas/resubmitAllowed'
6784
6887
  createdDateTime:
@@ -8614,12 +8717,33 @@ components:
8614
8717
  media:
8615
8718
  - https://dev.bandwidth.com/images/bandwidth-logo.png
8616
8719
  tag: your tag here
8720
+ messageSentCallbackExample:
8721
+ summary: An example of a message-sent callback body.
8722
+ value:
8723
+ time: '2024-06-25T18:42:36.979456Z'
8724
+ type: message-sent
8725
+ to: '+15554443333'
8726
+ description: Message sent to carrier
8727
+ message:
8728
+ id: 1593110555875xo7watq5px6rbe5d
8729
+ owner: '+15552221111'
8730
+ applicationId: cfd4fb83-7531-4acc-b471-42d0bb76a65c
8731
+ time: '2024-06-25T18:42:35.876906Z'
8732
+ segmentCount: 1
8733
+ direction: out
8734
+ to:
8735
+ - '+15554443333'
8736
+ from: '+15552221111'
8737
+ text: ''
8738
+ media:
8739
+ - https://dev.bandwidth.com/images/bandwidth-logo.png
8740
+ tag: v2 lab
8617
8741
  smsMessageDeliveredCallbackExample:
8618
8742
  summary: An example of a sms message-delivered callback body.
8619
8743
  value:
8620
8744
  type: message-delivered
8621
8745
  time: '2024-09-14T18:20:11.160744Z'
8622
- description: Message delivered to carrier.
8746
+ description: Message delivered to handset.
8623
8747
  to: '+12345678902'
8624
8748
  message:
8625
8749
  id: 14762070468292kw2fuqty55yp2b2
@@ -8637,7 +8761,7 @@ components:
8637
8761
  value:
8638
8762
  type: message-delivered
8639
8763
  time: '2024-09-14T18:20:24.160544Z'
8640
- description: Message delivered to carrier.
8764
+ description: Message delivered to handset.
8641
8765
  to: '+12345678902'
8642
8766
  message:
8643
8767
  id: 14762070468292kw2fuqty55yp2b2
@@ -8657,7 +8781,7 @@ components:
8657
8781
  value:
8658
8782
  type: message-delivered
8659
8783
  time: '2024-09-14T18:20:17.160544Z'
8660
- description: Message delivered to carrier.
8784
+ description: Message delivered to handset.
8661
8785
  to: '+12345678902'
8662
8786
  message:
8663
8787
  id: 14762070468292kw2fuqty55yp2b2
@@ -9132,7 +9256,7 @@ components:
9132
9256
  tag: '{"myTag": "myTagValue"}'
9133
9257
  updateEndpointBxmlRequestExample:
9134
9258
  summary: Update Endpoint BXML Request Example
9135
- value: <Bxml><StartRecording /></Bxml>
9259
+ value: <Response><StartRecording /></Response>
9136
9260
  endpointDisconnectedEventExample:
9137
9261
  summary: Endpoint Disconnected Event
9138
9262
  value:
@@ -9656,10 +9780,10 @@ components:
9656
9780
 
9657
9781
  <p>The payload type will be one of <code>message-received</code>,
9658
9782
  <code>suggestion-response</code>, or
9659
- <code>location-request-response</code>.
9783
+ <code>requested-location-response</code>.
9660
9784
 
9661
9785
  <p>Note that <code>suggestion-response</code> and
9662
- <code>location-request-response</code> callback types are
9786
+ <code>requested-location-response</code> callback types are
9663
9787
  pertinent only for RBM messages sent from the
9664
9788
  <code>/messages/multiChannel</code> endpoint.
9665
9789
 
@@ -9689,7 +9813,7 @@ components:
9689
9813
  information regarding a message sent (MT)
9690
9814
 
9691
9815
  from your message-enabled Bandwidth telephone number.
9692
- <p>The payload type will be one of <code>message-sending</code>, <code>message-delivered</code>, <code>message-failed</code> or <code>message-read</code>.
9816
+ <p>The payload type will be one of <code>message-sending</code>, <code>message-sent</code>, <code>message-delivered</code>, <code>message-failed</code> or <code>message-read</code>.
9693
9817
  <p>Note that <code>message-read</code> callbacks are pertinent only for RBM messages sent from the <code>/messages/multiChannel</code> endpoint.
9694
9818
  </p><p>Please visit <a
9695
9819
  href='/docs/messaging/webhooks/'>Webhooks</a></p>
@@ -9700,6 +9824,8 @@ components:
9700
9824
  examples:
9701
9825
  messageSendingCallback:
9702
9826
  $ref: '#/components/examples/messageSendingCallbackExample'
9827
+ messageSentCallback:
9828
+ $ref: '#/components/examples/messageSentCallbackExample'
9703
9829
  smsMessageDeliveredCallback:
9704
9830
  $ref: '#/components/examples/smsMessageDeliveredCallbackExample'
9705
9831
  mmsMessageDeliveredCallback:
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "result": {
3
- "line": 87.48
3
+ "line": 87.5
4
4
  }
5
5
  }