@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.
Files changed (167) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +421 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +1701 -0
  7. package/dist-cjs/runtimeConfig.browser.js +39 -0
  8. package/dist-cjs/runtimeConfig.js +56 -0
  9. package/dist-cjs/runtimeConfig.native.js +15 -0
  10. package/dist-cjs/runtimeConfig.shared.js +41 -0
  11. package/dist-es/PartnerCentralAccount.js +61 -0
  12. package/dist-es/PartnerCentralAccountClient.js +50 -0
  13. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  14. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  15. package/dist-es/commands/AcceptConnectionInvitationCommand.js +16 -0
  16. package/dist-es/commands/AssociateAwsTrainingCertificationEmailDomainCommand.js +16 -0
  17. package/dist-es/commands/CancelConnectionCommand.js +16 -0
  18. package/dist-es/commands/CancelConnectionInvitationCommand.js +16 -0
  19. package/dist-es/commands/CancelProfileUpdateTaskCommand.js +16 -0
  20. package/dist-es/commands/CreateConnectionInvitationCommand.js +16 -0
  21. package/dist-es/commands/CreatePartnerCommand.js +16 -0
  22. package/dist-es/commands/DisassociateAwsTrainingCertificationEmailDomainCommand.js +16 -0
  23. package/dist-es/commands/GetAllianceLeadContactCommand.js +16 -0
  24. package/dist-es/commands/GetConnectionCommand.js +16 -0
  25. package/dist-es/commands/GetConnectionInvitationCommand.js +16 -0
  26. package/dist-es/commands/GetConnectionPreferencesCommand.js +16 -0
  27. package/dist-es/commands/GetPartnerCommand.js +16 -0
  28. package/dist-es/commands/GetProfileUpdateTaskCommand.js +16 -0
  29. package/dist-es/commands/GetProfileVisibilityCommand.js +16 -0
  30. package/dist-es/commands/ListConnectionInvitationsCommand.js +16 -0
  31. package/dist-es/commands/ListConnectionsCommand.js +16 -0
  32. package/dist-es/commands/ListPartnersCommand.js +16 -0
  33. package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  34. package/dist-es/commands/PutAllianceLeadContactCommand.js +16 -0
  35. package/dist-es/commands/PutProfileVisibilityCommand.js +16 -0
  36. package/dist-es/commands/RejectConnectionInvitationCommand.js +16 -0
  37. package/dist-es/commands/SendEmailVerificationCodeCommand.js +16 -0
  38. package/dist-es/commands/StartProfileUpdateTaskCommand.js +16 -0
  39. package/dist-es/commands/TagResourceCommand.js +16 -0
  40. package/dist-es/commands/UntagResourceCommand.js +16 -0
  41. package/dist-es/commands/UpdateConnectionPreferencesCommand.js +16 -0
  42. package/dist-es/commands/index.js +27 -0
  43. package/dist-es/endpoint/EndpointParameters.js +11 -0
  44. package/dist-es/endpoint/endpointResolver.js +14 -0
  45. package/dist-es/endpoint/ruleset.js +4 -0
  46. package/dist-es/extensionConfiguration.js +1 -0
  47. package/dist-es/index.js +7 -0
  48. package/dist-es/models/PartnerCentralAccountServiceException.js +8 -0
  49. package/dist-es/models/enums.js +144 -0
  50. package/dist-es/models/errors.js +117 -0
  51. package/dist-es/models/models_0.js +1 -0
  52. package/dist-es/pagination/Interfaces.js +1 -0
  53. package/dist-es/pagination/ListConnectionInvitationsPaginator.js +4 -0
  54. package/dist-es/pagination/ListConnectionsPaginator.js +4 -0
  55. package/dist-es/pagination/ListPartnersPaginator.js +4 -0
  56. package/dist-es/pagination/index.js +4 -0
  57. package/dist-es/runtimeConfig.browser.js +34 -0
  58. package/dist-es/runtimeConfig.js +51 -0
  59. package/dist-es/runtimeConfig.native.js +11 -0
  60. package/dist-es/runtimeConfig.shared.js +37 -0
  61. package/dist-es/runtimeExtensions.js +9 -0
  62. package/dist-es/schemas/schemas_0.js +900 -0
  63. package/dist-types/PartnerCentralAccount.d.ts +199 -0
  64. package/dist-types/PartnerCentralAccountClient.d.ts +223 -0
  65. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  66. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  67. package/dist-types/commands/AcceptConnectionInvitationCommand.d.ts +123 -0
  68. package/dist-types/commands/AssociateAwsTrainingCertificationEmailDomainCommand.d.ts +94 -0
  69. package/dist-types/commands/CancelConnectionCommand.d.ts +123 -0
  70. package/dist-types/commands/CancelConnectionInvitationCommand.d.ts +107 -0
  71. package/dist-types/commands/CancelProfileUpdateTaskCommand.d.ts +128 -0
  72. package/dist-types/commands/CreateConnectionInvitationCommand.d.ts +111 -0
  73. package/dist-types/commands/CreatePartnerCommand.d.ts +142 -0
  74. package/dist-types/commands/DisassociateAwsTrainingCertificationEmailDomainCommand.d.ts +90 -0
  75. package/dist-types/commands/GetAllianceLeadContactCommand.d.ts +98 -0
  76. package/dist-types/commands/GetConnectionCommand.d.ts +117 -0
  77. package/dist-types/commands/GetConnectionInvitationCommand.d.ts +103 -0
  78. package/dist-types/commands/GetConnectionPreferencesCommand.d.ts +93 -0
  79. package/dist-types/commands/GetPartnerCommand.d.ts +121 -0
  80. package/dist-types/commands/GetProfileUpdateTaskCommand.d.ts +123 -0
  81. package/dist-types/commands/GetProfileVisibilityCommand.d.ts +94 -0
  82. package/dist-types/commands/ListConnectionInvitationsCommand.d.ts +109 -0
  83. package/dist-types/commands/ListConnectionsCommand.d.ts +119 -0
  84. package/dist-types/commands/ListPartnersCommand.d.ts +96 -0
  85. package/dist-types/commands/ListTagsForResourceCommand.d.ts +95 -0
  86. package/dist-types/commands/PutAllianceLeadContactCommand.d.ts +105 -0
  87. package/dist-types/commands/PutProfileVisibilityCommand.d.ts +95 -0
  88. package/dist-types/commands/RejectConnectionInvitationCommand.d.ts +108 -0
  89. package/dist-types/commands/SendEmailVerificationCodeCommand.d.ts +88 -0
  90. package/dist-types/commands/StartProfileUpdateTaskCommand.d.ts +147 -0
  91. package/dist-types/commands/TagResourceCommand.d.ts +96 -0
  92. package/dist-types/commands/UntagResourceCommand.d.ts +93 -0
  93. package/dist-types/commands/UpdateConnectionPreferencesCommand.d.ts +101 -0
  94. package/dist-types/commands/index.d.ts +27 -0
  95. package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
  96. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  97. package/dist-types/endpoint/ruleset.d.ts +2 -0
  98. package/dist-types/extensionConfiguration.d.ts +9 -0
  99. package/dist-types/index.d.ts +16 -0
  100. package/dist-types/models/PartnerCentralAccountServiceException.d.ts +14 -0
  101. package/dist-types/models/enums.d.ts +280 -0
  102. package/dist-types/models/errors.d.ts +137 -0
  103. package/dist-types/models/models_0.d.ts +2083 -0
  104. package/dist-types/pagination/Interfaces.d.ts +8 -0
  105. package/dist-types/pagination/ListConnectionInvitationsPaginator.d.ts +7 -0
  106. package/dist-types/pagination/ListConnectionsPaginator.d.ts +7 -0
  107. package/dist-types/pagination/ListPartnersPaginator.d.ts +7 -0
  108. package/dist-types/pagination/index.d.ts +4 -0
  109. package/dist-types/runtimeConfig.browser.d.ts +51 -0
  110. package/dist-types/runtimeConfig.d.ts +51 -0
  111. package/dist-types/runtimeConfig.native.d.ts +50 -0
  112. package/dist-types/runtimeConfig.shared.d.ts +22 -0
  113. package/dist-types/runtimeExtensions.d.ts +17 -0
  114. package/dist-types/schemas/schemas_0.d.ts +126 -0
  115. package/dist-types/ts3.4/PartnerCentralAccount.d.ts +478 -0
  116. package/dist-types/ts3.4/PartnerCentralAccountClient.d.ts +288 -0
  117. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  118. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  119. package/dist-types/ts3.4/commands/AcceptConnectionInvitationCommand.d.ts +51 -0
  120. package/dist-types/ts3.4/commands/AssociateAwsTrainingCertificationEmailDomainCommand.d.ts +51 -0
  121. package/dist-types/ts3.4/commands/CancelConnectionCommand.d.ts +50 -0
  122. package/dist-types/ts3.4/commands/CancelConnectionInvitationCommand.d.ts +51 -0
  123. package/dist-types/ts3.4/commands/CancelProfileUpdateTaskCommand.d.ts +51 -0
  124. package/dist-types/ts3.4/commands/CreateConnectionInvitationCommand.d.ts +51 -0
  125. package/dist-types/ts3.4/commands/CreatePartnerCommand.d.ts +50 -0
  126. package/dist-types/ts3.4/commands/DisassociateAwsTrainingCertificationEmailDomainCommand.d.ts +51 -0
  127. package/dist-types/ts3.4/commands/GetAllianceLeadContactCommand.d.ts +51 -0
  128. package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +50 -0
  129. package/dist-types/ts3.4/commands/GetConnectionInvitationCommand.d.ts +51 -0
  130. package/dist-types/ts3.4/commands/GetConnectionPreferencesCommand.d.ts +51 -0
  131. package/dist-types/ts3.4/commands/GetPartnerCommand.d.ts +47 -0
  132. package/dist-types/ts3.4/commands/GetProfileUpdateTaskCommand.d.ts +51 -0
  133. package/dist-types/ts3.4/commands/GetProfileVisibilityCommand.d.ts +51 -0
  134. package/dist-types/ts3.4/commands/ListConnectionInvitationsCommand.d.ts +51 -0
  135. package/dist-types/ts3.4/commands/ListConnectionsCommand.d.ts +50 -0
  136. package/dist-types/ts3.4/commands/ListPartnersCommand.d.ts +47 -0
  137. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  138. package/dist-types/ts3.4/commands/PutAllianceLeadContactCommand.d.ts +51 -0
  139. package/dist-types/ts3.4/commands/PutProfileVisibilityCommand.d.ts +51 -0
  140. package/dist-types/ts3.4/commands/RejectConnectionInvitationCommand.d.ts +51 -0
  141. package/dist-types/ts3.4/commands/SendEmailVerificationCodeCommand.d.ts +51 -0
  142. package/dist-types/ts3.4/commands/StartProfileUpdateTaskCommand.d.ts +51 -0
  143. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  144. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  145. package/dist-types/ts3.4/commands/UpdateConnectionPreferencesCommand.d.ts +51 -0
  146. package/dist-types/ts3.4/commands/index.d.ts +27 -0
  147. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  148. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  149. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  150. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  151. package/dist-types/ts3.4/index.d.ts +11 -0
  152. package/dist-types/ts3.4/models/PartnerCentralAccountServiceException.d.ts +9 -0
  153. package/dist-types/ts3.4/models/enums.d.ts +177 -0
  154. package/dist-types/ts3.4/models/errors.d.ts +74 -0
  155. package/dist-types/ts3.4/models/models_0.d.ts +544 -0
  156. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  157. package/dist-types/ts3.4/pagination/ListConnectionInvitationsPaginator.d.ts +11 -0
  158. package/dist-types/ts3.4/pagination/ListConnectionsPaginator.d.ts +11 -0
  159. package/dist-types/ts3.4/pagination/ListPartnersPaginator.d.ts +11 -0
  160. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  161. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  162. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  163. package/dist-types/ts3.4/runtimeConfig.native.d.ts +101 -0
  164. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +27 -0
  165. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  166. package/dist-types/ts3.4/schemas/schemas_0.d.ts +133 -0
  167. 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
+ };