Skip to content

Commit 97be60e

Browse files
authored
Merge branch 'main' into brtc-python-sdk
2 parents 73d0797 + 27c6a57 commit 97be60e

23 files changed

Lines changed: 76 additions & 224 deletions

.openapi-generator/FILES

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ bandwidth/models/blocked_webhook.py
2929
bandwidth/models/bridge_complete_callback.py
3030
bandwidth/models/bridge_target_complete_callback.py
3131
bandwidth/models/business_entity_type_enum.py
32-
bandwidth/models/business_registration_issuing_country_enum.py
3332
bandwidth/models/business_registration_type_enum.py
3433
bandwidth/models/call_direction_enum.py
3534
bandwidth/models/call_recording_metadata.py
@@ -227,7 +226,6 @@ docs/BlockedWebhook.md
227226
docs/BridgeCompleteCallback.md
228227
docs/BridgeTargetCompleteCallback.md
229228
docs/BusinessEntityTypeEnum.md
230-
docs/BusinessRegistrationIssuingCountryEnum.md
231229
docs/BusinessRegistrationTypeEnum.md
232230
docs/CallDirectionEnum.md
233231
docs/CallRecordingMetadata.md

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ Class | Method | HTTP request | Description
171171
- [BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
172172
- [BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
173173
- [BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md)
174-
- [BusinessRegistrationIssuingCountryEnum](docs/BusinessRegistrationIssuingCountryEnum.md)
175174
- [BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md)
176175
- [CallDirectionEnum](docs/CallDirectionEnum.md)
177176
- [CallRecordingMetadata](docs/CallRecordingMetadata.md)

bandwidth.yml

Lines changed: 35 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ paths:
9696
under this account, the previous file will be overwritten.
9797
9898
99-
A list of supported media types can be found
100-
[here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
99+
A list of supported media types can be found at [Bandwidth
100+
Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
101101
operationId: uploadMedia
102102
tags:
103103
- Media
@@ -2430,8 +2430,8 @@ components:
24302430
24312431
For MMS, the API limits file size to 3.5MB. Specific carriers and
24322432
channels may have a smaller limit that could cause a large file to
2433-
fail, see
2434-
[here](https://support.bandwidth.com/hc/en-us/articles/360014235473-What-are-the-MMS-file-size-limits)
2433+
fail, see more at [Bandwidth
2434+
Support](https://www.bandwidth.com/support/en/articles/12823216-what-are-the-mms-file-size-limits)
24352435
for more details.
24362436
example: https://dev.bandwidth.com/images/bandwidth-logo.png
24372437
maxLength: 1000
@@ -6062,17 +6062,21 @@ components:
60626062
Government-issued business identifying number.
60636063
60646064
6065-
**Note:** If this field is provided, it is strongly recommended to also
6066-
provide `businessRegistrationType` and
6067-
`businessRegistrationIssuingCountry`. Submissions missing these fields
6068-
have a high likelihood of rejection.
6065+
**Note: As of October 19th, 2026 this field will be required when
6066+
`businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is
6067+
provided, `businessRegistrationType` and
6068+
`businessRegistrationIssuingCountry` are also required.**
60696069
nullable: true
60706070
maxLength: 500
60716071
example: 12-3456789
60726072
businessRegistrationTypeEnum:
60736073
type: string
6074-
description: |
6074+
description: >
60756075
The type of business registration number.
6076+
6077+
6078+
**Note: As of October 19th, 2026 this field will be required when
6079+
`businessRegistrationNumber` is provided.**
60766080
enum:
60776081
- EIN
60786082
- CBN
@@ -6094,20 +6098,16 @@ components:
60946098
- OTHER
60956099
example: EIN
60966100
nullable: true
6097-
businessRegistrationIssuingCountryEnum:
6101+
businessRegistrationIssuingCountry:
60986102
type: string
60996103
description: >-
61006104
The country issuing the business registration in ISO-3166-1 alpha-3
6101-
format. Alpha-2 country codes are acceptable, but the application will
6102-
convert them to alpha-3 when received, so alpha-3 is encouraged.
6105+
format. Alpha-2 format is accepted by the API, but alpha-3 is highly
6106+
encouraged.
61036107
61046108
6105-
**Note:** If this field is omitted but `businessRegistrationType` is
6106-
provided, the application will attempt to infer the country based on the
6107-
registration type. However, if the application cannot confidently infer
6108-
the country, the submission may be rejected. To ensure the highest
6109-
likelihood of acceptance, it is recommended to provide both
6110-
`businessRegistrationType` and `businessRegistrationIssuingCountry`.
6109+
**Note: As of October 19th, 2026 this field will be required when
6110+
`businessRegistrationNumber` is provided.**
61116111
61126112
61136113
| Registration Type | Supported Countries |
@@ -6149,30 +6149,22 @@ components:
61496149
| UID | CHE |
61506150
61516151
| OTHER | Must Provide Country Code |
6152-
enum:
6153-
- USA
6154-
- CAN
6155-
- HKG
6156-
- GBR
6157-
- IRL
6158-
- BRA
6159-
- NLD
6160-
- AUS
6161-
- FRA
6162-
- NZL
6163-
- DEU
6164-
- ESP
6165-
- CHE
6166-
- CYP
6167-
- IND
6168-
- CHN
6169-
- BGR
61706152
example: USA
6171-
nullable: false
6153+
nullable: true
61726154
businessEntityTypeEnum:
61736155
type: string
6174-
description: |
6156+
description: >
61756157
The type of registered business.
6158+
6159+
6160+
**Note: As of October 19th, 2026 submissions using a value other than
6161+
`SOLE_PROPRIETOR` must provide a value for `businessRegistrationNumber`,
6162+
`businessRegistrationType`, and `businessRegistrationIssuingCountry`.
6163+
6164+
Submissions using `SOLE_PROPRIETOR` must _omit_
6165+
`businessRegistrationNumber`, `businessRegistrationType`, and
6166+
`businessRegistrationIssuingCountry`. Failure to adhere to these
6167+
constraints will result in a 400 Bad Request rejection.**
61766168
enum:
61776169
- SOLE_PROPRIETOR
61786170
- PRIVATE_PROFIT
@@ -6281,7 +6273,7 @@ components:
62816273
businessRegistrationType:
62826274
$ref: '#/components/schemas/businessRegistrationTypeEnum'
62836275
businessRegistrationIssuingCountry:
6284-
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6276+
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
62856277
businessEntityType:
62866278
$ref: '#/components/schemas/businessEntityTypeEnum'
62876279
helpMessageResponse:
@@ -6336,7 +6328,7 @@ components:
63366328
businessEntityType:
63376329
$ref: '#/components/schemas/businessEntityTypeEnum'
63386330
businessRegistrationIssuingCountry:
6339-
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6331+
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
63406332
helpMessageResponse:
63416333
$ref: '#/components/schemas/helpMessageResponse'
63426334
ageGatedContent:
@@ -6832,13 +6824,15 @@ components:
68326824
description: Government-issued business identifying number.
68336825
businessRegistrationType:
68346826
$ref: '#/components/schemas/businessRegistrationTypeEnum'
6827+
description: The type of business registration number.
68356828
businessRegistrationIssuingCountry:
6836-
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6829+
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
68376830
description: >-
68386831
The country issuing the business registration in ISO-3166-1 alpha-3
68396832
format.
68406833
businessEntityType:
68416834
$ref: '#/components/schemas/businessEntityTypeEnum'
6835+
description: The type of registered business.
68426836
tfvStatusEnum:
68436837
type: string
68446838
enum:

bandwidth/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"BridgeCompleteCallback",
5050
"BridgeTargetCompleteCallback",
5151
"BusinessEntityTypeEnum",
52-
"BusinessRegistrationIssuingCountryEnum",
5352
"BusinessRegistrationTypeEnum",
5453
"CallDirectionEnum",
5554
"CallRecordingMetadata",
@@ -273,7 +272,6 @@
273272
from bandwidth.models.bridge_complete_callback import BridgeCompleteCallback as BridgeCompleteCallback
274273
from bandwidth.models.bridge_target_complete_callback import BridgeTargetCompleteCallback as BridgeTargetCompleteCallback
275274
from bandwidth.models.business_entity_type_enum import BusinessEntityTypeEnum as BusinessEntityTypeEnum
276-
from bandwidth.models.business_registration_issuing_country_enum import BusinessRegistrationIssuingCountryEnum as BusinessRegistrationIssuingCountryEnum
277275
from bandwidth.models.business_registration_type_enum import BusinessRegistrationTypeEnum as BusinessRegistrationTypeEnum
278276
from bandwidth.models.call_direction_enum import CallDirectionEnum as CallDirectionEnum
279277
from bandwidth.models.call_recording_metadata import CallRecordingMetadata as CallRecordingMetadata

bandwidth/api/media_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ def upload_media(
976976
) -> None:
977977
"""Upload Media
978978
979-
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-).
979+
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).
980980
981981
:param account_id: Your Bandwidth Account ID. (required)
982982
:type account_id: str
@@ -1067,7 +1067,7 @@ def upload_media_with_http_info(
10671067
) -> ApiResponse[None]:
10681068
"""Upload Media
10691069
1070-
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-).
1070+
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).
10711071
10721072
:param account_id: Your Bandwidth Account ID. (required)
10731073
:type account_id: str
@@ -1158,7 +1158,7 @@ def upload_media_without_preload_content(
11581158
) -> RESTResponseType:
11591159
"""Upload Media
11601160
1161-
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-).
1161+
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).
11621162
11631163
:param account_id: Your Bandwidth Account ID. (required)
11641164
:type account_id: str

bandwidth/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from bandwidth.models.bridge_complete_callback import BridgeCompleteCallback
2424
from bandwidth.models.bridge_target_complete_callback import BridgeTargetCompleteCallback
2525
from bandwidth.models.business_entity_type_enum import BusinessEntityTypeEnum
26-
from bandwidth.models.business_registration_issuing_country_enum import BusinessRegistrationIssuingCountryEnum
2726
from bandwidth.models.business_registration_type_enum import BusinessRegistrationTypeEnum
2827
from bandwidth.models.call_direction_enum import CallDirectionEnum
2928
from bandwidth.models.call_recording_metadata import CallRecordingMetadata

bandwidth/models/business_entity_type_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
class BusinessEntityTypeEnum(str, Enum):
2323
"""
24-
The type of registered business.
24+
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.**
2525
"""
2626

2727
"""

bandwidth/models/business_registration_issuing_country_enum.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

bandwidth/models/business_registration_type_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
class BusinessRegistrationTypeEnum(str, Enum):
2323
"""
24-
The type of business registration number.
24+
The type of business registration number. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.**
2525
"""
2626

2727
"""

bandwidth/models/mms_message_content_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class MmsMessageContentFile(BaseModel):
2828
"""
2929
MmsMessageContentFile
3030
""" # noqa: E501
31-
file_url: Annotated[str, Field(strict=True, max_length=1000)] = Field(description="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.", alias="fileUrl")
31+
file_url: Annotated[str, Field(strict=True, max_length=1000)] = Field(description="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.", alias="fileUrl")
3232
additional_properties: Dict[str, Any] = {}
3333
__properties: ClassVar[List[str]] = ["fileUrl"]
3434

0 commit comments

Comments
 (0)