@wildix/stream-client 0.0.1 → 0.0.5
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/StreamService.js +98 -6
- package/dist-cjs/commands/AddChannelMemberCommand.js +21 -0
- package/dist-cjs/commands/AddChannelMembersCommand.js +21 -0
- package/dist-cjs/commands/AssignChannelCommand.js +21 -0
- package/dist-cjs/commands/CreateGroupChannelCommand.js +21 -0
- package/dist-cjs/commands/CreateKiteChannelCommand.js +21 -0
- package/dist-cjs/commands/CreateSectionCommand.js +21 -0
- package/dist-cjs/commands/DeleteChannelCommand.js +21 -0
- package/dist-cjs/commands/DeleteChannelMemberCommand.js +21 -0
- package/dist-cjs/commands/DeleteMessageReactionCommand.js +21 -0
- package/dist-cjs/commands/DeleteSectionCommand.js +21 -0
- package/dist-cjs/commands/GetChannelCommand.js +21 -0
- package/dist-cjs/commands/GetChannelMemberCommand.js +21 -0
- package/dist-cjs/commands/GetDirectChannelIdCommand.js +21 -0
- package/dist-cjs/commands/GetFilePresignedDownloadUrlCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +21 -0
- package/dist-cjs/commands/GetSmsChannelIdCommand.js +21 -0
- package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +21 -0
- package/dist-cjs/commands/GetTokenCommand.js +21 -0
- package/dist-cjs/commands/GetUploadedFileInfoCommand.js +21 -0
- package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +21 -0
- package/dist-cjs/commands/{AddReactionCommand.js → HideChannelCommand.js} +7 -7
- package/dist-cjs/commands/{EditMessageCommand.js → JoinChannelCommand.js} +7 -7
- package/dist-cjs/commands/LeaveChannelCommand.js +21 -0
- package/dist-cjs/commands/ListChannelMembersCommand.js +21 -0
- package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +21 -0
- package/dist-cjs/commands/MarkReadCommand.js +21 -0
- package/dist-cjs/commands/MarkUnreadCommand.js +21 -0
- package/dist-cjs/commands/MoveChannelToSectionCommand.js +21 -0
- package/dist-cjs/commands/MuteChannelCommand.js +21 -0
- package/dist-cjs/commands/PartialUpdateChannelCommand.js +21 -0
- package/dist-cjs/commands/PartialUpdateMessageCommand.js +21 -0
- package/dist-cjs/commands/PinChannelCommand.js +21 -0
- package/dist-cjs/commands/QueryChannelsCommand.js +21 -0
- package/dist-cjs/commands/RemoveChannelFromSectionCommand.js +21 -0
- package/dist-cjs/commands/RenameSectionCommand.js +21 -0
- package/dist-cjs/commands/SendGiphyCommand.js +21 -0
- package/dist-cjs/commands/SendMessageReactionCommand.js +21 -0
- package/dist-cjs/commands/SendSystemMessageCommand.js +21 -0
- package/dist-cjs/commands/SendTypingStartCommand.js +21 -0
- package/dist-cjs/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +7 -7
- package/dist-cjs/commands/ShowChannelCommand.js +21 -0
- package/dist-cjs/commands/UnmuteChannelCommand.js +21 -0
- package/dist-cjs/commands/UnpinChannelCommand.js +21 -0
- package/dist-cjs/commands/UpdateChannelCommand.js +21 -0
- package/dist-cjs/commands/UpdateMessageCommand.js +21 -0
- package/dist-cjs/commands/UploadFileCommand.js +21 -0
- package/dist-cjs/commands/index.js +49 -3
- package/dist-cjs/models/models_0.js +293 -26
- package/dist-cjs/protocols/Aws_restJson1.js +1955 -131
- package/dist-es/StreamService.js +98 -6
- package/dist-es/commands/AddChannelMemberCommand.js +17 -0
- package/dist-es/commands/AddChannelMembersCommand.js +17 -0
- package/dist-es/commands/AssignChannelCommand.js +17 -0
- package/dist-es/commands/CreateGroupChannelCommand.js +17 -0
- package/dist-es/commands/CreateKiteChannelCommand.js +17 -0
- package/dist-es/commands/CreateSectionCommand.js +17 -0
- package/dist-es/commands/DeleteChannelCommand.js +17 -0
- package/dist-es/commands/DeleteChannelMemberCommand.js +17 -0
- package/dist-es/commands/DeleteMessageReactionCommand.js +17 -0
- package/dist-es/commands/DeleteSectionCommand.js +17 -0
- package/dist-es/commands/GetChannelCommand.js +17 -0
- package/dist-es/commands/GetChannelMemberCommand.js +17 -0
- package/dist-es/commands/GetDirectChannelIdCommand.js +17 -0
- package/dist-es/commands/GetFilePresignedDownloadUrlCommand.js +17 -0
- package/dist-es/commands/GetOrCreateDirectChannelCommand.js +17 -0
- package/dist-es/commands/GetOrCreateSmsChannelCommand.js +17 -0
- package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +17 -0
- package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +17 -0
- package/dist-es/commands/GetSmsChannelIdCommand.js +17 -0
- package/dist-es/commands/GetTelephonyChannelIdCommand.js +17 -0
- package/dist-es/commands/GetTokenCommand.js +17 -0
- package/dist-es/commands/GetUploadedFileInfoCommand.js +17 -0
- package/dist-es/commands/GetWhatsAppChannelIdCommand.js +17 -0
- package/dist-es/commands/{EditMessageCommand.js → HideChannelCommand.js} +6 -6
- package/dist-es/commands/{AddReactionCommand.js → JoinChannelCommand.js} +6 -6
- package/dist-es/commands/LeaveChannelCommand.js +17 -0
- package/dist-es/commands/ListChannelMembersCommand.js +17 -0
- package/dist-es/commands/ListChannelMembersReadStatusCommand.js +17 -0
- package/dist-es/commands/MarkReadCommand.js +17 -0
- package/dist-es/commands/MarkUnreadCommand.js +17 -0
- package/dist-es/commands/MoveChannelToSectionCommand.js +17 -0
- package/dist-es/commands/MuteChannelCommand.js +17 -0
- package/dist-es/commands/PartialUpdateChannelCommand.js +17 -0
- package/dist-es/commands/PartialUpdateMessageCommand.js +17 -0
- package/dist-es/commands/PinChannelCommand.js +17 -0
- package/dist-es/commands/QueryChannelsCommand.js +17 -0
- package/dist-es/commands/RemoveChannelFromSectionCommand.js +17 -0
- package/dist-es/commands/RenameSectionCommand.js +17 -0
- package/dist-es/commands/SendGiphyCommand.js +17 -0
- package/dist-es/commands/SendMessageReactionCommand.js +17 -0
- package/dist-es/commands/SendSystemMessageCommand.js +17 -0
- package/dist-es/commands/SendTypingStartCommand.js +17 -0
- package/dist-es/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +6 -6
- package/dist-es/commands/ShowChannelCommand.js +17 -0
- package/dist-es/commands/UnmuteChannelCommand.js +17 -0
- package/dist-es/commands/UnpinChannelCommand.js +17 -0
- package/dist-es/commands/UpdateChannelCommand.js +17 -0
- package/dist-es/commands/UpdateMessageCommand.js +17 -0
- package/dist-es/commands/UploadFileCommand.js +17 -0
- package/dist-es/commands/index.js +49 -3
- package/dist-es/models/models_0.js +281 -23
- package/dist-es/protocols/Aws_restJson1.js +1843 -113
- package/dist-types/StreamService.d.ts +341 -15
- package/dist-types/StreamServiceClient.d.ts +51 -5
- package/dist-types/commands/AddChannelMemberCommand.d.ts +101 -0
- package/dist-types/commands/AddChannelMembersCommand.d.ts +108 -0
- package/dist-types/commands/AssignChannelCommand.d.ts +96 -0
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +201 -0
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +291 -0
- package/dist-types/commands/CreateSectionCommand.d.ts +96 -0
- package/dist-types/commands/DeleteChannelCommand.d.ts +82 -0
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +88 -0
- package/dist-types/commands/DeleteMessageCommand.d.ts +1 -1
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +193 -0
- package/dist-types/commands/DeleteSectionCommand.d.ts +84 -0
- package/dist-types/commands/GetChannelCommand.d.ts +150 -0
- package/dist-types/commands/GetChannelMemberCommand.d.ts +93 -0
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +90 -0
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +94 -0
- package/dist-types/commands/GetInboxCommand.d.ts +53 -6
- package/dist-types/commands/GetMessageCommand.d.ts +57 -1
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +154 -0
- package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +151 -0
- package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +150 -0
- package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +151 -0
- package/dist-types/commands/GetSmsChannelIdCommand.d.ts +86 -0
- package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +86 -0
- package/dist-types/commands/GetTokenCommand.d.ts +85 -0
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +98 -0
- package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +86 -0
- package/dist-types/commands/HideChannelCommand.d.ts +84 -0
- package/dist-types/commands/JoinChannelCommand.d.ts +151 -0
- package/dist-types/commands/LeaveChannelCommand.d.ts +85 -0
- package/dist-types/commands/ListChannelMembersCommand.d.ts +94 -0
- package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +92 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +53 -6
- package/dist-types/commands/ListMentionsCommand.d.ts +58 -2
- package/dist-types/commands/ListMessagesCommand.d.ts +57 -1
- package/dist-types/commands/MarkReadCommand.d.ts +99 -0
- package/dist-types/commands/MarkUnreadCommand.d.ts +103 -0
- package/dist-types/commands/MoveChannelToSectionCommand.d.ts +101 -0
- package/dist-types/commands/MuteChannelCommand.d.ts +99 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +195 -0
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +261 -0
- package/dist-types/commands/PinChannelCommand.d.ts +87 -0
- package/dist-types/commands/PinMessageCommand.d.ts +57 -1
- package/dist-types/commands/QueryChannelsCommand.d.ts +167 -0
- package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +101 -0
- package/dist-types/commands/RenameSectionCommand.d.ts +98 -0
- package/dist-types/commands/SendGiphyCommand.d.ts +207 -0
- package/dist-types/commands/SendMessageCommand.d.ts +105 -8
- package/dist-types/commands/SendMessageReactionCommand.d.ts +193 -0
- package/dist-types/commands/SendSystemMessageCommand.d.ts +199 -0
- package/dist-types/commands/SendTypingStartCommand.d.ts +84 -0
- package/dist-types/commands/SendTypingStopCommand.d.ts +84 -0
- package/dist-types/commands/ShowChannelCommand.d.ts +84 -0
- package/dist-types/commands/UnmuteChannelCommand.d.ts +98 -0
- package/dist-types/commands/UnpinChannelCommand.d.ts +84 -0
- package/dist-types/commands/UnpinMessageCommand.d.ts +57 -1
- package/dist-types/commands/UpdateChannelCommand.d.ts +190 -0
- package/dist-types/commands/UpdateMessageCommand.d.ts +256 -0
- package/dist-types/commands/UploadFileCommand.d.ts +94 -0
- package/dist-types/commands/index.d.ts +49 -3
- package/dist-types/models/models_0.d.ts +3256 -403
- package/dist-types/protocols/Aws_restJson1.d.ts +429 -15
- package/package.json +1 -1
- package/dist-types/commands/AddReactionCommand.d.ts +0 -137
- package/dist-types/commands/EditMessageCommand.d.ts +0 -151
- package/dist-types/commands/RemoveReactionCommand.d.ts +0 -137
|
@@ -11,18 +11,6 @@ export class ForbiddenException extends __BaseException {
|
|
|
11
11
|
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export class InternalServerError extends __BaseException {
|
|
15
|
-
name = "InternalServerError";
|
|
16
|
-
$fault = "server";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "InternalServerError",
|
|
20
|
-
$fault: "server",
|
|
21
|
-
...opts
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
14
|
export class RateLimitExceededException extends __BaseException {
|
|
27
15
|
name = "RateLimitExceededException";
|
|
28
16
|
$fault = "client";
|
|
@@ -67,9 +55,33 @@ export class ValidationException extends __BaseException {
|
|
|
67
55
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
68
56
|
}
|
|
69
57
|
}
|
|
70
|
-
export
|
|
71
|
-
|
|
72
|
-
|
|
58
|
+
export var ButtonHandler;
|
|
59
|
+
(function (ButtonHandler) {
|
|
60
|
+
ButtonHandler.visit = (value, visitor) => {
|
|
61
|
+
if (value.link !== undefined)
|
|
62
|
+
return visitor.link(value.link);
|
|
63
|
+
if (value.reply !== undefined)
|
|
64
|
+
return visitor.reply(value.reply);
|
|
65
|
+
if (value.action !== undefined)
|
|
66
|
+
return visitor.action(value.action);
|
|
67
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
68
|
+
};
|
|
69
|
+
})(ButtonHandler || (ButtonHandler = {}));
|
|
70
|
+
export const ButtonVariant = {
|
|
71
|
+
CONTAINED: "contained",
|
|
72
|
+
OUTLINED: "outlined",
|
|
73
|
+
};
|
|
74
|
+
export var ActionElement;
|
|
75
|
+
(function (ActionElement) {
|
|
76
|
+
ActionElement.visit = (value, visitor) => {
|
|
77
|
+
if (value.button !== undefined)
|
|
78
|
+
return visitor.button(value.button);
|
|
79
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
80
|
+
};
|
|
81
|
+
})(ActionElement || (ActionElement = {}));
|
|
82
|
+
export const ChannelMemberRole = {
|
|
83
|
+
MEMBER: "member",
|
|
84
|
+
SUPERVISOR: "supervisor",
|
|
73
85
|
};
|
|
74
86
|
export class ChannelNotFoundException extends __BaseException {
|
|
75
87
|
name = "ChannelNotFoundException";
|
|
@@ -83,31 +95,277 @@ export class ChannelNotFoundException extends __BaseException {
|
|
|
83
95
|
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
84
96
|
}
|
|
85
97
|
}
|
|
86
|
-
export class
|
|
87
|
-
name = "
|
|
98
|
+
export class MemberAlreadyExistException extends __BaseException {
|
|
99
|
+
name = "MemberAlreadyExistException";
|
|
88
100
|
$fault = "client";
|
|
89
101
|
constructor(opts) {
|
|
90
102
|
super({
|
|
91
|
-
name: "
|
|
103
|
+
name: "MemberAlreadyExistException",
|
|
92
104
|
$fault: "client",
|
|
93
105
|
...opts
|
|
94
106
|
});
|
|
95
|
-
Object.setPrototypeOf(this,
|
|
107
|
+
Object.setPrototypeOf(this, MemberAlreadyExistException.prototype);
|
|
96
108
|
}
|
|
97
109
|
}
|
|
98
|
-
export
|
|
99
|
-
|
|
100
|
-
|
|
110
|
+
export class StreamServiceException extends __BaseException {
|
|
111
|
+
name = "StreamServiceException";
|
|
112
|
+
$fault = "server";
|
|
113
|
+
constructor(opts) {
|
|
114
|
+
super({
|
|
115
|
+
name: "StreamServiceException",
|
|
116
|
+
$fault: "server",
|
|
117
|
+
...opts
|
|
118
|
+
});
|
|
119
|
+
Object.setPrototypeOf(this, StreamServiceException.prototype);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
export var AssignChannelAssigneeRequest;
|
|
123
|
+
(function (AssignChannelAssigneeRequest) {
|
|
124
|
+
AssignChannelAssigneeRequest.visit = (value, visitor) => {
|
|
125
|
+
if (value.id !== undefined)
|
|
126
|
+
return visitor.id(value.id);
|
|
127
|
+
if (value.email !== undefined)
|
|
128
|
+
return visitor.email(value.email);
|
|
129
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
130
|
+
};
|
|
131
|
+
})(AssignChannelAssigneeRequest || (AssignChannelAssigneeRequest = {}));
|
|
132
|
+
export var AssignChannelServiceRequest;
|
|
133
|
+
(function (AssignChannelServiceRequest) {
|
|
134
|
+
AssignChannelServiceRequest.visit = (value, visitor) => {
|
|
135
|
+
if (value.uri !== undefined)
|
|
136
|
+
return visitor.uri(value.uri);
|
|
137
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
138
|
+
};
|
|
139
|
+
})(AssignChannelServiceRequest || (AssignChannelServiceRequest = {}));
|
|
140
|
+
export const AssignChannelVariant = {
|
|
141
|
+
ADAPTIVE: "ADAPTIVE",
|
|
142
|
+
EVERYBODY: "EVERYBODY",
|
|
143
|
+
SELECTED: "SELECTED",
|
|
144
|
+
SKIP: "SKIP",
|
|
145
|
+
};
|
|
146
|
+
export const ChannelAccess = {
|
|
147
|
+
PRIVATE: "private",
|
|
148
|
+
PUBLIC: "public",
|
|
101
149
|
};
|
|
102
150
|
export const ChannelType = {
|
|
103
151
|
DIRECT: "direct",
|
|
104
|
-
EXTERNAL: "external",
|
|
105
152
|
GROUP: "group",
|
|
106
153
|
};
|
|
154
|
+
export const ChannelContextEventAttendeeStatus = {
|
|
155
|
+
ACCEPTED: "accepted",
|
|
156
|
+
DECLINED: "declined",
|
|
157
|
+
NONE: "none",
|
|
158
|
+
TENTATIVE: "tentative",
|
|
159
|
+
};
|
|
160
|
+
export const ChannelContextSource = {
|
|
161
|
+
KITE: "kite",
|
|
162
|
+
};
|
|
163
|
+
export const ChannelWhatsAppStatus = {
|
|
164
|
+
CHANNEL_CLOSED: "24h_channel_closed",
|
|
165
|
+
};
|
|
166
|
+
export class ChannelAlreadyExistException extends __BaseException {
|
|
167
|
+
name = "ChannelAlreadyExistException";
|
|
168
|
+
$fault = "client";
|
|
169
|
+
constructor(opts) {
|
|
170
|
+
super({
|
|
171
|
+
name: "ChannelAlreadyExistException",
|
|
172
|
+
$fault: "client",
|
|
173
|
+
...opts
|
|
174
|
+
});
|
|
175
|
+
Object.setPrototypeOf(this, ChannelAlreadyExistException.prototype);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
export const ChannelsFilter = {
|
|
179
|
+
ARCHIVED: "archived",
|
|
180
|
+
UNREAD: "unread",
|
|
181
|
+
};
|
|
182
|
+
export const GroupChannelCreationEventType = {
|
|
183
|
+
CONVERSATION_CREATED: "conversation_created",
|
|
184
|
+
CONVERSATION_CREATED_WITH_NAME: "conversation_created_with_name",
|
|
185
|
+
};
|
|
186
|
+
export var Element;
|
|
187
|
+
(function (Element) {
|
|
188
|
+
Element.visit = (value, visitor) => {
|
|
189
|
+
if (value.template !== undefined)
|
|
190
|
+
return visitor.template(value.template);
|
|
191
|
+
if (value.actions !== undefined)
|
|
192
|
+
return visitor.actions(value.actions);
|
|
193
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
194
|
+
};
|
|
195
|
+
})(Element || (Element = {}));
|
|
196
|
+
export const MessageSmsStatus = {
|
|
197
|
+
DELIVERED: "delivered",
|
|
198
|
+
ERROR: "error",
|
|
199
|
+
SENT: "sent",
|
|
200
|
+
TRYING: "trying",
|
|
201
|
+
};
|
|
202
|
+
export const MessageWhatsAppStatus = {
|
|
203
|
+
DELIVERED: "delivered",
|
|
204
|
+
ERROR: "error",
|
|
205
|
+
SENT: "sent",
|
|
206
|
+
TRYING: "trying",
|
|
207
|
+
};
|
|
208
|
+
export const TargetNotEligibleReason = {
|
|
209
|
+
NO_LICENSE: "no_license",
|
|
210
|
+
};
|
|
211
|
+
export class TargetNotEligibleException extends __BaseException {
|
|
212
|
+
name = "TargetNotEligibleException";
|
|
213
|
+
$fault = "client";
|
|
214
|
+
reason;
|
|
215
|
+
constructor(opts) {
|
|
216
|
+
super({
|
|
217
|
+
name: "TargetNotEligibleException",
|
|
218
|
+
$fault: "client",
|
|
219
|
+
...opts
|
|
220
|
+
});
|
|
221
|
+
Object.setPrototypeOf(this, TargetNotEligibleException.prototype);
|
|
222
|
+
this.reason = opts.reason;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
export class TargetNotFoundException extends __BaseException {
|
|
226
|
+
name = "TargetNotFoundException";
|
|
227
|
+
$fault = "client";
|
|
228
|
+
constructor(opts) {
|
|
229
|
+
super({
|
|
230
|
+
name: "TargetNotFoundException",
|
|
231
|
+
$fault: "client",
|
|
232
|
+
...opts
|
|
233
|
+
});
|
|
234
|
+
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
107
237
|
export const SectionType = {
|
|
108
238
|
CUSTOM: "custom",
|
|
109
239
|
SYSTEM: "system",
|
|
110
240
|
};
|
|
241
|
+
export class MemberNotFoundException extends __BaseException {
|
|
242
|
+
name = "MemberNotFoundException";
|
|
243
|
+
$fault = "client";
|
|
244
|
+
constructor(opts) {
|
|
245
|
+
super({
|
|
246
|
+
name: "MemberNotFoundException",
|
|
247
|
+
$fault: "client",
|
|
248
|
+
...opts
|
|
249
|
+
});
|
|
250
|
+
Object.setPrototypeOf(this, MemberNotFoundException.prototype);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
export class MessageNotFoundException extends __BaseException {
|
|
254
|
+
name = "MessageNotFoundException";
|
|
255
|
+
$fault = "client";
|
|
256
|
+
constructor(opts) {
|
|
257
|
+
super({
|
|
258
|
+
name: "MessageNotFoundException",
|
|
259
|
+
$fault: "client",
|
|
260
|
+
...opts
|
|
261
|
+
});
|
|
262
|
+
Object.setPrototypeOf(this, MessageNotFoundException.prototype);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
export const MessageType = {
|
|
266
|
+
REGULAR: "regular",
|
|
267
|
+
SYSTEM: "system",
|
|
268
|
+
};
|
|
269
|
+
export class SectionNotFoundException extends __BaseException {
|
|
270
|
+
name = "SectionNotFoundException";
|
|
271
|
+
$fault = "client";
|
|
272
|
+
constructor(opts) {
|
|
273
|
+
super({
|
|
274
|
+
name: "SectionNotFoundException",
|
|
275
|
+
$fault: "client",
|
|
276
|
+
...opts
|
|
277
|
+
});
|
|
278
|
+
Object.setPrototypeOf(this, SectionNotFoundException.prototype);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
export var DownloadStrategy;
|
|
282
|
+
(function (DownloadStrategy) {
|
|
283
|
+
DownloadStrategy[DownloadStrategy["DEFAULT"] = 0] = "DEFAULT";
|
|
284
|
+
DownloadStrategy[DownloadStrategy["DOWNLOAD"] = 1] = "DOWNLOAD";
|
|
285
|
+
})(DownloadStrategy || (DownloadStrategy = {}));
|
|
286
|
+
export const FileCategory = {
|
|
287
|
+
GENERAL: "channels",
|
|
288
|
+
RECORDING: "recordings",
|
|
289
|
+
WIZY_RECORDING: "wizyconfRecordings",
|
|
290
|
+
};
|
|
291
|
+
export class FileNotFoundException extends __BaseException {
|
|
292
|
+
name = "FileNotFoundException";
|
|
293
|
+
$fault = "client";
|
|
294
|
+
constructor(opts) {
|
|
295
|
+
super({
|
|
296
|
+
name: "FileNotFoundException",
|
|
297
|
+
$fault: "client",
|
|
298
|
+
...opts
|
|
299
|
+
});
|
|
300
|
+
Object.setPrototypeOf(this, FileNotFoundException.prototype);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
export const GroupChannelUnsetOptions = {
|
|
304
|
+
ACCESS: "access",
|
|
305
|
+
ASSIGNEE: "assignee",
|
|
306
|
+
BROADCAST: "broadcast",
|
|
307
|
+
CONTEXT: "context",
|
|
308
|
+
CONTEXT_EVENTS: "contextEvents",
|
|
309
|
+
CONTEXT_PTT: "contextPtt",
|
|
310
|
+
DESCRIPTION: "description",
|
|
311
|
+
KITE_ASSIGN: "kiteAssign",
|
|
312
|
+
MMS: "mms",
|
|
313
|
+
PICTURE: "picture",
|
|
314
|
+
PICTURE_COLOR: "pictureColor",
|
|
315
|
+
SERVICE: "service",
|
|
316
|
+
SERVICE_TITLE: "serviceTitle",
|
|
317
|
+
SMS: "sms",
|
|
318
|
+
SUBJECT: "subject",
|
|
319
|
+
WHATSAPP: "whatsapp",
|
|
320
|
+
WHATSAPP_STATUS: "whatsappStatus",
|
|
321
|
+
};
|
|
111
322
|
export const MentionsFilter = {
|
|
112
323
|
UNREAD: "unread",
|
|
113
324
|
};
|
|
325
|
+
export class MarkUnreadChannelsLimitReachedException extends __BaseException {
|
|
326
|
+
name = "MarkUnreadChannelsLimitReachedException";
|
|
327
|
+
$fault = "client";
|
|
328
|
+
constructor(opts) {
|
|
329
|
+
super({
|
|
330
|
+
name: "MarkUnreadChannelsLimitReachedException",
|
|
331
|
+
$fault: "client",
|
|
332
|
+
...opts
|
|
333
|
+
});
|
|
334
|
+
Object.setPrototypeOf(this, MarkUnreadChannelsLimitReachedException.prototype);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
export const MessageUnsetFields = {
|
|
338
|
+
ATTACHMENTS: "attachments",
|
|
339
|
+
ELEMENTS: "elements",
|
|
340
|
+
FORWARD: "forward",
|
|
341
|
+
MARKDOWN: "markdown",
|
|
342
|
+
MENTIONS: "mentions",
|
|
343
|
+
QUOTE: "quote",
|
|
344
|
+
SMS: "sms",
|
|
345
|
+
SMS_STATUS: "smsStatus",
|
|
346
|
+
TEXT: "text",
|
|
347
|
+
WHATSAPP: "whatsapp",
|
|
348
|
+
WHATSAPP_STATUS: "whatsappStatus",
|
|
349
|
+
};
|
|
350
|
+
export class PinnedChannelsLimitReachedException extends __BaseException {
|
|
351
|
+
name = "PinnedChannelsLimitReachedException";
|
|
352
|
+
$fault = "client";
|
|
353
|
+
constructor(opts) {
|
|
354
|
+
super({
|
|
355
|
+
name: "PinnedChannelsLimitReachedException",
|
|
356
|
+
$fault: "client",
|
|
357
|
+
...opts
|
|
358
|
+
});
|
|
359
|
+
Object.setPrototypeOf(this, PinnedChannelsLimitReachedException.prototype);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
export var SystemMessage;
|
|
363
|
+
(function (SystemMessage) {
|
|
364
|
+
SystemMessage.visit = (value, visitor) => {
|
|
365
|
+
if (value.whatsAppClosed !== undefined)
|
|
366
|
+
return visitor.whatsAppClosed(value.whatsAppClosed);
|
|
367
|
+
if (value.multipleMembersJoined !== undefined)
|
|
368
|
+
return visitor.multipleMembersJoined(value.multipleMembersJoined);
|
|
369
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
370
|
+
};
|
|
371
|
+
})(SystemMessage || (SystemMessage = {}));
|