Skip to content

Commit

Permalink
Generate SDK with OpenAPI Generator Version 7.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DX-Bandwidth committed Aug 13, 2024
1 parent 28a1789 commit cb48c9e
Show file tree
Hide file tree
Showing 10 changed files with 106 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions Bandwidth.Standard.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
20 changes: 20 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 <a href='/docs/voice/guides/machineDetection'>machine\
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2802,6 +2802,8 @@ components:
$ref: '#/components/schemas/mediaUrl'
transcription:
$ref: '#/components/schemas/recordingTranscriptionMetadata'
recordingName:
$ref: '#/components/schemas/recordingName'
conference:
type: object
properties:
Expand Down Expand Up @@ -3041,6 +3043,8 @@ components:
$ref: '#/components/schemas/status'
mediaUrl:
$ref: '#/components/schemas/mediaUrl'
recordingName:
$ref: '#/components/schemas/recordingName'
machineDetectionConfiguration:
type: object
description: >-
Expand Down Expand Up @@ -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:
Expand All @@ -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: >-
Expand Down Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions docs/CallRecordingMetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Name | Type | Description | Notes
**Status** | **string** | The current status of the process. For recording, current possible values are &#39;processing&#39;, &#39;partial&#39;, &#39;complete&#39;, &#39;deleted&#39;, and &#39;error&#39;. For transcriptions, current possible values are &#39;none&#39;, &#39;processing&#39;, &#39;available&#39;, &#39;error&#39;, &#39;timeout&#39;, &#39;file-size-too-big&#39;, and &#39;file-size-too-small&#39;. 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)

1 change: 1 addition & 0 deletions docs/CallTranscriptionMetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions docs/ConferenceRecordingMetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 &#39;processing&#39;, &#39;partial&#39;, &#39;complete&#39;, &#39;deleted&#39;, and &#39;error&#39;. For transcriptions, current possible values are &#39;none&#39;, &#39;processing&#39;, &#39;available&#39;, &#39;error&#39;, &#39;timeout&#39;, &#39;file-size-too-big&#39;, and &#39;file-size-too-small&#39;. 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)

22 changes: 21 additions & 1 deletion src/Bandwidth.Standard/Model/CallRecordingMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public partial class CallRecordingMetadata : IEquatable<CallRecordingMetadata>,
/// <param name="status">The current status of the process. For recording, current possible values are &#39;processing&#39;, &#39;partial&#39;, &#39;complete&#39;, &#39;deleted&#39;, and &#39;error&#39;. For transcriptions, current possible values are &#39;none&#39;, &#39;processing&#39;, &#39;available&#39;, &#39;error&#39;, &#39;timeout&#39;, &#39;file-size-too-big&#39;, and &#39;file-size-too-small&#39;. Additional states may be added in the future, so your application must be tolerant of unknown values..</param>
/// <param name="mediaUrl">The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded..</param>
/// <param name="transcription">transcription.</param>
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))
/// <param name="recordingName">A name to identify this recording..</param>
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;
Expand All @@ -85,6 +86,7 @@ public partial class CallRecordingMetadata : IEquatable<CallRecordingMetadata>,
this.Status = status;
this.MediaUrl = mediaUrl;
this.Transcription = transcription;
this.RecordingName = recordingName;
}

/// <summary>
Expand Down Expand Up @@ -213,6 +215,14 @@ public partial class CallRecordingMetadata : IEquatable<CallRecordingMetadata>,
[DataMember(Name = "transcription", EmitDefaultValue = true)]
public RecordingTranscriptionMetadata Transcription { get; set; }

/// <summary>
/// A name to identify this recording.
/// </summary>
/// <value>A name to identify this recording.</value>
/// <example>my-recording-name</example>
[DataMember(Name = "recordingName", EmitDefaultValue = false)]
public string RecordingName { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -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();
}
Expand Down Expand Up @@ -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))
);
}

Expand Down Expand Up @@ -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;
}
}
Expand Down
22 changes: 21 additions & 1 deletion src/Bandwidth.Standard/Model/CallTranscriptionMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ public partial class CallTranscriptionMetadata : IEquatable<CallTranscriptionMet
/// Initializes a new instance of the <see cref="CallTranscriptionMetadata" /> class.
/// </summary>
/// <param name="transcriptionId">The programmable voice API transcription ID..</param>
/// <param name="transcriptionName">The programmable voice API transcription name. This name could be provided by the user when creating the transcription..</param>
/// <param name="transcriptionUrl">A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint..</param>
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;
}

Expand All @@ -51,6 +53,14 @@ public partial class CallTranscriptionMetadata : IEquatable<CallTranscriptionMet
[DataMember(Name = "transcriptionId", EmitDefaultValue = false)]
public string TranscriptionId { get; set; }

/// <summary>
/// The programmable voice API transcription name. This name could be provided by the user when creating the transcription.
/// </summary>
/// <value>The programmable voice API transcription name. This name could be provided by the user when creating the transcription.</value>
/// <example>live_transcription</example>
[DataMember(Name = "transcriptionName", EmitDefaultValue = false)]
public string TranscriptionName { get; set; }

/// <summary>
/// A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint.
/// </summary>
Expand All @@ -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();
Expand Down Expand Up @@ -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 &&
Expand All @@ -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();
Expand Down
Loading

0 comments on commit cb48c9e

Please sign in to comment.