Skip to content

Commit

Permalink
update daemon-js protos
Browse files Browse the repository at this point in the history
  • Loading branch information
sualehasif committed Jun 28, 2022
1 parent 5b4538c commit be4c41f
Show file tree
Hide file tree
Showing 4 changed files with 552 additions and 441 deletions.
20 changes: 10 additions & 10 deletions gui/src/daemon/schema/daemon_grpc_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import * as grpc from "@grpc/grpc-js";
interface IDaemonService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
registerUser: grpc.MethodDefinition<schema_daemon_pb.RegisterUserRequest, schema_daemon_pb.RegisterUserResponse>;
getFriendList: grpc.MethodDefinition<schema_daemon_pb.GetFriendListRequest, schema_daemon_pb.GetFriendListResponse>;
getPublicID: grpc.MethodDefinition<schema_daemon_pb.GetPublicIDRequest, schema_daemon_pb.GetPublicIDResponse>;
getMyPublicID: grpc.MethodDefinition<schema_daemon_pb.GetMyPublicIDRequest, schema_daemon_pb.GetMyPublicIDResponse>;
addSyncFriend: grpc.MethodDefinition<schema_daemon_pb.AddSyncFriendRequest, schema_daemon_pb.AddSyncFriendResponse>;
sendAsyncFriendRequest: grpc.MethodDefinition<schema_daemon_pb.SendAsyncFriendRequestRequest, schema_daemon_pb.SendAsyncFriendRequestResponse>;
addAsyncFriend: grpc.MethodDefinition<schema_daemon_pb.AddAsyncFriendRequest, schema_daemon_pb.AddAsyncFriendResponse>;
getOutgoingFriendRequests: grpc.MethodDefinition<schema_daemon_pb.GetOutgoingFriendRequestsRequest, schema_daemon_pb.GetOutgoingFriendRequestsResponse>;
getIncomingAsyncFriendRequests: grpc.MethodDefinition<schema_daemon_pb.GetIncomingAsyncFriendRequestsRequest, schema_daemon_pb.GetIncomingAsyncFriendRequestsResponse>;
decideAsyncFriendRequest: grpc.MethodDefinition<schema_daemon_pb.DecideAsyncFriendRequestRequest, schema_daemon_pb.DecideAsyncFriendRequestResponse>;
Expand All @@ -35,9 +35,9 @@ export const DaemonService: IDaemonService;
export interface IDaemonServer extends grpc.UntypedServiceImplementation {
registerUser: grpc.handleUnaryCall<schema_daemon_pb.RegisterUserRequest, schema_daemon_pb.RegisterUserResponse>;
getFriendList: grpc.handleUnaryCall<schema_daemon_pb.GetFriendListRequest, schema_daemon_pb.GetFriendListResponse>;
getPublicID: grpc.handleUnaryCall<schema_daemon_pb.GetPublicIDRequest, schema_daemon_pb.GetPublicIDResponse>;
getMyPublicID: grpc.handleUnaryCall<schema_daemon_pb.GetMyPublicIDRequest, schema_daemon_pb.GetMyPublicIDResponse>;
addSyncFriend: grpc.handleUnaryCall<schema_daemon_pb.AddSyncFriendRequest, schema_daemon_pb.AddSyncFriendResponse>;
sendAsyncFriendRequest: grpc.handleUnaryCall<schema_daemon_pb.SendAsyncFriendRequestRequest, schema_daemon_pb.SendAsyncFriendRequestResponse>;
addAsyncFriend: grpc.handleUnaryCall<schema_daemon_pb.AddAsyncFriendRequest, schema_daemon_pb.AddAsyncFriendResponse>;
getOutgoingFriendRequests: grpc.handleUnaryCall<schema_daemon_pb.GetOutgoingFriendRequestsRequest, schema_daemon_pb.GetOutgoingFriendRequestsResponse>;
getIncomingAsyncFriendRequests: grpc.handleUnaryCall<schema_daemon_pb.GetIncomingAsyncFriendRequestsRequest, schema_daemon_pb.GetIncomingAsyncFriendRequestsResponse>;
decideAsyncFriendRequest: grpc.handleUnaryCall<schema_daemon_pb.DecideAsyncFriendRequestRequest, schema_daemon_pb.DecideAsyncFriendRequestResponse>;
Expand All @@ -62,15 +62,15 @@ export class DaemonClient extends grpc.Client {
getFriendList(argument: schema_daemon_pb.GetFriendListRequest, callback: grpc.requestCallback<schema_daemon_pb.GetFriendListResponse>): grpc.ClientUnaryCall;
getFriendList(argument: schema_daemon_pb.GetFriendListRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<schema_daemon_pb.GetFriendListResponse>): grpc.ClientUnaryCall;
getFriendList(argument: schema_daemon_pb.GetFriendListRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<schema_daemon_pb.GetFriendListResponse>): grpc.ClientUnaryCall;
getPublicID(argument: schema_daemon_pb.GetPublicIDRequest, callback: grpc.requestCallback<schema_daemon_pb.GetPublicIDResponse>): grpc.ClientUnaryCall;
getPublicID(argument: schema_daemon_pb.GetPublicIDRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<schema_daemon_pb.GetPublicIDResponse>): grpc.ClientUnaryCall;
getPublicID(argument: schema_daemon_pb.GetPublicIDRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<schema_daemon_pb.GetPublicIDResponse>): grpc.ClientUnaryCall;
getMyPublicID(argument: schema_daemon_pb.GetMyPublicIDRequest, callback: grpc.requestCallback<schema_daemon_pb.GetMyPublicIDResponse>): grpc.ClientUnaryCall;
getMyPublicID(argument: schema_daemon_pb.GetMyPublicIDRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<schema_daemon_pb.GetMyPublicIDResponse>): grpc.ClientUnaryCall;
getMyPublicID(argument: schema_daemon_pb.GetMyPublicIDRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<schema_daemon_pb.GetMyPublicIDResponse>): grpc.ClientUnaryCall;
addSyncFriend(argument: schema_daemon_pb.AddSyncFriendRequest, callback: grpc.requestCallback<schema_daemon_pb.AddSyncFriendResponse>): grpc.ClientUnaryCall;
addSyncFriend(argument: schema_daemon_pb.AddSyncFriendRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<schema_daemon_pb.AddSyncFriendResponse>): grpc.ClientUnaryCall;
addSyncFriend(argument: schema_daemon_pb.AddSyncFriendRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<schema_daemon_pb.AddSyncFriendResponse>): grpc.ClientUnaryCall;
sendAsyncFriendRequest(argument: schema_daemon_pb.SendAsyncFriendRequestRequest, callback: grpc.requestCallback<schema_daemon_pb.SendAsyncFriendRequestResponse>): grpc.ClientUnaryCall;
sendAsyncFriendRequest(argument: schema_daemon_pb.SendAsyncFriendRequestRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<schema_daemon_pb.SendAsyncFriendRequestResponse>): grpc.ClientUnaryCall;
sendAsyncFriendRequest(argument: schema_daemon_pb.SendAsyncFriendRequestRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<schema_daemon_pb.SendAsyncFriendRequestResponse>): grpc.ClientUnaryCall;
addAsyncFriend(argument: schema_daemon_pb.AddAsyncFriendRequest, callback: grpc.requestCallback<schema_daemon_pb.AddAsyncFriendResponse>): grpc.ClientUnaryCall;
addAsyncFriend(argument: schema_daemon_pb.AddAsyncFriendRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<schema_daemon_pb.AddAsyncFriendResponse>): grpc.ClientUnaryCall;
addAsyncFriend(argument: schema_daemon_pb.AddAsyncFriendRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<schema_daemon_pb.AddAsyncFriendResponse>): grpc.ClientUnaryCall;
getOutgoingFriendRequests(argument: schema_daemon_pb.GetOutgoingFriendRequestsRequest, callback: grpc.requestCallback<schema_daemon_pb.GetOutgoingFriendRequestsResponse>): grpc.ClientUnaryCall;
getOutgoingFriendRequests(argument: schema_daemon_pb.GetOutgoingFriendRequestsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<schema_daemon_pb.GetOutgoingFriendRequestsResponse>): grpc.ClientUnaryCall;
getOutgoingFriendRequests(argument: schema_daemon_pb.GetOutgoingFriendRequestsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<schema_daemon_pb.GetOutgoingFriendRequestsResponse>): grpc.ClientUnaryCall;
Expand Down
120 changes: 60 additions & 60 deletions gui/src/daemon/schema/daemon_grpc_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,28 @@ var grpc = require('@grpc/grpc-js');
var schema_daemon_pb = require('../schema/daemon_pb.js');
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');

function serialize_asphrdaemon_AddAsyncFriendRequest(arg) {
if (!(arg instanceof schema_daemon_pb.AddAsyncFriendRequest)) {
throw new Error('Expected argument of type asphrdaemon.AddAsyncFriendRequest');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_asphrdaemon_AddAsyncFriendRequest(buffer_arg) {
return schema_daemon_pb.AddAsyncFriendRequest.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_asphrdaemon_AddAsyncFriendResponse(arg) {
if (!(arg instanceof schema_daemon_pb.AddAsyncFriendResponse)) {
throw new Error('Expected argument of type asphrdaemon.AddAsyncFriendResponse');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_asphrdaemon_AddAsyncFriendResponse(buffer_arg) {
return schema_daemon_pb.AddAsyncFriendResponse.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_asphrdaemon_AddSyncFriendRequest(arg) {
if (!(arg instanceof schema_daemon_pb.AddSyncFriendRequest)) {
throw new Error('Expected argument of type asphrdaemon.AddSyncFriendRequest');
Expand Down Expand Up @@ -161,6 +183,28 @@ function deserialize_asphrdaemon_GetMessagesResponse(buffer_arg) {
return schema_daemon_pb.GetMessagesResponse.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_asphrdaemon_GetMyPublicIDRequest(arg) {
if (!(arg instanceof schema_daemon_pb.GetMyPublicIDRequest)) {
throw new Error('Expected argument of type asphrdaemon.GetMyPublicIDRequest');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_asphrdaemon_GetMyPublicIDRequest(buffer_arg) {
return schema_daemon_pb.GetMyPublicIDRequest.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_asphrdaemon_GetMyPublicIDResponse(arg) {
if (!(arg instanceof schema_daemon_pb.GetMyPublicIDResponse)) {
throw new Error('Expected argument of type asphrdaemon.GetMyPublicIDResponse');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_asphrdaemon_GetMyPublicIDResponse(buffer_arg) {
return schema_daemon_pb.GetMyPublicIDResponse.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_asphrdaemon_GetOutboxMessagesRequest(arg) {
if (!(arg instanceof schema_daemon_pb.GetOutboxMessagesRequest)) {
throw new Error('Expected argument of type asphrdaemon.GetOutboxMessagesRequest');
Expand Down Expand Up @@ -205,28 +249,6 @@ function deserialize_asphrdaemon_GetOutgoingFriendRequestsResponse(buffer_arg) {
return schema_daemon_pb.GetOutgoingFriendRequestsResponse.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_asphrdaemon_GetPublicIDRequest(arg) {
if (!(arg instanceof schema_daemon_pb.GetPublicIDRequest)) {
throw new Error('Expected argument of type asphrdaemon.GetPublicIDRequest');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_asphrdaemon_GetPublicIDRequest(buffer_arg) {
return schema_daemon_pb.GetPublicIDRequest.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_asphrdaemon_GetPublicIDResponse(arg) {
if (!(arg instanceof schema_daemon_pb.GetPublicIDResponse)) {
throw new Error('Expected argument of type asphrdaemon.GetPublicIDResponse');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_asphrdaemon_GetPublicIDResponse(buffer_arg) {
return schema_daemon_pb.GetPublicIDResponse.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_asphrdaemon_GetSentMessagesRequest(arg) {
if (!(arg instanceof schema_daemon_pb.GetSentMessagesRequest)) {
throw new Error('Expected argument of type asphrdaemon.GetSentMessagesRequest');
Expand Down Expand Up @@ -359,28 +381,6 @@ function deserialize_asphrdaemon_RemoveFriendResponse(buffer_arg) {
return schema_daemon_pb.RemoveFriendResponse.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_asphrdaemon_SendAsyncFriendRequestRequest(arg) {
if (!(arg instanceof schema_daemon_pb.SendAsyncFriendRequestRequest)) {
throw new Error('Expected argument of type asphrdaemon.SendAsyncFriendRequestRequest');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_asphrdaemon_SendAsyncFriendRequestRequest(buffer_arg) {
return schema_daemon_pb.SendAsyncFriendRequestRequest.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_asphrdaemon_SendAsyncFriendRequestResponse(arg) {
if (!(arg instanceof schema_daemon_pb.SendAsyncFriendRequestResponse)) {
throw new Error('Expected argument of type asphrdaemon.SendAsyncFriendRequestResponse');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_asphrdaemon_SendAsyncFriendRequestResponse(buffer_arg) {
return schema_daemon_pb.SendAsyncFriendRequestResponse.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_asphrdaemon_SendMessageRequest(arg) {
if (!(arg instanceof schema_daemon_pb.SendMessageRequest)) {
throw new Error('Expected argument of type asphrdaemon.SendMessageRequest');
Expand Down Expand Up @@ -427,16 +427,16 @@ var DaemonService = exports.DaemonService = {
responseSerialize: serialize_asphrdaemon_GetFriendListResponse,
responseDeserialize: deserialize_asphrdaemon_GetFriendListResponse,
},
getPublicID: {
path: '/asphrdaemon.Daemon/GetPublicID',
getMyPublicID: {
path: '/asphrdaemon.Daemon/GetMyPublicID',
requestStream: false,
responseStream: false,
requestType: schema_daemon_pb.GetPublicIDRequest,
responseType: schema_daemon_pb.GetPublicIDResponse,
requestSerialize: serialize_asphrdaemon_GetPublicIDRequest,
requestDeserialize: deserialize_asphrdaemon_GetPublicIDRequest,
responseSerialize: serialize_asphrdaemon_GetPublicIDResponse,
responseDeserialize: deserialize_asphrdaemon_GetPublicIDResponse,
requestType: schema_daemon_pb.GetMyPublicIDRequest,
responseType: schema_daemon_pb.GetMyPublicIDResponse,
requestSerialize: serialize_asphrdaemon_GetMyPublicIDRequest,
requestDeserialize: deserialize_asphrdaemon_GetMyPublicIDRequest,
responseSerialize: serialize_asphrdaemon_GetMyPublicIDResponse,
responseDeserialize: deserialize_asphrdaemon_GetMyPublicIDResponse,
},
addSyncFriend: {
path: '/asphrdaemon.Daemon/AddSyncFriend',
Expand All @@ -449,16 +449,16 @@ var DaemonService = exports.DaemonService = {
responseSerialize: serialize_asphrdaemon_AddSyncFriendResponse,
responseDeserialize: deserialize_asphrdaemon_AddSyncFriendResponse,
},
sendAsyncFriendRequest: {
path: '/asphrdaemon.Daemon/SendAsyncFriendRequest',
addAsyncFriend: {
path: '/asphrdaemon.Daemon/AddAsyncFriend',
requestStream: false,
responseStream: false,
requestType: schema_daemon_pb.SendAsyncFriendRequestRequest,
responseType: schema_daemon_pb.SendAsyncFriendRequestResponse,
requestSerialize: serialize_asphrdaemon_SendAsyncFriendRequestRequest,
requestDeserialize: deserialize_asphrdaemon_SendAsyncFriendRequestRequest,
responseSerialize: serialize_asphrdaemon_SendAsyncFriendRequestResponse,
responseDeserialize: deserialize_asphrdaemon_SendAsyncFriendRequestResponse,
requestType: schema_daemon_pb.AddAsyncFriendRequest,
responseType: schema_daemon_pb.AddAsyncFriendResponse,
requestSerialize: serialize_asphrdaemon_AddAsyncFriendRequest,
requestDeserialize: deserialize_asphrdaemon_AddAsyncFriendRequest,
responseSerialize: serialize_asphrdaemon_AddAsyncFriendResponse,
responseDeserialize: deserialize_asphrdaemon_AddAsyncFriendResponse,
},
getOutgoingFriendRequests: {
path: '/asphrdaemon.Daemon/GetOutgoingFriendRequests',
Expand Down
Loading

0 comments on commit be4c41f

Please sign in to comment.