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
@@ -1,8 +1,11 @@
1
1
  import IModel from '../../core/interface/IModel';
2
+ import TwoFactorAuthenticationSetting from './TwoFactorAuthenticationSetting';
2
3
  export default class Password implements IModel {
3
4
  private passwordId;
4
5
  private userId;
5
6
  private userName;
7
+ private enableTwoFactorAuthentication;
8
+ private twoFactorAuthenticationSetting;
6
9
  private createdAt;
7
10
  private revision;
8
11
  static getOwnerId(grn: string): string | null;
@@ -18,6 +21,12 @@ export default class Password implements IModel {
18
21
  getUserName(): string | null;
19
22
  setUserName(userName: string | null): this;
20
23
  withUserName(userName: string | null): this;
24
+ getEnableTwoFactorAuthentication(): string | null;
25
+ setEnableTwoFactorAuthentication(enableTwoFactorAuthentication: string | null): this;
26
+ withEnableTwoFactorAuthentication(enableTwoFactorAuthentication: string | null): this;
27
+ getTwoFactorAuthenticationSetting(): TwoFactorAuthenticationSetting | null;
28
+ setTwoFactorAuthenticationSetting(twoFactorAuthenticationSetting: TwoFactorAuthenticationSetting | null): this;
29
+ withTwoFactorAuthenticationSetting(twoFactorAuthenticationSetting: TwoFactorAuthenticationSetting | null): this;
21
30
  getCreatedAt(): number | null;
22
31
  setCreatedAt(createdAt: number | null): this;
23
32
  withCreatedAt(createdAt: number | null): this;
@@ -15,12 +15,16 @@ express or implied. See the License for the specific language governing
15
15
  permissions and limitations under the License.
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ var tslib_1 = require("tslib");
19
+ var TwoFactorAuthenticationSetting_1 = tslib_1.__importDefault(require("./TwoFactorAuthenticationSetting"));
18
20
  var grnFormat = "grn:gs2::{ownerId}:identifier:user:{userName}";
19
21
  var Password = /** @class */ (function () {
20
22
  function Password() {
21
23
  this.passwordId = null;
22
24
  this.userId = null;
23
25
  this.userName = null;
26
+ this.enableTwoFactorAuthentication = null;
27
+ this.twoFactorAuthenticationSetting = null;
24
28
  this.createdAt = null;
25
29
  this.revision = null;
26
30
  }
@@ -89,6 +93,28 @@ var Password = /** @class */ (function () {
89
93
  this.userName = userName;
90
94
  return this;
91
95
  };
96
+ Password.prototype.getEnableTwoFactorAuthentication = function () {
97
+ return this.enableTwoFactorAuthentication;
98
+ };
99
+ Password.prototype.setEnableTwoFactorAuthentication = function (enableTwoFactorAuthentication) {
100
+ this.enableTwoFactorAuthentication = enableTwoFactorAuthentication;
101
+ return this;
102
+ };
103
+ Password.prototype.withEnableTwoFactorAuthentication = function (enableTwoFactorAuthentication) {
104
+ this.enableTwoFactorAuthentication = enableTwoFactorAuthentication;
105
+ return this;
106
+ };
107
+ Password.prototype.getTwoFactorAuthenticationSetting = function () {
108
+ return this.twoFactorAuthenticationSetting;
109
+ };
110
+ Password.prototype.setTwoFactorAuthenticationSetting = function (twoFactorAuthenticationSetting) {
111
+ this.twoFactorAuthenticationSetting = twoFactorAuthenticationSetting;
112
+ return this;
113
+ };
114
+ Password.prototype.withTwoFactorAuthenticationSetting = function (twoFactorAuthenticationSetting) {
115
+ this.twoFactorAuthenticationSetting = twoFactorAuthenticationSetting;
116
+ return this;
117
+ };
92
118
  Password.prototype.getCreatedAt = function () {
93
119
  return this.createdAt;
94
120
  };
@@ -119,14 +145,19 @@ var Password = /** @class */ (function () {
119
145
  .withPasswordId(data["passwordId"])
120
146
  .withUserId(data["userId"])
121
147
  .withUserName(data["userName"])
148
+ .withEnableTwoFactorAuthentication(data["enableTwoFactorAuthentication"])
149
+ .withTwoFactorAuthenticationSetting(TwoFactorAuthenticationSetting_1.default.fromDict(data["twoFactorAuthenticationSetting"]))
122
150
  .withCreatedAt(data["createdAt"])
123
151
  .withRevision(data["revision"]);
124
152
  };
125
153
  Password.prototype.toDict = function () {
154
+ var _a;
126
155
  return {
127
156
  "passwordId": this.getPasswordId(),
128
157
  "userId": this.getUserId(),
129
158
  "userName": this.getUserName(),
159
+ "enableTwoFactorAuthentication": this.getEnableTwoFactorAuthentication(),
160
+ "twoFactorAuthenticationSetting": (_a = this.getTwoFactorAuthenticationSetting()) === null || _a === void 0 ? void 0 : _a.toDict(),
130
161
  "createdAt": this.getCreatedAt(),
131
162
  "revision": this.getRevision(),
132
163
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Password.js","sourceRoot":"","sources":["Password.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAGH,IAAM,SAAS,GAAW,+CAA+C,CAAC;AAE1E;IAAA;QACY,eAAU,GAAgB,IAAI,CAAC;QAC/B,WAAM,GAAgB,IAAI,CAAC;QAC3B,aAAQ,GAAgB,IAAI,CAAC;QAC7B,cAAS,GAAgB,IAAI,CAAC;QAC9B,aAAQ,GAAgB,IAAI,CAAC;IAuHzC,CAAC;IArHiB,mBAAU,GAAxB,UAAyB,GAAW;QAChC,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC;aAC5B,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,CAC/B,CAAC;QACF,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;SACnB;QACD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,OAAO;YACH,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,+BAA+B,EAAE,IAAI,CAAC,gCAAgC,EAAE;YACxE,gCAAgC,EAAE,MAAA,IAAI,CAAC,iCAAiC,EAAE,0CAAE,MAAM,EAAE;YACpF,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;SACjC,CAAC;IACN,CAAC;IACL,eAAC;AAAD,CAAC,AAxJD,IAwJC"}
@@ -15,12 +15,15 @@ permissions and limitations under the License.
15
15
  */
16
16
 
17
17
  import IModel from '../../core/interface/IModel';
18
+ import TwoFactorAuthenticationSetting from './TwoFactorAuthenticationSetting';
18
19
  const grnFormat: string = "grn:gs2::{ownerId}:identifier:user:{userName}";
19
20
 
20
21
  export default class Password implements IModel {
21
22
  private passwordId: string|null = null;
22
23
  private userId: string|null = null;
23
24
  private userName: string|null = null;
25
+ private enableTwoFactorAuthentication: string|null = null;
26
+ private twoFactorAuthenticationSetting: TwoFactorAuthenticationSetting|null = null;
24
27
  private createdAt: number|null = null;
25
28
  private revision: number|null = null;
26
29
 
@@ -97,6 +100,28 @@ export default class Password implements IModel {
97
100
  this.userName = userName;
98
101
  return this;
99
102
  }
103
+ public getEnableTwoFactorAuthentication(): string|null {
104
+ return this.enableTwoFactorAuthentication;
105
+ }
106
+ public setEnableTwoFactorAuthentication(enableTwoFactorAuthentication: string|null) {
107
+ this.enableTwoFactorAuthentication = enableTwoFactorAuthentication;
108
+ return this;
109
+ }
110
+ public withEnableTwoFactorAuthentication(enableTwoFactorAuthentication: string|null): this {
111
+ this.enableTwoFactorAuthentication = enableTwoFactorAuthentication;
112
+ return this;
113
+ }
114
+ public getTwoFactorAuthenticationSetting(): TwoFactorAuthenticationSetting|null {
115
+ return this.twoFactorAuthenticationSetting;
116
+ }
117
+ public setTwoFactorAuthenticationSetting(twoFactorAuthenticationSetting: TwoFactorAuthenticationSetting|null) {
118
+ this.twoFactorAuthenticationSetting = twoFactorAuthenticationSetting;
119
+ return this;
120
+ }
121
+ public withTwoFactorAuthenticationSetting(twoFactorAuthenticationSetting: TwoFactorAuthenticationSetting|null): this {
122
+ this.twoFactorAuthenticationSetting = twoFactorAuthenticationSetting;
123
+ return this;
124
+ }
100
125
  public getCreatedAt(): number|null {
101
126
  return this.createdAt;
102
127
  }
@@ -128,6 +153,8 @@ export default class Password implements IModel {
128
153
  .withPasswordId(data["passwordId"])
129
154
  .withUserId(data["userId"])
130
155
  .withUserName(data["userName"])
156
+ .withEnableTwoFactorAuthentication(data["enableTwoFactorAuthentication"])
157
+ .withTwoFactorAuthenticationSetting(TwoFactorAuthenticationSetting.fromDict(data["twoFactorAuthenticationSetting"]))
131
158
  .withCreatedAt(data["createdAt"])
132
159
  .withRevision(data["revision"]);
133
160
  }
@@ -137,6 +164,8 @@ export default class Password implements IModel {
137
164
  "passwordId": this.getPasswordId(),
138
165
  "userId": this.getUserId(),
139
166
  "userName": this.getUserName(),
167
+ "enableTwoFactorAuthentication": this.getEnableTwoFactorAuthentication(),
168
+ "twoFactorAuthenticationSetting": this.getTwoFactorAuthenticationSetting()?.toDict(),
140
169
  "createdAt": this.getCreatedAt(),
141
170
  "revision": this.getRevision(),
142
171
  };
@@ -0,0 +1,13 @@
1
+ import IModel from '../../core/interface/IModel';
2
+ export default class TwoFactorAuthenticationSetting implements IModel {
3
+ private status;
4
+ getStatus(): string | null;
5
+ setStatus(status: string | null): this;
6
+ withStatus(status: string | null): this;
7
+ static fromDict(data: {
8
+ [key: string]: any;
9
+ }): TwoFactorAuthenticationSetting | null;
10
+ toDict(): {
11
+ [key: string]: any;
12
+ };
13
+ }
@@ -0,0 +1,48 @@
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 TwoFactorAuthenticationSetting = /** @class */ (function () {
19
+ function TwoFactorAuthenticationSetting() {
20
+ this.status = null;
21
+ }
22
+ TwoFactorAuthenticationSetting.prototype.getStatus = function () {
23
+ return this.status;
24
+ };
25
+ TwoFactorAuthenticationSetting.prototype.setStatus = function (status) {
26
+ this.status = status;
27
+ return this;
28
+ };
29
+ TwoFactorAuthenticationSetting.prototype.withStatus = function (status) {
30
+ this.status = status;
31
+ return this;
32
+ };
33
+ TwoFactorAuthenticationSetting.fromDict = function (data) {
34
+ if (data == undefined || data == null) {
35
+ return null;
36
+ }
37
+ return new TwoFactorAuthenticationSetting()
38
+ .withStatus(data["status"]);
39
+ };
40
+ TwoFactorAuthenticationSetting.prototype.toDict = function () {
41
+ return {
42
+ "status": this.getStatus(),
43
+ };
44
+ };
45
+ return TwoFactorAuthenticationSetting;
46
+ }());
47
+ exports.default = TwoFactorAuthenticationSetting;
48
+ //# sourceMappingURL=TwoFactorAuthenticationSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TwoFactorAuthenticationSetting.js","sourceRoot":"","sources":["TwoFactorAuthenticationSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,WAAM,GAAgB,IAAI,CAAC;IA0BvC,CAAC;IAzBU,kDAAS,GAAhB;QACI,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IACM,kDAAS,GAAhB,UAAiB,MAAmB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,mDAAU,GAAjB,UAAkB,MAAmB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,uCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,8BAA8B,EAAE;aACtC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpC,CAAC;IAEM,+CAAM,GAAb;QACI,OAAO;YACH,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;SAC7B,CAAC;IACN,CAAC;IACL,qCAAC;AAAD,CAAC,AA3BD,IA2BC"}
@@ -0,0 +1,46 @@
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 IModel from '../../core/interface/IModel';
18
+
19
+ export default class TwoFactorAuthenticationSetting implements IModel {
20
+ private status: string|null = null;
21
+ public getStatus(): string|null {
22
+ return this.status;
23
+ }
24
+ public setStatus(status: string|null) {
25
+ this.status = status;
26
+ return this;
27
+ }
28
+ public withStatus(status: string|null): this {
29
+ this.status = status;
30
+ return this;
31
+ }
32
+
33
+ public static fromDict(data: {[key: string]: any}): TwoFactorAuthenticationSetting|null {
34
+ if (data == undefined || data == null) {
35
+ return null;
36
+ }
37
+ return new TwoFactorAuthenticationSetting()
38
+ .withStatus(data["status"]);
39
+ }
40
+
41
+ public toDict(): {[key: string]: any} {
42
+ return {
43
+ "status": this.getStatus(),
44
+ };
45
+ }
46
+ }
@@ -4,4 +4,5 @@ import Identifier from "./Identifier";
4
4
  import Password from "./Password";
5
5
  import AttachSecurityPolicy from "./AttachSecurityPolicy";
6
6
  import ProjectToken from "./ProjectToken";
7
- export { User, SecurityPolicy, Identifier, Password, AttachSecurityPolicy, ProjectToken, };
7
+ import TwoFactorAuthenticationSetting from "./TwoFactorAuthenticationSetting";
8
+ export { User, SecurityPolicy, Identifier, Password, AttachSecurityPolicy, ProjectToken, TwoFactorAuthenticationSetting, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProjectToken = exports.AttachSecurityPolicy = exports.Password = exports.Identifier = exports.SecurityPolicy = exports.User = void 0;
3
+ exports.TwoFactorAuthenticationSetting = exports.ProjectToken = exports.AttachSecurityPolicy = exports.Password = exports.Identifier = exports.SecurityPolicy = exports.User = 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,4 +29,6 @@ var AttachSecurityPolicy_1 = tslib_1.__importDefault(require("./AttachSecurityPo
29
29
  exports.AttachSecurityPolicy = AttachSecurityPolicy_1.default;
30
30
  var ProjectToken_1 = tslib_1.__importDefault(require("./ProjectToken"));
31
31
  exports.ProjectToken = ProjectToken_1.default;
32
+ var TwoFactorAuthenticationSetting_1 = tslib_1.__importDefault(require("./TwoFactorAuthenticationSetting"));
33
+ exports.TwoFactorAuthenticationSetting = TwoFactorAuthenticationSetting_1.default;
32
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,wDAAyB;AAQrB,eARG,cAAI,CAQH;AAPR,4EAA6C;AAQzC,yBARG,wBAAc,CAQH;AAPlB,oEAAqC;AAQjC,qBARG,oBAAU,CAQH;AAPd,gEAAiC;AAQ7B,mBARG,kBAAQ,CAQH;AAPZ,wFAAyD;AAQrD,+BARG,8BAAoB,CAQH;AAPxB,wEAAyC;AAQrC,uBARG,sBAAY,CAQH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,wDAAyB;AASrB,eATG,cAAI,CASH;AARR,4EAA6C;AASzC,yBATG,wBAAc,CASH;AARlB,oEAAqC;AASjC,qBATG,oBAAU,CASH;AARd,gEAAiC;AAS7B,mBATG,kBAAQ,CASH;AARZ,wFAAyD;AASrD,+BATG,8BAAoB,CASH;AARxB,wEAAyC;AASrC,uBATG,sBAAY,CASH;AARhB,4GAA6E;AASzE,yCATG,wCAA8B,CASH"}
@@ -19,6 +19,7 @@ import Identifier from "./Identifier"
19
19
  import Password from "./Password"
20
20
  import AttachSecurityPolicy from "./AttachSecurityPolicy"
21
21
  import ProjectToken from "./ProjectToken"
22
+ import TwoFactorAuthenticationSetting from "./TwoFactorAuthenticationSetting"
22
23
 
23
24
  export {
24
25
  User,
@@ -27,4 +28,5 @@ export {
27
28
  Password,
28
29
  AttachSecurityPolicy,
29
30
  ProjectToken,
31
+ TwoFactorAuthenticationSetting,
30
32
  };
@@ -0,0 +1,25 @@
1
+ import IRequest from '../../core/interface/IRequest';
2
+ export default class ChallengeMfaRequest implements IRequest {
3
+ private requestId;
4
+ private contextStack;
5
+ private userName;
6
+ private passcode;
7
+ getRequestId(): string | null;
8
+ setRequestId(requestId: string | null): this;
9
+ withRequestId(requestId: string | null): this;
10
+ getContextStack(): string | null;
11
+ setContextStack(contextStack: string | null): this;
12
+ withContextStack(contextStack: string | null): this;
13
+ getUserName(): string | null;
14
+ setUserName(userName: string | null): this;
15
+ withUserName(userName: string | null): this;
16
+ getPasscode(): string | null;
17
+ setPasscode(passcode: string | null): this;
18
+ withPasscode(passcode: string | null): this;
19
+ static fromDict(data: {
20
+ [key: string]: any;
21
+ }): ChallengeMfaRequest;
22
+ toDict(): {
23
+ [key: string]: any;
24
+ };
25
+ }
@@ -0,0 +1,83 @@
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 ChallengeMfaRequest = /** @class */ (function () {
19
+ function ChallengeMfaRequest() {
20
+ this.requestId = null;
21
+ this.contextStack = null;
22
+ this.userName = null;
23
+ this.passcode = null;
24
+ }
25
+ ChallengeMfaRequest.prototype.getRequestId = function () {
26
+ return this.requestId;
27
+ };
28
+ ChallengeMfaRequest.prototype.setRequestId = function (requestId) {
29
+ this.requestId = requestId;
30
+ return this;
31
+ };
32
+ ChallengeMfaRequest.prototype.withRequestId = function (requestId) {
33
+ this.requestId = requestId;
34
+ return this;
35
+ };
36
+ ChallengeMfaRequest.prototype.getContextStack = function () {
37
+ return this.contextStack;
38
+ };
39
+ ChallengeMfaRequest.prototype.setContextStack = function (contextStack) {
40
+ this.contextStack = contextStack;
41
+ return this;
42
+ };
43
+ ChallengeMfaRequest.prototype.withContextStack = function (contextStack) {
44
+ this.contextStack = contextStack;
45
+ return this;
46
+ };
47
+ ChallengeMfaRequest.prototype.getUserName = function () {
48
+ return this.userName;
49
+ };
50
+ ChallengeMfaRequest.prototype.setUserName = function (userName) {
51
+ this.userName = userName;
52
+ return this;
53
+ };
54
+ ChallengeMfaRequest.prototype.withUserName = function (userName) {
55
+ this.userName = userName;
56
+ return this;
57
+ };
58
+ ChallengeMfaRequest.prototype.getPasscode = function () {
59
+ return this.passcode;
60
+ };
61
+ ChallengeMfaRequest.prototype.setPasscode = function (passcode) {
62
+ this.passcode = passcode;
63
+ return this;
64
+ };
65
+ ChallengeMfaRequest.prototype.withPasscode = function (passcode) {
66
+ this.passcode = passcode;
67
+ return this;
68
+ };
69
+ ChallengeMfaRequest.fromDict = function (data) {
70
+ return new ChallengeMfaRequest()
71
+ .withUserName(data["userName"])
72
+ .withPasscode(data["passcode"]);
73
+ };
74
+ ChallengeMfaRequest.prototype.toDict = function () {
75
+ return {
76
+ "userName": this.getUserName(),
77
+ "passcode": this.getPasscode(),
78
+ };
79
+ };
80
+ return ChallengeMfaRequest;
81
+ }());
82
+ exports.default = ChallengeMfaRequest;
83
+ //# sourceMappingURL=ChallengeMfaRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChallengeMfaRequest.js","sourceRoot":"","sources":["ChallengeMfaRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,aAAQ,GAAgB,IAAI,CAAC;IAgEzC,CAAC;IA9DU,0CAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,0CAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,2CAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,6CAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,6CAAe,GAAtB,UAAuB,YAAyB;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,8CAAgB,GAAvB,UAAwB,YAAyB;QAC7C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,yCAAW,GAAlB;QACI,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACM,yCAAW,GAAlB,UAAmB,QAAqB;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,0CAAY,GAAnB,UAAoB,QAAqB;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,yCAAW,GAAlB;QACI,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACM,yCAAW,GAAlB,UAAmB,QAAqB;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,0CAAY,GAAnB,UAAoB,QAAqB;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,4BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,mBAAmB,EAAE;aAC3B,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IACxC,CAAC;IAEM,oCAAM,GAAb;QACI,OAAO;YACH,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;SACjC,CAAC;IACN,CAAC;IACL,0BAAC;AAAD,CAAC,AArED,IAqEC"}
@@ -0,0 +1,90 @@
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 ChallengeMfaRequest implements IRequest {
22
+
23
+ private requestId: string|null = null;
24
+ private contextStack: string|null = null;
25
+ private userName: string|null = null;
26
+ private passcode: string|null = null;
27
+
28
+ public getRequestId(): string|null {
29
+ return this.requestId;
30
+ }
31
+
32
+ public setRequestId(requestId: string|null) {
33
+ this.requestId = requestId;
34
+ return this;
35
+ }
36
+
37
+ public withRequestId(requestId: string|null): this {
38
+ this.requestId = requestId;
39
+ return this;
40
+ }
41
+
42
+ public getContextStack(): string|null {
43
+ return this.contextStack;
44
+ }
45
+
46
+ public setContextStack(contextStack: string|null) {
47
+ this.contextStack = contextStack;
48
+ return this;
49
+ }
50
+
51
+ public withContextStack(contextStack: string|null): this {
52
+ this.contextStack = contextStack;
53
+ return this;
54
+ }
55
+ public getUserName(): string|null {
56
+ return this.userName;
57
+ }
58
+ public setUserName(userName: string|null) {
59
+ this.userName = userName;
60
+ return this;
61
+ }
62
+ public withUserName(userName: string|null): this {
63
+ this.userName = userName;
64
+ return this;
65
+ }
66
+ public getPasscode(): string|null {
67
+ return this.passcode;
68
+ }
69
+ public setPasscode(passcode: string|null) {
70
+ this.passcode = passcode;
71
+ return this;
72
+ }
73
+ public withPasscode(passcode: string|null): this {
74
+ this.passcode = passcode;
75
+ return this;
76
+ }
77
+
78
+ public static fromDict(data: {[key: string]: any}): ChallengeMfaRequest {
79
+ return new ChallengeMfaRequest()
80
+ .withUserName(data["userName"])
81
+ .withPasscode(data["passcode"]);
82
+ }
83
+
84
+ public toDict(): {[key: string]: any} {
85
+ return {
86
+ "userName": this.getUserName(),
87
+ "passcode": this.getPasscode(),
88
+ };
89
+ }
90
+ }
@@ -0,0 +1,21 @@
1
+ import IRequest from '../../core/interface/IRequest';
2
+ export default class DisableMfaRequest 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
+ }): DisableMfaRequest;
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 DisableMfaRequest = /** @class */ (function () {
19
+ function DisableMfaRequest() {
20
+ this.requestId = null;
21
+ this.contextStack = null;
22
+ this.userName = null;
23
+ }
24
+ DisableMfaRequest.prototype.getRequestId = function () {
25
+ return this.requestId;
26
+ };
27
+ DisableMfaRequest.prototype.setRequestId = function (requestId) {
28
+ this.requestId = requestId;
29
+ return this;
30
+ };
31
+ DisableMfaRequest.prototype.withRequestId = function (requestId) {
32
+ this.requestId = requestId;
33
+ return this;
34
+ };
35
+ DisableMfaRequest.prototype.getContextStack = function () {
36
+ return this.contextStack;
37
+ };
38
+ DisableMfaRequest.prototype.setContextStack = function (contextStack) {
39
+ this.contextStack = contextStack;
40
+ return this;
41
+ };
42
+ DisableMfaRequest.prototype.withContextStack = function (contextStack) {
43
+ this.contextStack = contextStack;
44
+ return this;
45
+ };
46
+ DisableMfaRequest.prototype.getUserName = function () {
47
+ return this.userName;
48
+ };
49
+ DisableMfaRequest.prototype.setUserName = function (userName) {
50
+ this.userName = userName;
51
+ return this;
52
+ };
53
+ DisableMfaRequest.prototype.withUserName = function (userName) {
54
+ this.userName = userName;
55
+ return this;
56
+ };
57
+ DisableMfaRequest.fromDict = function (data) {
58
+ return new DisableMfaRequest()
59
+ .withUserName(data["userName"]);
60
+ };
61
+ DisableMfaRequest.prototype.toDict = function () {
62
+ return {
63
+ "userName": this.getUserName(),
64
+ };
65
+ };
66
+ return DisableMfaRequest;
67
+ }());
68
+ exports.default = DisableMfaRequest;
69
+ //# sourceMappingURL=DisableMfaRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DisableMfaRequest.js","sourceRoot":"","sources":["DisableMfaRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,aAAQ,GAAgB,IAAI,CAAC;IAmDzC,CAAC;IAjDU,wCAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,wCAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,yCAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,2CAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,2CAAe,GAAtB,U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