@aws-sdk/client-chime-sdk-messaging 3.987.0 → 3.989.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChimeSDKMessagingServiceException = 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 ChimeSDKMessagingServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, ChimeSDKMessagingServiceException.prototype);
10
+ }
11
+ }
12
+ exports.ChimeSDKMessagingServiceException = ChimeSDKMessagingServiceException;
@@ -0,0 +1,157 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResourceLimitExceededException = exports.UnauthorizedClientException = exports.ThrottledClientException = exports.ServiceUnavailableException = exports.ServiceFailureException = exports.NotFoundException = exports.ForbiddenException = exports.ConflictException = exports.BadRequestException = void 0;
4
+ const ChimeSDKMessagingServiceException_1 = require("./ChimeSDKMessagingServiceException");
5
+ class BadRequestException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
6
+ name = "BadRequestException";
7
+ $fault = "client";
8
+ Code;
9
+ Message;
10
+ constructor(opts) {
11
+ super({
12
+ name: "BadRequestException",
13
+ $fault: "client",
14
+ ...opts,
15
+ });
16
+ Object.setPrototypeOf(this, BadRequestException.prototype);
17
+ this.Code = opts.Code;
18
+ this.Message = opts.Message;
19
+ }
20
+ }
21
+ exports.BadRequestException = BadRequestException;
22
+ class ConflictException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
23
+ name = "ConflictException";
24
+ $fault = "client";
25
+ Code;
26
+ Message;
27
+ constructor(opts) {
28
+ super({
29
+ name: "ConflictException",
30
+ $fault: "client",
31
+ ...opts,
32
+ });
33
+ Object.setPrototypeOf(this, ConflictException.prototype);
34
+ this.Code = opts.Code;
35
+ this.Message = opts.Message;
36
+ }
37
+ }
38
+ exports.ConflictException = ConflictException;
39
+ class ForbiddenException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
40
+ name = "ForbiddenException";
41
+ $fault = "client";
42
+ Code;
43
+ Message;
44
+ constructor(opts) {
45
+ super({
46
+ name: "ForbiddenException",
47
+ $fault: "client",
48
+ ...opts,
49
+ });
50
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
51
+ this.Code = opts.Code;
52
+ this.Message = opts.Message;
53
+ }
54
+ }
55
+ exports.ForbiddenException = ForbiddenException;
56
+ class NotFoundException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
57
+ name = "NotFoundException";
58
+ $fault = "client";
59
+ Code;
60
+ Message;
61
+ constructor(opts) {
62
+ super({
63
+ name: "NotFoundException",
64
+ $fault: "client",
65
+ ...opts,
66
+ });
67
+ Object.setPrototypeOf(this, NotFoundException.prototype);
68
+ this.Code = opts.Code;
69
+ this.Message = opts.Message;
70
+ }
71
+ }
72
+ exports.NotFoundException = NotFoundException;
73
+ class ServiceFailureException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
74
+ name = "ServiceFailureException";
75
+ $fault = "server";
76
+ Code;
77
+ Message;
78
+ constructor(opts) {
79
+ super({
80
+ name: "ServiceFailureException",
81
+ $fault: "server",
82
+ ...opts,
83
+ });
84
+ Object.setPrototypeOf(this, ServiceFailureException.prototype);
85
+ this.Code = opts.Code;
86
+ this.Message = opts.Message;
87
+ }
88
+ }
89
+ exports.ServiceFailureException = ServiceFailureException;
90
+ class ServiceUnavailableException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
91
+ name = "ServiceUnavailableException";
92
+ $fault = "server";
93
+ Code;
94
+ Message;
95
+ constructor(opts) {
96
+ super({
97
+ name: "ServiceUnavailableException",
98
+ $fault: "server",
99
+ ...opts,
100
+ });
101
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
102
+ this.Code = opts.Code;
103
+ this.Message = opts.Message;
104
+ }
105
+ }
106
+ exports.ServiceUnavailableException = ServiceUnavailableException;
107
+ class ThrottledClientException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
108
+ name = "ThrottledClientException";
109
+ $fault = "client";
110
+ Code;
111
+ Message;
112
+ constructor(opts) {
113
+ super({
114
+ name: "ThrottledClientException",
115
+ $fault: "client",
116
+ ...opts,
117
+ });
118
+ Object.setPrototypeOf(this, ThrottledClientException.prototype);
119
+ this.Code = opts.Code;
120
+ this.Message = opts.Message;
121
+ }
122
+ }
123
+ exports.ThrottledClientException = ThrottledClientException;
124
+ class UnauthorizedClientException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
125
+ name = "UnauthorizedClientException";
126
+ $fault = "client";
127
+ Code;
128
+ Message;
129
+ constructor(opts) {
130
+ super({
131
+ name: "UnauthorizedClientException",
132
+ $fault: "client",
133
+ ...opts,
134
+ });
135
+ Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
136
+ this.Code = opts.Code;
137
+ this.Message = opts.Message;
138
+ }
139
+ }
140
+ exports.UnauthorizedClientException = UnauthorizedClientException;
141
+ class ResourceLimitExceededException extends ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException {
142
+ name = "ResourceLimitExceededException";
143
+ $fault = "client";
144
+ Code;
145
+ Message;
146
+ constructor(opts) {
147
+ super({
148
+ name: "ResourceLimitExceededException",
149
+ $fault: "client",
150
+ ...opts,
151
+ });
152
+ Object.setPrototypeOf(this, ResourceLimitExceededException.prototype);
153
+ this.Code = opts.Code;
154
+ this.Message = opts.Message;
155
+ }
156
+ }
157
+ exports.ResourceLimitExceededException = ResourceLimitExceededException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2021-05-15",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.chimesdkmessaging",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2021-05-15",
33
35
  serviceTarget: "ChimeMessagingService",
34
36
  },