@wildix/stream-client 0.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 +35 -0
- package/dist-cjs/StreamServiceClient.js +42 -0
- package/dist-cjs/commands/AddReactionCommand.js +21 -0
- package/dist-cjs/commands/DeleteMessageCommand.js +21 -0
- package/dist-cjs/commands/EditMessageCommand.js +21 -0
- package/dist-cjs/commands/GetInboxCommand.js +21 -0
- package/dist-cjs/commands/GetMessageCommand.js +21 -0
- package/dist-cjs/commands/ListChannelsCommand.js +21 -0
- package/dist-cjs/commands/ListMentionsCommand.js +21 -0
- package/dist-cjs/commands/ListMessagesCommand.js +21 -0
- package/dist-cjs/commands/PinMessageCommand.js +21 -0
- package/dist-cjs/commands/RemoveReactionCommand.js +21 -0
- package/dist-cjs/commands/SendMessageCommand.js +21 -0
- package/dist-cjs/commands/UnpinMessageCommand.js +21 -0
- package/dist-cjs/commands/index.js +15 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/StreamServiceServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +123 -0
- package/dist-cjs/protocols/Aws_restJson1.js +579 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +37 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-cjs/runtimeExtensions.js +11 -0
- package/dist-es/StreamService.js +31 -0
- package/dist-es/StreamServiceClient.js +38 -0
- package/dist-es/commands/AddReactionCommand.js +17 -0
- package/dist-es/commands/DeleteMessageCommand.js +17 -0
- package/dist-es/commands/EditMessageCommand.js +17 -0
- package/dist-es/commands/GetInboxCommand.js +17 -0
- package/dist-es/commands/GetMessageCommand.js +17 -0
- package/dist-es/commands/ListChannelsCommand.js +17 -0
- package/dist-es/commands/ListMentionsCommand.js +17 -0
- package/dist-es/commands/ListMessagesCommand.js +17 -0
- package/dist-es/commands/PinMessageCommand.js +17 -0
- package/dist-es/commands/RemoveReactionCommand.js +17 -0
- package/dist-es/commands/SendMessageCommand.js +17 -0
- package/dist-es/commands/UnpinMessageCommand.js +17 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/StreamServiceServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +113 -0
- package/dist-es/protocols/Aws_restJson1.js +552 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +32 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-es/runtimeExtensions.js +7 -0
- package/dist-types/StreamService.d.ts +96 -0
- package/dist-types/StreamServiceClient.d.ts +157 -0
- package/dist-types/commands/AddReactionCommand.d.ts +137 -0
- package/dist-types/commands/DeleteMessageCommand.d.ts +87 -0
- package/dist-types/commands/EditMessageCommand.d.ts +151 -0
- package/dist-types/commands/GetInboxCommand.d.ts +129 -0
- package/dist-types/commands/GetMessageCommand.d.ts +136 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +119 -0
- package/dist-types/commands/ListMentionsCommand.d.ts +153 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +137 -0
- package/dist-types/commands/PinMessageCommand.d.ts +136 -0
- package/dist-types/commands/RemoveReactionCommand.d.ts +137 -0
- package/dist-types/commands/SendMessageCommand.d.ts +160 -0
- package/dist-types/commands/UnpinMessageCommand.d.ts +136 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/extensionConfiguration.d.ts +7 -0
- package/dist-types/index.d.ts +7 -0
- package/dist-types/models/StreamServiceServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1113 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +110 -0
- package/dist-types/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/runtimeConfig.d.ts +38 -0
- package/dist-types/runtimeConfig.native.d.ts +37 -0
- package/dist-types/runtimeConfig.shared.d.ts +15 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +83 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
+
const extensionConfiguration = Object.assign((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig));
|
|
8
|
+
extensions.forEach(extension => extension.configure(extensionConfiguration));
|
|
9
|
+
return Object.assign(runtimeConfig, (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration));
|
|
10
|
+
};
|
|
11
|
+
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { StreamServiceClient, } from "./StreamServiceClient";
|
|
2
|
+
import { AddReactionCommand, } from "./commands/AddReactionCommand";
|
|
3
|
+
import { DeleteMessageCommand, } from "./commands/DeleteMessageCommand";
|
|
4
|
+
import { EditMessageCommand, } from "./commands/EditMessageCommand";
|
|
5
|
+
import { GetInboxCommand, } from "./commands/GetInboxCommand";
|
|
6
|
+
import { GetMessageCommand, } from "./commands/GetMessageCommand";
|
|
7
|
+
import { ListChannelsCommand, } from "./commands/ListChannelsCommand";
|
|
8
|
+
import { ListMentionsCommand, } from "./commands/ListMentionsCommand";
|
|
9
|
+
import { ListMessagesCommand, } from "./commands/ListMessagesCommand";
|
|
10
|
+
import { PinMessageCommand, } from "./commands/PinMessageCommand";
|
|
11
|
+
import { RemoveReactionCommand, } from "./commands/RemoveReactionCommand";
|
|
12
|
+
import { SendMessageCommand, } from "./commands/SendMessageCommand";
|
|
13
|
+
import { UnpinMessageCommand, } from "./commands/UnpinMessageCommand";
|
|
14
|
+
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
15
|
+
const commands = {
|
|
16
|
+
AddReactionCommand,
|
|
17
|
+
DeleteMessageCommand,
|
|
18
|
+
EditMessageCommand,
|
|
19
|
+
GetInboxCommand,
|
|
20
|
+
GetMessageCommand,
|
|
21
|
+
ListChannelsCommand,
|
|
22
|
+
ListMentionsCommand,
|
|
23
|
+
ListMessagesCommand,
|
|
24
|
+
PinMessageCommand,
|
|
25
|
+
RemoveReactionCommand,
|
|
26
|
+
SendMessageCommand,
|
|
27
|
+
UnpinMessageCommand,
|
|
28
|
+
};
|
|
29
|
+
export class StreamService extends StreamServiceClient {
|
|
30
|
+
}
|
|
31
|
+
createAggregatedClient(commands, StreamService);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
2
|
+
import { resolveRuntimeExtensions, } from "./runtimeExtensions";
|
|
3
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
4
|
+
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
5
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
6
|
+
import { Client as __Client, } from "@smithy/smithy-client";
|
|
7
|
+
import { authorizationMiddleware } from '@wildix/smithy-utils';
|
|
8
|
+
export { __Client };
|
|
9
|
+
export class StreamServiceClient extends __Client {
|
|
10
|
+
config;
|
|
11
|
+
constructor(...[configuration]) {
|
|
12
|
+
let _config_0 = __getRuntimeConfig(configuration || {});
|
|
13
|
+
super(_config_0);
|
|
14
|
+
this.initConfig = _config_0;
|
|
15
|
+
let _config_1 = resolveUserAgentConfig(_config_0);
|
|
16
|
+
let _config_2 = resolveRetryConfig(_config_1);
|
|
17
|
+
let _config_3 = resolveRuntimeExtensions(_config_2, configuration?.extensions || []);
|
|
18
|
+
const serviceRegion = (configuration.serviceRegion && ['eu-1', 'us-1'].includes(configuration.serviceRegion)) ? configuration.serviceRegion : 'eu-1';
|
|
19
|
+
const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `${serviceRegion}.stream-${configuration.env}.wildix.com` : `${serviceRegion}.stream.wildix.com`;
|
|
20
|
+
const endpoint = configuration.endpoint || (() => {
|
|
21
|
+
return {
|
|
22
|
+
hostname,
|
|
23
|
+
protocol: "https",
|
|
24
|
+
port: '443',
|
|
25
|
+
path: ''
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
const config = { ..._config_3, endpoint };
|
|
29
|
+
this.config = config;
|
|
30
|
+
this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
31
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
34
|
+
}
|
|
35
|
+
destroy() {
|
|
36
|
+
super.destroy();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_AddReactionCommand, se_AddReactionCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class AddReactionCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("StreamService", "AddReaction", {})
|
|
12
|
+
.n("StreamServiceClient", "AddReactionCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_AddReactionCommand)
|
|
15
|
+
.de(de_AddReactionCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_DeleteMessageCommand, se_DeleteMessageCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class DeleteMessageCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("StreamService", "DeleteMessage", {})
|
|
12
|
+
.n("StreamServiceClient", "DeleteMessageCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_DeleteMessageCommand)
|
|
15
|
+
.de(de_DeleteMessageCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_EditMessageCommand, se_EditMessageCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class EditMessageCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("StreamService", "EditMessage", {})
|
|
12
|
+
.n("StreamServiceClient", "EditMessageCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_EditMessageCommand)
|
|
15
|
+
.de(de_EditMessageCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetInboxCommand, se_GetInboxCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class GetInboxCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("StreamService", "GetInbox", {})
|
|
12
|
+
.n("StreamServiceClient", "GetInboxCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetInboxCommand)
|
|
15
|
+
.de(de_GetInboxCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetMessageCommand, se_GetMessageCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class GetMessageCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("StreamService", "GetMessage", {})
|
|
12
|
+
.n("StreamServiceClient", "GetMessageCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetMessageCommand)
|
|
15
|
+
.de(de_GetMessageCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListChannelsCommand, se_ListChannelsCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class ListChannelsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("StreamService", "ListChannels", {})
|
|
12
|
+
.n("StreamServiceClient", "ListChannelsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListChannelsCommand)
|
|
15
|
+
.de(de_ListChannelsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListMentionsCommand, se_ListMentionsCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class ListMentionsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("StreamService", "ListMentions", {})
|
|
12
|
+
.n("StreamServiceClient", "ListMentionsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListMentionsCommand)
|
|
15
|
+
.de(de_ListMentionsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListMessagesCommand, se_ListMessagesCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class ListMessagesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("StreamService", "ListMessages", {})
|
|
12
|
+
.n("StreamServiceClient", "ListMessagesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListMessagesCommand)
|
|
15
|
+
.de(de_ListMessagesCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_PinMessageCommand, se_PinMessageCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class PinMessageCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("StreamService", "PinMessage", {})
|
|
12
|
+
.n("StreamServiceClient", "PinMessageCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_PinMessageCommand)
|
|
15
|
+
.de(de_PinMessageCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_RemoveReactionCommand, se_RemoveReactionCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class RemoveReactionCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("StreamService", "RemoveReaction", {})
|
|
12
|
+
.n("StreamServiceClient", "RemoveReactionCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_RemoveReactionCommand)
|
|
15
|
+
.de(de_RemoveReactionCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_SendMessageCommand, se_SendMessageCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class SendMessageCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("StreamService", "SendMessage", {})
|
|
12
|
+
.n("StreamServiceClient", "SendMessageCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SendMessageCommand)
|
|
15
|
+
.de(de_SendMessageCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_UnpinMessageCommand, se_UnpinMessageCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class UnpinMessageCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("StreamService", "UnpinMessage", {})
|
|
12
|
+
.n("StreamServiceClient", "UnpinMessageCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_UnpinMessageCommand)
|
|
15
|
+
.de(de_UnpinMessageCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./AddReactionCommand";
|
|
2
|
+
export * from "./DeleteMessageCommand";
|
|
3
|
+
export * from "./EditMessageCommand";
|
|
4
|
+
export * from "./GetInboxCommand";
|
|
5
|
+
export * from "./GetMessageCommand";
|
|
6
|
+
export * from "./ListChannelsCommand";
|
|
7
|
+
export * from "./ListMentionsCommand";
|
|
8
|
+
export * from "./ListMessagesCommand";
|
|
9
|
+
export * from "./PinMessageCommand";
|
|
10
|
+
export * from "./RemoveReactionCommand";
|
|
11
|
+
export * from "./SendMessageCommand";
|
|
12
|
+
export * from "./UnpinMessageCommand";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class StreamServiceServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, StreamServiceServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,113 @@
|
|
|
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 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
|
+
export class RateLimitExceededException extends __BaseException {
|
|
27
|
+
name = "RateLimitExceededException";
|
|
28
|
+
$fault = "client";
|
|
29
|
+
rateLimit;
|
|
30
|
+
rateLimitRemaining;
|
|
31
|
+
rateLimitReset;
|
|
32
|
+
retryAfter;
|
|
33
|
+
constructor(opts) {
|
|
34
|
+
super({
|
|
35
|
+
name: "RateLimitExceededException",
|
|
36
|
+
$fault: "client",
|
|
37
|
+
...opts
|
|
38
|
+
});
|
|
39
|
+
Object.setPrototypeOf(this, RateLimitExceededException.prototype);
|
|
40
|
+
this.rateLimit = opts.rateLimit;
|
|
41
|
+
this.rateLimitRemaining = opts.rateLimitRemaining;
|
|
42
|
+
this.rateLimitReset = opts.rateLimitReset;
|
|
43
|
+
this.retryAfter = opts.retryAfter;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export class UnauthorizedException extends __BaseException {
|
|
47
|
+
name = "UnauthorizedException";
|
|
48
|
+
$fault = "client";
|
|
49
|
+
constructor(opts) {
|
|
50
|
+
super({
|
|
51
|
+
name: "UnauthorizedException",
|
|
52
|
+
$fault: "client",
|
|
53
|
+
...opts
|
|
54
|
+
});
|
|
55
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export class ValidationException extends __BaseException {
|
|
59
|
+
name = "ValidationException";
|
|
60
|
+
$fault = "client";
|
|
61
|
+
constructor(opts) {
|
|
62
|
+
super({
|
|
63
|
+
name: "ValidationException",
|
|
64
|
+
$fault: "client",
|
|
65
|
+
...opts
|
|
66
|
+
});
|
|
67
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export const MessageType = {
|
|
71
|
+
REGULAR: "regular",
|
|
72
|
+
SYSTEM: "system",
|
|
73
|
+
};
|
|
74
|
+
export class ChannelNotFoundException extends __BaseException {
|
|
75
|
+
name = "ChannelNotFoundException";
|
|
76
|
+
$fault = "client";
|
|
77
|
+
constructor(opts) {
|
|
78
|
+
super({
|
|
79
|
+
name: "ChannelNotFoundException",
|
|
80
|
+
$fault: "client",
|
|
81
|
+
...opts
|
|
82
|
+
});
|
|
83
|
+
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export class MessageNotFoundException extends __BaseException {
|
|
87
|
+
name = "MessageNotFoundException";
|
|
88
|
+
$fault = "client";
|
|
89
|
+
constructor(opts) {
|
|
90
|
+
super({
|
|
91
|
+
name: "MessageNotFoundException",
|
|
92
|
+
$fault: "client",
|
|
93
|
+
...opts
|
|
94
|
+
});
|
|
95
|
+
Object.setPrototypeOf(this, MessageNotFoundException.prototype);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export const ChannelsFilter = {
|
|
99
|
+
ARCHIVED: "archived",
|
|
100
|
+
UNREAD: "unread",
|
|
101
|
+
};
|
|
102
|
+
export const ChannelType = {
|
|
103
|
+
DIRECT: "direct",
|
|
104
|
+
EXTERNAL: "external",
|
|
105
|
+
GROUP: "group",
|
|
106
|
+
};
|
|
107
|
+
export const SectionType = {
|
|
108
|
+
CUSTOM: "custom",
|
|
109
|
+
SYSTEM: "system",
|
|
110
|
+
};
|
|
111
|
+
export const MentionsFilter = {
|
|
112
|
+
UNREAD: "unread",
|
|
113
|
+
};
|