From cb48c9e5c5fc6b8fdbd5d68712b16048ca88a93f Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 13 Aug 2024 14:06:57 +0000 Subject: [PATCH] Generate SDK with OpenAPI Generator Version 7.1.0 --- .openapi-generator/FILES | 2 -- Bandwidth.Standard.sln | 10 ++++----- api/openapi.yaml | 20 +++++++++++++++++ bandwidth.yml | 15 +++++++++++++ docs/CallRecordingMetadata.md | 1 + docs/CallTranscriptionMetadata.md | 1 + docs/ConferenceRecordingMetadata.md | 1 + .../Model/CallRecordingMetadata.cs | 22 ++++++++++++++++++- .../Model/CallTranscriptionMetadata.cs | 22 ++++++++++++++++++- .../Model/ConferenceRecordingMetadata.cs | 22 ++++++++++++++++++- 10 files changed, 106 insertions(+), 10 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 18e18f2e..af0f5e01 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -105,8 +105,6 @@ docs/VerifyCodeResponse.md docs/VoiceApiError.md docs/VoiceCodeResponse.md git_push.sh -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 diff --git a/Bandwidth.Standard.sln b/Bandwidth.Standard.sln index 70a51840..d84a7016 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", "{6E2C3915-50F7-4853-B6BA-5191237A5ED8}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{C014660B-96B9-470B-B230-C996A858614A}" 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 - {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 + {C014660B-96B9-470B-B230-C996A858614A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C014660B-96B9-470B-B230-C996A858614A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C014660B-96B9-470B-B230-C996A858614A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C014660B-96B9-470B-B230-C996A858614A}.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/api/openapi.yaml b/api/openapi.yaml index eb860b1a..726b85a7 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -7322,6 +7322,7 @@ components: 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 status: completed parentCallId: c-95ac8d6e-1a31c52e-b38f-4198-93c1-51633ec68f8d + recordingName: my-recording-name transferCallerId: "+15555555555" transferTo: "+15555555555" duration: PT13.67S @@ -7421,6 +7422,10 @@ components: type: string transcription: $ref: '#/components/schemas/recordingTranscriptionMetadata' + recordingName: + description: A name to identify this recording. + example: my-recording-name + type: string type: object conference: example: @@ -7632,6 +7637,7 @@ components: channels: 1 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 conferenceId: conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9 + recordingName: my-recording-name name: my-conference-name startTime: 2022-06-17T22:19:40.375Z endTime: 2022-06-17T22:20:00Z @@ -7694,6 +7700,10 @@ components: format: uri nullable: true type: string + recordingName: + description: A name to identify this recording. + example: my-recording-name + type: string type: object machineDetectionConfiguration: description: "The machine detection request used to perform machine\ @@ -7877,6 +7887,7 @@ components: callTranscriptionMetadataList: example: - transcriptionId: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b + transcriptionName: live_transcription 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 items: $ref: '#/components/schemas/callTranscriptionMetadata' @@ -7887,6 +7898,11 @@ components: description: The programmable voice API transcription ID. example: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b type: string + transcriptionName: + description: The programmable voice API transcription name. This name could + be provided by the user when creating the transcription. + example: live_transcription + type: string transcriptionUrl: description: |- A URL that may be used to retrieve the transcription itself. This points to the @@ -9838,6 +9854,10 @@ components: description: The call id associated with the event. example: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 type: string + recordingName: + description: A name to identify this recording. + example: my-recording-name + type: string callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 diff --git a/bandwidth.yml b/bandwidth.yml index f3e5be8e..e0b5f0dc 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -2802,6 +2802,8 @@ components: $ref: '#/components/schemas/mediaUrl' transcription: $ref: '#/components/schemas/recordingTranscriptionMetadata' + recordingName: + $ref: '#/components/schemas/recordingName' conference: type: object properties: @@ -3041,6 +3043,8 @@ components: $ref: '#/components/schemas/status' mediaUrl: $ref: '#/components/schemas/mediaUrl' + recordingName: + $ref: '#/components/schemas/recordingName' machineDetectionConfiguration: type: object description: >- @@ -3254,6 +3258,7 @@ components: $ref: '#/components/schemas/callTranscriptionMetadata' example: - transcriptionId: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b + transcriptionName: live_transcription 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 callTranscriptionMetadata: @@ -3263,6 +3268,12 @@ components: type: string description: The programmable voice API transcription ID. example: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b + transcriptionName: + type: string + description: >- + The programmable voice API transcription name. This name could be + provided by the user when creating the transcription. + example: live_transcription transcriptionUrl: type: string description: >- @@ -4259,6 +4270,10 @@ components: type: string description: The call id associated with the event. example: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + recordingName: + type: string + description: A name to identify this recording. + example: my-recording-name callUrl: type: string description: The URL of the call associated with the event. diff --git a/docs/CallRecordingMetadata.md b/docs/CallRecordingMetadata.md index 564d0bd6..3477fda6 100644 --- a/docs/CallRecordingMetadata.md +++ b/docs/CallRecordingMetadata.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **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] **MediaUrl** | **string** | The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. | [optional] **Transcription** | [**RecordingTranscriptionMetadata**](RecordingTranscriptionMetadata.md) | | [optional] +**RecordingName** | **string** | A name to identify this recording. | [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/docs/CallTranscriptionMetadata.md b/docs/CallTranscriptionMetadata.md index 3d600a30..12ebe023 100644 --- a/docs/CallTranscriptionMetadata.md +++ b/docs/CallTranscriptionMetadata.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **TranscriptionId** | **string** | The programmable voice API transcription ID. | [optional] +**TranscriptionName** | **string** | The programmable voice API transcription name. This name could be provided by the user when creating the transcription. | [optional] **TranscriptionUrl** | **string** | A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint. | [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/docs/ConferenceRecordingMetadata.md b/docs/ConferenceRecordingMetadata.md index 19ed1e7c..4b36c19a 100644 --- a/docs/ConferenceRecordingMetadata.md +++ b/docs/ConferenceRecordingMetadata.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **FileFormat** | **FileFormatEnum** | | [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] **MediaUrl** | **string** | The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. | [optional] +**RecordingName** | **string** | A name to identify this recording. | [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/Model/CallRecordingMetadata.cs b/src/Bandwidth.Standard/Model/CallRecordingMetadata.cs index 75afad4b..f9e051ad 100644 --- a/src/Bandwidth.Standard/Model/CallRecordingMetadata.cs +++ b/src/Bandwidth.Standard/Model/CallRecordingMetadata.cs @@ -65,7 +65,8 @@ public partial class CallRecordingMetadata : IEquatable, /// 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.. /// The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded.. /// transcription. - public CallRecordingMetadata(string applicationId = default(string), string accountId = default(string), string callId = default(string), string parentCallId = default(string), string recordingId = default(string), string to = default(string), string from = default(string), string transferCallerId = default(string), string transferTo = default(string), string duration = default(string), CallDirectionEnum? direction = default(CallDirectionEnum?), int channels = default(int), DateTime startTime = default(DateTime), DateTime endTime = default(DateTime), FileFormatEnum? fileFormat = default(FileFormatEnum?), string status = default(string), string mediaUrl = default(string), RecordingTranscriptionMetadata transcription = default(RecordingTranscriptionMetadata)) + /// A name to identify this recording.. + public CallRecordingMetadata(string applicationId = default(string), string accountId = default(string), string callId = default(string), string parentCallId = default(string), string recordingId = default(string), string to = default(string), string from = default(string), string transferCallerId = default(string), string transferTo = default(string), string duration = default(string), CallDirectionEnum? direction = default(CallDirectionEnum?), int channels = default(int), DateTime startTime = default(DateTime), DateTime endTime = default(DateTime), FileFormatEnum? fileFormat = default(FileFormatEnum?), string status = default(string), string mediaUrl = default(string), RecordingTranscriptionMetadata transcription = default(RecordingTranscriptionMetadata), string recordingName = default(string)) { this.ApplicationId = applicationId; this.AccountId = accountId; @@ -85,6 +86,7 @@ public partial class CallRecordingMetadata : IEquatable, this.Status = status; this.MediaUrl = mediaUrl; this.Transcription = transcription; + this.RecordingName = recordingName; } /// @@ -213,6 +215,14 @@ public partial class CallRecordingMetadata : IEquatable, [DataMember(Name = "transcription", EmitDefaultValue = true)] public RecordingTranscriptionMetadata Transcription { get; set; } + /// + /// A name to identify this recording. + /// + /// A name to identify this recording. + /// my-recording-name + [DataMember(Name = "recordingName", EmitDefaultValue = false)] + public string RecordingName { get; set; } + /// /// Returns the string presentation of the object /// @@ -239,6 +249,7 @@ public override string ToString() sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" MediaUrl: ").Append(MediaUrl).Append("\n"); sb.Append(" Transcription: ").Append(Transcription).Append("\n"); + sb.Append(" RecordingName: ").Append(RecordingName).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -360,6 +371,11 @@ public bool Equals(CallRecordingMetadata input) this.Transcription == input.Transcription || (this.Transcription != null && this.Transcription.Equals(input.Transcription)) + ) && + ( + this.RecordingName == input.RecordingName || + (this.RecordingName != null && + this.RecordingName.Equals(input.RecordingName)) ); } @@ -435,6 +451,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Transcription.GetHashCode(); } + if (this.RecordingName != null) + { + hashCode = (hashCode * 59) + this.RecordingName.GetHashCode(); + } return hashCode; } } diff --git a/src/Bandwidth.Standard/Model/CallTranscriptionMetadata.cs b/src/Bandwidth.Standard/Model/CallTranscriptionMetadata.cs index ec01143e..5febaa04 100644 --- a/src/Bandwidth.Standard/Model/CallTranscriptionMetadata.cs +++ b/src/Bandwidth.Standard/Model/CallTranscriptionMetadata.cs @@ -36,10 +36,12 @@ public partial class CallTranscriptionMetadata : IEquatable class. /// /// The programmable voice API transcription ID.. + /// The programmable voice API transcription name. This name could be provided by the user when creating the transcription.. /// A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint.. - public CallTranscriptionMetadata(string transcriptionId = default(string), string transcriptionUrl = default(string)) + public CallTranscriptionMetadata(string transcriptionId = default(string), string transcriptionName = default(string), string transcriptionUrl = default(string)) { this.TranscriptionId = transcriptionId; + this.TranscriptionName = transcriptionName; this.TranscriptionUrl = transcriptionUrl; } @@ -51,6 +53,14 @@ public partial class CallTranscriptionMetadata : IEquatable + /// The programmable voice API transcription name. This name could be provided by the user when creating the transcription. + /// + /// The programmable voice API transcription name. This name could be provided by the user when creating the transcription. + /// live_transcription + [DataMember(Name = "transcriptionName", EmitDefaultValue = false)] + public string TranscriptionName { get; set; } + /// /// A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint. /// @@ -68,6 +78,7 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class CallTranscriptionMetadata {\n"); sb.Append(" TranscriptionId: ").Append(TranscriptionId).Append("\n"); + sb.Append(" TranscriptionName: ").Append(TranscriptionName).Append("\n"); sb.Append(" TranscriptionUrl: ").Append(TranscriptionUrl).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -109,6 +120,11 @@ public bool Equals(CallTranscriptionMetadata input) (this.TranscriptionId != null && this.TranscriptionId.Equals(input.TranscriptionId)) ) && + ( + this.TranscriptionName == input.TranscriptionName || + (this.TranscriptionName != null && + this.TranscriptionName.Equals(input.TranscriptionName)) + ) && ( this.TranscriptionUrl == input.TranscriptionUrl || (this.TranscriptionUrl != null && @@ -129,6 +145,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.TranscriptionId.GetHashCode(); } + if (this.TranscriptionName != null) + { + hashCode = (hashCode * 59) + this.TranscriptionName.GetHashCode(); + } if (this.TranscriptionUrl != null) { hashCode = (hashCode * 59) + this.TranscriptionUrl.GetHashCode(); diff --git a/src/Bandwidth.Standard/Model/ConferenceRecordingMetadata.cs b/src/Bandwidth.Standard/Model/ConferenceRecordingMetadata.cs index ab4af83e..54d29e4c 100644 --- a/src/Bandwidth.Standard/Model/ConferenceRecordingMetadata.cs +++ b/src/Bandwidth.Standard/Model/ConferenceRecordingMetadata.cs @@ -52,7 +52,8 @@ public partial class ConferenceRecordingMetadata : IEquatablefileFormat. /// 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.. /// The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded.. - public ConferenceRecordingMetadata(string accountId = default(string), string conferenceId = default(string), string name = default(string), string recordingId = default(string), string duration = default(string), int channels = default(int), DateTime startTime = default(DateTime), DateTime endTime = default(DateTime), FileFormatEnum? fileFormat = default(FileFormatEnum?), string status = default(string), string mediaUrl = default(string)) + /// A name to identify this recording.. + public ConferenceRecordingMetadata(string accountId = default(string), string conferenceId = default(string), string name = default(string), string recordingId = default(string), string duration = default(string), int channels = default(int), DateTime startTime = default(DateTime), DateTime endTime = default(DateTime), FileFormatEnum? fileFormat = default(FileFormatEnum?), string status = default(string), string mediaUrl = default(string), string recordingName = default(string)) { this.AccountId = accountId; this.ConferenceId = conferenceId; @@ -65,6 +66,7 @@ public partial class ConferenceRecordingMetadata : IEquatable @@ -147,6 +149,14 @@ public partial class ConferenceRecordingMetadata : IEquatable + /// A name to identify this recording. + /// + /// A name to identify this recording. + /// my-recording-name + [DataMember(Name = "recordingName", EmitDefaultValue = false)] + public string RecordingName { get; set; } + /// /// Returns the string presentation of the object /// @@ -166,6 +176,7 @@ public override string ToString() sb.Append(" FileFormat: ").Append(FileFormat).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" MediaUrl: ").Append(MediaUrl).Append("\n"); + sb.Append(" RecordingName: ").Append(RecordingName).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -253,6 +264,11 @@ public bool Equals(ConferenceRecordingMetadata input) this.MediaUrl == input.MediaUrl || (this.MediaUrl != null && this.MediaUrl.Equals(input.MediaUrl)) + ) && + ( + this.RecordingName == input.RecordingName || + (this.RecordingName != null && + this.RecordingName.Equals(input.RecordingName)) ); } @@ -303,6 +319,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.MediaUrl.GetHashCode(); } + if (this.RecordingName != null) + { + hashCode = (hashCode * 59) + this.RecordingName.GetHashCode(); + } return hashCode; } }