@aws-sdk/client-workdocs 3.45.0 → 3.47.2

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,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AbortDocumentVersionUploadCommandInput, AbortDocumentVersionUploadCommandOutput } from "./commands/AbortDocumentVersionUploadCommand";
10
10
  import { ActivateUserCommandInput, ActivateUserCommandOutput } from "./commands/ActivateUserCommand";
@@ -149,6 +149,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
149
149
  * @internal
150
150
  */
151
151
  defaultUserAgentProvider?: Provider<__UserAgent>;
152
+ /**
153
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
154
+ */
155
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
152
156
  }
153
157
  declare type WorkDocsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
154
158
  /**
@@ -28,12 +28,6 @@ export interface EntityNotExistsException extends __SmithyException, $MetadataBe
28
28
  Message?: string;
29
29
  EntityIds?: string[];
30
30
  }
31
- export declare namespace EntityNotExistsException {
32
- /**
33
- * @internal
34
- */
35
- const filterSensitiveLog: (obj: EntityNotExistsException) => any;
36
- }
37
31
  /**
38
32
  * <p>The AWS Directory Service cannot reach an on-premises instance. Or a dependency
39
33
  * under the control of the organization is failing, such as a connected Active
@@ -44,12 +38,6 @@ export interface FailedDependencyException extends __SmithyException, $MetadataB
44
38
  $fault: "client";
45
39
  Message?: string;
46
40
  }
47
- export declare namespace FailedDependencyException {
48
- /**
49
- * @internal
50
- */
51
- const filterSensitiveLog: (obj: FailedDependencyException) => any;
52
- }
53
41
  /**
54
42
  * <p>The specified document version is not in the INITIALIZED state.</p>
55
43
  */
@@ -58,12 +46,6 @@ export interface ProhibitedStateException extends __SmithyException, $MetadataBe
58
46
  $fault: "client";
59
47
  Message?: string;
60
48
  }
61
- export declare namespace ProhibitedStateException {
62
- /**
63
- * @internal
64
- */
65
- const filterSensitiveLog: (obj: ProhibitedStateException) => any;
66
- }
67
49
  /**
68
50
  * <p>One or more of the dependencies is unavailable.</p>
69
51
  */
@@ -72,12 +54,6 @@ export interface ServiceUnavailableException extends __SmithyException, $Metadat
72
54
  $fault: "server";
73
55
  Message?: string;
74
56
  }
75
- export declare namespace ServiceUnavailableException {
76
- /**
77
- * @internal
78
- */
79
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
80
- }
81
57
  /**
82
58
  * <p>The operation is not permitted.</p>
83
59
  */
@@ -87,12 +63,6 @@ export interface UnauthorizedOperationException extends __SmithyException, $Meta
87
63
  Message?: string;
88
64
  Code?: string;
89
65
  }
90
- export declare namespace UnauthorizedOperationException {
91
- /**
92
- * @internal
93
- */
94
- const filterSensitiveLog: (obj: UnauthorizedOperationException) => any;
95
- }
96
66
  /**
97
67
  * <p>The caller does not have access to perform the action on the resource.</p>
98
68
  */
@@ -101,12 +71,6 @@ export interface UnauthorizedResourceAccessException extends __SmithyException,
101
71
  $fault: "client";
102
72
  Message?: string;
103
73
  }
104
- export declare namespace UnauthorizedResourceAccessException {
105
- /**
106
- * @internal
107
- */
108
- const filterSensitiveLog: (obj: UnauthorizedResourceAccessException) => any;
109
- }
110
74
  export interface ActivateUserRequest {
111
75
  /**
112
76
  * <p>The ID of the user.</p>
@@ -760,12 +724,6 @@ export interface DocumentLockedForCommentsException extends __SmithyException, $
760
724
  $fault: "client";
761
725
  Message?: string;
762
726
  }
763
- export declare namespace DocumentLockedForCommentsException {
764
- /**
765
- * @internal
766
- */
767
- const filterSensitiveLog: (obj: DocumentLockedForCommentsException) => any;
768
- }
769
727
  /**
770
728
  * <p>The requested operation is not allowed on the specified comment object.</p>
771
729
  */
@@ -774,12 +732,6 @@ export interface InvalidCommentOperationException extends __SmithyException, $Me
774
732
  $fault: "client";
775
733
  Message?: string;
776
734
  }
777
- export declare namespace InvalidCommentOperationException {
778
- /**
779
- * @internal
780
- */
781
- const filterSensitiveLog: (obj: InvalidCommentOperationException) => any;
782
- }
783
735
  export interface CreateCustomMetadataRequest {
784
736
  /**
785
737
  * <p>Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.</p>
@@ -824,12 +776,6 @@ export interface CustomMetadataLimitExceededException extends __SmithyException,
824
776
  $fault: "client";
825
777
  Message?: string;
826
778
  }
827
- export declare namespace CustomMetadataLimitExceededException {
828
- /**
829
- * @internal
830
- */
831
- const filterSensitiveLog: (obj: CustomMetadataLimitExceededException) => any;
832
- }
833
779
  /**
834
780
  * <p>Another operation is in progress on the resource that conflicts with the current operation.</p>
835
781
  */
@@ -838,12 +784,6 @@ export interface ConflictingOperationException extends __SmithyException, $Metad
838
784
  $fault: "client";
839
785
  Message?: string;
840
786
  }
841
- export declare namespace ConflictingOperationException {
842
- /**
843
- * @internal
844
- */
845
- const filterSensitiveLog: (obj: ConflictingOperationException) => any;
846
- }
847
787
  export interface CreateFolderRequest {
848
788
  /**
849
789
  * <p>Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.</p>
@@ -946,12 +886,6 @@ export interface EntityAlreadyExistsException extends __SmithyException, $Metada
946
886
  $fault: "client";
947
887
  Message?: string;
948
888
  }
949
- export declare namespace EntityAlreadyExistsException {
950
- /**
951
- * @internal
952
- */
953
- const filterSensitiveLog: (obj: EntityAlreadyExistsException) => any;
954
- }
955
889
  /**
956
890
  * <p>The maximum of 100,000 folders under the parent folder has been exceeded.</p>
957
891
  */
@@ -960,12 +894,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
960
894
  $fault: "client";
961
895
  Message?: string;
962
896
  }
963
- export declare namespace LimitExceededException {
964
- /**
965
- * @internal
966
- */
967
- const filterSensitiveLog: (obj: LimitExceededException) => any;
968
- }
969
897
  export interface CreateLabelsRequest {
970
898
  /**
971
899
  * <p>The ID of the resource.</p>
@@ -1003,12 +931,6 @@ export interface TooManyLabelsException extends __SmithyException, $MetadataBear
1003
931
  $fault: "client";
1004
932
  Message?: string;
1005
933
  }
1006
- export declare namespace TooManyLabelsException {
1007
- /**
1008
- * @internal
1009
- */
1010
- const filterSensitiveLog: (obj: TooManyLabelsException) => any;
1011
- }
1012
934
  export declare enum SubscriptionProtocolType {
1013
935
  HTTPS = "HTTPS"
1014
936
  }
@@ -1085,12 +1007,6 @@ export interface TooManySubscriptionsException extends __SmithyException, $Metad
1085
1007
  $fault: "client";
1086
1008
  Message?: string;
1087
1009
  }
1088
- export declare namespace TooManySubscriptionsException {
1089
- /**
1090
- * @internal
1091
- */
1092
- const filterSensitiveLog: (obj: TooManySubscriptionsException) => any;
1093
- }
1094
1010
  export interface CreateUserRequest {
1095
1011
  /**
1096
1012
  * <p>The ID of the organization.</p>
@@ -1233,12 +1149,6 @@ export interface ConcurrentModificationException extends __SmithyException, $Met
1233
1149
  $fault: "client";
1234
1150
  Message?: string;
1235
1151
  }
1236
- export declare namespace ConcurrentModificationException {
1237
- /**
1238
- * @internal
1239
- */
1240
- const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
1241
- }
1242
1152
  export interface DeleteDocumentRequest {
1243
1153
  /**
1244
1154
  * <p>Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.</p>
@@ -1433,12 +1343,6 @@ export interface InvalidArgumentException extends __SmithyException, $MetadataBe
1433
1343
  $fault: "client";
1434
1344
  Message?: string;
1435
1345
  }
1436
- export declare namespace InvalidArgumentException {
1437
- /**
1438
- * @internal
1439
- */
1440
- const filterSensitiveLog: (obj: InvalidArgumentException) => any;
1441
- }
1442
1346
  export interface DescribeCommentsRequest {
1443
1347
  /**
1444
1348
  * <p>Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.</p>
@@ -2041,12 +1945,6 @@ export interface RequestedEntityTooLargeException extends __SmithyException, $Me
2041
1945
  $fault: "client";
2042
1946
  Message?: string;
2043
1947
  }
2044
- export declare namespace RequestedEntityTooLargeException {
2045
- /**
2046
- * @internal
2047
- */
2048
- const filterSensitiveLog: (obj: RequestedEntityTooLargeException) => any;
2049
- }
2050
1948
  export interface GetCurrentUserRequest {
2051
1949
  /**
2052
1950
  * <p>Amazon WorkDocs authentication token.</p>
@@ -2117,12 +2015,6 @@ export interface InvalidPasswordException extends __SmithyException, $MetadataBe
2117
2015
  $fault: "client";
2118
2016
  Message?: string;
2119
2017
  }
2120
- export declare namespace InvalidPasswordException {
2121
- /**
2122
- * @internal
2123
- */
2124
- const filterSensitiveLog: (obj: InvalidPasswordException) => any;
2125
- }
2126
2018
  export interface GetDocumentPathRequest {
2127
2019
  /**
2128
2020
  * <p>Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.</p>
@@ -2385,12 +2277,6 @@ export interface DraftUploadOutOfSyncException extends __SmithyException, $Metad
2385
2277
  $fault: "client";
2386
2278
  Message?: string;
2387
2279
  }
2388
- export declare namespace DraftUploadOutOfSyncException {
2389
- /**
2390
- * @internal
2391
- */
2392
- const filterSensitiveLog: (obj: DraftUploadOutOfSyncException) => any;
2393
- }
2394
2280
  export interface InitiateDocumentVersionUploadRequest {
2395
2281
  /**
2396
2282
  * <p>Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.</p>
@@ -2476,12 +2362,6 @@ export interface ResourceAlreadyCheckedOutException extends __SmithyException, $
2476
2362
  $fault: "client";
2477
2363
  Message?: string;
2478
2364
  }
2479
- export declare namespace ResourceAlreadyCheckedOutException {
2480
- /**
2481
- * @internal
2482
- */
2483
- const filterSensitiveLog: (obj: ResourceAlreadyCheckedOutException) => any;
2484
- }
2485
2365
  /**
2486
2366
  * <p>The storage limit has been exceeded.</p>
2487
2367
  */
@@ -2490,12 +2370,6 @@ export interface StorageLimitExceededException extends __SmithyException, $Metad
2490
2370
  $fault: "client";
2491
2371
  Message?: string;
2492
2372
  }
2493
- export declare namespace StorageLimitExceededException {
2494
- /**
2495
- * @internal
2496
- */
2497
- const filterSensitiveLog: (obj: StorageLimitExceededException) => any;
2498
- }
2499
2373
  /**
2500
2374
  * <p>The storage limit will be exceeded.</p>
2501
2375
  */
@@ -2504,12 +2378,6 @@ export interface StorageLimitWillExceedException extends __SmithyException, $Met
2504
2378
  $fault: "client";
2505
2379
  Message?: string;
2506
2380
  }
2507
- export declare namespace StorageLimitWillExceedException {
2508
- /**
2509
- * @internal
2510
- */
2511
- const filterSensitiveLog: (obj: StorageLimitWillExceedException) => any;
2512
- }
2513
2381
  export interface RemoveAllResourcePermissionsRequest {
2514
2382
  /**
2515
2383
  * <p>Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.</p>
@@ -2587,12 +2455,6 @@ export interface InvalidOperationException extends __SmithyException, $MetadataB
2587
2455
  $fault: "client";
2588
2456
  Message?: string;
2589
2457
  }
2590
- export declare namespace InvalidOperationException {
2591
- /**
2592
- * @internal
2593
- */
2594
- const filterSensitiveLog: (obj: InvalidOperationException) => any;
2595
- }
2596
2458
  export declare enum DocumentVersionStatus {
2597
2459
  ACTIVE = "ACTIVE"
2598
2460
  }
@@ -2658,12 +2520,6 @@ export interface DeactivatingLastSystemUserException extends __SmithyException,
2658
2520
  Message?: string;
2659
2521
  Code?: string;
2660
2522
  }
2661
- export declare namespace DeactivatingLastSystemUserException {
2662
- /**
2663
- * @internal
2664
- */
2665
- const filterSensitiveLog: (obj: DeactivatingLastSystemUserException) => any;
2666
- }
2667
2523
  /**
2668
2524
  * <p>The user is undergoing transfer of ownership.</p>
2669
2525
  */
@@ -2672,12 +2528,6 @@ export interface IllegalUserStateException extends __SmithyException, $MetadataB
2672
2528
  $fault: "client";
2673
2529
  Message?: string;
2674
2530
  }
2675
- export declare namespace IllegalUserStateException {
2676
- /**
2677
- * @internal
2678
- */
2679
- const filterSensitiveLog: (obj: IllegalUserStateException) => any;
2680
- }
2681
2531
  export declare enum BooleanEnumType {
2682
2532
  FALSE = "FALSE",
2683
2533
  TRUE = "TRUE"
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { WorkDocsClientConfig } from "./WorkDocsClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: WorkDocsClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: WorkDocsClientConfig) => {
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,18 +1,19 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { WorkDocsClientConfig } from "./WorkDocsClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: WorkDocsClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<string>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: WorkDocsClientConfig) => {
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AbortDocumentVersionUploadCommandInput, AbortDocumentVersionUploadCommandOutput } from "./commands/AbortDocumentVersionUploadCommand";
10
10
  import { ActivateUserCommandInput, ActivateUserCommandOutput } from "./commands/ActivateUserCommand";
@@ -92,6 +92,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
92
92
  regionInfoProvider?: RegionInfoProvider;
93
93
 
94
94
  defaultUserAgentProvider?: Provider<__UserAgent>;
95
+
96
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
95
97
  }
96
98
  declare type WorkDocsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
97
99