@aceplus/smartace-api 3.7.0-alpha.4 → 3.7.0-alpha.6

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.
@@ -0,0 +1,160 @@
1
+ // package: Auth
2
+ // file: auth.passkey.proto
3
+
4
+ import * as auth_passkey_pb from "./auth.passkey_pb";
5
+ import * as auth_authn_pb from "./auth.authn_pb";
6
+ import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
7
+ import {grpc} from "@improbable-eng/grpc-web";
8
+
9
+ type PassKeyGRPCGetCredentialsOptions = {
10
+ readonly methodName: string;
11
+ readonly service: typeof PassKeyGRPC;
12
+ readonly requestStream: false;
13
+ readonly responseStream: false;
14
+ readonly requestType: typeof auth_passkey_pb.PasskeyProto.GetCredentialsRequest;
15
+ readonly responseType: typeof auth_passkey_pb.PasskeyProto.CredentialCreateOptions;
16
+ };
17
+
18
+ type PassKeyGRPCCreateCredential = {
19
+ readonly methodName: string;
20
+ readonly service: typeof PassKeyGRPC;
21
+ readonly requestStream: false;
22
+ readonly responseStream: false;
23
+ readonly requestType: typeof auth_passkey_pb.PasskeyProto.CreateCredentialsRequest;
24
+ readonly responseType: typeof auth_passkey_pb.PasskeyProto;
25
+ };
26
+
27
+ type PassKeyGRPCGetAssertionOptions = {
28
+ readonly methodName: string;
29
+ readonly service: typeof PassKeyGRPC;
30
+ readonly requestStream: false;
31
+ readonly responseStream: false;
32
+ readonly requestType: typeof auth_passkey_pb.PasskeyProto.GetAssertionOptionsRequest;
33
+ readonly responseType: typeof auth_passkey_pb.PasskeyProto.AssertionOptions;
34
+ };
35
+
36
+ type PassKeyGRPCMakeAssertion = {
37
+ readonly methodName: string;
38
+ readonly service: typeof PassKeyGRPC;
39
+ readonly requestStream: false;
40
+ readonly responseStream: false;
41
+ readonly requestType: typeof auth_passkey_pb.PasskeyProto.MakeAssertionRequest;
42
+ readonly responseType: typeof auth_authn_pb.AuthnProto;
43
+ };
44
+
45
+ type PassKeyGRPCListCredentials = {
46
+ readonly methodName: string;
47
+ readonly service: typeof PassKeyGRPC;
48
+ readonly requestStream: false;
49
+ readonly responseStream: false;
50
+ readonly requestType: typeof google_protobuf_empty_pb.Empty;
51
+ readonly responseType: typeof auth_passkey_pb.PasskeyProto.ListCredentialsReply;
52
+ };
53
+
54
+ type PassKeyGRPCDeleteCredential = {
55
+ readonly methodName: string;
56
+ readonly service: typeof PassKeyGRPC;
57
+ readonly requestStream: false;
58
+ readonly responseStream: false;
59
+ readonly requestType: typeof auth_passkey_pb.PasskeyProto.DeleteCredentialRequest;
60
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
61
+ };
62
+
63
+ export class PassKeyGRPC {
64
+ static readonly serviceName: string;
65
+ static readonly GetCredentialsOptions: PassKeyGRPCGetCredentialsOptions;
66
+ static readonly CreateCredential: PassKeyGRPCCreateCredential;
67
+ static readonly GetAssertionOptions: PassKeyGRPCGetAssertionOptions;
68
+ static readonly MakeAssertion: PassKeyGRPCMakeAssertion;
69
+ static readonly ListCredentials: PassKeyGRPCListCredentials;
70
+ static readonly DeleteCredential: PassKeyGRPCDeleteCredential;
71
+ }
72
+
73
+ export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
74
+ export type Status = { details: string, code: number; metadata: grpc.Metadata }
75
+
76
+ interface UnaryResponse {
77
+ cancel(): void;
78
+ }
79
+ interface ResponseStream<T> {
80
+ cancel(): void;
81
+ on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
82
+ on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
83
+ on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
84
+ }
85
+ interface RequestStream<T> {
86
+ write(message: T): RequestStream<T>;
87
+ end(): void;
88
+ cancel(): void;
89
+ on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
90
+ on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
91
+ }
92
+ interface BidirectionalStream<ReqT, ResT> {
93
+ write(message: ReqT): BidirectionalStream<ReqT, ResT>;
94
+ end(): void;
95
+ cancel(): void;
96
+ on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
97
+ on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
98
+ on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
99
+ }
100
+
101
+ export class PassKeyGRPCClient {
102
+ readonly serviceHost: string;
103
+
104
+ constructor(serviceHost: string, options?: grpc.RpcOptions);
105
+ getCredentialsOptions(
106
+ requestMessage: auth_passkey_pb.PasskeyProto.GetCredentialsRequest,
107
+ metadata: grpc.Metadata,
108
+ callback: (error: ServiceError|null, responseMessage: auth_passkey_pb.PasskeyProto.CredentialCreateOptions|null) => void
109
+ ): UnaryResponse;
110
+ getCredentialsOptions(
111
+ requestMessage: auth_passkey_pb.PasskeyProto.GetCredentialsRequest,
112
+ callback: (error: ServiceError|null, responseMessage: auth_passkey_pb.PasskeyProto.CredentialCreateOptions|null) => void
113
+ ): UnaryResponse;
114
+ createCredential(
115
+ requestMessage: auth_passkey_pb.PasskeyProto.CreateCredentialsRequest,
116
+ metadata: grpc.Metadata,
117
+ callback: (error: ServiceError|null, responseMessage: auth_passkey_pb.PasskeyProto|null) => void
118
+ ): UnaryResponse;
119
+ createCredential(
120
+ requestMessage: auth_passkey_pb.PasskeyProto.CreateCredentialsRequest,
121
+ callback: (error: ServiceError|null, responseMessage: auth_passkey_pb.PasskeyProto|null) => void
122
+ ): UnaryResponse;
123
+ getAssertionOptions(
124
+ requestMessage: auth_passkey_pb.PasskeyProto.GetAssertionOptionsRequest,
125
+ metadata: grpc.Metadata,
126
+ callback: (error: ServiceError|null, responseMessage: auth_passkey_pb.PasskeyProto.AssertionOptions|null) => void
127
+ ): UnaryResponse;
128
+ getAssertionOptions(
129
+ requestMessage: auth_passkey_pb.PasskeyProto.GetAssertionOptionsRequest,
130
+ callback: (error: ServiceError|null, responseMessage: auth_passkey_pb.PasskeyProto.AssertionOptions|null) => void
131
+ ): UnaryResponse;
132
+ makeAssertion(
133
+ requestMessage: auth_passkey_pb.PasskeyProto.MakeAssertionRequest,
134
+ metadata: grpc.Metadata,
135
+ callback: (error: ServiceError|null, responseMessage: auth_authn_pb.AuthnProto|null) => void
136
+ ): UnaryResponse;
137
+ makeAssertion(
138
+ requestMessage: auth_passkey_pb.PasskeyProto.MakeAssertionRequest,
139
+ callback: (error: ServiceError|null, responseMessage: auth_authn_pb.AuthnProto|null) => void
140
+ ): UnaryResponse;
141
+ listCredentials(
142
+ requestMessage: google_protobuf_empty_pb.Empty,
143
+ metadata: grpc.Metadata,
144
+ callback: (error: ServiceError|null, responseMessage: auth_passkey_pb.PasskeyProto.ListCredentialsReply|null) => void
145
+ ): UnaryResponse;
146
+ listCredentials(
147
+ requestMessage: google_protobuf_empty_pb.Empty,
148
+ callback: (error: ServiceError|null, responseMessage: auth_passkey_pb.PasskeyProto.ListCredentialsReply|null) => void
149
+ ): UnaryResponse;
150
+ deleteCredential(
151
+ requestMessage: auth_passkey_pb.PasskeyProto.DeleteCredentialRequest,
152
+ metadata: grpc.Metadata,
153
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
154
+ ): UnaryResponse;
155
+ deleteCredential(
156
+ requestMessage: auth_passkey_pb.PasskeyProto.DeleteCredentialRequest,
157
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
158
+ ): UnaryResponse;
159
+ }
160
+
@@ -0,0 +1,263 @@
1
+ // package: Auth
2
+ // file: auth.passkey.proto
3
+
4
+ var auth_passkey_pb = require("./auth.passkey_pb");
5
+ var auth_authn_pb = require("./auth.authn_pb");
6
+ var google_protobuf_empty_pb = require("google-protobuf/google/protobuf/empty_pb");
7
+ var grpc = require("@improbable-eng/grpc-web").grpc;
8
+
9
+ var PassKeyGRPC = (function () {
10
+ function PassKeyGRPC() {}
11
+ PassKeyGRPC.serviceName = "Auth.PassKeyGRPC";
12
+ return PassKeyGRPC;
13
+ }());
14
+
15
+ PassKeyGRPC.GetCredentialsOptions = {
16
+ methodName: "GetCredentialsOptions",
17
+ service: PassKeyGRPC,
18
+ requestStream: false,
19
+ responseStream: false,
20
+ requestType: auth_passkey_pb.PasskeyProto.GetCredentialsRequest,
21
+ responseType: auth_passkey_pb.PasskeyProto.CredentialCreateOptions
22
+ };
23
+
24
+ PassKeyGRPC.CreateCredential = {
25
+ methodName: "CreateCredential",
26
+ service: PassKeyGRPC,
27
+ requestStream: false,
28
+ responseStream: false,
29
+ requestType: auth_passkey_pb.PasskeyProto.CreateCredentialsRequest,
30
+ responseType: auth_passkey_pb.PasskeyProto
31
+ };
32
+
33
+ PassKeyGRPC.GetAssertionOptions = {
34
+ methodName: "GetAssertionOptions",
35
+ service: PassKeyGRPC,
36
+ requestStream: false,
37
+ responseStream: false,
38
+ requestType: auth_passkey_pb.PasskeyProto.GetAssertionOptionsRequest,
39
+ responseType: auth_passkey_pb.PasskeyProto.AssertionOptions
40
+ };
41
+
42
+ PassKeyGRPC.MakeAssertion = {
43
+ methodName: "MakeAssertion",
44
+ service: PassKeyGRPC,
45
+ requestStream: false,
46
+ responseStream: false,
47
+ requestType: auth_passkey_pb.PasskeyProto.MakeAssertionRequest,
48
+ responseType: auth_authn_pb.AuthnProto
49
+ };
50
+
51
+ PassKeyGRPC.ListCredentials = {
52
+ methodName: "ListCredentials",
53
+ service: PassKeyGRPC,
54
+ requestStream: false,
55
+ responseStream: false,
56
+ requestType: google_protobuf_empty_pb.Empty,
57
+ responseType: auth_passkey_pb.PasskeyProto.ListCredentialsReply
58
+ };
59
+
60
+ PassKeyGRPC.DeleteCredential = {
61
+ methodName: "DeleteCredential",
62
+ service: PassKeyGRPC,
63
+ requestStream: false,
64
+ responseStream: false,
65
+ requestType: auth_passkey_pb.PasskeyProto.DeleteCredentialRequest,
66
+ responseType: google_protobuf_empty_pb.Empty
67
+ };
68
+
69
+ exports.PassKeyGRPC = PassKeyGRPC;
70
+
71
+ function PassKeyGRPCClient(serviceHost, options) {
72
+ this.serviceHost = serviceHost;
73
+ this.options = options || {};
74
+ }
75
+
76
+ PassKeyGRPCClient.prototype.getCredentialsOptions = function getCredentialsOptions(requestMessage, metadata, callback) {
77
+ if (arguments.length === 2) {
78
+ callback = arguments[1];
79
+ }
80
+ var client = grpc.unary(PassKeyGRPC.GetCredentialsOptions, {
81
+ request: requestMessage,
82
+ host: this.serviceHost,
83
+ metadata: metadata,
84
+ transport: this.options.transport,
85
+ debug: this.options.debug,
86
+ onEnd: function (response) {
87
+ if (callback) {
88
+ if (response.status !== grpc.Code.OK) {
89
+ var err = new Error(response.statusMessage);
90
+ err.code = response.status;
91
+ err.metadata = response.trailers;
92
+ callback(err, null);
93
+ } else {
94
+ callback(null, response.message);
95
+ }
96
+ }
97
+ }
98
+ });
99
+ return {
100
+ cancel: function () {
101
+ callback = null;
102
+ client.close();
103
+ }
104
+ };
105
+ };
106
+
107
+ PassKeyGRPCClient.prototype.createCredential = function createCredential(requestMessage, metadata, callback) {
108
+ if (arguments.length === 2) {
109
+ callback = arguments[1];
110
+ }
111
+ var client = grpc.unary(PassKeyGRPC.CreateCredential, {
112
+ request: requestMessage,
113
+ host: this.serviceHost,
114
+ metadata: metadata,
115
+ transport: this.options.transport,
116
+ debug: this.options.debug,
117
+ onEnd: function (response) {
118
+ if (callback) {
119
+ if (response.status !== grpc.Code.OK) {
120
+ var err = new Error(response.statusMessage);
121
+ err.code = response.status;
122
+ err.metadata = response.trailers;
123
+ callback(err, null);
124
+ } else {
125
+ callback(null, response.message);
126
+ }
127
+ }
128
+ }
129
+ });
130
+ return {
131
+ cancel: function () {
132
+ callback = null;
133
+ client.close();
134
+ }
135
+ };
136
+ };
137
+
138
+ PassKeyGRPCClient.prototype.getAssertionOptions = function getAssertionOptions(requestMessage, metadata, callback) {
139
+ if (arguments.length === 2) {
140
+ callback = arguments[1];
141
+ }
142
+ var client = grpc.unary(PassKeyGRPC.GetAssertionOptions, {
143
+ request: requestMessage,
144
+ host: this.serviceHost,
145
+ metadata: metadata,
146
+ transport: this.options.transport,
147
+ debug: this.options.debug,
148
+ onEnd: function (response) {
149
+ if (callback) {
150
+ if (response.status !== grpc.Code.OK) {
151
+ var err = new Error(response.statusMessage);
152
+ err.code = response.status;
153
+ err.metadata = response.trailers;
154
+ callback(err, null);
155
+ } else {
156
+ callback(null, response.message);
157
+ }
158
+ }
159
+ }
160
+ });
161
+ return {
162
+ cancel: function () {
163
+ callback = null;
164
+ client.close();
165
+ }
166
+ };
167
+ };
168
+
169
+ PassKeyGRPCClient.prototype.makeAssertion = function makeAssertion(requestMessage, metadata, callback) {
170
+ if (arguments.length === 2) {
171
+ callback = arguments[1];
172
+ }
173
+ var client = grpc.unary(PassKeyGRPC.MakeAssertion, {
174
+ request: requestMessage,
175
+ host: this.serviceHost,
176
+ metadata: metadata,
177
+ transport: this.options.transport,
178
+ debug: this.options.debug,
179
+ onEnd: function (response) {
180
+ if (callback) {
181
+ if (response.status !== grpc.Code.OK) {
182
+ var err = new Error(response.statusMessage);
183
+ err.code = response.status;
184
+ err.metadata = response.trailers;
185
+ callback(err, null);
186
+ } else {
187
+ callback(null, response.message);
188
+ }
189
+ }
190
+ }
191
+ });
192
+ return {
193
+ cancel: function () {
194
+ callback = null;
195
+ client.close();
196
+ }
197
+ };
198
+ };
199
+
200
+ PassKeyGRPCClient.prototype.listCredentials = function listCredentials(requestMessage, metadata, callback) {
201
+ if (arguments.length === 2) {
202
+ callback = arguments[1];
203
+ }
204
+ var client = grpc.unary(PassKeyGRPC.ListCredentials, {
205
+ request: requestMessage,
206
+ host: this.serviceHost,
207
+ metadata: metadata,
208
+ transport: this.options.transport,
209
+ debug: this.options.debug,
210
+ onEnd: function (response) {
211
+ if (callback) {
212
+ if (response.status !== grpc.Code.OK) {
213
+ var err = new Error(response.statusMessage);
214
+ err.code = response.status;
215
+ err.metadata = response.trailers;
216
+ callback(err, null);
217
+ } else {
218
+ callback(null, response.message);
219
+ }
220
+ }
221
+ }
222
+ });
223
+ return {
224
+ cancel: function () {
225
+ callback = null;
226
+ client.close();
227
+ }
228
+ };
229
+ };
230
+
231
+ PassKeyGRPCClient.prototype.deleteCredential = function deleteCredential(requestMessage, metadata, callback) {
232
+ if (arguments.length === 2) {
233
+ callback = arguments[1];
234
+ }
235
+ var client = grpc.unary(PassKeyGRPC.DeleteCredential, {
236
+ request: requestMessage,
237
+ host: this.serviceHost,
238
+ metadata: metadata,
239
+ transport: this.options.transport,
240
+ debug: this.options.debug,
241
+ onEnd: function (response) {
242
+ if (callback) {
243
+ if (response.status !== grpc.Code.OK) {
244
+ var err = new Error(response.statusMessage);
245
+ err.code = response.status;
246
+ err.metadata = response.trailers;
247
+ callback(err, null);
248
+ } else {
249
+ callback(null, response.message);
250
+ }
251
+ }
252
+ }
253
+ });
254
+ return {
255
+ cancel: function () {
256
+ callback = null;
257
+ client.close();
258
+ }
259
+ };
260
+ };
261
+
262
+ exports.PassKeyGRPCClient = PassKeyGRPCClient;
263
+
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "grpc-web": "^1.4.2",
6
6
  "ts-protoc-gen": "^0.15.0"
7
7
  },
8
- "version": "3.7.0-alpha.4",
8
+ "version": "3.7.0-alpha.6",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -270,6 +270,26 @@ export namespace LocalAccountProto {
270
270
  }
271
271
  }
272
272
 
273
+ export class DeleteRequest extends jspb.Message {
274
+ getId(): number;
275
+ setId(value: number): void;
276
+
277
+ serializeBinary(): Uint8Array;
278
+ toObject(includeInstance?: boolean): DeleteRequest.AsObject;
279
+ static toObject(includeInstance: boolean, msg: DeleteRequest): DeleteRequest.AsObject;
280
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
281
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
282
+ static serializeBinaryToWriter(message: DeleteRequest, writer: jspb.BinaryWriter): void;
283
+ static deserializeBinary(bytes: Uint8Array): DeleteRequest;
284
+ static deserializeBinaryFromReader(message: DeleteRequest, reader: jspb.BinaryReader): DeleteRequest;
285
+ }
286
+
287
+ export namespace DeleteRequest {
288
+ export type AsObject = {
289
+ id: number,
290
+ }
291
+ }
292
+
273
293
  export class SearchRequest extends jspb.Message {
274
294
  getSearch(): string;
275
295
  setSearch(value: string): void;
@@ -35,6 +35,7 @@ goog.exportSymbol('proto.Platform.LocalAccountProto', null, global);
35
35
  goog.exportSymbol('proto.Platform.LocalAccountProto.AccountTypes', null, global);
36
36
  goog.exportSymbol('proto.Platform.LocalAccountProto.CreateAdminRequest', null, global);
37
37
  goog.exportSymbol('proto.Platform.LocalAccountProto.CreateAppRequest', null, global);
38
+ goog.exportSymbol('proto.Platform.LocalAccountProto.DeleteRequest', null, global);
38
39
  goog.exportSymbol('proto.Platform.LocalAccountProto.DisableAccount', null, global);
39
40
  goog.exportSymbol('proto.Platform.LocalAccountProto.EnableAccount', null, global);
40
41
  goog.exportSymbol('proto.Platform.LocalAccountProto.ResendInvitationRequest', null, global);
@@ -150,6 +151,27 @@ if (goog.DEBUG && !COMPILED) {
150
151
  */
151
152
  proto.Platform.LocalAccountProto.UpdateRequest.displayName = 'proto.Platform.LocalAccountProto.UpdateRequest';
152
153
  }
154
+ /**
155
+ * Generated by JsPbCodeGenerator.
156
+ * @param {Array=} opt_data Optional initial data array, typically from a
157
+ * server response, or constructed directly in Javascript. The array is used
158
+ * in place and becomes part of the constructed object. It is not cloned.
159
+ * If no data is provided, the constructed object will be empty, but still
160
+ * valid.
161
+ * @extends {jspb.Message}
162
+ * @constructor
163
+ */
164
+ proto.Platform.LocalAccountProto.DeleteRequest = function(opt_data) {
165
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
166
+ };
167
+ goog.inherits(proto.Platform.LocalAccountProto.DeleteRequest, jspb.Message);
168
+ if (goog.DEBUG && !COMPILED) {
169
+ /**
170
+ * @public
171
+ * @override
172
+ */
173
+ proto.Platform.LocalAccountProto.DeleteRequest.displayName = 'proto.Platform.LocalAccountProto.DeleteRequest';
174
+ }
153
175
  /**
154
176
  * Generated by JsPbCodeGenerator.
155
177
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1879,6 +1901,136 @@ proto.Platform.LocalAccountProto.UpdateRequest.prototype.clearClientRolesList =
1879
1901
 
1880
1902
 
1881
1903
 
1904
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1905
+ /**
1906
+ * Creates an object representation of this proto.
1907
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1908
+ * Optional fields that are not set will be set to undefined.
1909
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1910
+ * For the list of reserved names please see:
1911
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1912
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1913
+ * JSPB instance for transitional soy proto support:
1914
+ * http://goto/soy-param-migration
1915
+ * @return {!Object}
1916
+ */
1917
+ proto.Platform.LocalAccountProto.DeleteRequest.prototype.toObject = function(opt_includeInstance) {
1918
+ return proto.Platform.LocalAccountProto.DeleteRequest.toObject(opt_includeInstance, this);
1919
+ };
1920
+
1921
+
1922
+ /**
1923
+ * Static version of the {@see toObject} method.
1924
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1925
+ * the JSPB instance for transitional soy proto support:
1926
+ * http://goto/soy-param-migration
1927
+ * @param {!proto.Platform.LocalAccountProto.DeleteRequest} msg The msg instance to transform.
1928
+ * @return {!Object}
1929
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1930
+ */
1931
+ proto.Platform.LocalAccountProto.DeleteRequest.toObject = function(includeInstance, msg) {
1932
+ var f, obj = {
1933
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1934
+ };
1935
+
1936
+ if (includeInstance) {
1937
+ obj.$jspbMessageInstance = msg;
1938
+ }
1939
+ return obj;
1940
+ };
1941
+ }
1942
+
1943
+
1944
+ /**
1945
+ * Deserializes binary data (in protobuf wire format).
1946
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1947
+ * @return {!proto.Platform.LocalAccountProto.DeleteRequest}
1948
+ */
1949
+ proto.Platform.LocalAccountProto.DeleteRequest.deserializeBinary = function(bytes) {
1950
+ var reader = new jspb.BinaryReader(bytes);
1951
+ var msg = new proto.Platform.LocalAccountProto.DeleteRequest;
1952
+ return proto.Platform.LocalAccountProto.DeleteRequest.deserializeBinaryFromReader(msg, reader);
1953
+ };
1954
+
1955
+
1956
+ /**
1957
+ * Deserializes binary data (in protobuf wire format) from the
1958
+ * given reader into the given message object.
1959
+ * @param {!proto.Platform.LocalAccountProto.DeleteRequest} msg The message object to deserialize into.
1960
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1961
+ * @return {!proto.Platform.LocalAccountProto.DeleteRequest}
1962
+ */
1963
+ proto.Platform.LocalAccountProto.DeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
1964
+ while (reader.nextField()) {
1965
+ if (reader.isEndGroup()) {
1966
+ break;
1967
+ }
1968
+ var field = reader.getFieldNumber();
1969
+ switch (field) {
1970
+ case 1:
1971
+ var value = /** @type {number} */ (reader.readInt64());
1972
+ msg.setId(value);
1973
+ break;
1974
+ default:
1975
+ reader.skipField();
1976
+ break;
1977
+ }
1978
+ }
1979
+ return msg;
1980
+ };
1981
+
1982
+
1983
+ /**
1984
+ * Serializes the message to binary data (in protobuf wire format).
1985
+ * @return {!Uint8Array}
1986
+ */
1987
+ proto.Platform.LocalAccountProto.DeleteRequest.prototype.serializeBinary = function() {
1988
+ var writer = new jspb.BinaryWriter();
1989
+ proto.Platform.LocalAccountProto.DeleteRequest.serializeBinaryToWriter(this, writer);
1990
+ return writer.getResultBuffer();
1991
+ };
1992
+
1993
+
1994
+ /**
1995
+ * Serializes the given message to binary data (in protobuf wire
1996
+ * format), writing to the given BinaryWriter.
1997
+ * @param {!proto.Platform.LocalAccountProto.DeleteRequest} message
1998
+ * @param {!jspb.BinaryWriter} writer
1999
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2000
+ */
2001
+ proto.Platform.LocalAccountProto.DeleteRequest.serializeBinaryToWriter = function(message, writer) {
2002
+ var f = undefined;
2003
+ f = message.getId();
2004
+ if (f !== 0) {
2005
+ writer.writeInt64(
2006
+ 1,
2007
+ f
2008
+ );
2009
+ }
2010
+ };
2011
+
2012
+
2013
+ /**
2014
+ * optional int64 id = 1;
2015
+ * @return {number}
2016
+ */
2017
+ proto.Platform.LocalAccountProto.DeleteRequest.prototype.getId = function() {
2018
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2019
+ };
2020
+
2021
+
2022
+ /**
2023
+ * @param {number} value
2024
+ * @return {!proto.Platform.LocalAccountProto.DeleteRequest} returns this
2025
+ */
2026
+ proto.Platform.LocalAccountProto.DeleteRequest.prototype.setId = function(value) {
2027
+ return jspb.Message.setProto3IntField(this, 1, value);
2028
+ };
2029
+
2030
+
2031
+
2032
+
2033
+
1882
2034
  if (jspb.Message.GENERATE_TO_OBJECT) {
1883
2035
  /**
1884
2036
  * Creates an object representation of this proto.
@@ -47,8 +47,8 @@ type LocalAccountGRPCDelete = {
47
47
  readonly service: typeof LocalAccountGRPC;
48
48
  readonly requestStream: false;
49
49
  readonly responseStream: false;
50
- readonly requestType: typeof auth_account_pb.AccountProto.DeleteRequest;
51
- readonly responseType: typeof auth_account_pb.AccountProto.DeleteReply;
50
+ readonly requestType: typeof platform_local_account_pb.LocalAccountProto.DeleteRequest;
51
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
52
52
  };
53
53
 
54
54
  type LocalAccountGRPCSearchAdmin = {
@@ -229,13 +229,13 @@ export class LocalAccountGRPCClient {
229
229
  callback: (error: ServiceError|null, responseMessage: platform_local_account_pb.LocalAccountProto|null) => void
230
230
  ): UnaryResponse;
231
231
  delete(
232
- requestMessage: auth_account_pb.AccountProto.DeleteRequest,
232
+ requestMessage: platform_local_account_pb.LocalAccountProto.DeleteRequest,
233
233
  metadata: grpc.Metadata,
234
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.DeleteReply|null) => void
234
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
235
235
  ): UnaryResponse;
236
236
  delete(
237
- requestMessage: auth_account_pb.AccountProto.DeleteRequest,
238
- callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.DeleteReply|null) => void
237
+ requestMessage: platform_local_account_pb.LocalAccountProto.DeleteRequest,
238
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
239
239
  ): UnaryResponse;
240
240
  searchAdmin(
241
241
  requestMessage: platform_local_account_pb.LocalAccountProto.SearchRequest,
@@ -53,8 +53,8 @@ LocalAccountGRPC.Delete = {
53
53
  service: LocalAccountGRPC,
54
54
  requestStream: false,
55
55
  responseStream: false,
56
- requestType: auth_account_pb.AccountProto.DeleteRequest,
57
- responseType: auth_account_pb.AccountProto.DeleteReply
56
+ requestType: platform_local_account_pb.LocalAccountProto.DeleteRequest,
57
+ responseType: google_protobuf_empty_pb.Empty
58
58
  };
59
59
 
60
60
  LocalAccountGRPC.SearchAdmin = {