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