@wildix/stream-client 0.0.15 → 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/StreamService.js +3 -7
- package/dist-cjs/StreamServiceClient.js +34 -27
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -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/CreateKiteChannelCommand.js +10 -11
- package/dist-cjs/commands/CreateSectionCommand.js +10 -11
- package/dist-cjs/commands/DeleteChannelCommand.js +10 -11
- package/dist-cjs/commands/DeleteChannelMemberCommand.js +10 -11
- package/dist-cjs/commands/DeleteMessageCommand.js +10 -11
- package/dist-cjs/commands/DeleteMessageReactionCommand.js +10 -11
- package/dist-cjs/commands/DeleteSectionCommand.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/GetInboxCommand.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/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/ListMentionsCommand.js +10 -11
- package/dist-cjs/commands/ListMessagesCommand.js +10 -11
- package/dist-cjs/commands/MarkReadCommand.js +10 -11
- package/dist-cjs/commands/MarkUnreadCommand.js +10 -11
- package/dist-cjs/commands/MoveChannelToSectionCommand.js +10 -11
- package/dist-cjs/commands/MuteChannelCommand.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/RemoveChannelFromSectionCommand.js +10 -11
- package/dist-cjs/commands/RenameSectionCommand.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/UnmuteChannelCommand.js +10 -11
- package/dist-cjs/commands/UnpinChannelCommand.js +10 -11
- package/dist-cjs/commands/UnpinMessageCommand.js +10 -11
- package/dist-cjs/commands/UpdateChannelCommand.js +10 -11
- package/dist-cjs/commands/UpdateMessageCommand.js +10 -11
- package/dist-cjs/commands/UploadFileCommand.js +10 -11
- package/dist-cjs/commands/index.js +0 -2
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/index.js +4 -1
- package/dist-cjs/models/StreamServiceServiceException.js +3 -3
- package/dist-cjs/models/enums.js +114 -0
- package/dist-cjs/models/errors.js +209 -0
- package/dist-cjs/models/models_0.js +0 -387
- 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 +1584 -0
- package/dist-es/StreamService.js +6 -10
- package/dist-es/StreamServiceClient.js +30 -23
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +52 -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/CreateKiteChannelCommand.js +9 -10
- package/dist-es/commands/CreateSectionCommand.js +9 -10
- package/dist-es/commands/DeleteChannelCommand.js +9 -10
- package/dist-es/commands/DeleteChannelMemberCommand.js +9 -10
- package/dist-es/commands/DeleteMessageCommand.js +9 -10
- package/dist-es/commands/DeleteMessageReactionCommand.js +9 -10
- package/dist-es/commands/DeleteSectionCommand.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/GetInboxCommand.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/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/ListMentionsCommand.js +9 -10
- package/dist-es/commands/ListMessagesCommand.js +9 -10
- package/dist-es/commands/MarkReadCommand.js +9 -10
- package/dist-es/commands/MarkUnreadCommand.js +9 -10
- package/dist-es/commands/MoveChannelToSectionCommand.js +9 -10
- package/dist-es/commands/MuteChannelCommand.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/RemoveChannelFromSectionCommand.js +9 -10
- package/dist-es/commands/RenameSectionCommand.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/UnmuteChannelCommand.js +9 -10
- package/dist-es/commands/UnpinChannelCommand.js +9 -10
- package/dist-es/commands/UnpinMessageCommand.js +9 -10
- package/dist-es/commands/UpdateChannelCommand.js +9 -10
- package/dist-es/commands/UpdateMessageCommand.js +9 -10
- package/dist-es/commands/UploadFileCommand.js +9 -10
- package/dist-es/commands/index.js +0 -2
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/index.js +4 -1
- package/dist-es/models/StreamServiceServiceException.js +1 -1
- package/dist-es/models/enums.js +111 -0
- package/dist-es/models/errors.js +191 -0
- package/dist-es/models/models_0.js +1 -371
- 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 +1577 -0
- package/dist-types/StreamService.d.ts +59 -75
- package/dist-types/StreamServiceClient.d.ts +90 -76
- 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 +11 -7
- package/dist-types/commands/AddChannelMembersCommand.d.ts +11 -7
- package/dist-types/commands/AssignChannelCommand.d.ts +11 -7
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +11 -7
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +11 -7
- package/dist-types/commands/CreateSectionCommand.d.ts +11 -7
- package/dist-types/commands/DeleteChannelCommand.d.ts +11 -7
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +11 -7
- package/dist-types/commands/DeleteMessageCommand.d.ts +11 -7
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +11 -7
- package/dist-types/commands/DeleteSectionCommand.d.ts +11 -7
- package/dist-types/commands/GetChannelCommand.d.ts +11 -7
- package/dist-types/commands/GetChannelMemberCommand.d.ts +11 -7
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +11 -7
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +11 -7
- package/dist-types/commands/GetInboxCommand.d.ts +11 -7
- package/dist-types/commands/GetMessageCommand.d.ts +11 -7
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +11 -7
- package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +11 -7
- package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +11 -7
- package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +11 -7
- package/dist-types/commands/GetSmsChannelIdCommand.d.ts +11 -7
- package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +11 -7
- package/dist-types/commands/GetTokenCommand.d.ts +11 -7
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +11 -7
- package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +11 -7
- package/dist-types/commands/HideChannelCommand.d.ts +11 -7
- package/dist-types/commands/JoinChannelCommand.d.ts +11 -7
- package/dist-types/commands/LeaveChannelCommand.d.ts +11 -7
- package/dist-types/commands/ListChannelMembersCommand.d.ts +11 -7
- package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +11 -7
- package/dist-types/commands/ListChannelsCommand.d.ts +11 -7
- package/dist-types/commands/ListMentionsCommand.d.ts +11 -7
- package/dist-types/commands/ListMessagesCommand.d.ts +11 -7
- package/dist-types/commands/MarkReadCommand.d.ts +11 -7
- package/dist-types/commands/MarkUnreadCommand.d.ts +11 -7
- package/dist-types/commands/MoveChannelToSectionCommand.d.ts +11 -7
- package/dist-types/commands/MuteChannelCommand.d.ts +11 -7
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +11 -7
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +11 -7
- package/dist-types/commands/PinChannelCommand.d.ts +11 -7
- package/dist-types/commands/PinMessageCommand.d.ts +11 -7
- package/dist-types/commands/QueryChannelsCommand.d.ts +11 -7
- package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +11 -7
- package/dist-types/commands/RenameSectionCommand.d.ts +11 -7
- package/dist-types/commands/SendGiphyCommand.d.ts +11 -7
- package/dist-types/commands/SendMessageCommand.d.ts +11 -7
- package/dist-types/commands/SendMessageReactionCommand.d.ts +11 -7
- package/dist-types/commands/SendSystemMessageCommand.d.ts +11 -7
- package/dist-types/commands/SendTypingStartCommand.d.ts +11 -7
- package/dist-types/commands/SendTypingStopCommand.d.ts +11 -7
- package/dist-types/commands/ShowChannelCommand.d.ts +11 -7
- package/dist-types/commands/UnmuteChannelCommand.d.ts +11 -7
- package/dist-types/commands/UnpinChannelCommand.d.ts +11 -7
- package/dist-types/commands/UnpinMessageCommand.d.ts +11 -7
- package/dist-types/commands/UpdateChannelCommand.d.ts +11 -7
- package/dist-types/commands/UpdateMessageCommand.d.ts +11 -7
- package/dist-types/commands/UploadFileCommand.d.ts +11 -7
- package/dist-types/commands/index.d.ts +0 -2
- package/dist-types/endpoint/EndpointParameters.d.ts +48 -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 +5 -1
- package/dist-types/models/StreamServiceServiceException.d.ts +1 -1
- package/dist-types/models/enums.d.ts +286 -0
- package/dist-types/models/errors.d.ts +189 -0
- package/dist-types/models/models_0.d.ts +69 -713
- package/dist-types/runtimeConfig.browser.d.ts +37 -18
- package/dist-types/runtimeConfig.d.ts +36 -17
- package/dist-types/runtimeConfig.native.d.ts +38 -19
- 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 +243 -0
- package/package.json +14 -40
- package/dist-cjs/commands/SearchChannelsCommand.js +0 -21
- package/dist-cjs/commands/SearchMessagesCommand.js +0 -21
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -2474
- package/dist-es/commands/SearchChannelsCommand.js +0 -17
- package/dist-es/commands/SearchMessagesCommand.js +0 -17
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -2349
- package/dist-types/commands/SearchChannelsCommand.d.ts +0 -163
- package/dist-types/commands/SearchMessagesCommand.d.ts +0 -211
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -542
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
|
+
const a = "stringEquals", b = { "ref": "endpoint" }, c = { "ref": "env" };
|
|
3
|
+
const _data = {
|
|
4
|
+
conditions: [
|
|
5
|
+
["isSet", [b]],
|
|
6
|
+
[a, [c, "stable"]],
|
|
7
|
+
[a, [c, "stage"]]
|
|
8
|
+
],
|
|
9
|
+
results: [
|
|
10
|
+
[-1],
|
|
11
|
+
[b, {}],
|
|
12
|
+
["https://{serviceRegion}.stream-stable.wildix.com", {}],
|
|
13
|
+
["https://{serviceRegion}.stream-stage.wildix.com", {}],
|
|
14
|
+
["https://{serviceRegion}.stream.wildix.com", {}]
|
|
15
|
+
]
|
|
16
|
+
};
|
|
17
|
+
const root = 2;
|
|
18
|
+
const r = 100_000_000;
|
|
19
|
+
const nodes = new Int32Array([
|
|
20
|
+
-1, 1, -1,
|
|
21
|
+
0, r + 1, 3,
|
|
22
|
+
1, r + 2, 4,
|
|
23
|
+
2, r + 3, r + 4,
|
|
24
|
+
]);
|
|
25
|
+
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
|
|
2
|
+
import { bdd } from "./bdd";
|
|
3
|
+
const cache = new EndpointCache({
|
|
4
|
+
size: 50,
|
|
5
|
+
params: ["endpoint", "env", "serviceRegion"],
|
|
6
|
+
});
|
|
7
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
8
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
9
|
+
endpointParams: endpointParams,
|
|
10
|
+
logger: context.logger,
|
|
11
|
+
}));
|
|
12
|
+
};
|
package/dist-es/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from "./StreamServiceClient";
|
|
2
2
|
export * from "./StreamService";
|
|
3
3
|
export * from "./commands";
|
|
4
|
-
export * from "./
|
|
4
|
+
export * from "./schemas/schemas_0";
|
|
5
|
+
export * from "./models/enums";
|
|
6
|
+
export * from "./models/errors";
|
|
7
|
+
export * from "./models/models_0";
|
|
5
8
|
export { StreamServiceServiceException } from "./models/StreamServiceServiceException";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceException as __ServiceException, } from "@smithy/
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/core/client";
|
|
2
2
|
export { __ServiceException };
|
|
3
3
|
export class StreamServiceServiceException extends __ServiceException {
|
|
4
4
|
constructor(options) {
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export const ButtonVariant = {
|
|
2
|
+
CONTAINED: "contained",
|
|
3
|
+
OUTLINED: "outlined",
|
|
4
|
+
};
|
|
5
|
+
export const ChannelMemberRole = {
|
|
6
|
+
MEMBER: "member",
|
|
7
|
+
SUPERVISOR: "supervisor",
|
|
8
|
+
};
|
|
9
|
+
export const AssignChannelVariant = {
|
|
10
|
+
ADAPTIVE: "ADAPTIVE",
|
|
11
|
+
EVERYBODY: "EVERYBODY",
|
|
12
|
+
SELECTED: "SELECTED",
|
|
13
|
+
SKIP: "SKIP",
|
|
14
|
+
};
|
|
15
|
+
export const ChannelAccess = {
|
|
16
|
+
PRIVATE: "private",
|
|
17
|
+
PUBLIC: "public",
|
|
18
|
+
};
|
|
19
|
+
export const ChannelType = {
|
|
20
|
+
DIRECT: "direct",
|
|
21
|
+
GROUP: "group",
|
|
22
|
+
};
|
|
23
|
+
export const ChannelContextEventAttendeeStatus = {
|
|
24
|
+
ACCEPTED: "accepted",
|
|
25
|
+
DECLINED: "declined",
|
|
26
|
+
NONE: "none",
|
|
27
|
+
TENTATIVE: "tentative",
|
|
28
|
+
};
|
|
29
|
+
export const ChannelContextSource = {
|
|
30
|
+
KITE: "kite",
|
|
31
|
+
};
|
|
32
|
+
export const MessageType = {
|
|
33
|
+
DELETED: "deleted",
|
|
34
|
+
REGULAR: "regular",
|
|
35
|
+
SYSTEM: "system",
|
|
36
|
+
};
|
|
37
|
+
export const ChannelWhatsAppStatus = {
|
|
38
|
+
CHANNEL_CLOSED: "24h_channel_closed",
|
|
39
|
+
};
|
|
40
|
+
export const ChannelsFilter = {
|
|
41
|
+
ARCHIVED: "archived",
|
|
42
|
+
UNREAD: "unread",
|
|
43
|
+
};
|
|
44
|
+
export const GroupChannelCreationEventType = {
|
|
45
|
+
CONVERSATION_CREATED: "conversation_created",
|
|
46
|
+
CONVERSATION_CREATED_WITH_NAME: "conversation_created_with_name",
|
|
47
|
+
};
|
|
48
|
+
export const MessageSmsStatus = {
|
|
49
|
+
DELIVERED: "delivered",
|
|
50
|
+
ERROR: "error",
|
|
51
|
+
SENT: "sent",
|
|
52
|
+
TRYING: "trying",
|
|
53
|
+
};
|
|
54
|
+
export const MessageWhatsAppStatus = {
|
|
55
|
+
DELIVERED: "delivered",
|
|
56
|
+
ERROR: "error",
|
|
57
|
+
SENT: "sent",
|
|
58
|
+
TRYING: "trying",
|
|
59
|
+
};
|
|
60
|
+
export const TargetNotEligibleReason = {
|
|
61
|
+
NO_LICENSE: "no_license",
|
|
62
|
+
};
|
|
63
|
+
export const SectionType = {
|
|
64
|
+
CUSTOM: "custom",
|
|
65
|
+
SYSTEM: "system",
|
|
66
|
+
};
|
|
67
|
+
export var DownloadStrategy;
|
|
68
|
+
(function (DownloadStrategy) {
|
|
69
|
+
DownloadStrategy[DownloadStrategy["DEFAULT"] = 0] = "DEFAULT";
|
|
70
|
+
DownloadStrategy[DownloadStrategy["DOWNLOAD"] = 1] = "DOWNLOAD";
|
|
71
|
+
})(DownloadStrategy || (DownloadStrategy = {}));
|
|
72
|
+
export const FileCategory = {
|
|
73
|
+
GENERAL: "channels",
|
|
74
|
+
RECORDING: "recordings",
|
|
75
|
+
WIZY_RECORDING: "wizyconfRecordings",
|
|
76
|
+
};
|
|
77
|
+
export const GroupChannelUnsetOptions = {
|
|
78
|
+
ACCESS: "access",
|
|
79
|
+
ASSIGNEE: "assignee",
|
|
80
|
+
BROADCAST: "broadcast",
|
|
81
|
+
CONTEXT: "context",
|
|
82
|
+
CONTEXT_EVENTS: "contextEvents",
|
|
83
|
+
CONTEXT_PTT: "contextPtt",
|
|
84
|
+
DESCRIPTION: "description",
|
|
85
|
+
KITE_ASSIGN: "kiteAssign",
|
|
86
|
+
MMS: "mms",
|
|
87
|
+
PICTURE: "picture",
|
|
88
|
+
PICTURE_COLOR: "pictureColor",
|
|
89
|
+
SERVICE: "service",
|
|
90
|
+
SERVICE_TITLE: "serviceTitle",
|
|
91
|
+
SMS: "sms",
|
|
92
|
+
SUBJECT: "subject",
|
|
93
|
+
WHATSAPP: "whatsapp",
|
|
94
|
+
WHATSAPP_STATUS: "whatsappStatus",
|
|
95
|
+
};
|
|
96
|
+
export const MentionsFilter = {
|
|
97
|
+
UNREAD: "unread",
|
|
98
|
+
};
|
|
99
|
+
export const MessageUnsetFields = {
|
|
100
|
+
ATTACHMENTS: "attachments",
|
|
101
|
+
ELEMENTS: "elements",
|
|
102
|
+
FORWARD: "forward",
|
|
103
|
+
MARKDOWN: "markdown",
|
|
104
|
+
MENTIONS: "mentions",
|
|
105
|
+
QUOTE: "quote",
|
|
106
|
+
SMS: "sms",
|
|
107
|
+
SMS_STATUS: "smsStatus",
|
|
108
|
+
TEXT: "text",
|
|
109
|
+
WHATSAPP: "whatsapp",
|
|
110
|
+
WHATSAPP_STATUS: "whatsappStatus",
|
|
111
|
+
};
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { StreamServiceServiceException as __BaseException } from "./StreamServiceServiceException";
|
|
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 UnauthorizedException extends __BaseException {
|
|
35
|
+
name = "UnauthorizedException";
|
|
36
|
+
$fault = "client";
|
|
37
|
+
constructor(opts) {
|
|
38
|
+
super({
|
|
39
|
+
name: "UnauthorizedException",
|
|
40
|
+
$fault: "client",
|
|
41
|
+
...opts,
|
|
42
|
+
});
|
|
43
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export class ValidationException extends __BaseException {
|
|
47
|
+
name = "ValidationException";
|
|
48
|
+
$fault = "client";
|
|
49
|
+
constructor(opts) {
|
|
50
|
+
super({
|
|
51
|
+
name: "ValidationException",
|
|
52
|
+
$fault: "client",
|
|
53
|
+
...opts,
|
|
54
|
+
});
|
|
55
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export class ChannelNotFoundException extends __BaseException {
|
|
59
|
+
name = "ChannelNotFoundException";
|
|
60
|
+
$fault = "client";
|
|
61
|
+
constructor(opts) {
|
|
62
|
+
super({
|
|
63
|
+
name: "ChannelNotFoundException",
|
|
64
|
+
$fault: "client",
|
|
65
|
+
...opts,
|
|
66
|
+
});
|
|
67
|
+
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export class MemberAlreadyExistException extends __BaseException {
|
|
71
|
+
name = "MemberAlreadyExistException";
|
|
72
|
+
$fault = "client";
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "MemberAlreadyExistException",
|
|
76
|
+
$fault: "client",
|
|
77
|
+
...opts,
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, MemberAlreadyExistException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export class StreamServiceException extends __BaseException {
|
|
83
|
+
name = "StreamServiceException";
|
|
84
|
+
$fault = "server";
|
|
85
|
+
constructor(opts) {
|
|
86
|
+
super({
|
|
87
|
+
name: "StreamServiceException",
|
|
88
|
+
$fault: "server",
|
|
89
|
+
...opts,
|
|
90
|
+
});
|
|
91
|
+
Object.setPrototypeOf(this, StreamServiceException.prototype);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export class ChannelAlreadyExistException extends __BaseException {
|
|
95
|
+
name = "ChannelAlreadyExistException";
|
|
96
|
+
$fault = "client";
|
|
97
|
+
constructor(opts) {
|
|
98
|
+
super({
|
|
99
|
+
name: "ChannelAlreadyExistException",
|
|
100
|
+
$fault: "client",
|
|
101
|
+
...opts,
|
|
102
|
+
});
|
|
103
|
+
Object.setPrototypeOf(this, ChannelAlreadyExistException.prototype);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export class TargetNotEligibleException extends __BaseException {
|
|
107
|
+
name = "TargetNotEligibleException";
|
|
108
|
+
$fault = "client";
|
|
109
|
+
reason;
|
|
110
|
+
constructor(opts) {
|
|
111
|
+
super({
|
|
112
|
+
name: "TargetNotEligibleException",
|
|
113
|
+
$fault: "client",
|
|
114
|
+
...opts,
|
|
115
|
+
});
|
|
116
|
+
Object.setPrototypeOf(this, TargetNotEligibleException.prototype);
|
|
117
|
+
this.reason = opts.reason;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export class TargetNotFoundException extends __BaseException {
|
|
121
|
+
name = "TargetNotFoundException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "TargetNotFoundException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
export class MemberNotFoundException extends __BaseException {
|
|
133
|
+
name = "MemberNotFoundException";
|
|
134
|
+
$fault = "client";
|
|
135
|
+
constructor(opts) {
|
|
136
|
+
super({
|
|
137
|
+
name: "MemberNotFoundException",
|
|
138
|
+
$fault: "client",
|
|
139
|
+
...opts,
|
|
140
|
+
});
|
|
141
|
+
Object.setPrototypeOf(this, MemberNotFoundException.prototype);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
export class MessageNotFoundException extends __BaseException {
|
|
145
|
+
name = "MessageNotFoundException";
|
|
146
|
+
$fault = "client";
|
|
147
|
+
constructor(opts) {
|
|
148
|
+
super({
|
|
149
|
+
name: "MessageNotFoundException",
|
|
150
|
+
$fault: "client",
|
|
151
|
+
...opts,
|
|
152
|
+
});
|
|
153
|
+
Object.setPrototypeOf(this, MessageNotFoundException.prototype);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
export class SectionNotFoundException extends __BaseException {
|
|
157
|
+
name = "SectionNotFoundException";
|
|
158
|
+
$fault = "client";
|
|
159
|
+
constructor(opts) {
|
|
160
|
+
super({
|
|
161
|
+
name: "SectionNotFoundException",
|
|
162
|
+
$fault: "client",
|
|
163
|
+
...opts,
|
|
164
|
+
});
|
|
165
|
+
Object.setPrototypeOf(this, SectionNotFoundException.prototype);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
export class FileNotFoundException extends __BaseException {
|
|
169
|
+
name = "FileNotFoundException";
|
|
170
|
+
$fault = "client";
|
|
171
|
+
constructor(opts) {
|
|
172
|
+
super({
|
|
173
|
+
name: "FileNotFoundException",
|
|
174
|
+
$fault: "client",
|
|
175
|
+
...opts,
|
|
176
|
+
});
|
|
177
|
+
Object.setPrototypeOf(this, FileNotFoundException.prototype);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
export class MarkUnreadChannelsLimitReachedException extends __BaseException {
|
|
181
|
+
name = "MarkUnreadChannelsLimitReachedException";
|
|
182
|
+
$fault = "client";
|
|
183
|
+
constructor(opts) {
|
|
184
|
+
super({
|
|
185
|
+
name: "MarkUnreadChannelsLimitReachedException",
|
|
186
|
+
$fault: "client",
|
|
187
|
+
...opts,
|
|
188
|
+
});
|
|
189
|
+
Object.setPrototypeOf(this, MarkUnreadChannelsLimitReachedException.prototype);
|
|
190
|
+
}
|
|
191
|
+
}
|