@aws-sdk/client-sns 3.301.0 → 3.306.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/models/models_0.js +29 -33
- package/dist-es/models/models_0.js +29 -33
- package/dist-types/models/models_0.d.ts +49 -29
- package/dist-types/ts3.4/models/models_0.d.ts +36 -29
- package/package.json +34 -34
|
@@ -93,22 +93,21 @@ class SubscriptionLimitExceededException extends SNSServiceException_1.SNSServic
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
exports.SubscriptionLimitExceededException = SubscriptionLimitExceededException;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
})(LanguageCodeString = exports.LanguageCodeString || (exports.LanguageCodeString = {}));
|
|
96
|
+
exports.LanguageCodeString = {
|
|
97
|
+
de_DE: "de-DE",
|
|
98
|
+
en_GB: "en-GB",
|
|
99
|
+
en_US: "en-US",
|
|
100
|
+
es_419: "es-419",
|
|
101
|
+
es_ES: "es-ES",
|
|
102
|
+
fr_CA: "fr-CA",
|
|
103
|
+
fr_FR: "fr-FR",
|
|
104
|
+
it_IT: "it-IT",
|
|
105
|
+
jp_JP: "ja-JP",
|
|
106
|
+
kr_KR: "kr-KR",
|
|
107
|
+
pt_BR: "pt-BR",
|
|
108
|
+
zh_CN: "zh-CN",
|
|
109
|
+
zh_TW: "zh-TW",
|
|
110
|
+
};
|
|
112
111
|
class OptedOutException extends SNSServiceException_1.SNSServiceException {
|
|
113
112
|
constructor(opts) {
|
|
114
113
|
super({
|
|
@@ -226,18 +225,16 @@ class ResourceNotFoundException extends SNSServiceException_1.SNSServiceExceptio
|
|
|
226
225
|
}
|
|
227
226
|
}
|
|
228
227
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
RouteType["Transactional"] = "Transactional";
|
|
240
|
-
})(RouteType = exports.RouteType || (exports.RouteType = {}));
|
|
228
|
+
exports.NumberCapability = {
|
|
229
|
+
MMS: "MMS",
|
|
230
|
+
SMS: "SMS",
|
|
231
|
+
VOICE: "VOICE",
|
|
232
|
+
};
|
|
233
|
+
exports.RouteType = {
|
|
234
|
+
Premium: "Premium",
|
|
235
|
+
Promotional: "Promotional",
|
|
236
|
+
Transactional: "Transactional",
|
|
237
|
+
};
|
|
241
238
|
class ValidationException extends SNSServiceException_1.SNSServiceException {
|
|
242
239
|
constructor(opts) {
|
|
243
240
|
super({
|
|
@@ -252,11 +249,10 @@ class ValidationException extends SNSServiceException_1.SNSServiceException {
|
|
|
252
249
|
}
|
|
253
250
|
}
|
|
254
251
|
exports.ValidationException = ValidationException;
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
})(SMSSandboxPhoneNumberVerificationStatus = exports.SMSSandboxPhoneNumberVerificationStatus || (exports.SMSSandboxPhoneNumberVerificationStatus = {}));
|
|
252
|
+
exports.SMSSandboxPhoneNumberVerificationStatus = {
|
|
253
|
+
Pending: "Pending",
|
|
254
|
+
Verified: "Verified",
|
|
255
|
+
};
|
|
260
256
|
class EndpointDisabledException extends SNSServiceException_1.SNSServiceException {
|
|
261
257
|
constructor(opts) {
|
|
262
258
|
super({
|
|
@@ -83,22 +83,21 @@ export class SubscriptionLimitExceededException extends __BaseException {
|
|
|
83
83
|
Object.setPrototypeOf(this, SubscriptionLimitExceededException.prototype);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
export
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
})(LanguageCodeString || (LanguageCodeString = {}));
|
|
86
|
+
export const LanguageCodeString = {
|
|
87
|
+
de_DE: "de-DE",
|
|
88
|
+
en_GB: "en-GB",
|
|
89
|
+
en_US: "en-US",
|
|
90
|
+
es_419: "es-419",
|
|
91
|
+
es_ES: "es-ES",
|
|
92
|
+
fr_CA: "fr-CA",
|
|
93
|
+
fr_FR: "fr-FR",
|
|
94
|
+
it_IT: "it-IT",
|
|
95
|
+
jp_JP: "ja-JP",
|
|
96
|
+
kr_KR: "kr-KR",
|
|
97
|
+
pt_BR: "pt-BR",
|
|
98
|
+
zh_CN: "zh-CN",
|
|
99
|
+
zh_TW: "zh-TW",
|
|
100
|
+
};
|
|
102
101
|
export class OptedOutException extends __BaseException {
|
|
103
102
|
constructor(opts) {
|
|
104
103
|
super({
|
|
@@ -207,18 +206,16 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
207
206
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
208
207
|
}
|
|
209
208
|
}
|
|
210
|
-
export
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
RouteType["Transactional"] = "Transactional";
|
|
221
|
-
})(RouteType || (RouteType = {}));
|
|
209
|
+
export const NumberCapability = {
|
|
210
|
+
MMS: "MMS",
|
|
211
|
+
SMS: "SMS",
|
|
212
|
+
VOICE: "VOICE",
|
|
213
|
+
};
|
|
214
|
+
export const RouteType = {
|
|
215
|
+
Premium: "Premium",
|
|
216
|
+
Promotional: "Promotional",
|
|
217
|
+
Transactional: "Transactional",
|
|
218
|
+
};
|
|
222
219
|
export class ValidationException extends __BaseException {
|
|
223
220
|
constructor(opts) {
|
|
224
221
|
super({
|
|
@@ -232,11 +229,10 @@ export class ValidationException extends __BaseException {
|
|
|
232
229
|
this.Message = opts.Message;
|
|
233
230
|
}
|
|
234
231
|
}
|
|
235
|
-
export
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
})(SMSSandboxPhoneNumberVerificationStatus || (SMSSandboxPhoneNumberVerificationStatus = {}));
|
|
232
|
+
export const SMSSandboxPhoneNumberVerificationStatus = {
|
|
233
|
+
Pending: "Pending",
|
|
234
|
+
Verified: "Verified",
|
|
235
|
+
};
|
|
240
236
|
export class EndpointDisabledException extends __BaseException {
|
|
241
237
|
constructor(opts) {
|
|
242
238
|
super({
|
|
@@ -246,22 +246,27 @@ export interface CreatePlatformEndpointInput {
|
|
|
246
246
|
}
|
|
247
247
|
/**
|
|
248
248
|
* @public
|
|
249
|
+
* @enum
|
|
249
250
|
*/
|
|
250
|
-
export declare
|
|
251
|
-
de_DE
|
|
252
|
-
en_GB
|
|
253
|
-
en_US
|
|
254
|
-
es_419
|
|
255
|
-
es_ES
|
|
256
|
-
fr_CA
|
|
257
|
-
fr_FR
|
|
258
|
-
it_IT
|
|
259
|
-
jp_JP
|
|
260
|
-
kr_KR
|
|
261
|
-
pt_BR
|
|
262
|
-
zh_CN
|
|
263
|
-
zh_TW
|
|
264
|
-
}
|
|
251
|
+
export declare const LanguageCodeString: {
|
|
252
|
+
readonly de_DE: "de-DE";
|
|
253
|
+
readonly en_GB: "en-GB";
|
|
254
|
+
readonly en_US: "en-US";
|
|
255
|
+
readonly es_419: "es-419";
|
|
256
|
+
readonly es_ES: "es-ES";
|
|
257
|
+
readonly fr_CA: "fr-CA";
|
|
258
|
+
readonly fr_FR: "fr-FR";
|
|
259
|
+
readonly it_IT: "it-IT";
|
|
260
|
+
readonly jp_JP: "ja-JP";
|
|
261
|
+
readonly kr_KR: "kr-KR";
|
|
262
|
+
readonly pt_BR: "pt-BR";
|
|
263
|
+
readonly zh_CN: "zh-CN";
|
|
264
|
+
readonly zh_TW: "zh-TW";
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* @public
|
|
268
|
+
*/
|
|
269
|
+
export type LanguageCodeString = (typeof LanguageCodeString)[keyof typeof LanguageCodeString];
|
|
265
270
|
/**
|
|
266
271
|
* @public
|
|
267
272
|
*/
|
|
@@ -1044,20 +1049,30 @@ export interface ListOriginationNumbersRequest {
|
|
|
1044
1049
|
}
|
|
1045
1050
|
/**
|
|
1046
1051
|
* @public
|
|
1052
|
+
* @enum
|
|
1047
1053
|
*/
|
|
1048
|
-
export declare
|
|
1049
|
-
MMS
|
|
1050
|
-
SMS
|
|
1051
|
-
VOICE
|
|
1052
|
-
}
|
|
1054
|
+
export declare const NumberCapability: {
|
|
1055
|
+
readonly MMS: "MMS";
|
|
1056
|
+
readonly SMS: "SMS";
|
|
1057
|
+
readonly VOICE: "VOICE";
|
|
1058
|
+
};
|
|
1053
1059
|
/**
|
|
1054
1060
|
* @public
|
|
1055
1061
|
*/
|
|
1056
|
-
export
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1062
|
+
export type NumberCapability = (typeof NumberCapability)[keyof typeof NumberCapability];
|
|
1063
|
+
/**
|
|
1064
|
+
* @public
|
|
1065
|
+
* @enum
|
|
1066
|
+
*/
|
|
1067
|
+
export declare const RouteType: {
|
|
1068
|
+
readonly Premium: "Premium";
|
|
1069
|
+
readonly Promotional: "Promotional";
|
|
1070
|
+
readonly Transactional: "Transactional";
|
|
1071
|
+
};
|
|
1072
|
+
/**
|
|
1073
|
+
* @public
|
|
1074
|
+
*/
|
|
1075
|
+
export type RouteType = (typeof RouteType)[keyof typeof RouteType];
|
|
1061
1076
|
/**
|
|
1062
1077
|
* @public
|
|
1063
1078
|
* <p>A list of phone numbers and their metadata.</p>
|
|
@@ -1201,11 +1216,16 @@ export interface ListSMSSandboxPhoneNumbersInput {
|
|
|
1201
1216
|
}
|
|
1202
1217
|
/**
|
|
1203
1218
|
* @public
|
|
1219
|
+
* @enum
|
|
1204
1220
|
*/
|
|
1205
|
-
export declare
|
|
1206
|
-
Pending
|
|
1207
|
-
Verified
|
|
1208
|
-
}
|
|
1221
|
+
export declare const SMSSandboxPhoneNumberVerificationStatus: {
|
|
1222
|
+
readonly Pending: "Pending";
|
|
1223
|
+
readonly Verified: "Verified";
|
|
1224
|
+
};
|
|
1225
|
+
/**
|
|
1226
|
+
* @public
|
|
1227
|
+
*/
|
|
1228
|
+
export type SMSSandboxPhoneNumberVerificationStatus = (typeof SMSSandboxPhoneNumberVerificationStatus)[keyof typeof SMSSandboxPhoneNumberVerificationStatus];
|
|
1209
1229
|
/**
|
|
1210
1230
|
* @public
|
|
1211
1231
|
* <p>A verified or pending destination phone number in the SMS sandbox.</p>
|
|
@@ -88,21 +88,23 @@ export interface CreatePlatformEndpointInput {
|
|
|
88
88
|
CustomUserData?: string;
|
|
89
89
|
Attributes?: Record<string, string>;
|
|
90
90
|
}
|
|
91
|
-
export declare
|
|
92
|
-
de_DE
|
|
93
|
-
en_GB
|
|
94
|
-
en_US
|
|
95
|
-
es_419
|
|
96
|
-
es_ES
|
|
97
|
-
fr_CA
|
|
98
|
-
fr_FR
|
|
99
|
-
it_IT
|
|
100
|
-
jp_JP
|
|
101
|
-
kr_KR
|
|
102
|
-
pt_BR
|
|
103
|
-
zh_CN
|
|
104
|
-
zh_TW
|
|
105
|
-
}
|
|
91
|
+
export declare const LanguageCodeString: {
|
|
92
|
+
readonly de_DE: "de-DE";
|
|
93
|
+
readonly en_GB: "en-GB";
|
|
94
|
+
readonly en_US: "en-US";
|
|
95
|
+
readonly es_419: "es-419";
|
|
96
|
+
readonly es_ES: "es-ES";
|
|
97
|
+
readonly fr_CA: "fr-CA";
|
|
98
|
+
readonly fr_FR: "fr-FR";
|
|
99
|
+
readonly it_IT: "it-IT";
|
|
100
|
+
readonly jp_JP: "ja-JP";
|
|
101
|
+
readonly kr_KR: "kr-KR";
|
|
102
|
+
readonly pt_BR: "pt-BR";
|
|
103
|
+
readonly zh_CN: "zh-CN";
|
|
104
|
+
readonly zh_TW: "zh-TW";
|
|
105
|
+
};
|
|
106
|
+
export type LanguageCodeString =
|
|
107
|
+
(typeof LanguageCodeString)[keyof typeof LanguageCodeString];
|
|
106
108
|
export interface CreateSMSSandboxPhoneNumberInput {
|
|
107
109
|
PhoneNumber: string | undefined;
|
|
108
110
|
LanguageCode?: LanguageCodeString | string;
|
|
@@ -245,16 +247,19 @@ export interface ListOriginationNumbersRequest {
|
|
|
245
247
|
NextToken?: string;
|
|
246
248
|
MaxResults?: number;
|
|
247
249
|
}
|
|
248
|
-
export declare
|
|
249
|
-
MMS
|
|
250
|
-
SMS
|
|
251
|
-
VOICE
|
|
252
|
-
}
|
|
253
|
-
export
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
250
|
+
export declare const NumberCapability: {
|
|
251
|
+
readonly MMS: "MMS";
|
|
252
|
+
readonly SMS: "SMS";
|
|
253
|
+
readonly VOICE: "VOICE";
|
|
254
|
+
};
|
|
255
|
+
export type NumberCapability =
|
|
256
|
+
(typeof NumberCapability)[keyof typeof NumberCapability];
|
|
257
|
+
export declare const RouteType: {
|
|
258
|
+
readonly Premium: "Premium";
|
|
259
|
+
readonly Promotional: "Promotional";
|
|
260
|
+
readonly Transactional: "Transactional";
|
|
261
|
+
};
|
|
262
|
+
export type RouteType = (typeof RouteType)[keyof typeof RouteType];
|
|
258
263
|
export interface PhoneNumberInformation {
|
|
259
264
|
CreatedAt?: Date;
|
|
260
265
|
PhoneNumber?: string;
|
|
@@ -297,10 +302,12 @@ export interface ListSMSSandboxPhoneNumbersInput {
|
|
|
297
302
|
NextToken?: string;
|
|
298
303
|
MaxResults?: number;
|
|
299
304
|
}
|
|
300
|
-
export declare
|
|
301
|
-
Pending
|
|
302
|
-
Verified
|
|
303
|
-
}
|
|
305
|
+
export declare const SMSSandboxPhoneNumberVerificationStatus: {
|
|
306
|
+
readonly Pending: "Pending";
|
|
307
|
+
readonly Verified: "Verified";
|
|
308
|
+
};
|
|
309
|
+
export type SMSSandboxPhoneNumberVerificationStatus =
|
|
310
|
+
(typeof SMSSandboxPhoneNumberVerificationStatus)[keyof typeof SMSSandboxPhoneNumberVerificationStatus];
|
|
304
311
|
export interface SMSSandboxPhoneNumber {
|
|
305
312
|
PhoneNumber?: string;
|
|
306
313
|
Status?: SMSSandboxPhoneNumberVerificationStatus | string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sns",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sns Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.306.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,43 +21,43 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.306.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.306.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.306.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.306.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.306.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.306.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.306.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.306.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.306.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.306.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.306.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.306.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.306.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.306.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.306.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.306.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.306.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.306.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.306.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.306.0",
|
|
44
|
+
"@aws-sdk/types": "3.306.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.306.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.303.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.306.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.306.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.306.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.306.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.306.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.306.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.303.0",
|
|
56
56
|
"fast-xml-parser": "4.1.2",
|
|
57
57
|
"tslib": "^2.5.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
60
|
+
"@aws-sdk/service-client-documentation-generator": "3.303.0",
|
|
61
61
|
"@tsconfig/node14": "1.0.3",
|
|
62
62
|
"@types/node": "^14.14.31",
|
|
63
63
|
"concurrently": "7.0.0",
|