diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 987b0c8..18e18f2 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -11,8 +11,10 @@ docs/CallRecordingMetadata.md docs/CallState.md docs/CallStateEnum.md docs/CallTranscription.md +docs/CallTranscriptionDetectedLanguageEnum.md docs/CallTranscriptionMetadata.md docs/CallTranscriptionResponse.md +docs/CallTranscriptionTrackEnum.md docs/CallbackMethodEnum.md docs/CallsApi.md docs/CodeRequest.md @@ -103,12 +105,8 @@ docs/VerifyCodeResponse.md docs/VoiceApiError.md docs/VoiceCodeResponse.md git_push.sh -src/Bandwidth.Standard.Test/Api/TranscriptionsApiTests.cs -src/Bandwidth.Standard.Test/Model/CallTranscriptionMetadataTests.cs -src/Bandwidth.Standard.Test/Model/CallTranscriptionResponseTests.cs -src/Bandwidth.Standard.Test/Model/CallTranscriptionTests.cs -src/Bandwidth.Standard.Test/Model/RecordingTranscriptionMetadataTests.cs -src/Bandwidth.Standard.Test/Model/RecordingTranscriptionsTests.cs +src/Bandwidth.Standard.Test/Model/CallTranscriptionDetectedLanguageEnumTests.cs +src/Bandwidth.Standard.Test/Model/CallTranscriptionTrackEnumTests.cs src/Bandwidth.Standard/Api/CallsApi.cs src/Bandwidth.Standard/Api/ConferencesApi.cs src/Bandwidth.Standard/Api/MFAApi.cs @@ -144,8 +142,10 @@ src/Bandwidth.Standard/Model/CallRecordingMetadata.cs src/Bandwidth.Standard/Model/CallState.cs src/Bandwidth.Standard/Model/CallStateEnum.cs src/Bandwidth.Standard/Model/CallTranscription.cs +src/Bandwidth.Standard/Model/CallTranscriptionDetectedLanguageEnum.cs src/Bandwidth.Standard/Model/CallTranscriptionMetadata.cs src/Bandwidth.Standard/Model/CallTranscriptionResponse.cs +src/Bandwidth.Standard/Model/CallTranscriptionTrackEnum.cs src/Bandwidth.Standard/Model/CallbackMethodEnum.cs src/Bandwidth.Standard/Model/CodeRequest.cs src/Bandwidth.Standard/Model/Conference.cs diff --git a/Bandwidth.Standard.sln b/Bandwidth.Standard.sln index b2e06b3..70a5184 100644 --- a/Bandwidth.Standard.sln +++ b/Bandwidth.Standard.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{C6094E4B-D95D-4E49-8ECE-F2AD1A9044BB}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{6E2C3915-50F7-4853-B6BA-5191237A5ED8}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {C6094E4B-D95D-4E49-8ECE-F2AD1A9044BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C6094E4B-D95D-4E49-8ECE-F2AD1A9044BB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C6094E4B-D95D-4E49-8ECE-F2AD1A9044BB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C6094E4B-D95D-4E49-8ECE-F2AD1A9044BB}.Release|Any CPU.Build.0 = Release|Any CPU + {6E2C3915-50F7-4853-B6BA-5191237A5ED8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6E2C3915-50F7-4853-B6BA-5191237A5ED8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6E2C3915-50F7-4853-B6BA-5191237A5ED8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6E2C3915-50F7-4853-B6BA-5191237A5ED8}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/README.md b/README.md index 2328ea1..30963d0 100644 --- a/README.md +++ b/README.md @@ -160,8 +160,10 @@ Class | Method | HTTP request | Description - [Model.CallState](docs/CallState.md) - [Model.CallStateEnum](docs/CallStateEnum.md) - [Model.CallTranscription](docs/CallTranscription.md) + - [Model.CallTranscriptionDetectedLanguageEnum](docs/CallTranscriptionDetectedLanguageEnum.md) - [Model.CallTranscriptionMetadata](docs/CallTranscriptionMetadata.md) - [Model.CallTranscriptionResponse](docs/CallTranscriptionResponse.md) + - [Model.CallTranscriptionTrackEnum](docs/CallTranscriptionTrackEnum.md) - [Model.CallbackMethodEnum](docs/CallbackMethodEnum.md) - [Model.CodeRequest](docs/CodeRequest.md) - [Model.Conference](docs/Conference.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 3bc89b3..eb860b1 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -6751,6 +6751,21 @@ components: - async example: async type: string + callTranscriptionDetectedLanguageEnum: + description: The detected language for this transcription. + enum: + - en-US + - es-US + - fr-FR + example: en-US + type: string + callTranscriptionTrackEnum: + description: Which `track` this transcription is derived from. + enum: + - inbound + - outbound + example: inbound + type: string createCall: properties: to: @@ -7882,17 +7897,17 @@ components: callTranscriptionResponse: example: callId: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 - accountId: "920012" + accountId: "9900000" transcriptionId: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b tracks: - detectedLanguage: en-US track: inbound - text: Hello World! This is an example. + transcript: Hello World! This is an example. confidence: 0.9 properties: accountId: description: The user account associated with the call. - example: "920012" + example: "9900000" type: string callId: description: The call id associated with the event. @@ -7906,7 +7921,7 @@ components: example: - detectedLanguage: en-US track: inbound - text: Hello World! This is an example. + transcript: Hello World! This is an example. confidence: 0.9 items: $ref: '#/components/schemas/callTranscription' @@ -7915,20 +7930,9 @@ components: callTranscription: properties: detectedLanguage: - description: The detected language for this transcription. - enum: - - en-US - - es-US - - fr-FR - example: en-US - type: string + $ref: '#/components/schemas/callTranscriptionDetectedLanguageEnum' track: - description: Which `track` this transcription is derived from. - enum: - - inbound - - outbound - example: inbound - type: string + $ref: '#/components/schemas/callTranscriptionTrackEnum' transcript: description: The transcription itself. example: Hello World! This is an example. @@ -7967,6 +7971,7 @@ components: completedTime: description: The time that the transcription was completed example: 2022-06-13T18:46:29.715Z + format: date-time type: string url: description: "The URL of the [transcription](#operation/getCallTranscription)" diff --git a/bandwidth.yml b/bandwidth.yml index 96bfc9d..f3e5be8 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -2131,6 +2131,21 @@ components: and will include its result. example: async + callTranscriptionDetectedLanguageEnum: + type: string + enum: + - en-US + - es-US + - fr-FR + description: The detected language for this transcription. + example: en-US + callTranscriptionTrackEnum: + type: string + enum: + - inbound + - outbound + description: Which `track` this transcription is derived from. + example: inbound createCall: type: object required: @@ -3265,7 +3280,7 @@ components: accountId: type: string description: The user account associated with the call. - example: '920012' + example: '9900000' callId: type: string description: The call id associated with the event. @@ -3281,26 +3296,15 @@ components: example: - detectedLanguage: en-US track: inbound - text: Hello World! This is an example. + transcript: Hello World! This is an example. confidence: 0.9 callTranscription: type: object properties: detectedLanguage: - type: string - enum: - - en-US - - es-US - - fr-FR - description: The detected language for this transcription. - example: en-US + $ref: '#/components/schemas/callTranscriptionDetectedLanguageEnum' track: - type: string - enum: - - inbound - - outbound - description: Which `track` this transcription is derived from. - example: inbound + $ref: '#/components/schemas/callTranscriptionTrackEnum' transcript: type: string description: The transcription itself. @@ -3327,6 +3331,7 @@ components: $ref: '#/components/schemas/status' completedTime: type: string + format: date-time description: The time that the transcription was completed example: '2022-06-13T18:46:29.715Z' url: diff --git a/docs/CallTranscription.md b/docs/CallTranscription.md index 122d601..d2f1f34 100644 --- a/docs/CallTranscription.md +++ b/docs/CallTranscription.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DetectedLanguage** | **string** | The detected language for this transcription. | [optional] -**Track** | **string** | Which `track` this transcription is derived from. | [optional] +**DetectedLanguage** | **CallTranscriptionDetectedLanguageEnum** | | [optional] +**Track** | **CallTranscriptionTrackEnum** | | [optional] **Transcript** | **string** | The transcription itself. | [optional] **Confidence** | **double** | How confident the transcription engine was in transcribing the associated audio (from `0` to `1`). | [optional] diff --git a/docs/CallTranscriptionDetectedLanguageEnum.md b/docs/CallTranscriptionDetectedLanguageEnum.md new file mode 100644 index 0000000..f1b15a3 --- /dev/null +++ b/docs/CallTranscriptionDetectedLanguageEnum.md @@ -0,0 +1,10 @@ +# Bandwidth.Standard.Model.CallTranscriptionDetectedLanguageEnum +The detected language for this transcription. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CallTranscriptionTrackEnum.md b/docs/CallTranscriptionTrackEnum.md new file mode 100644 index 0000000..acad976 --- /dev/null +++ b/docs/CallTranscriptionTrackEnum.md @@ -0,0 +1,10 @@ +# Bandwidth.Standard.Model.CallTranscriptionTrackEnum +Which `track` this transcription is derived from. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RecordingTranscriptionMetadata.md b/docs/RecordingTranscriptionMetadata.md index fa0c93a..2172814 100644 --- a/docs/RecordingTranscriptionMetadata.md +++ b/docs/RecordingTranscriptionMetadata.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **string** | The unique transcription ID | [optional] **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] -**CompletedTime** | **string** | The time that the transcription was completed | [optional] +**CompletedTime** | **DateTime** | The time that the transcription was completed | [optional] **Url** | **string** | The URL of the [transcription](#operation/getCallTranscription) | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/src/Bandwidth.Standard.Test/Api/RecordingsApiTests.cs b/src/Bandwidth.Standard.Test/Api/RecordingsApiTests.cs index 417dfa2..d9bd06d 100644 --- a/src/Bandwidth.Standard.Test/Api/RecordingsApiTests.cs +++ b/src/Bandwidth.Standard.Test/Api/RecordingsApiTests.cs @@ -329,7 +329,7 @@ public void GetCallRecordingTest() transcription: new RecordingTranscriptionMetadata( id: "t-387bd648-18f3-4823-9d16-746bca0003c9", status: "completed", - completedTime: "2022-06-13T18:46:29.715Z", + completedTime: DateTime.UtcNow, 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" ) ); @@ -448,7 +448,7 @@ public void ListAccountCallRecordingsTest() transcription: new RecordingTranscriptionMetadata( id: "t-387bd648-18f3-4823-9d16-746bca0003c9", status: "completed", - completedTime: "2022-06-13T18:46:29.715Z", + completedTime: DateTime.UtcNow, 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" ) ); @@ -543,7 +543,7 @@ public void ListCallRecordingsTest() transcription: new RecordingTranscriptionMetadata( id: "t-387bd648-18f3-4823-9d16-746bca0003c9", status: "completed", - completedTime: "2022-06-13T18:46:29.715Z", + completedTime: DateTime.UtcNow, 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" ) ); diff --git a/src/Bandwidth.Standard.Test/Api/TranscriptionsApiTests.cs b/src/Bandwidth.Standard.Test/Api/TranscriptionsApiTests.cs index 0bd84c8..6b928d4 100644 --- a/src/Bandwidth.Standard.Test/Api/TranscriptionsApiTests.cs +++ b/src/Bandwidth.Standard.Test/Api/TranscriptionsApiTests.cs @@ -94,8 +94,8 @@ public void GetRealTimeTranscriptionTest() string callId = "c-12345"; string transcriptionId = "t-12345"; - CallTranscription.DetectedLanguageEnum detectedLanguage = CallTranscription.DetectedLanguageEnum.EnUS; - CallTranscription.TrackEnum track = CallTranscription.TrackEnum.Inbound; + CallTranscriptionDetectedLanguageEnum detectedLanguage = CallTranscriptionDetectedLanguageEnum.EnUS; + CallTranscriptionTrackEnum track = CallTranscriptionTrackEnum.Inbound; CallTranscription transcription = new CallTranscription(detectedLanguage: detectedLanguage, track: track, transcript: "abc 123 this is a test", confidence: 0.9); diff --git a/src/Bandwidth.Standard.Test/Integration/TranscriptionsIntegrationTests.cs b/src/Bandwidth.Standard.Test/Integration/TranscriptionsIntegrationTests.cs index 424c40f..39df733 100644 --- a/src/Bandwidth.Standard.Test/Integration/TranscriptionsIntegrationTests.cs +++ b/src/Bandwidth.Standard.Test/Integration/TranscriptionsIntegrationTests.cs @@ -148,7 +148,7 @@ private void CreateCallTranscription() private void ListRealTimeTranscriptions() { // Sleep for 20 seconds - System.Threading.Thread.Sleep(20000); + System.Threading.Thread.Sleep(40000); List callTranscriptions = transcriptionsApiInstance.ListRealTimeTranscriptions(accountId, testCallId); Assert.NotEmpty(callTranscriptions); diff --git a/src/Bandwidth.Standard.Test/Model/CallRecordingMetadataTests.cs b/src/Bandwidth.Standard.Test/Model/CallRecordingMetadataTests.cs index 0f334eb..f394920 100644 --- a/src/Bandwidth.Standard.Test/Model/CallRecordingMetadataTests.cs +++ b/src/Bandwidth.Standard.Test/Model/CallRecordingMetadataTests.cs @@ -225,9 +225,11 @@ public void MediaUrlTest() [Fact] public void TranscriptionTest() { - instance.Transcription = new RecordingTranscriptionMetadata("t-123", "complete", "2022-06-13T18:46:29.715Z", "https://test.url/"); + System.DateTime dateTime = DateTime.UtcNow; + + instance.Transcription = new RecordingTranscriptionMetadata("t-123", "complete", dateTime, "https://test.url/"); Assert.IsType(instance.Transcription); - Assert.Equal(new RecordingTranscriptionMetadata("t-123", "complete", "2022-06-13T18:46:29.715Z", "https://test.url/"), instance.Transcription); + Assert.Equal(new RecordingTranscriptionMetadata("t-123", "complete", dateTime, "https://test.url/"), instance.Transcription); } } diff --git a/src/Bandwidth.Standard.Test/Model/CallTranscriptionDetectedLanguageEnumTests.cs b/src/Bandwidth.Standard.Test/Model/CallTranscriptionDetectedLanguageEnumTests.cs new file mode 100644 index 0000000..d02f454 --- /dev/null +++ b/src/Bandwidth.Standard.Test/Model/CallTranscriptionDetectedLanguageEnumTests.cs @@ -0,0 +1,58 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Bandwidth.Standard.Model; +using Bandwidth.Standard.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Bandwidth.Standard.Test.Model +{ + /// + /// Class for testing CallTranscriptionDetectedLanguageEnum + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CallTranscriptionDetectedLanguageEnumTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CallTranscriptionDetectedLanguageEnum + //private CallTranscriptionDetectedLanguageEnum instance; + + public CallTranscriptionDetectedLanguageEnumTests() + { + // TODO uncomment below to create an instance of CallTranscriptionDetectedLanguageEnum + //instance = new CallTranscriptionDetectedLanguageEnum(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CallTranscriptionDetectedLanguageEnum + /// + [Fact] + public void CallTranscriptionDetectedLanguageEnumInstanceTest() + { + // TODO uncomment below to test "IsType" CallTranscriptionDetectedLanguageEnum + //Assert.IsType(instance); + } + } +} diff --git a/src/Bandwidth.Standard.Test/Model/CallTranscriptionTrackEnumTests.cs b/src/Bandwidth.Standard.Test/Model/CallTranscriptionTrackEnumTests.cs new file mode 100644 index 0000000..cc378ba --- /dev/null +++ b/src/Bandwidth.Standard.Test/Model/CallTranscriptionTrackEnumTests.cs @@ -0,0 +1,58 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Bandwidth.Standard.Model; +using Bandwidth.Standard.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Bandwidth.Standard.Test.Model +{ + /// + /// Class for testing CallTranscriptionTrackEnum + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class CallTranscriptionTrackEnumTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CallTranscriptionTrackEnum + //private CallTranscriptionTrackEnum instance; + + public CallTranscriptionTrackEnumTests() + { + // TODO uncomment below to create an instance of CallTranscriptionTrackEnum + //instance = new CallTranscriptionTrackEnum(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CallTranscriptionTrackEnum + /// + [Fact] + public void CallTranscriptionTrackEnumInstanceTest() + { + // TODO uncomment below to test "IsType" CallTranscriptionTrackEnum + //Assert.IsType(instance); + } + } +} diff --git a/src/Bandwidth.Standard/Model/CallTranscription.cs b/src/Bandwidth.Standard/Model/CallTranscription.cs index 7375fb4..9cf74da 100644 --- a/src/Bandwidth.Standard/Model/CallTranscription.cs +++ b/src/Bandwidth.Standard/Model/CallTranscription.cs @@ -32,76 +32,26 @@ namespace Bandwidth.Standard.Model [DataContract(Name = "callTranscription")] public partial class CallTranscription : IEquatable, IValidatableObject { - /// - /// The detected language for this transcription. - /// - /// The detected language for this transcription. - [JsonConverter(typeof(StringEnumConverter))] - public enum DetectedLanguageEnum - { - /// - /// Enum EnUS for value: en-US - /// - [EnumMember(Value = "en-US")] - EnUS = 1, - - /// - /// Enum EsUS for value: es-US - /// - [EnumMember(Value = "es-US")] - EsUS = 2, - - /// - /// Enum FrFR for value: fr-FR - /// - [EnumMember(Value = "fr-FR")] - FrFR = 3 - } - /// - /// The detected language for this transcription. + /// Gets or Sets DetectedLanguage /// - /// The detected language for this transcription. - /// en-US [DataMember(Name = "detectedLanguage", EmitDefaultValue = false)] - public DetectedLanguageEnum? DetectedLanguage { get; set; } - /// - /// Which `track` this transcription is derived from. - /// - /// Which `track` this transcription is derived from. - [JsonConverter(typeof(StringEnumConverter))] - public enum TrackEnum - { - /// - /// Enum Inbound for value: inbound - /// - [EnumMember(Value = "inbound")] - Inbound = 1, - - /// - /// Enum Outbound for value: outbound - /// - [EnumMember(Value = "outbound")] - Outbound = 2 - } - + public CallTranscriptionDetectedLanguageEnum? DetectedLanguage { get; set; } /// - /// Which `track` this transcription is derived from. + /// Gets or Sets Track /// - /// Which `track` this transcription is derived from. - /// inbound [DataMember(Name = "track", EmitDefaultValue = false)] - public TrackEnum? Track { get; set; } + public CallTranscriptionTrackEnum? Track { get; set; } /// /// Initializes a new instance of the class. /// - /// The detected language for this transcription.. - /// Which `track` this transcription is derived from.. + /// detectedLanguage. + /// track. /// The transcription itself.. /// How confident the transcription engine was in transcribing the associated audio (from `0` to `1`).. - public CallTranscription(DetectedLanguageEnum? detectedLanguage = default(DetectedLanguageEnum?), TrackEnum? track = default(TrackEnum?), string transcript = default(string), double confidence = default(double)) + public CallTranscription(CallTranscriptionDetectedLanguageEnum? detectedLanguage = default(CallTranscriptionDetectedLanguageEnum?), CallTranscriptionTrackEnum? track = default(CallTranscriptionTrackEnum?), string transcript = default(string), double confidence = default(double)) { this.DetectedLanguage = detectedLanguage; this.Track = track; diff --git a/src/Bandwidth.Standard/Model/CallTranscriptionDetectedLanguageEnum.cs b/src/Bandwidth.Standard/Model/CallTranscriptionDetectedLanguageEnum.cs new file mode 100644 index 0000000..d2a29c1 --- /dev/null +++ b/src/Bandwidth.Standard/Model/CallTranscriptionDetectedLanguageEnum.cs @@ -0,0 +1,55 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Bandwidth.Standard.Client.OpenAPIDateConverter; + +namespace Bandwidth.Standard.Model +{ + /// + /// The detected language for this transcription. + /// + /// The detected language for this transcription. + [JsonConverter(typeof(StringEnumConverter))] + public enum CallTranscriptionDetectedLanguageEnum + { + /// + /// Enum EnUS for value: en-US + /// + [EnumMember(Value = "en-US")] + EnUS = 1, + + /// + /// Enum EsUS for value: es-US + /// + [EnumMember(Value = "es-US")] + EsUS = 2, + + /// + /// Enum FrFR for value: fr-FR + /// + [EnumMember(Value = "fr-FR")] + FrFR = 3 + } + +} diff --git a/src/Bandwidth.Standard/Model/CallTranscriptionMetadata.cs b/src/Bandwidth.Standard/Model/CallTranscriptionMetadata.cs index 54f0525..ec01143 100644 --- a/src/Bandwidth.Standard/Model/CallTranscriptionMetadata.cs +++ b/src/Bandwidth.Standard/Model/CallTranscriptionMetadata.cs @@ -52,9 +52,9 @@ public partial class CallTranscriptionMetadata : IEquatable - /// A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getRecordingTranscription) endpoint. + /// A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint. /// - /// A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getRecordingTranscription) endpoint. + /// A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint. /// https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b [DataMember(Name = "transcriptionUrl", EmitDefaultValue = false)] public string TranscriptionUrl { get; set; } diff --git a/src/Bandwidth.Standard/Model/CallTranscriptionResponse.cs b/src/Bandwidth.Standard/Model/CallTranscriptionResponse.cs index 93352fd..0b24503 100644 --- a/src/Bandwidth.Standard/Model/CallTranscriptionResponse.cs +++ b/src/Bandwidth.Standard/Model/CallTranscriptionResponse.cs @@ -51,7 +51,7 @@ public partial class CallTranscriptionResponse : IEquatable /// The user account associated with the call. - /// 920012 + /// 9900000 [DataMember(Name = "accountId", EmitDefaultValue = false)] public string AccountId { get; set; } @@ -74,7 +74,7 @@ public partial class CallTranscriptionResponse : IEquatable /// Gets or Sets Tracks /// - /// [{"detectedLanguage":"en-US","track":"inbound","text":"Hello World! This is an example.","confidence":0.9}] + /// [{"detectedLanguage":"en-US","track":"inbound","transcript":"Hello World! This is an example.","confidence":0.9}] [DataMember(Name = "tracks", EmitDefaultValue = false)] public List Tracks { get; set; } diff --git a/src/Bandwidth.Standard/Model/CallTranscriptionTrackEnum.cs b/src/Bandwidth.Standard/Model/CallTranscriptionTrackEnum.cs new file mode 100644 index 0000000..6fb810e --- /dev/null +++ b/src/Bandwidth.Standard/Model/CallTranscriptionTrackEnum.cs @@ -0,0 +1,49 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Bandwidth.Standard.Client.OpenAPIDateConverter; + +namespace Bandwidth.Standard.Model +{ + /// + /// Which `track` this transcription is derived from. + /// + /// Which `track` this transcription is derived from. + [JsonConverter(typeof(StringEnumConverter))] + public enum CallTranscriptionTrackEnum + { + /// + /// Enum Inbound for value: inbound + /// + [EnumMember(Value = "inbound")] + Inbound = 1, + + /// + /// Enum Outbound for value: outbound + /// + [EnumMember(Value = "outbound")] + Outbound = 2 + } + +} diff --git a/src/Bandwidth.Standard/Model/RecordingTranscriptionMetadata.cs b/src/Bandwidth.Standard/Model/RecordingTranscriptionMetadata.cs index ad1c811..e90ebf4 100644 --- a/src/Bandwidth.Standard/Model/RecordingTranscriptionMetadata.cs +++ b/src/Bandwidth.Standard/Model/RecordingTranscriptionMetadata.cs @@ -39,7 +39,7 @@ public partial class RecordingTranscriptionMetadata : IEquatableThe 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.. /// The time that the transcription was completed. /// The URL of the [transcription](#operation/getCallTranscription). - public RecordingTranscriptionMetadata(string id = default(string), string status = default(string), string completedTime = default(string), string url = default(string)) + public RecordingTranscriptionMetadata(string id = default(string), string status = default(string), DateTime completedTime = default(DateTime), string url = default(string)) { this.Id = id; this.Status = status; @@ -69,7 +69,7 @@ public partial class RecordingTranscriptionMetadata : IEquatableThe time that the transcription was completed /// 2022-06-13T18:46:29.715Z [DataMember(Name = "completedTime", EmitDefaultValue = false)] - public string CompletedTime { get; set; } + public DateTime CompletedTime { get; set; } /// /// The URL of the [transcription](#operation/getCallTranscription)