@wildix/xbees-conversations-client 1.0.54 → 1.0.55

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.
@@ -128,12 +128,6 @@ declare const PartialUpdateMessageCommand_base: {
128
128
  * forwardEmail: "STRING_VALUE",
129
129
  * forwardName: "STRING_VALUE",
130
130
  * },
131
- * predefinedReplies: [ // MessagePredefinedRepliesList
132
- * { // MessagePredefinedReply
133
- * text: "STRING_VALUE", // required
134
- * label: "STRING_VALUE",
135
- * },
136
- * ],
137
131
  * },
138
132
  * unset: [ // MessageUnsetFieldsList
139
133
  * "text" || "attachments" || "quote" || "forward",
@@ -232,12 +226,6 @@ declare const PartialUpdateMessageCommand_base: {
232
226
  * // forwardEmail: "STRING_VALUE",
233
227
  * // forwardName: "STRING_VALUE",
234
228
  * // },
235
- * // predefinedReplies: [ // MessagePredefinedRepliesList
236
- * // { // MessagePredefinedReply
237
- * // text: "STRING_VALUE", // required
238
- * // label: "STRING_VALUE",
239
- * // },
240
- * // ],
241
229
  * // type: "regular" || "system", // required
242
230
  * // giphy: {
243
231
  * // id: "STRING_VALUE", // required
@@ -139,12 +139,6 @@ declare const SendGiphyCommand_base: {
139
139
  * // forwardEmail: "STRING_VALUE",
140
140
  * // forwardName: "STRING_VALUE",
141
141
  * // },
142
- * // predefinedReplies: [ // MessagePredefinedRepliesList
143
- * // { // MessagePredefinedReply
144
- * // text: "STRING_VALUE", // required
145
- * // label: "STRING_VALUE",
146
- * // },
147
- * // ],
148
142
  * // type: "regular" || "system", // required
149
143
  * // giphy: {
150
144
  * // id: "STRING_VALUE", // required
@@ -124,12 +124,6 @@ declare const SendMessageCommand_base: {
124
124
  * forwardEmail: "STRING_VALUE",
125
125
  * forwardName: "STRING_VALUE",
126
126
  * },
127
- * predefinedReplies: [ // MessagePredefinedRepliesList
128
- * { // MessagePredefinedReply
129
- * text: "STRING_VALUE", // required
130
- * label: "STRING_VALUE",
131
- * },
132
- * ],
133
127
  * channelId: "STRING_VALUE", // required
134
128
  * userId: "STRING_VALUE",
135
129
  * messageId: "STRING_VALUE",
@@ -230,12 +224,6 @@ declare const SendMessageCommand_base: {
230
224
  * // forwardEmail: "STRING_VALUE",
231
225
  * // forwardName: "STRING_VALUE",
232
226
  * // },
233
- * // predefinedReplies: [ // MessagePredefinedRepliesList
234
- * // { // MessagePredefinedReply
235
- * // text: "STRING_VALUE", // required
236
- * // label: "STRING_VALUE",
237
- * // },
238
- * // ],
239
227
  * // type: "regular" || "system", // required
240
228
  * // giphy: {
241
229
  * // id: "STRING_VALUE", // required
@@ -124,12 +124,6 @@ declare const UpdateMessageCommand_base: {
124
124
  * forwardEmail: "STRING_VALUE",
125
125
  * forwardName: "STRING_VALUE",
126
126
  * },
127
- * predefinedReplies: [ // MessagePredefinedRepliesList
128
- * { // MessagePredefinedReply
129
- * text: "STRING_VALUE", // required
130
- * label: "STRING_VALUE",
131
- * },
132
- * ],
133
127
  * channelId: "STRING_VALUE", // required
134
128
  * messageId: "STRING_VALUE", // required
135
129
  * userId: "STRING_VALUE",
@@ -230,12 +224,6 @@ declare const UpdateMessageCommand_base: {
230
224
  * // forwardEmail: "STRING_VALUE",
231
225
  * // forwardName: "STRING_VALUE",
232
226
  * // },
233
- * // predefinedReplies: [ // MessagePredefinedRepliesList
234
- * // { // MessagePredefinedReply
235
- * // text: "STRING_VALUE", // required
236
- * // label: "STRING_VALUE",
237
- * // },
238
- * // ],
239
227
  * // type: "regular" || "system", // required
240
228
  * // giphy: {
241
229
  * // id: "STRING_VALUE", // required
@@ -37,8 +37,8 @@ declare const UploadFileCommand_base: {
37
37
  * const input = { // UploadFileInput
38
38
  * channelId: "STRING_VALUE", // required
39
39
  * name: "STRING_VALUE", // required
40
+ * userId: "STRING_VALUE",
40
41
  * options: { // UploadFileOptions
41
- * userId: "STRING_VALUE",
42
42
  * category: "channels" || "recordings",
43
43
  * region: "STRING_VALUE",
44
44
  * },
@@ -1,7 +1,6 @@
1
1
  export * from "./AddChannelMemberCommand";
2
2
  export * from "./AddChannelMembersCommand";
3
3
  export * from "./CreateGroupChannelCommand";
4
- export * from "./CreateKiteChannelCommand";
5
4
  export * from "./DeleteChannelCommand";
6
5
  export * from "./DeleteChannelMemberCommand";
7
6
  export * from "./DeleteMessageCommand";
@@ -429,234 +429,6 @@ export interface CreateGroupChannelInput {
429
429
  export interface CreateGroupChannelOutput {
430
430
  channel: Channel;
431
431
  }
432
- /**
433
- * @public
434
- */
435
- export interface MessageAttachment {
436
- id: string;
437
- /**
438
- * This *is* documentation about the field. Describe here what fsId and how to get it.
439
- * @public
440
- */
441
- fsId: string;
442
- mime?: string;
443
- name: string;
444
- size: number;
445
- width?: number;
446
- height?: number;
447
- thumbnail?: string;
448
- }
449
- /**
450
- * @public
451
- */
452
- export interface MessageForward {
453
- forwardCompany?: string;
454
- forwardDate: string;
455
- forwardEmail?: string;
456
- forwardName?: string;
457
- }
458
- /**
459
- * @public
460
- */
461
- export interface MessageGiphy {
462
- id: string;
463
- size: string;
464
- url: string;
465
- height: string;
466
- width: string;
467
- }
468
- /**
469
- * @public
470
- */
471
- export interface MessagePredefinedReply {
472
- /**
473
- * Text that will be sent to the user; clicking the text will trigger sending this message.
474
- * @public
475
- */
476
- text: string;
477
- /**
478
- * Label that will appear on the reply button; if no label is provided, the text will be used.
479
- * @public
480
- */
481
- label?: string;
482
- }
483
- /**
484
- * @public
485
- */
486
- export interface MessageQuote {
487
- messageId: string;
488
- channelId: string;
489
- user: User;
490
- text?: string;
491
- attachments?: (MessageAttachment)[];
492
- forward?: MessageForward;
493
- mentions?: (User)[];
494
- giphy?: MessageGiphy;
495
- createdAt: string;
496
- updatedAt?: string;
497
- }
498
- /**
499
- * @public
500
- * @enum
501
- */
502
- export declare const MessageSmsStatus: {
503
- readonly DELIVERED: "delivered";
504
- readonly ERROR: "error";
505
- readonly SENT: "sent";
506
- readonly TRYING: "trying";
507
- };
508
- /**
509
- * @public
510
- */
511
- export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsStatus];
512
- /**
513
- * @public
514
- * @enum
515
- */
516
- export declare const MessageType: {
517
- readonly REGULAR: "regular";
518
- readonly SYSTEM: "system";
519
- };
520
- /**
521
- * @public
522
- */
523
- export type MessageType = typeof MessageType[keyof typeof MessageType];
524
- /**
525
- * @public
526
- * @enum
527
- */
528
- export declare const MessageWhatsAppStatus: {
529
- readonly DELIVERED: "delivered";
530
- readonly ERROR: "error";
531
- readonly SENT: "sent";
532
- readonly TRYING: "trying";
533
- };
534
- /**
535
- * @public
536
- */
537
- export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
538
- /**
539
- * @public
540
- */
541
- export interface InitialMessage {
542
- text?: string;
543
- attachments?: (MessageAttachment)[];
544
- quote?: MessageQuote;
545
- forward?: MessageForward;
546
- /**
547
- * A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
548
- * @public
549
- */
550
- predefinedReplies?: (MessagePredefinedReply)[];
551
- type: MessageType;
552
- giphy?: MessageGiphy;
553
- silent?: boolean;
554
- event?: string;
555
- sms?: boolean;
556
- smsStatus?: MessageSmsStatus;
557
- whatsapp?: boolean;
558
- whatsappStatus?: MessageWhatsAppStatus;
559
- messageId: string;
560
- }
561
- /**
562
- * @public
563
- */
564
- export interface WelcomeMessage {
565
- text?: string;
566
- attachments?: (MessageAttachment)[];
567
- quote?: MessageQuote;
568
- forward?: MessageForward;
569
- /**
570
- * A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
571
- * @public
572
- */
573
- predefinedReplies?: (MessagePredefinedReply)[];
574
- type: MessageType;
575
- giphy?: MessageGiphy;
576
- silent?: boolean;
577
- event?: string;
578
- sms?: boolean;
579
- smsStatus?: MessageSmsStatus;
580
- whatsapp?: boolean;
581
- whatsappStatus?: MessageWhatsAppStatus;
582
- messageId: string;
583
- user: User;
584
- }
585
- /**
586
- * @public
587
- */
588
- export interface CreateKiteChannelInput {
589
- /**
590
- * The unique identifier of the user when a service token is used.
591
- * @public
592
- */
593
- userId?: string;
594
- /**
595
- * The unique identifier for the new group channel. If not provided, the system will generate one.
596
- * @public
597
- */
598
- channelId?: string;
599
- /**
600
- * The unique identifier of the Kite widget or email of the agent (example: 36cv69ao or vadim.ruban@wildix.com).
601
- * @public
602
- */
603
- targetId: string;
604
- /**
605
- * The unique identifier of the route for time-based configuration.
606
- * @public
607
- */
608
- targetRouteId?: string;
609
- /**
610
- * A list of welcome messages is created during channel creation to preserve the same state as the client has on the interface. If welcomeMessages or initialMessage are not specified, the system will generate a 'conversation was created' system message.
611
- * @public
612
- */
613
- welcomeMessages?: (WelcomeMessage)[];
614
- /**
615
- * A message to be added to the conversation for the user. If welcomeMessages or initialMessage are not specified, the system will generate a 'conversation was created' system message.
616
- * @public
617
- */
618
- initialMessage?: InitialMessage;
619
- }
620
- /**
621
- * @public
622
- */
623
- export interface CreateKiteChannelOutput {
624
- channel: Channel;
625
- }
626
- /**
627
- * @public
628
- * @enum
629
- */
630
- export declare const TargetNotEligibleReason: {
631
- readonly NO_LICENSE: "no_license";
632
- };
633
- /**
634
- * @public
635
- */
636
- export type TargetNotEligibleReason = typeof TargetNotEligibleReason[keyof typeof TargetNotEligibleReason];
637
- /**
638
- * @public
639
- */
640
- export declare class TargetNotEligibleException extends __BaseException {
641
- readonly name: "TargetNotEligibleException";
642
- readonly $fault: "client";
643
- reason?: TargetNotEligibleReason;
644
- /**
645
- * @internal
646
- */
647
- constructor(opts: __ExceptionOptionType<TargetNotEligibleException, __BaseException>);
648
- }
649
- /**
650
- * @public
651
- */
652
- export declare class TargetNotFoundException extends __BaseException {
653
- readonly name: "TargetNotFoundException";
654
- readonly $fault: "client";
655
- /**
656
- * @internal
657
- */
658
- constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
659
- }
660
432
  /**
661
433
  * @public
662
434
  */
@@ -886,6 +658,42 @@ export interface WebhookChatMemberRemovedEvent {
886
658
  botId?: string;
887
659
  data: WebhookChatMemberAddedOrRemovedEventData;
888
660
  }
661
+ /**
662
+ * @public
663
+ */
664
+ export interface MessageAttachment {
665
+ id: string;
666
+ /**
667
+ * This *is* documentation about the field. Describe here what fsId and how to get it.
668
+ * @public
669
+ */
670
+ fsId: string;
671
+ mime?: string;
672
+ name: string;
673
+ size: number;
674
+ width?: number;
675
+ height?: number;
676
+ thumbnail?: string;
677
+ }
678
+ /**
679
+ * @public
680
+ */
681
+ export interface MessageForward {
682
+ forwardCompany?: string;
683
+ forwardDate: string;
684
+ forwardEmail?: string;
685
+ forwardName?: string;
686
+ }
687
+ /**
688
+ * @public
689
+ */
690
+ export interface MessageGiphy {
691
+ id: string;
692
+ size: string;
693
+ url: string;
694
+ height: string;
695
+ width: string;
696
+ }
889
697
  /**
890
698
  * @public
891
699
  */
@@ -895,6 +703,61 @@ export interface Reaction {
895
703
  messageId?: string;
896
704
  user?: User;
897
705
  }
706
+ /**
707
+ * @public
708
+ */
709
+ export interface MessageQuote {
710
+ messageId: string;
711
+ channelId: string;
712
+ user: User;
713
+ text?: string;
714
+ attachments?: (MessageAttachment)[];
715
+ forward?: MessageForward;
716
+ mentions?: (User)[];
717
+ giphy?: MessageGiphy;
718
+ createdAt: string;
719
+ updatedAt?: string;
720
+ }
721
+ /**
722
+ * @public
723
+ * @enum
724
+ */
725
+ export declare const MessageSmsStatus: {
726
+ readonly DELIVERED: "delivered";
727
+ readonly ERROR: "error";
728
+ readonly SENT: "sent";
729
+ readonly TRYING: "trying";
730
+ };
731
+ /**
732
+ * @public
733
+ */
734
+ export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsStatus];
735
+ /**
736
+ * @public
737
+ * @enum
738
+ */
739
+ export declare const MessageType: {
740
+ readonly REGULAR: "regular";
741
+ readonly SYSTEM: "system";
742
+ };
743
+ /**
744
+ * @public
745
+ */
746
+ export type MessageType = typeof MessageType[keyof typeof MessageType];
747
+ /**
748
+ * @public
749
+ * @enum
750
+ */
751
+ export declare const MessageWhatsAppStatus: {
752
+ readonly DELIVERED: "delivered";
753
+ readonly ERROR: "error";
754
+ readonly SENT: "sent";
755
+ readonly TRYING: "trying";
756
+ };
757
+ /**
758
+ * @public
759
+ */
760
+ export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
898
761
  /**
899
762
  * @public
900
763
  */
@@ -903,11 +766,6 @@ export interface Message {
903
766
  attachments?: (MessageAttachment)[];
904
767
  quote?: MessageQuote;
905
768
  forward?: MessageForward;
906
- /**
907
- * A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
908
- * @public
909
- */
910
- predefinedReplies?: (MessagePredefinedReply)[];
911
769
  type: MessageType;
912
770
  giphy?: MessageGiphy;
913
771
  silent?: boolean;
@@ -1351,7 +1209,7 @@ export interface ListChannelsInput {
1351
1209
  */
1352
1210
  userId?: string;
1353
1211
  /**
1354
- * The maximum number of channels to return. The value must be between 1 and 30.
1212
+ * The maximum number of channels to return. The value must be between 1 and 50.
1355
1213
  * @public
1356
1214
  */
1357
1215
  limit?: number;
@@ -1551,11 +1409,6 @@ export interface PartialUpdateMessageSetInput {
1551
1409
  attachments?: (MessageAttachment)[];
1552
1410
  quote?: MessageQuote;
1553
1411
  forward?: MessageForward;
1554
- /**
1555
- * A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
1556
- * @public
1557
- */
1558
- predefinedReplies?: (MessagePredefinedReply)[];
1559
1412
  }
1560
1413
  /**
1561
1414
  * @public
@@ -1672,11 +1525,6 @@ export interface SendMessageInput {
1672
1525
  attachments?: (MessageAttachment)[];
1673
1526
  quote?: MessageQuote;
1674
1527
  forward?: MessageForward;
1675
- /**
1676
- * A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
1677
- * @public
1678
- */
1679
- predefinedReplies?: (MessagePredefinedReply)[];
1680
1528
  /**
1681
1529
  * The unique identifier of the channel to which the message is sent.
1682
1530
  * @public
@@ -1858,11 +1706,6 @@ export interface UpdateMessageInput {
1858
1706
  attachments?: (MessageAttachment)[];
1859
1707
  quote?: MessageQuote;
1860
1708
  forward?: MessageForward;
1861
- /**
1862
- * A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
1863
- * @public
1864
- */
1865
- predefinedReplies?: (MessagePredefinedReply)[];
1866
1709
  /**
1867
1710
  * The unique identifier of the channel containing the message.
1868
1711
  * @public
@@ -1894,11 +1737,6 @@ export interface UpdateMessageOutput {
1894
1737
  * @public
1895
1738
  */
1896
1739
  export interface UploadFileOptions {
1897
- /**
1898
- * User Id. It is only for s2s, in other cases it will be ignored.
1899
- * @public
1900
- */
1901
- userId?: string;
1902
1740
  /**
1903
1741
  * File category. Channel files or conference recordings. Default: channels.
1904
1742
  * @public
@@ -1924,6 +1762,11 @@ export interface UploadFileInput {
1924
1762
  * @public
1925
1763
  */
1926
1764
  name: string;
1765
+ /**
1766
+ * The unique identifier of the user when a service token is used.
1767
+ * @public
1768
+ */
1769
+ userId?: string;
1927
1770
  /**
1928
1771
  * Additional options for the file upload.
1929
1772
  * @public
@@ -1,7 +1,6 @@
1
1
  import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "../commands/AddChannelMemberCommand";
2
2
  import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "../commands/AddChannelMembersCommand";
3
3
  import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "../commands/CreateGroupChannelCommand";
4
- import { CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput } from "../commands/CreateKiteChannelCommand";
5
4
  import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "../commands/DeleteChannelCommand";
6
5
  import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "../commands/DeleteChannelMemberCommand";
7
6
  import { DeleteMessageCommandInput, DeleteMessageCommandOutput } from "../commands/DeleteMessageCommand";
@@ -49,10 +48,6 @@ export declare const se_AddChannelMembersCommand: (input: AddChannelMembersComma
49
48
  * serializeAws_restJson1CreateGroupChannelCommand
50
49
  */
51
50
  export declare const se_CreateGroupChannelCommand: (input: CreateGroupChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
52
- /**
53
- * serializeAws_restJson1CreateKiteChannelCommand
54
- */
55
- export declare const se_CreateKiteChannelCommand: (input: CreateKiteChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
56
51
  /**
57
52
  * serializeAws_restJson1DeleteChannelCommand
58
53
  */
@@ -197,10 +192,6 @@ export declare const de_AddChannelMembersCommand: (output: __HttpResponse, conte
197
192
  * deserializeAws_restJson1CreateGroupChannelCommand
198
193
  */
199
194
  export declare const de_CreateGroupChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateGroupChannelCommandOutput>;
200
- /**
201
- * deserializeAws_restJson1CreateKiteChannelCommand
202
- */
203
- export declare const de_CreateKiteChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateKiteChannelCommandOutput>;
204
195
  /**
205
196
  * deserializeAws_restJson1DeleteChannelCommand
206
197
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/xbees-conversations-client",
3
3
  "description": "@wildix/xbees-conversations-client client",
4
- "version": "1.0.54",
4
+ "version": "1.0.55",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateKiteChannelCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class CreateKiteChannelCommand extends smithy_client_1.Command.classBuilder()
9
- .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
- })
14
- .s("Conversations", "CreateKiteChannel", {})
15
- .n("ConversationsClient", "CreateKiteChannelCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_CreateKiteChannelCommand)
18
- .de(Aws_restJson1_1.de_CreateKiteChannelCommand)
19
- .build() {
20
- }
21
- exports.CreateKiteChannelCommand = CreateKiteChannelCommand;
@@ -1,17 +0,0 @@
1
- import { de_CreateKiteChannelCommand, se_CreateKiteChannelCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- export { $Command };
5
- export class CreateKiteChannelCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("Conversations", "CreateKiteChannel", {})
12
- .n("ConversationsClient", "CreateKiteChannelCommand")
13
- .f(void 0, void 0)
14
- .ser(se_CreateKiteChannelCommand)
15
- .de(de_CreateKiteChannelCommand)
16
- .build() {
17
- }