@aceplus/smartace-api 3.6.0 → 3.7.0-alpha.10

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.
@@ -5,70 +5,6 @@ import * as auth_account_pb from "./auth.account_pb";
5
5
  import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
6
6
  import {grpc} from "@improbable-eng/grpc-web";
7
7
 
8
- type SuperAdminAccountGRPCCreateUser = {
9
- readonly methodName: string;
10
- readonly service: typeof SuperAdminAccountGRPC;
11
- readonly requestStream: false;
12
- readonly responseStream: false;
13
- readonly requestType: typeof auth_account_pb.AccountProto.CreateAdminRequest;
14
- readonly responseType: typeof auth_account_pb.AccountProto;
15
- };
16
-
17
- type SuperAdminAccountGRPCRetrieve = {
18
- readonly methodName: string;
19
- readonly service: typeof SuperAdminAccountGRPC;
20
- readonly requestStream: false;
21
- readonly responseStream: false;
22
- readonly requestType: typeof auth_account_pb.AccountProto.RetrieveRequest;
23
- readonly responseType: typeof auth_account_pb.AccountProto;
24
- };
25
-
26
- type SuperAdminAccountGRPCUpdate = {
27
- readonly methodName: string;
28
- readonly service: typeof SuperAdminAccountGRPC;
29
- readonly requestStream: false;
30
- readonly responseStream: false;
31
- readonly requestType: typeof auth_account_pb.AccountProto.UpdateRequest;
32
- readonly responseType: typeof auth_account_pb.AccountProto;
33
- };
34
-
35
- type SuperAdminAccountGRPCDelete = {
36
- readonly methodName: string;
37
- readonly service: typeof SuperAdminAccountGRPC;
38
- readonly requestStream: false;
39
- readonly responseStream: false;
40
- readonly requestType: typeof auth_account_pb.AccountProto.DeleteRequest;
41
- readonly responseType: typeof auth_account_pb.AccountProto.DeleteReply;
42
- };
43
-
44
- type SuperAdminAccountGRPCSearch = {
45
- readonly methodName: string;
46
- readonly service: typeof SuperAdminAccountGRPC;
47
- readonly requestStream: false;
48
- readonly responseStream: false;
49
- readonly requestType: typeof auth_account_pb.AccountProto.SearchRequest;
50
- readonly responseType: typeof auth_account_pb.AccountProto.SearchReply;
51
- };
52
-
53
- type SuperAdminAccountGRPCSetPassword = {
54
- readonly methodName: string;
55
- readonly service: typeof SuperAdminAccountGRPC;
56
- readonly requestStream: false;
57
- readonly responseStream: false;
58
- readonly requestType: typeof auth_account_pb.AccountProto.ChangePasswordRequest;
59
- readonly responseType: typeof auth_account_pb.AccountProto.ChangePasswordReply;
60
- };
61
-
62
- export class SuperAdminAccountGRPC {
63
- static readonly serviceName: string;
64
- static readonly CreateUser: SuperAdminAccountGRPCCreateUser;
65
- static readonly Retrieve: SuperAdminAccountGRPCRetrieve;
66
- static readonly Update: SuperAdminAccountGRPCUpdate;
67
- static readonly Delete: SuperAdminAccountGRPCDelete;
68
- static readonly Search: SuperAdminAccountGRPCSearch;
69
- static readonly SetPassword: SuperAdminAccountGRPCSetPassword;
70
- }
71
-
72
8
  type ClusterAccountGRPCInviteAdminUser = {
73
9
  readonly methodName: string;
74
10
  readonly service: typeof ClusterAccountGRPC;
@@ -191,66 +127,6 @@ interface BidirectionalStream<ReqT, ResT> {
191
127
  on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
192
128
  }
193
129
 
194
- export class SuperAdminAccountGRPCClient {
195
- readonly serviceHost: string;
196
-
197
- constructor(serviceHost: string, options?: grpc.RpcOptions);
198
- createUser(
199
- requestMessage: auth_account_pb.AccountProto.CreateAdminRequest,
200
- metadata: grpc.Metadata,
201
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
202
- ): UnaryResponse;
203
- createUser(
204
- requestMessage: auth_account_pb.AccountProto.CreateAdminRequest,
205
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
206
- ): UnaryResponse;
207
- retrieve(
208
- requestMessage: auth_account_pb.AccountProto.RetrieveRequest,
209
- metadata: grpc.Metadata,
210
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
211
- ): UnaryResponse;
212
- retrieve(
213
- requestMessage: auth_account_pb.AccountProto.RetrieveRequest,
214
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
215
- ): UnaryResponse;
216
- update(
217
- requestMessage: auth_account_pb.AccountProto.UpdateRequest,
218
- metadata: grpc.Metadata,
219
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
220
- ): UnaryResponse;
221
- update(
222
- requestMessage: auth_account_pb.AccountProto.UpdateRequest,
223
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
224
- ): UnaryResponse;
225
- delete(
226
- requestMessage: auth_account_pb.AccountProto.DeleteRequest,
227
- metadata: grpc.Metadata,
228
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.DeleteReply|null) => void
229
- ): UnaryResponse;
230
- delete(
231
- requestMessage: auth_account_pb.AccountProto.DeleteRequest,
232
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.DeleteReply|null) => void
233
- ): UnaryResponse;
234
- search(
235
- requestMessage: auth_account_pb.AccountProto.SearchRequest,
236
- metadata: grpc.Metadata,
237
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.SearchReply|null) => void
238
- ): UnaryResponse;
239
- search(
240
- requestMessage: auth_account_pb.AccountProto.SearchRequest,
241
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.SearchReply|null) => void
242
- ): UnaryResponse;
243
- setPassword(
244
- requestMessage: auth_account_pb.AccountProto.ChangePasswordRequest,
245
- metadata: grpc.Metadata,
246
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.ChangePasswordReply|null) => void
247
- ): UnaryResponse;
248
- setPassword(
249
- requestMessage: auth_account_pb.AccountProto.ChangePasswordRequest,
250
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.ChangePasswordReply|null) => void
251
- ): UnaryResponse;
252
- }
253
-
254
130
  export class ClusterAccountGRPCClient {
255
131
  readonly serviceHost: string;
256
132
 
@@ -5,261 +5,6 @@ var auth_account_pb = require("./auth.account_pb");
5
5
  var google_protobuf_empty_pb = require("google-protobuf/google/protobuf/empty_pb");
6
6
  var grpc = require("@improbable-eng/grpc-web").grpc;
7
7
 
8
- var SuperAdminAccountGRPC = (function () {
9
- function SuperAdminAccountGRPC() {}
10
- SuperAdminAccountGRPC.serviceName = "Auth.SuperAdminAccountGRPC";
11
- return SuperAdminAccountGRPC;
12
- }());
13
-
14
- SuperAdminAccountGRPC.CreateUser = {
15
- methodName: "CreateUser",
16
- service: SuperAdminAccountGRPC,
17
- requestStream: false,
18
- responseStream: false,
19
- requestType: auth_account_pb.AccountProto.CreateAdminRequest,
20
- responseType: auth_account_pb.AccountProto
21
- };
22
-
23
- SuperAdminAccountGRPC.Retrieve = {
24
- methodName: "Retrieve",
25
- service: SuperAdminAccountGRPC,
26
- requestStream: false,
27
- responseStream: false,
28
- requestType: auth_account_pb.AccountProto.RetrieveRequest,
29
- responseType: auth_account_pb.AccountProto
30
- };
31
-
32
- SuperAdminAccountGRPC.Update = {
33
- methodName: "Update",
34
- service: SuperAdminAccountGRPC,
35
- requestStream: false,
36
- responseStream: false,
37
- requestType: auth_account_pb.AccountProto.UpdateRequest,
38
- responseType: auth_account_pb.AccountProto
39
- };
40
-
41
- SuperAdminAccountGRPC.Delete = {
42
- methodName: "Delete",
43
- service: SuperAdminAccountGRPC,
44
- requestStream: false,
45
- responseStream: false,
46
- requestType: auth_account_pb.AccountProto.DeleteRequest,
47
- responseType: auth_account_pb.AccountProto.DeleteReply
48
- };
49
-
50
- SuperAdminAccountGRPC.Search = {
51
- methodName: "Search",
52
- service: SuperAdminAccountGRPC,
53
- requestStream: false,
54
- responseStream: false,
55
- requestType: auth_account_pb.AccountProto.SearchRequest,
56
- responseType: auth_account_pb.AccountProto.SearchReply
57
- };
58
-
59
- SuperAdminAccountGRPC.SetPassword = {
60
- methodName: "SetPassword",
61
- service: SuperAdminAccountGRPC,
62
- requestStream: false,
63
- responseStream: false,
64
- requestType: auth_account_pb.AccountProto.ChangePasswordRequest,
65
- responseType: auth_account_pb.AccountProto.ChangePasswordReply
66
- };
67
-
68
- exports.SuperAdminAccountGRPC = SuperAdminAccountGRPC;
69
-
70
- function SuperAdminAccountGRPCClient(serviceHost, options) {
71
- this.serviceHost = serviceHost;
72
- this.options = options || {};
73
- }
74
-
75
- SuperAdminAccountGRPCClient.prototype.createUser = function createUser(requestMessage, metadata, callback) {
76
- if (arguments.length === 2) {
77
- callback = arguments[1];
78
- }
79
- var client = grpc.unary(SuperAdminAccountGRPC.CreateUser, {
80
- request: requestMessage,
81
- host: this.serviceHost,
82
- metadata: metadata,
83
- transport: this.options.transport,
84
- debug: this.options.debug,
85
- onEnd: function (response) {
86
- if (callback) {
87
- if (response.status !== grpc.Code.OK) {
88
- var err = new Error(response.statusMessage);
89
- err.code = response.status;
90
- err.metadata = response.trailers;
91
- callback(err, null);
92
- } else {
93
- callback(null, response.message);
94
- }
95
- }
96
- }
97
- });
98
- return {
99
- cancel: function () {
100
- callback = null;
101
- client.close();
102
- }
103
- };
104
- };
105
-
106
- SuperAdminAccountGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
107
- if (arguments.length === 2) {
108
- callback = arguments[1];
109
- }
110
- var client = grpc.unary(SuperAdminAccountGRPC.Retrieve, {
111
- request: requestMessage,
112
- host: this.serviceHost,
113
- metadata: metadata,
114
- transport: this.options.transport,
115
- debug: this.options.debug,
116
- onEnd: function (response) {
117
- if (callback) {
118
- if (response.status !== grpc.Code.OK) {
119
- var err = new Error(response.statusMessage);
120
- err.code = response.status;
121
- err.metadata = response.trailers;
122
- callback(err, null);
123
- } else {
124
- callback(null, response.message);
125
- }
126
- }
127
- }
128
- });
129
- return {
130
- cancel: function () {
131
- callback = null;
132
- client.close();
133
- }
134
- };
135
- };
136
-
137
- SuperAdminAccountGRPCClient.prototype.update = function update(requestMessage, metadata, callback) {
138
- if (arguments.length === 2) {
139
- callback = arguments[1];
140
- }
141
- var client = grpc.unary(SuperAdminAccountGRPC.Update, {
142
- request: requestMessage,
143
- host: this.serviceHost,
144
- metadata: metadata,
145
- transport: this.options.transport,
146
- debug: this.options.debug,
147
- onEnd: function (response) {
148
- if (callback) {
149
- if (response.status !== grpc.Code.OK) {
150
- var err = new Error(response.statusMessage);
151
- err.code = response.status;
152
- err.metadata = response.trailers;
153
- callback(err, null);
154
- } else {
155
- callback(null, response.message);
156
- }
157
- }
158
- }
159
- });
160
- return {
161
- cancel: function () {
162
- callback = null;
163
- client.close();
164
- }
165
- };
166
- };
167
-
168
- SuperAdminAccountGRPCClient.prototype.delete = function pb_delete(requestMessage, metadata, callback) {
169
- if (arguments.length === 2) {
170
- callback = arguments[1];
171
- }
172
- var client = grpc.unary(SuperAdminAccountGRPC.Delete, {
173
- request: requestMessage,
174
- host: this.serviceHost,
175
- metadata: metadata,
176
- transport: this.options.transport,
177
- debug: this.options.debug,
178
- onEnd: function (response) {
179
- if (callback) {
180
- if (response.status !== grpc.Code.OK) {
181
- var err = new Error(response.statusMessage);
182
- err.code = response.status;
183
- err.metadata = response.trailers;
184
- callback(err, null);
185
- } else {
186
- callback(null, response.message);
187
- }
188
- }
189
- }
190
- });
191
- return {
192
- cancel: function () {
193
- callback = null;
194
- client.close();
195
- }
196
- };
197
- };
198
-
199
- SuperAdminAccountGRPCClient.prototype.search = function search(requestMessage, metadata, callback) {
200
- if (arguments.length === 2) {
201
- callback = arguments[1];
202
- }
203
- var client = grpc.unary(SuperAdminAccountGRPC.Search, {
204
- request: requestMessage,
205
- host: this.serviceHost,
206
- metadata: metadata,
207
- transport: this.options.transport,
208
- debug: this.options.debug,
209
- onEnd: function (response) {
210
- if (callback) {
211
- if (response.status !== grpc.Code.OK) {
212
- var err = new Error(response.statusMessage);
213
- err.code = response.status;
214
- err.metadata = response.trailers;
215
- callback(err, null);
216
- } else {
217
- callback(null, response.message);
218
- }
219
- }
220
- }
221
- });
222
- return {
223
- cancel: function () {
224
- callback = null;
225
- client.close();
226
- }
227
- };
228
- };
229
-
230
- SuperAdminAccountGRPCClient.prototype.setPassword = function setPassword(requestMessage, metadata, callback) {
231
- if (arguments.length === 2) {
232
- callback = arguments[1];
233
- }
234
- var client = grpc.unary(SuperAdminAccountGRPC.SetPassword, {
235
- request: requestMessage,
236
- host: this.serviceHost,
237
- metadata: metadata,
238
- transport: this.options.transport,
239
- debug: this.options.debug,
240
- onEnd: function (response) {
241
- if (callback) {
242
- if (response.status !== grpc.Code.OK) {
243
- var err = new Error(response.statusMessage);
244
- err.code = response.status;
245
- err.metadata = response.trailers;
246
- callback(err, null);
247
- } else {
248
- callback(null, response.message);
249
- }
250
- }
251
- }
252
- });
253
- return {
254
- cancel: function () {
255
- callback = null;
256
- client.close();
257
- }
258
- };
259
- };
260
-
261
- exports.SuperAdminAccountGRPCClient = SuperAdminAccountGRPCClient;
262
-
263
8
  var ClusterAccountGRPC = (function () {
264
9
  function ClusterAccountGRPC() {}
265
10
  ClusterAccountGRPC.serviceName = "Auth.ClusterAccountGRPC";
@@ -76,30 +76,6 @@ export namespace TwoFactorProto {
76
76
  }
77
77
  }
78
78
 
79
- export class ConfirmRequest extends jspb.Message {
80
- getId(): number;
81
- setId(value: number): void;
82
-
83
- getValidationkey(): string;
84
- setValidationkey(value: string): void;
85
-
86
- serializeBinary(): Uint8Array;
87
- toObject(includeInstance?: boolean): ConfirmRequest.AsObject;
88
- static toObject(includeInstance: boolean, msg: ConfirmRequest): ConfirmRequest.AsObject;
89
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
90
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
91
- static serializeBinaryToWriter(message: ConfirmRequest, writer: jspb.BinaryWriter): void;
92
- static deserializeBinary(bytes: Uint8Array): ConfirmRequest;
93
- static deserializeBinaryFromReader(message: ConfirmRequest, reader: jspb.BinaryReader): ConfirmRequest;
94
- }
95
-
96
- export namespace ConfirmRequest {
97
- export type AsObject = {
98
- id: number,
99
- validationkey: string,
100
- }
101
- }
102
-
103
79
  export class ConfirmReply extends jspb.Message {
104
80
  serializeBinary(): Uint8Array;
105
81
  toObject(includeInstance?: boolean): ConfirmReply.AsObject;
@@ -27,7 +27,6 @@ var auth_authn_pb = require('./auth.authn_pb.js');
27
27
  goog.object.extend(proto, auth_authn_pb);
28
28
  goog.exportSymbol('proto.Auth.TwoFactorProto', null, global);
29
29
  goog.exportSymbol('proto.Auth.TwoFactorProto.ConfirmReply', null, global);
30
- goog.exportSymbol('proto.Auth.TwoFactorProto.ConfirmRequest', null, global);
31
30
  goog.exportSymbol('proto.Auth.TwoFactorProto.RemoveRequest', null, global);
32
31
  goog.exportSymbol('proto.Auth.TwoFactorProto.SetupReply', null, global);
33
32
  goog.exportSymbol('proto.Auth.TwoFactorProto.SetupRequest', null, global);
@@ -95,27 +94,6 @@ if (goog.DEBUG && !COMPILED) {
95
94
  */
96
95
  proto.Auth.TwoFactorProto.SetupReply.displayName = 'proto.Auth.TwoFactorProto.SetupReply';
97
96
  }
98
- /**
99
- * Generated by JsPbCodeGenerator.
100
- * @param {Array=} opt_data Optional initial data array, typically from a
101
- * server response, or constructed directly in Javascript. The array is used
102
- * in place and becomes part of the constructed object. It is not cloned.
103
- * If no data is provided, the constructed object will be empty, but still
104
- * valid.
105
- * @extends {jspb.Message}
106
- * @constructor
107
- */
108
- proto.Auth.TwoFactorProto.ConfirmRequest = function(opt_data) {
109
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
110
- };
111
- goog.inherits(proto.Auth.TwoFactorProto.ConfirmRequest, jspb.Message);
112
- if (goog.DEBUG && !COMPILED) {
113
- /**
114
- * @public
115
- * @override
116
- */
117
- proto.Auth.TwoFactorProto.ConfirmRequest.displayName = 'proto.Auth.TwoFactorProto.ConfirmRequest';
118
- }
119
97
  /**
120
98
  * Generated by JsPbCodeGenerator.
121
99
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -609,166 +587,6 @@ proto.Auth.TwoFactorProto.SetupReply.prototype.setManualEntryKey = function(valu
609
587
 
610
588
 
611
589
 
612
- if (jspb.Message.GENERATE_TO_OBJECT) {
613
- /**
614
- * Creates an object representation of this proto.
615
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
616
- * Optional fields that are not set will be set to undefined.
617
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
618
- * For the list of reserved names please see:
619
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
620
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
621
- * JSPB instance for transitional soy proto support:
622
- * http://goto/soy-param-migration
623
- * @return {!Object}
624
- */
625
- proto.Auth.TwoFactorProto.ConfirmRequest.prototype.toObject = function(opt_includeInstance) {
626
- return proto.Auth.TwoFactorProto.ConfirmRequest.toObject(opt_includeInstance, this);
627
- };
628
-
629
-
630
- /**
631
- * Static version of the {@see toObject} method.
632
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
633
- * the JSPB instance for transitional soy proto support:
634
- * http://goto/soy-param-migration
635
- * @param {!proto.Auth.TwoFactorProto.ConfirmRequest} msg The msg instance to transform.
636
- * @return {!Object}
637
- * @suppress {unusedLocalVariables} f is only used for nested messages
638
- */
639
- proto.Auth.TwoFactorProto.ConfirmRequest.toObject = function(includeInstance, msg) {
640
- var f, obj = {
641
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
642
- validationkey: jspb.Message.getFieldWithDefault(msg, 2, "")
643
- };
644
-
645
- if (includeInstance) {
646
- obj.$jspbMessageInstance = msg;
647
- }
648
- return obj;
649
- };
650
- }
651
-
652
-
653
- /**
654
- * Deserializes binary data (in protobuf wire format).
655
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
656
- * @return {!proto.Auth.TwoFactorProto.ConfirmRequest}
657
- */
658
- proto.Auth.TwoFactorProto.ConfirmRequest.deserializeBinary = function(bytes) {
659
- var reader = new jspb.BinaryReader(bytes);
660
- var msg = new proto.Auth.TwoFactorProto.ConfirmRequest;
661
- return proto.Auth.TwoFactorProto.ConfirmRequest.deserializeBinaryFromReader(msg, reader);
662
- };
663
-
664
-
665
- /**
666
- * Deserializes binary data (in protobuf wire format) from the
667
- * given reader into the given message object.
668
- * @param {!proto.Auth.TwoFactorProto.ConfirmRequest} msg The message object to deserialize into.
669
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
670
- * @return {!proto.Auth.TwoFactorProto.ConfirmRequest}
671
- */
672
- proto.Auth.TwoFactorProto.ConfirmRequest.deserializeBinaryFromReader = function(msg, reader) {
673
- while (reader.nextField()) {
674
- if (reader.isEndGroup()) {
675
- break;
676
- }
677
- var field = reader.getFieldNumber();
678
- switch (field) {
679
- case 1:
680
- var value = /** @type {number} */ (reader.readInt64());
681
- msg.setId(value);
682
- break;
683
- case 2:
684
- var value = /** @type {string} */ (reader.readString());
685
- msg.setValidationkey(value);
686
- break;
687
- default:
688
- reader.skipField();
689
- break;
690
- }
691
- }
692
- return msg;
693
- };
694
-
695
-
696
- /**
697
- * Serializes the message to binary data (in protobuf wire format).
698
- * @return {!Uint8Array}
699
- */
700
- proto.Auth.TwoFactorProto.ConfirmRequest.prototype.serializeBinary = function() {
701
- var writer = new jspb.BinaryWriter();
702
- proto.Auth.TwoFactorProto.ConfirmRequest.serializeBinaryToWriter(this, writer);
703
- return writer.getResultBuffer();
704
- };
705
-
706
-
707
- /**
708
- * Serializes the given message to binary data (in protobuf wire
709
- * format), writing to the given BinaryWriter.
710
- * @param {!proto.Auth.TwoFactorProto.ConfirmRequest} message
711
- * @param {!jspb.BinaryWriter} writer
712
- * @suppress {unusedLocalVariables} f is only used for nested messages
713
- */
714
- proto.Auth.TwoFactorProto.ConfirmRequest.serializeBinaryToWriter = function(message, writer) {
715
- var f = undefined;
716
- f = message.getId();
717
- if (f !== 0) {
718
- writer.writeInt64(
719
- 1,
720
- f
721
- );
722
- }
723
- f = message.getValidationkey();
724
- if (f.length > 0) {
725
- writer.writeString(
726
- 2,
727
- f
728
- );
729
- }
730
- };
731
-
732
-
733
- /**
734
- * optional int64 id = 1;
735
- * @return {number}
736
- */
737
- proto.Auth.TwoFactorProto.ConfirmRequest.prototype.getId = function() {
738
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
739
- };
740
-
741
-
742
- /**
743
- * @param {number} value
744
- * @return {!proto.Auth.TwoFactorProto.ConfirmRequest} returns this
745
- */
746
- proto.Auth.TwoFactorProto.ConfirmRequest.prototype.setId = function(value) {
747
- return jspb.Message.setProto3IntField(this, 1, value);
748
- };
749
-
750
-
751
- /**
752
- * optional string validationKey = 2;
753
- * @return {string}
754
- */
755
- proto.Auth.TwoFactorProto.ConfirmRequest.prototype.getValidationkey = function() {
756
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
757
- };
758
-
759
-
760
- /**
761
- * @param {string} value
762
- * @return {!proto.Auth.TwoFactorProto.ConfirmRequest} returns this
763
- */
764
- proto.Auth.TwoFactorProto.ConfirmRequest.prototype.setValidationkey = function(value) {
765
- return jspb.Message.setProto3StringField(this, 2, value);
766
- };
767
-
768
-
769
-
770
-
771
-
772
590
  if (jspb.Message.GENERATE_TO_OBJECT) {
773
591
  /**
774
592
  * Creates an object representation of this proto.
@@ -14,15 +14,6 @@ type AccountTwoFactorGRPCSetupTwoFactor = {
14
14
  readonly responseType: typeof auth_account_two_factor_pb.TwoFactorProto.SetupReply;
15
15
  };
16
16
 
17
- type AccountTwoFactorGRPCConfirmTwoFactor = {
18
- readonly methodName: string;
19
- readonly service: typeof AccountTwoFactorGRPC;
20
- readonly requestStream: false;
21
- readonly responseStream: false;
22
- readonly requestType: typeof auth_account_two_factor_pb.TwoFactorProto.ConfirmRequest;
23
- readonly responseType: typeof auth_account_two_factor_pb.TwoFactorProto.ConfirmReply;
24
- };
25
-
26
17
  type AccountTwoFactorGRPCRemove = {
27
18
  readonly methodName: string;
28
19
  readonly service: typeof AccountTwoFactorGRPC;
@@ -44,7 +35,6 @@ type AccountTwoFactorGRPCValidate = {
44
35
  export class AccountTwoFactorGRPC {
45
36
  static readonly serviceName: string;
46
37
  static readonly SetupTwoFactor: AccountTwoFactorGRPCSetupTwoFactor;
47
- static readonly ConfirmTwoFactor: AccountTwoFactorGRPCConfirmTwoFactor;
48
38
  static readonly Remove: AccountTwoFactorGRPCRemove;
49
39
  static readonly Validate: AccountTwoFactorGRPCValidate;
50
40
  }
@@ -90,15 +80,6 @@ export class AccountTwoFactorGRPCClient {
90
80
  requestMessage: auth_account_two_factor_pb.TwoFactorProto.SetupRequest,
91
81
  callback: (error: ServiceError|null, responseMessage: auth_account_two_factor_pb.TwoFactorProto.SetupReply|null) => void
92
82
  ): UnaryResponse;
93
- confirmTwoFactor(
94
- requestMessage: auth_account_two_factor_pb.TwoFactorProto.ConfirmRequest,
95
- metadata: grpc.Metadata,
96
- callback: (error: ServiceError|null, responseMessage: auth_account_two_factor_pb.TwoFactorProto.ConfirmReply|null) => void
97
- ): UnaryResponse;
98
- confirmTwoFactor(
99
- requestMessage: auth_account_two_factor_pb.TwoFactorProto.ConfirmRequest,
100
- callback: (error: ServiceError|null, responseMessage: auth_account_two_factor_pb.TwoFactorProto.ConfirmReply|null) => void
101
- ): UnaryResponse;
102
83
  remove(
103
84
  requestMessage: auth_account_two_factor_pb.TwoFactorProto.RemoveRequest,
104
85
  metadata: grpc.Metadata,