@wildix/xbees-kite-client 1.0.19 → 1.0.21
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.
- package/dist-cjs/models/models_0.js +10 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1 -0
- package/dist-es/models/models_0.js +10 -0
- package/dist-es/protocols/Aws_restJson1.js +1 -0
- package/dist-types/commands/CreateOrUpdateWidgetPreviewCommand.d.ts +128 -0
- package/dist-types/commands/CreateWidgetCommand.d.ts +128 -0
- package/dist-types/commands/GetSmsNumberConfigurationCommand.d.ts +64 -0
- package/dist-types/commands/GetWhatsAppNumberConfigurationCommand.d.ts +65 -1
- package/dist-types/commands/GetWidgetCommand.d.ts +64 -0
- package/dist-types/commands/ListSmsConfigurationsCommand.d.ts +64 -0
- package/dist-types/commands/ListWhatsAppConfigurationsCommand.d.ts +65 -1
- package/dist-types/commands/ListWidgetsCommand.d.ts +64 -0
- package/dist-types/commands/PutSmsNumberConfigurationCommand.d.ts +128 -0
- package/dist-types/commands/PutWhatsAppNumberConfigurationCommand.d.ts +130 -2
- package/dist-types/commands/UpdateWidgetCommand.d.ts +128 -0
- package/dist-types/models/models_0.d.ts +170 -7
- package/package.json +1 -1
|
@@ -597,6 +597,26 @@ export interface CancelCalendarEventOutput {
|
|
|
597
597
|
channel: Channel;
|
|
598
598
|
event: CalendarEvent;
|
|
599
599
|
}
|
|
600
|
+
/**
|
|
601
|
+
* @public
|
|
602
|
+
*/
|
|
603
|
+
export interface RouteEvaluationCondition {
|
|
604
|
+
/**
|
|
605
|
+
* A natural language prompt used to evaluate the content of a customer's message using AI. The prompt should be formulated to guide the AI in determining whether the message or conversation meets a specific condition.
|
|
606
|
+
* @public
|
|
607
|
+
*/
|
|
608
|
+
prompt: string;
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* @public
|
|
612
|
+
*/
|
|
613
|
+
export interface InactivityTimeoutCondition {
|
|
614
|
+
/**
|
|
615
|
+
* Timeout in seconds since last activity in the channel.
|
|
616
|
+
* @public
|
|
617
|
+
*/
|
|
618
|
+
timeout: number;
|
|
619
|
+
}
|
|
600
620
|
/**
|
|
601
621
|
* @public
|
|
602
622
|
*/
|
|
@@ -620,7 +640,7 @@ export interface RouteReplyTimeoutCondition {
|
|
|
620
640
|
/**
|
|
621
641
|
* @public
|
|
622
642
|
*/
|
|
623
|
-
export type RouteActionCondition = RouteActionCondition.ReadTimeoutMember | RouteActionCondition.ReplyTimeoutMember | RouteActionCondition.$UnknownMember;
|
|
643
|
+
export type RouteActionCondition = RouteActionCondition.EvaluationMember | RouteActionCondition.InactivityTimeoutMember | RouteActionCondition.ReadTimeoutMember | RouteActionCondition.ReplyTimeoutMember | RouteActionCondition.$UnknownMember;
|
|
624
644
|
/**
|
|
625
645
|
* @public
|
|
626
646
|
*/
|
|
@@ -628,11 +648,29 @@ export declare namespace RouteActionCondition {
|
|
|
628
648
|
interface ReplyTimeoutMember {
|
|
629
649
|
replyTimeout: RouteReplyTimeoutCondition;
|
|
630
650
|
readTimeout?: never;
|
|
651
|
+
inactivityTimeout?: never;
|
|
652
|
+
evaluation?: never;
|
|
631
653
|
$unknown?: never;
|
|
632
654
|
}
|
|
633
655
|
interface ReadTimeoutMember {
|
|
634
656
|
replyTimeout?: never;
|
|
635
657
|
readTimeout: RouteReadTimeoutCondition;
|
|
658
|
+
inactivityTimeout?: never;
|
|
659
|
+
evaluation?: never;
|
|
660
|
+
$unknown?: never;
|
|
661
|
+
}
|
|
662
|
+
interface InactivityTimeoutMember {
|
|
663
|
+
replyTimeout?: never;
|
|
664
|
+
readTimeout?: never;
|
|
665
|
+
inactivityTimeout: InactivityTimeoutCondition;
|
|
666
|
+
evaluation?: never;
|
|
667
|
+
$unknown?: never;
|
|
668
|
+
}
|
|
669
|
+
interface EvaluationMember {
|
|
670
|
+
replyTimeout?: never;
|
|
671
|
+
readTimeout?: never;
|
|
672
|
+
inactivityTimeout?: never;
|
|
673
|
+
evaluation: RouteEvaluationCondition;
|
|
636
674
|
$unknown?: never;
|
|
637
675
|
}
|
|
638
676
|
/**
|
|
@@ -641,11 +679,15 @@ export declare namespace RouteActionCondition {
|
|
|
641
679
|
interface $UnknownMember {
|
|
642
680
|
replyTimeout?: never;
|
|
643
681
|
readTimeout?: never;
|
|
682
|
+
inactivityTimeout?: never;
|
|
683
|
+
evaluation?: never;
|
|
644
684
|
$unknown: [string, any];
|
|
645
685
|
}
|
|
646
686
|
interface Visitor<T> {
|
|
647
687
|
replyTimeout: (value: RouteReplyTimeoutCondition) => T;
|
|
648
688
|
readTimeout: (value: RouteReadTimeoutCondition) => T;
|
|
689
|
+
inactivityTimeout: (value: InactivityTimeoutCondition) => T;
|
|
690
|
+
evaluation: (value: RouteEvaluationCondition) => T;
|
|
649
691
|
_: (name: string, value: any) => T;
|
|
650
692
|
}
|
|
651
693
|
const visit: <T>(value: RouteActionCondition, visitor: Visitor<T>) => T;
|
|
@@ -656,6 +698,81 @@ export declare namespace RouteActionCondition {
|
|
|
656
698
|
export interface RouteAddMembersTask {
|
|
657
699
|
emails: (string)[];
|
|
658
700
|
}
|
|
701
|
+
/**
|
|
702
|
+
* @public
|
|
703
|
+
*/
|
|
704
|
+
export interface RouteGenerativeVariable {
|
|
705
|
+
/**
|
|
706
|
+
* Variable name, to be used in the message. Example: 'reason_of_complain'.
|
|
707
|
+
* @public
|
|
708
|
+
*/
|
|
709
|
+
term: string;
|
|
710
|
+
/**
|
|
711
|
+
* A description to guide AI when resolving the variable.
|
|
712
|
+
* @public
|
|
713
|
+
*/
|
|
714
|
+
description: string;
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* @public
|
|
718
|
+
*/
|
|
719
|
+
export interface RouteNotifyEmail {
|
|
720
|
+
/**
|
|
721
|
+
* An email where to send the message.
|
|
722
|
+
* @public
|
|
723
|
+
*/
|
|
724
|
+
recipient: string;
|
|
725
|
+
/**
|
|
726
|
+
* Email content to be sent to the recipient. Can include variables for generative variables.
|
|
727
|
+
* @public
|
|
728
|
+
*/
|
|
729
|
+
text: string;
|
|
730
|
+
/**
|
|
731
|
+
* List of generative variables that can be used to customize the email message content.
|
|
732
|
+
* @public
|
|
733
|
+
*/
|
|
734
|
+
variables?: (RouteGenerativeVariable)[] | undefined;
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* @public
|
|
738
|
+
*/
|
|
739
|
+
export interface RouteNotifyMessage {
|
|
740
|
+
/**
|
|
741
|
+
* Identifier of the chatbot from whom the message will be sent.
|
|
742
|
+
* @public
|
|
743
|
+
*/
|
|
744
|
+
botId: string;
|
|
745
|
+
/**
|
|
746
|
+
* Identifier of the user who should receive the message.
|
|
747
|
+
* @public
|
|
748
|
+
*/
|
|
749
|
+
userId?: string | undefined;
|
|
750
|
+
/**
|
|
751
|
+
* Identifier of the channel where message should be sent.
|
|
752
|
+
* @public
|
|
753
|
+
*/
|
|
754
|
+
channelId?: string | undefined;
|
|
755
|
+
/**
|
|
756
|
+
* Email content to be sent to the recipient. Can include variables for generative variables.
|
|
757
|
+
* @public
|
|
758
|
+
*/
|
|
759
|
+
text: string;
|
|
760
|
+
/**
|
|
761
|
+
* List of generative variables that can be used to customize the email message content.
|
|
762
|
+
* @public
|
|
763
|
+
*/
|
|
764
|
+
variables?: (RouteGenerativeVariable)[] | undefined;
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* @public
|
|
768
|
+
*/
|
|
769
|
+
export interface RouteSendGenerativeMessageTask {
|
|
770
|
+
/**
|
|
771
|
+
* Identifier of the chatbot that should generate the message.
|
|
772
|
+
* @public
|
|
773
|
+
*/
|
|
774
|
+
botId: string;
|
|
775
|
+
}
|
|
659
776
|
/**
|
|
660
777
|
* @public
|
|
661
778
|
*/
|
|
@@ -674,19 +791,49 @@ export interface RouteSendMessageTask {
|
|
|
674
791
|
/**
|
|
675
792
|
* @public
|
|
676
793
|
*/
|
|
677
|
-
export type RouteActionTask = RouteActionTask.AddMembersMember | RouteActionTask.SendMessageMember | RouteActionTask.$UnknownMember;
|
|
794
|
+
export type RouteActionTask = RouteActionTask.AddMembersMember | RouteActionTask.NotifyEmailMember | RouteActionTask.NotifyMessageMember | RouteActionTask.SendGenerativeMessageMember | RouteActionTask.SendMessageMember | RouteActionTask.$UnknownMember;
|
|
678
795
|
/**
|
|
679
796
|
* @public
|
|
680
797
|
*/
|
|
681
798
|
export declare namespace RouteActionTask {
|
|
682
799
|
interface SendMessageMember {
|
|
683
800
|
sendMessage: RouteSendMessageTask;
|
|
801
|
+
sendGenerativeMessage?: never;
|
|
802
|
+
addMembers?: never;
|
|
803
|
+
notifyMessage?: never;
|
|
804
|
+
notifyEmail?: never;
|
|
805
|
+
$unknown?: never;
|
|
806
|
+
}
|
|
807
|
+
interface SendGenerativeMessageMember {
|
|
808
|
+
sendMessage?: never;
|
|
809
|
+
sendGenerativeMessage: RouteSendGenerativeMessageTask;
|
|
684
810
|
addMembers?: never;
|
|
811
|
+
notifyMessage?: never;
|
|
812
|
+
notifyEmail?: never;
|
|
685
813
|
$unknown?: never;
|
|
686
814
|
}
|
|
687
815
|
interface AddMembersMember {
|
|
688
816
|
sendMessage?: never;
|
|
817
|
+
sendGenerativeMessage?: never;
|
|
689
818
|
addMembers: RouteAddMembersTask;
|
|
819
|
+
notifyMessage?: never;
|
|
820
|
+
notifyEmail?: never;
|
|
821
|
+
$unknown?: never;
|
|
822
|
+
}
|
|
823
|
+
interface NotifyMessageMember {
|
|
824
|
+
sendMessage?: never;
|
|
825
|
+
sendGenerativeMessage?: never;
|
|
826
|
+
addMembers?: never;
|
|
827
|
+
notifyMessage: RouteNotifyMessage;
|
|
828
|
+
notifyEmail?: never;
|
|
829
|
+
$unknown?: never;
|
|
830
|
+
}
|
|
831
|
+
interface NotifyEmailMember {
|
|
832
|
+
sendMessage?: never;
|
|
833
|
+
sendGenerativeMessage?: never;
|
|
834
|
+
addMembers?: never;
|
|
835
|
+
notifyMessage?: never;
|
|
836
|
+
notifyEmail: RouteNotifyEmail;
|
|
690
837
|
$unknown?: never;
|
|
691
838
|
}
|
|
692
839
|
/**
|
|
@@ -694,12 +841,18 @@ export declare namespace RouteActionTask {
|
|
|
694
841
|
*/
|
|
695
842
|
interface $UnknownMember {
|
|
696
843
|
sendMessage?: never;
|
|
844
|
+
sendGenerativeMessage?: never;
|
|
697
845
|
addMembers?: never;
|
|
846
|
+
notifyMessage?: never;
|
|
847
|
+
notifyEmail?: never;
|
|
698
848
|
$unknown: [string, any];
|
|
699
849
|
}
|
|
700
850
|
interface Visitor<T> {
|
|
701
851
|
sendMessage: (value: RouteSendMessageTask) => T;
|
|
852
|
+
sendGenerativeMessage: (value: RouteSendGenerativeMessageTask) => T;
|
|
702
853
|
addMembers: (value: RouteAddMembersTask) => T;
|
|
854
|
+
notifyMessage: (value: RouteNotifyMessage) => T;
|
|
855
|
+
notifyEmail: (value: RouteNotifyEmail) => T;
|
|
703
856
|
_: (name: string, value: any) => T;
|
|
704
857
|
}
|
|
705
858
|
const visit: <T>(value: RouteActionTask, visitor: Visitor<T>) => T;
|
|
@@ -719,6 +872,11 @@ export interface RouteAction {
|
|
|
719
872
|
* @public
|
|
720
873
|
*/
|
|
721
874
|
task: RouteActionTask;
|
|
875
|
+
/**
|
|
876
|
+
* Indicates whether the action should be run only once, regardless of how many times the conditions are met.
|
|
877
|
+
* @public
|
|
878
|
+
*/
|
|
879
|
+
once?: boolean | undefined;
|
|
722
880
|
}
|
|
723
881
|
/**
|
|
724
882
|
* @public
|
|
@@ -1441,11 +1599,6 @@ export interface WhatsAppConfigRoute {
|
|
|
1441
1599
|
* @public
|
|
1442
1600
|
*/
|
|
1443
1601
|
target: RouteTarget;
|
|
1444
|
-
/**
|
|
1445
|
-
* Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
|
|
1446
|
-
* @public
|
|
1447
|
-
*/
|
|
1448
|
-
reassign?: boolean | undefined;
|
|
1449
1602
|
/**
|
|
1450
1603
|
* Actions that will be used if the specified route and the conditions within a specific action are met.
|
|
1451
1604
|
* @public
|
|
@@ -1471,6 +1624,11 @@ export interface WhatsAppConfig {
|
|
|
1471
1624
|
* @public
|
|
1472
1625
|
*/
|
|
1473
1626
|
target: RouteTarget;
|
|
1627
|
+
/**
|
|
1628
|
+
* Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
|
|
1629
|
+
* @public
|
|
1630
|
+
*/
|
|
1631
|
+
reassign?: boolean | undefined;
|
|
1474
1632
|
/**
|
|
1475
1633
|
* Actions that will be used if the specified route and the conditions within a specific action are met.
|
|
1476
1634
|
* @public
|
|
@@ -1764,6 +1922,11 @@ export interface PutWhatsAppNumberConfigurationInput {
|
|
|
1764
1922
|
* @public
|
|
1765
1923
|
*/
|
|
1766
1924
|
target: RouteTarget;
|
|
1925
|
+
/**
|
|
1926
|
+
* Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
|
|
1927
|
+
* @public
|
|
1928
|
+
*/
|
|
1929
|
+
reassign?: boolean | undefined;
|
|
1767
1930
|
/**
|
|
1768
1931
|
* Actions that will be used if the specified route and the conditions within a specific action are met.
|
|
1769
1932
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-kite-client",
|
|
3
3
|
"description": "@wildix/xbees-kite-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.21",
|
|
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",
|