Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ docs/BlockedWebhook.md
docs/BridgeCompleteCallback.md
docs/BridgeTargetCompleteCallback.md
docs/BusinessEntityTypeEnum.md
docs/BusinessRegistrationIssuingCountryEnum.md
docs/BusinessRegistrationTypeEnum.md
docs/CallDirectionEnum.md
docs/CallRecordingMetadata.md
Expand Down Expand Up @@ -214,7 +213,6 @@ models/blocked-webhook.ts
models/bridge-complete-callback.ts
models/bridge-target-complete-callback.ts
models/business-entity-type-enum.ts
models/business-registration-issuing-country-enum.ts
models/business-registration-type-enum.ts
models/call-direction-enum.ts
models/call-recording-metadata.ts
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ Class | Method | HTTP request | Description
- [BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
- [BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
- [BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md)
- [BusinessRegistrationIssuingCountryEnum](docs/BusinessRegistrationIssuingCountryEnum.md)
- [BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md)
- [CallDirectionEnum](docs/CallDirectionEnum.md)
- [CallRecordingMetadata](docs/CallRecordingMetadata.md)
Expand Down
8 changes: 4 additions & 4 deletions api/media-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration
};
},
/**
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
* @summary Upload Media
* @param {string} accountId Your Bandwidth Account ID.
* @param {string} mediaId Media ID to retrieve.
Expand Down Expand Up @@ -280,7 +280,7 @@ export const MediaApiFp = function(configuration?: Configuration) {
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
* @summary Upload Media
* @param {string} accountId Your Bandwidth Account ID.
* @param {string} mediaId Media ID to retrieve.
Expand Down Expand Up @@ -339,7 +339,7 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath
return localVarFp.listMedia(accountId, continuationToken, options).then((request) => request(axios, basePath));
},
/**
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
* @summary Upload Media
* @param {string} accountId Your Bandwidth Account ID.
* @param {string} mediaId Media ID to retrieve.
Expand Down Expand Up @@ -396,7 +396,7 @@ export class MediaApi extends BaseAPI {
}

/**
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
* @summary Upload Media
* @param {string} accountId Your Bandwidth Account ID.
* @param {string} mediaId Media ID to retrieve.
Expand Down
76 changes: 35 additions & 41 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ paths:
under this account, the previous file will be overwritten.


A list of supported media types can be found
[here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
A list of supported media types can be found at [Bandwidth
Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
operationId: uploadMedia
tags:
- Media
Expand Down Expand Up @@ -2255,8 +2255,8 @@ components:

For MMS, the API limits file size to 3.5MB. Specific carriers and
channels may have a smaller limit that could cause a large file to
fail, see
[here](https://support.bandwidth.com/hc/en-us/articles/360014235473-What-are-the-MMS-file-size-limits)
fail, see more at [Bandwidth
Support](https://www.bandwidth.com/support/en/articles/12823216-what-are-the-mms-file-size-limits)
for more details.
example: https://dev.bandwidth.com/images/bandwidth-logo.png
maxLength: 1000
Expand Down Expand Up @@ -5887,17 +5887,21 @@ components:
Government-issued business identifying number.


**Note:** If this field is provided, it is strongly recommended to also
provide `businessRegistrationType` and
`businessRegistrationIssuingCountry`. Submissions missing these fields
have a high likelihood of rejection.
**Note: As of October 19th, 2026 this field will be required when
`businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is
provided, `businessRegistrationType` and
`businessRegistrationIssuingCountry` are also required.**
nullable: true
maxLength: 500
example: 12-3456789
businessRegistrationTypeEnum:
type: string
description: |
description: >
The type of business registration number.


**Note: As of October 19th, 2026 this field will be required when
`businessRegistrationNumber` is provided.**
enum:
- EIN
- CBN
Expand All @@ -5919,20 +5923,16 @@ components:
- OTHER
example: EIN
nullable: true
businessRegistrationIssuingCountryEnum:
businessRegistrationIssuingCountry:
type: string
description: >-
The country issuing the business registration in ISO-3166-1 alpha-3
format. Alpha-2 country codes are acceptable, but the application will
convert them to alpha-3 when received, so alpha-3 is encouraged.
format. Alpha-2 format is accepted by the API, but alpha-3 is highly
encouraged.


**Note:** If this field is omitted but `businessRegistrationType` is
provided, the application will attempt to infer the country based on the
registration type. However, if the application cannot confidently infer
the country, the submission may be rejected. To ensure the highest
likelihood of acceptance, it is recommended to provide both
`businessRegistrationType` and `businessRegistrationIssuingCountry`.
**Note: As of October 19th, 2026 this field will be required when
`businessRegistrationNumber` is provided.**


| Registration Type | Supported Countries |
Expand Down Expand Up @@ -5974,30 +5974,22 @@ components:
| UID | CHE |

| OTHER | Must Provide Country Code |
enum:
- USA
- CAN
- HKG
- GBR
- IRL
- BRA
- NLD
- AUS
- FRA
- NZL
- DEU
- ESP
- CHE
- CYP
- IND
- CHN
- BGR
example: USA
nullable: false
nullable: true
businessEntityTypeEnum:
type: string
description: |
description: >
The type of registered business.


**Note: As of October 19th, 2026 submissions using a value other than
`SOLE_PROPRIETOR` must provide a value for `businessRegistrationNumber`,
`businessRegistrationType`, and `businessRegistrationIssuingCountry`.

Submissions using `SOLE_PROPRIETOR` must _omit_
`businessRegistrationNumber`, `businessRegistrationType`, and
`businessRegistrationIssuingCountry`. Failure to adhere to these
constraints will result in a 400 Bad Request rejection.**
enum:
- SOLE_PROPRIETOR
- PRIVATE_PROFIT
Expand Down Expand Up @@ -6106,7 +6098,7 @@ components:
businessRegistrationType:
$ref: '#/components/schemas/businessRegistrationTypeEnum'
businessRegistrationIssuingCountry:
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
businessEntityType:
$ref: '#/components/schemas/businessEntityTypeEnum'
helpMessageResponse:
Expand Down Expand Up @@ -6161,7 +6153,7 @@ components:
businessEntityType:
$ref: '#/components/schemas/businessEntityTypeEnum'
businessRegistrationIssuingCountry:
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
helpMessageResponse:
$ref: '#/components/schemas/helpMessageResponse'
ageGatedContent:
Expand Down Expand Up @@ -6657,13 +6649,15 @@ components:
description: Government-issued business identifying number.
businessRegistrationType:
$ref: '#/components/schemas/businessRegistrationTypeEnum'
description: The type of business registration number.
businessRegistrationIssuingCountry:
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
description: >-
The country issuing the business registration in ISO-3166-1 alpha-3
format.
businessEntityType:
$ref: '#/components/schemas/businessEntityTypeEnum'
description: The type of registered business.
tfvStatusEnum:
type: string
enum:
Expand Down
2 changes: 1 addition & 1 deletion docs/BusinessEntityTypeEnum.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# BusinessEntityTypeEnum

The type of registered business.
The type of registered business. **Note: As of October 19th, 2026 submissions using a value other than `SOLE_PROPRIETOR` must provide a value for `businessRegistrationNumber`, `businessRegistrationType`, and `businessRegistrationIssuingCountry`. Submissions using `SOLE_PROPRIETOR` must _omit_ `businessRegistrationNumber`, `businessRegistrationType`, and `businessRegistrationIssuingCountry`. Failure to adhere to these constraints will result in a 400 Bad Request rejection.**

## Enum

Expand Down
41 changes: 0 additions & 41 deletions docs/BusinessRegistrationIssuingCountryEnum.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/BusinessRegistrationTypeEnum.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# BusinessRegistrationTypeEnum

The type of business registration number.
The type of business registration number. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.**

## Enum

Expand Down
2 changes: 1 addition & 1 deletion docs/MediaApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const { status, data } = await apiInstance.listMedia(
# **uploadMedia**
> uploadMedia(body)

Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).

### Example

Expand Down
2 changes: 1 addition & 1 deletion docs/MmsMessageContentFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**fileUrl** | **string** | The URL of a media attachment. For MMS, the API limits file size to 3.5MB. Specific carriers and channels may have a smaller limit that could cause a large file to fail, see [here](https://support.bandwidth.com/hc/en-us/articles/360014235473-What-are-the-MMS-file-size-limits) for more details. | [default to undefined]
**fileUrl** | **string** | The URL of a media attachment. For MMS, the API limits file size to 3.5MB. Specific carriers and channels may have a smaller limit that could cause a large file to fail, see more at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823216-what-are-the-mms-file-size-limits) for more details. | [default to undefined]

## Example

Expand Down
4 changes: 2 additions & 2 deletions docs/TfvSubmissionInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Name | Type | Description | Notes
**privacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. | [optional] [default to undefined]
**termsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. | [optional] [default to undefined]
**businessDba** | **string** | The company \'Doing Business As\'. | [optional] [default to undefined]
**businessRegistrationNumber** | **string** | Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. | [optional] [default to undefined]
**businessRegistrationNumber** | **string** | Government-issued business identifying number. **Note: As of October 19th, 2026 this field will be required when `businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is provided, `businessRegistrationType` and `businessRegistrationIssuingCountry` are also required.** | [optional] [default to undefined]
**businessRegistrationType** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] [default to undefined]
**businessRegistrationIssuingCountry** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] [default to undefined]
**businessRegistrationIssuingCountry** | **string** | The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | | [optional] [default to undefined]
**businessEntityType** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] [default to undefined]

## Example
Expand Down
Loading