@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.
@@ -93,22 +93,21 @@ class SubscriptionLimitExceededException extends SNSServiceException_1.SNSServic
93
93
  }
94
94
  }
95
95
  exports.SubscriptionLimitExceededException = SubscriptionLimitExceededException;
96
- var LanguageCodeString;
97
- (function (LanguageCodeString) {
98
- LanguageCodeString["de_DE"] = "de-DE";
99
- LanguageCodeString["en_GB"] = "en-GB";
100
- LanguageCodeString["en_US"] = "en-US";
101
- LanguageCodeString["es_419"] = "es-419";
102
- LanguageCodeString["es_ES"] = "es-ES";
103
- LanguageCodeString["fr_CA"] = "fr-CA";
104
- LanguageCodeString["fr_FR"] = "fr-FR";
105
- LanguageCodeString["it_IT"] = "it-IT";
106
- LanguageCodeString["jp_JP"] = "ja-JP";
107
- LanguageCodeString["kr_KR"] = "kr-KR";
108
- LanguageCodeString["pt_BR"] = "pt-BR";
109
- LanguageCodeString["zh_CN"] = "zh-CN";
110
- LanguageCodeString["zh_TW"] = "zh-TW";
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
- var NumberCapability;
230
- (function (NumberCapability) {
231
- NumberCapability["MMS"] = "MMS";
232
- NumberCapability["SMS"] = "SMS";
233
- NumberCapability["VOICE"] = "VOICE";
234
- })(NumberCapability = exports.NumberCapability || (exports.NumberCapability = {}));
235
- var RouteType;
236
- (function (RouteType) {
237
- RouteType["Premium"] = "Premium";
238
- RouteType["Promotional"] = "Promotional";
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
- var SMSSandboxPhoneNumberVerificationStatus;
256
- (function (SMSSandboxPhoneNumberVerificationStatus) {
257
- SMSSandboxPhoneNumberVerificationStatus["Pending"] = "Pending";
258
- SMSSandboxPhoneNumberVerificationStatus["Verified"] = "Verified";
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 var LanguageCodeString;
87
- (function (LanguageCodeString) {
88
- LanguageCodeString["de_DE"] = "de-DE";
89
- LanguageCodeString["en_GB"] = "en-GB";
90
- LanguageCodeString["en_US"] = "en-US";
91
- LanguageCodeString["es_419"] = "es-419";
92
- LanguageCodeString["es_ES"] = "es-ES";
93
- LanguageCodeString["fr_CA"] = "fr-CA";
94
- LanguageCodeString["fr_FR"] = "fr-FR";
95
- LanguageCodeString["it_IT"] = "it-IT";
96
- LanguageCodeString["jp_JP"] = "ja-JP";
97
- LanguageCodeString["kr_KR"] = "kr-KR";
98
- LanguageCodeString["pt_BR"] = "pt-BR";
99
- LanguageCodeString["zh_CN"] = "zh-CN";
100
- LanguageCodeString["zh_TW"] = "zh-TW";
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 var NumberCapability;
211
- (function (NumberCapability) {
212
- NumberCapability["MMS"] = "MMS";
213
- NumberCapability["SMS"] = "SMS";
214
- NumberCapability["VOICE"] = "VOICE";
215
- })(NumberCapability || (NumberCapability = {}));
216
- export var RouteType;
217
- (function (RouteType) {
218
- RouteType["Premium"] = "Premium";
219
- RouteType["Promotional"] = "Promotional";
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 var SMSSandboxPhoneNumberVerificationStatus;
236
- (function (SMSSandboxPhoneNumberVerificationStatus) {
237
- SMSSandboxPhoneNumberVerificationStatus["Pending"] = "Pending";
238
- SMSSandboxPhoneNumberVerificationStatus["Verified"] = "Verified";
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 enum LanguageCodeString {
251
- de_DE = "de-DE",
252
- en_GB = "en-GB",
253
- en_US = "en-US",
254
- es_419 = "es-419",
255
- es_ES = "es-ES",
256
- fr_CA = "fr-CA",
257
- fr_FR = "fr-FR",
258
- it_IT = "it-IT",
259
- jp_JP = "ja-JP",
260
- kr_KR = "kr-KR",
261
- pt_BR = "pt-BR",
262
- zh_CN = "zh-CN",
263
- zh_TW = "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 enum NumberCapability {
1049
- MMS = "MMS",
1050
- SMS = "SMS",
1051
- VOICE = "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 declare enum RouteType {
1057
- Premium = "Premium",
1058
- Promotional = "Promotional",
1059
- Transactional = "Transactional"
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 enum SMSSandboxPhoneNumberVerificationStatus {
1206
- Pending = "Pending",
1207
- Verified = "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 enum LanguageCodeString {
92
- de_DE = "de-DE",
93
- en_GB = "en-GB",
94
- en_US = "en-US",
95
- es_419 = "es-419",
96
- es_ES = "es-ES",
97
- fr_CA = "fr-CA",
98
- fr_FR = "fr-FR",
99
- it_IT = "it-IT",
100
- jp_JP = "ja-JP",
101
- kr_KR = "kr-KR",
102
- pt_BR = "pt-BR",
103
- zh_CN = "zh-CN",
104
- zh_TW = "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 enum NumberCapability {
249
- MMS = "MMS",
250
- SMS = "SMS",
251
- VOICE = "VOICE",
252
- }
253
- export declare enum RouteType {
254
- Premium = "Premium",
255
- Promotional = "Promotional",
256
- Transactional = "Transactional",
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 enum SMSSandboxPhoneNumberVerificationStatus {
301
- Pending = "Pending",
302
- Verified = "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.301.0",
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.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
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.295.0",
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",