From 67ec20755412cbe3319b70b983a25f68e35ecdea Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 12 May 2026 15:00:20 +0000 Subject: [PATCH 1/2] Generate SDK with OpenAPI Generator Version --- bandwidth.yml | 22 ++++++++++++++++++++++ docs/SyncLookupRequest.md | 2 ++ models/sync-lookup-request.ts | 4 ++++ 3 files changed, 28 insertions(+) diff --git a/bandwidth.yml b/bandwidth.yml index 5b874ee..84e00b3 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -5759,6 +5759,19 @@ components: items: type: string pattern: ^\+[1-9]\d{1,14}$ + rcsAgent: + type: string + description: >- + Override the default RCS sender/agent ID used when checking RCS + capabilities. + + When provided, this value is used as the `sender` in the RCS + capability-check request instead of the account default. + + Must be 1–40 characters and contain only letters, digits, + underscores, or hyphens. + pattern: ^[A-Za-z0-9_-]{1,40}$ + example: MyCustomRcsAgent required: - phoneNumbers asyncLookupRequest: @@ -8758,6 +8771,13 @@ components: phoneNumbers: - '+19196104423' - '+19196104424' + rcsAgentRequestExample: + summary: Number Lookup Request with Custom RCS Agent + value: + phoneNumbers: + - '+19196104423' + - '+19196104424' + rcsAgent: MyCustomRcsAgent lookupAcceptedExample: summary: Numbers Lookup Accepted value: @@ -9518,6 +9538,8 @@ components: $ref: '#/components/examples/singleNumberRequestExample' multipleNumberRequestExample: $ref: '#/components/examples/multipleNumberRequestExample' + rcsAgentRequestExample: + $ref: '#/components/examples/rcsAgentRequestExample' createAsyncBulkLookupRequest: description: Asynchronous bulk phone number lookup request. required: true diff --git a/docs/SyncLookupRequest.md b/docs/SyncLookupRequest.md index 3619676..2d2300c 100644 --- a/docs/SyncLookupRequest.md +++ b/docs/SyncLookupRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **phoneNumbers** | **Array<string>** | Telephone numbers in E.164 format. | [default to undefined] +**rcsAgent** | **string** | Override the default RCS sender/agent ID used when checking RCS capabilities. When provided, this value is used as the `sender` in the RCS capability-check request instead of the account default. Must be 1–40 characters and contain only letters, digits, underscores, or hyphens. | [optional] [default to undefined] ## Example @@ -14,6 +15,7 @@ import { SyncLookupRequest } from 'bandwidth-sdk'; const instance: SyncLookupRequest = { phoneNumbers, + rcsAgent, }; ``` diff --git a/models/sync-lookup-request.ts b/models/sync-lookup-request.ts index 7f2e6e6..1891f56 100644 --- a/models/sync-lookup-request.ts +++ b/models/sync-lookup-request.ts @@ -19,5 +19,9 @@ export interface SyncLookupRequest { * Telephone numbers in E.164 format. */ 'phoneNumbers': Array; + /** + * Override the default RCS sender/agent ID used when checking RCS capabilities. When provided, this value is used as the `sender` in the RCS capability-check request instead of the account default. Must be 1–40 characters and contain only letters, digits, underscores, or hyphens. + */ + 'rcsAgent'?: string; } From 5eadf0b55095eb6267f47f5b5f0e898f9a41ae79 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 12 May 2026 14:22:15 -0400 Subject: [PATCH 2/2] unit test --- tests/unit/api/phone-number-lookup-api.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/api/phone-number-lookup-api.test.ts b/tests/unit/api/phone-number-lookup-api.test.ts index 75729fc..333e75a 100644 --- a/tests/unit/api/phone-number-lookup-api.test.ts +++ b/tests/unit/api/phone-number-lookup-api.test.ts @@ -40,7 +40,10 @@ describe('PhoneNumberLookupApi', () => { describe('createSyncLookup', () => { test('should create a sync lookup', async () => { - const request: SyncLookupRequest = { phoneNumbers }; + const request: SyncLookupRequest = { + phoneNumbers, + rcsAgent: 'TestAgent' + }; const { status, data } = await phoneNumberLookupApi.createSyncLookup(BW_ACCOUNT_ID, request);