Skip to content

Commit 28a1789

Browse files
authored
Merge pull request #111 from Bandwidth/SWI-5556
SWI-5556 Update SDK Based on Recent Spec Changes
2 parents 5e166f3 + 459251e commit 28a1789

21 files changed

+321
-117
lines changed

.openapi-generator/FILES

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ docs/CallRecordingMetadata.md
1111
docs/CallState.md
1212
docs/CallStateEnum.md
1313
docs/CallTranscription.md
14+
docs/CallTranscriptionDetectedLanguageEnum.md
1415
docs/CallTranscriptionMetadata.md
1516
docs/CallTranscriptionResponse.md
17+
docs/CallTranscriptionTrackEnum.md
1618
docs/CallbackMethodEnum.md
1719
docs/CallsApi.md
1820
docs/CodeRequest.md
@@ -103,12 +105,8 @@ docs/VerifyCodeResponse.md
103105
docs/VoiceApiError.md
104106
docs/VoiceCodeResponse.md
105107
git_push.sh
106-
src/Bandwidth.Standard.Test/Api/TranscriptionsApiTests.cs
107-
src/Bandwidth.Standard.Test/Model/CallTranscriptionMetadataTests.cs
108-
src/Bandwidth.Standard.Test/Model/CallTranscriptionResponseTests.cs
109-
src/Bandwidth.Standard.Test/Model/CallTranscriptionTests.cs
110-
src/Bandwidth.Standard.Test/Model/RecordingTranscriptionMetadataTests.cs
111-
src/Bandwidth.Standard.Test/Model/RecordingTranscriptionsTests.cs
108+
src/Bandwidth.Standard.Test/Model/CallTranscriptionDetectedLanguageEnumTests.cs
109+
src/Bandwidth.Standard.Test/Model/CallTranscriptionTrackEnumTests.cs
112110
src/Bandwidth.Standard/Api/CallsApi.cs
113111
src/Bandwidth.Standard/Api/ConferencesApi.cs
114112
src/Bandwidth.Standard/Api/MFAApi.cs
@@ -144,8 +142,10 @@ src/Bandwidth.Standard/Model/CallRecordingMetadata.cs
144142
src/Bandwidth.Standard/Model/CallState.cs
145143
src/Bandwidth.Standard/Model/CallStateEnum.cs
146144
src/Bandwidth.Standard/Model/CallTranscription.cs
145+
src/Bandwidth.Standard/Model/CallTranscriptionDetectedLanguageEnum.cs
147146
src/Bandwidth.Standard/Model/CallTranscriptionMetadata.cs
148147
src/Bandwidth.Standard/Model/CallTranscriptionResponse.cs
148+
src/Bandwidth.Standard/Model/CallTranscriptionTrackEnum.cs
149149
src/Bandwidth.Standard/Model/CallbackMethodEnum.cs
150150
src/Bandwidth.Standard/Model/CodeRequest.cs
151151
src/Bandwidth.Standard/Model/Conference.cs

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", "{C6094E4B-D95D-4E49-8ECE-F2AD1A9044BB}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{6E2C3915-50F7-4853-B6BA-5191237A5ED8}"
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-
{C6094E4B-D95D-4E49-8ECE-F2AD1A9044BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{C6094E4B-D95D-4E49-8ECE-F2AD1A9044BB}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{C6094E4B-D95D-4E49-8ECE-F2AD1A9044BB}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{C6094E4B-D95D-4E49-8ECE-F2AD1A9044BB}.Release|Any CPU.Build.0 = Release|Any CPU
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
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,10 @@ Class | Method | HTTP request | Description
160160
- [Model.CallState](docs/CallState.md)
161161
- [Model.CallStateEnum](docs/CallStateEnum.md)
162162
- [Model.CallTranscription](docs/CallTranscription.md)
163+
- [Model.CallTranscriptionDetectedLanguageEnum](docs/CallTranscriptionDetectedLanguageEnum.md)
163164
- [Model.CallTranscriptionMetadata](docs/CallTranscriptionMetadata.md)
164165
- [Model.CallTranscriptionResponse](docs/CallTranscriptionResponse.md)
166+
- [Model.CallTranscriptionTrackEnum](docs/CallTranscriptionTrackEnum.md)
165167
- [Model.CallbackMethodEnum](docs/CallbackMethodEnum.md)
166168
- [Model.CodeRequest](docs/CodeRequest.md)
167169
- [Model.Conference](docs/Conference.md)

api/openapi.yaml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6751,6 +6751,21 @@ components:
67516751
- async
67526752
example: async
67536753
type: string
6754+
callTranscriptionDetectedLanguageEnum:
6755+
description: The detected language for this transcription.
6756+
enum:
6757+
- en-US
6758+
- es-US
6759+
- fr-FR
6760+
example: en-US
6761+
type: string
6762+
callTranscriptionTrackEnum:
6763+
description: Which `track` this transcription is derived from.
6764+
enum:
6765+
- inbound
6766+
- outbound
6767+
example: inbound
6768+
type: string
67546769
createCall:
67556770
properties:
67566771
to:
@@ -7882,17 +7897,17 @@ components:
78827897
callTranscriptionResponse:
78837898
example:
78847899
callId: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
7885-
accountId: "920012"
7900+
accountId: "9900000"
78867901
transcriptionId: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
78877902
tracks:
78887903
- detectedLanguage: en-US
78897904
track: inbound
7890-
text: Hello World! This is an example.
7905+
transcript: Hello World! This is an example.
78917906
confidence: 0.9
78927907
properties:
78937908
accountId:
78947909
description: The user account associated with the call.
7895-
example: "920012"
7910+
example: "9900000"
78967911
type: string
78977912
callId:
78987913
description: The call id associated with the event.
@@ -7906,7 +7921,7 @@ components:
79067921
example:
79077922
- detectedLanguage: en-US
79087923
track: inbound
7909-
text: Hello World! This is an example.
7924+
transcript: Hello World! This is an example.
79107925
confidence: 0.9
79117926
items:
79127927
$ref: '#/components/schemas/callTranscription'
@@ -7915,20 +7930,9 @@ components:
79157930
callTranscription:
79167931
properties:
79177932
detectedLanguage:
7918-
description: The detected language for this transcription.
7919-
enum:
7920-
- en-US
7921-
- es-US
7922-
- fr-FR
7923-
example: en-US
7924-
type: string
7933+
$ref: '#/components/schemas/callTranscriptionDetectedLanguageEnum'
79257934
track:
7926-
description: Which `track` this transcription is derived from.
7927-
enum:
7928-
- inbound
7929-
- outbound
7930-
example: inbound
7931-
type: string
7935+
$ref: '#/components/schemas/callTranscriptionTrackEnum'
79327936
transcript:
79337937
description: The transcription itself.
79347938
example: Hello World! This is an example.
@@ -7967,6 +7971,7 @@ components:
79677971
completedTime:
79687972
description: The time that the transcription was completed
79697973
example: 2022-06-13T18:46:29.715Z
7974+
format: date-time
79707975
type: string
79717976
url:
79727977
description: "The URL of the [transcription](#operation/getCallTranscription)"

bandwidth.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2131,6 +2131,21 @@ components:
21312131
21322132
and will include its result.
21332133
example: async
2134+
callTranscriptionDetectedLanguageEnum:
2135+
type: string
2136+
enum:
2137+
- en-US
2138+
- es-US
2139+
- fr-FR
2140+
description: The detected language for this transcription.
2141+
example: en-US
2142+
callTranscriptionTrackEnum:
2143+
type: string
2144+
enum:
2145+
- inbound
2146+
- outbound
2147+
description: Which `track` this transcription is derived from.
2148+
example: inbound
21342149
createCall:
21352150
type: object
21362151
required:
@@ -3265,7 +3280,7 @@ components:
32653280
accountId:
32663281
type: string
32673282
description: The user account associated with the call.
3268-
example: '920012'
3283+
example: '9900000'
32693284
callId:
32703285
type: string
32713286
description: The call id associated with the event.
@@ -3281,26 +3296,15 @@ components:
32813296
example:
32823297
- detectedLanguage: en-US
32833298
track: inbound
3284-
text: Hello World! This is an example.
3299+
transcript: Hello World! This is an example.
32853300
confidence: 0.9
32863301
callTranscription:
32873302
type: object
32883303
properties:
32893304
detectedLanguage:
3290-
type: string
3291-
enum:
3292-
- en-US
3293-
- es-US
3294-
- fr-FR
3295-
description: The detected language for this transcription.
3296-
example: en-US
3305+
$ref: '#/components/schemas/callTranscriptionDetectedLanguageEnum'
32973306
track:
3298-
type: string
3299-
enum:
3300-
- inbound
3301-
- outbound
3302-
description: Which `track` this transcription is derived from.
3303-
example: inbound
3307+
$ref: '#/components/schemas/callTranscriptionTrackEnum'
33043308
transcript:
33053309
type: string
33063310
description: The transcription itself.
@@ -3327,6 +3331,7 @@ components:
33273331
$ref: '#/components/schemas/status'
33283332
completedTime:
33293333
type: string
3334+
format: date-time
33303335
description: The time that the transcription was completed
33313336
example: '2022-06-13T18:46:29.715Z'
33323337
url:

docs/CallTranscription.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**DetectedLanguage** | **string** | The detected language for this transcription. | [optional]
8-
**Track** | **string** | Which `track` this transcription is derived from. | [optional]
7+
**DetectedLanguage** | **CallTranscriptionDetectedLanguageEnum** | | [optional]
8+
**Track** | **CallTranscriptionTrackEnum** | | [optional]
99
**Transcript** | **string** | The transcription itself. | [optional]
1010
**Confidence** | **double** | How confident the transcription engine was in transcribing the associated audio (from `0` to `1`). | [optional]
1111

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Bandwidth.Standard.Model.CallTranscriptionDetectedLanguageEnum
2+
The detected language for this transcription.
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+

docs/CallTranscriptionTrackEnum.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Bandwidth.Standard.Model.CallTranscriptionTrackEnum
2+
Which `track` this transcription is derived from.
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+

docs/RecordingTranscriptionMetadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**Id** | **string** | The unique transcription ID | [optional]
99
**Status** | **string** | The current status of the process. For recording, current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. For transcriptions, current possible values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values. | [optional]
10-
**CompletedTime** | **string** | The time that the transcription was completed | [optional]
10+
**CompletedTime** | **DateTime** | The time that the transcription was completed | [optional]
1111
**Url** | **string** | The URL of the [transcription](#operation/getCallTranscription) | [optional]
1212

1313
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

src/Bandwidth.Standard.Test/Api/RecordingsApiTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public void GetCallRecordingTest()
329329
transcription: new RecordingTranscriptionMetadata(
330330
id: "t-387bd648-18f3-4823-9d16-746bca0003c9",
331331
status: "completed",
332-
completedTime: "2022-06-13T18:46:29.715Z",
332+
completedTime: DateTime.UtcNow,
333333
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"
334334
)
335335
);
@@ -448,7 +448,7 @@ public void ListAccountCallRecordingsTest()
448448
transcription: new RecordingTranscriptionMetadata(
449449
id: "t-387bd648-18f3-4823-9d16-746bca0003c9",
450450
status: "completed",
451-
completedTime: "2022-06-13T18:46:29.715Z",
451+
completedTime: DateTime.UtcNow,
452452
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"
453453
)
454454
);
@@ -543,7 +543,7 @@ public void ListCallRecordingsTest()
543543
transcription: new RecordingTranscriptionMetadata(
544544
id: "t-387bd648-18f3-4823-9d16-746bca0003c9",
545545
status: "completed",
546-
completedTime: "2022-06-13T18:46:29.715Z",
546+
completedTime: DateTime.UtcNow,
547547
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"
548548
)
549549
);

0 commit comments

Comments
 (0)