Skip to content

Commit

Permalink
[Librarian] Regenerated @ f65fb6491354c2afb05cb81a1442ab0880c883c1
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Oct 5, 2022
1 parent 4941d45 commit 86266be
Show file tree
Hide file tree
Showing 19 changed files with 364 additions and 16 deletions.
17 changes: 17 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
twilio-csharp Changelog
=======================

[2022-10-05] Version 5.80.1
---------------------------
**Library - Fix**
- [PR #632](https://github.com/twilio/twilio-csharp/pull/632): handling null 'from' parameter. Thanks to [@isha689](https://github.com/isha689)!
- [PR #636](https://github.com/twilio/twilio-csharp/pull/636): Make sonar exclusions a variable to reuse this file. Thanks to [@AsabuHere](https://github.com/AsabuHere)!

**Library - Test**
- [PR #634](https://github.com/twilio/twilio-csharp/pull/634): Modifying make command to take project name and token as arguments for reuse. Thanks to [@AsabuHere](https://github.com/AsabuHere)!

**Api**
- Added `virtual-agent` to `usage_record` API.
- Add AMD attributes to participant create request

**Twiml**
- Add AMD attributes to `Number` and `Sip`


[2022-09-07] Version 5.80.0
---------------------------
**Flex**
Expand Down
63 changes: 63 additions & 0 deletions src/Twilio/Rest/Api/V2010/Account/Conference/ParticipantOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,34 @@ public class CreateParticipantOptions : IOptions<ParticipantResource>
/// The maximum duration of the call in seconds.
/// </summary>
public int? TimeLimit { get; set; }
/// <summary>
/// Enable machine detection or end of greeting detection
/// </summary>
public string MachineDetection { get; set; }
/// <summary>
/// Number of seconds to wait for machine detection
/// </summary>
public int? MachineDetectionTimeout { get; set; }
/// <summary>
/// Number of milliseconds for measuring stick for the length of the speech activity
/// </summary>
public int? MachineDetectionSpeechThreshold { get; set; }
/// <summary>
/// Number of milliseconds of silence after speech activity
/// </summary>
public int? MachineDetectionSpeechEndThreshold { get; set; }
/// <summary>
/// Number of milliseconds of initial silence
/// </summary>
public int? MachineDetectionSilenceTimeout { get; set; }
/// <summary>
/// The URL we should call to send amd status information to your application
/// </summary>
public Uri AmdStatusCallback { get; set; }
/// <summary>
/// HTTP Method to use with amd_status_callback
/// </summary>
public Twilio.Http.HttpMethod AmdStatusCallbackMethod { get; set; }

/// <summary>
/// Construct a new CreateParticipantOptions
Expand Down Expand Up @@ -588,6 +616,41 @@ public List<KeyValuePair<string, string>> GetParams()
p.Add(new KeyValuePair<string, string>("TimeLimit", TimeLimit.ToString()));
}

if (MachineDetection != null)
{
p.Add(new KeyValuePair<string, string>("MachineDetection", MachineDetection));
}

if (MachineDetectionTimeout != null)
{
p.Add(new KeyValuePair<string, string>("MachineDetectionTimeout", MachineDetectionTimeout.ToString()));
}

if (MachineDetectionSpeechThreshold != null)
{
p.Add(new KeyValuePair<string, string>("MachineDetectionSpeechThreshold", MachineDetectionSpeechThreshold.ToString()));
}

if (MachineDetectionSpeechEndThreshold != null)
{
p.Add(new KeyValuePair<string, string>("MachineDetectionSpeechEndThreshold", MachineDetectionSpeechEndThreshold.ToString()));
}

if (MachineDetectionSilenceTimeout != null)
{
p.Add(new KeyValuePair<string, string>("MachineDetectionSilenceTimeout", MachineDetectionSilenceTimeout.ToString()));
}

if (AmdStatusCallback != null)
{
p.Add(new KeyValuePair<string, string>("AmdStatusCallback", Serializers.Url(AmdStatusCallback)));
}

if (AmdStatusCallbackMethod != null)
{
p.Add(new KeyValuePair<string, string>("AmdStatusCallbackMethod", AmdStatusCallbackMethod.ToString()));
}

return p;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,14 @@ public static async System.Threading.Tasks.Task<ParticipantResource> CreateAsync
/// <param name="callReason"> Reason for the call (Branded Calls Beta) </param>
/// <param name="recordingTrack"> The track(s) to record </param>
/// <param name="timeLimit"> The maximum duration of the call in seconds. </param>
/// <param name="machineDetection"> Enable machine detection or end of greeting detection </param>
/// <param name="machineDetectionTimeout"> Number of seconds to wait for machine detection </param>
/// <param name="machineDetectionSpeechThreshold"> Number of milliseconds for measuring stick for the length of the
/// speech activity </param>
/// <param name="machineDetectionSpeechEndThreshold"> Number of milliseconds of silence after speech activity </param>
/// <param name="machineDetectionSilenceTimeout"> Number of milliseconds of initial silence </param>
/// <param name="amdStatusCallback"> The URL we should call to send amd status information to your application </param>
/// <param name="amdStatusCallbackMethod"> HTTP Method to use with amd_status_callback </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Participant </returns>
public static ParticipantResource Create(string pathConferenceSid,
Expand Down Expand Up @@ -381,9 +389,16 @@ public static ParticipantResource Create(string pathConferenceSid,
string callReason = null,
string recordingTrack = null,
int? timeLimit = null,
string machineDetection = null,
int? machineDetectionTimeout = null,
int? machineDetectionSpeechThreshold = null,
int? machineDetectionSpeechEndThreshold = null,
int? machineDetectionSilenceTimeout = null,
Uri amdStatusCallback = null,
Twilio.Http.HttpMethod amdStatusCallbackMethod = null,
ITwilioRestClient client = null)
{
var options = new CreateParticipantOptions(pathConferenceSid, from, to){PathAccountSid = pathAccountSid, StatusCallback = statusCallback, StatusCallbackMethod = statusCallbackMethod, StatusCallbackEvent = statusCallbackEvent, Label = label, Timeout = timeout, Record = record, Muted = muted, Beep = beep, StartConferenceOnEnter = startConferenceOnEnter, EndConferenceOnExit = endConferenceOnExit, WaitUrl = waitUrl, WaitMethod = waitMethod, EarlyMedia = earlyMedia, MaxParticipants = maxParticipants, ConferenceRecord = conferenceRecord, ConferenceTrim = conferenceTrim, ConferenceStatusCallback = conferenceStatusCallback, ConferenceStatusCallbackMethod = conferenceStatusCallbackMethod, ConferenceStatusCallbackEvent = conferenceStatusCallbackEvent, RecordingChannels = recordingChannels, RecordingStatusCallback = recordingStatusCallback, RecordingStatusCallbackMethod = recordingStatusCallbackMethod, SipAuthUsername = sipAuthUsername, SipAuthPassword = sipAuthPassword, Region = region, ConferenceRecordingStatusCallback = conferenceRecordingStatusCallback, ConferenceRecordingStatusCallbackMethod = conferenceRecordingStatusCallbackMethod, RecordingStatusCallbackEvent = recordingStatusCallbackEvent, ConferenceRecordingStatusCallbackEvent = conferenceRecordingStatusCallbackEvent, Coaching = coaching, CallSidToCoach = callSidToCoach, JitterBufferSize = jitterBufferSize, Byoc = byoc, CallerId = callerId, CallReason = callReason, RecordingTrack = recordingTrack, TimeLimit = timeLimit};
var options = new CreateParticipantOptions(pathConferenceSid, from, to){PathAccountSid = pathAccountSid, StatusCallback = statusCallback, StatusCallbackMethod = statusCallbackMethod, StatusCallbackEvent = statusCallbackEvent, Label = label, Timeout = timeout, Record = record, Muted = muted, Beep = beep, StartConferenceOnEnter = startConferenceOnEnter, EndConferenceOnExit = endConferenceOnExit, WaitUrl = waitUrl, WaitMethod = waitMethod, EarlyMedia = earlyMedia, MaxParticipants = maxParticipants, ConferenceRecord = conferenceRecord, ConferenceTrim = conferenceTrim, ConferenceStatusCallback = conferenceStatusCallback, ConferenceStatusCallbackMethod = conferenceStatusCallbackMethod, ConferenceStatusCallbackEvent = conferenceStatusCallbackEvent, RecordingChannels = recordingChannels, RecordingStatusCallback = recordingStatusCallback, RecordingStatusCallbackMethod = recordingStatusCallbackMethod, SipAuthUsername = sipAuthUsername, SipAuthPassword = sipAuthPassword, Region = region, ConferenceRecordingStatusCallback = conferenceRecordingStatusCallback, ConferenceRecordingStatusCallbackMethod = conferenceRecordingStatusCallbackMethod, RecordingStatusCallbackEvent = recordingStatusCallbackEvent, ConferenceRecordingStatusCallbackEvent = conferenceRecordingStatusCallbackEvent, Coaching = coaching, CallSidToCoach = callSidToCoach, JitterBufferSize = jitterBufferSize, Byoc = byoc, CallerId = callerId, CallReason = callReason, RecordingTrack = recordingTrack, TimeLimit = timeLimit, MachineDetection = machineDetection, MachineDetectionTimeout = machineDetectionTimeout, MachineDetectionSpeechThreshold = machineDetectionSpeechThreshold, MachineDetectionSpeechEndThreshold = machineDetectionSpeechEndThreshold, MachineDetectionSilenceTimeout = machineDetectionSilenceTimeout, AmdStatusCallback = amdStatusCallback, AmdStatusCallbackMethod = amdStatusCallbackMethod};
return Create(options, client);
}

Expand Down Expand Up @@ -444,6 +459,14 @@ public static ParticipantResource Create(string pathConferenceSid,
/// <param name="callReason"> Reason for the call (Branded Calls Beta) </param>
/// <param name="recordingTrack"> The track(s) to record </param>
/// <param name="timeLimit"> The maximum duration of the call in seconds. </param>
/// <param name="machineDetection"> Enable machine detection or end of greeting detection </param>
/// <param name="machineDetectionTimeout"> Number of seconds to wait for machine detection </param>
/// <param name="machineDetectionSpeechThreshold"> Number of milliseconds for measuring stick for the length of the
/// speech activity </param>
/// <param name="machineDetectionSpeechEndThreshold"> Number of milliseconds of silence after speech activity </param>
/// <param name="machineDetectionSilenceTimeout"> Number of milliseconds of initial silence </param>
/// <param name="amdStatusCallback"> The URL we should call to send amd status information to your application </param>
/// <param name="amdStatusCallbackMethod"> HTTP Method to use with amd_status_callback </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Participant </returns>
public static async System.Threading.Tasks.Task<ParticipantResource> CreateAsync(string pathConferenceSid,
Expand Down Expand Up @@ -487,9 +510,16 @@ public static async System.Threading.Tasks.Task<ParticipantResource> CreateAsync
string callReason = null,
string recordingTrack = null,
int? timeLimit = null,
string machineDetection = null,
int? machineDetectionTimeout = null,
int? machineDetectionSpeechThreshold = null,
int? machineDetectionSpeechEndThreshold = null,
int? machineDetectionSilenceTimeout = null,
Uri amdStatusCallback = null,
Twilio.Http.HttpMethod amdStatusCallbackMethod = null,
ITwilioRestClient client = null)
{
var options = new CreateParticipantOptions(pathConferenceSid, from, to){PathAccountSid = pathAccountSid, StatusCallback = statusCallback, StatusCallbackMethod = statusCallbackMethod, StatusCallbackEvent = statusCallbackEvent, Label = label, Timeout = timeout, Record = record, Muted = muted, Beep = beep, StartConferenceOnEnter = startConferenceOnEnter, EndConferenceOnExit = endConferenceOnExit, WaitUrl = waitUrl, WaitMethod = waitMethod, EarlyMedia = earlyMedia, MaxParticipants = maxParticipants, ConferenceRecord = conferenceRecord, ConferenceTrim = conferenceTrim, ConferenceStatusCallback = conferenceStatusCallback, ConferenceStatusCallbackMethod = conferenceStatusCallbackMethod, ConferenceStatusCallbackEvent = conferenceStatusCallbackEvent, RecordingChannels = recordingChannels, RecordingStatusCallback = recordingStatusCallback, RecordingStatusCallbackMethod = recordingStatusCallbackMethod, SipAuthUsername = sipAuthUsername, SipAuthPassword = sipAuthPassword, Region = region, ConferenceRecordingStatusCallback = conferenceRecordingStatusCallback, ConferenceRecordingStatusCallbackMethod = conferenceRecordingStatusCallbackMethod, RecordingStatusCallbackEvent = recordingStatusCallbackEvent, ConferenceRecordingStatusCallbackEvent = conferenceRecordingStatusCallbackEvent, Coaching = coaching, CallSidToCoach = callSidToCoach, JitterBufferSize = jitterBufferSize, Byoc = byoc, CallerId = callerId, CallReason = callReason, RecordingTrack = recordingTrack, TimeLimit = timeLimit};
var options = new CreateParticipantOptions(pathConferenceSid, from, to){PathAccountSid = pathAccountSid, StatusCallback = statusCallback, StatusCallbackMethod = statusCallbackMethod, StatusCallbackEvent = statusCallbackEvent, Label = label, Timeout = timeout, Record = record, Muted = muted, Beep = beep, StartConferenceOnEnter = startConferenceOnEnter, EndConferenceOnExit = endConferenceOnExit, WaitUrl = waitUrl, WaitMethod = waitMethod, EarlyMedia = earlyMedia, MaxParticipants = maxParticipants, ConferenceRecord = conferenceRecord, ConferenceTrim = conferenceTrim, ConferenceStatusCallback = conferenceStatusCallback, ConferenceStatusCallbackMethod = conferenceStatusCallbackMethod, ConferenceStatusCallbackEvent = conferenceStatusCallbackEvent, RecordingChannels = recordingChannels, RecordingStatusCallback = recordingStatusCallback, RecordingStatusCallbackMethod = recordingStatusCallbackMethod, SipAuthUsername = sipAuthUsername, SipAuthPassword = sipAuthPassword, Region = region, ConferenceRecordingStatusCallback = conferenceRecordingStatusCallback, ConferenceRecordingStatusCallbackMethod = conferenceRecordingStatusCallbackMethod, RecordingStatusCallbackEvent = recordingStatusCallbackEvent, ConferenceRecordingStatusCallbackEvent = conferenceRecordingStatusCallbackEvent, Coaching = coaching, CallSidToCoach = callSidToCoach, JitterBufferSize = jitterBufferSize, Byoc = byoc, CallerId = callerId, CallReason = callReason, RecordingTrack = recordingTrack, TimeLimit = timeLimit, MachineDetection = machineDetection, MachineDetectionTimeout = machineDetectionTimeout, MachineDetectionSpeechThreshold = machineDetectionSpeechThreshold, MachineDetectionSpeechEndThreshold = machineDetectionSpeechEndThreshold, MachineDetectionSilenceTimeout = machineDetectionSilenceTimeout, AmdStatusCallback = amdStatusCallback, AmdStatusCallbackMethod = amdStatusCallbackMethod};
return await CreateAsync(options, client);
}
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ public static implicit operator CategoryEnum(string value)
public static readonly CategoryEnum VerifyTotp = new CategoryEnum("verify-totp");
public static readonly CategoryEnum VerifyWhatsappConversationsBusinessInitiated = new CategoryEnum("verify-whatsapp-conversations-business-initiated");
public static readonly CategoryEnum VideoRecordings = new CategoryEnum("video-recordings");
public static readonly CategoryEnum VirtualAgent = new CategoryEnum("virtual-agent");
public static readonly CategoryEnum VoiceInsights = new CategoryEnum("voice-insights");
public static readonly CategoryEnum VoiceInsightsClientInsightsOnDemandMinute = new CategoryEnum("voice-insights-client-insights-on-demand-minute");
public static readonly CategoryEnum VoiceInsightsPtsnInsightsOnDemandMinute = new CategoryEnum("voice-insights-ptsn-insights-on-demand-minute");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ public static implicit operator CategoryEnum(string value)
public static readonly CategoryEnum VerifyTotp = new CategoryEnum("verify-totp");
public static readonly CategoryEnum VerifyWhatsappConversationsBusinessInitiated = new CategoryEnum("verify-whatsapp-conversations-business-initiated");
public static readonly CategoryEnum VideoRecordings = new CategoryEnum("video-recordings");
public static readonly CategoryEnum VirtualAgent = new CategoryEnum("virtual-agent");
public static readonly CategoryEnum VoiceInsights = new CategoryEnum("voice-insights");
public static readonly CategoryEnum VoiceInsightsClientInsightsOnDemandMinute = new CategoryEnum("voice-insights-client-insights-on-demand-minute");
public static readonly CategoryEnum VoiceInsightsPtsnInsightsOnDemandMinute = new CategoryEnum("voice-insights-ptsn-insights-on-demand-minute");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ public static implicit operator CategoryEnum(string value)
public static readonly CategoryEnum VerifyTotp = new CategoryEnum("verify-totp");
public static readonly CategoryEnum VerifyWhatsappConversationsBusinessInitiated = new CategoryEnum("verify-whatsapp-conversations-business-initiated");
public static readonly CategoryEnum VideoRecordings = new CategoryEnum("video-recordings");
public static readonly CategoryEnum VirtualAgent = new CategoryEnum("virtual-agent");
public static readonly CategoryEnum VoiceInsights = new CategoryEnum("voice-insights");
public static readonly CategoryEnum VoiceInsightsClientInsightsOnDemandMinute = new CategoryEnum("voice-insights-client-insights-on-demand-minute");
public static readonly CategoryEnum VoiceInsightsPtsnInsightsOnDemandMinute = new CategoryEnum("voice-insights-ptsn-insights-on-demand-minute");
Expand Down
Loading

0 comments on commit 86266be

Please sign in to comment.