@wildix/xbees-conversations-client 1.0.47 → 1.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist-cjs/Conversations.js +0 -2
  2. package/dist-cjs/commands/index.js +0 -1
  3. package/dist-cjs/models/models_0.js +10 -23
  4. package/dist-cjs/protocols/Aws_restJson1.js +2 -42
  5. package/dist-es/Conversations.js +0 -2
  6. package/dist-es/commands/index.js +0 -1
  7. package/dist-es/models/models_0.js +9 -22
  8. package/dist-es/protocols/Aws_restJson1.js +0 -38
  9. package/dist-types/Conversations.d.ts +0 -7
  10. package/dist-types/ConversationsClient.d.ts +2 -3
  11. package/dist-types/commands/AddChannelMemberCommand.d.ts +2 -2
  12. package/dist-types/commands/AddChannelMembersCommand.d.ts +2 -2
  13. package/dist-types/commands/CreateGroupChannelCommand.d.ts +4 -2
  14. package/dist-types/commands/DeleteChannelCommand.d.ts +2 -4
  15. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +2 -2
  16. package/dist-types/commands/DeleteMessageCommand.d.ts +2 -2
  17. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +2 -2
  18. package/dist-types/commands/DescribeEventCommand.d.ts +20 -0
  19. package/dist-types/commands/GetChannelCommand.d.ts +4 -2
  20. package/dist-types/commands/GetChannelMemberCommand.d.ts +2 -2
  21. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +2 -2
  22. package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +1 -1
  23. package/dist-types/commands/GetMessageCommand.d.ts +4 -2
  24. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +4 -2
  25. package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +1 -1
  26. package/dist-types/commands/HideChannelCommand.d.ts +2 -2
  27. package/dist-types/commands/InviteCommand.d.ts +2 -2
  28. package/dist-types/commands/JoinChannelCommand.d.ts +4 -2
  29. package/dist-types/commands/LeaveChannelCommand.d.ts +2 -2
  30. package/dist-types/commands/ListChannelMembersCommand.d.ts +2 -2
  31. package/dist-types/commands/ListChannelsCommand.d.ts +4 -2
  32. package/dist-types/commands/ListMessageReactionsCommand.d.ts +2 -2
  33. package/dist-types/commands/ListMessagesCommand.d.ts +4 -2
  34. package/dist-types/commands/MarkReadCommand.d.ts +2 -2
  35. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +4 -2
  36. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +4 -2
  37. package/dist-types/commands/ScheduleExternalFlagAdjustmentJobCommand.d.ts +1 -1
  38. package/dist-types/commands/SendGiphyCommand.d.ts +4 -2
  39. package/dist-types/commands/SendMessageCommand.d.ts +4 -2
  40. package/dist-types/commands/SendMessageReactionCommand.d.ts +2 -2
  41. package/dist-types/commands/SendTypingStartCommand.d.ts +2 -2
  42. package/dist-types/commands/SendTypingStopCommand.d.ts +2 -2
  43. package/dist-types/commands/ShowChannelCommand.d.ts +2 -2
  44. package/dist-types/commands/UpdateChannelCommand.d.ts +4 -2
  45. package/dist-types/commands/UpdateMessageCommand.d.ts +4 -2
  46. package/dist-types/commands/UploadFileCommand.d.ts +1 -1
  47. package/dist-types/commands/index.d.ts +0 -1
  48. package/dist-types/models/models_0.d.ts +447 -170
  49. package/dist-types/protocols/Aws_restJson1.d.ts +0 -9
  50. package/package.json +1 -1
  51. package/dist-cjs/commands/AssignChannelCommand.js +0 -21
  52. package/dist-es/commands/AssignChannelCommand.js +0 -17
  53. package/dist-types/commands/AssignChannelCommand.d.ts +0 -101
@@ -68,9 +68,13 @@ export interface UserToInvite {
68
68
  * @public
69
69
  */
70
70
  export interface AddChannelMemberInput {
71
+ /**
72
+ * The unique identifier of the channel to which the member is to be added.
73
+ * @public
74
+ */
71
75
  channelId: string;
72
76
  /**
73
- * User ID for server side calls
77
+ * The unique identifier of the user when a service token is used.
74
78
  * @public
75
79
  */
76
80
  userId?: string;
@@ -79,7 +83,15 @@ export interface AddChannelMemberInput {
79
83
  * @public
80
84
  */
81
85
  silent?: boolean;
86
+ /**
87
+ * A User ID of the member to be added to the channel.
88
+ * @public
89
+ */
82
90
  memberId?: string;
91
+ /**
92
+ * A user to invite to the channel, identified by email address or phone number if the member does not already exist.
93
+ * @public
94
+ */
83
95
  memberToInvite?: UserToInvite;
84
96
  }
85
97
  /**
@@ -107,12 +119,12 @@ export interface ChannelMember {
107
119
  */
108
120
  export interface AddChannelMemberOutput {
109
121
  /**
110
- * Member added to the channel
122
+ * Details of the member added to the channel.
111
123
  * @public
112
124
  */
113
125
  member: ChannelMember;
114
126
  /**
115
- * Users added to the channel
127
+ * Details of the user added to the channel.
116
128
  * @public
117
129
  */
118
130
  user: User;
@@ -143,166 +155,46 @@ export declare class MemberAlreadyExistException extends __BaseException {
143
155
  * @public
144
156
  */
145
157
  export interface AddChannelMembersInput {
146
- channelId: string;
147
- /**
148
- * User ID for server side calls
149
- * @public
150
- */
151
- userId?: string;
152
- /**
153
- * True to not send a system message that members added from the conversartion. Default - false.
154
- * @public
155
- */
156
- silent?: boolean;
157
- members?: (string)[];
158
- membersToInvite?: (UserToInvite)[];
159
- }
160
- /**
161
- * @public
162
- */
163
- export interface AddChannelMembersOutput {
164
- /**
165
- * The list of members added to the channel
166
- * @public
167
- */
168
- members: (ChannelMember)[];
169
- /**
170
- * The list of users added to the channel
171
- * @public
172
- */
173
- users: (User)[];
174
- }
175
- /**
176
- * @public
177
- */
178
- export type AssignChannelAssigneeRequest = AssignChannelAssigneeRequest.EmailMember | AssignChannelAssigneeRequest.IdMember | AssignChannelAssigneeRequest.$UnknownMember;
179
- /**
180
- * @public
181
- */
182
- export declare namespace AssignChannelAssigneeRequest {
183
- interface IdMember {
184
- id: string;
185
- email?: never;
186
- $unknown?: never;
187
- }
188
- interface EmailMember {
189
- id?: never;
190
- email: string;
191
- $unknown?: never;
192
- }
193
- /**
194
- * @public
195
- */
196
- interface $UnknownMember {
197
- id?: never;
198
- email?: never;
199
- $unknown: [string, any];
200
- }
201
- interface Visitor<T> {
202
- id: (value: string) => T;
203
- email: (value: string) => T;
204
- _: (name: string, value: any) => T;
205
- }
206
- const visit: <T>(value: AssignChannelAssigneeRequest, visitor: Visitor<T>) => T;
207
- }
208
- /**
209
- * @public
210
- */
211
- export interface AssignChannelOptions {
212
158
  /**
213
- * True to add all members that are in service to the conversation. Default - false.
159
+ * The unique identifier of the channel to which members are to be added.
214
160
  * @public
215
161
  */
216
- addAgentFromService?: boolean;
217
- }
218
- /**
219
- * @public
220
- */
221
- export type AssignChannelServiceRequest = AssignChannelServiceRequest.IdMember | AssignChannelServiceRequest.NameMember | AssignChannelServiceRequest.UriMember | AssignChannelServiceRequest.$UnknownMember;
222
- /**
223
- * @public
224
- */
225
- export declare namespace AssignChannelServiceRequest {
226
- interface UriMember {
227
- uri: string;
228
- id?: never;
229
- name?: never;
230
- $unknown?: never;
231
- }
232
- interface IdMember {
233
- uri?: never;
234
- id: string;
235
- name?: never;
236
- $unknown?: never;
237
- }
238
- interface NameMember {
239
- uri?: never;
240
- id?: never;
241
- name: string;
242
- $unknown?: never;
243
- }
162
+ channelId: string;
244
163
  /**
164
+ * The unique identifier of the user when a service token is used.
245
165
  * @public
246
166
  */
247
- interface $UnknownMember {
248
- uri?: never;
249
- id?: never;
250
- name?: never;
251
- $unknown: [string, any];
252
- }
253
- interface Visitor<T> {
254
- uri: (value: string) => T;
255
- id: (value: string) => T;
256
- name: (value: string) => T;
257
- _: (name: string, value: any) => T;
258
- }
259
- const visit: <T>(value: AssignChannelServiceRequest, visitor: Visitor<T>) => T;
260
- }
261
- /**
262
- * @public
263
- */
264
- export interface AssignChannelInput {
265
- channelId: string;
266
167
  userId?: string;
267
168
  /**
268
- * True to not send a system message that channel was assigned to specific service or user. Default - false.
169
+ * Set to true to suppress system messages that members were added to the conversation. Default is false.
269
170
  * @public
270
171
  */
271
172
  silent?: boolean;
272
173
  /**
273
- * Service information to assign to. If service is not empty than `addAgentFromService` option could be used.
174
+ * A list of user IDs to be added as members of the channel.
274
175
  * @public
275
176
  */
276
- service?: AssignChannelServiceRequest;
177
+ members?: (string)[];
277
178
  /**
278
- * A user that should be assigned to the channel. If service was specified than this field can be optional.
179
+ * A list of users to invite to the channel, identified by their email addresses or phone numbers.
279
180
  * @public
280
181
  */
281
- assignee?: AssignChannelAssigneeRequest;
282
- options?: AssignChannelOptions;
283
- }
284
- /**
285
- * @public
286
- */
287
- export interface AssignService {
288
- uri: string;
289
- id: string;
290
- name: string;
182
+ membersToInvite?: (UserToInvite)[];
291
183
  }
292
184
  /**
293
185
  * @public
294
186
  */
295
- export interface AssignChannelOutput {
187
+ export interface AddChannelMembersOutput {
296
188
  /**
297
- * A user that assigned to the channel if specified in the request, otherwise previously assigned user or undefined.
189
+ * The list of members added to the channel.
298
190
  * @public
299
191
  */
300
- assignee?: User;
192
+ members: (ChannelMember)[];
301
193
  /**
302
- * A service that assigned to the channel if specified in the request, otherwise previously assigned service or undefined.
194
+ * The list of users added to the channel.
303
195
  * @public
304
196
  */
305
- service?: AssignService;
197
+ users: (User)[];
306
198
  }
307
199
  /**
308
200
  * @public
@@ -368,6 +260,17 @@ export interface ChannelContext {
368
260
  target?: string;
369
261
  events?: (ChannelContextEvent)[];
370
262
  }
263
+ /**
264
+ * @public
265
+ * @enum
266
+ */
267
+ export declare const ChannelWhatsAppStatus: {
268
+ readonly CHANNEL_CLOSED: "24h_channel_closed";
269
+ };
270
+ /**
271
+ * @public
272
+ */
273
+ export type ChannelWhatsAppStatus = typeof ChannelWhatsAppStatus[keyof typeof ChannelWhatsAppStatus];
371
274
  /**
372
275
  * @public
373
276
  */
@@ -400,6 +303,8 @@ export interface Channel {
400
303
  telephony?: boolean;
401
304
  sms?: boolean;
402
305
  mms?: boolean;
306
+ whatsapp?: boolean;
307
+ whatsappStatus?: ChannelWhatsAppStatus;
403
308
  broadcast?: boolean;
404
309
  external?: boolean;
405
310
  channelId: string;
@@ -436,23 +341,55 @@ export type ConversationFileCategory = typeof ConversationFileCategory[keyof typ
436
341
  * @public
437
342
  */
438
343
  export interface CreateGroupChannelInput {
344
+ /**
345
+ * The subject of the channel.
346
+ * @public
347
+ */
439
348
  subject?: string;
349
+ /**
350
+ * The description of the channel.
351
+ * @public
352
+ */
440
353
  description?: string;
441
354
  /**
442
- * Picture URL
355
+ * The URL of the channel's picture.
443
356
  * @public
444
357
  */
445
358
  picture?: string;
446
359
  /**
447
- * Picture dominant color represented by a hex value.
360
+ * The dominant color of the channel's picture, represented by a hex value.
448
361
  * @public
449
362
  */
450
363
  pictureColor?: string;
364
+ /**
365
+ * The access level of the channel.
366
+ * @public
367
+ */
451
368
  access?: ChannelAccess;
369
+ /**
370
+ * Indicates if the channel is broadcast-only. Default is false.
371
+ * @public
372
+ */
452
373
  broadcast?: boolean;
374
+ /**
375
+ * The unique identifier of the user when a service token is used.
376
+ * @public
377
+ */
453
378
  userId?: string;
379
+ /**
380
+ * The unique identifier for the new group channel. If not provided, the system will generate one.
381
+ * @public
382
+ */
454
383
  channelId?: string;
384
+ /**
385
+ * A list of user IDs to be added as members of the group channel.
386
+ * @public
387
+ */
455
388
  members?: (string)[];
389
+ /**
390
+ * A list of users to invite to the group channel, identified by their email addresses or phone numbers.
391
+ * @public
392
+ */
456
393
  membersToInvite?: (UserToInvite)[];
457
394
  }
458
395
  /**
@@ -465,6 +402,10 @@ export interface CreateGroupChannelOutput {
465
402
  * @public
466
403
  */
467
404
  export interface DeleteChannelInput {
405
+ /**
406
+ * The unique identifier of the channel to be deleted.
407
+ * @public
408
+ */
468
409
  channelId: string;
469
410
  }
470
411
  /**
@@ -476,15 +417,23 @@ export interface DeleteChannelOutput {
476
417
  * @public
477
418
  */
478
419
  export interface DeleteChannelMemberInput {
420
+ /**
421
+ * The unique identifier of the channel from which the member is to be deleted.
422
+ * @public
423
+ */
479
424
  channelId: string;
480
425
  /**
481
- * User ID for server side calls
426
+ * The unique identifier of the user when a service token is used.
482
427
  * @public
483
428
  */
484
429
  userId?: string;
430
+ /**
431
+ * The unique identifier of the member to be deleted.
432
+ * @public
433
+ */
485
434
  memberId: string;
486
435
  /**
487
- * True to not send a system message that member was removed from the conversartion. Default - false.
436
+ * Set to true to suppress system messages that the member was removed from the conversation. Default is false.
488
437
  * @public
489
438
  */
490
439
  silent?: boolean;
@@ -509,10 +458,18 @@ export declare class MemberNotFoundException extends __BaseException {
509
458
  * @public
510
459
  */
511
460
  export interface DeleteMessageInput {
461
+ /**
462
+ * The unique identifier of the channel containing the message.
463
+ * @public
464
+ */
512
465
  channelId: string;
466
+ /**
467
+ * The unique identifier of the message to delete.
468
+ * @public
469
+ */
513
470
  messageId: string;
514
471
  /**
515
- * User ID for server side calls
472
+ * The unique identifier of the user when a service token is used.
516
473
  * @public
517
474
  */
518
475
  userId?: string;
@@ -556,19 +513,23 @@ export type ReactionType = typeof ReactionType[keyof typeof ReactionType];
556
513
  * @public
557
514
  */
558
515
  export interface DeleteMessageReactionInput {
516
+ /**
517
+ * The unique identifier of the channel containing the message.
518
+ * @public
519
+ */
559
520
  channelId: string;
560
521
  /**
561
- * ID of the message to react to.
522
+ * The unique identifier of the message to delete the reaction from.
562
523
  * @public
563
524
  */
564
525
  messageId: string;
565
526
  /**
566
- * Type of the reaction.
527
+ * The type of the reaction to delete.
567
528
  * @public
568
529
  */
569
530
  reactionType: ReactionType;
570
531
  /**
571
- * User ID for server side calls
532
+ * The unique identifier of the user when a service token is used.
572
533
  * @public
573
534
  */
574
535
  userId?: string;
@@ -752,6 +713,20 @@ export declare const MessageType: {
752
713
  * @public
753
714
  */
754
715
  export type MessageType = typeof MessageType[keyof typeof MessageType];
716
+ /**
717
+ * @public
718
+ * @enum
719
+ */
720
+ export declare const MessageWhatsAppStatus: {
721
+ readonly DELIVERED: "delivered";
722
+ readonly ERROR: "error";
723
+ readonly SENT: "sent";
724
+ readonly TRYING: "trying";
725
+ };
726
+ /**
727
+ * @public
728
+ */
729
+ export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
755
730
  /**
756
731
  * @public
757
732
  */
@@ -766,6 +741,8 @@ export interface Message {
766
741
  event?: string;
767
742
  sms?: boolean;
768
743
  smsStatus?: MessageSmsStatus;
744
+ whatsapp?: boolean;
745
+ whatsappStatus?: MessageWhatsAppStatus;
769
746
  messageId: string;
770
747
  channelId: string;
771
748
  user: User;
@@ -878,6 +855,10 @@ export interface DescribeEventOutput {
878
855
  * @public
879
856
  */
880
857
  export interface GetChannelInput {
858
+ /**
859
+ * The unique identifier of the channel.
860
+ * @public
861
+ */
881
862
  channelId: string;
882
863
  }
883
864
  /**
@@ -890,22 +871,50 @@ export interface GetChannelOutput {
890
871
  * @public
891
872
  */
892
873
  export interface GetChannelMemberInput {
874
+ /**
875
+ * The unique identifier of the channel.
876
+ * @public
877
+ */
893
878
  channelId: string;
879
+ /**
880
+ * The unique identifier of the user.
881
+ * @public
882
+ */
894
883
  memberId: string;
895
884
  }
896
885
  /**
897
886
  * @public
898
887
  */
899
888
  export interface GetChannelMemberOutput {
889
+ /**
890
+ * Details of the channel member.
891
+ * @public
892
+ */
900
893
  member: ChannelMember;
894
+ /**
895
+ * Details of the user.
896
+ * @public
897
+ */
901
898
  user: User;
902
899
  }
903
900
  /**
904
901
  * @public
905
902
  */
906
903
  export interface GetDirectChannelIdInput {
904
+ /**
905
+ * The unique identifier of the user when a service token is used.
906
+ * @public
907
+ */
907
908
  userId?: string;
909
+ /**
910
+ * A User ID of the member to connect with the direct channel.
911
+ * @public
912
+ */
908
913
  memberId?: string;
914
+ /**
915
+ * A user to invite to the direct channel, identified by email addresse or phone number.
916
+ * @public
917
+ */
909
918
  memberToInvite?: UserToInvite;
910
919
  }
911
920
  /**
@@ -930,18 +939,22 @@ export declare class FileNotFoundException extends __BaseException {
930
939
  */
931
940
  export interface GetFilePresignedDownloadUrlInput {
932
941
  /**
933
- * Channel Id.
942
+ * The unique identifier of the channel containing the message.
934
943
  * @public
935
944
  */
936
945
  channelId: string;
937
946
  /**
938
- * Message Id.
947
+ * The unique identifier of the message containing the file.
939
948
  * @public
940
949
  */
941
950
  messageId: string;
951
+ /**
952
+ * The unique identifier of the file to download.
953
+ * @public
954
+ */
942
955
  fileId: string;
943
956
  /**
944
- * File category. Channel files or conference recordings. Default: channels.
957
+ * The category of the file, either channel files or conference recordings.
945
958
  * @public
946
959
  */
947
960
  category?: ConversationFileCategory;
@@ -951,7 +964,7 @@ export interface GetFilePresignedDownloadUrlInput {
951
964
  */
952
965
  export interface GetFilePresignedDownloadUrlOutput {
953
966
  /**
954
- * Presigned URL for download file.
967
+ * The presigned URL for downloading the file.
955
968
  * @public
956
969
  */
957
970
  presignedDownloadUrl: string;
@@ -960,7 +973,15 @@ export interface GetFilePresignedDownloadUrlOutput {
960
973
  * @public
961
974
  */
962
975
  export interface GetMessageInput {
976
+ /**
977
+ * The unique identifier of the channel containing the message.
978
+ * @public
979
+ */
963
980
  channelId: string;
981
+ /**
982
+ * The unique identifier of the message to retrieve.
983
+ * @public
984
+ */
964
985
  messageId: string;
965
986
  }
966
987
  /**
@@ -973,8 +994,20 @@ export interface GetMessageOutput {
973
994
  * @public
974
995
  */
975
996
  export interface GetOrCreateDirectChannelInput {
997
+ /**
998
+ * The unique identifier of the user when a service token is used.
999
+ * @public
1000
+ */
976
1001
  userId?: string;
1002
+ /**
1003
+ * A User ID of the member to connect with the direct channel.
1004
+ * @public
1005
+ */
977
1006
  memberId?: string;
1007
+ /**
1008
+ * A user to invite to the direct channel, identified by email addresse or phone number.
1009
+ * @public
1010
+ */
978
1011
  memberToInvite?: UserToInvite;
979
1012
  }
980
1013
  /**
@@ -988,17 +1021,17 @@ export interface GetOrCreateDirectChannelOutput {
988
1021
  */
989
1022
  export interface GetUploadedFileInfoInput {
990
1023
  /**
991
- * Channel Id.
1024
+ * The unique identifier of the channel containing the file.
992
1025
  * @public
993
1026
  */
994
1027
  channelId: string;
995
1028
  /**
996
- * File Id. Support cds file's ID.
1029
+ * The unique identifier of the file.
997
1030
  * @public
998
1031
  */
999
1032
  fileId: string;
1000
1033
  /**
1001
- * File category. Channel files or conference recordings. Default: channels.
1034
+ * The category of the file, either channel files or conference recordings. Default: channels.
1002
1035
  * @public
1003
1036
  */
1004
1037
  category?: ConversationFileCategory;
@@ -1013,7 +1046,15 @@ export interface GetUploadedFileInfoOutput {
1013
1046
  * @public
1014
1047
  */
1015
1048
  export interface HideChannelInput {
1049
+ /**
1050
+ * The unique identifier of the channel to hide.
1051
+ * @public
1052
+ */
1016
1053
  channelId: string;
1054
+ /**
1055
+ * The unique identifier of the user when a service token is used.
1056
+ * @public
1057
+ */
1017
1058
  userId?: string;
1018
1059
  }
1019
1060
  /**
@@ -1025,20 +1066,40 @@ export interface HideChannelOutput {
1025
1066
  * @public
1026
1067
  */
1027
1068
  export interface InviteInput {
1069
+ /**
1070
+ * A list of users to invite. The list must contain between 1 and 20 users.
1071
+ * @public
1072
+ */
1028
1073
  invitees: (UserToInvite)[];
1029
1074
  }
1030
1075
  /**
1031
1076
  * @public
1032
1077
  */
1033
1078
  export interface InviteOutput {
1079
+ /**
1080
+ * A list of users who were successfully invited.
1081
+ * @public
1082
+ */
1034
1083
  users: (User)[];
1035
1084
  }
1036
1085
  /**
1037
1086
  * @public
1038
1087
  */
1039
1088
  export interface JoinChannelInput {
1089
+ /**
1090
+ * The unique identifier of the channel to join.
1091
+ * @public
1092
+ */
1040
1093
  channelId: string;
1094
+ /**
1095
+ * The unique identifier of the user when a service token is used.
1096
+ * @public
1097
+ */
1041
1098
  userId?: string;
1099
+ /**
1100
+ * Set to true to suppress system messages that the user joined the channel. Default is false.
1101
+ * @public
1102
+ */
1042
1103
  silent?: boolean;
1043
1104
  }
1044
1105
  /**
@@ -1051,8 +1112,20 @@ export interface JoinChannelOutput {
1051
1112
  * @public
1052
1113
  */
1053
1114
  export interface LeaveChannelInput {
1115
+ /**
1116
+ * The unique identifier of the channel to leave.
1117
+ * @public
1118
+ */
1054
1119
  channelId: string;
1120
+ /**
1121
+ * The unique identifier of the user when a service token is used.
1122
+ * @public
1123
+ */
1055
1124
  userId?: string;
1125
+ /**
1126
+ * Set to true to suppress system messages that the user left the channel. Default is false.
1127
+ * @public
1128
+ */
1056
1129
  silent?: boolean;
1057
1130
  }
1058
1131
  /**
@@ -1064,8 +1137,20 @@ export interface LeaveChannelOutput {
1064
1137
  * @public
1065
1138
  */
1066
1139
  export interface ListChannelMembersInput {
1140
+ /**
1141
+ * The unique identifier of the channel whose members are to be listed.
1142
+ * @public
1143
+ */
1067
1144
  channelId: string;
1145
+ /**
1146
+ * The maximum number of members to return. The value must be between 1 and 100.
1147
+ * @public
1148
+ */
1068
1149
  limit?: number;
1150
+ /**
1151
+ * The offset from which to start listing members. The value must be between 0 and 1000.
1152
+ * @public
1153
+ */
1069
1154
  offset?: number;
1070
1155
  }
1071
1156
  /**
@@ -1073,7 +1158,7 @@ export interface ListChannelMembersInput {
1073
1158
  */
1074
1159
  export interface ListChannelMembersOutput {
1075
1160
  /**
1076
- * The list of members matching the query
1161
+ * The list of members matching the query.
1077
1162
  * @public
1078
1163
  */
1079
1164
  members: (ChannelMember)[];
@@ -1087,50 +1172,110 @@ export interface ListChannelMembersOutput {
1087
1172
  * @public
1088
1173
  */
1089
1174
  export interface ListChannelsInput {
1175
+ /**
1176
+ * The unique identifier of the user when a service token is used.
1177
+ * @public
1178
+ */
1090
1179
  userId?: string;
1180
+ /**
1181
+ * The maximum number of channels to return. The value must be between 1 and 50.
1182
+ * @public
1183
+ */
1091
1184
  limit?: number;
1185
+ /**
1186
+ * The offset from which to start listing channels. The value must be between 0 and 1000.
1187
+ * @public
1188
+ */
1092
1189
  offset?: number;
1093
1190
  }
1094
1191
  /**
1095
1192
  * @public
1096
1193
  */
1097
1194
  export interface ListChannelsOutput {
1195
+ /**
1196
+ * A list of channels associated with the user.
1197
+ * @public
1198
+ */
1098
1199
  channels: (Channel)[];
1099
1200
  }
1100
1201
  /**
1101
1202
  * @public
1102
1203
  */
1103
1204
  export interface ListMessageReactionsInput {
1205
+ /**
1206
+ * The unique identifier of the channel containing the message.
1207
+ * @public
1208
+ */
1104
1209
  channelId: string;
1210
+ /**
1211
+ * The unique identifier of the message whose reactions are to be listed.
1212
+ * @public
1213
+ */
1105
1214
  messageId: string;
1215
+ /**
1216
+ * The maximum number of reactions to return. The value must be between 1 and 300.
1217
+ * @public
1218
+ */
1106
1219
  limit?: number;
1220
+ /**
1221
+ * The offset from which to start listing reactions. The value must be between 0 and 1000.
1222
+ * @public
1223
+ */
1107
1224
  offset?: number;
1108
1225
  }
1109
1226
  /**
1110
1227
  * @public
1111
1228
  */
1112
1229
  export interface ListMessageReactionsOutput {
1230
+ /**
1231
+ * A list of reactions to the specified message.
1232
+ * @public
1233
+ */
1113
1234
  reactions: (Reaction)[];
1114
1235
  }
1115
1236
  /**
1116
1237
  * @public
1117
1238
  */
1118
1239
  export interface ListMessagesInput {
1240
+ /**
1241
+ * The unique identifier of the channel from which to list messages.
1242
+ * @public
1243
+ */
1119
1244
  channelId: string;
1245
+ /**
1246
+ * The maximum number of messages to return. The value must be between 1 and 100.
1247
+ * @public
1248
+ */
1120
1249
  limit?: number;
1250
+ /**
1251
+ * The offset from which to start listing messages. The value must be between 0 and 1000.
1252
+ * @public
1253
+ */
1121
1254
  offset?: number;
1122
1255
  }
1123
1256
  /**
1124
1257
  * @public
1125
1258
  */
1126
1259
  export interface ListMessagesOutput {
1260
+ /**
1261
+ * A list of messages from the specified channel.
1262
+ * @public
1263
+ */
1127
1264
  messages: (Message)[];
1128
1265
  }
1129
1266
  /**
1130
1267
  * @public
1131
1268
  */
1132
1269
  export interface MarkReadInput {
1270
+ /**
1271
+ * The unique identifier of the channel whose messages are to be marked as read.
1272
+ * @public
1273
+ */
1133
1274
  channelId: string;
1275
+ /**
1276
+ * The unique identifier of the user when a service token is used.
1277
+ * @public
1278
+ */
1134
1279
  userId?: string;
1135
1280
  }
1136
1281
  /**
@@ -1142,19 +1287,35 @@ export interface MarkReadOutput {
1142
1287
  * @public
1143
1288
  */
1144
1289
  export interface PartialUpdateChannelSetOptions {
1290
+ /**
1291
+ * The subject of the channel.
1292
+ * @public
1293
+ */
1145
1294
  subject?: string;
1295
+ /**
1296
+ * The description of the channel.
1297
+ * @public
1298
+ */
1146
1299
  description?: string;
1147
1300
  /**
1148
- * Picture URL
1301
+ * The URL of the channel's picture.
1149
1302
  * @public
1150
1303
  */
1151
1304
  picture?: string;
1152
1305
  /**
1153
- * Picture dominant color represented by a hex value.
1306
+ * The dominant color of the channel's picture, represented by a hex value.
1154
1307
  * @public
1155
1308
  */
1156
1309
  pictureColor?: string;
1310
+ /**
1311
+ * The access level of the channel.
1312
+ * @public
1313
+ */
1157
1314
  access?: ChannelAccess;
1315
+ /**
1316
+ * Indicates if the channel is broadcast-only. Default is false.
1317
+ * @public
1318
+ */
1158
1319
  broadcast?: boolean;
1159
1320
  }
1160
1321
  /**
@@ -1177,14 +1338,30 @@ export type GroupChannelUnsetOptions = typeof GroupChannelUnsetOptions[keyof typ
1177
1338
  * @public
1178
1339
  */
1179
1340
  export interface PartialUpdateChannelInput {
1341
+ /**
1342
+ * The unique identifier of the channel to be updated.
1343
+ * @public
1344
+ */
1180
1345
  channelId: string;
1346
+ /**
1347
+ * The unique identifier of the user when a service token is used.
1348
+ * @public
1349
+ */
1181
1350
  userId?: string;
1182
1351
  /**
1183
- * True to not send a system message about updates. Default - false.
1352
+ * Set to true to suppress system messages about the updates. Default is false.
1184
1353
  * @public
1185
1354
  */
1186
1355
  silent?: boolean;
1356
+ /**
1357
+ * Options to set specific fields in the channel.
1358
+ * @public
1359
+ */
1187
1360
  set?: PartialUpdateChannelSetOptions;
1361
+ /**
1362
+ * Options to unset specific fields in the channel.
1363
+ * @public
1364
+ */
1188
1365
  unset?: (GroupChannelUnsetOptions)[];
1189
1366
  }
1190
1367
  /**
@@ -1220,9 +1397,25 @@ export type MessageUnsetFields = typeof MessageUnsetFields[keyof typeof MessageU
1220
1397
  * @public
1221
1398
  */
1222
1399
  export interface PartialUpdateMessageInput {
1400
+ /**
1401
+ * The unique identifier of the channel containing the message.
1402
+ * @public
1403
+ */
1223
1404
  channelId: string;
1405
+ /**
1406
+ * The unique identifier of the message to update.
1407
+ * @public
1408
+ */
1224
1409
  messageId: string;
1410
+ /**
1411
+ * Fields to set during the partial update.
1412
+ * @public
1413
+ */
1225
1414
  set?: PartialUpdateMessageSetInput;
1415
+ /**
1416
+ * Fields to unset during the partial update.
1417
+ * @public
1418
+ */
1226
1419
  unset?: (MessageUnsetFields)[];
1227
1420
  }
1228
1421
  /**
@@ -1247,7 +1440,7 @@ export declare class ConversationsServiceException extends __BaseException {
1247
1440
  */
1248
1441
  export interface ScheduleExternalFlagAdjustmentJobInput {
1249
1442
  /**
1250
- * User ID at x-bees.
1443
+ * The unique identifier of the user.
1251
1444
  * @public
1252
1445
  */
1253
1446
  userId: string;
@@ -1261,17 +1454,25 @@ export interface ScheduleExternalFlagAdjustmentJobOutput {
1261
1454
  * @public
1262
1455
  */
1263
1456
  export interface SendGiphyInput {
1457
+ /**
1458
+ * The unique identifier of the channel to which the Giphy message is sent.
1459
+ * @public
1460
+ */
1264
1461
  channelId: string;
1265
1462
  /**
1266
- * User ID for server side calls
1463
+ * The unique identifier of the user when a service token is used.
1267
1464
  * @public
1268
1465
  */
1269
1466
  userId?: string;
1270
1467
  /**
1271
- * Message ID if empty ID will be auto-generated.
1468
+ * The unique identifier of the message. If not provided, an ID will be auto-generated.
1272
1469
  * @public
1273
1470
  */
1274
1471
  messageId?: string;
1472
+ /**
1473
+ * Details of the Giphy message to be sent.
1474
+ * @public
1475
+ */
1275
1476
  giphy: MessageGiphy;
1276
1477
  }
1277
1478
  /**
@@ -1288,17 +1489,25 @@ export interface SendMessageInput {
1288
1489
  attachments?: (MessageAttachment)[];
1289
1490
  quote?: MessageQuote;
1290
1491
  forward?: MessageForward;
1492
+ /**
1493
+ * The unique identifier of the channel to which the message is sent.
1494
+ * @public
1495
+ */
1291
1496
  channelId: string;
1292
1497
  /**
1293
- * User ID for server side calls
1498
+ * The unique identifier of the user when a service token is used.
1294
1499
  * @public
1295
1500
  */
1296
1501
  userId?: string;
1297
1502
  /**
1298
- * Message ID if empty ID will be auto-generated.
1503
+ * The unique identifier of the message. If not provided, an ID will be auto-generated.
1299
1504
  * @public
1300
1505
  */
1301
1506
  messageId?: string;
1507
+ /**
1508
+ * A list of user IDs mentioned in the message.
1509
+ * @public
1510
+ */
1302
1511
  mentions?: (string)[];
1303
1512
  }
1304
1513
  /**
@@ -1311,15 +1520,23 @@ export interface SendMessageOutput {
1311
1520
  * @public
1312
1521
  */
1313
1522
  export interface SendMessageReactionInput {
1523
+ /**
1524
+ * The unique identifier of the channel containing the message.
1525
+ * @public
1526
+ */
1314
1527
  channelId: string;
1528
+ /**
1529
+ * The unique identifier of the message to which the reaction is sent.
1530
+ * @public
1531
+ */
1315
1532
  messageId: string;
1316
1533
  /**
1317
- * Type of the reaction. User could have only 1 reaction of each type per message.
1534
+ * The type of the reaction. A user can have only one reaction of each type per message.
1318
1535
  * @public
1319
1536
  */
1320
1537
  reactionType: ReactionType;
1321
1538
  /**
1322
- * User ID for server side calls
1539
+ * The unique identifier of the user when a service token is used.
1323
1540
  * @public
1324
1541
  */
1325
1542
  userId?: string;
@@ -1333,7 +1550,15 @@ export interface SendMessageReactionOutput {
1333
1550
  * @public
1334
1551
  */
1335
1552
  export interface SendTypingStartInput {
1553
+ /**
1554
+ * The unique identifier of the channel to which the typing start event is sent.
1555
+ * @public
1556
+ */
1336
1557
  channelId: string;
1558
+ /**
1559
+ * The unique identifier of the user when a service token is used.
1560
+ * @public
1561
+ */
1337
1562
  userId?: string;
1338
1563
  }
1339
1564
  /**
@@ -1345,7 +1570,15 @@ export interface SendTypingStartOutput {
1345
1570
  * @public
1346
1571
  */
1347
1572
  export interface SendTypingStopInput {
1573
+ /**
1574
+ * The unique identifier of the channel to which the typing stop event is sent.
1575
+ * @public
1576
+ */
1348
1577
  channelId: string;
1578
+ /**
1579
+ * The unique identifier of the user when a service token is used.
1580
+ * @public
1581
+ */
1349
1582
  userId?: string;
1350
1583
  }
1351
1584
  /**
@@ -1357,7 +1590,15 @@ export interface SendTypingStopOutput {
1357
1590
  * @public
1358
1591
  */
1359
1592
  export interface ShowChannelInput {
1593
+ /**
1594
+ * The unique identifier of the channel to show.
1595
+ * @public
1596
+ */
1360
1597
  channelId: string;
1598
+ /**
1599
+ * The unique identifier of the user when a service token is used.
1600
+ * @public
1601
+ */
1361
1602
  userId?: string;
1362
1603
  }
1363
1604
  /**
@@ -1369,24 +1610,48 @@ export interface ShowChannelOutput {
1369
1610
  * @public
1370
1611
  */
1371
1612
  export interface UpdateChannelInput {
1613
+ /**
1614
+ * The subject of the channel.
1615
+ * @public
1616
+ */
1372
1617
  subject?: string;
1618
+ /**
1619
+ * The description of the channel.
1620
+ * @public
1621
+ */
1373
1622
  description?: string;
1374
1623
  /**
1375
- * Picture URL
1624
+ * The URL of the channel's picture.
1376
1625
  * @public
1377
1626
  */
1378
1627
  picture?: string;
1379
1628
  /**
1380
- * Picture dominant color represented by a hex value.
1629
+ * The dominant color of the channel's picture, represented by a hex value.
1381
1630
  * @public
1382
1631
  */
1383
1632
  pictureColor?: string;
1633
+ /**
1634
+ * The access level of the channel.
1635
+ * @public
1636
+ */
1384
1637
  access?: ChannelAccess;
1638
+ /**
1639
+ * Indicates if the channel is broadcast-only. Default is false.
1640
+ * @public
1641
+ */
1385
1642
  broadcast?: boolean;
1643
+ /**
1644
+ * The unique identifier of the channel to be updated.
1645
+ * @public
1646
+ */
1386
1647
  channelId: string;
1648
+ /**
1649
+ * The unique identifier of the user when a service token is used.
1650
+ * @public
1651
+ */
1387
1652
  userId?: string;
1388
1653
  /**
1389
- * True to not send a system message about updates. Default - false.
1654
+ * Set to true to suppress system messages about the updates. Default is false.
1390
1655
  * @public
1391
1656
  */
1392
1657
  silent?: boolean;
@@ -1405,8 +1670,20 @@ export interface UpdateMessageInput {
1405
1670
  attachments?: (MessageAttachment)[];
1406
1671
  quote?: MessageQuote;
1407
1672
  forward?: MessageForward;
1673
+ /**
1674
+ * The unique identifier of the channel containing the message.
1675
+ * @public
1676
+ */
1408
1677
  channelId: string;
1678
+ /**
1679
+ * The unique identifier of the message to update.
1680
+ * @public
1681
+ */
1409
1682
  messageId: string;
1683
+ /**
1684
+ * A list of user IDs mentioned in the message.
1685
+ * @public
1686
+ */
1410
1687
  mentions?: (string)[];
1411
1688
  }
1412
1689
  /**
@@ -1440,17 +1717,17 @@ export interface UploadFileOptions {
1440
1717
  */
1441
1718
  export interface UploadFileInput {
1442
1719
  /**
1443
- * Channel Id.
1720
+ * The unique identifier of the channel.
1444
1721
  * @public
1445
1722
  */
1446
1723
  channelId: string;
1447
1724
  /**
1448
- * File name, unreadable characters will be replaced with underscores.
1725
+ * The name of the file. Unreadable characters will be replaced with underscores.
1449
1726
  * @public
1450
1727
  */
1451
1728
  name: string;
1452
1729
  /**
1453
- * Additional options.
1730
+ * Additional options for the file upload.
1454
1731
  * @public
1455
1732
  */
1456
1733
  options?: UploadFileOptions;
@@ -1460,12 +1737,12 @@ export interface UploadFileInput {
1460
1737
  */
1461
1738
  export interface UploadFileOutput {
1462
1739
  /**
1463
- * File Id. Format ownerId_uuid.
1740
+ * The unique identifier of the file.
1464
1741
  * @public
1465
1742
  */
1466
1743
  fileId: string;
1467
1744
  /**
1468
- * Presigned URL for upload file.
1745
+ * The presigned URL for uploading the file.
1469
1746
  * @public
1470
1747
  */
1471
1748
  presignedUploadUrl: string;