@@ -42,7 +42,9 @@ public partial class ChatClient
4242 {
4343 protected ChatClient ( ) { }
4444 public ChatClient ( System . Uri endpoint , Azure . Communication . CommunicationTokenCredential communicationTokenCredential , Azure . Communication . Chat . ChatClientOptions options = null ) { }
45+ public virtual Azure . Response < Azure . Communication . Chat . CreateChatThreadResult > CreateChatThread ( Azure . Communication . Chat . CreateChatThreadOptions options , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
4546 public virtual Azure . Response < Azure . Communication . Chat . CreateChatThreadResult > CreateChatThread ( string topic , System . Collections . Generic . IEnumerable < Azure . Communication . Chat . ChatParticipant > participants , string idempotencyToken = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
47+ public virtual System . Threading . Tasks . Task < Azure . Response < Azure . Communication . Chat . CreateChatThreadResult > > CreateChatThreadAsync ( Azure . Communication . Chat . CreateChatThreadOptions options , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
4648 public virtual System . Threading . Tasks . Task < Azure . Response < Azure . Communication . Chat . CreateChatThreadResult > > CreateChatThreadAsync ( string topic , System . Collections . Generic . IEnumerable < Azure . Communication . Chat . ChatParticipant > participants = null , string idempotencyToken = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
4749 public virtual Azure . Response DeleteChatThread ( string threadId , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
4850 public virtual System . Threading . Tasks . Task < Azure . Response > DeleteChatThreadAsync ( string threadId , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
@@ -52,13 +54,14 @@ public ChatClient(System.Uri endpoint, Azure.Communication.CommunicationTokenCre
5254 }
5355 public partial class ChatClientOptions : Azure . Core . ClientOptions
5456 {
55- public ChatClientOptions ( Azure . Communication . Chat . ChatClientOptions . ServiceVersion version = Azure . Communication . Chat . ChatClientOptions . ServiceVersion . V2024_03_07 ) { }
57+ public ChatClientOptions ( Azure . Communication . Chat . ChatClientOptions . ServiceVersion version = Azure . Communication . Chat . ChatClientOptions . ServiceVersion . V2025_03_15 ) { }
5658 public enum ServiceVersion
5759 {
5860 V2021_03_07 = 1 ,
5961 V2021_09_07 = 2 ,
6062 V2023_11_07 = 3 ,
6163 V2024_03_07 = 4 ,
64+ V2025_03_15 = 5 ,
6265 }
6366 }
6467 public partial class ChatError
@@ -136,6 +139,7 @@ public static partial class ChatModelFactory
136139 [ System . ComponentModel . EditorBrowsableAttribute ( System . ComponentModel . EditorBrowsableState . Never ) ]
137140 public static Azure . Communication . Chat . ChatMessageReadReceipt ChatMessageReadReceipt ( Azure . Communication . CommunicationIdentifier sender , string chatMessageId , System . DateTimeOffset readOn ) { throw null ; }
138141 public static Azure . Communication . Chat . ChatParticipant ChatParticipant ( Azure . Communication . CommunicationIdentifier user , string displayName , System . DateTimeOffset ? shareHistoryTime ) { throw null ; }
142+ public static Azure . Communication . Chat . ChatParticipant ChatParticipant ( Azure . Communication . CommunicationIdentifier user , string displayName , System . DateTimeOffset ? shareHistoryTime , System . Collections . Generic . IDictionary < string , string > metadata ) { throw null ; }
139143 [ System . ComponentModel . EditorBrowsableAttribute ( System . ComponentModel . EditorBrowsableState . Never ) ]
140144 public static Azure . Communication . Chat . ChatThreadItem ChatThreadItem ( string id , string topic , System . DateTimeOffset ? deletedOn , System . DateTimeOffset ? lastMessageReceivedOn ) { throw null ; }
141145 public static Azure . Communication . Chat . ChatThreadProperties ChatThreadProperties ( string id , string topic , System . DateTimeOffset createdOn , Azure . Communication . CommunicationIdentifier createdBy , System . DateTimeOffset deletedOn ) { throw null ; }
@@ -146,9 +150,14 @@ public partial class ChatParticipant
146150 {
147151 public ChatParticipant ( Azure . Communication . CommunicationIdentifier identifier ) { }
148152 public string DisplayName { get { throw null ; } set { } }
153+ public System . Collections . Generic . IDictionary < string , string > Metadata { get { throw null ; } }
149154 public System . DateTimeOffset ? ShareHistoryTime { get { throw null ; } set { } }
150155 public Azure . Communication . CommunicationIdentifier User { get { throw null ; } set { } }
151156 }
157+ public abstract partial class ChatRetentionPolicy
158+ {
159+ protected ChatRetentionPolicy ( ) { }
160+ }
152161 public partial class ChatThreadClient
153162 {
154163 protected ChatThreadClient ( ) { }
@@ -186,6 +195,8 @@ public ChatThreadClient(string threadId, System.Uri endpoint, Azure.Communicatio
186195 public virtual Azure . Response UpdateMessage ( string messageId , string content , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
187196 public virtual System . Threading . Tasks . Task < Azure . Response > UpdateMessageAsync ( Azure . Communication . Chat . UpdateChatMessageOptions options , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
188197 public virtual System . Threading . Tasks . Task < Azure . Response > UpdateMessageAsync ( string messageId , string content , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
198+ public virtual Azure . Response UpdateProperties ( Azure . Communication . Chat . UpdateChatThreadPropertiesOptions options , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
199+ public virtual System . Threading . Tasks . Task < Azure . Response > UpdatePropertiesAsync ( Azure . Communication . Chat . UpdateChatThreadPropertiesOptions options , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
189200 public virtual Azure . Response UpdateTopic ( string topic , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
190201 public virtual System . Threading . Tasks . Task < Azure . Response > UpdateTopicAsync ( string topic , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
191202 }
@@ -204,6 +215,17 @@ internal ChatThreadProperties() { }
204215 public System . DateTimeOffset CreatedOn { get { throw null ; } }
205216 public System . DateTimeOffset ? DeletedOn { get { throw null ; } }
206217 public string Id { get { throw null ; } }
218+ public System . Collections . Generic . IReadOnlyDictionary < string , string > Metadata { get { throw null ; } }
219+ public Azure . Communication . Chat . ChatRetentionPolicy RetentionPolicy { get { throw null ; } }
220+ public string Topic { get { throw null ; } }
221+ }
222+ public partial class CreateChatThreadOptions
223+ {
224+ public CreateChatThreadOptions ( string topic ) { }
225+ public string IdempotencyToken { get { throw null ; } set { } }
226+ public System . Collections . Generic . IDictionary < string , string > Metadata { get { throw null ; } }
227+ public System . Collections . Generic . IList < Azure . Communication . Chat . ChatParticipant > Participants { get { throw null ; } }
228+ public Azure . Communication . Chat . ChatRetentionPolicy RetentionPolicy { get { throw null ; } set { } }
207229 public string Topic { get { throw null ; } }
208230 }
209231 public partial class CreateChatThreadResult
@@ -212,6 +234,28 @@ internal CreateChatThreadResult() { }
212234 public Azure . Communication . Chat . ChatThreadProperties ChatThread { get { throw null ; } }
213235 public System . Collections . Generic . IReadOnlyList < Azure . Communication . Chat . ChatError > InvalidParticipants { get { throw null ; } }
214236 }
237+ public partial class NoneRetentionPolicy : Azure . Communication . Chat . ChatRetentionPolicy
238+ {
239+ public NoneRetentionPolicy ( ) { }
240+ }
241+ [ System . Runtime . InteropServices . StructLayoutAttribute ( System . Runtime . InteropServices . LayoutKind . Sequential ) ]
242+ public readonly partial struct RetentionPolicyKind : System . IEquatable < Azure . Communication . Chat . RetentionPolicyKind >
243+ {
244+ private readonly object _dummy ;
245+ private readonly int _dummyPrimitive ;
246+ public RetentionPolicyKind ( string value ) { throw null ; }
247+ public static Azure . Communication . Chat . RetentionPolicyKind None { get { throw null ; } }
248+ public static Azure . Communication . Chat . RetentionPolicyKind ThreadCreationDate { get { throw null ; } }
249+ public bool Equals ( Azure . Communication . Chat . RetentionPolicyKind other ) { throw null ; }
250+ [ System . ComponentModel . EditorBrowsableAttribute ( System . ComponentModel . EditorBrowsableState . Never ) ]
251+ public override bool Equals ( object obj ) { throw null ; }
252+ [ System . ComponentModel . EditorBrowsableAttribute ( System . ComponentModel . EditorBrowsableState . Never ) ]
253+ public override int GetHashCode ( ) { throw null ; }
254+ public static bool operator == ( Azure . Communication . Chat . RetentionPolicyKind left , Azure . Communication . Chat . RetentionPolicyKind right ) { throw null ; }
255+ public static implicit operator Azure . Communication . Chat . RetentionPolicyKind ( string value ) { throw null ; }
256+ public static bool operator != ( Azure . Communication . Chat . RetentionPolicyKind left , Azure . Communication . Chat . RetentionPolicyKind right ) { throw null ; }
257+ public override string ToString ( ) { throw null ; }
258+ }
215259 public partial class SendChatMessageOptions
216260 {
217261 public SendChatMessageOptions ( ) { }
@@ -225,6 +269,11 @@ public partial class SendChatMessageResult
225269 internal SendChatMessageResult ( ) { }
226270 public string Id { get { throw null ; } }
227271 }
272+ public partial class ThreadCreationDateRetentionPolicy : Azure . Communication . Chat . ChatRetentionPolicy
273+ {
274+ public ThreadCreationDateRetentionPolicy ( int deleteThreadAfterDays ) { }
275+ public int DeleteThreadAfterDays { get { throw null ; } set { } }
276+ }
228277 public partial class TypingNotificationOptions
229278 {
230279 public TypingNotificationOptions ( ) { }
@@ -237,4 +286,11 @@ public UpdateChatMessageOptions() { }
237286 public string MessageId { get { throw null ; } set { } }
238287 public System . Collections . Generic . IDictionary < string , string > Metadata { get { throw null ; } }
239288 }
289+ public partial class UpdateChatThreadPropertiesOptions
290+ {
291+ public UpdateChatThreadPropertiesOptions ( ) { }
292+ public System . Collections . Generic . IDictionary < string , string > Metadata { get { throw null ; } }
293+ public Azure . Communication . Chat . ChatRetentionPolicy RetentionPolicy { get { throw null ; } set { } }
294+ public string Topic { get { throw null ; } set { } }
295+ }
240296}
0 commit comments