Skip to content

Commit 55c216f

Browse files
band-swi-release-engineering[bot]DX-Bandwidthckoegel
authored
SWI-10304 Update SDK Based on Recent Spec Changes (#182)
* Generate SDK with OpenAPI Generator Version * update test * fix tests --------- Co-authored-by: DX-Bandwidth <dx@bandwidth.com> Co-authored-by: ckoegel <ckoegel1006@gmail.com>
1 parent 0e5a588 commit 55c216f

14 files changed

Lines changed: 311 additions & 77 deletions

Bandwidth.Standard.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{88B76763-E58F-443D-89F2-D088213D95EF}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{91F6B73E-F556-4AD3-B5B8-29505E8F6758}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{88B76763-E58F-443D-89F2-D088213D95EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{88B76763-E58F-443D-89F2-D088213D95EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{88B76763-E58F-443D-89F2-D088213D95EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{88B76763-E58F-443D-89F2-D088213D95EF}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{91F6B73E-F556-4AD3-B5B8-29505E8F6758}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{91F6B73E-F556-4AD3-B5B8-29505E8F6758}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{91F6B73E-F556-4AD3-B5B8-29505E8F6758}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{91F6B73E-F556-4AD3-B5B8-29505E8F6758}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

api/openapi.yaml

Lines changed: 120 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4645,6 +4645,10 @@ paths:
46454645
$ref: '#/components/examples/lookupCompleteWithDniExample'
46464646
lookupCompleteExample:
46474647
$ref: '#/components/examples/lookupCompleteExample'
4648+
lookupCompleteWithRcsExample:
4649+
$ref: '#/components/examples/lookupCompleteWithRcsExample'
4650+
lookupCompleteWithRcsErrorExample:
4651+
$ref: '#/components/examples/lookupCompleteWithRcsErrorExample'
46484652
lookupPartialExample:
46494653
$ref: '#/components/examples/lookupPartialExample'
46504654
lookupFailedExample:
@@ -4703,8 +4707,8 @@ paths:
47034707
content:
47044708
application/json:
47054709
examples:
4706-
lookupInProgressExample:
4707-
$ref: '#/components/examples/lookupInProgressExample'
4710+
lookupAcceptedExample:
4711+
$ref: '#/components/examples/lookupAcceptedExample'
47084712
schema:
47094713
$ref: '#/components/schemas/createAsyncBulkLookupResponse'
47104714
description: Accepted
@@ -6095,25 +6099,31 @@ components:
60956099
phoneNumbers:
60966100
- "+19196104423"
60976101
- "+19196104424"
6098-
lookupInProgressExample:
6099-
summary: Numbers Lookup In Progress
6102+
lookupAcceptedExample:
6103+
summary: Numbers Lookup Accepted
61006104
value:
61016105
links:
6102-
- href: href
6103-
rel: rel
6106+
- href: /accounts/9912345/phoneNumberLookup/bulk/004223a0-8b17-41b1-bf81-20732adf5590
6107+
rel: createdRequest
61046108
method: GET
61056109
data:
61066110
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
61076111
status: IN_PROGRESS
61086112
results: []
61096113
errors: []
6114+
lookupInProgressExample:
6115+
summary: Numbers Lookup In Progress
6116+
value:
6117+
links: []
6118+
data:
6119+
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
6120+
status: IN_PROGRESS
6121+
results: []
6122+
errors: []
61106123
lookupFailedExample:
61116124
summary: Numbers Lookup Failed
61126125
value:
6113-
links:
6114-
- href: href
6115-
rel: rel
6116-
method: GET
6126+
links: []
61176127
data:
61186128
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
61196129
status: FAILED
@@ -6131,10 +6141,7 @@ components:
61316141
lookupPartialExample:
61326142
summary: Numbers Lookup Partial Complete
61336143
value:
6134-
links:
6135-
- href: href
6136-
rel: rel
6137-
method: GET
6144+
links: []
61386145
data:
61396146
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
61406147
status: PARTIAL_COMPLETE
@@ -6162,10 +6169,7 @@ components:
61626169
lookupCompleteExample:
61636170
summary: Numbers Lookup Complete (without DNI)
61646171
value:
6165-
links:
6166-
- href: href
6167-
rel: rel
6168-
method: GET
6172+
links: []
61696173
data:
61706174
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
61716175
status: COMPLETE
@@ -6184,10 +6188,7 @@ components:
61846188
lookupCompleteWithDniExample:
61856189
summary: Numbers Lookup Complete (with DNI)
61866190
value:
6187-
links:
6188-
- href: href
6189-
rel: rel
6190-
method: GET
6191+
links: []
61916192
data:
61926193
requestId: 20732adf-bf81-8b17-41b1-004223a05590
61936194
status: COMPLETE
@@ -6225,6 +6226,58 @@ components:
62256226
deactivationEvent: DEACTIVATED
62266227
latestMessageDeliveryStatus: NOT_ENABLED
62276228
errors: []
6229+
lookupCompleteWithRcsExample:
6230+
summary: Numbers Lookup Complete (with RCS)
6231+
value:
6232+
links: []
6233+
data:
6234+
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
6235+
status: COMPLETE
6236+
results:
6237+
- phoneNumber: "+10072904497"
6238+
lineType: MOBILE
6239+
messagingProvider: Verizon Wireless
6240+
voiceProvider: Verizon Wireless
6241+
countryCodeA3: USA
6242+
rcsEnabled: true
6243+
- phoneNumber: "+10072904498"
6244+
lineType: MOBILE
6245+
messagingProvider: T-Mobile USA
6246+
voiceProvider: T-Mobile USA
6247+
countryCodeA3: USA
6248+
rcsEnabled: false
6249+
errors: []
6250+
lookupCompleteWithRcsErrorExample:
6251+
summary: Numbers Lookup Complete (with RCS error)
6252+
value:
6253+
links: []
6254+
data:
6255+
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
6256+
status: COMPLETE
6257+
results:
6258+
- phoneNumber: "+10072904497"
6259+
lineType: MOBILE
6260+
messagingProvider: Verizon Wireless
6261+
voiceProvider: Verizon Wireless
6262+
countryCodeA3: USA
6263+
- phoneNumber: "+10072904498"
6264+
lineType: MOBILE
6265+
messagingProvider: T-Mobile USA
6266+
voiceProvider: T-Mobile USA
6267+
countryCodeA3: USA
6268+
errors:
6269+
- code: RCS_SERVICE_UNAVAILABLE
6270+
type: rcs-error
6271+
description: An exception was thrown during the async RCS service call.
6272+
meta:
6273+
phoneNumbers:
6274+
- "+10072904497"
6275+
- code: MISSING_FROM_RESPONSE
6276+
type: rcs-error
6277+
description: The phone number was absent from the RCS service response.
6278+
meta:
6279+
phoneNumbers:
6280+
- "+10072904498"
62286281
badRequestExample:
62296282
summary: Example Bad Request Error
62306283
value:
@@ -7722,6 +7775,10 @@ components:
77227775
$ref: '#/components/examples/lookupCompleteWithDniExample'
77237776
lookupCompleteExample:
77247777
$ref: '#/components/examples/lookupCompleteExample'
7778+
lookupCompleteWithRcsExample:
7779+
$ref: '#/components/examples/lookupCompleteWithRcsExample'
7780+
lookupCompleteWithRcsErrorExample:
7781+
$ref: '#/components/examples/lookupCompleteWithRcsErrorExample'
77257782
lookupPartialExample:
77267783
$ref: '#/components/examples/lookupPartialExample'
77277784
lookupFailedExample:
@@ -7733,8 +7790,8 @@ components:
77337790
content:
77347791
application/json:
77357792
examples:
7736-
lookupInProgressExample:
7737-
$ref: '#/components/examples/lookupInProgressExample'
7793+
lookupAcceptedExample:
7794+
$ref: '#/components/examples/lookupAcceptedExample'
77387795
schema:
77397796
$ref: '#/components/schemas/createAsyncBulkLookupResponse'
77407797
description: Accepted
@@ -13249,6 +13306,10 @@ components:
1324913306
type: string
1325013307
meta:
1325113308
$ref: '#/components/schemas/lookupErrorSchema_meta'
13309+
required:
13310+
- code
13311+
- description
13312+
- type
1325213313
type: object
1325313314
syncLookupRequest:
1325413315
properties:
@@ -13288,6 +13349,7 @@ components:
1328813349
phoneNumber: "+10072904498"
1328913350
countryCodeA3: USA
1329013351
initialMessageDeliveryStatusDate: 2025-06-20
13352+
rcsEnabled: true
1329113353
lineType: MOBILE
1329213354
deactivationReporter: deactivationReporter
1329313355
voiceProvider: Verizon Wireless
@@ -13299,6 +13361,7 @@ components:
1329913361
phoneNumber: "+10072904498"
1330013362
countryCodeA3: USA
1330113363
initialMessageDeliveryStatusDate: 2025-06-20
13364+
rcsEnabled: true
1330213365
lineType: MOBILE
1330313366
deactivationReporter: deactivationReporter
1330413367
voiceProvider: Verizon Wireless
@@ -13393,6 +13456,7 @@ components:
1339313456
phoneNumber: "+10072904498"
1339413457
countryCodeA3: USA
1339513458
initialMessageDeliveryStatusDate: 2025-06-20
13459+
rcsEnabled: true
1339613460
lineType: MOBILE
1339713461
deactivationReporter: deactivationReporter
1339813462
voiceProvider: Verizon Wireless
@@ -13404,6 +13468,7 @@ components:
1340413468
phoneNumber: "+10072904498"
1340513469
countryCodeA3: USA
1340613470
initialMessageDeliveryStatusDate: 2025-06-20
13471+
rcsEnabled: true
1340713472
lineType: MOBILE
1340813473
deactivationReporter: deactivationReporter
1340913474
voiceProvider: Verizon Wireless
@@ -13479,6 +13544,23 @@ components:
1347913544
$ref: '#/components/schemas/lookupErrorSchema'
1348013545
type: array
1348113546
type: object
13547+
rcsErrorEnum:
13548+
description: |-
13549+
[RCS-Only](#section/RCS-Only). Error encountered during RCS capability lookup. Appears as the `code` field in the top-level `errors` array.
13550+
13551+
**RCS service pass-through codes:**
13552+
- `REQUEST_FAILED`: The RCS service returned this error code.
13553+
- `UNKNOWN_CODE`: The RCS service returned this error code.
13554+
- `INVALID_DESTINATION_ADDRESS`: The RCS service returned this error code.
13555+
- `UNKNOWN_STATUS: <code>`: The RCS service returned an unrecognized status code, where `<code>` is the raw value.
13556+
13557+
**Service-level errors:**
13558+
- `MISSING_FROM_RESPONSE`: The phone number was absent from the RCS service response.
13559+
- `RCS_SERVICE_UNAVAILABLE`: An exception was thrown during the async RCS service call.
13560+
- `RCS_SERVICE_DISABLED`: RCS lookup is disabled in configuration.
13561+
- `EMPTY_RESPONSE`: The RCS service returned a null or empty response body.
13562+
example: RCS_SERVICE_UNAVAILABLE
13563+
type: string
1348213564
lookupResult:
1348313565
description: Carrier information results for the specified telephone number.
1348413566
example:
@@ -13489,6 +13571,7 @@ components:
1348913571
phoneNumber: "+10072904498"
1349013572
countryCodeA3: USA
1349113573
initialMessageDeliveryStatusDate: 2025-06-20
13574+
rcsEnabled: true
1349213575
lineType: MOBILE
1349313576
deactivationReporter: deactivationReporter
1349413577
voiceProvider: Verizon Wireless
@@ -13537,13 +13620,18 @@ components:
1353713620
format: date
1353813621
type: string
1353913622
latestMessageDeliveryStatusDate:
13540-
description: "[DNI-Only](#section/DNI-Only). The date bandwidth last received\
13541-
\ delivery status information for this phone number. \nUse this field\
13542-
\ to understand how up-to-date the `latestMessageDeliveryStatus` is.\n\
13543-
Value resets every time the `latestMessageDeliveryStatus` changes."
13623+
description: |-
13624+
[DNI-Only](#section/DNI-Only). The date bandwidth last received delivery status information for this phone number.
13625+
Use this field to understand how up-to-date the `latestMessageDeliveryStatus` is.
13626+
Value resets every time the `latestMessageDeliveryStatus` changes.
1354413627
example: 2025-06-21
1354513628
format: date
1354613629
type: string
13630+
rcsEnabled:
13631+
description: |
13632+
[RCS-Only](#section/RCS-Only). Indicates whether the phone number is capable of receiving RCS messages. Value will be null if account has RCS, but no value was returned. Absent when account does not have RCS.
13633+
example: true
13634+
type: boolean
1354713635
type: object
1354813636
accountId1:
1354913637
description: User's account ID.
@@ -14885,6 +14973,7 @@ components:
1488514973
phoneNumber: "+10072904498"
1488614974
countryCodeA3: USA
1488714975
initialMessageDeliveryStatusDate: 2025-06-20
14976+
rcsEnabled: true
1488814977
lineType: MOBILE
1488914978
deactivationReporter: deactivationReporter
1489014979
voiceProvider: Verizon Wireless
@@ -14896,6 +14985,7 @@ components:
1489614985
phoneNumber: "+10072904498"
1489714986
countryCodeA3: USA
1489814987
initialMessageDeliveryStatusDate: 2025-06-20
14988+
rcsEnabled: true
1489914989
lineType: MOBILE
1490014990
deactivationReporter: deactivationReporter
1490114991
voiceProvider: Verizon Wireless
@@ -14942,6 +15032,7 @@ components:
1494215032
phoneNumber: "+10072904498"
1494315033
countryCodeA3: USA
1494415034
initialMessageDeliveryStatusDate: 2025-06-20
15035+
rcsEnabled: true
1494515036
lineType: MOBILE
1494615037
deactivationReporter: deactivationReporter
1494715038
voiceProvider: Verizon Wireless
@@ -14953,6 +15044,7 @@ components:
1495315044
phoneNumber: "+10072904498"
1495415045
countryCodeA3: USA
1495515046
initialMessageDeliveryStatusDate: 2025-06-20
15047+
rcsEnabled: true
1495615048
lineType: MOBILE
1495715049
deactivationReporter: deactivationReporter
1495815050
voiceProvider: Verizon Wireless

0 commit comments

Comments
 (0)