Skip to content

Commit adb35e0

Browse files
committed
[Librarian] Regenerated @ 66882adf0db70d1f2bc084fe6acef7d99445b17b
1 parent f1e1cb0 commit adb35e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2675
-88
lines changed

CHANGES.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
twilio-csharp Changelog
22
=======================
33

4+
[2023-06-01] Version 6.7.0
5+
--------------------------
6+
**Library - Fix**
7+
- [PR #680](https://github.com/twilio/twilio-csharp/pull/680): revert the commit Use IEnumerable<T> instead of List<T> for TwiML enums via PR (#671). Thanks to [@AsabuHere](https://github.com/AsabuHere)!
8+
- [PR #672](https://github.com/twilio/twilio-csharp/pull/672): Add `ToString()` override to TwiML class. Thanks to [@Swimburger](https://github.com/Swimburger)!
9+
10+
**Library - Feature**
11+
- [PR #671](https://github.com/twilio/twilio-csharp/pull/671): Use IEnumerable<T> instead of List<T> for TwiML enums. Thanks to [@Swimburger](https://github.com/Swimburger)!
12+
13+
**Api**
14+
- Add `Trim` to create Conference Participant API
15+
16+
**Intelligence**
17+
- First public beta release for Voice Intelligence APIs with client libraries
18+
19+
**Messaging**
20+
- Add new `errors` attribute to us_app_to_person resource. This attribute will provide additional information about campaign registration errors.
21+
22+
423
[2023-05-18] Version 6.6.1
524
--------------------------
625
**Conversations**

src/Twilio/Rest/Api/V2010/Account/Conference/ParticipantOptions.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public class CreateParticipantOptions : IOptions<ParticipantResource>
8585
///<summary> Whether to record the conference the participant is joining. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. </summary>
8686
public string ConferenceRecord { get; set; }
8787

88-
///<summary> Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. </summary>
88+
///<summary> Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. </summary>
8989
public string ConferenceTrim { get; set; }
9090

9191
///<summary> The URL we should call using the `conference_status_callback_method` when the conference events in `conference_status_callback_event` occur. Only the value set by the first participant to join the conference is used. Subsequent `conference_status_callback` values are ignored. </summary>
@@ -172,6 +172,9 @@ public class CreateParticipantOptions : IOptions<ParticipantResource>
172172
///<summary> The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. </summary>
173173
public Twilio.Http.HttpMethod AmdStatusCallbackMethod { get; set; }
174174

175+
///<summary> Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. </summary>
176+
public string Trim { get; set; }
177+
175178

176179
/// <summary> Construct a new CreateParticipantOptions </summary>
177180
/// <param name="pathConferenceSid"> The SID of the participant's conference. </param>
@@ -378,6 +381,10 @@ public List<KeyValuePair<string, string>> GetParams()
378381
{
379382
p.Add(new KeyValuePair<string, string>("AmdStatusCallbackMethod", AmdStatusCallbackMethod.ToString()));
380383
}
384+
if (Trim != null)
385+
{
386+
p.Add(new KeyValuePair<string, string>("Trim", Trim));
387+
}
381388
return p;
382389
}
383390

src/Twilio/Rest/Api/V2010/Account/Conference/ParticipantResource.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static async System.Threading.Tasks.Task<ParticipantResource> CreateAsync
112112
/// <param name="earlyMedia"> Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. Can be: `true` or `false` and defaults to `true`. </param>
113113
/// <param name="maxParticipants"> The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. </param>
114114
/// <param name="conferenceRecord"> Whether to record the conference the participant is joining. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. </param>
115-
/// <param name="conferenceTrim"> Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. </param>
115+
/// <param name="conferenceTrim"> Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. </param>
116116
/// <param name="conferenceStatusCallback"> The URL we should call using the `conference_status_callback_method` when the conference events in `conference_status_callback_event` occur. Only the value set by the first participant to join the conference is used. Subsequent `conference_status_callback` values are ignored. </param>
117117
/// <param name="conferenceStatusCallbackMethod"> The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. </param>
118118
/// <param name="conferenceStatusCallbackEvent"> The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `modify`, `speaker`, and `announcement`. Separate multiple values with a space. Defaults to `start end`. </param>
@@ -141,6 +141,7 @@ public static async System.Threading.Tasks.Task<ParticipantResource> CreateAsync
141141
/// <param name="machineDetectionSilenceTimeout"> The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. </param>
142142
/// <param name="amdStatusCallback"> The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax. </param>
143143
/// <param name="amdStatusCallbackMethod"> The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. </param>
144+
/// <param name="trim"> Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. </param>
144145
/// <param name="client"> Client to make requests to Twilio </param>
145146
/// <returns> A single instance of Participant </returns>
146147
public static ParticipantResource Create(
@@ -192,9 +193,10 @@ public static ParticipantResource Create(
192193
int? machineDetectionSilenceTimeout = null,
193194
Uri amdStatusCallback = null,
194195
Twilio.Http.HttpMethod amdStatusCallbackMethod = null,
196+
string trim = null,
195197
ITwilioRestClient client = null)
196198
{
197-
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 };
199+
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, Trim = trim };
198200
return Create(options, client);
199201
}
200202

@@ -219,7 +221,7 @@ public static ParticipantResource Create(
219221
/// <param name="earlyMedia"> Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. Can be: `true` or `false` and defaults to `true`. </param>
220222
/// <param name="maxParticipants"> The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. </param>
221223
/// <param name="conferenceRecord"> Whether to record the conference the participant is joining. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. </param>
222-
/// <param name="conferenceTrim"> Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. </param>
224+
/// <param name="conferenceTrim"> Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. </param>
223225
/// <param name="conferenceStatusCallback"> The URL we should call using the `conference_status_callback_method` when the conference events in `conference_status_callback_event` occur. Only the value set by the first participant to join the conference is used. Subsequent `conference_status_callback` values are ignored. </param>
224226
/// <param name="conferenceStatusCallbackMethod"> The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. </param>
225227
/// <param name="conferenceStatusCallbackEvent"> The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `modify`, `speaker`, and `announcement`. Separate multiple values with a space. Defaults to `start end`. </param>
@@ -248,6 +250,7 @@ public static ParticipantResource Create(
248250
/// <param name="machineDetectionSilenceTimeout"> The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. </param>
249251
/// <param name="amdStatusCallback"> The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax. </param>
250252
/// <param name="amdStatusCallbackMethod"> The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. </param>
253+
/// <param name="trim"> Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. </param>
251254
/// <param name="client"> Client to make requests to Twilio </param>
252255
/// <returns> Task that resolves to A single instance of Participant </returns>
253256
public static async System.Threading.Tasks.Task<ParticipantResource> CreateAsync(
@@ -299,9 +302,10 @@ public static async System.Threading.Tasks.Task<ParticipantResource> CreateAsync
299302
int? machineDetectionSilenceTimeout = null,
300303
Uri amdStatusCallback = null,
301304
Twilio.Http.HttpMethod amdStatusCallbackMethod = null,
305+
string trim = null,
302306
ITwilioRestClient client = null)
303307
{
304-
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 };
308+
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, Trim = trim };
305309
return await CreateAsync(options, client);
306310
}
307311
#endif

src/Twilio/Rest/Domain.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public static implicit operator Domain(string value)
3333
public static readonly Domain FlexApi = new Domain("flex-api");
3434
public static readonly Domain FrontlineApi = new Domain("frontline-api");
3535
public static readonly Domain Insights = new Domain("insights");
36+
public static readonly Domain Intelligence = new Domain("intelligence");
3637
public static readonly Domain IpMessaging = new Domain("ip-messaging");
3738
public static readonly Domain Lookups = new Domain("lookups");
3839
public static readonly Domain Media = new Domain("media");

0 commit comments

Comments
 (0)