@aws-sdk/client-workdocs 3.986.0 → 3.988.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.WorkDocsServiceException = 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 WorkDocsServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, WorkDocsServiceException.prototype);
10
+ }
11
+ }
12
+ exports.WorkDocsServiceException = WorkDocsServiceException;
@@ -0,0 +1,385 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IllegalUserStateException = exports.DeactivatingLastSystemUserException = exports.StorageLimitWillExceedException = exports.StorageLimitExceededException = exports.ResourceAlreadyCheckedOutException = exports.DraftUploadOutOfSyncException = exports.RequestedEntityTooLargeException = exports.InvalidPasswordException = exports.InvalidOperationException = exports.TooManySubscriptionsException = exports.InvalidArgumentException = exports.TooManyLabelsException = exports.LimitExceededException = exports.EntityAlreadyExistsException = exports.ConflictingOperationException = exports.CustomMetadataLimitExceededException = exports.InvalidCommentOperationException = exports.DocumentLockedForCommentsException = exports.UnauthorizedResourceAccessException = exports.UnauthorizedOperationException = exports.ServiceUnavailableException = exports.ProhibitedStateException = exports.FailedDependencyException = exports.EntityNotExistsException = exports.ConcurrentModificationException = void 0;
4
+ const WorkDocsServiceException_1 = require("./WorkDocsServiceException");
5
+ class ConcurrentModificationException extends WorkDocsServiceException_1.WorkDocsServiceException {
6
+ name = "ConcurrentModificationException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "ConcurrentModificationException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.ConcurrentModificationException = ConcurrentModificationException;
20
+ class EntityNotExistsException extends WorkDocsServiceException_1.WorkDocsServiceException {
21
+ name = "EntityNotExistsException";
22
+ $fault = "client";
23
+ Message;
24
+ EntityIds;
25
+ constructor(opts) {
26
+ super({
27
+ name: "EntityNotExistsException",
28
+ $fault: "client",
29
+ ...opts,
30
+ });
31
+ Object.setPrototypeOf(this, EntityNotExistsException.prototype);
32
+ this.Message = opts.Message;
33
+ this.EntityIds = opts.EntityIds;
34
+ }
35
+ }
36
+ exports.EntityNotExistsException = EntityNotExistsException;
37
+ class FailedDependencyException extends WorkDocsServiceException_1.WorkDocsServiceException {
38
+ name = "FailedDependencyException";
39
+ $fault = "client";
40
+ Message;
41
+ constructor(opts) {
42
+ super({
43
+ name: "FailedDependencyException",
44
+ $fault: "client",
45
+ ...opts,
46
+ });
47
+ Object.setPrototypeOf(this, FailedDependencyException.prototype);
48
+ this.Message = opts.Message;
49
+ }
50
+ }
51
+ exports.FailedDependencyException = FailedDependencyException;
52
+ class ProhibitedStateException extends WorkDocsServiceException_1.WorkDocsServiceException {
53
+ name = "ProhibitedStateException";
54
+ $fault = "client";
55
+ Message;
56
+ constructor(opts) {
57
+ super({
58
+ name: "ProhibitedStateException",
59
+ $fault: "client",
60
+ ...opts,
61
+ });
62
+ Object.setPrototypeOf(this, ProhibitedStateException.prototype);
63
+ this.Message = opts.Message;
64
+ }
65
+ }
66
+ exports.ProhibitedStateException = ProhibitedStateException;
67
+ class ServiceUnavailableException extends WorkDocsServiceException_1.WorkDocsServiceException {
68
+ name = "ServiceUnavailableException";
69
+ $fault = "server";
70
+ Message;
71
+ constructor(opts) {
72
+ super({
73
+ name: "ServiceUnavailableException",
74
+ $fault: "server",
75
+ ...opts,
76
+ });
77
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
78
+ this.Message = opts.Message;
79
+ }
80
+ }
81
+ exports.ServiceUnavailableException = ServiceUnavailableException;
82
+ class UnauthorizedOperationException extends WorkDocsServiceException_1.WorkDocsServiceException {
83
+ name = "UnauthorizedOperationException";
84
+ $fault = "client";
85
+ Message;
86
+ Code;
87
+ constructor(opts) {
88
+ super({
89
+ name: "UnauthorizedOperationException",
90
+ $fault: "client",
91
+ ...opts,
92
+ });
93
+ Object.setPrototypeOf(this, UnauthorizedOperationException.prototype);
94
+ this.Message = opts.Message;
95
+ this.Code = opts.Code;
96
+ }
97
+ }
98
+ exports.UnauthorizedOperationException = UnauthorizedOperationException;
99
+ class UnauthorizedResourceAccessException extends WorkDocsServiceException_1.WorkDocsServiceException {
100
+ name = "UnauthorizedResourceAccessException";
101
+ $fault = "client";
102
+ Message;
103
+ constructor(opts) {
104
+ super({
105
+ name: "UnauthorizedResourceAccessException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ Object.setPrototypeOf(this, UnauthorizedResourceAccessException.prototype);
110
+ this.Message = opts.Message;
111
+ }
112
+ }
113
+ exports.UnauthorizedResourceAccessException = UnauthorizedResourceAccessException;
114
+ class DocumentLockedForCommentsException extends WorkDocsServiceException_1.WorkDocsServiceException {
115
+ name = "DocumentLockedForCommentsException";
116
+ $fault = "client";
117
+ Message;
118
+ constructor(opts) {
119
+ super({
120
+ name: "DocumentLockedForCommentsException",
121
+ $fault: "client",
122
+ ...opts,
123
+ });
124
+ Object.setPrototypeOf(this, DocumentLockedForCommentsException.prototype);
125
+ this.Message = opts.Message;
126
+ }
127
+ }
128
+ exports.DocumentLockedForCommentsException = DocumentLockedForCommentsException;
129
+ class InvalidCommentOperationException extends WorkDocsServiceException_1.WorkDocsServiceException {
130
+ name = "InvalidCommentOperationException";
131
+ $fault = "client";
132
+ Message;
133
+ constructor(opts) {
134
+ super({
135
+ name: "InvalidCommentOperationException",
136
+ $fault: "client",
137
+ ...opts,
138
+ });
139
+ Object.setPrototypeOf(this, InvalidCommentOperationException.prototype);
140
+ this.Message = opts.Message;
141
+ }
142
+ }
143
+ exports.InvalidCommentOperationException = InvalidCommentOperationException;
144
+ class CustomMetadataLimitExceededException extends WorkDocsServiceException_1.WorkDocsServiceException {
145
+ name = "CustomMetadataLimitExceededException";
146
+ $fault = "client";
147
+ Message;
148
+ constructor(opts) {
149
+ super({
150
+ name: "CustomMetadataLimitExceededException",
151
+ $fault: "client",
152
+ ...opts,
153
+ });
154
+ Object.setPrototypeOf(this, CustomMetadataLimitExceededException.prototype);
155
+ this.Message = opts.Message;
156
+ }
157
+ }
158
+ exports.CustomMetadataLimitExceededException = CustomMetadataLimitExceededException;
159
+ class ConflictingOperationException extends WorkDocsServiceException_1.WorkDocsServiceException {
160
+ name = "ConflictingOperationException";
161
+ $fault = "client";
162
+ Message;
163
+ constructor(opts) {
164
+ super({
165
+ name: "ConflictingOperationException",
166
+ $fault: "client",
167
+ ...opts,
168
+ });
169
+ Object.setPrototypeOf(this, ConflictingOperationException.prototype);
170
+ this.Message = opts.Message;
171
+ }
172
+ }
173
+ exports.ConflictingOperationException = ConflictingOperationException;
174
+ class EntityAlreadyExistsException extends WorkDocsServiceException_1.WorkDocsServiceException {
175
+ name = "EntityAlreadyExistsException";
176
+ $fault = "client";
177
+ Message;
178
+ constructor(opts) {
179
+ super({
180
+ name: "EntityAlreadyExistsException",
181
+ $fault: "client",
182
+ ...opts,
183
+ });
184
+ Object.setPrototypeOf(this, EntityAlreadyExistsException.prototype);
185
+ this.Message = opts.Message;
186
+ }
187
+ }
188
+ exports.EntityAlreadyExistsException = EntityAlreadyExistsException;
189
+ class LimitExceededException extends WorkDocsServiceException_1.WorkDocsServiceException {
190
+ name = "LimitExceededException";
191
+ $fault = "client";
192
+ Message;
193
+ constructor(opts) {
194
+ super({
195
+ name: "LimitExceededException",
196
+ $fault: "client",
197
+ ...opts,
198
+ });
199
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
200
+ this.Message = opts.Message;
201
+ }
202
+ }
203
+ exports.LimitExceededException = LimitExceededException;
204
+ class TooManyLabelsException extends WorkDocsServiceException_1.WorkDocsServiceException {
205
+ name = "TooManyLabelsException";
206
+ $fault = "client";
207
+ Message;
208
+ constructor(opts) {
209
+ super({
210
+ name: "TooManyLabelsException",
211
+ $fault: "client",
212
+ ...opts,
213
+ });
214
+ Object.setPrototypeOf(this, TooManyLabelsException.prototype);
215
+ this.Message = opts.Message;
216
+ }
217
+ }
218
+ exports.TooManyLabelsException = TooManyLabelsException;
219
+ class InvalidArgumentException extends WorkDocsServiceException_1.WorkDocsServiceException {
220
+ name = "InvalidArgumentException";
221
+ $fault = "client";
222
+ Message;
223
+ constructor(opts) {
224
+ super({
225
+ name: "InvalidArgumentException",
226
+ $fault: "client",
227
+ ...opts,
228
+ });
229
+ Object.setPrototypeOf(this, InvalidArgumentException.prototype);
230
+ this.Message = opts.Message;
231
+ }
232
+ }
233
+ exports.InvalidArgumentException = InvalidArgumentException;
234
+ class TooManySubscriptionsException extends WorkDocsServiceException_1.WorkDocsServiceException {
235
+ name = "TooManySubscriptionsException";
236
+ $fault = "client";
237
+ Message;
238
+ constructor(opts) {
239
+ super({
240
+ name: "TooManySubscriptionsException",
241
+ $fault: "client",
242
+ ...opts,
243
+ });
244
+ Object.setPrototypeOf(this, TooManySubscriptionsException.prototype);
245
+ this.Message = opts.Message;
246
+ }
247
+ }
248
+ exports.TooManySubscriptionsException = TooManySubscriptionsException;
249
+ class InvalidOperationException extends WorkDocsServiceException_1.WorkDocsServiceException {
250
+ name = "InvalidOperationException";
251
+ $fault = "client";
252
+ Message;
253
+ constructor(opts) {
254
+ super({
255
+ name: "InvalidOperationException",
256
+ $fault: "client",
257
+ ...opts,
258
+ });
259
+ Object.setPrototypeOf(this, InvalidOperationException.prototype);
260
+ this.Message = opts.Message;
261
+ }
262
+ }
263
+ exports.InvalidOperationException = InvalidOperationException;
264
+ class InvalidPasswordException extends WorkDocsServiceException_1.WorkDocsServiceException {
265
+ name = "InvalidPasswordException";
266
+ $fault = "client";
267
+ Message;
268
+ constructor(opts) {
269
+ super({
270
+ name: "InvalidPasswordException",
271
+ $fault: "client",
272
+ ...opts,
273
+ });
274
+ Object.setPrototypeOf(this, InvalidPasswordException.prototype);
275
+ this.Message = opts.Message;
276
+ }
277
+ }
278
+ exports.InvalidPasswordException = InvalidPasswordException;
279
+ class RequestedEntityTooLargeException extends WorkDocsServiceException_1.WorkDocsServiceException {
280
+ name = "RequestedEntityTooLargeException";
281
+ $fault = "client";
282
+ Message;
283
+ constructor(opts) {
284
+ super({
285
+ name: "RequestedEntityTooLargeException",
286
+ $fault: "client",
287
+ ...opts,
288
+ });
289
+ Object.setPrototypeOf(this, RequestedEntityTooLargeException.prototype);
290
+ this.Message = opts.Message;
291
+ }
292
+ }
293
+ exports.RequestedEntityTooLargeException = RequestedEntityTooLargeException;
294
+ class DraftUploadOutOfSyncException extends WorkDocsServiceException_1.WorkDocsServiceException {
295
+ name = "DraftUploadOutOfSyncException";
296
+ $fault = "client";
297
+ Message;
298
+ constructor(opts) {
299
+ super({
300
+ name: "DraftUploadOutOfSyncException",
301
+ $fault: "client",
302
+ ...opts,
303
+ });
304
+ Object.setPrototypeOf(this, DraftUploadOutOfSyncException.prototype);
305
+ this.Message = opts.Message;
306
+ }
307
+ }
308
+ exports.DraftUploadOutOfSyncException = DraftUploadOutOfSyncException;
309
+ class ResourceAlreadyCheckedOutException extends WorkDocsServiceException_1.WorkDocsServiceException {
310
+ name = "ResourceAlreadyCheckedOutException";
311
+ $fault = "client";
312
+ Message;
313
+ constructor(opts) {
314
+ super({
315
+ name: "ResourceAlreadyCheckedOutException",
316
+ $fault: "client",
317
+ ...opts,
318
+ });
319
+ Object.setPrototypeOf(this, ResourceAlreadyCheckedOutException.prototype);
320
+ this.Message = opts.Message;
321
+ }
322
+ }
323
+ exports.ResourceAlreadyCheckedOutException = ResourceAlreadyCheckedOutException;
324
+ class StorageLimitExceededException extends WorkDocsServiceException_1.WorkDocsServiceException {
325
+ name = "StorageLimitExceededException";
326
+ $fault = "client";
327
+ Message;
328
+ constructor(opts) {
329
+ super({
330
+ name: "StorageLimitExceededException",
331
+ $fault: "client",
332
+ ...opts,
333
+ });
334
+ Object.setPrototypeOf(this, StorageLimitExceededException.prototype);
335
+ this.Message = opts.Message;
336
+ }
337
+ }
338
+ exports.StorageLimitExceededException = StorageLimitExceededException;
339
+ class StorageLimitWillExceedException extends WorkDocsServiceException_1.WorkDocsServiceException {
340
+ name = "StorageLimitWillExceedException";
341
+ $fault = "client";
342
+ Message;
343
+ constructor(opts) {
344
+ super({
345
+ name: "StorageLimitWillExceedException",
346
+ $fault: "client",
347
+ ...opts,
348
+ });
349
+ Object.setPrototypeOf(this, StorageLimitWillExceedException.prototype);
350
+ this.Message = opts.Message;
351
+ }
352
+ }
353
+ exports.StorageLimitWillExceedException = StorageLimitWillExceedException;
354
+ class DeactivatingLastSystemUserException extends WorkDocsServiceException_1.WorkDocsServiceException {
355
+ name = "DeactivatingLastSystemUserException";
356
+ $fault = "client";
357
+ Message;
358
+ Code;
359
+ constructor(opts) {
360
+ super({
361
+ name: "DeactivatingLastSystemUserException",
362
+ $fault: "client",
363
+ ...opts,
364
+ });
365
+ Object.setPrototypeOf(this, DeactivatingLastSystemUserException.prototype);
366
+ this.Message = opts.Message;
367
+ this.Code = opts.Code;
368
+ }
369
+ }
370
+ exports.DeactivatingLastSystemUserException = DeactivatingLastSystemUserException;
371
+ class IllegalUserStateException extends WorkDocsServiceException_1.WorkDocsServiceException {
372
+ name = "IllegalUserStateException";
373
+ $fault = "client";
374
+ Message;
375
+ constructor(opts) {
376
+ super({
377
+ name: "IllegalUserStateException",
378
+ $fault: "client",
379
+ ...opts,
380
+ });
381
+ Object.setPrototypeOf(this, IllegalUserStateException.prototype);
382
+ this.Message = opts.Message;
383
+ }
384
+ }
385
+ exports.IllegalUserStateException = IllegalUserStateException;
@@ -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: "2016-05-01",
@@ -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.workdocs",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  xmlNamespace: "https://aws.amazon.com/api/v1/",
33
35
  version: "2016-05-01",
34
36
  serviceTarget: "AWSGorillaBoyService",