@wildix/xbees-conversations-client 1.5.0 → 4.0.1
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/Conversations.js +3 -3
- package/dist-cjs/ConversationsClient.js +34 -26
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +183 -0
- package/dist-cjs/commands/AddChannelMemberCommand.js +10 -11
- package/dist-cjs/commands/AddChannelMembersCommand.js +10 -11
- package/dist-cjs/commands/AssignChannelCommand.js +10 -11
- package/dist-cjs/commands/CreateGroupChannelCommand.js +10 -11
- package/dist-cjs/commands/CreateInboxTagCommand.js +10 -11
- package/dist-cjs/commands/CreateKiteChannelCommand.js +10 -11
- package/dist-cjs/commands/DeleteChannelCommand.js +10 -11
- package/dist-cjs/commands/DeleteChannelMemberCommand.js +10 -11
- package/dist-cjs/commands/DeleteInboxTagCommand.js +10 -11
- package/dist-cjs/commands/DeleteMessageCommand.js +10 -11
- package/dist-cjs/commands/DeleteMessageReactionCommand.js +10 -11
- package/dist-cjs/commands/DescribeEventCommand.js +10 -11
- package/dist-cjs/commands/GetActionTriggerResultCommand.js +10 -11
- package/dist-cjs/commands/GetChannelCommand.js +10 -11
- package/dist-cjs/commands/GetChannelMemberCommand.js +10 -11
- package/dist-cjs/commands/GetDirectChannelIdCommand.js +10 -11
- package/dist-cjs/commands/GetFilePresignedDownloadUrlCommand.js +10 -11
- package/dist-cjs/commands/GetInboxStateCommand.js +10 -11
- package/dist-cjs/commands/GetMessageCommand.js +10 -11
- package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +10 -11
- package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +10 -11
- package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +10 -11
- package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +10 -11
- package/dist-cjs/commands/GetSmsChannelIdCommand.js +10 -11
- package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +10 -11
- package/dist-cjs/commands/GetTokenCommand.js +10 -11
- package/dist-cjs/commands/GetUploadedFileInfoCommand.js +10 -11
- package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +10 -11
- package/dist-cjs/commands/HideChannelCommand.js +10 -11
- package/dist-cjs/commands/InviteCommand.js +10 -11
- package/dist-cjs/commands/JoinChannelCommand.js +10 -11
- package/dist-cjs/commands/LeaveChannelCommand.js +10 -11
- package/dist-cjs/commands/ListChannelMembersCommand.js +10 -11
- package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +10 -11
- package/dist-cjs/commands/ListChannelsCommand.js +10 -11
- package/dist-cjs/commands/ListInboxTaggedChannelsCommand.js +10 -11
- package/dist-cjs/commands/ListInboxTagsCommand.js +10 -11
- package/dist-cjs/commands/ListMessageReactionsCommand.js +10 -11
- package/dist-cjs/commands/ListMessagesCommand.js +10 -11
- package/dist-cjs/commands/ListPinnedMessagesCommand.js +10 -11
- package/dist-cjs/commands/MarkReadCommand.js +10 -11
- package/dist-cjs/commands/MarkUnreadCommand.js +10 -11
- package/dist-cjs/commands/PartialUpdateChannelCommand.js +10 -11
- package/dist-cjs/commands/PartialUpdateMessageCommand.js +10 -11
- package/dist-cjs/commands/PinChannelCommand.js +10 -11
- package/dist-cjs/commands/PinMessageCommand.js +10 -11
- package/dist-cjs/commands/QueryChannelsCommand.js +10 -11
- package/dist-cjs/commands/ScheduleExternalFlagAdjustmentJobCommand.js +10 -11
- package/dist-cjs/commands/SendActionTriggerResultCommand.js +10 -11
- package/dist-cjs/commands/SendGiphyCommand.js +10 -11
- package/dist-cjs/commands/SendMessageCommand.js +10 -11
- package/dist-cjs/commands/SendMessageReactionCommand.js +10 -11
- package/dist-cjs/commands/SendSystemMessageCommand.js +10 -11
- package/dist-cjs/commands/SendTypingStartCommand.js +10 -11
- package/dist-cjs/commands/SendTypingStopCommand.js +10 -11
- package/dist-cjs/commands/ShowChannelCommand.js +10 -11
- package/dist-cjs/commands/TagChannelCommand.js +10 -11
- package/dist-cjs/commands/TriggerMessageActionCommand.js +10 -11
- package/dist-cjs/commands/UnpinChannelCommand.js +10 -11
- package/dist-cjs/commands/UnpinMessageCommand.js +10 -11
- package/dist-cjs/commands/UntagChannelCommand.js +10 -11
- package/dist-cjs/commands/UpdateChannelCommand.js +10 -11
- package/dist-cjs/commands/UpdateInboxTagCommand.js +10 -11
- package/dist-cjs/commands/UpdateMessageCommand.js +10 -11
- package/dist-cjs/commands/UploadFileCommand.js +10 -11
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/index.js +7 -4
- package/dist-cjs/models/ConversationsSyntheticServiceException.js +12 -0
- package/dist-cjs/models/enums.js +124 -0
- package/dist-cjs/models/errors.js +274 -0
- package/dist-cjs/models/models_0.js +0 -451
- package/dist-cjs/runtimeConfig.browser.js +11 -11
- package/dist-cjs/runtimeConfig.js +22 -18
- package/dist-cjs/runtimeConfig.shared.js +30 -10
- package/dist-cjs/runtimeExtensions.js +6 -5
- package/dist-cjs/schemas/schemas_0.js +1854 -0
- package/dist-es/Conversations.js +6 -6
- package/dist-es/ConversationsClient.js +30 -22
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +177 -0
- package/dist-es/commands/AddChannelMemberCommand.js +9 -10
- package/dist-es/commands/AddChannelMembersCommand.js +9 -10
- package/dist-es/commands/AssignChannelCommand.js +9 -10
- package/dist-es/commands/CreateGroupChannelCommand.js +9 -10
- package/dist-es/commands/CreateInboxTagCommand.js +9 -10
- package/dist-es/commands/CreateKiteChannelCommand.js +9 -10
- package/dist-es/commands/DeleteChannelCommand.js +9 -10
- package/dist-es/commands/DeleteChannelMemberCommand.js +9 -10
- package/dist-es/commands/DeleteInboxTagCommand.js +9 -10
- package/dist-es/commands/DeleteMessageCommand.js +9 -10
- package/dist-es/commands/DeleteMessageReactionCommand.js +9 -10
- package/dist-es/commands/DescribeEventCommand.js +9 -10
- package/dist-es/commands/GetActionTriggerResultCommand.js +9 -10
- package/dist-es/commands/GetChannelCommand.js +9 -10
- package/dist-es/commands/GetChannelMemberCommand.js +9 -10
- package/dist-es/commands/GetDirectChannelIdCommand.js +9 -10
- package/dist-es/commands/GetFilePresignedDownloadUrlCommand.js +9 -10
- package/dist-es/commands/GetInboxStateCommand.js +9 -10
- package/dist-es/commands/GetMessageCommand.js +9 -10
- package/dist-es/commands/GetOrCreateDirectChannelCommand.js +9 -10
- package/dist-es/commands/GetOrCreateSmsChannelCommand.js +9 -10
- package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +9 -10
- package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +9 -10
- package/dist-es/commands/GetSmsChannelIdCommand.js +9 -10
- package/dist-es/commands/GetTelephonyChannelIdCommand.js +9 -10
- package/dist-es/commands/GetTokenCommand.js +9 -10
- package/dist-es/commands/GetUploadedFileInfoCommand.js +9 -10
- package/dist-es/commands/GetWhatsAppChannelIdCommand.js +9 -10
- package/dist-es/commands/HideChannelCommand.js +9 -10
- package/dist-es/commands/InviteCommand.js +9 -10
- package/dist-es/commands/JoinChannelCommand.js +9 -10
- package/dist-es/commands/LeaveChannelCommand.js +9 -10
- package/dist-es/commands/ListChannelMembersCommand.js +9 -10
- package/dist-es/commands/ListChannelMembersReadStatusCommand.js +9 -10
- package/dist-es/commands/ListChannelsCommand.js +9 -10
- package/dist-es/commands/ListInboxTaggedChannelsCommand.js +9 -10
- package/dist-es/commands/ListInboxTagsCommand.js +9 -10
- package/dist-es/commands/ListMessageReactionsCommand.js +9 -10
- package/dist-es/commands/ListMessagesCommand.js +9 -10
- package/dist-es/commands/ListPinnedMessagesCommand.js +9 -10
- package/dist-es/commands/MarkReadCommand.js +9 -10
- package/dist-es/commands/MarkUnreadCommand.js +9 -10
- package/dist-es/commands/PartialUpdateChannelCommand.js +9 -10
- package/dist-es/commands/PartialUpdateMessageCommand.js +9 -10
- package/dist-es/commands/PinChannelCommand.js +9 -10
- package/dist-es/commands/PinMessageCommand.js +9 -10
- package/dist-es/commands/QueryChannelsCommand.js +9 -10
- package/dist-es/commands/ScheduleExternalFlagAdjustmentJobCommand.js +9 -10
- package/dist-es/commands/SendActionTriggerResultCommand.js +9 -10
- package/dist-es/commands/SendGiphyCommand.js +9 -10
- package/dist-es/commands/SendMessageCommand.js +9 -10
- package/dist-es/commands/SendMessageReactionCommand.js +9 -10
- package/dist-es/commands/SendSystemMessageCommand.js +9 -10
- package/dist-es/commands/SendTypingStartCommand.js +9 -10
- package/dist-es/commands/SendTypingStopCommand.js +9 -10
- package/dist-es/commands/ShowChannelCommand.js +9 -10
- package/dist-es/commands/TagChannelCommand.js +9 -10
- package/dist-es/commands/TriggerMessageActionCommand.js +9 -10
- package/dist-es/commands/UnpinChannelCommand.js +9 -10
- package/dist-es/commands/UnpinMessageCommand.js +9 -10
- package/dist-es/commands/UntagChannelCommand.js +9 -10
- package/dist-es/commands/UpdateChannelCommand.js +9 -10
- package/dist-es/commands/UpdateInboxTagCommand.js +9 -10
- package/dist-es/commands/UpdateMessageCommand.js +9 -10
- package/dist-es/commands/UploadFileCommand.js +9 -10
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/index.js +5 -2
- package/dist-es/models/ConversationsSyntheticServiceException.js +8 -0
- package/dist-es/models/enums.js +121 -0
- package/dist-es/models/errors.js +251 -0
- package/dist-es/models/models_0.js +1 -430
- package/dist-es/runtimeConfig.browser.js +7 -7
- package/dist-es/runtimeConfig.js +17 -13
- package/dist-es/runtimeConfig.shared.js +24 -4
- package/dist-es/runtimeExtensions.js +6 -5
- package/dist-es/schemas/schemas_0.js +1846 -0
- package/dist-types/Conversations.d.ts +66 -66
- package/dist-types/ConversationsClient.d.ts +95 -77
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/AddChannelMemberCommand.d.ts +12 -8
- package/dist-types/commands/AddChannelMembersCommand.d.ts +12 -8
- package/dist-types/commands/AssignChannelCommand.d.ts +12 -8
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +12 -8
- package/dist-types/commands/CreateInboxTagCommand.d.ts +12 -8
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +12 -8
- package/dist-types/commands/DeleteChannelCommand.d.ts +12 -8
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +12 -8
- package/dist-types/commands/DeleteInboxTagCommand.d.ts +12 -8
- package/dist-types/commands/DeleteMessageCommand.d.ts +12 -8
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +12 -8
- package/dist-types/commands/DescribeEventCommand.d.ts +12 -8
- package/dist-types/commands/GetActionTriggerResultCommand.d.ts +12 -8
- package/dist-types/commands/GetChannelCommand.d.ts +12 -8
- package/dist-types/commands/GetChannelMemberCommand.d.ts +12 -8
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +12 -8
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +12 -8
- package/dist-types/commands/GetInboxStateCommand.d.ts +12 -8
- package/dist-types/commands/GetMessageCommand.d.ts +12 -8
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +12 -8
- package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +12 -8
- package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +12 -8
- package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +12 -8
- package/dist-types/commands/GetSmsChannelIdCommand.d.ts +12 -8
- package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +12 -8
- package/dist-types/commands/GetTokenCommand.d.ts +12 -8
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +12 -8
- package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +12 -8
- package/dist-types/commands/HideChannelCommand.d.ts +12 -8
- package/dist-types/commands/InviteCommand.d.ts +12 -8
- package/dist-types/commands/JoinChannelCommand.d.ts +12 -8
- package/dist-types/commands/LeaveChannelCommand.d.ts +12 -8
- package/dist-types/commands/ListChannelMembersCommand.d.ts +12 -8
- package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +12 -8
- package/dist-types/commands/ListChannelsCommand.d.ts +12 -8
- package/dist-types/commands/ListInboxTaggedChannelsCommand.d.ts +12 -8
- package/dist-types/commands/ListInboxTagsCommand.d.ts +12 -8
- package/dist-types/commands/ListMessageReactionsCommand.d.ts +12 -8
- package/dist-types/commands/ListMessagesCommand.d.ts +12 -8
- package/dist-types/commands/ListPinnedMessagesCommand.d.ts +12 -8
- package/dist-types/commands/MarkReadCommand.d.ts +12 -8
- package/dist-types/commands/MarkUnreadCommand.d.ts +12 -8
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +12 -8
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +12 -8
- package/dist-types/commands/PinChannelCommand.d.ts +12 -8
- package/dist-types/commands/PinMessageCommand.d.ts +12 -8
- package/dist-types/commands/QueryChannelsCommand.d.ts +12 -8
- package/dist-types/commands/ScheduleExternalFlagAdjustmentJobCommand.d.ts +12 -8
- package/dist-types/commands/SendActionTriggerResultCommand.d.ts +12 -8
- package/dist-types/commands/SendGiphyCommand.d.ts +12 -8
- package/dist-types/commands/SendMessageCommand.d.ts +12 -8
- package/dist-types/commands/SendMessageReactionCommand.d.ts +12 -8
- package/dist-types/commands/SendSystemMessageCommand.d.ts +12 -8
- package/dist-types/commands/SendTypingStartCommand.d.ts +12 -8
- package/dist-types/commands/SendTypingStopCommand.d.ts +12 -8
- package/dist-types/commands/ShowChannelCommand.d.ts +12 -8
- package/dist-types/commands/TagChannelCommand.d.ts +12 -8
- package/dist-types/commands/TriggerMessageActionCommand.d.ts +12 -8
- package/dist-types/commands/UnpinChannelCommand.d.ts +12 -8
- package/dist-types/commands/UnpinMessageCommand.d.ts +12 -8
- package/dist-types/commands/UntagChannelCommand.d.ts +12 -8
- package/dist-types/commands/UpdateChannelCommand.d.ts +12 -8
- package/dist-types/commands/UpdateInboxTagCommand.d.ts +12 -8
- package/dist-types/commands/UpdateMessageCommand.d.ts +12 -8
- package/dist-types/commands/UploadFileCommand.d.ts +12 -8
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +4 -3
- package/dist-types/index.d.ts +6 -2
- package/dist-types/models/{ConversationsServiceException.d.ts → ConversationsSyntheticServiceException.d.ts} +2 -2
- package/dist-types/models/enums.d.ts +285 -0
- package/dist-types/models/errors.d.ts +244 -0
- package/dist-types/models/models_0.d.ts +85 -594
- package/dist-types/runtimeConfig.browser.d.ts +35 -16
- package/dist-types/runtimeConfig.d.ts +34 -15
- package/dist-types/runtimeConfig.native.d.ts +36 -17
- package/dist-types/runtimeConfig.shared.d.ts +20 -3
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +286 -0
- package/package.json +13 -39
- package/dist-cjs/models/ConversationsServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -2574
- package/dist-es/models/ConversationsServiceException.js +0 -8
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -2439
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -587
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { ConversationsSyntheticServiceException as __BaseException } from "./ConversationsSyntheticServiceException";
|
|
2
|
+
export class ForbiddenException extends __BaseException {
|
|
3
|
+
name = "ForbiddenException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "ForbiddenException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class RateLimitExceededException extends __BaseException {
|
|
15
|
+
name = "RateLimitExceededException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
rateLimit;
|
|
18
|
+
rateLimitRemaining;
|
|
19
|
+
rateLimitReset;
|
|
20
|
+
retryAfter;
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "RateLimitExceededException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, RateLimitExceededException.prototype);
|
|
28
|
+
this.rateLimit = opts.rateLimit;
|
|
29
|
+
this.rateLimitRemaining = opts.rateLimitRemaining;
|
|
30
|
+
this.rateLimitReset = opts.rateLimitReset;
|
|
31
|
+
this.retryAfter = opts.retryAfter;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export class ValidationException extends __BaseException {
|
|
35
|
+
name = "ValidationException";
|
|
36
|
+
$fault = "client";
|
|
37
|
+
constructor(opts) {
|
|
38
|
+
super({
|
|
39
|
+
name: "ValidationException",
|
|
40
|
+
$fault: "client",
|
|
41
|
+
...opts,
|
|
42
|
+
});
|
|
43
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export class TargetNotEligibleException extends __BaseException {
|
|
47
|
+
name = "TargetNotEligibleException";
|
|
48
|
+
$fault = "client";
|
|
49
|
+
reason;
|
|
50
|
+
constructor(opts) {
|
|
51
|
+
super({
|
|
52
|
+
name: "TargetNotEligibleException",
|
|
53
|
+
$fault: "client",
|
|
54
|
+
...opts,
|
|
55
|
+
});
|
|
56
|
+
Object.setPrototypeOf(this, TargetNotEligibleException.prototype);
|
|
57
|
+
this.reason = opts.reason;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export class TargetNotFoundException extends __BaseException {
|
|
61
|
+
name = "TargetNotFoundException";
|
|
62
|
+
$fault = "client";
|
|
63
|
+
constructor(opts) {
|
|
64
|
+
super({
|
|
65
|
+
name: "TargetNotFoundException",
|
|
66
|
+
$fault: "client",
|
|
67
|
+
...opts,
|
|
68
|
+
});
|
|
69
|
+
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export class FileNotFoundException extends __BaseException {
|
|
73
|
+
name = "FileNotFoundException";
|
|
74
|
+
$fault = "client";
|
|
75
|
+
constructor(opts) {
|
|
76
|
+
super({
|
|
77
|
+
name: "FileNotFoundException",
|
|
78
|
+
$fault: "client",
|
|
79
|
+
...opts,
|
|
80
|
+
});
|
|
81
|
+
Object.setPrototypeOf(this, FileNotFoundException.prototype);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
export class ChannelNotFoundException extends __BaseException {
|
|
85
|
+
name = "ChannelNotFoundException";
|
|
86
|
+
$fault = "client";
|
|
87
|
+
constructor(opts) {
|
|
88
|
+
super({
|
|
89
|
+
name: "ChannelNotFoundException",
|
|
90
|
+
$fault: "client",
|
|
91
|
+
...opts,
|
|
92
|
+
});
|
|
93
|
+
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export class MemberAlreadyExistException extends __BaseException {
|
|
97
|
+
name = "MemberAlreadyExistException";
|
|
98
|
+
$fault = "client";
|
|
99
|
+
constructor(opts) {
|
|
100
|
+
super({
|
|
101
|
+
name: "MemberAlreadyExistException",
|
|
102
|
+
$fault: "client",
|
|
103
|
+
...opts,
|
|
104
|
+
});
|
|
105
|
+
Object.setPrototypeOf(this, MemberAlreadyExistException.prototype);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
export class MemberDeactivatedException extends __BaseException {
|
|
109
|
+
name = "MemberDeactivatedException";
|
|
110
|
+
$fault = "client";
|
|
111
|
+
constructor(opts) {
|
|
112
|
+
super({
|
|
113
|
+
name: "MemberDeactivatedException",
|
|
114
|
+
$fault: "client",
|
|
115
|
+
...opts,
|
|
116
|
+
});
|
|
117
|
+
Object.setPrototypeOf(this, MemberDeactivatedException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export class ChannelAlreadyExistException extends __BaseException {
|
|
121
|
+
name = "ChannelAlreadyExistException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "ChannelAlreadyExistException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, ChannelAlreadyExistException.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
export class TagsLimitReachedException extends __BaseException {
|
|
133
|
+
name = "TagsLimitReachedException";
|
|
134
|
+
$fault = "client";
|
|
135
|
+
constructor(opts) {
|
|
136
|
+
super({
|
|
137
|
+
name: "TagsLimitReachedException",
|
|
138
|
+
$fault: "client",
|
|
139
|
+
...opts,
|
|
140
|
+
});
|
|
141
|
+
Object.setPrototypeOf(this, TagsLimitReachedException.prototype);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
export class MemberNotFoundException extends __BaseException {
|
|
145
|
+
name = "MemberNotFoundException";
|
|
146
|
+
$fault = "client";
|
|
147
|
+
constructor(opts) {
|
|
148
|
+
super({
|
|
149
|
+
name: "MemberNotFoundException",
|
|
150
|
+
$fault: "client",
|
|
151
|
+
...opts,
|
|
152
|
+
});
|
|
153
|
+
Object.setPrototypeOf(this, MemberNotFoundException.prototype);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
export class MessageNotFoundException extends __BaseException {
|
|
157
|
+
name = "MessageNotFoundException";
|
|
158
|
+
$fault = "client";
|
|
159
|
+
constructor(opts) {
|
|
160
|
+
super({
|
|
161
|
+
name: "MessageNotFoundException",
|
|
162
|
+
$fault: "client",
|
|
163
|
+
...opts,
|
|
164
|
+
});
|
|
165
|
+
Object.setPrototypeOf(this, MessageNotFoundException.prototype);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
export class TriggerNotFoundException extends __BaseException {
|
|
169
|
+
name = "TriggerNotFoundException";
|
|
170
|
+
$fault = "client";
|
|
171
|
+
constructor(opts) {
|
|
172
|
+
super({
|
|
173
|
+
name: "TriggerNotFoundException",
|
|
174
|
+
$fault: "client",
|
|
175
|
+
...opts,
|
|
176
|
+
});
|
|
177
|
+
Object.setPrototypeOf(this, TriggerNotFoundException.prototype);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
export class TagNotFoundException extends __BaseException {
|
|
181
|
+
name = "TagNotFoundException";
|
|
182
|
+
$fault = "client";
|
|
183
|
+
constructor(opts) {
|
|
184
|
+
super({
|
|
185
|
+
name: "TagNotFoundException",
|
|
186
|
+
$fault: "client",
|
|
187
|
+
...opts,
|
|
188
|
+
});
|
|
189
|
+
Object.setPrototypeOf(this, TagNotFoundException.prototype);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
export class MarkUnreadChannelsLimitReachedException extends __BaseException {
|
|
193
|
+
name = "MarkUnreadChannelsLimitReachedException";
|
|
194
|
+
$fault = "client";
|
|
195
|
+
constructor(opts) {
|
|
196
|
+
super({
|
|
197
|
+
name: "MarkUnreadChannelsLimitReachedException",
|
|
198
|
+
$fault: "client",
|
|
199
|
+
...opts,
|
|
200
|
+
});
|
|
201
|
+
Object.setPrototypeOf(this, MarkUnreadChannelsLimitReachedException.prototype);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
export class PinnedChannelsLimitReachedException extends __BaseException {
|
|
205
|
+
name = "PinnedChannelsLimitReachedException";
|
|
206
|
+
$fault = "client";
|
|
207
|
+
constructor(opts) {
|
|
208
|
+
super({
|
|
209
|
+
name: "PinnedChannelsLimitReachedException",
|
|
210
|
+
$fault: "client",
|
|
211
|
+
...opts,
|
|
212
|
+
});
|
|
213
|
+
Object.setPrototypeOf(this, PinnedChannelsLimitReachedException.prototype);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
export class ConversationsServiceException extends __BaseException {
|
|
217
|
+
name = "ConversationsServiceException";
|
|
218
|
+
$fault = "server";
|
|
219
|
+
constructor(opts) {
|
|
220
|
+
super({
|
|
221
|
+
name: "ConversationsServiceException",
|
|
222
|
+
$fault: "server",
|
|
223
|
+
...opts,
|
|
224
|
+
});
|
|
225
|
+
Object.setPrototypeOf(this, ConversationsServiceException.prototype);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
export class TaggedChannelsLimitReachedException extends __BaseException {
|
|
229
|
+
name = "TaggedChannelsLimitReachedException";
|
|
230
|
+
$fault = "client";
|
|
231
|
+
constructor(opts) {
|
|
232
|
+
super({
|
|
233
|
+
name: "TaggedChannelsLimitReachedException",
|
|
234
|
+
$fault: "client",
|
|
235
|
+
...opts,
|
|
236
|
+
});
|
|
237
|
+
Object.setPrototypeOf(this, TaggedChannelsLimitReachedException.prototype);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
export class MessageActionNotFoundException extends __BaseException {
|
|
241
|
+
name = "MessageActionNotFoundException";
|
|
242
|
+
$fault = "client";
|
|
243
|
+
constructor(opts) {
|
|
244
|
+
super({
|
|
245
|
+
name: "MessageActionNotFoundException",
|
|
246
|
+
$fault: "client",
|
|
247
|
+
...opts,
|
|
248
|
+
});
|
|
249
|
+
Object.setPrototypeOf(this, MessageActionNotFoundException.prototype);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
@@ -1,430 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export class ForbiddenException extends __BaseException {
|
|
3
|
-
name = "ForbiddenException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "ForbiddenException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export class RateLimitExceededException extends __BaseException {
|
|
15
|
-
name = "RateLimitExceededException";
|
|
16
|
-
$fault = "client";
|
|
17
|
-
rateLimit;
|
|
18
|
-
rateLimitRemaining;
|
|
19
|
-
rateLimitReset;
|
|
20
|
-
retryAfter;
|
|
21
|
-
constructor(opts) {
|
|
22
|
-
super({
|
|
23
|
-
name: "RateLimitExceededException",
|
|
24
|
-
$fault: "client",
|
|
25
|
-
...opts
|
|
26
|
-
});
|
|
27
|
-
Object.setPrototypeOf(this, RateLimitExceededException.prototype);
|
|
28
|
-
this.rateLimit = opts.rateLimit;
|
|
29
|
-
this.rateLimitRemaining = opts.rateLimitRemaining;
|
|
30
|
-
this.rateLimitReset = opts.rateLimitReset;
|
|
31
|
-
this.retryAfter = opts.retryAfter;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
export class ValidationException extends __BaseException {
|
|
35
|
-
name = "ValidationException";
|
|
36
|
-
$fault = "client";
|
|
37
|
-
constructor(opts) {
|
|
38
|
-
super({
|
|
39
|
-
name: "ValidationException",
|
|
40
|
-
$fault: "client",
|
|
41
|
-
...opts
|
|
42
|
-
});
|
|
43
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
export const TargetNotEligibleReason = {
|
|
47
|
-
NO_LICENSE: "no_license",
|
|
48
|
-
};
|
|
49
|
-
export class TargetNotEligibleException extends __BaseException {
|
|
50
|
-
name = "TargetNotEligibleException";
|
|
51
|
-
$fault = "client";
|
|
52
|
-
reason;
|
|
53
|
-
constructor(opts) {
|
|
54
|
-
super({
|
|
55
|
-
name: "TargetNotEligibleException",
|
|
56
|
-
$fault: "client",
|
|
57
|
-
...opts
|
|
58
|
-
});
|
|
59
|
-
Object.setPrototypeOf(this, TargetNotEligibleException.prototype);
|
|
60
|
-
this.reason = opts.reason;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
export class TargetNotFoundException extends __BaseException {
|
|
64
|
-
name = "TargetNotFoundException";
|
|
65
|
-
$fault = "client";
|
|
66
|
-
constructor(opts) {
|
|
67
|
-
super({
|
|
68
|
-
name: "TargetNotFoundException",
|
|
69
|
-
$fault: "client",
|
|
70
|
-
...opts
|
|
71
|
-
});
|
|
72
|
-
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
export const ChannelAccess = {
|
|
76
|
-
PRIVATE: "private",
|
|
77
|
-
PUBLIC: "public",
|
|
78
|
-
};
|
|
79
|
-
export const ChannelType = {
|
|
80
|
-
DIRECT: "direct",
|
|
81
|
-
GROUP: "group",
|
|
82
|
-
};
|
|
83
|
-
export const ChannelContextEventAttendeeStatus = {
|
|
84
|
-
ACCEPTED: "accepted",
|
|
85
|
-
DECLINED: "declined",
|
|
86
|
-
NONE: "none",
|
|
87
|
-
TENTATIVE: "tentative",
|
|
88
|
-
};
|
|
89
|
-
export const ChannelContextSource = {
|
|
90
|
-
KITE: "kite",
|
|
91
|
-
};
|
|
92
|
-
export const ChannelWhatsAppStatus = {
|
|
93
|
-
CHANNEL_CLOSED: "24h_channel_closed",
|
|
94
|
-
};
|
|
95
|
-
export var ButtonHandler;
|
|
96
|
-
(function (ButtonHandler) {
|
|
97
|
-
ButtonHandler.visit = (value, visitor) => {
|
|
98
|
-
if (value.link !== undefined)
|
|
99
|
-
return visitor.link(value.link);
|
|
100
|
-
if (value.reply !== undefined)
|
|
101
|
-
return visitor.reply(value.reply);
|
|
102
|
-
if (value.action !== undefined)
|
|
103
|
-
return visitor.action(value.action);
|
|
104
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
105
|
-
};
|
|
106
|
-
})(ButtonHandler || (ButtonHandler = {}));
|
|
107
|
-
export const ButtonVariant = {
|
|
108
|
-
CONTAINED: "contained",
|
|
109
|
-
OUTLINED: "outlined",
|
|
110
|
-
};
|
|
111
|
-
export var ActionElement;
|
|
112
|
-
(function (ActionElement) {
|
|
113
|
-
ActionElement.visit = (value, visitor) => {
|
|
114
|
-
if (value.button !== undefined)
|
|
115
|
-
return visitor.button(value.button);
|
|
116
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
117
|
-
};
|
|
118
|
-
})(ActionElement || (ActionElement = {}));
|
|
119
|
-
export var Element;
|
|
120
|
-
(function (Element) {
|
|
121
|
-
Element.visit = (value, visitor) => {
|
|
122
|
-
if (value.template !== undefined)
|
|
123
|
-
return visitor.template(value.template);
|
|
124
|
-
if (value.actions !== undefined)
|
|
125
|
-
return visitor.actions(value.actions);
|
|
126
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
127
|
-
};
|
|
128
|
-
})(Element || (Element = {}));
|
|
129
|
-
export const MessageSmsStatus = {
|
|
130
|
-
DELIVERED: "delivered",
|
|
131
|
-
ERROR: "error",
|
|
132
|
-
SENT: "sent",
|
|
133
|
-
TRYING: "trying",
|
|
134
|
-
};
|
|
135
|
-
export const MessageType = {
|
|
136
|
-
DELETED: "deleted",
|
|
137
|
-
REGULAR: "regular",
|
|
138
|
-
SYSTEM: "system",
|
|
139
|
-
};
|
|
140
|
-
export const MessageWhatsAppStatus = {
|
|
141
|
-
DELIVERED: "delivered",
|
|
142
|
-
ERROR: "error",
|
|
143
|
-
SENT: "sent",
|
|
144
|
-
TRYING: "trying",
|
|
145
|
-
};
|
|
146
|
-
export const ConversationFileCategory = {
|
|
147
|
-
GENERAL: "channels",
|
|
148
|
-
RECORDING: "recordings",
|
|
149
|
-
WIZY_RECORDING: "wizyconfRecordings",
|
|
150
|
-
};
|
|
151
|
-
export class FileNotFoundException extends __BaseException {
|
|
152
|
-
name = "FileNotFoundException";
|
|
153
|
-
$fault = "client";
|
|
154
|
-
constructor(opts) {
|
|
155
|
-
super({
|
|
156
|
-
name: "FileNotFoundException",
|
|
157
|
-
$fault: "client",
|
|
158
|
-
...opts
|
|
159
|
-
});
|
|
160
|
-
Object.setPrototypeOf(this, FileNotFoundException.prototype);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
export const ActionTriggerStatus = {
|
|
164
|
-
COMPLETED: "completed",
|
|
165
|
-
PENDING: "pending",
|
|
166
|
-
};
|
|
167
|
-
export const ChannelMemberRole = {
|
|
168
|
-
MEMBER: "member",
|
|
169
|
-
SUPERVISOR: "supervisor",
|
|
170
|
-
};
|
|
171
|
-
export class ChannelNotFoundException extends __BaseException {
|
|
172
|
-
name = "ChannelNotFoundException";
|
|
173
|
-
$fault = "client";
|
|
174
|
-
constructor(opts) {
|
|
175
|
-
super({
|
|
176
|
-
name: "ChannelNotFoundException",
|
|
177
|
-
$fault: "client",
|
|
178
|
-
...opts
|
|
179
|
-
});
|
|
180
|
-
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
export class MemberAlreadyExistException extends __BaseException {
|
|
184
|
-
name = "MemberAlreadyExistException";
|
|
185
|
-
$fault = "client";
|
|
186
|
-
constructor(opts) {
|
|
187
|
-
super({
|
|
188
|
-
name: "MemberAlreadyExistException",
|
|
189
|
-
$fault: "client",
|
|
190
|
-
...opts
|
|
191
|
-
});
|
|
192
|
-
Object.setPrototypeOf(this, MemberAlreadyExistException.prototype);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
export class MemberDeactivatedException extends __BaseException {
|
|
196
|
-
name = "MemberDeactivatedException";
|
|
197
|
-
$fault = "client";
|
|
198
|
-
constructor(opts) {
|
|
199
|
-
super({
|
|
200
|
-
name: "MemberDeactivatedException",
|
|
201
|
-
$fault: "client",
|
|
202
|
-
...opts
|
|
203
|
-
});
|
|
204
|
-
Object.setPrototypeOf(this, MemberDeactivatedException.prototype);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
export var AssignChannelAssigneeRequest;
|
|
208
|
-
(function (AssignChannelAssigneeRequest) {
|
|
209
|
-
AssignChannelAssigneeRequest.visit = (value, visitor) => {
|
|
210
|
-
if (value.id !== undefined)
|
|
211
|
-
return visitor.id(value.id);
|
|
212
|
-
if (value.email !== undefined)
|
|
213
|
-
return visitor.email(value.email);
|
|
214
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
215
|
-
};
|
|
216
|
-
})(AssignChannelAssigneeRequest || (AssignChannelAssigneeRequest = {}));
|
|
217
|
-
export var AssignChannelServiceRequest;
|
|
218
|
-
(function (AssignChannelServiceRequest) {
|
|
219
|
-
AssignChannelServiceRequest.visit = (value, visitor) => {
|
|
220
|
-
if (value.uri !== undefined)
|
|
221
|
-
return visitor.uri(value.uri);
|
|
222
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
223
|
-
};
|
|
224
|
-
})(AssignChannelServiceRequest || (AssignChannelServiceRequest = {}));
|
|
225
|
-
export const AssignChannelVariant = {
|
|
226
|
-
ADAPTIVE: "ADAPTIVE",
|
|
227
|
-
EVERYBODY: "EVERYBODY",
|
|
228
|
-
SELECTED: "SELECTED",
|
|
229
|
-
SKIP: "SKIP",
|
|
230
|
-
};
|
|
231
|
-
export class ChannelAlreadyExistException extends __BaseException {
|
|
232
|
-
name = "ChannelAlreadyExistException";
|
|
233
|
-
$fault = "client";
|
|
234
|
-
constructor(opts) {
|
|
235
|
-
super({
|
|
236
|
-
name: "ChannelAlreadyExistException",
|
|
237
|
-
$fault: "client",
|
|
238
|
-
...opts
|
|
239
|
-
});
|
|
240
|
-
Object.setPrototypeOf(this, ChannelAlreadyExistException.prototype);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
export const GroupChannelCreationEventType = {
|
|
244
|
-
CONVERSATION_CREATED: "conversation_created",
|
|
245
|
-
CONVERSATION_CREATED_WITH_NAME: "conversation_created_with_name",
|
|
246
|
-
};
|
|
247
|
-
export class TagsLimitReachedException extends __BaseException {
|
|
248
|
-
name = "TagsLimitReachedException";
|
|
249
|
-
$fault = "client";
|
|
250
|
-
constructor(opts) {
|
|
251
|
-
super({
|
|
252
|
-
name: "TagsLimitReachedException",
|
|
253
|
-
$fault: "client",
|
|
254
|
-
...opts
|
|
255
|
-
});
|
|
256
|
-
Object.setPrototypeOf(this, TagsLimitReachedException.prototype);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
export class MemberNotFoundException extends __BaseException {
|
|
260
|
-
name = "MemberNotFoundException";
|
|
261
|
-
$fault = "client";
|
|
262
|
-
constructor(opts) {
|
|
263
|
-
super({
|
|
264
|
-
name: "MemberNotFoundException",
|
|
265
|
-
$fault: "client",
|
|
266
|
-
...opts
|
|
267
|
-
});
|
|
268
|
-
Object.setPrototypeOf(this, MemberNotFoundException.prototype);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
export class MessageNotFoundException extends __BaseException {
|
|
272
|
-
name = "MessageNotFoundException";
|
|
273
|
-
$fault = "client";
|
|
274
|
-
constructor(opts) {
|
|
275
|
-
super({
|
|
276
|
-
name: "MessageNotFoundException",
|
|
277
|
-
$fault: "client",
|
|
278
|
-
...opts
|
|
279
|
-
});
|
|
280
|
-
Object.setPrototypeOf(this, MessageNotFoundException.prototype);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
export const ReactionType = {
|
|
284
|
-
CLAP: "clap",
|
|
285
|
-
CONFUSED: "confused",
|
|
286
|
-
EYES: "eyes",
|
|
287
|
-
HEART: "heart",
|
|
288
|
-
SLIGHTLY_SMILING_FACE: "slightly_smiling_face",
|
|
289
|
-
SMILEY: "smiley",
|
|
290
|
-
THUMBSDOWN: "thumbsdown",
|
|
291
|
-
THUMBSUP: "thumbsup",
|
|
292
|
-
WHITE_CHECK_MARK: "white_check_mark",
|
|
293
|
-
};
|
|
294
|
-
export const WebhookEventType = {
|
|
295
|
-
ACTION_TRIGGERED: "chat:action:triggered",
|
|
296
|
-
CHANNEL_CREATED: "chat:channel:created",
|
|
297
|
-
CHANNEL_UPDATED: "chat:channel:updated",
|
|
298
|
-
MEMBER_ADDED: "chat:member:added",
|
|
299
|
-
MEMBER_REMOVED: "chat:member:removed",
|
|
300
|
-
MESSAGE_DELETED: "chat:message:deleted",
|
|
301
|
-
MESSAGE_NEW: "chat:message:new",
|
|
302
|
-
MESSAGE_UPDATED: "chat:message:updated",
|
|
303
|
-
REACTION_DELETED: "chat:reaction:deleted",
|
|
304
|
-
REACTION_NEW: "chat:reaction:new",
|
|
305
|
-
};
|
|
306
|
-
export class TriggerNotFoundException extends __BaseException {
|
|
307
|
-
name = "TriggerNotFoundException";
|
|
308
|
-
$fault = "client";
|
|
309
|
-
constructor(opts) {
|
|
310
|
-
super({
|
|
311
|
-
name: "TriggerNotFoundException",
|
|
312
|
-
$fault: "client",
|
|
313
|
-
...opts
|
|
314
|
-
});
|
|
315
|
-
Object.setPrototypeOf(this, TriggerNotFoundException.prototype);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
export class TagNotFoundException extends __BaseException {
|
|
319
|
-
name = "TagNotFoundException";
|
|
320
|
-
$fault = "client";
|
|
321
|
-
constructor(opts) {
|
|
322
|
-
super({
|
|
323
|
-
name: "TagNotFoundException",
|
|
324
|
-
$fault: "client",
|
|
325
|
-
...opts
|
|
326
|
-
});
|
|
327
|
-
Object.setPrototypeOf(this, TagNotFoundException.prototype);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
export class MarkUnreadChannelsLimitReachedException extends __BaseException {
|
|
331
|
-
name = "MarkUnreadChannelsLimitReachedException";
|
|
332
|
-
$fault = "client";
|
|
333
|
-
constructor(opts) {
|
|
334
|
-
super({
|
|
335
|
-
name: "MarkUnreadChannelsLimitReachedException",
|
|
336
|
-
$fault: "client",
|
|
337
|
-
...opts
|
|
338
|
-
});
|
|
339
|
-
Object.setPrototypeOf(this, MarkUnreadChannelsLimitReachedException.prototype);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
export const GroupChannelUnsetOptions = {
|
|
343
|
-
ACCESS: "access",
|
|
344
|
-
ASSIGNEE: "assignee",
|
|
345
|
-
BROADCAST: "broadcast",
|
|
346
|
-
CONTEXT: "context",
|
|
347
|
-
CONTEXT_EVENTS: "contextEvents",
|
|
348
|
-
CONTEXT_PTT: "contextPtt",
|
|
349
|
-
DESCRIPTION: "description",
|
|
350
|
-
KITE_ASSIGN: "kiteAssign",
|
|
351
|
-
MMS: "mms",
|
|
352
|
-
PICTURE: "picture",
|
|
353
|
-
PICTURE_COLOR: "pictureColor",
|
|
354
|
-
SERVICE: "service",
|
|
355
|
-
SERVICE_TITLE: "serviceTitle",
|
|
356
|
-
SMS: "sms",
|
|
357
|
-
SUBJECT: "subject",
|
|
358
|
-
WHATSAPP: "whatsapp",
|
|
359
|
-
WHATSAPP_STATUS: "whatsappStatus",
|
|
360
|
-
};
|
|
361
|
-
export const MessageUnsetFields = {
|
|
362
|
-
ATTACHMENTS: "attachments",
|
|
363
|
-
ELEMENTS: "elements",
|
|
364
|
-
FORWARD: "forward",
|
|
365
|
-
MENTIONS: "mentions",
|
|
366
|
-
QUOTE: "quote",
|
|
367
|
-
SMS: "sms",
|
|
368
|
-
SMS_STATUS: "smsStatus",
|
|
369
|
-
TEXT: "text",
|
|
370
|
-
WHATSAPP: "whatsapp",
|
|
371
|
-
WHATSAPP_STATUS: "whatsappStatus",
|
|
372
|
-
};
|
|
373
|
-
export class PinnedChannelsLimitReachedException extends __BaseException {
|
|
374
|
-
name = "PinnedChannelsLimitReachedException";
|
|
375
|
-
$fault = "client";
|
|
376
|
-
constructor(opts) {
|
|
377
|
-
super({
|
|
378
|
-
name: "PinnedChannelsLimitReachedException",
|
|
379
|
-
$fault: "client",
|
|
380
|
-
...opts
|
|
381
|
-
});
|
|
382
|
-
Object.setPrototypeOf(this, PinnedChannelsLimitReachedException.prototype);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
export class ConversationsServiceException extends __BaseException {
|
|
386
|
-
name = "ConversationsServiceException";
|
|
387
|
-
$fault = "server";
|
|
388
|
-
constructor(opts) {
|
|
389
|
-
super({
|
|
390
|
-
name: "ConversationsServiceException",
|
|
391
|
-
$fault: "server",
|
|
392
|
-
...opts
|
|
393
|
-
});
|
|
394
|
-
Object.setPrototypeOf(this, ConversationsServiceException.prototype);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
export var SystemMessage;
|
|
398
|
-
(function (SystemMessage) {
|
|
399
|
-
SystemMessage.visit = (value, visitor) => {
|
|
400
|
-
if (value.whatsAppClosed !== undefined)
|
|
401
|
-
return visitor.whatsAppClosed(value.whatsAppClosed);
|
|
402
|
-
if (value.multipleMembersJoined !== undefined)
|
|
403
|
-
return visitor.multipleMembersJoined(value.multipleMembersJoined);
|
|
404
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
405
|
-
};
|
|
406
|
-
})(SystemMessage || (SystemMessage = {}));
|
|
407
|
-
export class TaggedChannelsLimitReachedException extends __BaseException {
|
|
408
|
-
name = "TaggedChannelsLimitReachedException";
|
|
409
|
-
$fault = "client";
|
|
410
|
-
constructor(opts) {
|
|
411
|
-
super({
|
|
412
|
-
name: "TaggedChannelsLimitReachedException",
|
|
413
|
-
$fault: "client",
|
|
414
|
-
...opts
|
|
415
|
-
});
|
|
416
|
-
Object.setPrototypeOf(this, TaggedChannelsLimitReachedException.prototype);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
export class MessageActionNotFoundException extends __BaseException {
|
|
420
|
-
name = "MessageActionNotFoundException";
|
|
421
|
-
$fault = "client";
|
|
422
|
-
constructor(opts) {
|
|
423
|
-
super({
|
|
424
|
-
name: "MessageActionNotFoundException",
|
|
425
|
-
$fault: "client",
|
|
426
|
-
...opts
|
|
427
|
-
});
|
|
428
|
-
Object.setPrototypeOf(this, MessageActionNotFoundException.prototype);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
-
import { createDefaultUserAgentProvider } from "@aws-sdk/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE
|
|
3
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
|
+
import { loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
|
+
import { resolveDefaultsModeConfig } from "@smithy/core/config";
|
|
6
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
8
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
7
9
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
8
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
9
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
10
10
|
export const getRuntimeConfig = (config) => {
|
|
11
11
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
12
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
@@ -17,7 +17,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
17
17
|
runtime: "browser",
|
|
18
18
|
defaultsMode,
|
|
19
19
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({
|
|
20
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ clientVersion: packageInfo.version }),
|
|
21
21
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
22
22
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
23
23
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|