@aws-sdk/client-partnercentral-account 3.942.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/LICENSE +201 -0
- package/README.md +421 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +1701 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +56 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +41 -0
- package/dist-es/PartnerCentralAccount.js +61 -0
- package/dist-es/PartnerCentralAccountClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/AcceptConnectionInvitationCommand.js +16 -0
- package/dist-es/commands/AssociateAwsTrainingCertificationEmailDomainCommand.js +16 -0
- package/dist-es/commands/CancelConnectionCommand.js +16 -0
- package/dist-es/commands/CancelConnectionInvitationCommand.js +16 -0
- package/dist-es/commands/CancelProfileUpdateTaskCommand.js +16 -0
- package/dist-es/commands/CreateConnectionInvitationCommand.js +16 -0
- package/dist-es/commands/CreatePartnerCommand.js +16 -0
- package/dist-es/commands/DisassociateAwsTrainingCertificationEmailDomainCommand.js +16 -0
- package/dist-es/commands/GetAllianceLeadContactCommand.js +16 -0
- package/dist-es/commands/GetConnectionCommand.js +16 -0
- package/dist-es/commands/GetConnectionInvitationCommand.js +16 -0
- package/dist-es/commands/GetConnectionPreferencesCommand.js +16 -0
- package/dist-es/commands/GetPartnerCommand.js +16 -0
- package/dist-es/commands/GetProfileUpdateTaskCommand.js +16 -0
- package/dist-es/commands/GetProfileVisibilityCommand.js +16 -0
- package/dist-es/commands/ListConnectionInvitationsCommand.js +16 -0
- package/dist-es/commands/ListConnectionsCommand.js +16 -0
- package/dist-es/commands/ListPartnersCommand.js +16 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
- package/dist-es/commands/PutAllianceLeadContactCommand.js +16 -0
- package/dist-es/commands/PutProfileVisibilityCommand.js +16 -0
- package/dist-es/commands/RejectConnectionInvitationCommand.js +16 -0
- package/dist-es/commands/SendEmailVerificationCodeCommand.js +16 -0
- package/dist-es/commands/StartProfileUpdateTaskCommand.js +16 -0
- package/dist-es/commands/TagResourceCommand.js +16 -0
- package/dist-es/commands/UntagResourceCommand.js +16 -0
- package/dist-es/commands/UpdateConnectionPreferencesCommand.js +16 -0
- package/dist-es/commands/index.js +27 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/PartnerCentralAccountServiceException.js +8 -0
- package/dist-es/models/enums.js +144 -0
- package/dist-es/models/errors.js +117 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListConnectionInvitationsPaginator.js +4 -0
- package/dist-es/pagination/ListConnectionsPaginator.js +4 -0
- package/dist-es/pagination/ListPartnersPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +51 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +37 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +900 -0
- package/dist-types/PartnerCentralAccount.d.ts +199 -0
- package/dist-types/PartnerCentralAccountClient.d.ts +223 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/AcceptConnectionInvitationCommand.d.ts +123 -0
- package/dist-types/commands/AssociateAwsTrainingCertificationEmailDomainCommand.d.ts +94 -0
- package/dist-types/commands/CancelConnectionCommand.d.ts +123 -0
- package/dist-types/commands/CancelConnectionInvitationCommand.d.ts +107 -0
- package/dist-types/commands/CancelProfileUpdateTaskCommand.d.ts +128 -0
- package/dist-types/commands/CreateConnectionInvitationCommand.d.ts +111 -0
- package/dist-types/commands/CreatePartnerCommand.d.ts +142 -0
- package/dist-types/commands/DisassociateAwsTrainingCertificationEmailDomainCommand.d.ts +90 -0
- package/dist-types/commands/GetAllianceLeadContactCommand.d.ts +98 -0
- package/dist-types/commands/GetConnectionCommand.d.ts +117 -0
- package/dist-types/commands/GetConnectionInvitationCommand.d.ts +103 -0
- package/dist-types/commands/GetConnectionPreferencesCommand.d.ts +93 -0
- package/dist-types/commands/GetPartnerCommand.d.ts +121 -0
- package/dist-types/commands/GetProfileUpdateTaskCommand.d.ts +123 -0
- package/dist-types/commands/GetProfileVisibilityCommand.d.ts +94 -0
- package/dist-types/commands/ListConnectionInvitationsCommand.d.ts +109 -0
- package/dist-types/commands/ListConnectionsCommand.d.ts +119 -0
- package/dist-types/commands/ListPartnersCommand.d.ts +96 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +95 -0
- package/dist-types/commands/PutAllianceLeadContactCommand.d.ts +105 -0
- package/dist-types/commands/PutProfileVisibilityCommand.d.ts +95 -0
- package/dist-types/commands/RejectConnectionInvitationCommand.d.ts +108 -0
- package/dist-types/commands/SendEmailVerificationCodeCommand.d.ts +88 -0
- package/dist-types/commands/StartProfileUpdateTaskCommand.d.ts +147 -0
- package/dist-types/commands/TagResourceCommand.d.ts +96 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +93 -0
- package/dist-types/commands/UpdateConnectionPreferencesCommand.d.ts +101 -0
- package/dist-types/commands/index.d.ts +27 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +16 -0
- package/dist-types/models/PartnerCentralAccountServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +280 -0
- package/dist-types/models/errors.d.ts +137 -0
- package/dist-types/models/models_0.d.ts +2083 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListConnectionInvitationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListConnectionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPartnersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/runtimeConfig.browser.d.ts +51 -0
- package/dist-types/runtimeConfig.d.ts +51 -0
- package/dist-types/runtimeConfig.native.d.ts +50 -0
- package/dist-types/runtimeConfig.shared.d.ts +22 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +126 -0
- package/dist-types/ts3.4/PartnerCentralAccount.d.ts +478 -0
- package/dist-types/ts3.4/PartnerCentralAccountClient.d.ts +288 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/AcceptConnectionInvitationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/AssociateAwsTrainingCertificationEmailDomainCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CancelConnectionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CancelConnectionInvitationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CancelProfileUpdateTaskCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateConnectionInvitationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreatePartnerCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DisassociateAwsTrainingCertificationEmailDomainCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAllianceLeadContactCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetConnectionInvitationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetConnectionPreferencesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetPartnerCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetProfileUpdateTaskCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetProfileVisibilityCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListConnectionInvitationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListConnectionsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListPartnersCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutAllianceLeadContactCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutProfileVisibilityCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RejectConnectionInvitationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SendEmailVerificationCodeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartProfileUpdateTaskCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateConnectionPreferencesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +27 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +11 -0
- package/dist-types/ts3.4/models/PartnerCentralAccountServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +177 -0
- package/dist-types/ts3.4/models/errors.d.ts +74 -0
- package/dist-types/ts3.4/models/models_0.d.ts +544 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListConnectionInvitationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConnectionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPartnersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +101 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +133 -0
- package/package.json +99 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
+
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
|
|
5
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
|
+
import { Hash } from "@smithy/hash-node";
|
|
7
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
8
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
11
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
16
|
+
export const getRuntimeConfig = (config) => {
|
|
17
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
18
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
21
|
+
awsCheckVersion(process.version);
|
|
22
|
+
const loaderConfig = {
|
|
23
|
+
profile: config?.profile,
|
|
24
|
+
logger: clientSharedValues.logger,
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
...clientSharedValues,
|
|
28
|
+
...config,
|
|
29
|
+
runtime: "node",
|
|
30
|
+
defaultsMode,
|
|
31
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
32
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
33
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
34
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
35
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
36
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
37
|
+
region: config?.region ??
|
|
38
|
+
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
39
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
loadNodeConfig({
|
|
42
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
44
|
+
}, config),
|
|
45
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
49
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export 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
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
4
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
5
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
6
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
|
+
import { defaultPartnerCentralAccountHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
export const getRuntimeConfig = (config) => {
|
|
10
|
+
return {
|
|
11
|
+
apiVersion: "2025-04-04",
|
|
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 ?? defaultPartnerCentralAccountHttpAuthSchemeProvider,
|
|
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 ??
|
|
27
|
+
new AwsJson1_0Protocol({
|
|
28
|
+
defaultNamespace: "com.amazonaws.partnercentralaccount",
|
|
29
|
+
serviceTarget: "PartnerCentralAccount",
|
|
30
|
+
awsQueryCompatible: false,
|
|
31
|
+
}),
|
|
32
|
+
serviceId: config?.serviceId ?? "PartnerCentral Account",
|
|
33
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
34
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
35
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
7
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
9
|
+
};
|