@aws-sdk/client-chime-sdk-messaging 3.51.0 → 3.54.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-chime-sdk-messaging
9
+
10
+
11
+
12
+
13
+
14
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-chime-sdk-messaging
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-chime-sdk-messaging
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChimeSDKMessagingServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./ChimeSDKMessaging"), exports);
5
6
  tslib_1.__exportStar(require("./ChimeSDKMessagingClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var ChimeSDKMessagingServiceException_1 = require("./models/ChimeSDKMessagingServiceException");
11
+ Object.defineProperty(exports, "ChimeSDKMessagingServiceException", { enumerable: true, get: function () { return ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChimeSDKMessagingServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class ChimeSDKMessagingServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, ChimeSDKMessagingServiceException.prototype);
9
+ }
10
+ }
11
+ exports.ChimeSDKMessagingServiceException = ChimeSDKMessagingServiceException;
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateChannelFlowRequest = exports.CreateChannelBanResponse = exports.CreateChannelBanRequest = exports.CreateChannelResponse = exports.CreateChannelRequest = exports.Tag = exports.ChannelModeratorSummary = exports.ChannelModerator = exports.ChannelModeratedByAppInstanceUserSummary = exports.ChannelMessageSummary = exports.ChannelMessage = exports.ChannelMessageType = exports.ChannelMessageStatusStructure = exports.ChannelMessageStatus = exports.ChannelMessagePersistenceType = exports.ChannelMembershipSummary = exports.ChannelMembershipPreferences = exports.PushNotificationPreferences = exports.ChannelMembershipForAppInstanceUserSummary = exports.ChannelSummary = exports.ChannelMembership = exports.ChannelFlowSummary = exports.ChannelFlowCallbackResponse = exports.ChannelFlowCallbackRequest = exports.ChannelMessageCallback = exports.PushNotificationConfiguration = exports.PushNotificationType = exports.MessageAttributeValue = exports.ChannelFlow = exports.Processor = exports.FallbackAction = exports.ProcessorConfiguration = exports.LambdaConfiguration = exports.InvocationType = exports.ChannelBanSummary = exports.ChannelBan = exports.ChannelAssociatedWithFlowSummary = exports.Channel = exports.ChannelPrivacy = exports.ChannelMode = exports.BatchCreateChannelMembershipResponse = exports.BatchCreateChannelMembershipError = exports.BatchCreateChannelMembershipRequest = exports.BatchChannelMemberships = exports.Identity = exports.ErrorCode = exports.AssociateChannelFlowRequest = exports.AppInstanceUserMembershipSummary = exports.ChannelMembershipType = exports.AllowNotifications = void 0;
4
- exports.ListChannelsResponse = exports.ListChannelsRequest = exports.ListChannelModeratorsResponse = exports.ListChannelModeratorsRequest = exports.ListChannelMessagesResponse = exports.ListChannelMessagesRequest = exports.SortOrder = exports.ListChannelMembershipsForAppInstanceUserResponse = exports.ListChannelMembershipsForAppInstanceUserRequest = exports.ListChannelMembershipsResponse = exports.ListChannelMembershipsRequest = exports.ListChannelFlowsResponse = exports.ListChannelFlowsRequest = exports.ListChannelBansResponse = exports.ListChannelBansRequest = exports.GetMessagingSessionEndpointResponse = exports.MessagingSessionEndpoint = exports.GetMessagingSessionEndpointRequest = exports.GetChannelMessageStatusResponse = exports.GetChannelMessageStatusRequest = exports.GetChannelMessageResponse = exports.GetChannelMessageRequest = exports.GetChannelMembershipPreferencesResponse = exports.GetChannelMembershipPreferencesRequest = exports.DisassociateChannelFlowRequest = exports.DescribeChannelModeratorResponse = exports.DescribeChannelModeratorRequest = exports.DescribeChannelModeratedByAppInstanceUserResponse = exports.DescribeChannelModeratedByAppInstanceUserRequest = exports.DescribeChannelMembershipForAppInstanceUserResponse = exports.DescribeChannelMembershipForAppInstanceUserRequest = exports.DescribeChannelMembershipResponse = exports.DescribeChannelMembershipRequest = exports.DescribeChannelFlowResponse = exports.DescribeChannelFlowRequest = exports.DescribeChannelBanResponse = exports.DescribeChannelBanRequest = exports.DescribeChannelResponse = exports.DescribeChannelRequest = exports.DeleteChannelModeratorRequest = exports.DeleteChannelMessageRequest = exports.DeleteChannelMembershipRequest = exports.DeleteChannelFlowRequest = exports.DeleteChannelBanRequest = exports.DeleteChannelRequest = exports.CreateChannelModeratorResponse = exports.CreateChannelModeratorRequest = exports.CreateChannelMembershipResponse = exports.CreateChannelMembershipRequest = exports.CreateChannelFlowResponse = void 0;
5
- exports.UpdateChannelReadMarkerResponse = exports.UpdateChannelReadMarkerRequest = exports.UpdateChannelMessageResponse = exports.UpdateChannelMessageRequest = exports.UpdateChannelFlowResponse = exports.UpdateChannelFlowRequest = exports.UpdateChannelResponse = exports.UpdateChannelRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.SendChannelMessageResponse = exports.SendChannelMessageRequest = exports.RedactChannelMessageResponse = exports.RedactChannelMessageRequest = exports.PutChannelMembershipPreferencesResponse = exports.PutChannelMembershipPreferencesRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListChannelsModeratedByAppInstanceUserResponse = exports.ListChannelsModeratedByAppInstanceUserRequest = exports.ListChannelsAssociatedWithChannelFlowResponse = exports.ListChannelsAssociatedWithChannelFlowRequest = void 0;
3
+ exports.ChannelModeratedByAppInstanceUserSummary = exports.ChannelMessageSummary = exports.ChannelMessage = exports.ChannelMessageType = exports.ChannelMessageStatusStructure = exports.ChannelMessageStatus = exports.ChannelMessagePersistenceType = exports.ChannelMembershipSummary = exports.ChannelMembershipPreferences = exports.PushNotificationPreferences = exports.ChannelMembershipForAppInstanceUserSummary = exports.ChannelSummary = exports.ChannelMembership = exports.ChannelFlowSummary = exports.ChannelFlowCallbackResponse = exports.ChannelFlowCallbackRequest = exports.ChannelMessageCallback = exports.PushNotificationConfiguration = exports.PushNotificationType = exports.MessageAttributeValue = exports.ChannelFlow = exports.Processor = exports.FallbackAction = exports.ProcessorConfiguration = exports.LambdaConfiguration = exports.InvocationType = exports.ChannelBanSummary = exports.ChannelBan = exports.ChannelAssociatedWithFlowSummary = exports.Channel = exports.ChannelPrivacy = exports.ChannelMode = exports.BatchCreateChannelMembershipResponse = exports.BatchCreateChannelMembershipError = exports.BatchCreateChannelMembershipRequest = exports.BatchChannelMemberships = exports.Identity = exports.UnauthorizedClientException = exports.ThrottledClientException = exports.ServiceUnavailableException = exports.ServiceFailureException = exports.NotFoundException = exports.ForbiddenException = exports.ConflictException = exports.BadRequestException = exports.ErrorCode = exports.AssociateChannelFlowRequest = exports.AppInstanceUserMembershipSummary = exports.ChannelMembershipType = exports.AllowNotifications = void 0;
4
+ exports.ListChannelMembershipsResponse = exports.ListChannelMembershipsRequest = exports.ListChannelFlowsResponse = exports.ListChannelFlowsRequest = exports.ListChannelBansResponse = exports.ListChannelBansRequest = exports.GetMessagingSessionEndpointResponse = exports.MessagingSessionEndpoint = exports.GetMessagingSessionEndpointRequest = exports.GetChannelMessageStatusResponse = exports.GetChannelMessageStatusRequest = exports.GetChannelMessageResponse = exports.GetChannelMessageRequest = exports.GetChannelMembershipPreferencesResponse = exports.GetChannelMembershipPreferencesRequest = exports.DisassociateChannelFlowRequest = exports.DescribeChannelModeratorResponse = exports.DescribeChannelModeratorRequest = exports.DescribeChannelModeratedByAppInstanceUserResponse = exports.DescribeChannelModeratedByAppInstanceUserRequest = exports.DescribeChannelMembershipForAppInstanceUserResponse = exports.DescribeChannelMembershipForAppInstanceUserRequest = exports.DescribeChannelMembershipResponse = exports.DescribeChannelMembershipRequest = exports.DescribeChannelFlowResponse = exports.DescribeChannelFlowRequest = exports.DescribeChannelBanResponse = exports.DescribeChannelBanRequest = exports.DescribeChannelResponse = exports.DescribeChannelRequest = exports.DeleteChannelModeratorRequest = exports.DeleteChannelMessageRequest = exports.DeleteChannelMembershipRequest = exports.DeleteChannelFlowRequest = exports.DeleteChannelBanRequest = exports.DeleteChannelRequest = exports.CreateChannelModeratorResponse = exports.CreateChannelModeratorRequest = exports.CreateChannelMembershipResponse = exports.CreateChannelMembershipRequest = exports.CreateChannelFlowResponse = exports.CreateChannelFlowRequest = exports.CreateChannelBanResponse = exports.CreateChannelBanRequest = exports.ResourceLimitExceededException = exports.CreateChannelResponse = exports.CreateChannelRequest = exports.Tag = exports.ChannelModeratorSummary = exports.ChannelModerator = void 0;
5
+ exports.UpdateChannelReadMarkerResponse = exports.UpdateChannelReadMarkerRequest = exports.UpdateChannelMessageResponse = exports.UpdateChannelMessageRequest = exports.UpdateChannelFlowResponse = exports.UpdateChannelFlowRequest = exports.UpdateChannelResponse = exports.UpdateChannelRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.SendChannelMessageResponse = exports.SendChannelMessageRequest = exports.RedactChannelMessageResponse = exports.RedactChannelMessageRequest = exports.PutChannelMembershipPreferencesResponse = exports.PutChannelMembershipPreferencesRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListChannelsModeratedByAppInstanceUserResponse = exports.ListChannelsModeratedByAppInstanceUserRequest = exports.ListChannelsAssociatedWithChannelFlowResponse = exports.ListChannelsAssociatedWithChannelFlowRequest = exports.ListChannelsResponse = exports.ListChannelsRequest = exports.ListChannelModeratorsResponse = exports.ListChannelModeratorsRequest = exports.ListChannelMessagesResponse = exports.ListChannelMessagesRequest = exports.SortOrder = exports.ListChannelMembershipsForAppInstanceUserResponse = exports.ListChannelMembershipsForAppInstanceUserRequest = void 0;
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const ChimeSDKMessagingServiceException_1 = require("./ChimeSDKMessagingServiceException");
7
8
  var AllowNotifications;
8
9
  (function (AllowNotifications) {
9
10
  AllowNotifications["ALL"] = "ALL";
@@ -45,6 +46,126 @@ var ErrorCode;
45
46
  ErrorCode["Unprocessable"] = "Unprocessable";
46
47
  ErrorCode["VoiceConnectorGroupAssociationsExist"] = "VoiceConnectorGroupAssociationsExist";
47
48
  })(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
49
+ class BadRequestException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
50
+ constructor(opts) {
51
+ super({
52
+ name: "BadRequestException",
53
+ $fault: "client",
54
+ ...opts,
55
+ });
56
+ this.name = "BadRequestException";
57
+ this.$fault = "client";
58
+ Object.setPrototypeOf(this, BadRequestException.prototype);
59
+ this.Code = opts.Code;
60
+ this.Message = opts.Message;
61
+ }
62
+ }
63
+ exports.BadRequestException = BadRequestException;
64
+ class ConflictException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
65
+ constructor(opts) {
66
+ super({
67
+ name: "ConflictException",
68
+ $fault: "client",
69
+ ...opts,
70
+ });
71
+ this.name = "ConflictException";
72
+ this.$fault = "client";
73
+ Object.setPrototypeOf(this, ConflictException.prototype);
74
+ this.Code = opts.Code;
75
+ this.Message = opts.Message;
76
+ }
77
+ }
78
+ exports.ConflictException = ConflictException;
79
+ class ForbiddenException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
80
+ constructor(opts) {
81
+ super({
82
+ name: "ForbiddenException",
83
+ $fault: "client",
84
+ ...opts,
85
+ });
86
+ this.name = "ForbiddenException";
87
+ this.$fault = "client";
88
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
89
+ this.Code = opts.Code;
90
+ this.Message = opts.Message;
91
+ }
92
+ }
93
+ exports.ForbiddenException = ForbiddenException;
94
+ class NotFoundException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
95
+ constructor(opts) {
96
+ super({
97
+ name: "NotFoundException",
98
+ $fault: "client",
99
+ ...opts,
100
+ });
101
+ this.name = "NotFoundException";
102
+ this.$fault = "client";
103
+ Object.setPrototypeOf(this, NotFoundException.prototype);
104
+ this.Code = opts.Code;
105
+ this.Message = opts.Message;
106
+ }
107
+ }
108
+ exports.NotFoundException = NotFoundException;
109
+ class ServiceFailureException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
110
+ constructor(opts) {
111
+ super({
112
+ name: "ServiceFailureException",
113
+ $fault: "server",
114
+ ...opts,
115
+ });
116
+ this.name = "ServiceFailureException";
117
+ this.$fault = "server";
118
+ Object.setPrototypeOf(this, ServiceFailureException.prototype);
119
+ this.Code = opts.Code;
120
+ this.Message = opts.Message;
121
+ }
122
+ }
123
+ exports.ServiceFailureException = ServiceFailureException;
124
+ class ServiceUnavailableException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
125
+ constructor(opts) {
126
+ super({
127
+ name: "ServiceUnavailableException",
128
+ $fault: "server",
129
+ ...opts,
130
+ });
131
+ this.name = "ServiceUnavailableException";
132
+ this.$fault = "server";
133
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
134
+ this.Code = opts.Code;
135
+ this.Message = opts.Message;
136
+ }
137
+ }
138
+ exports.ServiceUnavailableException = ServiceUnavailableException;
139
+ class ThrottledClientException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
140
+ constructor(opts) {
141
+ super({
142
+ name: "ThrottledClientException",
143
+ $fault: "client",
144
+ ...opts,
145
+ });
146
+ this.name = "ThrottledClientException";
147
+ this.$fault = "client";
148
+ Object.setPrototypeOf(this, ThrottledClientException.prototype);
149
+ this.Code = opts.Code;
150
+ this.Message = opts.Message;
151
+ }
152
+ }
153
+ exports.ThrottledClientException = ThrottledClientException;
154
+ class UnauthorizedClientException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
155
+ constructor(opts) {
156
+ super({
157
+ name: "UnauthorizedClientException",
158
+ $fault: "client",
159
+ ...opts,
160
+ });
161
+ this.name = "UnauthorizedClientException";
162
+ this.$fault = "client";
163
+ Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
164
+ this.Code = opts.Code;
165
+ this.Message = opts.Message;
166
+ }
167
+ }
168
+ exports.UnauthorizedClientException = UnauthorizedClientException;
48
169
  var Identity;
49
170
  (function (Identity) {
50
171
  Identity.filterSensitiveLog = (obj) => ({
@@ -362,6 +483,21 @@ var CreateChannelResponse;
362
483
  ...obj,
363
484
  });
364
485
  })(CreateChannelResponse = exports.CreateChannelResponse || (exports.CreateChannelResponse = {}));
486
+ class ResourceLimitExceededException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
487
+ constructor(opts) {
488
+ super({
489
+ name: "ResourceLimitExceededException",
490
+ $fault: "client",
491
+ ...opts,
492
+ });
493
+ this.name = "ResourceLimitExceededException";
494
+ this.$fault = "client";
495
+ Object.setPrototypeOf(this, ResourceLimitExceededException.prototype);
496
+ this.Code = opts.Code;
497
+ this.Message = opts.Message;
498
+ }
499
+ }
500
+ exports.ResourceLimitExceededException = ResourceLimitExceededException;
365
501
  var CreateChannelBanRequest;
366
502
  (function (CreateChannelBanRequest) {
367
503
  CreateChannelBanRequest.filterSensitiveLog = (obj) => ({