@aws-sdk/client-workdocs 3.1045.0 → 3.1047.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/dist-cjs/auth/httpAuthSchemeProvider.js +4 -4
- package/dist-cjs/endpoint/bdd.js +2 -2
- package/dist-cjs/endpoint/endpointResolver.js +4 -4
- package/dist-cjs/index.js +104 -105
- package/dist-cjs/models/WorkDocsServiceException.js +3 -3
- package/dist-cjs/runtimeConfig.browser.js +12 -14
- package/dist-cjs/runtimeConfig.js +18 -22
- package/dist-cjs/runtimeConfig.shared.js +9 -10
- package/dist-es/WorkDocs.js +1 -1
- package/dist-es/WorkDocsClient.js +5 -5
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/commands/AbortDocumentVersionUploadCommand.js +2 -2
- package/dist-es/commands/ActivateUserCommand.js +2 -2
- package/dist-es/commands/AddResourcePermissionsCommand.js +2 -2
- package/dist-es/commands/CreateCommentCommand.js +2 -2
- package/dist-es/commands/CreateCustomMetadataCommand.js +2 -2
- package/dist-es/commands/CreateFolderCommand.js +2 -2
- package/dist-es/commands/CreateLabelsCommand.js +2 -2
- package/dist-es/commands/CreateNotificationSubscriptionCommand.js +2 -2
- package/dist-es/commands/CreateUserCommand.js +2 -2
- package/dist-es/commands/DeactivateUserCommand.js +2 -2
- package/dist-es/commands/DeleteCommentCommand.js +2 -2
- package/dist-es/commands/DeleteCustomMetadataCommand.js +2 -2
- package/dist-es/commands/DeleteDocumentCommand.js +2 -2
- package/dist-es/commands/DeleteDocumentVersionCommand.js +2 -2
- package/dist-es/commands/DeleteFolderCommand.js +2 -2
- package/dist-es/commands/DeleteFolderContentsCommand.js +2 -2
- package/dist-es/commands/DeleteLabelsCommand.js +2 -2
- package/dist-es/commands/DeleteNotificationSubscriptionCommand.js +2 -2
- package/dist-es/commands/DeleteUserCommand.js +2 -2
- package/dist-es/commands/DescribeActivitiesCommand.js +2 -2
- package/dist-es/commands/DescribeCommentsCommand.js +2 -2
- package/dist-es/commands/DescribeDocumentVersionsCommand.js +2 -2
- package/dist-es/commands/DescribeFolderContentsCommand.js +2 -2
- package/dist-es/commands/DescribeGroupsCommand.js +2 -2
- package/dist-es/commands/DescribeNotificationSubscriptionsCommand.js +2 -2
- package/dist-es/commands/DescribeResourcePermissionsCommand.js +2 -2
- package/dist-es/commands/DescribeRootFoldersCommand.js +2 -2
- package/dist-es/commands/DescribeUsersCommand.js +2 -2
- package/dist-es/commands/GetCurrentUserCommand.js +2 -2
- package/dist-es/commands/GetDocumentCommand.js +2 -2
- package/dist-es/commands/GetDocumentPathCommand.js +2 -2
- package/dist-es/commands/GetDocumentVersionCommand.js +2 -2
- package/dist-es/commands/GetFolderCommand.js +2 -2
- package/dist-es/commands/GetFolderPathCommand.js +2 -2
- package/dist-es/commands/GetResourcesCommand.js +2 -2
- package/dist-es/commands/InitiateDocumentVersionUploadCommand.js +2 -2
- package/dist-es/commands/RemoveAllResourcePermissionsCommand.js +2 -2
- package/dist-es/commands/RemoveResourcePermissionCommand.js +2 -2
- package/dist-es/commands/RestoreDocumentVersionsCommand.js +2 -2
- package/dist-es/commands/SearchResourcesCommand.js +2 -2
- package/dist-es/commands/UpdateDocumentCommand.js +2 -2
- package/dist-es/commands/UpdateDocumentVersionCommand.js +2 -2
- package/dist-es/commands/UpdateFolderCommand.js +2 -2
- package/dist-es/commands/UpdateUserCommand.js +2 -2
- package/dist-es/endpoint/bdd.js +1 -1
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/WorkDocsServiceException.js +1 -1
- package/dist-es/runtimeConfig.browser.js +4 -6
- package/dist-es/runtimeConfig.js +4 -8
- package/dist-es/runtimeConfig.shared.js +3 -4
- package/dist-es/runtimeExtensions.js +2 -2
- package/dist-types/WorkDocsClient.d.ts +5 -5
- package/dist-types/commands/AbortDocumentVersionUploadCommand.d.ts +6 -4
- package/dist-types/commands/ActivateUserCommand.d.ts +6 -4
- package/dist-types/commands/AddResourcePermissionsCommand.d.ts +6 -4
- package/dist-types/commands/CreateCommentCommand.d.ts +6 -4
- package/dist-types/commands/CreateCustomMetadataCommand.d.ts +6 -4
- package/dist-types/commands/CreateFolderCommand.d.ts +6 -4
- package/dist-types/commands/CreateLabelsCommand.d.ts +6 -4
- package/dist-types/commands/CreateNotificationSubscriptionCommand.d.ts +6 -4
- package/dist-types/commands/CreateUserCommand.d.ts +6 -4
- package/dist-types/commands/DeactivateUserCommand.d.ts +6 -4
- package/dist-types/commands/DeleteCommentCommand.d.ts +6 -4
- package/dist-types/commands/DeleteCustomMetadataCommand.d.ts +6 -4
- package/dist-types/commands/DeleteDocumentCommand.d.ts +6 -4
- package/dist-types/commands/DeleteDocumentVersionCommand.d.ts +6 -4
- package/dist-types/commands/DeleteFolderCommand.d.ts +6 -4
- package/dist-types/commands/DeleteFolderContentsCommand.d.ts +6 -4
- package/dist-types/commands/DeleteLabelsCommand.d.ts +6 -4
- package/dist-types/commands/DeleteNotificationSubscriptionCommand.d.ts +6 -4
- package/dist-types/commands/DeleteUserCommand.d.ts +6 -4
- package/dist-types/commands/DescribeActivitiesCommand.d.ts +6 -4
- package/dist-types/commands/DescribeCommentsCommand.d.ts +6 -4
- package/dist-types/commands/DescribeDocumentVersionsCommand.d.ts +6 -4
- package/dist-types/commands/DescribeFolderContentsCommand.d.ts +6 -4
- package/dist-types/commands/DescribeGroupsCommand.d.ts +6 -4
- package/dist-types/commands/DescribeNotificationSubscriptionsCommand.d.ts +6 -4
- package/dist-types/commands/DescribeResourcePermissionsCommand.d.ts +6 -4
- package/dist-types/commands/DescribeRootFoldersCommand.d.ts +6 -4
- package/dist-types/commands/DescribeUsersCommand.d.ts +6 -4
- package/dist-types/commands/GetCurrentUserCommand.d.ts +6 -4
- package/dist-types/commands/GetDocumentCommand.d.ts +6 -4
- package/dist-types/commands/GetDocumentPathCommand.d.ts +6 -4
- package/dist-types/commands/GetDocumentVersionCommand.d.ts +6 -4
- package/dist-types/commands/GetFolderCommand.d.ts +6 -4
- package/dist-types/commands/GetFolderPathCommand.d.ts +6 -4
- package/dist-types/commands/GetResourcesCommand.d.ts +6 -4
- package/dist-types/commands/InitiateDocumentVersionUploadCommand.d.ts +6 -4
- package/dist-types/commands/RemoveAllResourcePermissionsCommand.d.ts +6 -4
- package/dist-types/commands/RemoveResourcePermissionCommand.d.ts +6 -4
- package/dist-types/commands/RestoreDocumentVersionsCommand.d.ts +6 -4
- package/dist-types/commands/SearchResourcesCommand.d.ts +6 -4
- package/dist-types/commands/UpdateDocumentCommand.d.ts +6 -4
- package/dist-types/commands/UpdateDocumentVersionCommand.d.ts +6 -4
- package/dist-types/commands/UpdateFolderCommand.d.ts +6 -4
- package/dist-types/commands/UpdateUserCommand.d.ts +6 -4
- package/dist-types/endpoint/bdd.d.ts +1 -1
- package/dist-types/extensionConfiguration.d.ts +1 -1
- package/dist-types/models/WorkDocsServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/WorkDocsClient.d.ts +8 -14
- package/dist-types/ts3.4/commands/AbortDocumentVersionUploadCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ActivateUserCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/AddResourcePermissionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateCommentCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateCustomMetadataCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateFolderCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateLabelsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateNotificationSubscriptionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeactivateUserCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteCommentCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteCustomMetadataCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteDocumentCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteDocumentVersionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteFolderCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteFolderContentsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteLabelsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteNotificationSubscriptionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeActivitiesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeCommentsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeDocumentVersionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeFolderContentsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeGroupsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeNotificationSubscriptionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeResourcePermissionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeRootFoldersCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeUsersCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetCurrentUserCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetDocumentCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetDocumentPathCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetDocumentVersionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetFolderCommand.d.ts +6 -8
- package/dist-types/ts3.4/commands/GetFolderPathCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetResourcesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/InitiateDocumentVersionUploadCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/RemoveAllResourcePermissionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/RemoveResourcePermissionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/RestoreDocumentVersionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SearchResourcesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateDocumentCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateDocumentVersionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateFolderCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +6 -4
- package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/WorkDocsServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +13 -34
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveHttpAuthSchemeConfig = exports.defaultWorkDocsHttpAuthSchemeProvider = exports.defaultWorkDocsHttpAuthSchemeParametersProvider = void 0;
|
|
4
4
|
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const
|
|
5
|
+
const client_1 = require("@smithy/core/client");
|
|
6
6
|
const defaultWorkDocsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
|
-
operation: (0,
|
|
9
|
-
region: await (0,
|
|
8
|
+
operation: (0, client_1.getSmithyContext)(context).operation,
|
|
9
|
+
region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
|
|
10
10
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
11
|
})(),
|
|
12
12
|
};
|
|
@@ -40,7 +40,7 @@ exports.defaultWorkDocsHttpAuthSchemeProvider = defaultWorkDocsHttpAuthSchemePro
|
|
|
40
40
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
41
41
|
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
42
42
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference: (0,
|
|
43
|
+
authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bdd = void 0;
|
|
4
|
-
const
|
|
4
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
5
5
|
const k = "ref";
|
|
6
6
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
7
|
const _data = {
|
|
@@ -46,4 +46,4 @@ const nodes = new Int32Array([
|
|
|
46
46
|
3, r + 1, 13,
|
|
47
47
|
4, r + 2, r + 3,
|
|
48
48
|
]);
|
|
49
|
-
exports.bdd =
|
|
49
|
+
exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
-
const
|
|
5
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
6
|
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new
|
|
7
|
+
const cache = new endpoints_1.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0,
|
|
12
|
+
return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
17
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
18
|
-
|
|
18
|
+
endpoints_1.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|