bandwidth-sdk 17.3.1 → 18.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b0bca65e0a4a616dda251dcb01f1057480b68382807d064184fe3b75c37eed5
4
- data.tar.gz: ff5640dde4290a14575e2e282ebcc8a6840eb6598eef5f995e149ae6f3786850
3
+ metadata.gz: f21c9b7a965a264ef14618d42e01d9847b40b1a7a4cdd73ab1b6312acab09c0a
4
+ data.tar.gz: 25516a2746c0ef44f93af141edd18d0b78d5b3268d96f3eeb2e7c5eb1e963d33
5
5
  SHA512:
6
- metadata.gz: 6ddcce0d0fc9ec1dacd815ee1e5baa073536ad8deca7c9d05de231e8d1b30465fdf81056e800618d63248a66103894575129acc76621e719df88291e739128b0
7
- data.tar.gz: 94f1bf779801d16a0e4da36b9ad0ecb72338bff90a9d2716c6ac1f3d340d22c982643ae9f271e8470d86584a92e7e285877354653712e7328bd053574b46ef7e
6
+ metadata.gz: 9dfb299c7d584425ec24beb5709ccb4674fb75d8c5ee924225e9e53076a4585b548e8bd268d5b636aaf860617127a1ad92d13bb8c416bba437049c79ec8f9399
7
+ data.tar.gz: 16da8b388e7319c53343617c8afa05852976373778cd2c3f23827011473b28fd07ced43205d105d8cccc2059729d6796ff35bbd33b8625a8232c99685e1280b0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bandwidth-sdk (17.3.1)
4
+ bandwidth-sdk (18.0.0)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart
7
7
  marcel
@@ -11,7 +11,7 @@ GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
13
  ast (2.4.3)
14
- bigdecimal (4.0.1)
14
+ bigdecimal (4.1.1)
15
15
  byebug (13.0.0)
16
16
  reline (>= 0.6.0)
17
17
  coderay (1.1.3)
@@ -26,7 +26,7 @@ GEM
26
26
  faraday-net_http (3.4.2)
27
27
  net-http (~> 0.5)
28
28
  io-console (0.8.2)
29
- json (2.19.2)
29
+ json (2.19.3)
30
30
  language_server-protocol (3.17.0.5)
31
31
  lint_roller (1.1.0)
32
32
  logger (1.7.0)
@@ -37,8 +37,8 @@ GEM
37
37
  uri (>= 0.11.1)
38
38
  ox (2.14.23)
39
39
  bigdecimal (>= 3.0)
40
- parallel (1.27.0)
41
- parser (3.3.10.2)
40
+ parallel (1.28.0)
41
+ parser (3.3.11.1)
42
42
  ast (~> 2.4.1)
43
43
  racc
44
44
  prism (1.9.0)
@@ -52,7 +52,7 @@ GEM
52
52
  racc (1.8.1)
53
53
  rainbow (3.1.1)
54
54
  rake (13.2.1)
55
- regexp_parser (2.11.3)
55
+ regexp_parser (2.12.0)
56
56
  reline (0.6.3)
57
57
  io-console (~> 0.5)
58
58
  rspec (3.13.2)
data/README.md CHANGED
@@ -180,7 +180,6 @@ Class | Method | HTTP request | Description
180
180
  - [Bandwidth::BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
181
181
  - [Bandwidth::BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
182
182
  - [Bandwidth::BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md)
183
- - [Bandwidth::BusinessRegistrationIssuingCountryEnum](docs/BusinessRegistrationIssuingCountryEnum.md)
184
183
  - [Bandwidth::BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md)
185
184
  - [Bandwidth::CallDirectionEnum](docs/CallDirectionEnum.md)
186
185
  - [Bandwidth::CallRecordingMetadata](docs/CallRecordingMetadata.md)
data/bandwidth.yml CHANGED
@@ -95,8 +95,8 @@ paths:
95
95
  under this account, the previous file will be overwritten.
96
96
 
97
97
 
98
- A list of supported media types can be found
99
- [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
98
+ A list of supported media types can be found at [Bandwidth
99
+ Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
100
100
  operationId: uploadMedia
101
101
  tags:
102
102
  - Media
@@ -2255,8 +2255,8 @@ components:
2255
2255
 
2256
2256
  For MMS, the API limits file size to 3.5MB. Specific carriers and
2257
2257
  channels may have a smaller limit that could cause a large file to
2258
- fail, see
2259
- [here](https://support.bandwidth.com/hc/en-us/articles/360014235473-What-are-the-MMS-file-size-limits)
2258
+ fail, see more at [Bandwidth
2259
+ Support](https://www.bandwidth.com/support/en/articles/12823216-what-are-the-mms-file-size-limits)
2260
2260
  for more details.
2261
2261
  example: https://dev.bandwidth.com/images/bandwidth-logo.png
2262
2262
  maxLength: 1000
@@ -5552,6 +5552,10 @@ components:
5552
5552
  example: GET
5553
5553
  lookupErrorSchema:
5554
5554
  type: object
5555
+ required:
5556
+ - code
5557
+ - type
5558
+ - description
5555
5559
  properties:
5556
5560
  code:
5557
5561
  type: string
@@ -5699,6 +5703,39 @@ components:
5699
5703
  type: array
5700
5704
  items:
5701
5705
  $ref: '#/components/schemas/lookupErrorSchema'
5706
+ rcsErrorEnum:
5707
+ type: string
5708
+ description: >-
5709
+ [RCS-Only](#section/RCS-Only). Error encountered during RCS capability
5710
+ lookup. Appears as the `code` field in the top-level `errors` array.
5711
+
5712
+
5713
+ **RCS service pass-through codes:**
5714
+
5715
+ - `REQUEST_FAILED`: The RCS service returned this error code.
5716
+
5717
+ - `UNKNOWN_CODE`: The RCS service returned this error code.
5718
+
5719
+ - `INVALID_DESTINATION_ADDRESS`: The RCS service returned this error
5720
+ code.
5721
+
5722
+ - `UNKNOWN_STATUS: <code>`: The RCS service returned an unrecognized
5723
+ status code, where `<code>` is the raw value.
5724
+
5725
+
5726
+ **Service-level errors:**
5727
+
5728
+ - `MISSING_FROM_RESPONSE`: The phone number was absent from the RCS
5729
+ service response.
5730
+
5731
+ - `RCS_SERVICE_UNAVAILABLE`: An exception was thrown during the async
5732
+ RCS service call.
5733
+
5734
+ - `RCS_SERVICE_DISABLED`: RCS lookup is disabled in configuration.
5735
+
5736
+ - `EMPTY_RESPONSE`: The RCS service returned a null or empty response
5737
+ body.
5738
+ example: RCS_SERVICE_UNAVAILABLE
5702
5739
  lookupResult:
5703
5740
  type: object
5704
5741
  description: Carrier information results for the specified telephone number.
@@ -5757,13 +5794,21 @@ components:
5757
5794
  format: date
5758
5795
  description: >-
5759
5796
  [DNI-Only](#section/DNI-Only). The date bandwidth last received
5760
- delivery status information for this phone number.
5797
+ delivery status information for this phone number.
5761
5798
 
5762
5799
  Use this field to understand how up-to-date the
5763
5800
  `latestMessageDeliveryStatus` is.
5764
5801
 
5765
5802
  Value resets every time the `latestMessageDeliveryStatus` changes.
5766
5803
  example: '2025-06-21'
5804
+ rcsEnabled:
5805
+ type: boolean
5806
+ description: >
5807
+ [RCS-Only](#section/RCS-Only). Indicates whether the phone number is
5808
+ capable of receiving RCS messages. Value will be null if account has
5809
+ RCS, but no value was returned. Absent when account does not have
5810
+ RCS.
5811
+ example: true
5767
5812
  accountId1:
5768
5813
  type: string
5769
5814
  description: User's account ID.
@@ -5842,17 +5887,21 @@ components:
5842
5887
  Government-issued business identifying number.
5843
5888
 
5844
5889
 
5845
- **Note:** If this field is provided, it is strongly recommended to also
5846
- provide `businessRegistrationType` and
5847
- `businessRegistrationIssuingCountry`. Submissions missing these fields
5848
- have a high likelihood of rejection.
5890
+ **Note: As of October 19th, 2026 this field will be required when
5891
+ `businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is
5892
+ provided, `businessRegistrationType` and
5893
+ `businessRegistrationIssuingCountry` are also required.**
5849
5894
  nullable: true
5850
5895
  maxLength: 500
5851
5896
  example: 12-3456789
5852
5897
  businessRegistrationTypeEnum:
5853
5898
  type: string
5854
- description: |
5899
+ description: >
5855
5900
  The type of business registration number.
5901
+
5902
+
5903
+ **Note: As of October 19th, 2026 this field will be required when
5904
+ `businessRegistrationNumber` is provided.**
5856
5905
  enum:
5857
5906
  - EIN
5858
5907
  - CBN
@@ -5874,20 +5923,16 @@ components:
5874
5923
  - OTHER
5875
5924
  example: EIN
5876
5925
  nullable: true
5877
- businessRegistrationIssuingCountryEnum:
5926
+ businessRegistrationIssuingCountry:
5878
5927
  type: string
5879
5928
  description: >-
5880
5929
  The country issuing the business registration in ISO-3166-1 alpha-3
5881
- format. Alpha-2 country codes are acceptable, but the application will
5882
- convert them to alpha-3 when received, so alpha-3 is encouraged.
5930
+ format. Alpha-2 format is accepted by the API, but alpha-3 is highly
5931
+ encouraged.
5883
5932
 
5884
5933
 
5885
- **Note:** If this field is omitted but `businessRegistrationType` is
5886
- provided, the application will attempt to infer the country based on the
5887
- registration type. However, if the application cannot confidently infer
5888
- the country, the submission may be rejected. To ensure the highest
5889
- likelihood of acceptance, it is recommended to provide both
5890
- `businessRegistrationType` and `businessRegistrationIssuingCountry`.
5934
+ **Note: As of October 19th, 2026 this field will be required when
5935
+ `businessRegistrationNumber` is provided.**
5891
5936
 
5892
5937
 
5893
5938
  | Registration Type | Supported Countries |
@@ -5929,30 +5974,22 @@ components:
5929
5974
  | UID | CHE |
5930
5975
 
5931
5976
  | OTHER | Must Provide Country Code |
5932
- enum:
5933
- - USA
5934
- - CAN
5935
- - HKG
5936
- - GBR
5937
- - IRL
5938
- - BRA
5939
- - NLD
5940
- - AUS
5941
- - FRA
5942
- - NZL
5943
- - DEU
5944
- - ESP
5945
- - CHE
5946
- - CYP
5947
- - IND
5948
- - CHN
5949
- - BGR
5950
5977
  example: USA
5951
- nullable: false
5978
+ nullable: true
5952
5979
  businessEntityTypeEnum:
5953
5980
  type: string
5954
- description: |
5981
+ description: >
5955
5982
  The type of registered business.
5983
+
5984
+
5985
+ **Note: As of October 19th, 2026 submissions using a value other than
5986
+ `SOLE_PROPRIETOR` must provide a value for `businessRegistrationNumber`,
5987
+ `businessRegistrationType`, and `businessRegistrationIssuingCountry`.
5988
+
5989
+ Submissions using `SOLE_PROPRIETOR` must _omit_
5990
+ `businessRegistrationNumber`, `businessRegistrationType`, and
5991
+ `businessRegistrationIssuingCountry`. Failure to adhere to these
5992
+ constraints will result in a 400 Bad Request rejection.**
5956
5993
  enum:
5957
5994
  - SOLE_PROPRIETOR
5958
5995
  - PRIVATE_PROFIT
@@ -6061,7 +6098,7 @@ components:
6061
6098
  businessRegistrationType:
6062
6099
  $ref: '#/components/schemas/businessRegistrationTypeEnum'
6063
6100
  businessRegistrationIssuingCountry:
6064
- $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6101
+ $ref: '#/components/schemas/businessRegistrationIssuingCountry'
6065
6102
  businessEntityType:
6066
6103
  $ref: '#/components/schemas/businessEntityTypeEnum'
6067
6104
  helpMessageResponse:
@@ -6116,7 +6153,7 @@ components:
6116
6153
  businessEntityType:
6117
6154
  $ref: '#/components/schemas/businessEntityTypeEnum'
6118
6155
  businessRegistrationIssuingCountry:
6119
- $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6156
+ $ref: '#/components/schemas/businessRegistrationIssuingCountry'
6120
6157
  helpMessageResponse:
6121
6158
  $ref: '#/components/schemas/helpMessageResponse'
6122
6159
  ageGatedContent:
@@ -6612,13 +6649,15 @@ components:
6612
6649
  description: Government-issued business identifying number.
6613
6650
  businessRegistrationType:
6614
6651
  $ref: '#/components/schemas/businessRegistrationTypeEnum'
6652
+ description: The type of business registration number.
6615
6653
  businessRegistrationIssuingCountry:
6616
- $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6654
+ $ref: '#/components/schemas/businessRegistrationIssuingCountry'
6617
6655
  description: >-
6618
6656
  The country issuing the business registration in ISO-3166-1 alpha-3
6619
6657
  format.
6620
6658
  businessEntityType:
6621
6659
  $ref: '#/components/schemas/businessEntityTypeEnum'
6660
+ description: The type of registered business.
6622
6661
  tfvStatusEnum:
6623
6662
  type: string
6624
6663
  enum:
@@ -7149,6 +7188,10 @@ components:
7149
7188
  $ref: '#/components/examples/lookupCompleteWithDniExample'
7150
7189
  lookupCompleteExample:
7151
7190
  $ref: '#/components/examples/lookupCompleteExample'
7191
+ lookupCompleteWithRcsExample:
7192
+ $ref: '#/components/examples/lookupCompleteWithRcsExample'
7193
+ lookupCompleteWithRcsErrorExample:
7194
+ $ref: '#/components/examples/lookupCompleteWithRcsErrorExample'
7152
7195
  lookupPartialExample:
7153
7196
  $ref: '#/components/examples/lookupPartialExample'
7154
7197
  lookupFailedExample:
@@ -7160,8 +7203,8 @@ components:
7160
7203
  schema:
7161
7204
  $ref: '#/components/schemas/createAsyncBulkLookupResponse'
7162
7205
  examples:
7163
- lookupInProgressExample:
7164
- $ref: '#/components/examples/lookupInProgressExample'
7206
+ lookupAcceptedExample:
7207
+ $ref: '#/components/examples/lookupAcceptedExample'
7165
7208
  getAsyncBulkLookupResponse:
7166
7209
  description: OK
7167
7210
  content:
@@ -8049,25 +8092,32 @@ components:
8049
8092
  phoneNumbers:
8050
8093
  - '+19196104423'
8051
8094
  - '+19196104424'
8052
- lookupInProgressExample:
8053
- summary: Numbers Lookup In Progress
8095
+ lookupAcceptedExample:
8096
+ summary: Numbers Lookup Accepted
8054
8097
  value:
8055
8098
  links:
8056
- - href: href
8057
- rel: rel
8099
+ - href: >-
8100
+ /accounts/9912345/phoneNumberLookup/bulk/004223a0-8b17-41b1-bf81-20732adf5590
8101
+ rel: createdRequest
8058
8102
  method: GET
8059
8103
  data:
8060
8104
  requestId: 004223a0-8b17-41b1-bf81-20732adf5590
8061
8105
  status: IN_PROGRESS
8062
8106
  results: []
8063
8107
  errors: []
8108
+ lookupInProgressExample:
8109
+ summary: Numbers Lookup In Progress
8110
+ value:
8111
+ links: []
8112
+ data:
8113
+ requestId: 004223a0-8b17-41b1-bf81-20732adf5590
8114
+ status: IN_PROGRESS
8115
+ results: []
8116
+ errors: []
8064
8117
  lookupFailedExample:
8065
8118
  summary: Numbers Lookup Failed
8066
8119
  value:
8067
- links:
8068
- - href: href
8069
- rel: rel
8070
- method: GET
8120
+ links: []
8071
8121
  data:
8072
8122
  requestId: 004223a0-8b17-41b1-bf81-20732adf5590
8073
8123
  status: FAILED
@@ -8084,10 +8134,7 @@ components:
8084
8134
  lookupPartialExample:
8085
8135
  summary: Numbers Lookup Partial Complete
8086
8136
  value:
8087
- links:
8088
- - href: href
8089
- rel: rel
8090
- method: GET
8137
+ links: []
8091
8138
  data:
8092
8139
  requestId: 004223a0-8b17-41b1-bf81-20732adf5590
8093
8140
  status: PARTIAL_COMPLETE
@@ -8114,10 +8161,7 @@ components:
8114
8161
  lookupCompleteExample:
8115
8162
  summary: Numbers Lookup Complete (without DNI)
8116
8163
  value:
8117
- links:
8118
- - href: href
8119
- rel: rel
8120
- method: GET
8164
+ links: []
8121
8165
  data:
8122
8166
  requestId: 004223a0-8b17-41b1-bf81-20732adf5590
8123
8167
  status: COMPLETE
@@ -8136,10 +8180,7 @@ components:
8136
8180
  lookupCompleteWithDniExample:
8137
8181
  summary: Numbers Lookup Complete (with DNI)
8138
8182
  value:
8139
- links:
8140
- - href: href
8141
- rel: rel
8142
- method: GET
8183
+ links: []
8143
8184
  data:
8144
8185
  requestId: 20732adf-bf81-8b17-41b1-004223a05590
8145
8186
  status: COMPLETE
@@ -8177,6 +8218,58 @@ components:
8177
8218
  deactivationEvent: DEACTIVATED
8178
8219
  latestMessageDeliveryStatus: NOT_ENABLED
8179
8220
  errors: []
8221
+ lookupCompleteWithRcsExample:
8222
+ summary: Numbers Lookup Complete (with RCS)
8223
+ value:
8224
+ links: []
8225
+ data:
8226
+ requestId: 004223a0-8b17-41b1-bf81-20732adf5590
8227
+ status: COMPLETE
8228
+ results:
8229
+ - phoneNumber: '+10072904497'
8230
+ lineType: MOBILE
8231
+ messagingProvider: Verizon Wireless
8232
+ voiceProvider: Verizon Wireless
8233
+ countryCodeA3: USA
8234
+ rcsEnabled: true
8235
+ - phoneNumber: '+10072904498'
8236
+ lineType: MOBILE
8237
+ messagingProvider: T-Mobile USA
8238
+ voiceProvider: T-Mobile USA
8239
+ countryCodeA3: USA
8240
+ rcsEnabled: false
8241
+ errors: []
8242
+ lookupCompleteWithRcsErrorExample:
8243
+ summary: Numbers Lookup Complete (with RCS error)
8244
+ value:
8245
+ links: []
8246
+ data:
8247
+ requestId: 004223a0-8b17-41b1-bf81-20732adf5590
8248
+ status: COMPLETE
8249
+ results:
8250
+ - phoneNumber: '+10072904497'
8251
+ lineType: MOBILE
8252
+ messagingProvider: Verizon Wireless
8253
+ voiceProvider: Verizon Wireless
8254
+ countryCodeA3: USA
8255
+ - phoneNumber: '+10072904498'
8256
+ lineType: MOBILE
8257
+ messagingProvider: T-Mobile USA
8258
+ voiceProvider: T-Mobile USA
8259
+ countryCodeA3: USA
8260
+ errors:
8261
+ - code: RCS_SERVICE_UNAVAILABLE
8262
+ type: rcs-error
8263
+ description: An exception was thrown during the async RCS service call.
8264
+ meta:
8265
+ phoneNumbers:
8266
+ - '+10072904497'
8267
+ - code: MISSING_FROM_RESPONSE
8268
+ type: rcs-error
8269
+ description: The phone number was absent from the RCS service response.
8270
+ meta:
8271
+ phoneNumbers:
8272
+ - '+10072904498'
8180
8273
  badRequestExample:
8181
8274
  summary: Example Bad Request Error
8182
8275
  value:
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "result": {
3
- "line": 95.78
3
+ "line": 95.77
4
4
  }
5
5
  }
@@ -199,7 +199,6 @@
199
199
  1,
200
200
  1,
201
201
  1,
202
- 1,
203
202
  null,
204
203
  null,
205
204
  1,
@@ -796,13 +795,13 @@
796
795
  null,
797
796
  null,
798
797
  1,
799
- 462,
798
+ 454,
800
799
  null,
801
800
  45,
802
801
  null,
803
802
  8,
804
803
  null,
805
- 277,
804
+ 272,
806
805
  null,
807
806
  21,
808
807
  null,
@@ -829,8 +828,8 @@
829
828
  null,
830
829
  null,
831
830
  null,
832
- 93,
833
- 93,
831
+ 90,
832
+ 90,
834
833
  null,
835
834
  null,
836
835
  null,
@@ -8116,10 +8115,6 @@
8116
8115
  1,
8117
8116
  1,
8118
8117
  1,
8119
- 1,
8120
- 1,
8121
- 1,
8122
- 1,
8123
8118
  null,
8124
8119
  null,
8125
8120
  null,
@@ -8143,10 +8138,6 @@
8143
8138
  1,
8144
8139
  1,
8145
8140
  1,
8146
- 1,
8147
- 1,
8148
- 1,
8149
- 1,
8150
8141
  null,
8151
8142
  null,
8152
8143
  null
@@ -11667,6 +11658,6 @@
11667
11658
  ]
11668
11659
  }
11669
11660
  },
11670
- "timestamp": 1774382238
11661
+ "timestamp": 1775593319
11671
11662
  }
11672
11663
  }