@wildix/xbees-conversations-client 1.0.30 → 1.0.31

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 (80) hide show
  1. package/dist-cjs/Conversations.js +36 -4
  2. package/dist-cjs/commands/AddChannelMemberCommand.js +41 -0
  3. package/dist-cjs/commands/AddChannelMembersCommand.js +41 -0
  4. package/dist-cjs/commands/CreateGroupChannelCommand.js +41 -0
  5. package/dist-cjs/commands/DeleteChannelMemberCommand.js +41 -0
  6. package/dist-cjs/commands/DeleteMessageReactionCommand.js +41 -0
  7. package/dist-cjs/commands/GetDirectChannelIdCommand.js +41 -0
  8. package/dist-cjs/commands/GetMessageReactionsCommand.js +41 -0
  9. package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +41 -0
  10. package/dist-cjs/commands/InviteCommand.js +41 -0
  11. package/dist-cjs/commands/{CreateChannelCommand.js → LeaveChannelCommand.js} +7 -7
  12. package/dist-cjs/commands/ListChannelMembersCommand.js +41 -0
  13. package/dist-cjs/commands/MarkReadCommand.js +41 -0
  14. package/dist-cjs/commands/SendGiphyCommand.js +41 -0
  15. package/dist-cjs/commands/SendMessageCommand.js +41 -0
  16. package/dist-cjs/commands/SendMessageReactionCommand.js +41 -0
  17. package/dist-cjs/commands/SendSystemMessageCommand.js +41 -0
  18. package/dist-cjs/commands/SendTypingStartCommand.js +41 -0
  19. package/dist-cjs/commands/{CreateMessageCommand.js → SendTypingStopCommand.js} +7 -7
  20. package/dist-cjs/commands/index.js +18 -2
  21. package/dist-cjs/models/models_0.js +71 -52
  22. package/dist-cjs/protocols/Aws_restJson1.js +1204 -145
  23. package/dist-es/Conversations.js +36 -4
  24. package/dist-es/commands/AddChannelMemberCommand.js +37 -0
  25. package/dist-es/commands/AddChannelMembersCommand.js +37 -0
  26. package/dist-es/commands/CreateGroupChannelCommand.js +37 -0
  27. package/dist-es/commands/DeleteChannelMemberCommand.js +37 -0
  28. package/dist-es/commands/DeleteMessageReactionCommand.js +37 -0
  29. package/dist-es/commands/GetDirectChannelIdCommand.js +37 -0
  30. package/dist-es/commands/GetMessageReactionsCommand.js +37 -0
  31. package/dist-es/commands/GetOrCreateDirectChannelCommand.js +37 -0
  32. package/dist-es/commands/{CreateChannelCommand.js → InviteCommand.js} +6 -6
  33. package/dist-es/commands/{CreateMessageCommand.js → LeaveChannelCommand.js} +6 -6
  34. package/dist-es/commands/ListChannelMembersCommand.js +37 -0
  35. package/dist-es/commands/MarkReadCommand.js +37 -0
  36. package/dist-es/commands/SendGiphyCommand.js +37 -0
  37. package/dist-es/commands/SendMessageCommand.js +37 -0
  38. package/dist-es/commands/SendMessageReactionCommand.js +37 -0
  39. package/dist-es/commands/SendSystemMessageCommand.js +37 -0
  40. package/dist-es/commands/SendTypingStartCommand.js +37 -0
  41. package/dist-es/commands/SendTypingStopCommand.js +37 -0
  42. package/dist-es/commands/index.js +18 -2
  43. package/dist-es/models/models_0.js +67 -50
  44. package/dist-es/protocols/Aws_restJson1.js +1174 -148
  45. package/dist-types/Conversations.d.ts +122 -10
  46. package/dist-types/ConversationsClient.d.ts +20 -4
  47. package/dist-types/commands/AddChannelMemberCommand.d.ts +105 -0
  48. package/dist-types/commands/AddChannelMembersCommand.d.ts +113 -0
  49. package/dist-types/commands/{CreateChannelCommand.d.ts → CreateGroupChannelCommand.d.ts} +37 -79
  50. package/dist-types/commands/DeleteChannelCommand.d.ts +2 -0
  51. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +79 -0
  52. package/dist-types/commands/DeleteMessageCommand.d.ts +2 -0
  53. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +80 -0
  54. package/dist-types/commands/GetChannelCommand.d.ts +2 -0
  55. package/dist-types/commands/GetChannelMemberCommand.d.ts +17 -0
  56. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +82 -0
  57. package/dist-types/commands/GetMessageCommand.d.ts +23 -21
  58. package/dist-types/commands/GetMessageReactionsCommand.d.ts +101 -0
  59. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +144 -0
  60. package/dist-types/commands/InviteCommand.d.ts +98 -0
  61. package/dist-types/commands/JoinChannelCommand.d.ts +1 -0
  62. package/dist-types/commands/LeaveChannelCommand.d.ts +77 -0
  63. package/dist-types/commands/ListChannelMembersCommand.d.ts +102 -0
  64. package/dist-types/commands/ListChannelsCommand.d.ts +2 -0
  65. package/dist-types/commands/ListMessagesCommand.d.ts +23 -21
  66. package/dist-types/commands/MarkReadCommand.d.ts +76 -0
  67. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +5 -52
  68. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +46 -54
  69. package/dist-types/commands/SendGiphyCommand.d.ts +220 -0
  70. package/dist-types/commands/{CreateMessageCommand.d.ts → SendMessageCommand.d.ts} +137 -143
  71. package/dist-types/commands/SendMessageReactionCommand.d.ts +78 -0
  72. package/dist-types/commands/SendSystemMessageCommand.d.ts +213 -0
  73. package/dist-types/commands/SendTypingStartCommand.d.ts +76 -0
  74. package/dist-types/commands/SendTypingStopCommand.d.ts +76 -0
  75. package/dist-types/commands/UpdateChannelCommand.d.ts +8 -57
  76. package/dist-types/commands/UpdateMessageCommand.d.ts +118 -125
  77. package/dist-types/commands/index.d.ts +18 -2
  78. package/dist-types/models/models_0.d.ts +450 -172
  79. package/dist-types/protocols/Aws_restJson1.d.ts +154 -10
  80. package/package.json +1 -1
@@ -52,6 +52,103 @@ export declare const ChannelType: {
52
52
  * @public
53
53
  */
54
54
  export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
55
+ /**
56
+ * @public
57
+ */
58
+ export interface UserToInvite {
59
+ email?: string;
60
+ phone?: string;
61
+ name?: string;
62
+ colleague?: boolean;
63
+ }
64
+ /**
65
+ * @public
66
+ */
67
+ export interface AddChannelMemberInput {
68
+ channelId: string;
69
+ memberId?: string;
70
+ memberToInvite?: UserToInvite;
71
+ }
72
+ /**
73
+ * @public
74
+ * @enum
75
+ */
76
+ export declare const ChannelMemberRole: {
77
+ readonly MEMBER: "member";
78
+ readonly SUPERVISOR: "supervisor";
79
+ };
80
+ /**
81
+ * @public
82
+ */
83
+ export type ChannelMemberRole = typeof ChannelMemberRole[keyof typeof ChannelMemberRole];
84
+ /**
85
+ * @public
86
+ */
87
+ export interface ChannelMember {
88
+ id: string;
89
+ createdAt: string;
90
+ role: ChannelMemberRole | string;
91
+ }
92
+ /**
93
+ * @public
94
+ */
95
+ export interface AddChannelMemberOutput {
96
+ /**
97
+ * @public
98
+ * Member added to the channel
99
+ */
100
+ member: ChannelMember;
101
+ /**
102
+ * @public
103
+ * Users added to the channel
104
+ */
105
+ user: User;
106
+ }
107
+ /**
108
+ * @public
109
+ */
110
+ export declare class ChannelNotFoundException extends __BaseException {
111
+ readonly name: "ChannelNotFoundException";
112
+ readonly $fault: "client";
113
+ /**
114
+ * @internal
115
+ */
116
+ constructor(opts: __ExceptionOptionType<ChannelNotFoundException, __BaseException>);
117
+ }
118
+ /**
119
+ * @public
120
+ */
121
+ export declare class MemberAlreadyExistException extends __BaseException {
122
+ readonly name: "MemberAlreadyExistException";
123
+ readonly $fault: "client";
124
+ /**
125
+ * @internal
126
+ */
127
+ constructor(opts: __ExceptionOptionType<MemberAlreadyExistException, __BaseException>);
128
+ }
129
+ /**
130
+ * @public
131
+ */
132
+ export interface AddChannelMembersInput {
133
+ channelId: string;
134
+ members?: (string)[];
135
+ membersToInvite?: (UserToInvite)[];
136
+ }
137
+ /**
138
+ * @public
139
+ */
140
+ export interface AddChannelMembersOutput {
141
+ /**
142
+ * @public
143
+ * The list of members added to the channel
144
+ */
145
+ members: (ChannelMember)[];
146
+ /**
147
+ * @public
148
+ * The list of users added to the channel
149
+ */
150
+ users: (User)[];
151
+ }
55
152
  /**
56
153
  * @public
57
154
  * @enum
@@ -160,7 +257,18 @@ export interface Channel {
160
257
  /**
161
258
  * @public
162
259
  */
163
- export interface ChannelCreateFields {
260
+ export declare class ChannelAlreadyExistException extends __BaseException {
261
+ readonly name: "ChannelAlreadyExistException";
262
+ readonly $fault: "client";
263
+ /**
264
+ * @internal
265
+ */
266
+ constructor(opts: __ExceptionOptionType<ChannelAlreadyExistException, __BaseException>);
267
+ }
268
+ /**
269
+ * @public
270
+ */
271
+ export interface CreateGroupChannelInput {
164
272
  subject?: string;
165
273
  description?: string;
166
274
  /**
@@ -174,138 +282,172 @@ export interface ChannelCreateFields {
174
282
  */
175
283
  pictureColor?: string;
176
284
  access?: ChannelAccess | string;
177
- company?: string;
178
- context?: ChannelContext;
179
- kite?: boolean;
180
- kiteTarget?: string;
181
- kiteVariant?: string;
182
- kiteAssign?: string;
183
- kiteServiceName?: string;
184
- kiteDefaultSubject?: string;
185
- service?: string;
186
- serviceTitle?: string;
187
- serviceRecipient?: string;
188
- assignee?: User;
189
- telephony?: boolean;
190
- sms?: boolean;
191
- mms?: boolean;
192
285
  broadcast?: boolean;
193
- external?: boolean;
286
+ userId?: string;
194
287
  channelId?: string;
195
- channelType: ChannelType | string;
196
288
  members?: (string)[];
289
+ membersToInvite?: (UserToInvite)[];
197
290
  }
198
291
  /**
199
292
  * @public
200
- * @enum
201
293
  */
202
- export declare const ChannelMemberRole: {
203
- readonly MEMBER: "member";
204
- readonly SUPERVISOR: "supervisor";
205
- };
294
+ export interface CreateGroupChannelOutput {
295
+ channel: Channel;
296
+ }
206
297
  /**
207
298
  * @public
208
299
  */
209
- export type ChannelMemberRole = typeof ChannelMemberRole[keyof typeof ChannelMemberRole];
300
+ export interface DeleteChannelInput {
301
+ channelId: string;
302
+ }
210
303
  /**
211
304
  * @public
212
305
  */
213
- export interface ChannelMember {
214
- id: string;
215
- createdAt: string;
216
- role: ChannelMemberRole | string;
306
+ export interface DeleteChannelOutput {
217
307
  }
218
308
  /**
219
309
  * @public
220
310
  */
221
- export declare class ChannelNotFoundException extends __BaseException {
222
- readonly name: "ChannelNotFoundException";
311
+ export interface DeleteChannelMemberInput {
312
+ channelId: string;
313
+ memberId: string;
314
+ /**
315
+ * @public
316
+ * True to not send a system message that member was removed from the conversartion. Default - false.
317
+ */
318
+ silent?: boolean;
319
+ }
320
+ /**
321
+ * @public
322
+ */
323
+ export interface DeleteChannelMemberOutput {
324
+ }
325
+ /**
326
+ * @public
327
+ */
328
+ export declare class MemberNotFoundException extends __BaseException {
329
+ readonly name: "MemberNotFoundException";
223
330
  readonly $fault: "client";
224
331
  /**
225
332
  * @internal
226
333
  */
227
- constructor(opts: __ExceptionOptionType<ChannelNotFoundException, __BaseException>);
334
+ constructor(opts: __ExceptionOptionType<MemberNotFoundException, __BaseException>);
335
+ }
336
+ /**
337
+ * @public
338
+ */
339
+ export interface DeleteMessageInput {
340
+ channelId: string;
341
+ messageId: string;
342
+ }
343
+ /**
344
+ * @public
345
+ */
346
+ export interface DeleteMessageOutput {
347
+ }
348
+ /**
349
+ * @public
350
+ */
351
+ export declare class MessageNotFoundException extends __BaseException {
352
+ readonly name: "MessageNotFoundException";
353
+ readonly $fault: "client";
354
+ /**
355
+ * @internal
356
+ */
357
+ constructor(opts: __ExceptionOptionType<MessageNotFoundException, __BaseException>);
228
358
  }
229
359
  /**
230
360
  * @public
231
361
  * @enum
232
362
  */
233
- export declare const ChannelUnsetFields: {
234
- readonly ACCESS: "access";
235
- readonly ASSIGNEE: "assignee";
236
- readonly BROADCAST: "broadcast";
237
- readonly COMPANY: "company";
238
- readonly CONTEXT: "context";
239
- readonly DESCRIPTION: "description";
240
- readonly EXTERNAL: "external";
241
- readonly KITE: "kite";
242
- readonly KITE_ASSIGN: "kiteAssign";
243
- readonly KITE_DEFAULT_SUBJECT: "kiteDefaultSubject";
244
- readonly KITE_SERVICE_NAME: "kiteServiceName";
245
- readonly KITE_TARGET: "kiteTarget";
246
- readonly KITE_VARIANT: "kiteVariant";
247
- readonly MMS: "mms";
248
- readonly PICTURE: "picture";
249
- readonly PICTURE_COLOR: "pictureColor";
250
- readonly SERVICE: "service";
251
- readonly SERVICE_RECIPIENT: "serviceRecipient";
252
- readonly SERVICE_TITLE: "serviceTitle";
253
- readonly SMS: "sms";
254
- readonly SUBJECT: "subject";
255
- readonly TELEPHONY: "telephony";
363
+ export declare const ReactionType: {
364
+ readonly CLAP: "clap";
365
+ readonly CONFUSED: "confused";
366
+ readonly EYES: "eyes";
367
+ readonly HEART: "heart";
368
+ readonly SLIGHTLY_SMILING_FACE: "slightly_smiling_face";
369
+ readonly SMILEY: "smiley";
370
+ readonly THUMBSDOWN: "thumbsdown";
371
+ readonly THUMBSUP: "thumbsup";
372
+ readonly WHITE_CHECK_MARK: "white_check_mark";
256
373
  };
257
374
  /**
258
375
  * @public
259
376
  */
260
- export type ChannelUnsetFields = typeof ChannelUnsetFields[keyof typeof ChannelUnsetFields];
377
+ export type ReactionType = typeof ReactionType[keyof typeof ReactionType];
261
378
  /**
262
379
  * @public
263
380
  */
264
- export interface ChannelUpdateFields {
265
- subject?: string;
266
- description?: string;
381
+ export interface DeleteMessageReactionInput {
382
+ channelId: string;
267
383
  /**
268
384
  * @public
269
- * Picture URL
385
+ * ID of the message to react to.
270
386
  */
271
- picture?: string;
387
+ messageId: string;
272
388
  /**
273
389
  * @public
274
- * Picture dominant color represented by a hex value.
390
+ * Type of the reaction.
275
391
  */
276
- pictureColor?: string;
277
- access?: ChannelAccess | string;
278
- company?: string;
279
- context?: ChannelContext;
280
- kite?: boolean;
281
- kiteTarget?: string;
282
- kiteVariant?: string;
283
- kiteAssign?: string;
284
- kiteServiceName?: string;
285
- kiteDefaultSubject?: string;
286
- service?: string;
287
- serviceTitle?: string;
288
- serviceRecipient?: string;
289
- assignee?: User;
290
- telephony?: boolean;
291
- sms?: boolean;
292
- mms?: boolean;
293
- broadcast?: boolean;
294
- external?: boolean;
392
+ reactionType: ReactionType | string;
393
+ /**
394
+ * @public
395
+ * User ID for server side calls
396
+ */
397
+ userId?: string;
295
398
  }
296
399
  /**
297
400
  * @public
298
401
  */
299
- export interface CreateChannelInput {
300
- channel: ChannelCreateFields;
301
- userId?: string;
402
+ export interface DeleteMessageReactionOutput {
302
403
  }
303
404
  /**
304
405
  * @public
305
406
  */
306
- export interface CreateChannelOutput {
407
+ export interface GetChannelInput {
408
+ channelId: string;
409
+ }
410
+ /**
411
+ * @public
412
+ */
413
+ export interface GetChannelOutput {
307
414
  channel: Channel;
308
415
  }
416
+ /**
417
+ * @public
418
+ */
419
+ export interface GetChannelMemberInput {
420
+ channelId: string;
421
+ memberId: string;
422
+ }
423
+ /**
424
+ * @public
425
+ */
426
+ export interface GetChannelMemberOutput {
427
+ member: ChannelMember;
428
+ user: User;
429
+ }
430
+ /**
431
+ * @public
432
+ */
433
+ export interface GetDirectChannelIdInput {
434
+ userId?: string;
435
+ participantId: string;
436
+ participantToInvite: UserToInvite;
437
+ }
438
+ /**
439
+ * @public
440
+ */
441
+ export interface GetDirectChannelIdOutput {
442
+ channelId: string;
443
+ }
444
+ /**
445
+ * @public
446
+ */
447
+ export interface GetMessageInput {
448
+ channelId: string;
449
+ messageId: string;
450
+ }
309
451
  /**
310
452
  * @public
311
453
  */
@@ -379,92 +521,93 @@ export type MessageType = typeof MessageType[keyof typeof MessageType];
379
521
  /**
380
522
  * @public
381
523
  */
382
- export interface DeleteChannelInput {
524
+ export interface GetMessageReactionsInput {
383
525
  channelId: string;
526
+ messageId: string;
527
+ limit?: number;
528
+ offset?: number;
384
529
  }
385
530
  /**
386
531
  * @public
387
532
  */
388
- export interface DeleteChannelOutput {
389
- }
390
- /**
391
- * @public
392
- */
393
- export interface DeleteMessageInput {
394
- channelId: string;
395
- messageId: string;
533
+ export interface GetMessageReactionsOutput {
534
+ reactions: (Reaction)[];
396
535
  }
397
536
  /**
398
537
  * @public
399
538
  */
400
- export interface DeleteMessageOutput {
539
+ export interface GetOrCreateDirectChannelInput {
540
+ userId?: string;
541
+ memberId?: string;
542
+ memberToInvite?: UserToInvite;
401
543
  }
402
544
  /**
403
545
  * @public
404
546
  */
405
- export declare class MessageNotFoundException extends __BaseException {
406
- readonly name: "MessageNotFoundException";
407
- readonly $fault: "client";
408
- /**
409
- * @internal
410
- */
411
- constructor(opts: __ExceptionOptionType<MessageNotFoundException, __BaseException>);
547
+ export interface GetOrCreateDirectChannelOutput {
548
+ channel: Channel;
412
549
  }
413
550
  /**
414
551
  * @public
415
552
  */
416
- export interface GetChannelInput {
417
- channelId: string;
553
+ export interface InviteInput {
554
+ invitees: (UserToInvite)[];
418
555
  }
419
556
  /**
420
557
  * @public
421
558
  */
422
- export interface GetChannelOutput {
423
- channel: Channel;
559
+ export interface InviteOutput {
560
+ users: (User)[];
424
561
  }
425
562
  /**
426
563
  * @public
427
564
  */
428
- export interface GetChannelMemberInput {
565
+ export interface JoinChannelInput {
429
566
  channelId: string;
430
- memberId: string;
567
+ userId?: string;
568
+ silent?: boolean;
431
569
  }
432
570
  /**
433
571
  * @public
434
572
  */
435
- export interface GetChannelMemberOutput {
436
- member: ChannelMember;
573
+ export interface JoinChannelOutput {
574
+ channel: Channel;
437
575
  }
438
576
  /**
439
577
  * @public
440
578
  */
441
- export declare class MemberNotFoundException extends __BaseException {
442
- readonly name: "MemberNotFoundException";
443
- readonly $fault: "client";
444
- /**
445
- * @internal
446
- */
447
- constructor(opts: __ExceptionOptionType<MemberNotFoundException, __BaseException>);
579
+ export interface LeaveChannelInput {
580
+ channelId: string;
581
+ userId?: string;
582
+ silent?: boolean;
448
583
  }
449
584
  /**
450
585
  * @public
451
586
  */
452
- export interface GetMessageInput {
453
- channelId: string;
454
- messageId: string;
587
+ export interface LeaveChannelOutput {
455
588
  }
456
589
  /**
457
590
  * @public
458
591
  */
459
- export interface JoinChannelInput {
592
+ export interface ListChannelMembersInput {
460
593
  channelId: string;
461
- userId?: string;
594
+ limit?: number;
595
+ offset?: number;
462
596
  }
463
597
  /**
464
598
  * @public
465
599
  */
466
- export interface JoinChannelOutput {
467
- channel: Channel;
600
+ export interface ListChannelMembersOutput {
601
+ /**
602
+ * @public
603
+ * The list of members matching the query
604
+ */
605
+ members: (ChannelMember)[];
606
+ /**
607
+ * @public
608
+ * The list of users matching the query
609
+ */
610
+ users: (User)[];
468
611
  }
469
612
  /**
470
613
  * @public
@@ -486,14 +629,61 @@ export interface ListChannelsOutput {
486
629
  export interface ListMessagesInput {
487
630
  channelId: string;
488
631
  }
632
+ /**
633
+ * @public
634
+ */
635
+ export interface MarkReadInput {
636
+ channelId: string;
637
+ userId?: string;
638
+ }
639
+ /**
640
+ * @public
641
+ */
642
+ export interface MarkReadOutput {
643
+ }
644
+ /**
645
+ * @public
646
+ */
647
+ export interface PartialUpdateChannelSetOptions {
648
+ subject?: string;
649
+ description?: string;
650
+ /**
651
+ * @public
652
+ * Picture URL
653
+ */
654
+ picture?: string;
655
+ /**
656
+ * @public
657
+ * Picture dominant color represented by a hex value.
658
+ */
659
+ pictureColor?: string;
660
+ access?: ChannelAccess | string;
661
+ broadcast?: boolean;
662
+ }
663
+ /**
664
+ * @public
665
+ * @enum
666
+ */
667
+ export declare const GroupChannelUnsetOptions: {
668
+ readonly ACCESS: "access";
669
+ readonly BROADCAST: "broadcast";
670
+ readonly DESCRIPTION: "description";
671
+ readonly PICTURE: "picture";
672
+ readonly PICTURE_COLOR: "pictureColor";
673
+ readonly SUBJECT: "subject";
674
+ };
675
+ /**
676
+ * @public
677
+ */
678
+ export type GroupChannelUnsetOptions = typeof GroupChannelUnsetOptions[keyof typeof GroupChannelUnsetOptions];
489
679
  /**
490
680
  * @public
491
681
  */
492
682
  export interface PartialUpdateChannelInput {
493
683
  channelId: string;
494
684
  userId?: string;
495
- set?: ChannelUpdateFields;
496
- unset?: (ChannelUnsetFields | string)[];
685
+ set?: PartialUpdateChannelSetOptions;
686
+ unset?: (GroupChannelUnsetOptions | string)[];
497
687
  }
498
688
  /**
499
689
  * @public
@@ -507,11 +697,9 @@ export interface PartialUpdateChannelOutput {
507
697
  */
508
698
  export declare const MessageUnsetFields: {
509
699
  readonly ATTACHMENTS: "attachments";
510
- readonly EVENT: "event";
511
700
  readonly FORWARD: "forward";
512
701
  readonly QUOTE: "quote";
513
- readonly SMS: "sms";
514
- readonly SMS_STATUS: "smsStatus";
702
+ readonly TEXT: "text";
515
703
  };
516
704
  /**
517
705
  * @public
@@ -543,13 +731,105 @@ export interface ScheduleExternalFlagAdjustmentJobInput {
543
731
  */
544
732
  export interface ScheduleExternalFlagAdjustmentJobOutput {
545
733
  }
734
+ /**
735
+ * @public
736
+ */
737
+ export interface SendGiphyInput {
738
+ channelId: string;
739
+ /**
740
+ * @public
741
+ * User ID for server side calls
742
+ */
743
+ userId?: string;
744
+ /**
745
+ * @public
746
+ * Message ID if empty ID will be auto-generated.
747
+ */
748
+ messageId?: string;
749
+ giphy: MessageGiphy;
750
+ }
751
+ /**
752
+ * @public
753
+ */
754
+ export interface SendMessageReactionInput {
755
+ channelId: string;
756
+ messageId: string;
757
+ /**
758
+ * @public
759
+ * Type of the reaction. User could have only 1 reaction of each type per message.
760
+ */
761
+ reactionType: ReactionType | string;
762
+ /**
763
+ * @public
764
+ * User ID for server side calls
765
+ */
766
+ userId?: string;
767
+ }
768
+ /**
769
+ * @public
770
+ */
771
+ export interface SendMessageReactionOutput {
772
+ }
773
+ /**
774
+ * @public
775
+ */
776
+ export interface SendSystemMessageInput {
777
+ channelId: string;
778
+ /**
779
+ * @public
780
+ * User ID for server side calls
781
+ */
782
+ userId?: string;
783
+ /**
784
+ * @public
785
+ * Message ID if empty ID will be auto-generated.
786
+ */
787
+ messageId?: string;
788
+ }
789
+ /**
790
+ * @public
791
+ */
792
+ export interface SendTypingStartInput {
793
+ channelId: string;
794
+ userId?: string;
795
+ }
796
+ /**
797
+ * @public
798
+ */
799
+ export interface SendTypingStartOutput {
800
+ }
801
+ /**
802
+ * @public
803
+ */
804
+ export interface SendTypingStopInput {
805
+ channelId: string;
806
+ userId?: string;
807
+ }
808
+ /**
809
+ * @public
810
+ */
811
+ export interface SendTypingStopOutput {
812
+ }
546
813
  /**
547
814
  * @public
548
815
  */
549
816
  export interface UpdateChannelInput {
817
+ subject?: string;
818
+ description?: string;
819
+ /**
820
+ * @public
821
+ * Picture URL
822
+ */
823
+ picture?: string;
824
+ /**
825
+ * @public
826
+ * Picture dominant color represented by a hex value.
827
+ */
828
+ pictureColor?: string;
829
+ access?: ChannelAccess | string;
830
+ broadcast?: boolean;
550
831
  channelId: string;
551
832
  userId?: string;
552
- channel: ChannelUpdateFields;
553
833
  }
554
834
  /**
555
835
  * @public
@@ -561,14 +841,14 @@ export interface UpdateChannelOutput {
561
841
  * @public
562
842
  */
563
843
  export interface Message {
564
- type: MessageType | string;
565
844
  text?: string;
566
- silent?: boolean;
567
- event?: string;
568
845
  attachments?: (MessageAttachment)[];
569
- giphy?: MessageGiphy;
570
846
  quote?: Message;
571
847
  forward?: MessageForward;
848
+ type: MessageType | string;
849
+ giphy?: MessageGiphy;
850
+ silent?: boolean;
851
+ event?: string;
572
852
  sms?: boolean;
573
853
  smsStatus?: MessageSmsStatus | string;
574
854
  messageId: string;
@@ -584,95 +864,93 @@ export interface Message {
584
864
  /**
585
865
  * @public
586
866
  */
587
- export interface CreateMessageOutput {
867
+ export interface GetMessageOutput {
588
868
  message?: Message;
589
869
  }
590
870
  /**
591
871
  * @public
592
872
  */
593
- export interface GetMessageOutput {
873
+ export interface PartialUpdateMessageOutput {
594
874
  message?: Message;
595
875
  }
596
876
  /**
597
877
  * @public
598
- * An interface of available options for new message command
599
878
  */
600
- export interface MessageCreateFields {
601
- type: MessageType | string;
879
+ export interface PartialUpdateMessageSetInput {
602
880
  text?: string;
603
- silent?: boolean;
604
- event?: string;
605
881
  attachments?: (MessageAttachment)[];
606
- giphy?: MessageGiphy;
607
882
  quote?: Message;
608
883
  forward?: MessageForward;
609
- sms?: boolean;
610
- smsStatus?: MessageSmsStatus | string;
611
- messageId?: string;
612
- mentions?: (string)[];
613
884
  }
614
885
  /**
615
886
  * @public
616
887
  */
617
- export interface MessageUpdateFields {
618
- type: MessageType | string;
888
+ export interface SendGiphyOutput {
889
+ message?: Message;
890
+ }
891
+ /**
892
+ * @public
893
+ */
894
+ export interface SendMessageInput {
619
895
  text?: string;
620
- silent?: boolean;
621
- event?: string;
622
896
  attachments?: (MessageAttachment)[];
623
- giphy?: MessageGiphy;
624
897
  quote?: Message;
625
898
  forward?: MessageForward;
626
- sms?: boolean;
627
- smsStatus?: MessageSmsStatus | string;
899
+ channelId: string;
900
+ /**
901
+ * @public
902
+ * User ID for server side calls
903
+ */
904
+ userId?: string;
905
+ /**
906
+ * @public
907
+ * Message ID if empty ID will be auto-generated.
908
+ */
909
+ messageId?: string;
628
910
  mentions?: (string)[];
629
911
  }
630
912
  /**
631
913
  * @public
632
914
  */
633
- export interface PartialUpdateMessageOutput {
915
+ export interface SendMessageOutput {
634
916
  message?: Message;
635
917
  }
636
918
  /**
637
919
  * @public
638
920
  */
639
- export interface UpdateMessageOutput {
921
+ export interface SendSystemMessageOutput {
640
922
  message?: Message;
641
923
  }
642
924
  /**
643
925
  * @public
644
926
  */
645
- export interface CreateMessageInput {
927
+ export interface UpdateMessageInput {
928
+ text?: string;
929
+ attachments?: (MessageAttachment)[];
930
+ quote?: Message;
931
+ forward?: MessageForward;
646
932
  channelId: string;
647
- userId?: string;
648
- /**
649
- * @public
650
- * An interface of available options for new message command
651
- */
652
- message: MessageCreateFields;
933
+ messageId: string;
934
+ mentions?: (string)[];
653
935
  }
654
936
  /**
655
937
  * @public
656
938
  */
657
- export interface ListMessagesOutput {
658
- messages?: (Message)[];
939
+ export interface UpdateMessageOutput {
940
+ message?: Message;
659
941
  }
660
942
  /**
661
943
  * @public
662
944
  */
663
- export interface PartialUpdateMessageInput {
664
- channelId: string;
665
- messageId: string;
666
- userId?: string;
667
- set?: MessageUpdateFields;
668
- unset?: (MessageUnsetFields | string)[];
945
+ export interface ListMessagesOutput {
946
+ messages?: (Message)[];
669
947
  }
670
948
  /**
671
949
  * @public
672
950
  */
673
- export interface UpdateMessageInput {
951
+ export interface PartialUpdateMessageInput {
674
952
  channelId: string;
675
953
  messageId: string;
676
- userId?: string;
677
- message: MessageUpdateFields;
954
+ set?: PartialUpdateMessageSetInput;
955
+ unset?: (MessageUnsetFields | string)[];
678
956
  }