Skip to content

Commit 17ae817

Browse files
band-swi-release-engineering[bot]DX-Bandwidthckoegel
authored
SWI-9204 Update SDK Based on Recent Spec Changes (#91)
* Generate SDK with OpenAPI Generator Version * model unit tests * rename for typo --------- Co-authored-by: DX-Bandwidth <[email protected]> Co-authored-by: ckoegel <[email protected]>
1 parent 1bb5418 commit 17ae817

14 files changed

+163
-0
lines changed

.openapi-generator/FILES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,10 @@ docs/RbmMessageContentFile.md
148148
docs/RbmMessageContentRichCard.md
149149
docs/RbmMessageContentText.md
150150
docs/RbmMessageMedia.md
151+
docs/RbmOpenUrlEnum.md
151152
docs/RbmStandaloneCard.md
152153
docs/RbmSuggestionResponse.md
154+
docs/RbmWebViewEnum.md
153155
docs/RecordingAvailableCallback.md
154156
docs/RecordingCompleteCallback.md
155157
docs/RecordingStateEnum.md
@@ -329,8 +331,10 @@ models/rbm-message-content-file.ts
329331
models/rbm-message-content-rich-card.ts
330332
models/rbm-message-content-text.ts
331333
models/rbm-message-media.ts
334+
models/rbm-open-url-enum.ts
332335
models/rbm-standalone-card.ts
333336
models/rbm-suggestion-response.ts
337+
models/rbm-web-view-enum.ts
334338
models/recording-available-callback.ts
335339
models/recording-complete-callback.ts
336340
models/recording-state-enum.ts

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,10 @@ Class | Method | HTTP request | Description
286286
- [RbmMessageContentRichCard](docs/RbmMessageContentRichCard.md)
287287
- [RbmMessageContentText](docs/RbmMessageContentText.md)
288288
- [RbmMessageMedia](docs/RbmMessageMedia.md)
289+
- [RbmOpenUrlEnum](docs/RbmOpenUrlEnum.md)
289290
- [RbmStandaloneCard](docs/RbmStandaloneCard.md)
290291
- [RbmSuggestionResponse](docs/RbmSuggestionResponse.md)
292+
- [RbmWebViewEnum](docs/RbmWebViewEnum.md)
291293
- [RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
292294
- [RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
293295
- [RecordingStateEnum](docs/RecordingStateEnum.md)

bandwidth.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,6 +2378,35 @@ components:
23782378
- OPEN_URL
23792379
- REQUEST_LOCATION
23802380
example: REPLY
2381+
rbmOpenUrlEnum:
2382+
type: string
2383+
description: >-
2384+
Specifies how the URL should be opened on a mobile device.
2385+
2386+
- `BROWSER` Opens the URL in the device's default browser. If
2387+
application is not set or the device doesn’t support WebView, this
2388+
option is used by default.
2389+
2390+
- `WEBVIEW` Opens the URL in an in-app WebView.
2391+
enum:
2392+
- BROWSER
2393+
- WEBVIEW
2394+
example: WEBVIEW
2395+
rbmWebViewEnum:
2396+
type: string
2397+
description: >-
2398+
Defines the layout of the WebView on a mobile device. It must be defined
2399+
when application is set to `WEBVIEW`
2400+
2401+
- `FULL` WebView takes the full screen.
2402+
2403+
- `HALF` WebView takes half of the screen.
2404+
2405+
- `TALL` WebView takes three-quarters of the screen.
2406+
enum:
2407+
- FULL
2408+
- HALF
2409+
- TALL
23812410
rbmActionText:
23822411
title: Text
23832412
type: string
@@ -2482,6 +2511,10 @@ components:
24822511
description: The URL to open in browser.
24832512
example: https://dev.bandwidth.com
24842513
maxLength: 2048
2514+
application:
2515+
$ref: '#/components/schemas/rbmOpenUrlEnum'
2516+
webviewViewMode:
2517+
$ref: '#/components/schemas/rbmWebViewEnum'
24852518
required:
24862519
- url
24872520
multiChannelFullActions:

docs/MultiChannelAction.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Name | Type | Description | Notes
1717
**endTime** | **string** | The end time of the event. | [default to undefined]
1818
**description** | **string** | The description of the event. | [optional] [default to undefined]
1919
**url** | **string** | The URL to open in browser. | [default to undefined]
20+
**application** | [**RbmOpenUrlEnum**](RbmOpenUrlEnum.md) | | [optional] [default to undefined]
21+
**webviewViewMode** | [**RbmWebViewEnum**](RbmWebViewEnum.md) | | [optional] [default to undefined]
2022

2123
## Example
2224

@@ -36,6 +38,8 @@ const instance: MultiChannelAction = {
3638
endTime,
3739
description,
3840
url,
41+
application,
42+
webviewViewMode,
3943
};
4044
```
4145

docs/RbmActionOpenUrl.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
99
**text** | **string** | Displayed text for user to click | [default to undefined]
1010
**postbackData** | **string** | Base64 payload the customer receives when the reply is clicked. | [default to undefined]
1111
**url** | **string** | The URL to open in browser. | [default to undefined]
12+
**application** | [**RbmOpenUrlEnum**](RbmOpenUrlEnum.md) | | [optional] [default to undefined]
13+
**webviewViewMode** | [**RbmWebViewEnum**](RbmWebViewEnum.md) | | [optional] [default to undefined]
1214

1315
## Example
1416

@@ -20,6 +22,8 @@ const instance: RbmActionOpenUrl = {
2022
text,
2123
postbackData,
2224
url,
25+
application,
26+
webviewViewMode,
2327
};
2428
```
2529

docs/RbmOpenUrlEnum.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# RbmOpenUrlEnum
2+
3+
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.
4+
5+
## Enum
6+
7+
* `Browser` (value: `'BROWSER'`)
8+
9+
* `Webview` (value: `'WEBVIEW'`)
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/RbmWebViewEnum.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# RbmWebViewEnum
2+
3+
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.
4+
5+
## Enum
6+
7+
* `Full` (value: `'FULL'`)
8+
9+
* `Half` (value: `'HALF'`)
10+
11+
* `Tall` (value: `'TALL'`)
12+
13+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

models/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ export * from './rbm-message-content-file';
124124
export * from './rbm-message-content-rich-card';
125125
export * from './rbm-message-content-text';
126126
export * from './rbm-message-media';
127+
export * from './rbm-open-url-enum';
127128
export * from './rbm-standalone-card';
128129
export * from './rbm-suggestion-response';
130+
export * from './rbm-web-view-enum';
129131
export * from './recording-available-callback';
130132
export * from './recording-complete-callback';
131133
export * from './recording-state-enum';

models/multi-channel-action.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ import type { RbmActionTypeEnum } from './rbm-action-type-enum';
3131
// May contain unused imports in some cases
3232
// @ts-ignore
3333
import type { RbmActionViewLocation } from './rbm-action-view-location';
34+
// May contain unused imports in some cases
35+
// @ts-ignore
36+
import type { RbmOpenUrlEnum } from './rbm-open-url-enum';
37+
// May contain unused imports in some cases
38+
// @ts-ignore
39+
import type { RbmWebViewEnum } from './rbm-web-view-enum';
3440

3541
export interface MultiChannelAction {
3642
'type': RbmActionTypeEnum;
@@ -78,6 +84,8 @@ export interface MultiChannelAction {
7884
* The URL to open in browser.
7985
*/
8086
'url': string;
87+
'application'?: RbmOpenUrlEnum;
88+
'webviewViewMode'?: RbmWebViewEnum;
8189
}
8290

8391

models/rbm-action-open-url.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ import type { RbmActionBase } from './rbm-action-base';
1919
// May contain unused imports in some cases
2020
// @ts-ignore
2121
import type { RbmActionTypeEnum } from './rbm-action-type-enum';
22+
// May contain unused imports in some cases
23+
// @ts-ignore
24+
import type { RbmOpenUrlEnum } from './rbm-open-url-enum';
25+
// May contain unused imports in some cases
26+
// @ts-ignore
27+
import type { RbmWebViewEnum } from './rbm-web-view-enum';
2228

2329
/**
2430
* @type RbmActionOpenUrl

0 commit comments

Comments
 (0)