@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.
- package/LICENSE +201 -0
- package/README.md +370 -0
- package/dist-cjs/index.js +1645 -0
- package/dist-es/EndUserMessaging.js +79 -0
- package/dist-es/EndUserMessagingClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/CreateBrandProfileAttributesCommand.js +4 -0
- package/dist-es/commands/CreateBrandProfileCommand.js +4 -0
- package/dist-es/commands/CreateBrandProfileFromRegistrationCommand.js +4 -0
- package/dist-es/commands/CreateNotifyCodeConfigurationCommand.js +4 -0
- package/dist-es/commands/CreateRegistrationsFromBrandProfileCommand.js +4 -0
- package/dist-es/commands/DeleteBrandProfileAttributeCommand.js +4 -0
- package/dist-es/commands/DeleteBrandProfileCommand.js +4 -0
- package/dist-es/commands/DeleteNotifyCodeConfigurationCommand.js +4 -0
- package/dist-es/commands/GetBrandProfileAttributeCommand.js +4 -0
- package/dist-es/commands/GetBrandProfileCommand.js +4 -0
- package/dist-es/commands/GetJobCommand.js +4 -0
- package/dist-es/commands/GetNotifyCodeConfigurationCommand.js +4 -0
- package/dist-es/commands/ListBrandProfileAttributesCommand.js +4 -0
- package/dist-es/commands/ListBrandProfilesCommand.js +4 -0
- package/dist-es/commands/ListJobsCommand.js +4 -0
- package/dist-es/commands/ListNotifyCodeConfigurationsCommand.js +4 -0
- package/dist-es/commands/ListRegistrationsFromBrandProfileCommand.js +4 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
- package/dist-es/commands/SendNotifyCodeVerificationCommand.js +4 -0
- package/dist-es/commands/TagResourceCommand.js +4 -0
- package/dist-es/commands/UntagResourceCommand.js +4 -0
- package/dist-es/commands/UpdateBrandProfileAttributeCommand.js +4 -0
- package/dist-es/commands/UpdateBrandProfileCommand.js +4 -0
- package/dist-es/commands/UpdateBrandProfileFromRegistrationCommand.js +4 -0
- package/dist-es/commands/UpdateNotifyCodeConfigurationCommand.js +4 -0
- package/dist-es/commands/UpdateRegistrationsFromBrandProfileCommand.js +4 -0
- package/dist-es/commands/ValidateNotifyCodeVerificationCommand.js +4 -0
- package/dist-es/commands/index.js +27 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/bdd.js +46 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +11 -0
- package/dist-es/models/EndUserMessagingServiceException.js +8 -0
- package/dist-es/models/enums.js +43 -0
- package/dist-es/models/errors.js +99 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListBrandProfileAttributesPaginator.js +4 -0
- package/dist-es/pagination/ListBrandProfilesPaginator.js +4 -0
- package/dist-es/pagination/ListJobsPaginator.js +4 -0
- package/dist-es/pagination/ListNotifyCodeConfigurationsPaginator.js +4 -0
- package/dist-es/pagination/ListRegistrationsFromBrandProfilePaginator.js +4 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +818 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForBrandProfileActive.js +58 -0
- package/dist-es/waiters/waitForJobSuccess.js +40 -0
- package/dist-types/EndUserMessaging.d.ts +256 -0
- package/dist-types/EndUserMessagingClient.d.ts +213 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/CreateBrandProfileAttributesCommand.d.ts +139 -0
- package/dist-types/commands/CreateBrandProfileCommand.d.ts +129 -0
- package/dist-types/commands/CreateBrandProfileFromRegistrationCommand.d.ts +130 -0
- package/dist-types/commands/CreateNotifyCodeConfigurationCommand.d.ts +206 -0
- package/dist-types/commands/CreateRegistrationsFromBrandProfileCommand.d.ts +125 -0
- package/dist-types/commands/DeleteBrandProfileAttributeCommand.d.ts +110 -0
- package/dist-types/commands/DeleteBrandProfileCommand.d.ts +108 -0
- package/dist-types/commands/DeleteNotifyCodeConfigurationCommand.d.ts +102 -0
- package/dist-types/commands/GetBrandProfileAttributeCommand.d.ts +119 -0
- package/dist-types/commands/GetBrandProfileCommand.d.ts +115 -0
- package/dist-types/commands/GetJobCommand.d.ts +129 -0
- package/dist-types/commands/GetNotifyCodeConfigurationCommand.d.ts +156 -0
- package/dist-types/commands/ListBrandProfileAttributesCommand.d.ts +124 -0
- package/dist-types/commands/ListBrandProfilesCommand.d.ts +122 -0
- package/dist-types/commands/ListJobsCommand.d.ts +133 -0
- package/dist-types/commands/ListNotifyCodeConfigurationsCommand.d.ts +159 -0
- package/dist-types/commands/ListRegistrationsFromBrandProfileCommand.d.ts +121 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +113 -0
- package/dist-types/commands/SendNotifyCodeVerificationCommand.d.ts +151 -0
- package/dist-types/commands/TagResourceCommand.d.ts +114 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +105 -0
- package/dist-types/commands/UpdateBrandProfileAttributeCommand.d.ts +127 -0
- package/dist-types/commands/UpdateBrandProfileCommand.d.ts +122 -0
- package/dist-types/commands/UpdateBrandProfileFromRegistrationCommand.d.ts +123 -0
- package/dist-types/commands/UpdateNotifyCodeConfigurationCommand.d.ts +193 -0
- package/dist-types/commands/UpdateRegistrationsFromBrandProfileCommand.d.ts +127 -0
- package/dist-types/commands/ValidateNotifyCodeVerificationCommand.d.ts +104 -0
- package/dist-types/commands/index.d.ts +27 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +19 -0
- package/dist-types/models/EndUserMessagingServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +145 -0
- package/dist-types/models/errors.d.ts +119 -0
- package/dist-types/models/models_0.d.ts +1667 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListBrandProfileAttributesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListBrandProfilesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListNotifyCodeConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRegistrationsFromBrandProfilePaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +57 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +120 -0
- package/dist-types/ts3.4/EndUserMessaging.d.ts +515 -0
- package/dist-types/ts3.4/EndUserMessagingClient.d.ts +256 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreateBrandProfileAttributesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateBrandProfileCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateBrandProfileFromRegistrationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateNotifyCodeConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateRegistrationsFromBrandProfileCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteBrandProfileAttributeCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteBrandProfileCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteNotifyCodeConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetBrandProfileAttributeCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetBrandProfileCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetNotifyCodeConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListBrandProfileAttributesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListBrandProfilesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListJobsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListNotifyCodeConfigurationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListRegistrationsFromBrandProfileCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/SendNotifyCodeVerificationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateBrandProfileAttributeCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateBrandProfileCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateBrandProfileFromRegistrationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateNotifyCodeConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateRegistrationsFromBrandProfileCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ValidateNotifyCodeVerificationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +27 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +14 -0
- package/dist-types/ts3.4/models/EndUserMessagingServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +54 -0
- package/dist-types/ts3.4/models/errors.d.ts +47 -0
- package/dist-types/ts3.4/models/models_0.d.ts +413 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListBrandProfileAttributesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListBrandProfilesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +8 -0
- package/dist-types/ts3.4/pagination/ListNotifyCodeConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRegistrationsFromBrandProfilePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +115 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForBrandProfileActive.d.ts +15 -0
- package/dist-types/ts3.4/waiters/waitForJobSuccess.d.ts +12 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForBrandProfileActive.d.ts +15 -0
- package/dist-types/waiters/waitForJobSuccess.d.ts +15 -0
- package/package.json +69 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
|
+
import { CreateBrandProfileAttributesCommand, } from "./commands/CreateBrandProfileAttributesCommand";
|
|
3
|
+
import { CreateBrandProfileCommand, } from "./commands/CreateBrandProfileCommand";
|
|
4
|
+
import { CreateBrandProfileFromRegistrationCommand, } from "./commands/CreateBrandProfileFromRegistrationCommand";
|
|
5
|
+
import { CreateNotifyCodeConfigurationCommand, } from "./commands/CreateNotifyCodeConfigurationCommand";
|
|
6
|
+
import { CreateRegistrationsFromBrandProfileCommand, } from "./commands/CreateRegistrationsFromBrandProfileCommand";
|
|
7
|
+
import { DeleteBrandProfileAttributeCommand, } from "./commands/DeleteBrandProfileAttributeCommand";
|
|
8
|
+
import { DeleteBrandProfileCommand, } from "./commands/DeleteBrandProfileCommand";
|
|
9
|
+
import { DeleteNotifyCodeConfigurationCommand, } from "./commands/DeleteNotifyCodeConfigurationCommand";
|
|
10
|
+
import { GetBrandProfileAttributeCommand, } from "./commands/GetBrandProfileAttributeCommand";
|
|
11
|
+
import { GetBrandProfileCommand, } from "./commands/GetBrandProfileCommand";
|
|
12
|
+
import { GetJobCommand } from "./commands/GetJobCommand";
|
|
13
|
+
import { GetNotifyCodeConfigurationCommand, } from "./commands/GetNotifyCodeConfigurationCommand";
|
|
14
|
+
import { ListBrandProfileAttributesCommand, } from "./commands/ListBrandProfileAttributesCommand";
|
|
15
|
+
import { ListBrandProfilesCommand, } from "./commands/ListBrandProfilesCommand";
|
|
16
|
+
import { ListJobsCommand } from "./commands/ListJobsCommand";
|
|
17
|
+
import { ListNotifyCodeConfigurationsCommand, } from "./commands/ListNotifyCodeConfigurationsCommand";
|
|
18
|
+
import { ListRegistrationsFromBrandProfileCommand, } from "./commands/ListRegistrationsFromBrandProfileCommand";
|
|
19
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
20
|
+
import { SendNotifyCodeVerificationCommand, } from "./commands/SendNotifyCodeVerificationCommand";
|
|
21
|
+
import { TagResourceCommand, } from "./commands/TagResourceCommand";
|
|
22
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
23
|
+
import { UpdateBrandProfileAttributeCommand, } from "./commands/UpdateBrandProfileAttributeCommand";
|
|
24
|
+
import { UpdateBrandProfileCommand, } from "./commands/UpdateBrandProfileCommand";
|
|
25
|
+
import { UpdateBrandProfileFromRegistrationCommand, } from "./commands/UpdateBrandProfileFromRegistrationCommand";
|
|
26
|
+
import { UpdateNotifyCodeConfigurationCommand, } from "./commands/UpdateNotifyCodeConfigurationCommand";
|
|
27
|
+
import { UpdateRegistrationsFromBrandProfileCommand, } from "./commands/UpdateRegistrationsFromBrandProfileCommand";
|
|
28
|
+
import { ValidateNotifyCodeVerificationCommand, } from "./commands/ValidateNotifyCodeVerificationCommand";
|
|
29
|
+
import { EndUserMessagingClient } from "./EndUserMessagingClient";
|
|
30
|
+
import { paginateListBrandProfileAttributes } from "./pagination/ListBrandProfileAttributesPaginator";
|
|
31
|
+
import { paginateListBrandProfiles } from "./pagination/ListBrandProfilesPaginator";
|
|
32
|
+
import { paginateListJobs } from "./pagination/ListJobsPaginator";
|
|
33
|
+
import { paginateListNotifyCodeConfigurations } from "./pagination/ListNotifyCodeConfigurationsPaginator";
|
|
34
|
+
import { paginateListRegistrationsFromBrandProfile } from "./pagination/ListRegistrationsFromBrandProfilePaginator";
|
|
35
|
+
import { waitUntilBrandProfileActive } from "./waiters/waitForBrandProfileActive";
|
|
36
|
+
import { waitUntilJobSuccess } from "./waiters/waitForJobSuccess";
|
|
37
|
+
const commands = {
|
|
38
|
+
CreateBrandProfileCommand,
|
|
39
|
+
CreateBrandProfileAttributesCommand,
|
|
40
|
+
CreateBrandProfileFromRegistrationCommand,
|
|
41
|
+
CreateNotifyCodeConfigurationCommand,
|
|
42
|
+
CreateRegistrationsFromBrandProfileCommand,
|
|
43
|
+
DeleteBrandProfileCommand,
|
|
44
|
+
DeleteBrandProfileAttributeCommand,
|
|
45
|
+
DeleteNotifyCodeConfigurationCommand,
|
|
46
|
+
GetBrandProfileCommand,
|
|
47
|
+
GetBrandProfileAttributeCommand,
|
|
48
|
+
GetJobCommand,
|
|
49
|
+
GetNotifyCodeConfigurationCommand,
|
|
50
|
+
ListBrandProfileAttributesCommand,
|
|
51
|
+
ListBrandProfilesCommand,
|
|
52
|
+
ListJobsCommand,
|
|
53
|
+
ListNotifyCodeConfigurationsCommand,
|
|
54
|
+
ListRegistrationsFromBrandProfileCommand,
|
|
55
|
+
ListTagsForResourceCommand,
|
|
56
|
+
SendNotifyCodeVerificationCommand,
|
|
57
|
+
TagResourceCommand,
|
|
58
|
+
UntagResourceCommand,
|
|
59
|
+
UpdateBrandProfileCommand,
|
|
60
|
+
UpdateBrandProfileAttributeCommand,
|
|
61
|
+
UpdateBrandProfileFromRegistrationCommand,
|
|
62
|
+
UpdateNotifyCodeConfigurationCommand,
|
|
63
|
+
UpdateRegistrationsFromBrandProfileCommand,
|
|
64
|
+
ValidateNotifyCodeVerificationCommand,
|
|
65
|
+
};
|
|
66
|
+
const paginators = {
|
|
67
|
+
paginateListBrandProfileAttributes,
|
|
68
|
+
paginateListBrandProfiles,
|
|
69
|
+
paginateListJobs,
|
|
70
|
+
paginateListNotifyCodeConfigurations,
|
|
71
|
+
paginateListRegistrationsFromBrandProfile,
|
|
72
|
+
};
|
|
73
|
+
const waiters = {
|
|
74
|
+
waitUntilBrandProfileActive,
|
|
75
|
+
waitUntilJobSuccess,
|
|
76
|
+
};
|
|
77
|
+
export class EndUserMessaging extends EndUserMessagingClient {
|
|
78
|
+
}
|
|
79
|
+
createAggregatedClient(commands, EndUserMessaging, { paginators, waiters });
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
|
|
2
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
3
|
+
import { Client as __Client, } from "@smithy/core/client";
|
|
4
|
+
import { resolveRegionConfig } from "@smithy/core/config";
|
|
5
|
+
import { resolveEndpointConfig } from "@smithy/core/endpoints";
|
|
6
|
+
import { getContentLengthPlugin } from "@smithy/core/protocols";
|
|
7
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
|
|
8
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
9
|
+
import { defaultEndUserMessagingHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
11
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
13
|
+
export { __Client };
|
|
14
|
+
export class EndUserMessagingClient extends __Client {
|
|
15
|
+
config;
|
|
16
|
+
constructor(...[configuration]) {
|
|
17
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
18
|
+
super(_config_0);
|
|
19
|
+
this.initConfig = _config_0;
|
|
20
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
23
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
24
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
25
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
+
this.config = _config_8;
|
|
29
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
35
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
36
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
37
|
+
httpAuthSchemeParametersProvider: defaultEndUserMessagingHttpAuthSchemeParametersProvider,
|
|
38
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
39
|
+
"aws.auth#sigv4": config.credentials,
|
|
40
|
+
}),
|
|
41
|
+
}));
|
|
42
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
43
|
+
}
|
|
44
|
+
destroy() {
|
|
45
|
+
super.destroy();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _credentials = runtimeConfig.credentials;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setCredentials(credentials) {
|
|
25
|
+
_credentials = credentials;
|
|
26
|
+
},
|
|
27
|
+
credentials() {
|
|
28
|
+
return _credentials;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
credentials: config.credentials(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
|
|
3
|
+
export const defaultEndUserMessagingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
+
})(),
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
+
return {
|
|
13
|
+
schemeId: "aws.auth#sigv4",
|
|
14
|
+
signingProperties: {
|
|
15
|
+
name: "end-user-messaging",
|
|
16
|
+
region: authParameters.region,
|
|
17
|
+
},
|
|
18
|
+
propertiesExtractor: (config, context) => ({
|
|
19
|
+
signingProperties: {
|
|
20
|
+
config,
|
|
21
|
+
context,
|
|
22
|
+
},
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export const defaultEndUserMessagingHttpAuthSchemeProvider = (authParameters) => {
|
|
27
|
+
const options = [];
|
|
28
|
+
switch (authParameters.operation) {
|
|
29
|
+
default: {
|
|
30
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return options;
|
|
34
|
+
};
|
|
35
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
|
+
return Object.assign(config_0, {
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
|
+
});
|
|
40
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { makeBuilder } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
|
+
export const command = makeBuilder(commonParams, "EndUserMessaging", "EndUserMessagingClient", getEndpointPlugin);
|
|
5
|
+
export const _ep0 = {};
|
|
6
|
+
export const _mw0 = (Command, cs, config, o) => [];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { CreateBrandProfileAttributes$ } from "../schemas/schemas_0";
|
|
3
|
+
export class CreateBrandProfileAttributesCommand extends command(_ep0, _mw0, "CreateBrandProfileAttributes", CreateBrandProfileAttributes$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { CreateBrandProfileFromRegistration$ } from "../schemas/schemas_0";
|
|
3
|
+
export class CreateBrandProfileFromRegistrationCommand extends command(_ep0, _mw0, "CreateBrandProfileFromRegistration", CreateBrandProfileFromRegistration$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { CreateNotifyCodeConfiguration$ } from "../schemas/schemas_0";
|
|
3
|
+
export class CreateNotifyCodeConfigurationCommand extends command(_ep0, _mw0, "CreateNotifyCodeConfiguration", CreateNotifyCodeConfiguration$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { CreateRegistrationsFromBrandProfile$ } from "../schemas/schemas_0";
|
|
3
|
+
export class CreateRegistrationsFromBrandProfileCommand extends command(_ep0, _mw0, "CreateRegistrationsFromBrandProfile", CreateRegistrationsFromBrandProfile$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { DeleteNotifyCodeConfiguration$ } from "../schemas/schemas_0";
|
|
3
|
+
export class DeleteNotifyCodeConfigurationCommand extends command(_ep0, _mw0, "DeleteNotifyCodeConfiguration", DeleteNotifyCodeConfiguration$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { ListNotifyCodeConfigurations$ } from "../schemas/schemas_0";
|
|
3
|
+
export class ListNotifyCodeConfigurationsCommand extends command(_ep0, _mw0, "ListNotifyCodeConfigurations", ListNotifyCodeConfigurations$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { ListRegistrationsFromBrandProfile$ } from "../schemas/schemas_0";
|
|
3
|
+
export class ListRegistrationsFromBrandProfileCommand extends command(_ep0, _mw0, "ListRegistrationsFromBrandProfile", ListRegistrationsFromBrandProfile$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { UpdateBrandProfileFromRegistration$ } from "../schemas/schemas_0";
|
|
3
|
+
export class UpdateBrandProfileFromRegistrationCommand extends command(_ep0, _mw0, "UpdateBrandProfileFromRegistration", UpdateBrandProfileFromRegistration$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { UpdateNotifyCodeConfiguration$ } from "../schemas/schemas_0";
|
|
3
|
+
export class UpdateNotifyCodeConfigurationCommand extends command(_ep0, _mw0, "UpdateNotifyCodeConfiguration", UpdateNotifyCodeConfiguration$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { UpdateRegistrationsFromBrandProfile$ } from "../schemas/schemas_0";
|
|
3
|
+
export class UpdateRegistrationsFromBrandProfileCommand extends command(_ep0, _mw0, "UpdateRegistrationsFromBrandProfile", UpdateRegistrationsFromBrandProfile$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { ValidateNotifyCodeVerification$ } from "../schemas/schemas_0";
|
|
3
|
+
export class ValidateNotifyCodeVerificationCommand extends command(_ep0, _mw0, "ValidateNotifyCodeVerification", ValidateNotifyCodeVerification$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from "./CreateBrandProfileAttributesCommand";
|
|
2
|
+
export * from "./CreateBrandProfileCommand";
|
|
3
|
+
export * from "./CreateBrandProfileFromRegistrationCommand";
|
|
4
|
+
export * from "./CreateNotifyCodeConfigurationCommand";
|
|
5
|
+
export * from "./CreateRegistrationsFromBrandProfileCommand";
|
|
6
|
+
export * from "./DeleteBrandProfileAttributeCommand";
|
|
7
|
+
export * from "./DeleteBrandProfileCommand";
|
|
8
|
+
export * from "./DeleteNotifyCodeConfigurationCommand";
|
|
9
|
+
export * from "./GetBrandProfileAttributeCommand";
|
|
10
|
+
export * from "./GetBrandProfileCommand";
|
|
11
|
+
export * from "./GetJobCommand";
|
|
12
|
+
export * from "./GetNotifyCodeConfigurationCommand";
|
|
13
|
+
export * from "./ListBrandProfileAttributesCommand";
|
|
14
|
+
export * from "./ListBrandProfilesCommand";
|
|
15
|
+
export * from "./ListJobsCommand";
|
|
16
|
+
export * from "./ListNotifyCodeConfigurationsCommand";
|
|
17
|
+
export * from "./ListRegistrationsFromBrandProfileCommand";
|
|
18
|
+
export * from "./ListTagsForResourceCommand";
|
|
19
|
+
export * from "./SendNotifyCodeVerificationCommand";
|
|
20
|
+
export * from "./TagResourceCommand";
|
|
21
|
+
export * from "./UntagResourceCommand";
|
|
22
|
+
export * from "./UpdateBrandProfileAttributeCommand";
|
|
23
|
+
export * from "./UpdateBrandProfileCommand";
|
|
24
|
+
export * from "./UpdateBrandProfileFromRegistrationCommand";
|
|
25
|
+
export * from "./UpdateNotifyCodeConfigurationCommand";
|
|
26
|
+
export * from "./UpdateRegistrationsFromBrandProfileCommand";
|
|
27
|
+
export * from "./ValidateNotifyCodeVerificationCommand";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
+
return Object.assign(options, {
|
|
3
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
4
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
5
|
+
defaultSigningName: "end-user-messaging",
|
|
6
|
+
});
|
|
7
|
+
};
|
|
8
|
+
export const commonParams = {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
|
+
const k = "ref";
|
|
3
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
4
|
+
const _data = {
|
|
5
|
+
conditions: [
|
|
6
|
+
[c, [g]],
|
|
7
|
+
[c, j],
|
|
8
|
+
["aws.partition", j, d],
|
|
9
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
10
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
11
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
12
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
13
|
+
],
|
|
14
|
+
results: [
|
|
15
|
+
[a],
|
|
16
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
17
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
18
|
+
[g, i],
|
|
19
|
+
["https://end-user-messaging-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
20
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
21
|
+
["https://end-user-messaging-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
22
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
23
|
+
["https://end-user-messaging.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
24
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
25
|
+
["https://end-user-messaging.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
26
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
27
|
+
]
|
|
28
|
+
};
|
|
29
|
+
const root = 2;
|
|
30
|
+
const r = 100_000_000;
|
|
31
|
+
const nodes = new Int32Array([
|
|
32
|
+
-1, 1, -1,
|
|
33
|
+
0, 12, 3,
|
|
34
|
+
1, 4, r + 11,
|
|
35
|
+
2, 5, r + 11,
|
|
36
|
+
3, 8, 6,
|
|
37
|
+
4, 7, r + 10,
|
|
38
|
+
5, r + 8, r + 9,
|
|
39
|
+
4, 10, 9,
|
|
40
|
+
6, r + 6, r + 7,
|
|
41
|
+
5, 11, r + 5,
|
|
42
|
+
6, r + 4, r + 5,
|
|
43
|
+
3, r + 1, 13,
|
|
44
|
+
4, r + 2, r + 3,
|
|
45
|
+
]);
|
|
46
|
+
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/core/client";
|
|
2
|
+
import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
|
|
3
|
+
import { bdd } from "./bdd";
|
|
4
|
+
const cache = new EndpointCache({
|
|
5
|
+
size: 50,
|
|
6
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
7
|
+
});
|
|
8
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
|
+
endpointParams: endpointParams,
|
|
11
|
+
logger: context.logger,
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./EndUserMessagingClient";
|
|
2
|
+
export * from "./EndUserMessaging";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export { Command as $Command } from "@smithy/core/client";
|
|
5
|
+
export * from "./pagination";
|
|
6
|
+
export * from "./waiters";
|
|
7
|
+
export * from "./schemas/schemas_0";
|
|
8
|
+
export * from "./models/enums";
|
|
9
|
+
export * from "./models/errors";
|
|
10
|
+
export * from "./models/models_0";
|
|
11
|
+
export { EndUserMessagingServiceException } from "./models/EndUserMessagingServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/core/client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class EndUserMessagingServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, EndUserMessagingServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export const BrandProfileAttributeType = {
|
|
2
|
+
DOCUMENT: "DOCUMENT",
|
|
3
|
+
IMAGE: "IMAGE",
|
|
4
|
+
TEXT: "TEXT",
|
|
5
|
+
};
|
|
6
|
+
export const Status = {
|
|
7
|
+
ACTIVE: "ACTIVE",
|
|
8
|
+
BLOCKED: "BLOCKED",
|
|
9
|
+
CANCELLED: "CANCELLED",
|
|
10
|
+
FAILED: "FAILED",
|
|
11
|
+
PAUSED: "PAUSED",
|
|
12
|
+
};
|
|
13
|
+
export const VoiceMessageBodyTextType = {
|
|
14
|
+
SSML: "SSML",
|
|
15
|
+
TEXT: "TEXT",
|
|
16
|
+
};
|
|
17
|
+
export const CodeType = {
|
|
18
|
+
ALPHA: "ALPHA",
|
|
19
|
+
ALPHANUMERIC: "ALPHANUMERIC",
|
|
20
|
+
NUMERIC: "NUMERIC",
|
|
21
|
+
};
|
|
22
|
+
export const JobResourceType = {
|
|
23
|
+
BRAND_PROFILE: "BRAND_PROFILE",
|
|
24
|
+
REGISTRATION: "REGISTRATION",
|
|
25
|
+
};
|
|
26
|
+
export const JobStatus = {
|
|
27
|
+
FAILED: "FAILED",
|
|
28
|
+
PROCESSING: "PROCESSING",
|
|
29
|
+
SUCCESS: "SUCCESS",
|
|
30
|
+
};
|
|
31
|
+
export const NotifyChannel = {
|
|
32
|
+
TEXT: "TEXT",
|
|
33
|
+
VOICE: "VOICE",
|
|
34
|
+
WHATSAPP: "WHATSAPP",
|
|
35
|
+
};
|
|
36
|
+
export const OnAttributeConflict = {
|
|
37
|
+
PRESERVE: "PRESERVE",
|
|
38
|
+
REPLACE: "REPLACE",
|
|
39
|
+
};
|
|
40
|
+
export const VerificationStatus = {
|
|
41
|
+
INVALID: "INVALID",
|
|
42
|
+
VALID: "VALID",
|
|
43
|
+
};
|