@aws-sdk/client-endusermessaging 3.1145.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 (178) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +370 -0
  3. package/dist-cjs/index.js +1645 -0
  4. package/dist-es/EndUserMessaging.js +79 -0
  5. package/dist-es/EndUserMessagingClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/CreateBrandProfileAttributesCommand.js +4 -0
  10. package/dist-es/commands/CreateBrandProfileCommand.js +4 -0
  11. package/dist-es/commands/CreateBrandProfileFromRegistrationCommand.js +4 -0
  12. package/dist-es/commands/CreateNotifyCodeConfigurationCommand.js +4 -0
  13. package/dist-es/commands/CreateRegistrationsFromBrandProfileCommand.js +4 -0
  14. package/dist-es/commands/DeleteBrandProfileAttributeCommand.js +4 -0
  15. package/dist-es/commands/DeleteBrandProfileCommand.js +4 -0
  16. package/dist-es/commands/DeleteNotifyCodeConfigurationCommand.js +4 -0
  17. package/dist-es/commands/GetBrandProfileAttributeCommand.js +4 -0
  18. package/dist-es/commands/GetBrandProfileCommand.js +4 -0
  19. package/dist-es/commands/GetJobCommand.js +4 -0
  20. package/dist-es/commands/GetNotifyCodeConfigurationCommand.js +4 -0
  21. package/dist-es/commands/ListBrandProfileAttributesCommand.js +4 -0
  22. package/dist-es/commands/ListBrandProfilesCommand.js +4 -0
  23. package/dist-es/commands/ListJobsCommand.js +4 -0
  24. package/dist-es/commands/ListNotifyCodeConfigurationsCommand.js +4 -0
  25. package/dist-es/commands/ListRegistrationsFromBrandProfileCommand.js +4 -0
  26. package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
  27. package/dist-es/commands/SendNotifyCodeVerificationCommand.js +4 -0
  28. package/dist-es/commands/TagResourceCommand.js +4 -0
  29. package/dist-es/commands/UntagResourceCommand.js +4 -0
  30. package/dist-es/commands/UpdateBrandProfileAttributeCommand.js +4 -0
  31. package/dist-es/commands/UpdateBrandProfileCommand.js +4 -0
  32. package/dist-es/commands/UpdateBrandProfileFromRegistrationCommand.js +4 -0
  33. package/dist-es/commands/UpdateNotifyCodeConfigurationCommand.js +4 -0
  34. package/dist-es/commands/UpdateRegistrationsFromBrandProfileCommand.js +4 -0
  35. package/dist-es/commands/ValidateNotifyCodeVerificationCommand.js +4 -0
  36. package/dist-es/commands/index.js +27 -0
  37. package/dist-es/endpoint/EndpointParameters.js +13 -0
  38. package/dist-es/endpoint/bdd.js +46 -0
  39. package/dist-es/endpoint/endpointResolver.js +14 -0
  40. package/dist-es/extensionConfiguration.js +1 -0
  41. package/dist-es/index.js +11 -0
  42. package/dist-es/models/EndUserMessagingServiceException.js +8 -0
  43. package/dist-es/models/enums.js +43 -0
  44. package/dist-es/models/errors.js +99 -0
  45. package/dist-es/models/models_0.js +1 -0
  46. package/dist-es/pagination/Interfaces.js +1 -0
  47. package/dist-es/pagination/ListBrandProfileAttributesPaginator.js +4 -0
  48. package/dist-es/pagination/ListBrandProfilesPaginator.js +4 -0
  49. package/dist-es/pagination/ListJobsPaginator.js +4 -0
  50. package/dist-es/pagination/ListNotifyCodeConfigurationsPaginator.js +4 -0
  51. package/dist-es/pagination/ListRegistrationsFromBrandProfilePaginator.js +4 -0
  52. package/dist-es/pagination/index.js +6 -0
  53. package/dist-es/runtimeConfig.browser.js +29 -0
  54. package/dist-es/runtimeConfig.js +43 -0
  55. package/dist-es/runtimeConfig.native.js +9 -0
  56. package/dist-es/runtimeConfig.shared.js +40 -0
  57. package/dist-es/runtimeExtensions.js +9 -0
  58. package/dist-es/schemas/schemas_0.js +818 -0
  59. package/dist-es/waiters/index.js +2 -0
  60. package/dist-es/waiters/waitForBrandProfileActive.js +58 -0
  61. package/dist-es/waiters/waitForJobSuccess.js +40 -0
  62. package/dist-types/EndUserMessaging.d.ts +256 -0
  63. package/dist-types/EndUserMessagingClient.d.ts +213 -0
  64. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  65. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  66. package/dist-types/commandBuilder.d.ts +18 -0
  67. package/dist-types/commands/CreateBrandProfileAttributesCommand.d.ts +139 -0
  68. package/dist-types/commands/CreateBrandProfileCommand.d.ts +129 -0
  69. package/dist-types/commands/CreateBrandProfileFromRegistrationCommand.d.ts +130 -0
  70. package/dist-types/commands/CreateNotifyCodeConfigurationCommand.d.ts +206 -0
  71. package/dist-types/commands/CreateRegistrationsFromBrandProfileCommand.d.ts +125 -0
  72. package/dist-types/commands/DeleteBrandProfileAttributeCommand.d.ts +110 -0
  73. package/dist-types/commands/DeleteBrandProfileCommand.d.ts +108 -0
  74. package/dist-types/commands/DeleteNotifyCodeConfigurationCommand.d.ts +102 -0
  75. package/dist-types/commands/GetBrandProfileAttributeCommand.d.ts +119 -0
  76. package/dist-types/commands/GetBrandProfileCommand.d.ts +115 -0
  77. package/dist-types/commands/GetJobCommand.d.ts +129 -0
  78. package/dist-types/commands/GetNotifyCodeConfigurationCommand.d.ts +156 -0
  79. package/dist-types/commands/ListBrandProfileAttributesCommand.d.ts +124 -0
  80. package/dist-types/commands/ListBrandProfilesCommand.d.ts +122 -0
  81. package/dist-types/commands/ListJobsCommand.d.ts +133 -0
  82. package/dist-types/commands/ListNotifyCodeConfigurationsCommand.d.ts +159 -0
  83. package/dist-types/commands/ListRegistrationsFromBrandProfileCommand.d.ts +121 -0
  84. package/dist-types/commands/ListTagsForResourceCommand.d.ts +113 -0
  85. package/dist-types/commands/SendNotifyCodeVerificationCommand.d.ts +151 -0
  86. package/dist-types/commands/TagResourceCommand.d.ts +114 -0
  87. package/dist-types/commands/UntagResourceCommand.d.ts +105 -0
  88. package/dist-types/commands/UpdateBrandProfileAttributeCommand.d.ts +127 -0
  89. package/dist-types/commands/UpdateBrandProfileCommand.d.ts +122 -0
  90. package/dist-types/commands/UpdateBrandProfileFromRegistrationCommand.d.ts +123 -0
  91. package/dist-types/commands/UpdateNotifyCodeConfigurationCommand.d.ts +193 -0
  92. package/dist-types/commands/UpdateRegistrationsFromBrandProfileCommand.d.ts +127 -0
  93. package/dist-types/commands/ValidateNotifyCodeVerificationCommand.d.ts +104 -0
  94. package/dist-types/commands/index.d.ts +27 -0
  95. package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  96. package/dist-types/endpoint/bdd.d.ts +2 -0
  97. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  98. package/dist-types/extensionConfiguration.d.ts +9 -0
  99. package/dist-types/index.d.ts +19 -0
  100. package/dist-types/models/EndUserMessagingServiceException.d.ts +14 -0
  101. package/dist-types/models/enums.d.ts +145 -0
  102. package/dist-types/models/errors.d.ts +119 -0
  103. package/dist-types/models/models_0.d.ts +1667 -0
  104. package/dist-types/pagination/Interfaces.d.ts +8 -0
  105. package/dist-types/pagination/ListBrandProfileAttributesPaginator.d.ts +7 -0
  106. package/dist-types/pagination/ListBrandProfilesPaginator.d.ts +7 -0
  107. package/dist-types/pagination/ListJobsPaginator.d.ts +7 -0
  108. package/dist-types/pagination/ListNotifyCodeConfigurationsPaginator.d.ts +7 -0
  109. package/dist-types/pagination/ListRegistrationsFromBrandProfilePaginator.d.ts +7 -0
  110. package/dist-types/pagination/index.d.ts +6 -0
  111. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  112. package/dist-types/runtimeConfig.d.ts +57 -0
  113. package/dist-types/runtimeConfig.native.d.ts +56 -0
  114. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  115. package/dist-types/runtimeExtensions.d.ts +17 -0
  116. package/dist-types/schemas/schemas_0.d.ts +120 -0
  117. package/dist-types/ts3.4/EndUserMessaging.d.ts +515 -0
  118. package/dist-types/ts3.4/EndUserMessagingClient.d.ts +256 -0
  119. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  120. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  121. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  122. package/dist-types/ts3.4/commands/CreateBrandProfileAttributesCommand.d.ts +42 -0
  123. package/dist-types/ts3.4/commands/CreateBrandProfileCommand.d.ts +39 -0
  124. package/dist-types/ts3.4/commands/CreateBrandProfileFromRegistrationCommand.d.ts +42 -0
  125. package/dist-types/ts3.4/commands/CreateNotifyCodeConfigurationCommand.d.ts +42 -0
  126. package/dist-types/ts3.4/commands/CreateRegistrationsFromBrandProfileCommand.d.ts +42 -0
  127. package/dist-types/ts3.4/commands/DeleteBrandProfileAttributeCommand.d.ts +42 -0
  128. package/dist-types/ts3.4/commands/DeleteBrandProfileCommand.d.ts +39 -0
  129. package/dist-types/ts3.4/commands/DeleteNotifyCodeConfigurationCommand.d.ts +42 -0
  130. package/dist-types/ts3.4/commands/GetBrandProfileAttributeCommand.d.ts +39 -0
  131. package/dist-types/ts3.4/commands/GetBrandProfileCommand.d.ts +38 -0
  132. package/dist-types/ts3.4/commands/GetJobCommand.d.ts +38 -0
  133. package/dist-types/ts3.4/commands/GetNotifyCodeConfigurationCommand.d.ts +42 -0
  134. package/dist-types/ts3.4/commands/ListBrandProfileAttributesCommand.d.ts +42 -0
  135. package/dist-types/ts3.4/commands/ListBrandProfilesCommand.d.ts +38 -0
  136. package/dist-types/ts3.4/commands/ListJobsCommand.d.ts +38 -0
  137. package/dist-types/ts3.4/commands/ListNotifyCodeConfigurationsCommand.d.ts +42 -0
  138. package/dist-types/ts3.4/commands/ListRegistrationsFromBrandProfileCommand.d.ts +42 -0
  139. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  140. package/dist-types/ts3.4/commands/SendNotifyCodeVerificationCommand.d.ts +42 -0
  141. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
  142. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  143. package/dist-types/ts3.4/commands/UpdateBrandProfileAttributeCommand.d.ts +42 -0
  144. package/dist-types/ts3.4/commands/UpdateBrandProfileCommand.d.ts +39 -0
  145. package/dist-types/ts3.4/commands/UpdateBrandProfileFromRegistrationCommand.d.ts +42 -0
  146. package/dist-types/ts3.4/commands/UpdateNotifyCodeConfigurationCommand.d.ts +42 -0
  147. package/dist-types/ts3.4/commands/UpdateRegistrationsFromBrandProfileCommand.d.ts +42 -0
  148. package/dist-types/ts3.4/commands/ValidateNotifyCodeVerificationCommand.d.ts +42 -0
  149. package/dist-types/ts3.4/commands/index.d.ts +27 -0
  150. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  151. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  152. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  153. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  154. package/dist-types/ts3.4/index.d.ts +14 -0
  155. package/dist-types/ts3.4/models/EndUserMessagingServiceException.d.ts +9 -0
  156. package/dist-types/ts3.4/models/enums.d.ts +54 -0
  157. package/dist-types/ts3.4/models/errors.d.ts +47 -0
  158. package/dist-types/ts3.4/models/models_0.d.ts +413 -0
  159. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  160. package/dist-types/ts3.4/pagination/ListBrandProfileAttributesPaginator.d.ts +11 -0
  161. package/dist-types/ts3.4/pagination/ListBrandProfilesPaginator.d.ts +11 -0
  162. package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +8 -0
  163. package/dist-types/ts3.4/pagination/ListNotifyCodeConfigurationsPaginator.d.ts +11 -0
  164. package/dist-types/ts3.4/pagination/ListRegistrationsFromBrandProfilePaginator.d.ts +11 -0
  165. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  166. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  167. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  168. package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
  169. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  170. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  171. package/dist-types/ts3.4/schemas/schemas_0.d.ts +115 -0
  172. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  173. package/dist-types/ts3.4/waiters/waitForBrandProfileActive.d.ts +15 -0
  174. package/dist-types/ts3.4/waiters/waitForJobSuccess.d.ts +12 -0
  175. package/dist-types/waiters/index.d.ts +2 -0
  176. package/dist-types/waiters/waitForBrandProfileActive.d.ts +15 -0
  177. package/dist-types/waiters/waitForJobSuccess.d.ts +15 -0
  178. package/package.json +69 -0
@@ -0,0 +1,99 @@
1
+ import { EndUserMessagingServiceException as __BaseException } from "./EndUserMessagingServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "AccessDeniedException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export class ConflictException extends __BaseException {
15
+ name = "ConflictException";
16
+ $fault = "client";
17
+ resourceId;
18
+ resourceType;
19
+ constructor(opts) {
20
+ super({
21
+ name: "ConflictException",
22
+ $fault: "client",
23
+ ...opts,
24
+ });
25
+ Object.setPrototypeOf(this, ConflictException.prototype);
26
+ this.resourceId = opts.resourceId;
27
+ this.resourceType = opts.resourceType;
28
+ }
29
+ }
30
+ export class InternalServerException extends __BaseException {
31
+ name = "InternalServerException";
32
+ $fault = "server";
33
+ $retryable = {};
34
+ constructor(opts) {
35
+ super({
36
+ name: "InternalServerException",
37
+ $fault: "server",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InternalServerException.prototype);
41
+ }
42
+ }
43
+ export class ServiceQuotaExceededException extends __BaseException {
44
+ name = "ServiceQuotaExceededException";
45
+ $fault = "client";
46
+ constructor(opts) {
47
+ super({
48
+ name: "ServiceQuotaExceededException",
49
+ $fault: "client",
50
+ ...opts,
51
+ });
52
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
53
+ }
54
+ }
55
+ export class ThrottlingException extends __BaseException {
56
+ name = "ThrottlingException";
57
+ $fault = "client";
58
+ $retryable = {
59
+ throttling: true,
60
+ };
61
+ constructor(opts) {
62
+ super({
63
+ name: "ThrottlingException",
64
+ $fault: "client",
65
+ ...opts,
66
+ });
67
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
68
+ }
69
+ }
70
+ export class ValidationException extends __BaseException {
71
+ name = "ValidationException";
72
+ $fault = "client";
73
+ fieldList;
74
+ constructor(opts) {
75
+ super({
76
+ name: "ValidationException",
77
+ $fault: "client",
78
+ ...opts,
79
+ });
80
+ Object.setPrototypeOf(this, ValidationException.prototype);
81
+ this.fieldList = opts.fieldList;
82
+ }
83
+ }
84
+ export class ResourceNotFoundException extends __BaseException {
85
+ name = "ResourceNotFoundException";
86
+ $fault = "client";
87
+ resourceId;
88
+ resourceType;
89
+ constructor(opts) {
90
+ super({
91
+ name: "ResourceNotFoundException",
92
+ $fault: "client",
93
+ ...opts,
94
+ });
95
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
96
+ this.resourceId = opts.resourceId;
97
+ this.resourceType = opts.resourceType;
98
+ }
99
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListBrandProfileAttributesCommand, } from "../commands/ListBrandProfileAttributesCommand";
3
+ import { EndUserMessagingClient } from "../EndUserMessagingClient";
4
+ export const paginateListBrandProfileAttributes = createPaginator(EndUserMessagingClient, ListBrandProfileAttributesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListBrandProfilesCommand, } from "../commands/ListBrandProfilesCommand";
3
+ import { EndUserMessagingClient } from "../EndUserMessagingClient";
4
+ export const paginateListBrandProfiles = createPaginator(EndUserMessagingClient, ListBrandProfilesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListJobsCommand } from "../commands/ListJobsCommand";
3
+ import { EndUserMessagingClient } from "../EndUserMessagingClient";
4
+ export const paginateListJobs = createPaginator(EndUserMessagingClient, ListJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListNotifyCodeConfigurationsCommand, } from "../commands/ListNotifyCodeConfigurationsCommand";
3
+ import { EndUserMessagingClient } from "../EndUserMessagingClient";
4
+ export const paginateListNotifyCodeConfigurations = createPaginator(EndUserMessagingClient, ListNotifyCodeConfigurationsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListRegistrationsFromBrandProfileCommand, } from "../commands/ListRegistrationsFromBrandProfileCommand";
3
+ import { EndUserMessagingClient } from "../EndUserMessagingClient";
4
+ export const paginateListRegistrationsFromBrandProfile = createPaginator(EndUserMessagingClient, ListRegistrationsFromBrandProfileCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,6 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListBrandProfileAttributesPaginator";
3
+ export * from "./ListBrandProfilesPaginator";
4
+ export * from "./ListJobsPaginator";
5
+ export * from "./ListNotifyCodeConfigurationsPaginator";
6
+ export * from "./ListRegistrationsFromBrandProfilePaginator";
@@ -0,0 +1,29 @@
1
+ import packageInfo from "../package.json";
2
+ import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
3
+ import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
5
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
6
+ import { calculateBodyLength } from "@smithy/core/serde";
7
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
8
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
9
+ export const getRuntimeConfig = (config) => {
10
+ const defaultsMode = resolveDefaultsModeConfig(config);
11
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
12
+ const clientSharedValues = getSharedRuntimeConfig(config);
13
+ return {
14
+ ...clientSharedValues,
15
+ ...config,
16
+ runtime: "browser",
17
+ defaultsMode,
18
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
19
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
20
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
21
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
22
+ region: config?.region ?? invalidProvider("Region is missing"),
23
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
24
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
25
+ streamCollector: config?.streamCollector ?? streamCollector,
26
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
27
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
28
+ };
29
+ };
@@ -0,0 +1,43 @@
1
+ import packageInfo from "../package.json";
2
+ import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
3
+ import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
4
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
+ import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
+ export 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
+ streamCollector: config?.streamCollector ?? streamCollector,
39
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
40
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
42
+ };
43
+ };
@@ -0,0 +1,9 @@
1
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
2
+ export const getRuntimeConfig = (config) => {
3
+ const browserDefaults = getBrowserRuntimeConfig(config);
4
+ return {
5
+ ...browserDefaults,
6
+ ...config,
7
+ runtime: "react-native",
8
+ };
9
+ };
@@ -0,0 +1,40 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
4
+ import { NoOpLogger } from "@smithy/core/client";
5
+ import { parseUrl } from "@smithy/core/protocols";
6
+ import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
7
+ import { defaultEndUserMessagingHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
10
+ export const getRuntimeConfig = (config) => {
11
+ return {
12
+ apiVersion: "2026-09-21",
13
+ base64Decoder: config?.base64Decoder ?? fromBase64,
14
+ base64Encoder: config?.base64Encoder ?? toBase64,
15
+ disableHostPrefix: config?.disableHostPrefix ?? false,
16
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
17
+ extensions: config?.extensions ?? [],
18
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultEndUserMessagingHttpAuthSchemeProvider,
19
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
20
+ {
21
+ schemeId: "aws.auth#sigv4",
22
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
23
+ signer: new AwsSdkSigV4Signer(),
24
+ },
25
+ ],
26
+ logger: config?.logger ?? new NoOpLogger(),
27
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
28
+ protocolSettings: config?.protocolSettings ?? {
29
+ defaultNamespace: "com.amazonaws.endusermessaging",
30
+ errorTypeRegistries,
31
+ version: "2026-09-21",
32
+ serviceTarget: "EndUserMessaging",
33
+ },
34
+ serviceId: config?.serviceId ?? "EndUserMessaging",
35
+ sha256: config?.sha256 ?? Sha256,
36
+ urlParser: config?.urlParser ?? parseUrl,
37
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
38
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
39
+ };
40
+ };
@@ -0,0 +1,9 @@
1
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration } from "@aws-sdk/core/client";
2
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
3
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
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
+ };