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
4 changes: 4 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ docs/RbmMessageContentFile.md
docs/RbmMessageContentRichCard.md
docs/RbmMessageContentText.md
docs/RbmMessageMedia.md
docs/RbmOpenUrlEnum.md
docs/RbmStandaloneCard.md
docs/RbmSuggestionResponse.md
docs/RbmWebViewEnum.md
docs/RecordingAvailableCallback.md
docs/RecordingCompleteCallback.md
docs/RecordingStateEnum.md
Expand Down Expand Up @@ -329,8 +331,10 @@ models/rbm-message-content-file.ts
models/rbm-message-content-rich-card.ts
models/rbm-message-content-text.ts
models/rbm-message-media.ts
models/rbm-open-url-enum.ts
models/rbm-standalone-card.ts
models/rbm-suggestion-response.ts
models/rbm-web-view-enum.ts
models/recording-available-callback.ts
models/recording-complete-callback.ts
models/recording-state-enum.ts
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,10 @@ Class | Method | HTTP request | Description
- [RbmMessageContentRichCard](docs/RbmMessageContentRichCard.md)
- [RbmMessageContentText](docs/RbmMessageContentText.md)
- [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)
- [RecordingStateEnum](docs/RecordingStateEnum.md)
Expand Down
33 changes: 33 additions & 0 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
rbmWebViewEnum:
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
Expand Down Expand Up @@ -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/rbmWebViewEnum'
required:
- url
multiChannelFullActions:
Expand Down
4 changes: 4 additions & 0 deletions docs/MultiChannelAction.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Name | Type | Description | Notes
**endTime** | **string** | The end time of the event. | [default to undefined]
**description** | **string** | The description of the event. | [optional] [default to undefined]
**url** | **string** | The URL to open in browser. | [default to undefined]
**application** | [**RbmOpenUrlEnum**](RbmOpenUrlEnum.md) | | [optional] [default to undefined]
**webviewViewMode** | [**RbmWebViewEnum**](RbmWebViewEnum.md) | | [optional] [default to undefined]

## Example

Expand All @@ -36,6 +38,8 @@ const instance: MultiChannelAction = {
endTime,
description,
url,
application,
webviewViewMode,
};
```

Expand Down
4 changes: 4 additions & 0 deletions docs/RbmActionOpenUrl.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Name | Type | Description | Notes
**text** | **string** | Displayed text for user to click | [default to undefined]
**postbackData** | **string** | Base64 payload the customer receives when the reply is clicked. | [default to undefined]
**url** | **string** | The URL to open in browser. | [default to undefined]
**application** | [**RbmOpenUrlEnum**](RbmOpenUrlEnum.md) | | [optional] [default to undefined]
**webviewViewMode** | [**RbmWebViewEnum**](RbmWebViewEnum.md) | | [optional] [default to undefined]

## Example

Expand All @@ -20,6 +22,8 @@ const instance: RbmActionOpenUrl = {
text,
postbackData,
url,
application,
webviewViewMode,
};
```

Expand Down
11 changes: 11 additions & 0 deletions docs/RbmOpenUrlEnum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# RbmOpenUrlEnum

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` (value: `'BROWSER'`)

* `Webview` (value: `'WEBVIEW'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13 changes: 13 additions & 0 deletions docs/RbmWebViewEnum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# RbmWebViewEnum

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` (value: `'FULL'`)

* `Half` (value: `'HALF'`)

* `Tall` (value: `'TALL'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2 changes: 2 additions & 0 deletions models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ export * from './rbm-message-content-file';
export * from './rbm-message-content-rich-card';
export * from './rbm-message-content-text';
export * from './rbm-message-media';
export * from './rbm-open-url-enum';
export * from './rbm-standalone-card';
export * from './rbm-suggestion-response';
export * from './rbm-web-view-enum';
export * from './recording-available-callback';
export * from './recording-complete-callback';
export * from './recording-state-enum';
Expand Down
8 changes: 8 additions & 0 deletions models/multi-channel-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ import type { RbmActionTypeEnum } from './rbm-action-type-enum';
// May contain unused imports in some cases
// @ts-ignore
import type { RbmActionViewLocation } from './rbm-action-view-location';
// May contain unused imports in some cases
// @ts-ignore
import type { RbmOpenUrlEnum } from './rbm-open-url-enum';
// May contain unused imports in some cases
// @ts-ignore
import type { RbmWebViewEnum } from './rbm-web-view-enum';

export interface MultiChannelAction {
'type': RbmActionTypeEnum;
Expand Down Expand Up @@ -78,6 +84,8 @@ export interface MultiChannelAction {
* The URL to open in browser.
*/
'url': string;
'application'?: RbmOpenUrlEnum;
'webviewViewMode'?: RbmWebViewEnum;
}


Expand Down
6 changes: 6 additions & 0 deletions models/rbm-action-open-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ import type { RbmActionBase } from './rbm-action-base';
// May contain unused imports in some cases
// @ts-ignore
import type { RbmActionTypeEnum } from './rbm-action-type-enum';
// May contain unused imports in some cases
// @ts-ignore
import type { RbmOpenUrlEnum } from './rbm-open-url-enum';
// May contain unused imports in some cases
// @ts-ignore
import type { RbmWebViewEnum } from './rbm-web-view-enum';

/**
* @type RbmActionOpenUrl
Expand Down
29 changes: 29 additions & 0 deletions models/rbm-open-url-enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* tslint:disable */
/* eslint-disable */
/**
* Bandwidth
* Bandwidth\'s Communication APIs
*
* The version of the OpenAPI document: 1.0.0
* Contact: letstalk@bandwidth.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/



/**
* 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.
*/

export const RbmOpenUrlEnum = {
Browser: 'BROWSER',
Webview: 'WEBVIEW'
} as const;

export type RbmOpenUrlEnum = typeof RbmOpenUrlEnum[keyof typeof RbmOpenUrlEnum];



30 changes: 30 additions & 0 deletions models/rbm-web-view-enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* tslint:disable */
/* eslint-disable */
/**
* Bandwidth
* Bandwidth\'s Communication APIs
*
* The version of the OpenAPI document: 1.0.0
* Contact: letstalk@bandwidth.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/



/**
* 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.
*/

export const RbmWebViewEnum = {
Full: 'FULL',
Half: 'HALF',
Tall: 'TALL'
} as const;

export type RbmWebViewEnum = typeof RbmWebViewEnum[keyof typeof RbmWebViewEnum];



8 changes: 8 additions & 0 deletions tests/unit/models/rbm-open-url-enum.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { RbmOpenUrlEnum } from '../../../models/rbm-open-url-enum';

describe('RbmOpenUrlEnum', () => {
test('should define the expected values', () => {
expect(RbmOpenUrlEnum.Browser).toBe('BROWSER');
expect(RbmOpenUrlEnum.Webview).toBe('WEBVIEW');
});
});
9 changes: 9 additions & 0 deletions tests/unit/models/rbm-veb-view-enum.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { RbmWebViewEnum } from '../../../models/rbm-web-view-enum';

describe('RbmWebViewEnum', () => {
test('should define the expected values', () => {
expect(RbmWebViewEnum.Full).toBe('FULL');
expect(RbmWebViewEnum.Half).toBe('HALF');
expect(RbmWebViewEnum.Tall).toBe('TALL');
});
});