Skip to content

Commit 21ba91e

Browse files
authored
Merge branch 'main' into brtc-java-sdk
2 parents b754ed1 + 152fa1a commit 21ba91e

9 files changed

Lines changed: 303 additions & 78 deletions

File tree

api/openapi.yaml

Lines changed: 116 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4741,6 +4741,10 @@ paths:
47414741
$ref: "#/components/examples/lookupCompleteWithDniExample"
47424742
lookupCompleteExample:
47434743
$ref: "#/components/examples/lookupCompleteExample"
4744+
lookupCompleteWithRcsExample:
4745+
$ref: "#/components/examples/lookupCompleteWithRcsExample"
4746+
lookupCompleteWithRcsErrorExample:
4747+
$ref: "#/components/examples/lookupCompleteWithRcsErrorExample"
47444748
lookupPartialExample:
47454749
$ref: "#/components/examples/lookupPartialExample"
47464750
lookupFailedExample:
@@ -4802,8 +4806,8 @@ paths:
48024806
content:
48034807
application/json:
48044808
examples:
4805-
lookupInProgressExample:
4806-
$ref: "#/components/examples/lookupInProgressExample"
4809+
lookupAcceptedExample:
4810+
$ref: "#/components/examples/lookupAcceptedExample"
48074811
schema:
48084812
$ref: "#/components/schemas/createAsyncBulkLookupResponse"
48094813
description: Accepted
@@ -6821,25 +6825,31 @@ components:
68216825
phoneNumbers:
68226826
- "+19196104423"
68236827
- "+19196104424"
6824-
lookupInProgressExample:
6825-
summary: Numbers Lookup In Progress
6828+
lookupAcceptedExample:
6829+
summary: Numbers Lookup Accepted
68266830
value:
68276831
links:
6828-
- href: href
6829-
rel: rel
6832+
- href: /accounts/9912345/phoneNumberLookup/bulk/004223a0-8b17-41b1-bf81-20732adf5590
6833+
rel: createdRequest
68306834
method: GET
68316835
data:
68326836
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
68336837
status: IN_PROGRESS
68346838
results: []
68356839
errors: []
6840+
lookupInProgressExample:
6841+
summary: Numbers Lookup In Progress
6842+
value:
6843+
links: []
6844+
data:
6845+
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
6846+
status: IN_PROGRESS
6847+
results: []
6848+
errors: []
68366849
lookupFailedExample:
68376850
summary: Numbers Lookup Failed
68386851
value:
6839-
links:
6840-
- href: href
6841-
rel: rel
6842-
method: GET
6852+
links: []
68436853
data:
68446854
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
68456855
status: FAILED
@@ -6857,10 +6867,7 @@ components:
68576867
lookupPartialExample:
68586868
summary: Numbers Lookup Partial Complete
68596869
value:
6860-
links:
6861-
- href: href
6862-
rel: rel
6863-
method: GET
6870+
links: []
68646871
data:
68656872
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
68666873
status: PARTIAL_COMPLETE
@@ -6888,10 +6895,7 @@ components:
68886895
lookupCompleteExample:
68896896
summary: Numbers Lookup Complete (without DNI)
68906897
value:
6891-
links:
6892-
- href: href
6893-
rel: rel
6894-
method: GET
6898+
links: []
68956899
data:
68966900
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
68976901
status: COMPLETE
@@ -6910,10 +6914,7 @@ components:
69106914
lookupCompleteWithDniExample:
69116915
summary: Numbers Lookup Complete (with DNI)
69126916
value:
6913-
links:
6914-
- href: href
6915-
rel: rel
6916-
method: GET
6917+
links: []
69176918
data:
69186919
requestId: 20732adf-bf81-8b17-41b1-004223a05590
69196920
status: COMPLETE
@@ -6951,6 +6952,58 @@ components:
69516952
deactivationEvent: DEACTIVATED
69526953
latestMessageDeliveryStatus: NOT_ENABLED
69536954
errors: []
6955+
lookupCompleteWithRcsExample:
6956+
summary: Numbers Lookup Complete (with RCS)
6957+
value:
6958+
links: []
6959+
data:
6960+
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
6961+
status: COMPLETE
6962+
results:
6963+
- phoneNumber: "+10072904497"
6964+
lineType: MOBILE
6965+
messagingProvider: Verizon Wireless
6966+
voiceProvider: Verizon Wireless
6967+
countryCodeA3: USA
6968+
rcsEnabled: true
6969+
- phoneNumber: "+10072904498"
6970+
lineType: MOBILE
6971+
messagingProvider: T-Mobile USA
6972+
voiceProvider: T-Mobile USA
6973+
countryCodeA3: USA
6974+
rcsEnabled: false
6975+
errors: []
6976+
lookupCompleteWithRcsErrorExample:
6977+
summary: Numbers Lookup Complete (with RCS error)
6978+
value:
6979+
links: []
6980+
data:
6981+
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
6982+
status: COMPLETE
6983+
results:
6984+
- phoneNumber: "+10072904497"
6985+
lineType: MOBILE
6986+
messagingProvider: Verizon Wireless
6987+
voiceProvider: Verizon Wireless
6988+
countryCodeA3: USA
6989+
- phoneNumber: "+10072904498"
6990+
lineType: MOBILE
6991+
messagingProvider: T-Mobile USA
6992+
voiceProvider: T-Mobile USA
6993+
countryCodeA3: USA
6994+
errors:
6995+
- code: RCS_SERVICE_UNAVAILABLE
6996+
type: rcs-error
6997+
description: An exception was thrown during the async RCS service call.
6998+
meta:
6999+
phoneNumbers:
7000+
- "+10072904497"
7001+
- code: MISSING_FROM_RESPONSE
7002+
type: rcs-error
7003+
description: The phone number was absent from the RCS service response.
7004+
meta:
7005+
phoneNumbers:
7006+
- "+10072904498"
69547007
badRequestExample:
69557008
summary: Example Bad Request Error
69567009
value:
@@ -8715,6 +8768,10 @@ components:
87158768
$ref: "#/components/examples/lookupCompleteWithDniExample"
87168769
lookupCompleteExample:
87178770
$ref: "#/components/examples/lookupCompleteExample"
8771+
lookupCompleteWithRcsExample:
8772+
$ref: "#/components/examples/lookupCompleteWithRcsExample"
8773+
lookupCompleteWithRcsErrorExample:
8774+
$ref: "#/components/examples/lookupCompleteWithRcsErrorExample"
87188775
lookupPartialExample:
87198776
$ref: "#/components/examples/lookupPartialExample"
87208777
lookupFailedExample:
@@ -8726,8 +8783,8 @@ components:
87268783
content:
87278784
application/json:
87288785
examples:
8729-
lookupInProgressExample:
8730-
$ref: "#/components/examples/lookupInProgressExample"
8786+
lookupAcceptedExample:
8787+
$ref: "#/components/examples/lookupAcceptedExample"
87318788
schema:
87328789
$ref: "#/components/schemas/createAsyncBulkLookupResponse"
87338790
description: Accepted
@@ -14340,6 +14397,10 @@ components:
1434014397
type: string
1434114398
meta:
1434214399
$ref: "#/components/schemas/lookupErrorSchema_meta"
14400+
required:
14401+
- code
14402+
- description
14403+
- type
1434314404
type: object
1434414405
syncLookupRequest:
1434514406
properties:
@@ -14379,6 +14440,7 @@ components:
1437914440
phoneNumber: "+10072904498"
1438014441
countryCodeA3: USA
1438114442
initialMessageDeliveryStatusDate: 2025-06-20
14443+
rcsEnabled: true
1438214444
lineType: MOBILE
1438314445
deactivationReporter: deactivationReporter
1438414446
voiceProvider: Verizon Wireless
@@ -14390,6 +14452,7 @@ components:
1439014452
phoneNumber: "+10072904498"
1439114453
countryCodeA3: USA
1439214454
initialMessageDeliveryStatusDate: 2025-06-20
14455+
rcsEnabled: true
1439314456
lineType: MOBILE
1439414457
deactivationReporter: deactivationReporter
1439514458
voiceProvider: Verizon Wireless
@@ -14484,6 +14547,7 @@ components:
1448414547
phoneNumber: "+10072904498"
1448514548
countryCodeA3: USA
1448614549
initialMessageDeliveryStatusDate: 2025-06-20
14550+
rcsEnabled: true
1448714551
lineType: MOBILE
1448814552
deactivationReporter: deactivationReporter
1448914553
voiceProvider: Verizon Wireless
@@ -14495,6 +14559,7 @@ components:
1449514559
phoneNumber: "+10072904498"
1449614560
countryCodeA3: USA
1449714561
initialMessageDeliveryStatusDate: 2025-06-20
14562+
rcsEnabled: true
1449814563
lineType: MOBILE
1449914564
deactivationReporter: deactivationReporter
1450014565
voiceProvider: Verizon Wireless
@@ -14570,6 +14635,23 @@ components:
1457014635
$ref: "#/components/schemas/lookupErrorSchema"
1457114636
type: array
1457214637
type: object
14638+
rcsErrorEnum:
14639+
description: |-
14640+
[RCS-Only](#section/RCS-Only). Error encountered during RCS capability lookup. Appears as the `code` field in the top-level `errors` array.
14641+
14642+
**RCS service pass-through codes:**
14643+
- `REQUEST_FAILED`: The RCS service returned this error code.
14644+
- `UNKNOWN_CODE`: The RCS service returned this error code.
14645+
- `INVALID_DESTINATION_ADDRESS`: The RCS service returned this error code.
14646+
- `UNKNOWN_STATUS: <code>`: The RCS service returned an unrecognized status code, where `<code>` is the raw value.
14647+
14648+
**Service-level errors:**
14649+
- `MISSING_FROM_RESPONSE`: The phone number was absent from the RCS service response.
14650+
- `RCS_SERVICE_UNAVAILABLE`: An exception was thrown during the async RCS service call.
14651+
- `RCS_SERVICE_DISABLED`: RCS lookup is disabled in configuration.
14652+
- `EMPTY_RESPONSE`: The RCS service returned a null or empty response body.
14653+
example: RCS_SERVICE_UNAVAILABLE
14654+
type: string
1457314655
lookupResult:
1457414656
description: Carrier information results for the specified telephone number.
1457514657
example:
@@ -14580,6 +14662,7 @@ components:
1458014662
phoneNumber: "+10072904498"
1458114663
countryCodeA3: USA
1458214664
initialMessageDeliveryStatusDate: 2025-06-20
14665+
rcsEnabled: true
1458314666
lineType: MOBILE
1458414667
deactivationReporter: deactivationReporter
1458514668
voiceProvider: Verizon Wireless
@@ -14635,6 +14718,11 @@ components:
1463514718
example: 2025-06-21
1463614719
format: date
1463714720
type: string
14721+
rcsEnabled:
14722+
description: |
14723+
[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.
14724+
example: true
14725+
type: boolean
1463814726
type: object
1463914727
accountId1:
1464014728
description: User's account ID.
@@ -16444,6 +16532,7 @@ components:
1644416532
phoneNumber: "+10072904498"
1644516533
countryCodeA3: USA
1644616534
initialMessageDeliveryStatusDate: 2025-06-20
16535+
rcsEnabled: true
1644716536
lineType: MOBILE
1644816537
deactivationReporter: deactivationReporter
1644916538
voiceProvider: Verizon Wireless
@@ -16455,6 +16544,7 @@ components:
1645516544
phoneNumber: "+10072904498"
1645616545
countryCodeA3: USA
1645716546
initialMessageDeliveryStatusDate: 2025-06-20
16547+
rcsEnabled: true
1645816548
lineType: MOBILE
1645916549
deactivationReporter: deactivationReporter
1646016550
voiceProvider: Verizon Wireless
@@ -16501,6 +16591,7 @@ components:
1650116591
phoneNumber: "+10072904498"
1650216592
countryCodeA3: USA
1650316593
initialMessageDeliveryStatusDate: 2025-06-20
16594+
rcsEnabled: true
1650416595
lineType: MOBILE
1650516596
deactivationReporter: deactivationReporter
1650616597
voiceProvider: Verizon Wireless
@@ -16512,6 +16603,7 @@ components:
1651216603
phoneNumber: "+10072904498"
1651316604
countryCodeA3: USA
1651416605
initialMessageDeliveryStatusDate: 2025-06-20
16606+
rcsEnabled: true
1651516607
lineType: MOBILE
1651616608
deactivationReporter: deactivationReporter
1651716609
voiceProvider: Verizon Wireless

0 commit comments

Comments
 (0)