@aws-sdk/client-workdocs 3.1075.0 → 3.1077.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.
@@ -1,357 +0,0 @@
1
- const { WorkDocsServiceException: __BaseException } = require("./WorkDocsServiceException");
2
- exports.ConcurrentModificationException = class ConcurrentModificationException extends __BaseException {
3
- name = "ConcurrentModificationException";
4
- $fault = "client";
5
- Message;
6
- constructor(opts) {
7
- super({
8
- name: "ConcurrentModificationException",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
13
- this.Message = opts.Message;
14
- }
15
- };
16
- exports.EntityNotExistsException = class EntityNotExistsException extends __BaseException {
17
- name = "EntityNotExistsException";
18
- $fault = "client";
19
- Message;
20
- EntityIds;
21
- constructor(opts) {
22
- super({
23
- name: "EntityNotExistsException",
24
- $fault: "client",
25
- ...opts,
26
- });
27
- Object.setPrototypeOf(this, EntityNotExistsException.prototype);
28
- this.Message = opts.Message;
29
- this.EntityIds = opts.EntityIds;
30
- }
31
- };
32
- exports.FailedDependencyException = class FailedDependencyException extends __BaseException {
33
- name = "FailedDependencyException";
34
- $fault = "client";
35
- Message;
36
- constructor(opts) {
37
- super({
38
- name: "FailedDependencyException",
39
- $fault: "client",
40
- ...opts,
41
- });
42
- Object.setPrototypeOf(this, FailedDependencyException.prototype);
43
- this.Message = opts.Message;
44
- }
45
- };
46
- exports.ProhibitedStateException = class ProhibitedStateException extends __BaseException {
47
- name = "ProhibitedStateException";
48
- $fault = "client";
49
- Message;
50
- constructor(opts) {
51
- super({
52
- name: "ProhibitedStateException",
53
- $fault: "client",
54
- ...opts,
55
- });
56
- Object.setPrototypeOf(this, ProhibitedStateException.prototype);
57
- this.Message = opts.Message;
58
- }
59
- };
60
- exports.ServiceUnavailableException = class ServiceUnavailableException extends __BaseException {
61
- name = "ServiceUnavailableException";
62
- $fault = "server";
63
- Message;
64
- constructor(opts) {
65
- super({
66
- name: "ServiceUnavailableException",
67
- $fault: "server",
68
- ...opts,
69
- });
70
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
71
- this.Message = opts.Message;
72
- }
73
- };
74
- exports.UnauthorizedOperationException = class UnauthorizedOperationException extends __BaseException {
75
- name = "UnauthorizedOperationException";
76
- $fault = "client";
77
- Message;
78
- Code;
79
- constructor(opts) {
80
- super({
81
- name: "UnauthorizedOperationException",
82
- $fault: "client",
83
- ...opts,
84
- });
85
- Object.setPrototypeOf(this, UnauthorizedOperationException.prototype);
86
- this.Message = opts.Message;
87
- this.Code = opts.Code;
88
- }
89
- };
90
- exports.UnauthorizedResourceAccessException = class UnauthorizedResourceAccessException extends __BaseException {
91
- name = "UnauthorizedResourceAccessException";
92
- $fault = "client";
93
- Message;
94
- constructor(opts) {
95
- super({
96
- name: "UnauthorizedResourceAccessException",
97
- $fault: "client",
98
- ...opts,
99
- });
100
- Object.setPrototypeOf(this, UnauthorizedResourceAccessException.prototype);
101
- this.Message = opts.Message;
102
- }
103
- };
104
- exports.DocumentLockedForCommentsException = class DocumentLockedForCommentsException extends __BaseException {
105
- name = "DocumentLockedForCommentsException";
106
- $fault = "client";
107
- Message;
108
- constructor(opts) {
109
- super({
110
- name: "DocumentLockedForCommentsException",
111
- $fault: "client",
112
- ...opts,
113
- });
114
- Object.setPrototypeOf(this, DocumentLockedForCommentsException.prototype);
115
- this.Message = opts.Message;
116
- }
117
- };
118
- exports.InvalidCommentOperationException = class InvalidCommentOperationException extends __BaseException {
119
- name = "InvalidCommentOperationException";
120
- $fault = "client";
121
- Message;
122
- constructor(opts) {
123
- super({
124
- name: "InvalidCommentOperationException",
125
- $fault: "client",
126
- ...opts,
127
- });
128
- Object.setPrototypeOf(this, InvalidCommentOperationException.prototype);
129
- this.Message = opts.Message;
130
- }
131
- };
132
- exports.CustomMetadataLimitExceededException = class CustomMetadataLimitExceededException extends __BaseException {
133
- name = "CustomMetadataLimitExceededException";
134
- $fault = "client";
135
- Message;
136
- constructor(opts) {
137
- super({
138
- name: "CustomMetadataLimitExceededException",
139
- $fault: "client",
140
- ...opts,
141
- });
142
- Object.setPrototypeOf(this, CustomMetadataLimitExceededException.prototype);
143
- this.Message = opts.Message;
144
- }
145
- };
146
- exports.ConflictingOperationException = class ConflictingOperationException extends __BaseException {
147
- name = "ConflictingOperationException";
148
- $fault = "client";
149
- Message;
150
- constructor(opts) {
151
- super({
152
- name: "ConflictingOperationException",
153
- $fault: "client",
154
- ...opts,
155
- });
156
- Object.setPrototypeOf(this, ConflictingOperationException.prototype);
157
- this.Message = opts.Message;
158
- }
159
- };
160
- exports.EntityAlreadyExistsException = class EntityAlreadyExistsException extends __BaseException {
161
- name = "EntityAlreadyExistsException";
162
- $fault = "client";
163
- Message;
164
- constructor(opts) {
165
- super({
166
- name: "EntityAlreadyExistsException",
167
- $fault: "client",
168
- ...opts,
169
- });
170
- Object.setPrototypeOf(this, EntityAlreadyExistsException.prototype);
171
- this.Message = opts.Message;
172
- }
173
- };
174
- exports.LimitExceededException = class LimitExceededException extends __BaseException {
175
- name = "LimitExceededException";
176
- $fault = "client";
177
- Message;
178
- constructor(opts) {
179
- super({
180
- name: "LimitExceededException",
181
- $fault: "client",
182
- ...opts,
183
- });
184
- Object.setPrototypeOf(this, LimitExceededException.prototype);
185
- this.Message = opts.Message;
186
- }
187
- };
188
- exports.TooManyLabelsException = class TooManyLabelsException extends __BaseException {
189
- name = "TooManyLabelsException";
190
- $fault = "client";
191
- Message;
192
- constructor(opts) {
193
- super({
194
- name: "TooManyLabelsException",
195
- $fault: "client",
196
- ...opts,
197
- });
198
- Object.setPrototypeOf(this, TooManyLabelsException.prototype);
199
- this.Message = opts.Message;
200
- }
201
- };
202
- exports.InvalidArgumentException = class InvalidArgumentException extends __BaseException {
203
- name = "InvalidArgumentException";
204
- $fault = "client";
205
- Message;
206
- constructor(opts) {
207
- super({
208
- name: "InvalidArgumentException",
209
- $fault: "client",
210
- ...opts,
211
- });
212
- Object.setPrototypeOf(this, InvalidArgumentException.prototype);
213
- this.Message = opts.Message;
214
- }
215
- };
216
- exports.TooManySubscriptionsException = class TooManySubscriptionsException extends __BaseException {
217
- name = "TooManySubscriptionsException";
218
- $fault = "client";
219
- Message;
220
- constructor(opts) {
221
- super({
222
- name: "TooManySubscriptionsException",
223
- $fault: "client",
224
- ...opts,
225
- });
226
- Object.setPrototypeOf(this, TooManySubscriptionsException.prototype);
227
- this.Message = opts.Message;
228
- }
229
- };
230
- exports.InvalidOperationException = class InvalidOperationException extends __BaseException {
231
- name = "InvalidOperationException";
232
- $fault = "client";
233
- Message;
234
- constructor(opts) {
235
- super({
236
- name: "InvalidOperationException",
237
- $fault: "client",
238
- ...opts,
239
- });
240
- Object.setPrototypeOf(this, InvalidOperationException.prototype);
241
- this.Message = opts.Message;
242
- }
243
- };
244
- exports.InvalidPasswordException = class InvalidPasswordException extends __BaseException {
245
- name = "InvalidPasswordException";
246
- $fault = "client";
247
- Message;
248
- constructor(opts) {
249
- super({
250
- name: "InvalidPasswordException",
251
- $fault: "client",
252
- ...opts,
253
- });
254
- Object.setPrototypeOf(this, InvalidPasswordException.prototype);
255
- this.Message = opts.Message;
256
- }
257
- };
258
- exports.RequestedEntityTooLargeException = class RequestedEntityTooLargeException extends __BaseException {
259
- name = "RequestedEntityTooLargeException";
260
- $fault = "client";
261
- Message;
262
- constructor(opts) {
263
- super({
264
- name: "RequestedEntityTooLargeException",
265
- $fault: "client",
266
- ...opts,
267
- });
268
- Object.setPrototypeOf(this, RequestedEntityTooLargeException.prototype);
269
- this.Message = opts.Message;
270
- }
271
- };
272
- exports.DraftUploadOutOfSyncException = class DraftUploadOutOfSyncException extends __BaseException {
273
- name = "DraftUploadOutOfSyncException";
274
- $fault = "client";
275
- Message;
276
- constructor(opts) {
277
- super({
278
- name: "DraftUploadOutOfSyncException",
279
- $fault: "client",
280
- ...opts,
281
- });
282
- Object.setPrototypeOf(this, DraftUploadOutOfSyncException.prototype);
283
- this.Message = opts.Message;
284
- }
285
- };
286
- exports.ResourceAlreadyCheckedOutException = class ResourceAlreadyCheckedOutException extends __BaseException {
287
- name = "ResourceAlreadyCheckedOutException";
288
- $fault = "client";
289
- Message;
290
- constructor(opts) {
291
- super({
292
- name: "ResourceAlreadyCheckedOutException",
293
- $fault: "client",
294
- ...opts,
295
- });
296
- Object.setPrototypeOf(this, ResourceAlreadyCheckedOutException.prototype);
297
- this.Message = opts.Message;
298
- }
299
- };
300
- exports.StorageLimitExceededException = class StorageLimitExceededException extends __BaseException {
301
- name = "StorageLimitExceededException";
302
- $fault = "client";
303
- Message;
304
- constructor(opts) {
305
- super({
306
- name: "StorageLimitExceededException",
307
- $fault: "client",
308
- ...opts,
309
- });
310
- Object.setPrototypeOf(this, StorageLimitExceededException.prototype);
311
- this.Message = opts.Message;
312
- }
313
- };
314
- exports.StorageLimitWillExceedException = class StorageLimitWillExceedException extends __BaseException {
315
- name = "StorageLimitWillExceedException";
316
- $fault = "client";
317
- Message;
318
- constructor(opts) {
319
- super({
320
- name: "StorageLimitWillExceedException",
321
- $fault: "client",
322
- ...opts,
323
- });
324
- Object.setPrototypeOf(this, StorageLimitWillExceedException.prototype);
325
- this.Message = opts.Message;
326
- }
327
- };
328
- exports.DeactivatingLastSystemUserException = class DeactivatingLastSystemUserException extends __BaseException {
329
- name = "DeactivatingLastSystemUserException";
330
- $fault = "client";
331
- Message;
332
- Code;
333
- constructor(opts) {
334
- super({
335
- name: "DeactivatingLastSystemUserException",
336
- $fault: "client",
337
- ...opts,
338
- });
339
- Object.setPrototypeOf(this, DeactivatingLastSystemUserException.prototype);
340
- this.Message = opts.Message;
341
- this.Code = opts.Code;
342
- }
343
- };
344
- exports.IllegalUserStateException = class IllegalUserStateException extends __BaseException {
345
- name = "IllegalUserStateException";
346
- $fault = "client";
347
- Message;
348
- constructor(opts) {
349
- super({
350
- name: "IllegalUserStateException",
351
- $fault: "client",
352
- ...opts,
353
- });
354
- Object.setPrototypeOf(this, IllegalUserStateException.prototype);
355
- this.Message = opts.Message;
356
- }
357
- };
@@ -1,32 +0,0 @@
1
- const packageInfo = require("../package.json");
2
- const { Sha256 } = require("@aws-crypto/sha256-browser");
3
- const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
- const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
- const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
- const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
7
- const { calculateBodyLength } = require("@smithy/core/serde");
8
- const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
9
- const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
10
- const getRuntimeConfig = (config) => {
11
- const defaultsMode = resolveDefaultsModeConfig(config);
12
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
- const clientSharedValues = getSharedRuntimeConfig(config);
14
- return {
15
- ...clientSharedValues,
16
- ...config,
17
- runtime: "browser",
18
- defaultsMode,
19
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
20
- credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
21
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
- maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
23
- region: config?.region ?? invalidProvider("Region is missing"),
24
- requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
- streamCollector: config?.streamCollector ?? streamCollector,
28
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
30
- };
31
- };
32
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,45 +0,0 @@
1
- const packageInfo = require("../package.json");
2
- const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
3
- const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
4
- const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
5
- const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
6
- const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
7
- const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
8
- const { calculateBodyLength, Hash } = require("@smithy/core/serde");
9
- const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
10
- const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
11
- const getRuntimeConfig = (config) => {
12
- emitWarningIfUnsupportedVersion(process.version);
13
- const defaultsMode = resolveDefaultsModeConfig(config);
14
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
- const clientSharedValues = getSharedRuntimeConfig(config);
16
- awsCheckVersion(process.version);
17
- const loaderConfig = {
18
- profile: config?.profile,
19
- logger: clientSharedValues.logger,
20
- };
21
- return {
22
- ...clientSharedValues,
23
- ...config,
24
- runtime: "node",
25
- defaultsMode,
26
- authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
27
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
- region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
32
- requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
33
- retryMode: config?.retryMode ??
34
- loadNodeConfig({
35
- ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
- default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
- }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
- streamCollector: config?.streamCollector ?? streamCollector,
40
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
42
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
43
- };
44
- };
45
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,12 +0,0 @@
1
- const { Sha256 } = require("@aws-crypto/sha256-js");
2
- const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
3
- const getRuntimeConfig = (config) => {
4
- const browserDefaults = getBrowserRuntimeConfig(config);
5
- return {
6
- ...browserDefaults,
7
- ...config,
8
- runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
- };
11
- };
12
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,39 +0,0 @@
1
- const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
3
- const { NoOpLogger } = require("@smithy/core/client");
4
- const { parseUrl } = require("@smithy/core/protocols");
5
- const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
6
- const { defaultWorkDocsHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
7
- const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
8
- const { errorTypeRegistries } = require("./schemas/schemas_0");
9
- exports.getRuntimeConfig = (config) => {
10
- return {
11
- apiVersion: "2016-05-01",
12
- base64Decoder: config?.base64Decoder ?? fromBase64,
13
- base64Encoder: config?.base64Encoder ?? toBase64,
14
- disableHostPrefix: config?.disableHostPrefix ?? false,
15
- endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
16
- extensions: config?.extensions ?? [],
17
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultWorkDocsHttpAuthSchemeProvider,
18
- httpAuthSchemes: config?.httpAuthSchemes ?? [
19
- {
20
- schemeId: "aws.auth#sigv4",
21
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
22
- signer: new AwsSdkSigV4Signer(),
23
- },
24
- ],
25
- logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ?? AwsRestJsonProtocol,
27
- protocolSettings: config?.protocolSettings ?? {
28
- defaultNamespace: "com.amazonaws.workdocs",
29
- errorTypeRegistries,
30
- xmlNamespace: "https://aws.amazon.com/api/v1/",
31
- version: "2016-05-01",
32
- serviceTarget: "AWSGorillaBoyService",
33
- },
34
- serviceId: config?.serviceId ?? "WorkDocs",
35
- urlParser: config?.urlParser ?? parseUrl,
36
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
37
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
38
- };
39
- };