gs2 1.3.263 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/identifier/model/Password.d.ts +9 -0
  2. package/identifier/model/Password.js +31 -0
  3. package/identifier/model/Password.js.map +1 -1
  4. package/identifier/model/Password.ts +29 -0
  5. package/identifier/model/TwoFactorAuthenticationSetting.d.ts +13 -0
  6. package/identifier/model/TwoFactorAuthenticationSetting.js +48 -0
  7. package/identifier/model/TwoFactorAuthenticationSetting.js.map +1 -0
  8. package/identifier/model/TwoFactorAuthenticationSetting.ts +46 -0
  9. package/identifier/model/index.d.ts +2 -1
  10. package/identifier/model/index.js +3 -1
  11. package/identifier/model/index.js.map +1 -1
  12. package/identifier/model/index.ts +2 -0
  13. package/identifier/request/ChallengeMfaRequest.d.ts +25 -0
  14. package/identifier/request/ChallengeMfaRequest.js +83 -0
  15. package/identifier/request/ChallengeMfaRequest.js.map +1 -0
  16. package/identifier/request/ChallengeMfaRequest.ts +90 -0
  17. package/identifier/request/DisableMfaRequest.d.ts +21 -0
  18. package/identifier/request/DisableMfaRequest.js +69 -0
  19. package/identifier/request/DisableMfaRequest.js.map +1 -0
  20. package/identifier/request/DisableMfaRequest.ts +76 -0
  21. package/identifier/request/EnableMfaRequest.d.ts +21 -0
  22. package/identifier/request/EnableMfaRequest.js +69 -0
  23. package/identifier/request/EnableMfaRequest.js.map +1 -0
  24. package/identifier/request/EnableMfaRequest.ts +76 -0
  25. package/identifier/request/LoginByUserRequest.d.ts +4 -0
  26. package/identifier/request/LoginByUserRequest.js +15 -1
  27. package/identifier/request/LoginByUserRequest.js.map +1 -1
  28. package/identifier/request/LoginByUserRequest.ts +15 -1
  29. package/identifier/request/index.d.ts +4 -1
  30. package/identifier/request/index.js +7 -1
  31. package/identifier/request/index.js.map +1 -1
  32. package/identifier/request/index.ts +6 -0
  33. package/identifier/rest.d.ts +3 -0
  34. package/identifier/rest.js +77 -1
  35. package/identifier/rest.js.map +1 -1
  36. package/identifier/rest.ts +88 -0
  37. package/identifier/result/ChallengeMfaResult.d.ts +14 -0
  38. package/identifier/result/ChallengeMfaResult.js +48 -0
  39. package/identifier/result/ChallengeMfaResult.js.map +1 -0
  40. package/identifier/result/ChallengeMfaResult.ts +47 -0
  41. package/identifier/result/DisableMfaResult.d.ts +14 -0
  42. package/identifier/result/DisableMfaResult.js +48 -0
  43. package/identifier/result/DisableMfaResult.js.map +1 -0
  44. package/identifier/result/DisableMfaResult.ts +47 -0
  45. package/identifier/result/EnableMfaResult.d.ts +18 -0
  46. package/identifier/result/EnableMfaResult.js +62 -0
  47. package/identifier/result/EnableMfaResult.js.map +1 -0
  48. package/identifier/result/EnableMfaResult.ts +64 -0
  49. package/identifier/result/index.d.ts +4 -1
  50. package/identifier/result/index.js +7 -1
  51. package/identifier/result/index.js.map +1 -1
  52. package/identifier/result/index.ts +6 -0
  53. package/package.json +3 -28
@@ -0,0 +1,76 @@
1
+ /*
2
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ Reserved.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License").
6
+ You may not use this file except in compliance with the License.
7
+ A copy of the License is located at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ or in the "license" file accompanying this file. This file is distributed
12
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ express or implied. See the License for the specific language governing
14
+ permissions and limitations under the License.
15
+ */
16
+
17
+ import IRequest from '../../core/interface/IRequest';
18
+
19
+ import * as Gs2Identifier from '../model'
20
+
21
+ export default class DisableMfaRequest implements IRequest {
22
+
23
+ private requestId: string|null = null;
24
+ private contextStack: string|null = null;
25
+ private userName: string|null = null;
26
+
27
+ public getRequestId(): string|null {
28
+ return this.requestId;
29
+ }
30
+
31
+ public setRequestId(requestId: string|null) {
32
+ this.requestId = requestId;
33
+ return this;
34
+ }
35
+
36
+ public withRequestId(requestId: string|null): this {
37
+ this.requestId = requestId;
38
+ return this;
39
+ }
40
+
41
+ public getContextStack(): string|null {
42
+ return this.contextStack;
43
+ }
44
+
45
+ public setContextStack(contextStack: string|null) {
46
+ this.contextStack = contextStack;
47
+ return this;
48
+ }
49
+
50
+ public withContextStack(contextStack: string|null): this {
51
+ this.contextStack = contextStack;
52
+ return this;
53
+ }
54
+ public getUserName(): string|null {
55
+ return this.userName;
56
+ }
57
+ public setUserName(userName: string|null) {
58
+ this.userName = userName;
59
+ return this;
60
+ }
61
+ public withUserName(userName: string|null): this {
62
+ this.userName = userName;
63
+ return this;
64
+ }
65
+
66
+ public static fromDict(data: {[key: string]: any}): DisableMfaRequest {
67
+ return new DisableMfaRequest()
68
+ .withUserName(data["userName"]);
69
+ }
70
+
71
+ public toDict(): {[key: string]: any} {
72
+ return {
73
+ "userName": this.getUserName(),
74
+ };
75
+ }
76
+ }
@@ -0,0 +1,21 @@
1
+ import IRequest from '../../core/interface/IRequest';
2
+ export default class EnableMfaRequest implements IRequest {
3
+ private requestId;
4
+ private contextStack;
5
+ private userName;
6
+ getRequestId(): string | null;
7
+ setRequestId(requestId: string | null): this;
8
+ withRequestId(requestId: string | null): this;
9
+ getContextStack(): string | null;
10
+ setContextStack(contextStack: string | null): this;
11
+ withContextStack(contextStack: string | null): this;
12
+ getUserName(): string | null;
13
+ setUserName(userName: string | null): this;
14
+ withUserName(userName: string | null): this;
15
+ static fromDict(data: {
16
+ [key: string]: any;
17
+ }): EnableMfaRequest;
18
+ toDict(): {
19
+ [key: string]: any;
20
+ };
21
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ Reserved.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License").
7
+ You may not use this file except in compliance with the License.
8
+ A copy of the License is located at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ or in the "license" file accompanying this file. This file is distributed
13
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ express or implied. See the License for the specific language governing
15
+ permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var EnableMfaRequest = /** @class */ (function () {
19
+ function EnableMfaRequest() {
20
+ this.requestId = null;
21
+ this.contextStack = null;
22
+ this.userName = null;
23
+ }
24
+ EnableMfaRequest.prototype.getRequestId = function () {
25
+ return this.requestId;
26
+ };
27
+ EnableMfaRequest.prototype.setRequestId = function (requestId) {
28
+ this.requestId = requestId;
29
+ return this;
30
+ };
31
+ EnableMfaRequest.prototype.withRequestId = function (requestId) {
32
+ this.requestId = requestId;
33
+ return this;
34
+ };
35
+ EnableMfaRequest.prototype.getContextStack = function () {
36
+ return this.contextStack;
37
+ };
38
+ EnableMfaRequest.prototype.setContextStack = function (contextStack) {
39
+ this.contextStack = contextStack;
40
+ return this;
41
+ };
42
+ EnableMfaRequest.prototype.withContextStack = function (contextStack) {
43
+ this.contextStack = contextStack;
44
+ return this;
45
+ };
46
+ EnableMfaRequest.prototype.getUserName = function () {
47
+ return this.userName;
48
+ };
49
+ EnableMfaRequest.prototype.setUserName = function (userName) {
50
+ this.userName = userName;
51
+ return this;
52
+ };
53
+ EnableMfaRequest.prototype.withUserName = function (userName) {
54
+ this.userName = userName;
55
+ return this;
56
+ };
57
+ EnableMfaRequest.fromDict = function (data) {
58
+ return new EnableMfaRequest()
59
+ .withUserName(data["userName"]);
60
+ };
61
+ EnableMfaRequest.prototype.toDict = function () {
62
+ return {
63
+ "userName": this.getUserName(),
64
+ };
65
+ };
66
+ return EnableMfaRequest;
67
+ }());
68
+ exports.default = EnableMfaRequest;
69
+ //# sourceMappingURL=EnableMfaRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnableMfaRequest.js","sourceRoot":"","sources":["EnableMfaRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IA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AC,AAvDD,IAuDC"}
@@ -0,0 +1,76 @@
1
+ /*
2
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ Reserved.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License").
6
+ You may not use this file except in compliance with the License.
7
+ A copy of the License is located at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ or in the "license" file accompanying this file. This file is distributed
12
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ express or implied. See the License for the specific language governing
14
+ permissions and limitations under the License.
15
+ */
16
+
17
+ import IRequest from '../../core/interface/IRequest';
18
+
19
+ import * as Gs2Identifier from '../model'
20
+
21
+ export default class EnableMfaRequest implements IRequest {
22
+
23
+ private requestId: string|null = null;
24
+ private contextStack: string|null = null;
25
+ private userName: string|null = null;
26
+
27
+ public getRequestId(): string|null {
28
+ return this.requestId;
29
+ }
30
+
31
+ public setRequestId(requestId: string|null) {
32
+ this.requestId = requestId;
33
+ return this;
34
+ }
35
+
36
+ public withRequestId(requestId: string|null): this {
37
+ this.requestId = requestId;
38
+ return this;
39
+ }
40
+
41
+ public getContextStack(): string|null {
42
+ return this.contextStack;
43
+ }
44
+
45
+ public setContextStack(contextStack: string|null) {
46
+ this.contextStack = contextStack;
47
+ return this;
48
+ }
49
+
50
+ public withContextStack(contextStack: string|null): this {
51
+ this.contextStack = contextStack;
52
+ return this;
53
+ }
54
+ public getUserName(): string|null {
55
+ return this.userName;
56
+ }
57
+ public setUserName(userName: string|null) {
58
+ this.userName = userName;
59
+ return this;
60
+ }
61
+ public withUserName(userName: string|null): this {
62
+ this.userName = userName;
63
+ return this;
64
+ }
65
+
66
+ public static fromDict(data: {[key: string]: any}): EnableMfaRequest {
67
+ return new EnableMfaRequest()
68
+ .withUserName(data["userName"]);
69
+ }
70
+
71
+ public toDict(): {[key: string]: any} {
72
+ return {
73
+ "userName": this.getUserName(),
74
+ };
75
+ }
76
+ }
@@ -4,6 +4,7 @@ export default class LoginByUserRequest implements IRequest {
4
4
  private contextStack;
5
5
  private userName;
6
6
  private password;
7
+ private otp;
7
8
  getRequestId(): string | null;
8
9
  setRequestId(requestId: string | null): this;
9
10
  withRequestId(requestId: string | null): this;
@@ -16,6 +17,9 @@ export default class LoginByUserRequest implements IRequest {
16
17
  getPassword(): string | null;
17
18
  setPassword(password: string | null): this;
18
19
  withPassword(password: string | null): this;
20
+ getOtp(): string | null;
21
+ setOtp(otp: string | null): this;
22
+ withOtp(otp: string | null): this;
19
23
  static fromDict(data: {
20
24
  [key: string]: any;
21
25
  }): LoginByUserRequest;
@@ -21,6 +21,7 @@ var LoginByUserRequest = /** @class */ (function () {
21
21
  this.contextStack = null;
22
22
  this.userName = null;
23
23
  this.password = null;
24
+ this.otp = null;
24
25
  }
25
26
  LoginByUserRequest.prototype.getRequestId = function () {
26
27
  return this.requestId;
@@ -66,15 +67,28 @@ var LoginByUserRequest = /** @class */ (function () {
66
67
  this.password = password;
67
68
  return this;
68
69
  };
70
+ LoginByUserRequest.prototype.getOtp = function () {
71
+ return this.otp;
72
+ };
73
+ LoginByUserRequest.prototype.setOtp = function (otp) {
74
+ this.otp = otp;
75
+ return this;
76
+ };
77
+ LoginByUserRequest.prototype.withOtp = function (otp) {
78
+ this.otp = otp;
79
+ return this;
80
+ };
69
81
  LoginByUserRequest.fromDict = function (data) {
70
82
  return new LoginByUserRequest()
71
83
  .withUserName(data["userName"])
72
- .withPassword(data["password"]);
84
+ .withPassword(data["password"])
85
+ .withOtp(data["otp"]);
73
86
  };
74
87
  LoginByUserRequest.prototype.toDict = function () {
75
88
  return {
76
89
  "userName": this.getUserName(),
77
90
  "password": this.getPassword(),
91
+ "otp": this.getOtp(),
78
92
  };
79
93
  };
80
94
  return LoginByUserRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"LoginByUserRequest.js","sourceRoot":"","sources":["LoginByUserRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;Q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C;IAEM,mCAAM,GAAb;QACI,OAAO;YACH,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;SACvB,CAAC;IACN,CAAC;IACL,yBAAC;AAAD,CAAC,AAnFD,IAmFC"}
@@ -24,6 +24,7 @@ export default class LoginByUserRequest implements IRequest {
24
24
  private contextStack: string|null = null;
25
25
  private userName: string|null = null;
26
26
  private password: string|null = null;
27
+ private otp: string|null = null;
27
28
 
28
29
  public getRequestId(): string|null {
29
30
  return this.requestId;
@@ -74,17 +75,30 @@ export default class LoginByUserRequest implements IRequest {
74
75
  this.password = password;
75
76
  return this;
76
77
  }
78
+ public getOtp(): string|null {
79
+ return this.otp;
80
+ }
81
+ public setOtp(otp: string|null) {
82
+ this.otp = otp;
83
+ return this;
84
+ }
85
+ public withOtp(otp: string|null): this {
86
+ this.otp = otp;
87
+ return this;
88
+ }
77
89
 
78
90
  public static fromDict(data: {[key: string]: any}): LoginByUserRequest {
79
91
  return new LoginByUserRequest()
80
92
  .withUserName(data["userName"])
81
- .withPassword(data["password"]);
93
+ .withPassword(data["password"])
94
+ .withOtp(data["otp"]);
82
95
  }
83
96
 
84
97
  public toDict(): {[key: string]: any} {
85
98
  return {
86
99
  "userName": this.getUserName(),
87
100
  "password": this.getPassword(),
101
+ "otp": this.getOtp(),
88
102
  };
89
103
  }
90
104
  }
@@ -16,10 +16,13 @@ import DeleteIdentifierRequest from "./DeleteIdentifierRequest";
16
16
  import DescribePasswordsRequest from "./DescribePasswordsRequest";
17
17
  import CreatePasswordRequest from "./CreatePasswordRequest";
18
18
  import GetPasswordRequest from "./GetPasswordRequest";
19
+ import EnableMfaRequest from "./EnableMfaRequest";
20
+ import ChallengeMfaRequest from "./ChallengeMfaRequest";
21
+ import DisableMfaRequest from "./DisableMfaRequest";
19
22
  import DeletePasswordRequest from "./DeletePasswordRequest";
20
23
  import GetHasSecurityPolicyRequest from "./GetHasSecurityPolicyRequest";
21
24
  import AttachSecurityPolicyRequest from "./AttachSecurityPolicyRequest";
22
25
  import DetachSecurityPolicyRequest from "./DetachSecurityPolicyRequest";
23
26
  import LoginRequest from "./LoginRequest";
24
27
  import LoginByUserRequest from "./LoginByUserRequest";
25
- export { DescribeUsersRequest, CreateUserRequest, UpdateUserRequest, GetUserRequest, DeleteUserRequest, DescribeSecurityPoliciesRequest, DescribeCommonSecurityPoliciesRequest, CreateSecurityPolicyRequest, UpdateSecurityPolicyRequest, GetSecurityPolicyRequest, DeleteSecurityPolicyRequest, DescribeIdentifiersRequest, CreateIdentifierRequest, GetIdentifierRequest, DeleteIdentifierRequest, DescribePasswordsRequest, CreatePasswordRequest, GetPasswordRequest, DeletePasswordRequest, GetHasSecurityPolicyRequest, AttachSecurityPolicyRequest, DetachSecurityPolicyRequest, LoginRequest, LoginByUserRequest, };
28
+ export { DescribeUsersRequest, CreateUserRequest, UpdateUserRequest, GetUserRequest, DeleteUserRequest, DescribeSecurityPoliciesRequest, DescribeCommonSecurityPoliciesRequest, CreateSecurityPolicyRequest, UpdateSecurityPolicyRequest, GetSecurityPolicyRequest, DeleteSecurityPolicyRequest, DescribeIdentifiersRequest, CreateIdentifierRequest, GetIdentifierRequest, DeleteIdentifierRequest, DescribePasswordsRequest, CreatePasswordRequest, GetPasswordRequest, EnableMfaRequest, ChallengeMfaRequest, DisableMfaRequest, DeletePasswordRequest, GetHasSecurityPolicyRequest, AttachSecurityPolicyRequest, DetachSecurityPolicyRequest, LoginRequest, LoginByUserRequest, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LoginByUserRequest = exports.LoginRequest = exports.DetachSecurityPolicyRequest = exports.AttachSecurityPolicyRequest = exports.GetHasSecurityPolicyRequest = exports.DeletePasswordRequest = exports.GetPasswordRequest = exports.CreatePasswordRequest = exports.DescribePasswordsRequest = exports.DeleteIdentifierRequest = exports.GetIdentifierRequest = exports.CreateIdentifierRequest = exports.DescribeIdentifiersRequest = exports.DeleteSecurityPolicyRequest = exports.GetSecurityPolicyRequest = exports.UpdateSecurityPolicyRequest = exports.CreateSecurityPolicyRequest = exports.DescribeCommonSecurityPoliciesRequest = exports.DescribeSecurityPoliciesRequest = exports.DeleteUserRequest = exports.GetUserRequest = exports.UpdateUserRequest = exports.CreateUserRequest = exports.DescribeUsersRequest = void 0;
3
+ exports.LoginByUserRequest = exports.LoginRequest = exports.DetachSecurityPolicyRequest = exports.AttachSecurityPolicyRequest = exports.GetHasSecurityPolicyRequest = exports.DeletePasswordRequest = exports.DisableMfaRequest = exports.ChallengeMfaRequest = exports.EnableMfaRequest = exports.GetPasswordRequest = exports.CreatePasswordRequest = exports.DescribePasswordsRequest = exports.DeleteIdentifierRequest = exports.GetIdentifierRequest = exports.CreateIdentifierRequest = exports.DescribeIdentifiersRequest = exports.DeleteSecurityPolicyRequest = exports.GetSecurityPolicyRequest = exports.UpdateSecurityPolicyRequest = exports.CreateSecurityPolicyRequest = exports.DescribeCommonSecurityPoliciesRequest = exports.DescribeSecurityPoliciesRequest = exports.DeleteUserRequest = exports.GetUserRequest = exports.UpdateUserRequest = exports.CreateUserRequest = exports.DescribeUsersRequest = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  /*
6
6
  Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
@@ -53,6 +53,12 @@ var CreatePasswordRequest_1 = tslib_1.__importDefault(require("./CreatePasswordR
53
53
  exports.CreatePasswordRequest = CreatePasswordRequest_1.default;
54
54
  var GetPasswordRequest_1 = tslib_1.__importDefault(require("./GetPasswordRequest"));
55
55
  exports.GetPasswordRequest = GetPasswordRequest_1.default;
56
+ var EnableMfaRequest_1 = tslib_1.__importDefault(require("./EnableMfaRequest"));
57
+ exports.EnableMfaRequest = EnableMfaRequest_1.default;
58
+ var ChallengeMfaRequest_1 = tslib_1.__importDefault(require("./ChallengeMfaRequest"));
59
+ exports.ChallengeMfaRequest = ChallengeMfaRequest_1.default;
60
+ var DisableMfaRequest_1 = tslib_1.__importDefault(require("./DisableMfaRequest"));
61
+ exports.DisableMfaRequest = DisableMfaRequest_1.default;
56
62
  var DeletePasswordRequest_1 = tslib_1.__importDefault(require("./DeletePasswordRequest"));
57
63
  exports.DeletePasswordRequest = DeletePasswordRequest_1.default;
58
64
  var GetHasSecurityPolicyRequest_1 = tslib_1.__importDefault(require("./GetHasSecurityPolicyRequest"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,wFAAyD;AA0BrD,+BA1BG,8BAAoB,CA0BH;AAzBxB,kFAAmD;AA0B/C,4BA1BG,2BAAiB,CA0BH;AAzBrB,kFAAmD;AA0B/C,4BA1BG,2BAAiB,CA0BH;AAzBrB,4EAA6C;AA0BzC,yBA1BG,wBAAc,CA0BH;AAzBlB,kFAAmD;AA0B/C,4BA1BG,2BAAiB,CA0BH;AAzBrB,8GAA+E;AA0B3E,0CA1BG,yCAA+B,CA0BH;AAzBnC,0HAA2F;AA0BvF,gDA1BG,+CAAqC,CA0BH;AAzBzC,sGAAuE;AA0BnE,sCA1BG,qCAA2B,CA0BH;AAzB/B,sGAAuE;AA0BnE,sCA1BG,qCAA2B,CA0BH;AAzB/B,gGAAiE;AA0B7D,mCA1BG,kCAAwB,CA0BH;AAzB5B,sGAAuE;AA0BnE,sCA1BG,qCAA2B,CA0BH;AAzB/B,oGAAqE;AA0BjE,qCA1BG,oCAA0B,CA0BH;AAzB9B,8FAA+D;AA0B3D,kCA1BG,iCAAuB,CA0BH;AAzB3B,wFAAyD;AA0BrD,+BA1BG,8BAAoB,CA0BH;AAzBxB,8FAA+D;AA0B3D,kCA1BG,iCAAuB,CA0BH;AAzB3B,gGAAiE;AA0B7D,mCA1BG,kCAAwB,CA0BH;AAzB5B,0FAA2D;AA0BvD,gCA1BG,+BAAqB,CA0BH;AAz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;AA6BvD,gCA7BG,+BAAqB,CA6BH;AA5BzB,oFAAqD;AA6BjD,6BA7BG,4BAAkB,CA6BH;AA5BtB,gFAAiD;AA6B7C,2BA7BG,0BAAgB,CA6BH;AA5BpB,sFAAuD;AA6BnD,8BA7BG,6BAAmB,CA6BH;AA5BvB,kFAAmD;AA6B/C,4BA7BG,2BAAiB,CA6BH;AA5BrB,0FAA2D;AA6BvD,gCA7BG,+BAAqB,CA6BH;AA5BzB,sGAAuE;AA6BnE,sCA7BG,qCAA2B,CA6BH;AA5B/B,sGAAuE;AA6BnE,sCA7BG,qCAA2B,CA6BH;AA5B/B,sGAAuE;AA6BnE,sCA7BG,qCAA2B,CA6BH;AA5B/B,wEAAyC;AA6BrC,uBA7BG,sBAAY,CA6BH;AA5BhB,oFAAqD;AA6BjD,6BA7BG,4BAAkB,CA6BH"}
@@ -31,6 +31,9 @@ import DeleteIdentifierRequest from "./DeleteIdentifierRequest"
31
31
  import DescribePasswordsRequest from "./DescribePasswordsRequest"
32
32
  import CreatePasswordRequest from "./CreatePasswordRequest"
33
33
  import GetPasswordRequest from "./GetPasswordRequest"
34
+ import EnableMfaRequest from "./EnableMfaRequest"
35
+ import ChallengeMfaRequest from "./ChallengeMfaRequest"
36
+ import DisableMfaRequest from "./DisableMfaRequest"
34
37
  import DeletePasswordRequest from "./DeletePasswordRequest"
35
38
  import GetHasSecurityPolicyRequest from "./GetHasSecurityPolicyRequest"
36
39
  import AttachSecurityPolicyRequest from "./AttachSecurityPolicyRequest"
@@ -57,6 +60,9 @@ export {
57
60
  DescribePasswordsRequest,
58
61
  CreatePasswordRequest,
59
62
  GetPasswordRequest,
63
+ EnableMfaRequest,
64
+ ChallengeMfaRequest,
65
+ DisableMfaRequest,
60
66
  DeletePasswordRequest,
61
67
  GetHasSecurityPolicyRequest,
62
68
  AttachSecurityPolicyRequest,
@@ -22,6 +22,9 @@ export default class Gs2IdentifierRestClient extends AbstractGs2RestClient {
22
22
  describePasswords(request: Request.DescribePasswordsRequest): Promise<Result.DescribePasswordsResult>;
23
23
  createPassword(request: Request.CreatePasswordRequest): Promise<Result.CreatePasswordResult>;
24
24
  getPassword(request: Request.GetPasswordRequest): Promise<Result.GetPasswordResult>;
25
+ enableMfa(request: Request.EnableMfaRequest): Promise<Result.EnableMfaResult>;
26
+ challengeMfa(request: Request.ChallengeMfaRequest): Promise<Result.ChallengeMfaResult>;
27
+ disableMfa(request: Request.DisableMfaRequest): Promise<Result.DisableMfaResult>;
25
28
  deletePassword(request: Request.DeletePasswordRequest): Promise<Result.DeletePasswordResult>;
26
29
  getHasSecurityPolicy(request: Request.GetHasSecurityPolicyRequest): Promise<Result.GetHasSecurityPolicyResult>;
27
30
  attachSecurityPolicy(request: Request.AttachSecurityPolicyRequest): Promise<Result.AttachSecurityPolicyResult>;
@@ -461,6 +461,81 @@ var Gs2IdentifierRestClient = /** @class */ (function (_super) {
461
461
  throw JSON.parse(error.response.data.message);
462
462
  });
463
463
  };
464
+ Gs2IdentifierRestClient.prototype.enableMfa = function (request) {
465
+ var _a, _b, _c;
466
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/user/{userName}/mfa')
467
+ .replace('{service}', 'identifier')
468
+ .replace('{region}', this.session.region)
469
+ .replace('{userName}', String((_a = request.getUserName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getUserName()) !== null && _b !== void 0 ? _b : 'null'));
470
+ var headers = this.createAuthorizedHeaders();
471
+ if (request.getRequestId()) {
472
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
473
+ }
474
+ var body = {
475
+ 'contextStack': (_c = request.getContextStack()) !== null && _c !== void 0 ? _c : null,
476
+ };
477
+ return axios_1.default.post(url, body, {
478
+ headers: headers,
479
+ }).then(function (response) {
480
+ return Result.EnableMfaResult.fromDict(response.data);
481
+ }).catch(function (error) {
482
+ if (error.response) {
483
+ throw JSON.parse(error.response.data.message);
484
+ }
485
+ else {
486
+ throw [];
487
+ }
488
+ });
489
+ };
490
+ Gs2IdentifierRestClient.prototype.challengeMfa = function (request) {
491
+ var _a, _b, _c, _d;
492
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/user/{userName}/mfa/challenge')
493
+ .replace('{service}', 'identifier')
494
+ .replace('{region}', this.session.region)
495
+ .replace('{userName}', String((_a = request.getUserName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getUserName()) !== null && _b !== void 0 ? _b : 'null'));
496
+ var headers = this.createAuthorizedHeaders();
497
+ if (request.getRequestId()) {
498
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
499
+ }
500
+ var body = {
501
+ 'contextStack': (_c = request.getContextStack()) !== null && _c !== void 0 ? _c : null,
502
+ 'passcode': (_d = request.getPasscode()) !== null && _d !== void 0 ? _d : null,
503
+ };
504
+ return axios_1.default.post(url, body, {
505
+ headers: headers,
506
+ }).then(function (response) {
507
+ return Result.ChallengeMfaResult.fromDict(response.data);
508
+ }).catch(function (error) {
509
+ if (error.response) {
510
+ throw JSON.parse(error.response.data.message);
511
+ }
512
+ else {
513
+ throw [];
514
+ }
515
+ });
516
+ };
517
+ Gs2IdentifierRestClient.prototype.disableMfa = function (request) {
518
+ var _a, _b, _c;
519
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/user/{userName}/mfa')
520
+ .replace('{service}', 'identifier')
521
+ .replace('{region}', this.session.region)
522
+ .replace('{userName}', String((_a = request.getUserName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getUserName()) !== null && _b !== void 0 ? _b : 'null'));
523
+ var headers = this.createAuthorizedHeaders();
524
+ if (request.getRequestId()) {
525
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
526
+ }
527
+ var params = {
528
+ 'contextStack': (_c = request.getContextStack()) !== null && _c !== void 0 ? _c : null,
529
+ };
530
+ return axios_1.default.delete(url, {
531
+ params: params,
532
+ headers: headers,
533
+ }).then(function (response) {
534
+ return Result.DisableMfaResult.fromDict(response.data);
535
+ }).catch(function (error) {
536
+ throw JSON.parse(error.response.data.message);
537
+ });
538
+ };
464
539
  Gs2IdentifierRestClient.prototype.deletePassword = function (request) {
465
540
  var _a, _b, _c;
466
541
  var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/user/{userName}/password/entity')
@@ -583,7 +658,7 @@ var Gs2IdentifierRestClient = /** @class */ (function (_super) {
583
658
  });
584
659
  };
585
660
  Gs2IdentifierRestClient.prototype.loginByUser = function (request) {
586
- var _a, _b, _c;
661
+ var _a, _b, _c, _d;
587
662
  var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/projectToken/login/user')
588
663
  .replace('{service}', 'identifier')
589
664
  .replace('{region}', this.session.region);
@@ -595,6 +670,7 @@ var Gs2IdentifierRestClient = /** @class */ (function (_super) {
595
670
  'contextStack': (_a = request.getContextStack()) !== null && _a !== void 0 ? _a : null,
596
671
  'userName': (_b = request.getUserName()) !== null && _b !== void 0 ? _b : null,
597
672
  'password': (_c = request.getPassword()) !== null && _c !== void 0 ? _c : null,
673
+ 'otp': (_d = request.getOtp()) !== null && _d !== void 0 ? _d : null,
598
674
  };
599
675
  return axios_1.default.post(url, body, {
600
676
  headers: headers,