gs2 1.3.261 → 1.3.263

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 (57) hide show
  1. package/package.json +1 -1
  2. package/project/model/Account.d.ts +9 -0
  3. package/project/model/Account.js +31 -0
  4. package/project/model/Account.js.map +1 -1
  5. package/project/model/Account.ts +29 -0
  6. package/project/model/TwoFactorAuthenticationSetting.d.ts +13 -0
  7. package/project/model/TwoFactorAuthenticationSetting.js +48 -0
  8. package/project/model/TwoFactorAuthenticationSetting.js.map +1 -0
  9. package/project/model/TwoFactorAuthenticationSetting.ts +46 -0
  10. package/project/model/index.d.ts +2 -1
  11. package/project/model/index.js +3 -1
  12. package/project/model/index.js.map +1 -1
  13. package/project/model/index.ts +2 -0
  14. package/project/request/ChallengeMfaRequest.d.ts +25 -0
  15. package/project/request/ChallengeMfaRequest.js +83 -0
  16. package/project/request/ChallengeMfaRequest.js.map +1 -0
  17. package/project/request/ChallengeMfaRequest.ts +90 -0
  18. package/project/request/DisableMfaRequest.d.ts +21 -0
  19. package/project/request/DisableMfaRequest.js +69 -0
  20. package/project/request/DisableMfaRequest.js.map +1 -0
  21. package/project/request/DisableMfaRequest.ts +76 -0
  22. package/project/request/EnableMfaRequest.d.ts +21 -0
  23. package/project/request/EnableMfaRequest.js +69 -0
  24. package/project/request/EnableMfaRequest.js.map +1 -0
  25. package/project/request/EnableMfaRequest.ts +76 -0
  26. package/project/request/SignInRequest.d.ts +4 -0
  27. package/project/request/SignInRequest.js +15 -1
  28. package/project/request/SignInRequest.js.map +1 -1
  29. package/project/request/SignInRequest.ts +15 -1
  30. package/project/request/index.d.ts +4 -1
  31. package/project/request/index.js +7 -1
  32. package/project/request/index.js.map +1 -1
  33. package/project/request/index.ts +6 -0
  34. package/project/rest.d.ts +3 -0
  35. package/project/rest.js +77 -1
  36. package/project/rest.js.map +1 -1
  37. package/project/rest.ts +88 -0
  38. package/project/result/ChallengeMfaResult.d.ts +14 -0
  39. package/project/result/ChallengeMfaResult.js +48 -0
  40. package/project/result/ChallengeMfaResult.js.map +1 -0
  41. package/project/result/ChallengeMfaResult.ts +47 -0
  42. package/project/result/DisableMfaResult.d.ts +14 -0
  43. package/project/result/DisableMfaResult.js +48 -0
  44. package/project/result/DisableMfaResult.js.map +1 -0
  45. package/project/result/DisableMfaResult.ts +47 -0
  46. package/project/result/EnableMfaResult.d.ts +18 -0
  47. package/project/result/EnableMfaResult.js +62 -0
  48. package/project/result/EnableMfaResult.js.map +1 -0
  49. package/project/result/EnableMfaResult.ts +64 -0
  50. package/project/result/index.d.ts +4 -1
  51. package/project/result/index.js +7 -1
  52. package/project/result/index.js.map +1 -1
  53. package/project/result/index.ts +6 -0
  54. package/schedule/model/RepeatSetting.d.ts +12 -0
  55. package/schedule/model/RepeatSetting.js +43 -1
  56. package/schedule/model/RepeatSetting.js.map +1 -1
  57. package/schedule/model/RepeatSetting.ts +43 -1
@@ -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 Gs2Project 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 accountToken: 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 getAccountToken(): string|null {
55
+ return this.accountToken;
56
+ }
57
+ public setAccountToken(accountToken: string|null) {
58
+ this.accountToken = accountToken;
59
+ return this;
60
+ }
61
+ public withAccountToken(accountToken: string|null): this {
62
+ this.accountToken = accountToken;
63
+ return this;
64
+ }
65
+
66
+ public static fromDict(data: {[key: string]: any}): DisableMfaRequest {
67
+ return new DisableMfaRequest()
68
+ .withAccountToken(data["accountToken"]);
69
+ }
70
+
71
+ public toDict(): {[key: string]: any} {
72
+ return {
73
+ "accountToken": this.getAccountToken(),
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 accountToken;
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
+ getAccountToken(): string | null;
13
+ setAccountToken(accountToken: string | null): this;
14
+ withAccountToken(accountToken: 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.accountToken = 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.getAccountToken = function () {
47
+ return this.accountToken;
48
+ };
49
+ EnableMfaRequest.prototype.setAccountToken = function (accountToken) {
50
+ this.accountToken = accountToken;
51
+ return this;
52
+ };
53
+ EnableMfaRequest.prototype.withAccountToken = function (accountToken) {
54
+ this.accountToken = accountToken;
55
+ return this;
56
+ };
57
+ EnableMfaRequest.fromDict = function (data) {
58
+ return new EnableMfaRequest()
59
+ .withAccountToken(data["accountToken"]);
60
+ };
61
+ EnableMfaRequest.prototype.toDict = function () {
62
+ return {
63
+ "accountToken": this.getAccountToken(),
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"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AAc,EAAE,IAAI,CAAC,eAAe,EAAE;SACzC,CAAC;IACN,CAAC;IACL,uBAAC;AAAD,CAAC,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 Gs2Project 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 accountToken: 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 getAccountToken(): string|null {
55
+ return this.accountToken;
56
+ }
57
+ public setAccountToken(accountToken: string|null) {
58
+ this.accountToken = accountToken;
59
+ return this;
60
+ }
61
+ public withAccountToken(accountToken: string|null): this {
62
+ this.accountToken = accountToken;
63
+ return this;
64
+ }
65
+
66
+ public static fromDict(data: {[key: string]: any}): EnableMfaRequest {
67
+ return new EnableMfaRequest()
68
+ .withAccountToken(data["accountToken"]);
69
+ }
70
+
71
+ public toDict(): {[key: string]: any} {
72
+ return {
73
+ "accountToken": this.getAccountToken(),
74
+ };
75
+ }
76
+ }
@@ -4,6 +4,7 @@ export default class SignInRequest implements IRequest {
4
4
  private contextStack;
5
5
  private email;
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 SignInRequest 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
  }): SignInRequest;
@@ -21,6 +21,7 @@ var SignInRequest = /** @class */ (function () {
21
21
  this.contextStack = null;
22
22
  this.email = null;
23
23
  this.password = null;
24
+ this.otp = null;
24
25
  }
25
26
  SignInRequest.prototype.getRequestId = function () {
26
27
  return this.requestId;
@@ -66,15 +67,28 @@ var SignInRequest = /** @class */ (function () {
66
67
  this.password = password;
67
68
  return this;
68
69
  };
70
+ SignInRequest.prototype.getOtp = function () {
71
+ return this.otp;
72
+ };
73
+ SignInRequest.prototype.setOtp = function (otp) {
74
+ this.otp = otp;
75
+ return this;
76
+ };
77
+ SignInRequest.prototype.withOtp = function (otp) {
78
+ this.otp = otp;
79
+ return this;
80
+ };
69
81
  SignInRequest.fromDict = function (data) {
70
82
  return new SignInRequest()
71
83
  .withEmail(data["email"])
72
- .withPassword(data["password"]);
84
+ .withPassword(data["password"])
85
+ .withOtp(data["otp"]);
73
86
  };
74
87
  SignInRequest.prototype.toDict = function () {
75
88
  return {
76
89
  "email": this.getEmail(),
77
90
  "password": this.getPassword(),
91
+ "otp": this.getOtp(),
78
92
  };
79
93
  };
80
94
  return SignInRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"SignInRequest.js","sourceRoot":"","sources":["SignInRequest.ts"],"names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AC,CAAC,CAAC;IAC9B,CAAC;IAEM,8BAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;YACxB,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;SACvB,CAAC;IACN,CAAC;IACL,oBAAC;AAAD,CAAC,AAnFD,IAmFC"}
@@ -24,6 +24,7 @@ export default class SignInRequest implements IRequest {
24
24
  private contextStack: string|null = null;
25
25
  private email: 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 SignInRequest 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}): SignInRequest {
79
91
  return new SignInRequest()
80
92
  .withEmail(data["email"])
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
  "email": this.getEmail(),
87
100
  "password": this.getPassword(),
101
+ "otp": this.getOtp(),
88
102
  };
89
103
  }
90
104
  }
@@ -4,6 +4,9 @@ import SignInRequest from "./SignInRequest";
4
4
  import ForgetRequest from "./ForgetRequest";
5
5
  import IssuePasswordRequest from "./IssuePasswordRequest";
6
6
  import UpdateAccountRequest from "./UpdateAccountRequest";
7
+ import EnableMfaRequest from "./EnableMfaRequest";
8
+ import ChallengeMfaRequest from "./ChallengeMfaRequest";
9
+ import DisableMfaRequest from "./DisableMfaRequest";
7
10
  import DeleteAccountRequest from "./DeleteAccountRequest";
8
11
  import DescribeProjectsRequest from "./DescribeProjectsRequest";
9
12
  import CreateProjectRequest from "./CreateProjectRequest";
@@ -38,4 +41,4 @@ import PrepareImportUserDataRequest from "./PrepareImportUserDataRequest";
38
41
  import ImportUserDataRequest from "./ImportUserDataRequest";
39
42
  import DescribeImportErrorLogsRequest from "./DescribeImportErrorLogsRequest";
40
43
  import GetImportErrorLogRequest from "./GetImportErrorLogRequest";
41
- export { CreateAccountRequest, VerifyRequest, SignInRequest, ForgetRequest, IssuePasswordRequest, UpdateAccountRequest, DeleteAccountRequest, DescribeProjectsRequest, CreateProjectRequest, GetProjectRequest, GetProjectTokenRequest, GetProjectTokenByIdentifierRequest, UpdateProjectRequest, ActivateRegionRequest, WaitActivateRegionRequest, DeleteProjectRequest, DescribeBillingMethodsRequest, CreateBillingMethodRequest, GetBillingMethodRequest, UpdateBillingMethodRequest, DeleteBillingMethodRequest, DescribeReceiptsRequest, DescribeBillingsRequest, DescribeDumpProgressesRequest, GetDumpProgressRequest, WaitDumpUserDataRequest, ArchiveDumpUserDataRequest, DumpUserDataRequest, GetDumpUserDataRequest, DescribeCleanProgressesRequest, GetCleanProgressRequest, WaitCleanUserDataRequest, CleanUserDataRequest, DescribeImportProgressesRequest, GetImportProgressRequest, WaitImportUserDataRequest, PrepareImportUserDataRequest, ImportUserDataRequest, DescribeImportErrorLogsRequest, GetImportErrorLogRequest, };
44
+ export { CreateAccountRequest, VerifyRequest, SignInRequest, ForgetRequest, IssuePasswordRequest, UpdateAccountRequest, EnableMfaRequest, ChallengeMfaRequest, DisableMfaRequest, DeleteAccountRequest, DescribeProjectsRequest, CreateProjectRequest, GetProjectRequest, GetProjectTokenRequest, GetProjectTokenByIdentifierRequest, UpdateProjectRequest, ActivateRegionRequest, WaitActivateRegionRequest, DeleteProjectRequest, DescribeBillingMethodsRequest, CreateBillingMethodRequest, GetBillingMethodRequest, UpdateBillingMethodRequest, DeleteBillingMethodRequest, DescribeReceiptsRequest, DescribeBillingsRequest, DescribeDumpProgressesRequest, GetDumpProgressRequest, WaitDumpUserDataRequest, ArchiveDumpUserDataRequest, DumpUserDataRequest, GetDumpUserDataRequest, DescribeCleanProgressesRequest, GetCleanProgressRequest, WaitCleanUserDataRequest, CleanUserDataRequest, DescribeImportProgressesRequest, GetImportProgressRequest, WaitImportUserDataRequest, PrepareImportUserDataRequest, ImportUserDataRequest, DescribeImportErrorLogsRequest, GetImportErrorLogRequest, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetImportErrorLogRequest = exports.DescribeImportErrorLogsRequest = exports.ImportUserDataRequest = exports.PrepareImportUserDataRequest = exports.WaitImportUserDataRequest = exports.GetImportProgressRequest = exports.DescribeImportProgressesRequest = exports.CleanUserDataRequest = exports.WaitCleanUserDataRequest = exports.GetCleanProgressRequest = exports.DescribeCleanProgressesRequest = exports.GetDumpUserDataRequest = exports.DumpUserDataRequest = exports.ArchiveDumpUserDataRequest = exports.WaitDumpUserDataRequest = exports.GetDumpProgressRequest = exports.DescribeDumpProgressesRequest = exports.DescribeBillingsRequest = exports.DescribeReceiptsRequest = exports.DeleteBillingMethodRequest = exports.UpdateBillingMethodRequest = exports.GetBillingMethodRequest = exports.CreateBillingMethodRequest = exports.DescribeBillingMethodsRequest = exports.DeleteProjectRequest = exports.WaitActivateRegionRequest = exports.ActivateRegionRequest = exports.UpdateProjectRequest = exports.GetProjectTokenByIdentifierRequest = exports.GetProjectTokenRequest = exports.GetProjectRequest = exports.CreateProjectRequest = exports.DescribeProjectsRequest = exports.DeleteAccountRequest = exports.UpdateAccountRequest = exports.IssuePasswordRequest = exports.ForgetRequest = exports.SignInRequest = exports.VerifyRequest = exports.CreateAccountRequest = void 0;
3
+ exports.GetImportErrorLogRequest = exports.DescribeImportErrorLogsRequest = exports.ImportUserDataRequest = exports.PrepareImportUserDataRequest = exports.WaitImportUserDataRequest = exports.GetImportProgressRequest = exports.DescribeImportProgressesRequest = exports.CleanUserDataRequest = exports.WaitCleanUserDataRequest = exports.GetCleanProgressRequest = exports.DescribeCleanProgressesRequest = exports.GetDumpUserDataRequest = exports.DumpUserDataRequest = exports.ArchiveDumpUserDataRequest = exports.WaitDumpUserDataRequest = exports.GetDumpProgressRequest = exports.DescribeDumpProgressesRequest = exports.DescribeBillingsRequest = exports.DescribeReceiptsRequest = exports.DeleteBillingMethodRequest = exports.UpdateBillingMethodRequest = exports.GetBillingMethodRequest = exports.CreateBillingMethodRequest = exports.DescribeBillingMethodsRequest = exports.DeleteProjectRequest = exports.WaitActivateRegionRequest = exports.ActivateRegionRequest = exports.UpdateProjectRequest = exports.GetProjectTokenByIdentifierRequest = exports.GetProjectTokenRequest = exports.GetProjectRequest = exports.CreateProjectRequest = exports.DescribeProjectsRequest = exports.DeleteAccountRequest = exports.DisableMfaRequest = exports.ChallengeMfaRequest = exports.EnableMfaRequest = exports.UpdateAccountRequest = exports.IssuePasswordRequest = exports.ForgetRequest = exports.SignInRequest = exports.VerifyRequest = exports.CreateAccountRequest = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  /*
6
6
  Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
@@ -29,6 +29,12 @@ var IssuePasswordRequest_1 = tslib_1.__importDefault(require("./IssuePasswordReq
29
29
  exports.IssuePasswordRequest = IssuePasswordRequest_1.default;
30
30
  var UpdateAccountRequest_1 = tslib_1.__importDefault(require("./UpdateAccountRequest"));
31
31
  exports.UpdateAccountRequest = UpdateAccountRequest_1.default;
32
+ var EnableMfaRequest_1 = tslib_1.__importDefault(require("./EnableMfaRequest"));
33
+ exports.EnableMfaRequest = EnableMfaRequest_1.default;
34
+ var ChallengeMfaRequest_1 = tslib_1.__importDefault(require("./ChallengeMfaRequest"));
35
+ exports.ChallengeMfaRequest = ChallengeMfaRequest_1.default;
36
+ var DisableMfaRequest_1 = tslib_1.__importDefault(require("./DisableMfaRequest"));
37
+ exports.DisableMfaRequest = DisableMfaRequest_1.default;
32
38
  var DeleteAccountRequest_1 = tslib_1.__importDefault(require("./DeleteAccountRequest"));
33
39
  exports.DeleteAccountRequest = DeleteAccountRequest_1.default;
34
40
  var DescribeProjectsRequest_1 = tslib_1.__importDefault(require("./DescribeProjectsRequest"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,wFAAyD;AA0CrD,+BA1CG,8BAAoB,CA0CH;AAzCxB,0EAA2C;AA0CvC,wBA1CG,uBAAa,CA0CH;AAzCjB,0EAA2C;AA0CvC,wBA1CG,uBAAa,CA0CH;AAzCjB,0EAA2C;AA0CvC,wBA1CG,uBAAa,CA0CH;AAzCjB,wFAAyD;AA0CrD,+BA1CG,8BAAoB,CA0CH;AAzCxB,wFAAyD;AA0CrD,+BA1CG,8BAAoB,CA0CH;AAzCxB,wFAAyD;AA0CrD,+BA1CG,8BAAoB,CA0CH;AAzCxB,8FAA+D;AA0C3D,kCA1CG,iCAAuB,CA0CH;AAzC3B,wFAAyD;AA0CrD,+BA1CG,8BAAoB,CA0CH;AAzCxB,kFAAmD;AA0C/C,4BA1CG,2BAAiB,CA0CH;AAzCrB,4FAA6D;AA0CzD,iCA1CG,gCAAsB,CA0CH;AAzC1B,oHAAqF;AA0CjF,6CA1CG,4CAAkC,CA0CH;AAzCtC,wFAAyD;AA0CrD,+BA1CG,8BAAoB,CA0CH;AAzCxB,0FAA2D;AA0CvD,gCA1CG,+BAAqB,CA0CH;AAzCzB,kGAAmE;AA0C/D,oCA1CG,mCAAyB,CA0CH;AAzC7B,wFAAyD;AA0CrD,+BA1CG,8BAAoB,CA0CH;AAzCxB,0GAA2E;AA0CvE,wCA1CG,uCAA6B,CA0CH;AAzCjC,oGAAqE;AA0CjE,qCA1CG,oCAA0B,CA0CH;AAzC9B,8FAA+D;AA0C3D,kCA1CG,iCAAuB,CA0CH;AAzC3B,oGAAqE;AA0CjE,qCA1CG,oCAA0B,CA0CH;AAzC9B,oGAAqE;AA0CjE,qCA1C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H;AA5C3B,oGAAqE;AA6CjE,qCA7CG,oCAA0B,CA6CH;AA5C9B,sFAAuD;AA6CnD,8BA7CG,6BAAmB,CA6CH;AA5CvB,4FAA6D;AA6CzD,iCA7CG,gCAAsB,CA6CH;AA5C1B,4GAA6E;AA6CzE,yCA7CG,wCAA8B,CA6CH;AA5ClC,8FAA+D;AA6C3D,kCA7CG,iCAAuB,CA6CH;AA5C3B,gGAAiE;AA6C7D,mCA7CG,kCAAwB,CA6CH;AA5C5B,wFAAyD;AA6CrD,+BA7CG,8BAAoB,CA6CH;AA5CxB,8GAA+E;AA6C3E,0CA7CG,yCAA+B,CA6CH;AA5CnC,gGAAiE;AA6C7D,mCA7CG,kCAAwB,CA6CH;AA5C5B,kGAAmE;AA6C/D,oCA7CG,mCAAyB,CA6CH;AA5C7B,wGAAyE;AA6CrE,uCA7CG,sCAA4B,CA6CH;AA5ChC,0FAA2D;AA6CvD,gCA7CG,+BAAqB,CA6CH;AA5CzB,4GAA6E;AA6CzE,yCA7CG,wCAA8B,CA6CH;AA5ClC,gGAAiE;AA6C7D,mCA7CG,kCAAwB,CA6CH"}
@@ -19,6 +19,9 @@ import SignInRequest from "./SignInRequest"
19
19
  import ForgetRequest from "./ForgetRequest"
20
20
  import IssuePasswordRequest from "./IssuePasswordRequest"
21
21
  import UpdateAccountRequest from "./UpdateAccountRequest"
22
+ import EnableMfaRequest from "./EnableMfaRequest"
23
+ import ChallengeMfaRequest from "./ChallengeMfaRequest"
24
+ import DisableMfaRequest from "./DisableMfaRequest"
22
25
  import DeleteAccountRequest from "./DeleteAccountRequest"
23
26
  import DescribeProjectsRequest from "./DescribeProjectsRequest"
24
27
  import CreateProjectRequest from "./CreateProjectRequest"
@@ -61,6 +64,9 @@ export {
61
64
  ForgetRequest,
62
65
  IssuePasswordRequest,
63
66
  UpdateAccountRequest,
67
+ EnableMfaRequest,
68
+ ChallengeMfaRequest,
69
+ DisableMfaRequest,
64
70
  DeleteAccountRequest,
65
71
  DescribeProjectsRequest,
66
72
  CreateProjectRequest,
package/project/rest.d.ts CHANGED
@@ -10,6 +10,9 @@ export default class Gs2ProjectRestClient extends AbstractGs2RestClient {
10
10
  forget(request: Request.ForgetRequest): Promise<Result.ForgetResult>;
11
11
  issuePassword(request: Request.IssuePasswordRequest): Promise<Result.IssuePasswordResult>;
12
12
  updateAccount(request: Request.UpdateAccountRequest): Promise<Result.UpdateAccountResult>;
13
+ enableMfa(request: Request.EnableMfaRequest): Promise<Result.EnableMfaResult>;
14
+ challengeMfa(request: Request.ChallengeMfaRequest): Promise<Result.ChallengeMfaResult>;
15
+ disableMfa(request: Request.DisableMfaRequest): Promise<Result.DisableMfaResult>;
13
16
  deleteAccount(request: Request.DeleteAccountRequest): Promise<Result.DeleteAccountResult>;
14
17
  describeProjects(request: Request.DescribeProjectsRequest): Promise<Result.DescribeProjectsResult>;
15
18
  createProject(request: Request.CreateProjectRequest): Promise<Result.CreateProjectResult>;
package/project/rest.js CHANGED
@@ -82,7 +82,7 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
82
82
  });
83
83
  };
84
84
  Gs2ProjectRestClient.prototype.signIn = function (request) {
85
- var _a, _b, _c;
85
+ var _a, _b, _c, _d;
86
86
  var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/signIn')
87
87
  .replace('{service}', 'project')
88
88
  .replace('{region}', this.session.region);
@@ -94,6 +94,7 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
94
94
  'contextStack': (_a = request.getContextStack()) !== null && _a !== void 0 ? _a : null,
95
95
  'email': (_b = request.getEmail()) !== null && _b !== void 0 ? _b : null,
96
96
  'password': (_c = request.getPassword()) !== null && _c !== void 0 ? _c : null,
97
+ 'otp': (_d = request.getOtp()) !== null && _d !== void 0 ? _d : null,
97
98
  };
98
99
  return axios_1.default.post(url, body, {
99
100
  headers: headers,
@@ -191,6 +192,81 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
191
192
  }
192
193
  });
193
194
  };
195
+ Gs2ProjectRestClient.prototype.enableMfa = function (request) {
196
+ var _a, _b;
197
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/mfa')
198
+ .replace('{service}', 'project')
199
+ .replace('{region}', this.session.region);
200
+ var headers = this.createAuthorizedHeaders();
201
+ if (request.getRequestId()) {
202
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
203
+ }
204
+ var body = {
205
+ 'contextStack': (_a = request.getContextStack()) !== null && _a !== void 0 ? _a : null,
206
+ 'accountToken': (_b = request.getAccountToken()) !== null && _b !== void 0 ? _b : null,
207
+ };
208
+ return axios_1.default.post(url, body, {
209
+ headers: headers,
210
+ }).then(function (response) {
211
+ return Result.EnableMfaResult.fromDict(response.data);
212
+ }).catch(function (error) {
213
+ if (error.response) {
214
+ throw JSON.parse(error.response.data.message);
215
+ }
216
+ else {
217
+ throw [];
218
+ }
219
+ });
220
+ };
221
+ Gs2ProjectRestClient.prototype.challengeMfa = function (request) {
222
+ var _a, _b, _c;
223
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/mfa/challenge')
224
+ .replace('{service}', 'project')
225
+ .replace('{region}', this.session.region);
226
+ var headers = this.createAuthorizedHeaders();
227
+ if (request.getRequestId()) {
228
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
229
+ }
230
+ var body = {
231
+ 'contextStack': (_a = request.getContextStack()) !== null && _a !== void 0 ? _a : null,
232
+ 'accountToken': (_b = request.getAccountToken()) !== null && _b !== void 0 ? _b : null,
233
+ 'passcode': (_c = request.getPasscode()) !== null && _c !== void 0 ? _c : null,
234
+ };
235
+ return axios_1.default.post(url, body, {
236
+ headers: headers,
237
+ }).then(function (response) {
238
+ return Result.ChallengeMfaResult.fromDict(response.data);
239
+ }).catch(function (error) {
240
+ if (error.response) {
241
+ throw JSON.parse(error.response.data.message);
242
+ }
243
+ else {
244
+ throw [];
245
+ }
246
+ });
247
+ };
248
+ Gs2ProjectRestClient.prototype.disableMfa = function (request) {
249
+ var _a, _b;
250
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/mfa')
251
+ .replace('{service}', 'project')
252
+ .replace('{region}', this.session.region);
253
+ var headers = this.createAuthorizedHeaders();
254
+ if (request.getRequestId()) {
255
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
256
+ }
257
+ var params = {
258
+ 'contextStack': (_a = request.getContextStack()) !== null && _a !== void 0 ? _a : null,
259
+ 'accountToken': String((_b = request.getAccountToken()) !== null && _b !== void 0 ? _b : null),
260
+ };
261
+ return axios_1.default.delete(url, {
262
+ params: params,
263
+ headers: headers,
264
+ }).then(function (response) {
265
+ return Result.DisableMfaResult.fromDict(response.data);
266
+ }).catch(function (error) {
267
+ throw JSON.parse(error.response.data.message);
268
+ });
269
+ };
194
270
  Gs2ProjectRestClient.prototype.deleteAccount = function (request) {
195
271
  var _a;
196
272
  var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account')