@aws-sdk/client-account 3.1143.0 → 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/README.md CHANGED
@@ -286,8 +286,22 @@ PutContactInformation
286
286
  </details>
287
287
  <details>
288
288
  <summary>
289
+ SendPhoneNumberVerification
290
+ </summary>
291
+
292
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/SendPhoneNumberVerificationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/SendPhoneNumberVerificationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/SendPhoneNumberVerificationCommandOutput/)
293
+ </details>
294
+ <details>
295
+ <summary>
289
296
  StartPrimaryEmailUpdate
290
297
  </summary>
291
298
 
292
299
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/StartPrimaryEmailUpdateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/StartPrimaryEmailUpdateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/StartPrimaryEmailUpdateCommandOutput/)
293
300
  </details>
301
+ <details>
302
+ <summary>
303
+ VerifyPhoneNumber
304
+ </summary>
305
+
306
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/account/command/VerifyPhoneNumberCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/VerifyPhoneNumberCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-account/Interface/VerifyPhoneNumberCommandOutput/)
307
+ </details>
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1142.0";
72
+ var version = "3.1144.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -326,6 +326,9 @@ const _SOR = "StateOrRegion";
326
326
  const _SPEU = "StartPrimaryEmailUpdate";
327
327
  const _SPEUR = "StartPrimaryEmailUpdateRequest";
328
328
  const _SPEURt = "StartPrimaryEmailUpdateResponse";
329
+ const _SPNV = "SendPhoneNumberVerification";
330
+ const _SPNVR = "SendPhoneNumberVerificationRequest";
331
+ const _SPNVRe = "SendPhoneNumberVerificationResponse";
329
332
  const _SS = "SensitiveString";
330
333
  const _T = "Title";
331
334
  const _TMRE = "TooManyRequestsException";
@@ -333,6 +336,10 @@ const _UA = "UpdatedAt";
333
336
  const _VE = "ValidationException";
334
337
  const _VEF = "ValidationExceptionField";
335
338
  const _VEFL = "ValidationExceptionFieldList";
339
+ const _VPN = "VerifyPhoneNumber";
340
+ const _VPNR = "VerifyPhoneNumberRequest";
341
+ const _VPNRe = "VerifyPhoneNumberResponse";
342
+ const _VS = "VerificationStatus";
336
343
  const _WU = "WebsiteUrl";
337
344
  const _c = "client";
338
345
  const _e = "error";
@@ -478,8 +485,8 @@ var GetContactInformationRequest$ = [3, n0, _GCIR,
478
485
  ];
479
486
  var GetContactInformationResponse$ = [3, n0, _GCIRe,
480
487
  0,
481
- [_CI],
482
- [[() => ContactInformation$, 0]]
488
+ [_CI, _VS],
489
+ [[() => ContactInformation$, 0], 0]
483
490
  ];
484
491
  var GetGovCloudAccountInformationRequest$ = [3, n0, _GGCAIR,
485
492
  0,
@@ -551,6 +558,16 @@ var Region$ = [3, n0, _Re,
551
558
  [_RN, _ROS],
552
559
  [0, 0]
553
560
  ];
561
+ var SendPhoneNumberVerificationRequest$ = [3, n0, _SPNVR,
562
+ 0,
563
+ [_AI],
564
+ [0]
565
+ ];
566
+ var SendPhoneNumberVerificationResponse$ = [3, n0, _SPNVRe,
567
+ 0,
568
+ [_S],
569
+ [0]
570
+ ];
554
571
  var StartPrimaryEmailUpdateRequest$ = [3, n0, _SPEUR,
555
572
  0,
556
573
  [_AI, _PE],
@@ -566,6 +583,16 @@ var ValidationExceptionField$ = [3, n0, _VEF,
566
583
  [_n, _m],
567
584
  [0, [() => SensitiveString, 0]], 2
568
585
  ];
586
+ var VerifyPhoneNumberRequest$ = [3, n0, _VPNR,
587
+ 0,
588
+ [_O, _AI],
589
+ [[() => Otp, 0], 0], 1
590
+ ];
591
+ var VerifyPhoneNumberResponse$ = [3, n0, _VPNRe,
592
+ 0,
593
+ [_S],
594
+ [0]
595
+ ];
569
596
  var __Unit = "unit";
570
597
  var RegionOptList = [1, n0, _ROL,
571
598
  0, () => Region$
@@ -619,9 +646,15 @@ var PutAlternateContact$ = [9, n0, _PAC,
619
646
  var PutContactInformation$ = [9, n0, _PCI,
620
647
  { [_h]: ["POST", "/putContactInformation", 200] }, () => PutContactInformationRequest$, () => __Unit
621
648
  ];
649
+ var SendPhoneNumberVerification$ = [9, n0, _SPNV,
650
+ { [_h]: ["POST", "/sendPhoneNumberVerification", 200] }, () => SendPhoneNumberVerificationRequest$, () => SendPhoneNumberVerificationResponse$
651
+ ];
622
652
  var StartPrimaryEmailUpdate$ = [9, n0, _SPEU,
623
653
  { [_h]: ["POST", "/startPrimaryEmailUpdate", 200] }, () => StartPrimaryEmailUpdateRequest$, () => StartPrimaryEmailUpdateResponse$
624
654
  ];
655
+ var VerifyPhoneNumber$ = [9, n0, _VPN,
656
+ { [_h]: ["POST", "/verifyPhoneNumber", 200] }, () => VerifyPhoneNumberRequest$, () => VerifyPhoneNumberResponse$
657
+ ];
625
658
 
626
659
  const getRuntimeConfig$1 = (config) => {
627
660
  return {
@@ -818,9 +851,15 @@ class PutAlternateContactCommand extends command(_ep0, _mw0, "PutAlternateContac
818
851
  class PutContactInformationCommand extends command(_ep0, _mw0, "PutContactInformation", PutContactInformation$) {
819
852
  }
820
853
 
854
+ class SendPhoneNumberVerificationCommand extends command(_ep0, _mw0, "SendPhoneNumberVerification", SendPhoneNumberVerification$) {
855
+ }
856
+
821
857
  class StartPrimaryEmailUpdateCommand extends command(_ep0, _mw0, "StartPrimaryEmailUpdate", StartPrimaryEmailUpdate$) {
822
858
  }
823
859
 
860
+ class VerifyPhoneNumberCommand extends command(_ep0, _mw0, "VerifyPhoneNumber", VerifyPhoneNumber$) {
861
+ }
862
+
824
863
  const paginateListRegions = createPaginator(AccountClient, ListRegionsCommand, "NextToken", "NextToken", "MaxResults");
825
864
 
826
865
  const commands = {
@@ -839,7 +878,9 @@ const commands = {
839
878
  PutAccountNameCommand,
840
879
  PutAlternateContactCommand,
841
880
  PutContactInformationCommand,
881
+ SendPhoneNumberVerificationCommand,
842
882
  StartPrimaryEmailUpdateCommand,
883
+ VerifyPhoneNumberCommand,
843
884
  };
844
885
  const paginators = {
845
886
  paginateListRegions,
@@ -875,6 +916,12 @@ const AwsAccountState = {
875
916
  PENDING_ACTIVATION: "PENDING_ACTIVATION",
876
917
  SUSPENDED: "SUSPENDED",
877
918
  };
919
+ const PhoneNumberVerificationStatus = {
920
+ NOT_SUPPORTED: "NOT_SUPPORTED",
921
+ PENDING: "PENDING",
922
+ UNVERIFIED: "UNVERIFIED",
923
+ VERIFIED: "VERIFIED",
924
+ };
878
925
  const RegionOptStatus = {
879
926
  DISABLED: "DISABLED",
880
927
  DISABLING: "DISABLING",
@@ -943,6 +990,7 @@ exports.ListRegions$ = ListRegions$;
943
990
  exports.ListRegionsCommand = ListRegionsCommand;
944
991
  exports.ListRegionsRequest$ = ListRegionsRequest$;
945
992
  exports.ListRegionsResponse$ = ListRegionsResponse$;
993
+ exports.PhoneNumberVerificationStatus = PhoneNumberVerificationStatus;
946
994
  exports.PrimaryEmailUpdateStatus = PrimaryEmailUpdateStatus;
947
995
  exports.PutAccountName$ = PutAccountName$;
948
996
  exports.PutAccountNameCommand = PutAccountNameCommand;
@@ -959,6 +1007,10 @@ exports.ResourceNotFoundException = ResourceNotFoundException;
959
1007
  exports.ResourceNotFoundException$ = ResourceNotFoundException$;
960
1008
  exports.ResourceUnavailableException = ResourceUnavailableException;
961
1009
  exports.ResourceUnavailableException$ = ResourceUnavailableException$;
1010
+ exports.SendPhoneNumberVerification$ = SendPhoneNumberVerification$;
1011
+ exports.SendPhoneNumberVerificationCommand = SendPhoneNumberVerificationCommand;
1012
+ exports.SendPhoneNumberVerificationRequest$ = SendPhoneNumberVerificationRequest$;
1013
+ exports.SendPhoneNumberVerificationResponse$ = SendPhoneNumberVerificationResponse$;
962
1014
  exports.StartPrimaryEmailUpdate$ = StartPrimaryEmailUpdate$;
963
1015
  exports.StartPrimaryEmailUpdateCommand = StartPrimaryEmailUpdateCommand;
964
1016
  exports.StartPrimaryEmailUpdateRequest$ = StartPrimaryEmailUpdateRequest$;
@@ -969,5 +1021,9 @@ exports.ValidationException = ValidationException;
969
1021
  exports.ValidationException$ = ValidationException$;
970
1022
  exports.ValidationExceptionField$ = ValidationExceptionField$;
971
1023
  exports.ValidationExceptionReason = ValidationExceptionReason;
1024
+ exports.VerifyPhoneNumber$ = VerifyPhoneNumber$;
1025
+ exports.VerifyPhoneNumberCommand = VerifyPhoneNumberCommand;
1026
+ exports.VerifyPhoneNumberRequest$ = VerifyPhoneNumberRequest$;
1027
+ exports.VerifyPhoneNumberResponse$ = VerifyPhoneNumberResponse$;
972
1028
  exports.errorTypeRegistries = errorTypeRegistries;
973
1029
  exports.paginateListRegions = paginateListRegions;
@@ -15,7 +15,9 @@ import { ListRegionsCommand, } from "./commands/ListRegionsCommand";
15
15
  import { PutAccountNameCommand, } from "./commands/PutAccountNameCommand";
16
16
  import { PutAlternateContactCommand, } from "./commands/PutAlternateContactCommand";
17
17
  import { PutContactInformationCommand, } from "./commands/PutContactInformationCommand";
18
+ import { SendPhoneNumberVerificationCommand, } from "./commands/SendPhoneNumberVerificationCommand";
18
19
  import { StartPrimaryEmailUpdateCommand, } from "./commands/StartPrimaryEmailUpdateCommand";
20
+ import { VerifyPhoneNumberCommand, } from "./commands/VerifyPhoneNumberCommand";
19
21
  import { paginateListRegions } from "./pagination/ListRegionsPaginator";
20
22
  const commands = {
21
23
  AcceptPrimaryEmailUpdateCommand,
@@ -33,7 +35,9 @@ const commands = {
33
35
  PutAccountNameCommand,
34
36
  PutAlternateContactCommand,
35
37
  PutContactInformationCommand,
38
+ SendPhoneNumberVerificationCommand,
36
39
  StartPrimaryEmailUpdateCommand,
40
+ VerifyPhoneNumberCommand,
37
41
  };
38
42
  const paginators = {
39
43
  paginateListRegions,
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { SendPhoneNumberVerification$ } from "../schemas/schemas_0";
3
+ export class SendPhoneNumberVerificationCommand extends command(_ep0, _mw0, "SendPhoneNumberVerification", SendPhoneNumberVerification$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { VerifyPhoneNumber$ } from "../schemas/schemas_0";
3
+ export class VerifyPhoneNumberCommand extends command(_ep0, _mw0, "VerifyPhoneNumber", VerifyPhoneNumber$) {
4
+ }
@@ -13,4 +13,6 @@ export * from "./ListRegionsCommand";
13
13
  export * from "./PutAccountNameCommand";
14
14
  export * from "./PutAlternateContactCommand";
15
15
  export * from "./PutContactInformationCommand";
16
+ export * from "./SendPhoneNumberVerificationCommand";
16
17
  export * from "./StartPrimaryEmailUpdateCommand";
18
+ export * from "./VerifyPhoneNumberCommand";
@@ -25,6 +25,12 @@ export const AwsAccountState = {
25
25
  PENDING_ACTIVATION: "PENDING_ACTIVATION",
26
26
  SUSPENDED: "SUSPENDED",
27
27
  };
28
+ export const PhoneNumberVerificationStatus = {
29
+ NOT_SUPPORTED: "NOT_SUPPORTED",
30
+ PENDING: "PENDING",
31
+ UNVERIFIED: "UNVERIFIED",
32
+ VERIFIED: "VERIFIED",
33
+ };
28
34
  export const RegionOptStatus = {
29
35
  DISABLED: "DISABLED",
30
36
  DISABLING: "DISABLING",
@@ -81,6 +81,9 @@ const _SOR = "StateOrRegion";
81
81
  const _SPEU = "StartPrimaryEmailUpdate";
82
82
  const _SPEUR = "StartPrimaryEmailUpdateRequest";
83
83
  const _SPEURt = "StartPrimaryEmailUpdateResponse";
84
+ const _SPNV = "SendPhoneNumberVerification";
85
+ const _SPNVR = "SendPhoneNumberVerificationRequest";
86
+ const _SPNVRe = "SendPhoneNumberVerificationResponse";
84
87
  const _SS = "SensitiveString";
85
88
  const _T = "Title";
86
89
  const _TMRE = "TooManyRequestsException";
@@ -88,6 +91,10 @@ const _UA = "UpdatedAt";
88
91
  const _VE = "ValidationException";
89
92
  const _VEF = "ValidationExceptionField";
90
93
  const _VEFL = "ValidationExceptionFieldList";
94
+ const _VPN = "VerifyPhoneNumber";
95
+ const _VPNR = "VerifyPhoneNumberRequest";
96
+ const _VPNRe = "VerifyPhoneNumberResponse";
97
+ const _VS = "VerificationStatus";
91
98
  const _WU = "WebsiteUrl";
92
99
  const _c = "client";
93
100
  const _e = "error";
@@ -236,8 +243,8 @@ export var GetContactInformationRequest$ = [3, n0, _GCIR,
236
243
  ];
237
244
  export var GetContactInformationResponse$ = [3, n0, _GCIRe,
238
245
  0,
239
- [_CI],
240
- [[() => ContactInformation$, 0]]
246
+ [_CI, _VS],
247
+ [[() => ContactInformation$, 0], 0]
241
248
  ];
242
249
  export var GetGovCloudAccountInformationRequest$ = [3, n0, _GGCAIR,
243
250
  0,
@@ -309,6 +316,16 @@ export var Region$ = [3, n0, _Re,
309
316
  [_RN, _ROS],
310
317
  [0, 0]
311
318
  ];
319
+ export var SendPhoneNumberVerificationRequest$ = [3, n0, _SPNVR,
320
+ 0,
321
+ [_AI],
322
+ [0]
323
+ ];
324
+ export var SendPhoneNumberVerificationResponse$ = [3, n0, _SPNVRe,
325
+ 0,
326
+ [_S],
327
+ [0]
328
+ ];
312
329
  export var StartPrimaryEmailUpdateRequest$ = [3, n0, _SPEUR,
313
330
  0,
314
331
  [_AI, _PE],
@@ -324,6 +341,16 @@ export var ValidationExceptionField$ = [3, n0, _VEF,
324
341
  [_n, _m],
325
342
  [0, [() => SensitiveString, 0]], 2
326
343
  ];
344
+ export var VerifyPhoneNumberRequest$ = [3, n0, _VPNR,
345
+ 0,
346
+ [_O, _AI],
347
+ [[() => Otp, 0], 0], 1
348
+ ];
349
+ export var VerifyPhoneNumberResponse$ = [3, n0, _VPNRe,
350
+ 0,
351
+ [_S],
352
+ [0]
353
+ ];
327
354
  var __Unit = "unit";
328
355
  var RegionOptList = [1, n0, _ROL,
329
356
  0, () => Region$
@@ -378,6 +405,12 @@ export var PutAlternateContact$ = [9, n0, _PAC,
378
405
  export var PutContactInformation$ = [9, n0, _PCI,
379
406
  { [_h]: ["POST", "/putContactInformation", 200] }, () => PutContactInformationRequest$, () => __Unit
380
407
  ];
408
+ export var SendPhoneNumberVerification$ = [9, n0, _SPNV,
409
+ { [_h]: ["POST", "/sendPhoneNumberVerification", 200] }, () => SendPhoneNumberVerificationRequest$, () => SendPhoneNumberVerificationResponse$
410
+ ];
381
411
  export var StartPrimaryEmailUpdate$ = [9, n0, _SPEU,
382
412
  { [_h]: ["POST", "/startPrimaryEmailUpdate", 200] }, () => StartPrimaryEmailUpdateRequest$, () => StartPrimaryEmailUpdateResponse$
383
413
  ];
414
+ export var VerifyPhoneNumber$ = [9, n0, _VPN,
415
+ { [_h]: ["POST", "/verifyPhoneNumber", 200] }, () => VerifyPhoneNumberRequest$, () => VerifyPhoneNumberResponse$
416
+ ];
@@ -15,7 +15,9 @@ import { type ListRegionsCommandInput, type ListRegionsCommandOutput } from "./c
15
15
  import { type PutAccountNameCommandInput, type PutAccountNameCommandOutput } from "./commands/PutAccountNameCommand";
16
16
  import { type PutAlternateContactCommandInput, type PutAlternateContactCommandOutput } from "./commands/PutAlternateContactCommand";
17
17
  import { type PutContactInformationCommandInput, type PutContactInformationCommandOutput } from "./commands/PutContactInformationCommand";
18
+ import { type SendPhoneNumberVerificationCommandInput, type SendPhoneNumberVerificationCommandOutput } from "./commands/SendPhoneNumberVerificationCommand";
18
19
  import { type StartPrimaryEmailUpdateCommandInput, type StartPrimaryEmailUpdateCommandOutput } from "./commands/StartPrimaryEmailUpdateCommand";
20
+ import { type VerifyPhoneNumberCommandInput, type VerifyPhoneNumberCommandOutput } from "./commands/VerifyPhoneNumberCommand";
19
21
  /**
20
22
  * @public
21
23
  */
@@ -118,12 +120,25 @@ export interface Account {
118
120
  putContactInformation(args: PutContactInformationCommandInput, options?: AccountRequestOptions): Promise<PutContactInformationCommandOutput>;
119
121
  putContactInformation(args: PutContactInformationCommandInput, cb: (err: any, data?: PutContactInformationCommandOutput) => void): void;
120
122
  putContactInformation(args: PutContactInformationCommandInput, options: AccountRequestOptions, cb: (err: any, data?: PutContactInformationCommandOutput) => void): void;
123
+ /**
124
+ * @see {@link SendPhoneNumberVerificationCommand}
125
+ */
126
+ sendPhoneNumberVerification(): Promise<SendPhoneNumberVerificationCommandOutput>;
127
+ sendPhoneNumberVerification(args: SendPhoneNumberVerificationCommandInput, options?: AccountRequestOptions): Promise<SendPhoneNumberVerificationCommandOutput>;
128
+ sendPhoneNumberVerification(args: SendPhoneNumberVerificationCommandInput, cb: (err: any, data?: SendPhoneNumberVerificationCommandOutput) => void): void;
129
+ sendPhoneNumberVerification(args: SendPhoneNumberVerificationCommandInput, options: AccountRequestOptions, cb: (err: any, data?: SendPhoneNumberVerificationCommandOutput) => void): void;
121
130
  /**
122
131
  * @see {@link StartPrimaryEmailUpdateCommand}
123
132
  */
124
133
  startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options?: AccountRequestOptions): Promise<StartPrimaryEmailUpdateCommandOutput>;
125
134
  startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, cb: (err: any, data?: StartPrimaryEmailUpdateCommandOutput) => void): void;
126
135
  startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options: AccountRequestOptions, cb: (err: any, data?: StartPrimaryEmailUpdateCommandOutput) => void): void;
136
+ /**
137
+ * @see {@link VerifyPhoneNumberCommand}
138
+ */
139
+ verifyPhoneNumber(args: VerifyPhoneNumberCommandInput, options?: AccountRequestOptions): Promise<VerifyPhoneNumberCommandOutput>;
140
+ verifyPhoneNumber(args: VerifyPhoneNumberCommandInput, cb: (err: any, data?: VerifyPhoneNumberCommandOutput) => void): void;
141
+ verifyPhoneNumber(args: VerifyPhoneNumberCommandInput, options: AccountRequestOptions, cb: (err: any, data?: VerifyPhoneNumberCommandOutput) => void): void;
127
142
  /**
128
143
  * @see {@link ListRegionsCommand}
129
144
  * @param args - command input.
@@ -21,18 +21,20 @@ import type { ListRegionsCommandInput, ListRegionsCommandOutput } from "./comman
21
21
  import type { PutAccountNameCommandInput, PutAccountNameCommandOutput } from "./commands/PutAccountNameCommand";
22
22
  import type { PutAlternateContactCommandInput, PutAlternateContactCommandOutput } from "./commands/PutAlternateContactCommand";
23
23
  import type { PutContactInformationCommandInput, PutContactInformationCommandOutput } from "./commands/PutContactInformationCommand";
24
+ import type { SendPhoneNumberVerificationCommandInput, SendPhoneNumberVerificationCommandOutput } from "./commands/SendPhoneNumberVerificationCommand";
24
25
  import type { StartPrimaryEmailUpdateCommandInput, StartPrimaryEmailUpdateCommandOutput } from "./commands/StartPrimaryEmailUpdateCommand";
26
+ import type { VerifyPhoneNumberCommandInput, VerifyPhoneNumberCommandOutput } from "./commands/VerifyPhoneNumberCommand";
25
27
  import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
26
28
  import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
27
29
  export { __Client };
28
30
  /**
29
31
  * @public
30
32
  */
31
- export type ServiceInputTypes = AcceptPrimaryEmailUpdateCommandInput | DeleteAlternateContactCommandInput | DisableRegionCommandInput | EnableRegionCommandInput | GetAccountInformationCommandInput | GetAlternateContactCommandInput | GetContactInformationCommandInput | GetGovCloudAccountInformationCommandInput | GetPrimaryEmailCommandInput | GetPrimaryEmailUpdateStatusCommandInput | GetRegionOptStatusCommandInput | ListRegionsCommandInput | PutAccountNameCommandInput | PutAlternateContactCommandInput | PutContactInformationCommandInput | StartPrimaryEmailUpdateCommandInput;
33
+ export type ServiceInputTypes = AcceptPrimaryEmailUpdateCommandInput | DeleteAlternateContactCommandInput | DisableRegionCommandInput | EnableRegionCommandInput | GetAccountInformationCommandInput | GetAlternateContactCommandInput | GetContactInformationCommandInput | GetGovCloudAccountInformationCommandInput | GetPrimaryEmailCommandInput | GetPrimaryEmailUpdateStatusCommandInput | GetRegionOptStatusCommandInput | ListRegionsCommandInput | PutAccountNameCommandInput | PutAlternateContactCommandInput | PutContactInformationCommandInput | SendPhoneNumberVerificationCommandInput | StartPrimaryEmailUpdateCommandInput | VerifyPhoneNumberCommandInput;
32
34
  /**
33
35
  * @public
34
36
  */
35
- export type ServiceOutputTypes = AcceptPrimaryEmailUpdateCommandOutput | DeleteAlternateContactCommandOutput | DisableRegionCommandOutput | EnableRegionCommandOutput | GetAccountInformationCommandOutput | GetAlternateContactCommandOutput | GetContactInformationCommandOutput | GetGovCloudAccountInformationCommandOutput | GetPrimaryEmailCommandOutput | GetPrimaryEmailUpdateStatusCommandOutput | GetRegionOptStatusCommandOutput | ListRegionsCommandOutput | PutAccountNameCommandOutput | PutAlternateContactCommandOutput | PutContactInformationCommandOutput | StartPrimaryEmailUpdateCommandOutput;
37
+ export type ServiceOutputTypes = AcceptPrimaryEmailUpdateCommandOutput | DeleteAlternateContactCommandOutput | DisableRegionCommandOutput | EnableRegionCommandOutput | GetAccountInformationCommandOutput | GetAlternateContactCommandOutput | GetContactInformationCommandOutput | GetGovCloudAccountInformationCommandOutput | GetPrimaryEmailCommandOutput | GetPrimaryEmailUpdateStatusCommandOutput | GetRegionOptStatusCommandOutput | ListRegionsCommandOutput | PutAccountNameCommandOutput | PutAlternateContactCommandOutput | PutContactInformationCommandOutput | SendPhoneNumberVerificationCommandOutput | StartPrimaryEmailUpdateCommandOutput | VerifyPhoneNumberCommandOutput;
36
38
  /**
37
39
  * @public
38
40
  */
@@ -53,6 +53,7 @@ declare const GetContactInformationCommand_base: {
53
53
  * // CompanyName: "STRING_VALUE",
54
54
  * // WebsiteUrl: "STRING_VALUE",
55
55
  * // },
56
+ * // VerificationStatus: "STRING_VALUE",
56
57
  * // };
57
58
  *
58
59
  * ```
@@ -0,0 +1,89 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { SendPhoneNumberVerificationRequest, SendPhoneNumberVerificationResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link SendPhoneNumberVerificationCommand}.
11
+ */
12
+ export interface SendPhoneNumberVerificationCommandInput extends SendPhoneNumberVerificationRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link SendPhoneNumberVerificationCommand}.
18
+ */
19
+ export interface SendPhoneNumberVerificationCommandOutput extends SendPhoneNumberVerificationResponse, __MetadataBearer {
20
+ }
21
+ declare const SendPhoneNumberVerificationCommand_base: {
22
+ new (input: SendPhoneNumberVerificationCommandInput): import("@smithy/core/client").CommandImpl<SendPhoneNumberVerificationCommandInput, SendPhoneNumberVerificationCommandOutput, import("..").AccountClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [SendPhoneNumberVerificationCommandInput]): import("@smithy/core/client").CommandImpl<SendPhoneNumberVerificationCommandInput, SendPhoneNumberVerificationCommandOutput, import("..").AccountClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Sends a one-time passcode to the phone number in the primary contact information of an Amazon Web Services account. Use <a>VerifyPhoneNumber</a> to submit the passcode and complete the verification.</p> <p>For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-primary.html">Update the primary contact for your Amazon Web Services account</a>.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { AccountClient, SendPhoneNumberVerificationCommand } from "@aws-sdk/client-account"; // ES Modules import
32
+ * // const { AccountClient, SendPhoneNumberVerificationCommand } = require("@aws-sdk/client-account"); // CommonJS import
33
+ * // import type { AccountClientConfig } from "@aws-sdk/client-account";
34
+ * const config = {}; // type is AccountClientConfig
35
+ * const client = new AccountClient(config);
36
+ * const input = { // SendPhoneNumberVerificationRequest
37
+ * AccountId: "STRING_VALUE",
38
+ * };
39
+ * const command = new SendPhoneNumberVerificationCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // SendPhoneNumberVerificationResponse
42
+ * // Status: "STRING_VALUE",
43
+ * // };
44
+ *
45
+ * ```
46
+ *
47
+ * @param SendPhoneNumberVerificationCommandInput - {@link SendPhoneNumberVerificationCommandInput}
48
+ * @returns {@link SendPhoneNumberVerificationCommandOutput}
49
+ * @see {@link SendPhoneNumberVerificationCommandInput} for command's `input` shape.
50
+ * @see {@link SendPhoneNumberVerificationCommandOutput} for command's `response` shape.
51
+ * @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
52
+ *
53
+ * @throws {@link AccessDeniedException} (client fault)
54
+ * <p>The operation failed because the calling identity doesn't have the minimum required permissions.</p>
55
+ *
56
+ * @throws {@link ConflictException} (client fault)
57
+ * <p>The request could not be processed because of a conflict in the current status of the resource. For example, this happens if you try to enable a Region that is currently being disabled (in a status of DISABLING) or if you try to change an account’s root user email to an email address which is already in use.</p>
58
+ *
59
+ * @throws {@link InternalServerException} (server fault)
60
+ * <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again later.</p>
61
+ *
62
+ * @throws {@link ResourceNotFoundException} (client fault)
63
+ * <p>The operation failed because it specified a resource that can't be found.</p>
64
+ *
65
+ * @throws {@link TooManyRequestsException} (client fault)
66
+ * <p>The operation failed because it was called too frequently and exceeded a throttle limit.</p>
67
+ *
68
+ * @throws {@link ValidationException} (client fault)
69
+ * <p>The operation failed because one of the input parameters was invalid.</p>
70
+ *
71
+ * @throws {@link AccountServiceException}
72
+ * <p>Base exception class for all service exceptions from Account service.</p>
73
+ *
74
+ *
75
+ * @public
76
+ */
77
+ export declare class SendPhoneNumberVerificationCommand extends SendPhoneNumberVerificationCommand_base {
78
+ /** @internal type navigation helper, not in runtime. */
79
+ protected static __types: {
80
+ api: {
81
+ input: SendPhoneNumberVerificationRequest;
82
+ output: SendPhoneNumberVerificationResponse;
83
+ };
84
+ sdk: {
85
+ input: SendPhoneNumberVerificationCommandInput;
86
+ output: SendPhoneNumberVerificationCommandOutput;
87
+ };
88
+ };
89
+ }
@@ -0,0 +1,90 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { VerifyPhoneNumberRequest, VerifyPhoneNumberResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link VerifyPhoneNumberCommand}.
11
+ */
12
+ export interface VerifyPhoneNumberCommandInput extends VerifyPhoneNumberRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link VerifyPhoneNumberCommand}.
18
+ */
19
+ export interface VerifyPhoneNumberCommandOutput extends VerifyPhoneNumberResponse, __MetadataBearer {
20
+ }
21
+ declare const VerifyPhoneNumberCommand_base: {
22
+ new (input: VerifyPhoneNumberCommandInput): import("@smithy/core/client").CommandImpl<VerifyPhoneNumberCommandInput, VerifyPhoneNumberCommandOutput, import("..").AccountClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: VerifyPhoneNumberCommandInput): import("@smithy/core/client").CommandImpl<VerifyPhoneNumberCommandInput, VerifyPhoneNumberCommandOutput, import("..").AccountClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Verifies the phone number in the primary contact information of an Amazon Web Services account by submitting the one-time passcode that <a>SendPhoneNumberVerification</a> sent to that phone number.</p> <p>For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact-primary.html">Update the primary contact for your Amazon Web Services account</a>.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { AccountClient, VerifyPhoneNumberCommand } from "@aws-sdk/client-account"; // ES Modules import
32
+ * // const { AccountClient, VerifyPhoneNumberCommand } = require("@aws-sdk/client-account"); // CommonJS import
33
+ * // import type { AccountClientConfig } from "@aws-sdk/client-account";
34
+ * const config = {}; // type is AccountClientConfig
35
+ * const client = new AccountClient(config);
36
+ * const input = { // VerifyPhoneNumberRequest
37
+ * AccountId: "STRING_VALUE",
38
+ * Otp: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new VerifyPhoneNumberCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // VerifyPhoneNumberResponse
43
+ * // Status: "STRING_VALUE",
44
+ * // };
45
+ *
46
+ * ```
47
+ *
48
+ * @param VerifyPhoneNumberCommandInput - {@link VerifyPhoneNumberCommandInput}
49
+ * @returns {@link VerifyPhoneNumberCommandOutput}
50
+ * @see {@link VerifyPhoneNumberCommandInput} for command's `input` shape.
51
+ * @see {@link VerifyPhoneNumberCommandOutput} for command's `response` shape.
52
+ * @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>The operation failed because the calling identity doesn't have the minimum required permissions.</p>
56
+ *
57
+ * @throws {@link ConflictException} (client fault)
58
+ * <p>The request could not be processed because of a conflict in the current status of the resource. For example, this happens if you try to enable a Region that is currently being disabled (in a status of DISABLING) or if you try to change an account’s root user email to an email address which is already in use.</p>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again later.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The operation failed because it specified a resource that can't be found.</p>
65
+ *
66
+ * @throws {@link TooManyRequestsException} (client fault)
67
+ * <p>The operation failed because it was called too frequently and exceeded a throttle limit.</p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <p>The operation failed because one of the input parameters was invalid.</p>
71
+ *
72
+ * @throws {@link AccountServiceException}
73
+ * <p>Base exception class for all service exceptions from Account service.</p>
74
+ *
75
+ *
76
+ * @public
77
+ */
78
+ export declare class VerifyPhoneNumberCommand extends VerifyPhoneNumberCommand_base {
79
+ /** @internal type navigation helper, not in runtime. */
80
+ protected static __types: {
81
+ api: {
82
+ input: VerifyPhoneNumberRequest;
83
+ output: VerifyPhoneNumberResponse;
84
+ };
85
+ sdk: {
86
+ input: VerifyPhoneNumberCommandInput;
87
+ output: VerifyPhoneNumberCommandOutput;
88
+ };
89
+ };
90
+ }
@@ -13,4 +13,6 @@ export * from "./ListRegionsCommand";
13
13
  export * from "./PutAccountNameCommand";
14
14
  export * from "./PutAlternateContactCommand";
15
15
  export * from "./PutContactInformationCommand";
16
+ export * from "./SendPhoneNumberVerificationCommand";
16
17
  export * from "./StartPrimaryEmailUpdateCommand";
18
+ export * from "./VerifyPhoneNumberCommand";
@@ -65,6 +65,20 @@ export declare const AwsAccountState: {
65
65
  * @public
66
66
  */
67
67
  export type AwsAccountState = (typeof AwsAccountState)[keyof typeof AwsAccountState];
68
+ /**
69
+ * @public
70
+ * @enum
71
+ */
72
+ export declare const PhoneNumberVerificationStatus: {
73
+ readonly NOT_SUPPORTED: "NOT_SUPPORTED";
74
+ readonly PENDING: "PENDING";
75
+ readonly UNVERIFIED: "UNVERIFIED";
76
+ readonly VERIFIED: "VERIFIED";
77
+ };
78
+ /**
79
+ * @public
80
+ */
81
+ export type PhoneNumberVerificationStatus = (typeof PhoneNumberVerificationStatus)[keyof typeof PhoneNumberVerificationStatus];
68
82
  /**
69
83
  * @public
70
84
  * @enum
@@ -1,4 +1,4 @@
1
- import type { AccountState, AlternateContactType, AwsAccountState, PrimaryEmailUpdateStatus, RegionOptStatus } from "./enums";
1
+ import type { AccountState, AlternateContactType, AwsAccountState, PhoneNumberVerificationStatus, PrimaryEmailUpdateStatus, RegionOptStatus } from "./enums";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -311,6 +311,11 @@ export interface GetContactInformationResponse {
311
311
  * @public
312
312
  */
313
313
  ContactInformation?: ContactInformation | undefined;
314
+ /**
315
+ * <p>The verification status of the phone number in the primary contact information associated with an Amazon Web Services account. Valid values:</p> <ul> <li> <p> <code>PENDING</code> – A one-time passcode has been sent and is waiting to be submitted.</p> </li> <li> <p> <code>VERIFIED</code> – The phone number has been verified.</p> </li> <li> <p> <code>UNVERIFIED</code> – The phone number has not been verified.</p> </li> <li> <p> <code>NOT_SUPPORTED</code> – Phone number verification isn't available for this account.</p> </li> </ul>
316
+ * @public
317
+ */
318
+ VerificationStatus?: PhoneNumberVerificationStatus | undefined;
314
319
  }
315
320
  /**
316
321
  * @public
@@ -327,6 +332,51 @@ export interface PutContactInformationRequest {
327
332
  */
328
333
  AccountId?: string | undefined;
329
334
  }
335
+ /**
336
+ * @public
337
+ */
338
+ export interface SendPhoneNumberVerificationRequest {
339
+ /**
340
+ * <p>Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.</p> <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.</p> <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html">trusted access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin">delegated administrator</a> account assigned.</p> <note> <p>The management account can't specify its own <code>AccountId</code>; it must call the operation in standalone context by not including the <code>AccountId</code> parameter.</p> </note> <p>To call this operation on an account that is not a member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.</p>
341
+ * @public
342
+ */
343
+ AccountId?: string | undefined;
344
+ }
345
+ /**
346
+ * @public
347
+ */
348
+ export interface SendPhoneNumberVerificationResponse {
349
+ /**
350
+ * <p>The verification status of the phone number in the primary contact information after the one-time passcode is sent. Valid values:</p> <ul> <li> <p> <code>PENDING</code> – A one-time passcode has been sent and is waiting to be submitted.</p> </li> <li> <p> <code>VERIFIED</code> – The phone number has been verified.</p> </li> <li> <p> <code>UNVERIFIED</code> – The phone number has not been verified.</p> </li> <li> <p> <code>NOT_SUPPORTED</code> – Phone number verification isn't available for this account.</p> </li> </ul>
351
+ * @public
352
+ */
353
+ Status?: PhoneNumberVerificationStatus | undefined;
354
+ }
355
+ /**
356
+ * @public
357
+ */
358
+ export interface VerifyPhoneNumberRequest {
359
+ /**
360
+ * <p>Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.</p> <p>If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.</p> <p>To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's management account</a> or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html">trusted access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin">delegated administrator</a> account assigned.</p> <note> <p>The management account can't specify its own <code>AccountId</code>; it must call the operation in standalone context by not including the <code>AccountId</code> parameter.</p> </note> <p>To call this operation on an account that is not a member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.</p>
361
+ * @public
362
+ */
363
+ AccountId?: string | undefined;
364
+ /**
365
+ * <p>The one-time passcode sent to the phone number in the primary contact information by the <code>SendPhoneNumberVerification</code> operation.</p>
366
+ * @public
367
+ */
368
+ Otp: string | undefined;
369
+ }
370
+ /**
371
+ * @public
372
+ */
373
+ export interface VerifyPhoneNumberResponse {
374
+ /**
375
+ * <p>The verification status of the phone number in the primary contact information after the submitted one-time passcode is evaluated. Valid values:</p> <ul> <li> <p> <code>PENDING</code> – A one-time passcode has been sent and is waiting to be submitted.</p> </li> <li> <p> <code>VERIFIED</code> – The phone number has been verified.</p> </li> <li> <p> <code>UNVERIFIED</code> – The phone number has not been verified.</p> </li> <li> <p> <code>NOT_SUPPORTED</code> – Phone number verification isn't available for this account.</p> </li> </ul>
376
+ * @public
377
+ */
378
+ Status?: PhoneNumberVerificationStatus | undefined;
379
+ }
330
380
  /**
331
381
  * @public
332
382
  */
@@ -41,9 +41,13 @@ export declare var PutAccountNameRequest$: StaticStructureSchema;
41
41
  export declare var PutAlternateContactRequest$: StaticStructureSchema;
42
42
  export declare var PutContactInformationRequest$: StaticStructureSchema;
43
43
  export declare var Region$: StaticStructureSchema;
44
+ export declare var SendPhoneNumberVerificationRequest$: StaticStructureSchema;
45
+ export declare var SendPhoneNumberVerificationResponse$: StaticStructureSchema;
44
46
  export declare var StartPrimaryEmailUpdateRequest$: StaticStructureSchema;
45
47
  export declare var StartPrimaryEmailUpdateResponse$: StaticStructureSchema;
46
48
  export declare var ValidationExceptionField$: StaticStructureSchema;
49
+ export declare var VerifyPhoneNumberRequest$: StaticStructureSchema;
50
+ export declare var VerifyPhoneNumberResponse$: StaticStructureSchema;
47
51
  export declare var AcceptPrimaryEmailUpdate$: StaticOperationSchema;
48
52
  export declare var DeleteAlternateContact$: StaticOperationSchema;
49
53
  export declare var DisableRegion$: StaticOperationSchema;
@@ -59,4 +63,6 @@ export declare var ListRegions$: StaticOperationSchema;
59
63
  export declare var PutAccountName$: StaticOperationSchema;
60
64
  export declare var PutAlternateContact$: StaticOperationSchema;
61
65
  export declare var PutContactInformation$: StaticOperationSchema;
66
+ export declare var SendPhoneNumberVerification$: StaticOperationSchema;
62
67
  export declare var StartPrimaryEmailUpdate$: StaticOperationSchema;
68
+ export declare var VerifyPhoneNumber$: StaticOperationSchema;
@@ -62,10 +62,18 @@ import {
62
62
  PutContactInformationCommandInput,
63
63
  PutContactInformationCommandOutput,
64
64
  } from "./commands/PutContactInformationCommand";
65
+ import {
66
+ SendPhoneNumberVerificationCommandInput,
67
+ SendPhoneNumberVerificationCommandOutput,
68
+ } from "./commands/SendPhoneNumberVerificationCommand";
65
69
  import {
66
70
  StartPrimaryEmailUpdateCommandInput,
67
71
  StartPrimaryEmailUpdateCommandOutput,
68
72
  } from "./commands/StartPrimaryEmailUpdateCommand";
73
+ import {
74
+ VerifyPhoneNumberCommandInput,
75
+ VerifyPhoneNumberCommandOutput,
76
+ } from "./commands/VerifyPhoneNumberCommand";
69
77
  export interface AccountRequestOptions extends __HttpHandlerOptions {
70
78
  metricsRecorder?: __MetricsRecorder<unknown>;
71
79
  }
@@ -270,6 +278,20 @@ export interface Account {
270
278
  options: AccountRequestOptions,
271
279
  cb: (err: any, data?: PutContactInformationCommandOutput) => void,
272
280
  ): void;
281
+ sendPhoneNumberVerification(): Promise<SendPhoneNumberVerificationCommandOutput>;
282
+ sendPhoneNumberVerification(
283
+ args: SendPhoneNumberVerificationCommandInput,
284
+ options?: AccountRequestOptions,
285
+ ): Promise<SendPhoneNumberVerificationCommandOutput>;
286
+ sendPhoneNumberVerification(
287
+ args: SendPhoneNumberVerificationCommandInput,
288
+ cb: (err: any, data?: SendPhoneNumberVerificationCommandOutput) => void,
289
+ ): void;
290
+ sendPhoneNumberVerification(
291
+ args: SendPhoneNumberVerificationCommandInput,
292
+ options: AccountRequestOptions,
293
+ cb: (err: any, data?: SendPhoneNumberVerificationCommandOutput) => void,
294
+ ): void;
273
295
  startPrimaryEmailUpdate(
274
296
  args: StartPrimaryEmailUpdateCommandInput,
275
297
  options?: AccountRequestOptions,
@@ -283,6 +305,19 @@ export interface Account {
283
305
  options: AccountRequestOptions,
284
306
  cb: (err: any, data?: StartPrimaryEmailUpdateCommandOutput) => void,
285
307
  ): void;
308
+ verifyPhoneNumber(
309
+ args: VerifyPhoneNumberCommandInput,
310
+ options?: AccountRequestOptions,
311
+ ): Promise<VerifyPhoneNumberCommandOutput>;
312
+ verifyPhoneNumber(
313
+ args: VerifyPhoneNumberCommandInput,
314
+ cb: (err: any, data?: VerifyPhoneNumberCommandOutput) => void,
315
+ ): void;
316
+ verifyPhoneNumber(
317
+ args: VerifyPhoneNumberCommandInput,
318
+ options: AccountRequestOptions,
319
+ cb: (err: any, data?: VerifyPhoneNumberCommandOutput) => void,
320
+ ): void;
286
321
  paginateListRegions(
287
322
  args?: ListRegionsCommandInput,
288
323
  paginationConfig?: Pick<
@@ -90,10 +90,18 @@ import {
90
90
  PutContactInformationCommandInput,
91
91
  PutContactInformationCommandOutput,
92
92
  } from "./commands/PutContactInformationCommand";
93
+ import {
94
+ SendPhoneNumberVerificationCommandInput,
95
+ SendPhoneNumberVerificationCommandOutput,
96
+ } from "./commands/SendPhoneNumberVerificationCommand";
93
97
  import {
94
98
  StartPrimaryEmailUpdateCommandInput,
95
99
  StartPrimaryEmailUpdateCommandOutput,
96
100
  } from "./commands/StartPrimaryEmailUpdateCommand";
101
+ import {
102
+ VerifyPhoneNumberCommandInput,
103
+ VerifyPhoneNumberCommandOutput,
104
+ } from "./commands/VerifyPhoneNumberCommand";
97
105
  import {
98
106
  ClientInputEndpointParameters,
99
107
  ClientResolvedEndpointParameters,
@@ -117,7 +125,9 @@ export type ServiceInputTypes =
117
125
  | PutAccountNameCommandInput
118
126
  | PutAlternateContactCommandInput
119
127
  | PutContactInformationCommandInput
120
- | StartPrimaryEmailUpdateCommandInput;
128
+ | SendPhoneNumberVerificationCommandInput
129
+ | StartPrimaryEmailUpdateCommandInput
130
+ | VerifyPhoneNumberCommandInput;
121
131
  export type ServiceOutputTypes =
122
132
  | AcceptPrimaryEmailUpdateCommandOutput
123
133
  | DeleteAlternateContactCommandOutput
@@ -134,7 +144,9 @@ export type ServiceOutputTypes =
134
144
  | PutAccountNameCommandOutput
135
145
  | PutAlternateContactCommandOutput
136
146
  | PutContactInformationCommandOutput
137
- | StartPrimaryEmailUpdateCommandOutput;
147
+ | SendPhoneNumberVerificationCommandOutput
148
+ | StartPrimaryEmailUpdateCommandOutput
149
+ | VerifyPhoneNumberCommandOutput;
138
150
  export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
139
151
  requestHandler?: __HttpHandlerUserInput;
140
152
  sha256?: __ChecksumConstructor | __HashConstructor;
@@ -0,0 +1,42 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import {
3
+ SendPhoneNumberVerificationRequest,
4
+ SendPhoneNumberVerificationResponse,
5
+ } from "../models/models_0";
6
+ export { __MetadataBearer };
7
+ export interface SendPhoneNumberVerificationCommandInput extends SendPhoneNumberVerificationRequest {}
8
+ export interface SendPhoneNumberVerificationCommandOutput
9
+ extends SendPhoneNumberVerificationResponse, __MetadataBearer {}
10
+ declare const SendPhoneNumberVerificationCommand_base: {
11
+ new (
12
+ input: SendPhoneNumberVerificationCommandInput,
13
+ ): import("@smithy/core/client").CommandImpl<
14
+ SendPhoneNumberVerificationCommandInput,
15
+ SendPhoneNumberVerificationCommandOutput,
16
+ import("..").AccountClientResolvedConfig,
17
+ import("..").ServiceInputTypes,
18
+ import("..").ServiceOutputTypes
19
+ >;
20
+ new (
21
+ ...[input]: [] | [SendPhoneNumberVerificationCommandInput]
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ SendPhoneNumberVerificationCommandInput,
24
+ SendPhoneNumberVerificationCommandOutput,
25
+ import("..").AccountClientResolvedConfig,
26
+ import("..").ServiceInputTypes,
27
+ import("..").ServiceOutputTypes
28
+ >;
29
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
+ };
31
+ export declare class SendPhoneNumberVerificationCommand extends SendPhoneNumberVerificationCommand_base {
32
+ protected static __types: {
33
+ api: {
34
+ input: SendPhoneNumberVerificationRequest;
35
+ output: SendPhoneNumberVerificationResponse;
36
+ };
37
+ sdk: {
38
+ input: SendPhoneNumberVerificationCommandInput;
39
+ output: SendPhoneNumberVerificationCommandOutput;
40
+ };
41
+ };
42
+ }
@@ -0,0 +1,39 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { VerifyPhoneNumberRequest, VerifyPhoneNumberResponse } from "../models/models_0";
3
+ export { __MetadataBearer };
4
+ export interface VerifyPhoneNumberCommandInput extends VerifyPhoneNumberRequest {}
5
+ export interface VerifyPhoneNumberCommandOutput
6
+ extends VerifyPhoneNumberResponse, __MetadataBearer {}
7
+ declare const VerifyPhoneNumberCommand_base: {
8
+ new (
9
+ input: VerifyPhoneNumberCommandInput,
10
+ ): import("@smithy/core/client").CommandImpl<
11
+ VerifyPhoneNumberCommandInput,
12
+ VerifyPhoneNumberCommandOutput,
13
+ import("..").AccountClientResolvedConfig,
14
+ import("..").ServiceInputTypes,
15
+ import("..").ServiceOutputTypes
16
+ >;
17
+ new (
18
+ input: VerifyPhoneNumberCommandInput,
19
+ ): import("@smithy/core/client").CommandImpl<
20
+ VerifyPhoneNumberCommandInput,
21
+ VerifyPhoneNumberCommandOutput,
22
+ import("..").AccountClientResolvedConfig,
23
+ import("..").ServiceInputTypes,
24
+ import("..").ServiceOutputTypes
25
+ >;
26
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
27
+ };
28
+ export declare class VerifyPhoneNumberCommand extends VerifyPhoneNumberCommand_base {
29
+ protected static __types: {
30
+ api: {
31
+ input: VerifyPhoneNumberRequest;
32
+ output: VerifyPhoneNumberResponse;
33
+ };
34
+ sdk: {
35
+ input: VerifyPhoneNumberCommandInput;
36
+ output: VerifyPhoneNumberCommandOutput;
37
+ };
38
+ };
39
+ }
@@ -13,4 +13,6 @@ export * from "./ListRegionsCommand";
13
13
  export * from "./PutAccountNameCommand";
14
14
  export * from "./PutAlternateContactCommand";
15
15
  export * from "./PutContactInformationCommand";
16
+ export * from "./SendPhoneNumberVerificationCommand";
16
17
  export * from "./StartPrimaryEmailUpdateCommand";
18
+ export * from "./VerifyPhoneNumberCommand";
@@ -32,6 +32,14 @@ export declare const AwsAccountState: {
32
32
  readonly SUSPENDED: "SUSPENDED";
33
33
  };
34
34
  export type AwsAccountState = (typeof AwsAccountState)[keyof typeof AwsAccountState];
35
+ export declare const PhoneNumberVerificationStatus: {
36
+ readonly NOT_SUPPORTED: "NOT_SUPPORTED";
37
+ readonly PENDING: "PENDING";
38
+ readonly UNVERIFIED: "UNVERIFIED";
39
+ readonly VERIFIED: "VERIFIED";
40
+ };
41
+ export type PhoneNumberVerificationStatus =
42
+ (typeof PhoneNumberVerificationStatus)[keyof typeof PhoneNumberVerificationStatus];
35
43
  export declare const RegionOptStatus: {
36
44
  readonly DISABLED: "DISABLED";
37
45
  readonly DISABLING: "DISABLING";
@@ -2,6 +2,7 @@ import {
2
2
  AccountState,
3
3
  AlternateContactType,
4
4
  AwsAccountState,
5
+ PhoneNumberVerificationStatus,
5
6
  PrimaryEmailUpdateStatus,
6
7
  RegionOptStatus,
7
8
  } from "./enums";
@@ -82,11 +83,25 @@ export interface ContactInformation {
82
83
  }
83
84
  export interface GetContactInformationResponse {
84
85
  ContactInformation?: ContactInformation | undefined;
86
+ VerificationStatus?: PhoneNumberVerificationStatus | undefined;
85
87
  }
86
88
  export interface PutContactInformationRequest {
87
89
  ContactInformation: ContactInformation | undefined;
88
90
  AccountId?: string | undefined;
89
91
  }
92
+ export interface SendPhoneNumberVerificationRequest {
93
+ AccountId?: string | undefined;
94
+ }
95
+ export interface SendPhoneNumberVerificationResponse {
96
+ Status?: PhoneNumberVerificationStatus | undefined;
97
+ }
98
+ export interface VerifyPhoneNumberRequest {
99
+ AccountId?: string | undefined;
100
+ Otp: string | undefined;
101
+ }
102
+ export interface VerifyPhoneNumberResponse {
103
+ Status?: PhoneNumberVerificationStatus | undefined;
104
+ }
90
105
  export interface GetPrimaryEmailRequest {
91
106
  AccountId: string | undefined;
92
107
  }
@@ -36,9 +36,13 @@ export declare var PutAccountNameRequest$: StaticStructureSchema;
36
36
  export declare var PutAlternateContactRequest$: StaticStructureSchema;
37
37
  export declare var PutContactInformationRequest$: StaticStructureSchema;
38
38
  export declare var Region$: StaticStructureSchema;
39
+ export declare var SendPhoneNumberVerificationRequest$: StaticStructureSchema;
40
+ export declare var SendPhoneNumberVerificationResponse$: StaticStructureSchema;
39
41
  export declare var StartPrimaryEmailUpdateRequest$: StaticStructureSchema;
40
42
  export declare var StartPrimaryEmailUpdateResponse$: StaticStructureSchema;
41
43
  export declare var ValidationExceptionField$: StaticStructureSchema;
44
+ export declare var VerifyPhoneNumberRequest$: StaticStructureSchema;
45
+ export declare var VerifyPhoneNumberResponse$: StaticStructureSchema;
42
46
  export declare var AcceptPrimaryEmailUpdate$: StaticOperationSchema;
43
47
  export declare var DeleteAlternateContact$: StaticOperationSchema;
44
48
  export declare var DisableRegion$: StaticOperationSchema;
@@ -54,4 +58,6 @@ export declare var ListRegions$: StaticOperationSchema;
54
58
  export declare var PutAccountName$: StaticOperationSchema;
55
59
  export declare var PutAlternateContact$: StaticOperationSchema;
56
60
  export declare var PutContactInformation$: StaticOperationSchema;
61
+ export declare var SendPhoneNumberVerification$: StaticOperationSchema;
57
62
  export declare var StartPrimaryEmailUpdate$: StaticOperationSchema;
63
+ export declare var VerifyPhoneNumber$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-account",
3
- "version": "3.1143.0",
3
+ "version": "3.1145.0",
4
4
  "description": "AWS SDK for JavaScript Account Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-account",
6
6
  "license": "Apache-2.0",