Skip to content

Commit d1fdd65

Browse files
band-swi[bot]DX-Bandwidthckoegel
authored
SWI-5874 Update SDK Based on Recent Spec Changes (#116)
* Generate SDK with OpenAPI Generator Version 7.1.0 * update workflow files * move tests * generate on 7.7.0 * move model unit tests * move api unit tests * move bxml tests * update workflows * fix failing unit tests * update model unit tests for transcriptions and recordings * fix transcription test --------- Co-authored-by: DX-Bandwidth <[email protected]> Co-authored-by: ckoegel <[email protected]>
1 parent 28a1789 commit d1fdd65

File tree

236 files changed

+693
-8929
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+693
-8929
lines changed

.github/workflows/test-pr.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Test PR
22
on:
33
pull_request:
4+
branches:
5+
- main
46
workflow_dispatch:
57

68
env:
@@ -20,25 +22,26 @@ env:
2022
MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }}
2123

2224
jobs:
23-
test_pr:
25+
test:
2426
name: Test PR
2527
runs-on: ${{ matrix.os }}
2628
strategy:
2729
matrix:
2830
os: [windows-2022, windows-2019, ubuntu-22.04, ubuntu-20.04]
29-
dotnet: [6.0.x, 7.0.x]
31+
dotnet: [6.0.x, 7.0.x, 8.0.x]
3032
fail-fast: false
3133
steps:
3234
- name: Checkout repo
33-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3436

3537
- name: Setup .NET
36-
uses: actions/setup-dotnet@v3
38+
uses: actions/setup-dotnet@v4
3739
with:
3840
dotnet-version: ${{ matrix.dotnet }}
3941

40-
- name: Run functional tests
42+
- name: Run Tests
4143
env:
4244
OPERATING_SYSTEM: ${{ matrix.os }}
4345
DOTNET_VERSION: ${{ matrix.dotnet }}
44-
run: dotnet test src/Bandwidth.Standard.Test
46+
run: |
47+
dotnet test src/Bandwidth.Standard.Test --filter DisplayName~Bandwidth.Standard.Test.Unit
Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
name: Test Main Branch Nightly
1+
name: Smoke Test
22
on:
33
schedule:
44
- cron: "0 4 * * *"
5+
pull_request:
6+
branches:
7+
- main
8+
paths:
9+
- "src/Bandwidth.Standard.Test/Smoke/*"
510

611
env:
712
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
@@ -20,39 +25,33 @@ env:
2025
MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }}
2126

2227
jobs:
23-
test_main:
24-
name: Test Main Branch Nightly
25-
runs-on: ${{ matrix.os }}
26-
strategy:
27-
matrix:
28-
os: [windows-2022, windows-2019, ubuntu-22.04, ubuntu-20.04]
29-
dotnet: [6.0.x, 7.0.x]
30-
fail-fast: false
28+
test:
29+
name: Smoke Test
30+
runs-on: ubuntu-latest
3131
steps:
32-
- name: Checkout repo
33-
uses: actions/checkout@v3
34-
with:
35-
ref: "main"
32+
- name: Checkout
33+
uses: actions/checkout@v4
3634

3735
- name: Setup .NET
38-
uses: actions/setup-dotnet@v3
36+
uses: actions/setup-dotnet@v4
3937
with:
40-
dotnet-version: ${{ matrix.dotnet }}
38+
dotnet-version: 8.0.x
4139

4240
- name: Run functional tests
4341
env:
44-
OPERATING_SYSTEM: ${{ matrix.os }}
45-
DOTNET_VERSION: ${{ matrix.dotnet }}
46-
run: dotnet test src/Bandwidth.Standard.Test
42+
OPERATING_SYSTEM: ubuntu-latest
43+
DOTNET_VERSION: 8.0.x
44+
run: |
45+
dotnet test src/Bandwidth.Standard.Test --filter DisplayName~Bandwidth.Standard.Test.Smoke
4746
4847
notify_for_failures:
4948
name: Notify for failures
50-
needs: [test_main]
49+
needs: [test]
5150
if: failure()
5251
runs-on: ubuntu-latest
5352
steps:
5453
- name: Notify Slack of failures
55-
uses: Bandwidth/build-notify-slack-action@v1.0.0
54+
uses: Bandwidth/build-notify-slack-action@v2.0.0
5655
with:
5756
job-status: failure
5857
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}

.openapi-generator/FILES

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ docs/VerifyCodeResponse.md
105105
docs/VoiceApiError.md
106106
docs/VoiceCodeResponse.md
107107
git_push.sh
108-
src/Bandwidth.Standard.Test/Model/CallTranscriptionDetectedLanguageEnumTests.cs
109-
src/Bandwidth.Standard.Test/Model/CallTranscriptionTrackEnumTests.cs
110108
src/Bandwidth.Standard/Api/CallsApi.cs
111109
src/Bandwidth.Standard/Api/ConferencesApi.cs
112110
src/Bandwidth.Standard/Api/MFAApi.cs

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.1.0
1+
7.7.0

Bandwidth.Standard.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{6E2C3915-50F7-4853-B6BA-5191237A5ED8}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{38239AD3-E140-4FF8-BC89-D26A9DB3DB28}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{6E2C3915-50F7-4853-B6BA-5191237A5ED8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{6E2C3915-50F7-4853-B6BA-5191237A5ED8}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{6E2C3915-50F7-4853-B6BA-5191237A5ED8}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{6E2C3915-50F7-4853-B6BA-5191237A5ED8}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{38239AD3-E140-4FF8-BC89-D26A9DB3DB28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{38239AD3-E140-4FF8-BC89-D26A9DB3DB28}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{38239AD3-E140-4FF8-BC89-D26A9DB3DB28}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{38239AD3-E140-4FF8-BC89-D26A9DB3DB28}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This C# SDK is automatically generated by the [OpenAPI Generator](https://openap
66

77
- API version: 1.0.0
88
- SDK version: 1.0.0
9+
- Generator version: 7.7.0
910
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen
1011
For more information, please visit [https://dev.bandwidth.com](https://dev.bandwidth.com)
1112

api/openapi.yaml

Lines changed: 54 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5941,6 +5941,10 @@ components:
59415941
example: sms
59425942
type: string
59435943
fieldError:
5944+
example:
5945+
fieldName: from
5946+
description: '''+invalid'' must be replaced with a valid E164 formatted telephone
5947+
number'
59445948
properties:
59455949
fieldName:
59465950
description: The name of the field that contains the error
@@ -5970,7 +5974,7 @@ components:
59705974
messageStatus: RECEIVED
59715975
receiveTime: 2020-04-07T14:03:07Z
59725976
accountId: "9900000"
5973-
messageDirection: null
5977+
messageDirection: INBOUND
59745978
messageType: sms
59755979
carrierName: other
59765980
recipientCount: 1
@@ -5987,7 +5991,7 @@ components:
59875991
messageStatus: RECEIVED
59885992
receiveTime: 2020-04-07T14:03:07Z
59895993
accountId: "9900000"
5990-
messageDirection: null
5994+
messageDirection: INBOUND
59915995
messageType: sms
59925996
carrierName: other
59935997
recipientCount: 1
@@ -6021,7 +6025,7 @@ components:
60216025
messageStatus: RECEIVED
60226026
receiveTime: 2020-04-07T14:03:07Z
60236027
accountId: "9900000"
6024-
messageDirection: null
6028+
messageDirection: INBOUND
60256029
messageType: sms
60266030
carrierName: other
60276031
recipientCount: 1
@@ -6127,6 +6131,9 @@ components:
61276131
title: PageInfo
61286132
type: object
61296133
messagingRequestError:
6134+
example:
6135+
description: description
6136+
type: type
61306137
properties:
61316138
type:
61326139
type: string
@@ -6138,6 +6145,16 @@ components:
61386145
title: MessagingRequestError
61396146
type: object
61406147
createMessageRequestError:
6148+
example:
6149+
fieldErrors:
6150+
- fieldName: from
6151+
description: '''+invalid'' must be replaced with a valid E164 formatted
6152+
telephone number'
6153+
- fieldName: from
6154+
description: '''+invalid'' must be replaced with a valid E164 formatted
6155+
telephone number'
6156+
description: description
6157+
type: type
61416158
properties:
61426159
type:
61436160
type: string
@@ -6198,7 +6215,7 @@ components:
61986215
text: Hello world
61996216
tag: custom tag
62006217
applicationId: 93de2206-9669-4e07-948d-329f4b722ee2
6201-
direction: null
6218+
direction: in
62026219
properties:
62036220
id:
62046221
description: The id of the message.
@@ -7322,6 +7339,7 @@ components:
73227339
url: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/recordings/r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/transcription
73237340
status: completed
73247341
parentCallId: c-95ac8d6e-1a31c52e-b38f-4198-93c1-51633ec68f8d
7342+
recordingName: my-recording-name
73257343
transferCallerId: "+15555555555"
73267344
transferTo: "+15555555555"
73277345
duration: PT13.67S
@@ -7421,6 +7439,10 @@ components:
74217439
type: string
74227440
transcription:
74237441
$ref: '#/components/schemas/recordingTranscriptionMetadata'
7442+
recordingName:
7443+
description: A name to identify this recording.
7444+
example: my-recording-name
7445+
type: string
74247446
type: object
74257447
conference:
74267448
example:
@@ -7632,6 +7654,7 @@ components:
76327654
channels: 1
76337655
mediaUrl: https://voice.bandwidth.com/api/v2/accounts/9900000/conferences/conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9/recordings/r-fbe05094-9fd2afe9-bf5b-4c68-820a-41a01c1c5833/media
76347656
conferenceId: conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9
7657+
recordingName: my-recording-name
76357658
name: my-conference-name
76367659
startTime: 2022-06-17T22:19:40.375Z
76377660
endTime: 2022-06-17T22:20:00Z
@@ -7694,6 +7717,10 @@ components:
76947717
format: uri
76957718
nullable: true
76967719
type: string
7720+
recordingName:
7721+
description: A name to identify this recording.
7722+
example: my-recording-name
7723+
type: string
76977724
type: object
76987725
machineDetectionConfiguration:
76997726
description: "The machine detection request used to perform <a href='/docs/voice/guides/machineDetection'>machine\
@@ -7877,6 +7904,7 @@ components:
78777904
callTranscriptionMetadataList:
78787905
example:
78797906
- transcriptionId: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
7907+
transcriptionName: live_transcription
78807908
transcriptionUrl: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
78817909
items:
78827910
$ref: '#/components/schemas/callTranscriptionMetadata'
@@ -7887,6 +7915,11 @@ components:
78877915
description: The programmable voice API transcription ID.
78887916
example: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
78897917
type: string
7918+
transcriptionName:
7919+
description: The programmable voice API transcription name. This name could
7920+
be provided by the user when creating the transcription.
7921+
example: live_transcription
7922+
type: string
78907923
transcriptionUrl:
78917924
description: |-
78927925
A URL that may be used to retrieve the transcription itself. This points to the
@@ -7980,6 +8013,10 @@ components:
79808013
type: string
79818014
type: object
79828015
voiceApiError:
8016+
example:
8017+
description: description
8018+
id: id
8019+
type: type
79838020
properties:
79848021
type:
79858022
type: string
@@ -9838,6 +9875,10 @@ components:
98389875
description: The call id associated with the event.
98399876
example: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
98409877
type: string
9878+
recordingName:
9879+
description: A name to identify this recording.
9880+
example: my-recording-name
9881+
type: string
98419882
callUrl:
98429883
description: The URL of the call associated with the event.
98439884
example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
@@ -10067,6 +10108,9 @@ components:
1006710108
type: boolean
1006810109
type: object
1006910110
mfaRequestError:
10111+
example:
10112+
requestId: 354cc8a3-6701-461e-8fa7-8671703dd898
10113+
error: 400 Request is malformed or invalid
1007010114
properties:
1007110115
error:
1007210116
description: A message describing the error with your request.
@@ -10078,13 +10122,17 @@ components:
1007810122
type: string
1007910123
type: object
1008010124
mfaUnauthorizedRequestError:
10125+
example:
10126+
message: Unauthorized
1008110127
properties:
1008210128
message:
1008310129
description: Unauthorized
1008410130
example: Unauthorized
1008510131
type: string
1008610132
type: object
1008710133
mfaForbiddenRequestError:
10134+
example:
10135+
message: Missing Authentication Token
1008810136
properties:
1008910137
message:
1009010138
description: The message containing the reason behind the request being
@@ -10227,6 +10275,8 @@ components:
1022710275
type: string
1022810276
type: object
1022910277
tnLookupRequestError:
10278+
example:
10279+
message: example error message
1023010280
properties:
1023110281
message:
1023210282
description: A description of what validation error occurred.

bandwidth.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2802,6 +2802,8 @@ components:
28022802
$ref: '#/components/schemas/mediaUrl'
28032803
transcription:
28042804
$ref: '#/components/schemas/recordingTranscriptionMetadata'
2805+
recordingName:
2806+
$ref: '#/components/schemas/recordingName'
28052807
conference:
28062808
type: object
28072809
properties:
@@ -3041,6 +3043,8 @@ components:
30413043
$ref: '#/components/schemas/status'
30423044
mediaUrl:
30433045
$ref: '#/components/schemas/mediaUrl'
3046+
recordingName:
3047+
$ref: '#/components/schemas/recordingName'
30443048
machineDetectionConfiguration:
30453049
type: object
30463050
description: >-
@@ -3254,6 +3258,7 @@ components:
32543258
$ref: '#/components/schemas/callTranscriptionMetadata'
32553259
example:
32563260
- transcriptionId: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
3261+
transcriptionName: live_transcription
32573262
transcriptionUrl: >-
32583263
https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
32593264
callTranscriptionMetadata:
@@ -3263,6 +3268,12 @@ components:
32633268
type: string
32643269
description: The programmable voice API transcription ID.
32653270
example: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
3271+
transcriptionName:
3272+
type: string
3273+
description: >-
3274+
The programmable voice API transcription name. This name could be
3275+
provided by the user when creating the transcription.
3276+
example: live_transcription
32663277
transcriptionUrl:
32673278
type: string
32683279
description: >-
@@ -4259,6 +4270,10 @@ components:
42594270
type: string
42604271
description: The call id associated with the event.
42614272
example: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
4273+
recordingName:
4274+
type: string
4275+
description: A name to identify this recording.
4276+
example: my-recording-name
42624277
callUrl:
42634278
type: string
42644279
description: The URL of the call associated with the event.

0 commit comments

Comments
 (0)