From 584f55b95a2e7536dd296c80f826d53865382bac Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 9 Dec 2025 17:06:39 -0500 Subject: [PATCH 1/2] SWI-9209 Update RBM --- .openapi-generator/FILES | 4 ++ README.md | 2 + bandwidth.yml | 33 +++++++++++++++ docs/MultiChannelAction.md | 6 ++- docs/RbmActionBase.md | 2 +- docs/RbmActionOpenUrl.md | 6 ++- docs/RbmOpenUrlEnum.md | 15 +++++++ docs/RbmSuggestionResponse.md | 2 +- docs/RbmVebViewEnum.md | 15 +++++++ lib/bandwidth-sdk.rb | 2 + .../models/rbm_action_open_url.rb | 26 ++++++++++-- lib/bandwidth-sdk/models/rbm_open_url_enum.rb | 40 ++++++++++++++++++ lib/bandwidth-sdk/models/rbm_veb_view_enum.rb | 41 +++++++++++++++++++ 13 files changed, 186 insertions(+), 8 deletions(-) create mode 100644 docs/RbmOpenUrlEnum.md create mode 100644 docs/RbmVebViewEnum.md create mode 100644 lib/bandwidth-sdk/models/rbm_open_url_enum.rb create mode 100644 lib/bandwidth-sdk/models/rbm_veb_view_enum.rb diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index ae7c3813..2bb80e45 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -137,8 +137,10 @@ docs/RbmMessageContentFile.md docs/RbmMessageContentRichCard.md docs/RbmMessageContentText.md docs/RbmMessageMedia.md +docs/RbmOpenUrlEnum.md docs/RbmStandaloneCard.md docs/RbmSuggestionResponse.md +docs/RbmVebViewEnum.md docs/RecordingAvailableCallback.md docs/RecordingCompleteCallback.md docs/RecordingStateEnum.md @@ -332,8 +334,10 @@ lib/bandwidth-sdk/models/rbm_message_content_file.rb lib/bandwidth-sdk/models/rbm_message_content_rich_card.rb lib/bandwidth-sdk/models/rbm_message_content_text.rb lib/bandwidth-sdk/models/rbm_message_media.rb +lib/bandwidth-sdk/models/rbm_open_url_enum.rb lib/bandwidth-sdk/models/rbm_standalone_card.rb lib/bandwidth-sdk/models/rbm_suggestion_response.rb +lib/bandwidth-sdk/models/rbm_veb_view_enum.rb lib/bandwidth-sdk/models/recording_available_callback.rb lib/bandwidth-sdk/models/recording_complete_callback.rb lib/bandwidth-sdk/models/recording_state_enum.rb diff --git a/README.md b/README.md index 01b86716..e3946884 100644 --- a/README.md +++ b/README.md @@ -297,8 +297,10 @@ Class | Method | HTTP request | Description - [Bandwidth::RbmMessageContentRichCard](docs/RbmMessageContentRichCard.md) - [Bandwidth::RbmMessageContentText](docs/RbmMessageContentText.md) - [Bandwidth::RbmMessageMedia](docs/RbmMessageMedia.md) + - [Bandwidth::RbmOpenUrlEnum](docs/RbmOpenUrlEnum.md) - [Bandwidth::RbmStandaloneCard](docs/RbmStandaloneCard.md) - [Bandwidth::RbmSuggestionResponse](docs/RbmSuggestionResponse.md) + - [Bandwidth::RbmVebViewEnum](docs/RbmVebViewEnum.md) - [Bandwidth::RecordingAvailableCallback](docs/RecordingAvailableCallback.md) - [Bandwidth::RecordingCompleteCallback](docs/RecordingCompleteCallback.md) - [Bandwidth::RecordingStateEnum](docs/RecordingStateEnum.md) diff --git a/bandwidth.yml b/bandwidth.yml index 9ab77fd9..db625ad7 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -2378,6 +2378,35 @@ components: - OPEN_URL - REQUEST_LOCATION example: REPLY + rbmOpenUrlEnum: + type: string + description: >- + Specifies how the URL should be opened on a mobile device. + + - `BROWSER` Opens the URL in the device's default browser. If + application is not set or the device doesn’t support WebView, this + option is used by default. + + - `WEBVIEW` Opens the URL in an in-app WebView. + enum: + - BROWSER + - WEBVIEW + example: WEBVIEW + rbmVebViewEnum: + type: string + description: >- + Defines the layout of the WebView on a mobile device. It must be defined + when application is set to `WEBVIEW` + + - `FULL` WebView takes the full screen. + + - `HALF` WebView takes half of the screen. + + - `TALL` WebView takes three-quarters of the screen. + enum: + - FULL + - HALF + - TALL rbmActionText: title: Text type: string @@ -2482,6 +2511,10 @@ components: description: The URL to open in browser. example: https://dev.bandwidth.com maxLength: 2048 + application: + $ref: '#/components/schemas/rbmOpenUrlEnum' + webviewViewMode: + $ref: '#/components/schemas/rbmVebViewEnum' required: - url multiChannelFullActions: diff --git a/docs/MultiChannelAction.md b/docs/MultiChannelAction.md index 73481057..44f21e7c 100644 --- a/docs/MultiChannelAction.md +++ b/docs/MultiChannelAction.md @@ -16,6 +16,8 @@ | **end_time** | **Time** | The end time of the event. | | | **description** | **String** | The description of the event. | [optional] | | **url** | **String** | The URL to open in browser. | | +| **application** | [**RbmOpenUrlEnum**](RbmOpenUrlEnum.md) | | [optional] | +| **webview_view_mode** | [**RbmVebViewEnum**](RbmVebViewEnum.md) | | [optional] | ## Example @@ -34,7 +36,9 @@ instance = Bandwidth::MultiChannelAction.new( start_time: 2022-09-14T18:20:16Z, end_time: 2022-09-14T18:20:16Z, description: Discuss the new project, - url: https://dev.bandwidth.com + url: https://dev.bandwidth.com, + application: null, + webview_view_mode: null ) ``` diff --git a/docs/RbmActionBase.md b/docs/RbmActionBase.md index a9d2ac13..9c9b7d2f 100644 --- a/docs/RbmActionBase.md +++ b/docs/RbmActionBase.md @@ -16,7 +16,7 @@ require 'bandwidth-sdk' instance = Bandwidth::RbmActionBase.new( type: null, text: Hello world, - postback_data: [B@7d5d77a6 + postback_data: [B@13866865 ) ``` diff --git a/docs/RbmActionOpenUrl.md b/docs/RbmActionOpenUrl.md index bf52493e..7eb6151e 100644 --- a/docs/RbmActionOpenUrl.md +++ b/docs/RbmActionOpenUrl.md @@ -8,6 +8,8 @@ | **text** | **String** | Displayed text for user to click | | | **postback_data** | **String** | Base64 payload the customer receives when the reply is clicked. | | | **url** | **String** | The URL to open in browser. | | +| **application** | [**RbmOpenUrlEnum**](RbmOpenUrlEnum.md) | | [optional] | +| **webview_view_mode** | [**RbmVebViewEnum**](RbmVebViewEnum.md) | | [optional] | ## Example @@ -18,7 +20,9 @@ instance = Bandwidth::RbmActionOpenUrl.new( type: null, text: Hello world, postback_data: U0dWc2JHOGdkMjl5YkdRPQ==, - url: https://dev.bandwidth.com + url: https://dev.bandwidth.com, + application: null, + webview_view_mode: null ) ``` diff --git a/docs/RbmOpenUrlEnum.md b/docs/RbmOpenUrlEnum.md new file mode 100644 index 00000000..cf0ba0de --- /dev/null +++ b/docs/RbmOpenUrlEnum.md @@ -0,0 +1,15 @@ +# Bandwidth::RbmOpenUrlEnum + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | + +## Example + +```ruby +require 'bandwidth-sdk' + +instance = Bandwidth::RbmOpenUrlEnum.new() +``` + diff --git a/docs/RbmSuggestionResponse.md b/docs/RbmSuggestionResponse.md index 2e23eabf..e712d726 100644 --- a/docs/RbmSuggestionResponse.md +++ b/docs/RbmSuggestionResponse.md @@ -14,7 +14,7 @@ require 'bandwidth-sdk' instance = Bandwidth::RbmSuggestionResponse.new( text: Yes, I would like to proceed, - postback_data: [B@7d5d77a6 + postback_data: [B@13866865 ) ``` diff --git a/docs/RbmVebViewEnum.md b/docs/RbmVebViewEnum.md new file mode 100644 index 00000000..f3f294e5 --- /dev/null +++ b/docs/RbmVebViewEnum.md @@ -0,0 +1,15 @@ +# Bandwidth::RbmVebViewEnum + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | + +## Example + +```ruby +require 'bandwidth-sdk' + +instance = Bandwidth::RbmVebViewEnum.new() +``` + diff --git a/lib/bandwidth-sdk.rb b/lib/bandwidth-sdk.rb index 03069cd2..949532d5 100644 --- a/lib/bandwidth-sdk.rb +++ b/lib/bandwidth-sdk.rb @@ -144,8 +144,10 @@ require 'bandwidth-sdk/models/rbm_message_content_rich_card' require 'bandwidth-sdk/models/rbm_message_content_text' require 'bandwidth-sdk/models/rbm_message_media' +require 'bandwidth-sdk/models/rbm_open_url_enum' require 'bandwidth-sdk/models/rbm_standalone_card' require 'bandwidth-sdk/models/rbm_suggestion_response' +require 'bandwidth-sdk/models/rbm_veb_view_enum' require 'bandwidth-sdk/models/recording_available_callback' require 'bandwidth-sdk/models/recording_complete_callback' require 'bandwidth-sdk/models/recording_state_enum' diff --git a/lib/bandwidth-sdk/models/rbm_action_open_url.rb b/lib/bandwidth-sdk/models/rbm_action_open_url.rb index cdf04458..df9e6a89 100644 --- a/lib/bandwidth-sdk/models/rbm_action_open_url.rb +++ b/lib/bandwidth-sdk/models/rbm_action_open_url.rb @@ -26,6 +26,10 @@ class RbmActionOpenUrl < ApiModelBase # The URL to open in browser. attr_accessor :url + attr_accessor :application + + attr_accessor :webview_view_mode + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -54,7 +58,9 @@ def self.attribute_map :'type' => :'type', :'text' => :'text', :'postback_data' => :'postbackData', - :'url' => :'url' + :'url' => :'url', + :'application' => :'application', + :'webview_view_mode' => :'webviewViewMode' } end @@ -74,7 +80,9 @@ def self.openapi_types :'type' => :'RbmActionTypeEnum', :'text' => :'String', :'postback_data' => :'String', - :'url' => :'String' + :'url' => :'String', + :'application' => :'RbmOpenUrlEnum', + :'webview_view_mode' => :'RbmVebViewEnum' } end @@ -130,6 +138,14 @@ def initialize(attributes = {}) else self.url = nil end + + if attributes.key?(:'application') + self.application = attributes[:'application'] + end + + if attributes.key?(:'webview_view_mode') + self.webview_view_mode = attributes[:'webview_view_mode'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -242,7 +258,9 @@ def ==(o) type == o.type && text == o.text && postback_data == o.postback_data && - url == o.url + url == o.url && + application == o.application && + webview_view_mode == o.webview_view_mode end # @see the `==` method @@ -254,7 +272,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, text, postback_data, url].hash + [type, text, postback_data, url, application, webview_view_mode].hash end # Builds the object from hash diff --git a/lib/bandwidth-sdk/models/rbm_open_url_enum.rb b/lib/bandwidth-sdk/models/rbm_open_url_enum.rb new file mode 100644 index 00000000..c75e156d --- /dev/null +++ b/lib/bandwidth-sdk/models/rbm_open_url_enum.rb @@ -0,0 +1,40 @@ +=begin +#Bandwidth + +#Bandwidth's Communication APIs + +The version of the OpenAPI document: 1.0.0 +Contact: letstalk@bandwidth.com +Generated by: https://openapi-generator.tech +Generator version: 7.17.0 + +=end + +require 'date' +require 'time' + +module Bandwidth + class RbmOpenUrlEnum + BROWSER = 'BROWSER'.freeze + WEBVIEW = 'WEBVIEW'.freeze + + def self.all_vars + @all_vars ||= [BROWSER, WEBVIEW].freeze + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + return value if RbmOpenUrlEnum.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #RbmOpenUrlEnum" + end + end +end diff --git a/lib/bandwidth-sdk/models/rbm_veb_view_enum.rb b/lib/bandwidth-sdk/models/rbm_veb_view_enum.rb new file mode 100644 index 00000000..a5000e2a --- /dev/null +++ b/lib/bandwidth-sdk/models/rbm_veb_view_enum.rb @@ -0,0 +1,41 @@ +=begin +#Bandwidth + +#Bandwidth's Communication APIs + +The version of the OpenAPI document: 1.0.0 +Contact: letstalk@bandwidth.com +Generated by: https://openapi-generator.tech +Generator version: 7.17.0 + +=end + +require 'date' +require 'time' + +module Bandwidth + class RbmVebViewEnum + FULL = 'FULL'.freeze + HALF = 'HALF'.freeze + TALL = 'TALL'.freeze + + def self.all_vars + @all_vars ||= [FULL, HALF, TALL].freeze + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + return value if RbmVebViewEnum.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #RbmVebViewEnum" + end + end +end From 94b9b4d2f0ebe4b94f13af4440207f028aa7f93a Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 9 Dec 2025 17:49:08 -0500 Subject: [PATCH 2/2] rename for typo --- .openapi-generator/FILES | 4 ++-- README.md | 2 +- bandwidth.yml | 4 ++-- docs/MultiChannelAction.md | 2 +- docs/RbmActionOpenUrl.md | 2 +- docs/{RbmVebViewEnum.md => RbmWebViewEnum.md} | 4 ++-- lib/bandwidth-sdk.rb | 2 +- lib/bandwidth-sdk/models/rbm_action_open_url.rb | 2 +- .../models/{rbm_veb_view_enum.rb => rbm_web_view_enum.rb} | 6 +++--- 9 files changed, 14 insertions(+), 14 deletions(-) rename docs/{RbmVebViewEnum.md => RbmWebViewEnum.md} (66%) rename lib/bandwidth-sdk/models/{rbm_veb_view_enum.rb => rbm_web_view_enum.rb} (84%) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 2bb80e45..53e9a751 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -140,7 +140,7 @@ docs/RbmMessageMedia.md docs/RbmOpenUrlEnum.md docs/RbmStandaloneCard.md docs/RbmSuggestionResponse.md -docs/RbmVebViewEnum.md +docs/RbmWebViewEnum.md docs/RecordingAvailableCallback.md docs/RecordingCompleteCallback.md docs/RecordingStateEnum.md @@ -337,7 +337,7 @@ lib/bandwidth-sdk/models/rbm_message_media.rb lib/bandwidth-sdk/models/rbm_open_url_enum.rb lib/bandwidth-sdk/models/rbm_standalone_card.rb lib/bandwidth-sdk/models/rbm_suggestion_response.rb -lib/bandwidth-sdk/models/rbm_veb_view_enum.rb +lib/bandwidth-sdk/models/rbm_web_view_enum.rb lib/bandwidth-sdk/models/recording_available_callback.rb lib/bandwidth-sdk/models/recording_complete_callback.rb lib/bandwidth-sdk/models/recording_state_enum.rb diff --git a/README.md b/README.md index e3946884..e981ea0b 100644 --- a/README.md +++ b/README.md @@ -300,7 +300,7 @@ Class | Method | HTTP request | Description - [Bandwidth::RbmOpenUrlEnum](docs/RbmOpenUrlEnum.md) - [Bandwidth::RbmStandaloneCard](docs/RbmStandaloneCard.md) - [Bandwidth::RbmSuggestionResponse](docs/RbmSuggestionResponse.md) - - [Bandwidth::RbmVebViewEnum](docs/RbmVebViewEnum.md) + - [Bandwidth::RbmWebViewEnum](docs/RbmWebViewEnum.md) - [Bandwidth::RecordingAvailableCallback](docs/RecordingAvailableCallback.md) - [Bandwidth::RecordingCompleteCallback](docs/RecordingCompleteCallback.md) - [Bandwidth::RecordingStateEnum](docs/RecordingStateEnum.md) diff --git a/bandwidth.yml b/bandwidth.yml index db625ad7..d7c32953 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -2392,7 +2392,7 @@ components: - BROWSER - WEBVIEW example: WEBVIEW - rbmVebViewEnum: + rbmWebViewEnum: type: string description: >- Defines the layout of the WebView on a mobile device. It must be defined @@ -2514,7 +2514,7 @@ components: application: $ref: '#/components/schemas/rbmOpenUrlEnum' webviewViewMode: - $ref: '#/components/schemas/rbmVebViewEnum' + $ref: '#/components/schemas/rbmWebViewEnum' required: - url multiChannelFullActions: diff --git a/docs/MultiChannelAction.md b/docs/MultiChannelAction.md index 44f21e7c..6209fce9 100644 --- a/docs/MultiChannelAction.md +++ b/docs/MultiChannelAction.md @@ -17,7 +17,7 @@ | **description** | **String** | The description of the event. | [optional] | | **url** | **String** | The URL to open in browser. | | | **application** | [**RbmOpenUrlEnum**](RbmOpenUrlEnum.md) | | [optional] | -| **webview_view_mode** | [**RbmVebViewEnum**](RbmVebViewEnum.md) | | [optional] | +| **webview_view_mode** | [**RbmWebViewEnum**](RbmWebViewEnum.md) | | [optional] | ## Example diff --git a/docs/RbmActionOpenUrl.md b/docs/RbmActionOpenUrl.md index 7eb6151e..806d991e 100644 --- a/docs/RbmActionOpenUrl.md +++ b/docs/RbmActionOpenUrl.md @@ -9,7 +9,7 @@ | **postback_data** | **String** | Base64 payload the customer receives when the reply is clicked. | | | **url** | **String** | The URL to open in browser. | | | **application** | [**RbmOpenUrlEnum**](RbmOpenUrlEnum.md) | | [optional] | -| **webview_view_mode** | [**RbmVebViewEnum**](RbmVebViewEnum.md) | | [optional] | +| **webview_view_mode** | [**RbmWebViewEnum**](RbmWebViewEnum.md) | | [optional] | ## Example diff --git a/docs/RbmVebViewEnum.md b/docs/RbmWebViewEnum.md similarity index 66% rename from docs/RbmVebViewEnum.md rename to docs/RbmWebViewEnum.md index f3f294e5..9e2667d1 100644 --- a/docs/RbmVebViewEnum.md +++ b/docs/RbmWebViewEnum.md @@ -1,4 +1,4 @@ -# Bandwidth::RbmVebViewEnum +# Bandwidth::RbmWebViewEnum ## Properties @@ -10,6 +10,6 @@ ```ruby require 'bandwidth-sdk' -instance = Bandwidth::RbmVebViewEnum.new() +instance = Bandwidth::RbmWebViewEnum.new() ``` diff --git a/lib/bandwidth-sdk.rb b/lib/bandwidth-sdk.rb index 949532d5..718f3ece 100644 --- a/lib/bandwidth-sdk.rb +++ b/lib/bandwidth-sdk.rb @@ -147,7 +147,7 @@ require 'bandwidth-sdk/models/rbm_open_url_enum' require 'bandwidth-sdk/models/rbm_standalone_card' require 'bandwidth-sdk/models/rbm_suggestion_response' -require 'bandwidth-sdk/models/rbm_veb_view_enum' +require 'bandwidth-sdk/models/rbm_web_view_enum' require 'bandwidth-sdk/models/recording_available_callback' require 'bandwidth-sdk/models/recording_complete_callback' require 'bandwidth-sdk/models/recording_state_enum' diff --git a/lib/bandwidth-sdk/models/rbm_action_open_url.rb b/lib/bandwidth-sdk/models/rbm_action_open_url.rb index df9e6a89..0dbcf743 100644 --- a/lib/bandwidth-sdk/models/rbm_action_open_url.rb +++ b/lib/bandwidth-sdk/models/rbm_action_open_url.rb @@ -82,7 +82,7 @@ def self.openapi_types :'postback_data' => :'String', :'url' => :'String', :'application' => :'RbmOpenUrlEnum', - :'webview_view_mode' => :'RbmVebViewEnum' + :'webview_view_mode' => :'RbmWebViewEnum' } end diff --git a/lib/bandwidth-sdk/models/rbm_veb_view_enum.rb b/lib/bandwidth-sdk/models/rbm_web_view_enum.rb similarity index 84% rename from lib/bandwidth-sdk/models/rbm_veb_view_enum.rb rename to lib/bandwidth-sdk/models/rbm_web_view_enum.rb index a5000e2a..3d69f333 100644 --- a/lib/bandwidth-sdk/models/rbm_veb_view_enum.rb +++ b/lib/bandwidth-sdk/models/rbm_web_view_enum.rb @@ -14,7 +14,7 @@ require 'time' module Bandwidth - class RbmVebViewEnum + class RbmWebViewEnum FULL = 'FULL'.freeze HALF = 'HALF'.freeze TALL = 'TALL'.freeze @@ -34,8 +34,8 @@ def self.build_from_hash(value) # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - return value if RbmVebViewEnum.all_vars.include?(value) - raise "Invalid ENUM value #{value} for class #RbmVebViewEnum" + return value if RbmWebViewEnum.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #RbmWebViewEnum" end end end