Skip to content
Closed
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
8 changes: 4 additions & 4 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ bandwidth/models/links_object.py
bandwidth/models/list_endpoints_response.py
bandwidth/models/list_message_direction_enum.py
bandwidth/models/list_message_item.py
bandwidth/models/location_response.py
bandwidth/models/lookup_error_response.py
bandwidth/models/lookup_error_schema.py
bandwidth/models/lookup_error_schema_meta.py
Expand Down Expand Up @@ -158,7 +159,6 @@ bandwidth/models/rbm_action_type_enum.py
bandwidth/models/rbm_action_view_location.py
bandwidth/models/rbm_card_content.py
bandwidth/models/rbm_card_content_media.py
bandwidth/models/rbm_location_response.py
bandwidth/models/rbm_media_height_enum.py
bandwidth/models/rbm_message_carousel_card.py
bandwidth/models/rbm_message_content_file.py
Expand All @@ -167,7 +167,6 @@ bandwidth/models/rbm_message_content_text.py
bandwidth/models/rbm_message_media.py
bandwidth/models/rbm_open_url_enum.py
bandwidth/models/rbm_standalone_card.py
bandwidth/models/rbm_suggestion_response.py
bandwidth/models/rbm_web_view_enum.py
bandwidth/models/recording_available_callback.py
bandwidth/models/recording_complete_callback.py
Expand All @@ -184,6 +183,7 @@ bandwidth/models/status_callback.py
bandwidth/models/status_callback_message.py
bandwidth/models/status_callback_type_enum.py
bandwidth/models/stir_shaken.py
bandwidth/models/suggestion_response.py
bandwidth/models/sync_lookup_request.py
bandwidth/models/telephone_number.py
bandwidth/models/tfv_basic_authentication.py
Expand Down Expand Up @@ -309,6 +309,7 @@ docs/LinksObject.md
docs/ListEndpointsResponse.md
docs/ListMessageDirectionEnum.md
docs/ListMessageItem.md
docs/LocationResponse.md
docs/LookupErrorResponse.md
docs/LookupErrorSchema.md
docs/LookupErrorSchemaMeta.md
Expand Down Expand Up @@ -366,7 +367,6 @@ docs/RbmActionTypeEnum.md
docs/RbmActionViewLocation.md
docs/RbmCardContent.md
docs/RbmCardContentMedia.md
docs/RbmLocationResponse.md
docs/RbmMediaHeightEnum.md
docs/RbmMessageCarouselCard.md
docs/RbmMessageContentFile.md
Expand All @@ -375,7 +375,6 @@ docs/RbmMessageContentText.md
docs/RbmMessageMedia.md
docs/RbmOpenUrlEnum.md
docs/RbmStandaloneCard.md
docs/RbmSuggestionResponse.md
docs/RbmWebViewEnum.md
docs/RecordingAvailableCallback.md
docs/RecordingCompleteCallback.md
Expand All @@ -394,6 +393,7 @@ docs/StatusCallback.md
docs/StatusCallbackMessage.md
docs/StatusCallbackTypeEnum.md
docs/StirShaken.md
docs/SuggestionResponse.md
docs/SyncLookupRequest.md
docs/TelephoneNumber.md
docs/TfvBasicAuthentication.md
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ Class | Method | HTTP request | Description
- [ListEndpointsResponse](docs/ListEndpointsResponse.md)
- [ListMessageDirectionEnum](docs/ListMessageDirectionEnum.md)
- [ListMessageItem](docs/ListMessageItem.md)
- [LocationResponse](docs/LocationResponse.md)
- [LookupErrorResponse](docs/LookupErrorResponse.md)
- [LookupErrorSchema](docs/LookupErrorSchema.md)
- [LookupErrorSchemaMeta](docs/LookupErrorSchemaMeta.md)
Expand Down Expand Up @@ -300,7 +301,6 @@ Class | Method | HTTP request | Description
- [RbmActionViewLocation](docs/RbmActionViewLocation.md)
- [RbmCardContent](docs/RbmCardContent.md)
- [RbmCardContentMedia](docs/RbmCardContentMedia.md)
- [RbmLocationResponse](docs/RbmLocationResponse.md)
- [RbmMediaHeightEnum](docs/RbmMediaHeightEnum.md)
- [RbmMessageCarouselCard](docs/RbmMessageCarouselCard.md)
- [RbmMessageContentFile](docs/RbmMessageContentFile.md)
Expand All @@ -309,7 +309,6 @@ Class | Method | HTTP request | Description
- [RbmMessageMedia](docs/RbmMessageMedia.md)
- [RbmOpenUrlEnum](docs/RbmOpenUrlEnum.md)
- [RbmStandaloneCard](docs/RbmStandaloneCard.md)
- [RbmSuggestionResponse](docs/RbmSuggestionResponse.md)
- [RbmWebViewEnum](docs/RbmWebViewEnum.md)
- [RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
- [RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
Expand All @@ -326,6 +325,7 @@ Class | Method | HTTP request | Description
- [StatusCallbackMessage](docs/StatusCallbackMessage.md)
- [StatusCallbackTypeEnum](docs/StatusCallbackTypeEnum.md)
- [StirShaken](docs/StirShaken.md)
- [SuggestionResponse](docs/SuggestionResponse.md)
- [SyncLookupRequest](docs/SyncLookupRequest.md)
- [TelephoneNumber](docs/TelephoneNumber.md)
- [TfvBasicAuthentication](docs/TfvBasicAuthentication.md)
Expand Down
28 changes: 17 additions & 11 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2880,7 +2880,7 @@ components:
type: string
media:
$ref: '#/components/schemas/rbmMessageContentFile'
rbmSuggestionResponse:
suggestionResponse:
type: object
properties:
text:
Expand All @@ -2889,7 +2889,12 @@ components:
example: Yes, I would like to proceed
postbackData:
$ref: '#/components/schemas/rbmActionPostbackData'
rbmLocationResponse:
pairedMessageId:
type: string
nullable: true
description: Corresponding parent message ID (MT).
example: 1752697342534u24xerqdukke523x
locationResponse:
type: object
properties:
latitude:
Expand Down Expand Up @@ -2925,7 +2930,7 @@ components:
message-failed: '#/components/schemas/statusCallback'
message-read: '#/components/schemas/statusCallback'
message-received: '#/components/schemas/inboundCallback'
request-location-response: '#/components/schemas/inboundCallback'
requested-location-response: '#/components/schemas/inboundCallback'
suggestion-response: '#/components/schemas/inboundCallback'
statusCallback:
type: object
Expand Down Expand Up @@ -3035,14 +3040,15 @@ components:
- `message-received` indicates an MO message from a Bandwidth user's
client to a Bandwidth number.

- `request-location-response` indicates a response to a location request
sent by the Bandwidth user's client after receiving an RBM message.
- `requested-location-response` indicates a response to a location
request sent by the Bandwidth user's client after receiving an RBM
message.

- `suggestion-response` indicates a response to a suggestion sent by the
Bandwidth user's client after receiving an RBM message.
enum:
- message-received
- request-location-response
- requested-location-response
- suggestion-response
example: message-received
statusCallbackMessage:
Expand Down Expand Up @@ -3118,9 +3124,9 @@ components:
content:
$ref: '#/components/schemas/multiChannelMessageContent'
suggestionResponse:
$ref: '#/components/schemas/rbmSuggestionResponse'
$ref: '#/components/schemas/suggestionResponse'
locationResponse:
$ref: '#/components/schemas/rbmLocationResponse'
$ref: '#/components/schemas/locationResponse'
required:
- id
- owner
Expand Down Expand Up @@ -9154,7 +9160,7 @@ components:
tag: '{"myTag": "myTagValue"}'
updateEndpointBxmlRequestExample:
summary: Update Endpoint BXML Request Example
value: <Bxml><StartRecording /></Bxml>
value: <Response><StartRecording /></Response>
endpointDisconnectedEventExample:
summary: Endpoint Disconnected Event
value:
Expand Down Expand Up @@ -9678,10 +9684,10 @@ components:

<p>The payload type will be one of <code>message-received</code>,
<code>suggestion-response</code>, or
<code>location-request-response</code>.
<code>requested-location-response</code>.

<p>Note that <code>suggestion-response</code> and
<code>location-request-response</code> callback types are
<code>requested-location-response</code> callback types are
pertinent only for RBM messages sent from the
<code>/messages/multiChannel</code> endpoint.

Expand Down
8 changes: 4 additions & 4 deletions bandwidth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
"ListEndpointsResponse",
"ListMessageDirectionEnum",
"ListMessageItem",
"LocationResponse",
"LookupErrorResponse",
"LookupErrorSchema",
"LookupErrorSchemaMeta",
Expand Down Expand Up @@ -178,7 +179,6 @@
"RbmActionViewLocation",
"RbmCardContent",
"RbmCardContentMedia",
"RbmLocationResponse",
"RbmMediaHeightEnum",
"RbmMessageCarouselCard",
"RbmMessageContentFile",
Expand All @@ -187,7 +187,6 @@
"RbmMessageMedia",
"RbmOpenUrlEnum",
"RbmStandaloneCard",
"RbmSuggestionResponse",
"RbmWebViewEnum",
"RecordingAvailableCallback",
"RecordingCompleteCallback",
Expand All @@ -204,6 +203,7 @@
"StatusCallbackMessage",
"StatusCallbackTypeEnum",
"StirShaken",
"SuggestionResponse",
"SyncLookupRequest",
"TelephoneNumber",
"TfvBasicAuthentication",
Expand Down Expand Up @@ -352,6 +352,7 @@
from bandwidth.models.list_endpoints_response import ListEndpointsResponse as ListEndpointsResponse
from bandwidth.models.list_message_direction_enum import ListMessageDirectionEnum as ListMessageDirectionEnum
from bandwidth.models.list_message_item import ListMessageItem as ListMessageItem
from bandwidth.models.location_response import LocationResponse as LocationResponse
from bandwidth.models.lookup_error_response import LookupErrorResponse as LookupErrorResponse
from bandwidth.models.lookup_error_schema import LookupErrorSchema as LookupErrorSchema
from bandwidth.models.lookup_error_schema_meta import LookupErrorSchemaMeta as LookupErrorSchemaMeta
Expand Down Expand Up @@ -404,7 +405,6 @@
from bandwidth.models.rbm_action_view_location import RbmActionViewLocation as RbmActionViewLocation
from bandwidth.models.rbm_card_content import RbmCardContent as RbmCardContent
from bandwidth.models.rbm_card_content_media import RbmCardContentMedia as RbmCardContentMedia
from bandwidth.models.rbm_location_response import RbmLocationResponse as RbmLocationResponse
from bandwidth.models.rbm_media_height_enum import RbmMediaHeightEnum as RbmMediaHeightEnum
from bandwidth.models.rbm_message_carousel_card import RbmMessageCarouselCard as RbmMessageCarouselCard
from bandwidth.models.rbm_message_content_file import RbmMessageContentFile as RbmMessageContentFile
Expand All @@ -413,7 +413,6 @@
from bandwidth.models.rbm_message_media import RbmMessageMedia as RbmMessageMedia
from bandwidth.models.rbm_open_url_enum import RbmOpenUrlEnum as RbmOpenUrlEnum
from bandwidth.models.rbm_standalone_card import RbmStandaloneCard as RbmStandaloneCard
from bandwidth.models.rbm_suggestion_response import RbmSuggestionResponse as RbmSuggestionResponse
from bandwidth.models.rbm_web_view_enum import RbmWebViewEnum as RbmWebViewEnum
from bandwidth.models.recording_available_callback import RecordingAvailableCallback as RecordingAvailableCallback
from bandwidth.models.recording_complete_callback import RecordingCompleteCallback as RecordingCompleteCallback
Expand All @@ -430,6 +429,7 @@
from bandwidth.models.status_callback_message import StatusCallbackMessage as StatusCallbackMessage
from bandwidth.models.status_callback_type_enum import StatusCallbackTypeEnum as StatusCallbackTypeEnum
from bandwidth.models.stir_shaken import StirShaken as StirShaken
from bandwidth.models.suggestion_response import SuggestionResponse as SuggestionResponse
from bandwidth.models.sync_lookup_request import SyncLookupRequest as SyncLookupRequest
from bandwidth.models.telephone_number import TelephoneNumber as TelephoneNumber
from bandwidth.models.tfv_basic_authentication import TfvBasicAuthentication as TfvBasicAuthentication
Expand Down
4 changes: 2 additions & 2 deletions bandwidth/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
from bandwidth.models.list_endpoints_response import ListEndpointsResponse
from bandwidth.models.list_message_direction_enum import ListMessageDirectionEnum
from bandwidth.models.list_message_item import ListMessageItem
from bandwidth.models.location_response import LocationResponse
from bandwidth.models.lookup_error_response import LookupErrorResponse
from bandwidth.models.lookup_error_schema import LookupErrorSchema
from bandwidth.models.lookup_error_schema_meta import LookupErrorSchemaMeta
Expand Down Expand Up @@ -152,7 +153,6 @@
from bandwidth.models.rbm_action_view_location import RbmActionViewLocation
from bandwidth.models.rbm_card_content import RbmCardContent
from bandwidth.models.rbm_card_content_media import RbmCardContentMedia
from bandwidth.models.rbm_location_response import RbmLocationResponse
from bandwidth.models.rbm_media_height_enum import RbmMediaHeightEnum
from bandwidth.models.rbm_message_carousel_card import RbmMessageCarouselCard
from bandwidth.models.rbm_message_content_file import RbmMessageContentFile
Expand All @@ -161,7 +161,6 @@
from bandwidth.models.rbm_message_media import RbmMessageMedia
from bandwidth.models.rbm_open_url_enum import RbmOpenUrlEnum
from bandwidth.models.rbm_standalone_card import RbmStandaloneCard
from bandwidth.models.rbm_suggestion_response import RbmSuggestionResponse
from bandwidth.models.rbm_web_view_enum import RbmWebViewEnum
from bandwidth.models.recording_available_callback import RecordingAvailableCallback
from bandwidth.models.recording_complete_callback import RecordingCompleteCallback
Expand All @@ -178,6 +177,7 @@
from bandwidth.models.status_callback_message import StatusCallbackMessage
from bandwidth.models.status_callback_type_enum import StatusCallbackTypeEnum
from bandwidth.models.stir_shaken import StirShaken
from bandwidth.models.suggestion_response import SuggestionResponse
from bandwidth.models.sync_lookup_request import SyncLookupRequest
from bandwidth.models.telephone_number import TelephoneNumber
from bandwidth.models.tfv_basic_authentication import TfvBasicAuthentication
Expand Down
2 changes: 1 addition & 1 deletion bandwidth/models/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Callback(BaseModel):
'message-received': 'InboundCallback',
'message-sending': 'StatusCallback',
'message-sent': 'StatusCallback',
'request-location-response': 'InboundCallback',
'requested-location-response': 'InboundCallback',
'suggestion-response': 'InboundCallback'
}

Expand Down
12 changes: 6 additions & 6 deletions bandwidth/models/inbound_callback_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
from datetime import datetime
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from bandwidth.models.location_response import LocationResponse
from bandwidth.models.message_direction_enum import MessageDirectionEnum
from bandwidth.models.multi_channel_message_channel_enum import MultiChannelMessageChannelEnum
from bandwidth.models.multi_channel_message_content import MultiChannelMessageContent
from bandwidth.models.priority_enum import PriorityEnum
from bandwidth.models.rbm_location_response import RbmLocationResponse
from bandwidth.models.rbm_suggestion_response import RbmSuggestionResponse
from bandwidth.models.suggestion_response import SuggestionResponse
from typing import Optional, Set
from typing_extensions import Self

Expand All @@ -48,8 +48,8 @@ class InboundCallbackMessage(BaseModel):
priority: Optional[PriorityEnum] = None
channel: Optional[MultiChannelMessageChannelEnum] = None
content: Optional[MultiChannelMessageContent] = None
suggestion_response: Optional[RbmSuggestionResponse] = Field(default=None, alias="suggestionResponse")
location_response: Optional[RbmLocationResponse] = Field(default=None, alias="locationResponse")
suggestion_response: Optional[SuggestionResponse] = Field(default=None, alias="suggestionResponse")
location_response: Optional[LocationResponse] = Field(default=None, alias="locationResponse")
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = ["id", "owner", "applicationId", "time", "segmentCount", "direction", "to", "from", "text", "tag", "media", "priority", "channel", "content", "suggestionResponse", "locationResponse"]

Expand Down Expand Up @@ -134,8 +134,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"priority": obj.get("priority"),
"channel": obj.get("channel"),
"content": MultiChannelMessageContent.from_dict(obj["content"]) if obj.get("content") is not None else None,
"suggestionResponse": RbmSuggestionResponse.from_dict(obj["suggestionResponse"]) if obj.get("suggestionResponse") is not None else None,
"locationResponse": RbmLocationResponse.from_dict(obj["locationResponse"]) if obj.get("locationResponse") is not None else None
"suggestionResponse": SuggestionResponse.from_dict(obj["suggestionResponse"]) if obj.get("suggestionResponse") is not None else None,
"locationResponse": LocationResponse.from_dict(obj["locationResponse"]) if obj.get("locationResponse") is not None else None
})
# store additional fields in additional_properties
for _key in obj.keys():
Expand Down
4 changes: 2 additions & 2 deletions bandwidth/models/inbound_callback_type_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@

class InboundCallbackTypeEnum(str, Enum):
"""
The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message.
The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `requested-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message.
"""

"""
allowed enum values
"""
MESSAGE_MINUS_RECEIVED = 'message-received'
REQUEST_MINUS_LOCATION_MINUS_RESPONSE = 'request-location-response'
REQUESTED_MINUS_LOCATION_MINUS_RESPONSE = 'requested-location-response'
SUGGESTION_MINUS_RESPONSE = 'suggestion-response'

@classmethod
Expand Down
Loading
Loading