Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@etherean/etherean-grpc

Package Overview
Dependencies
Maintainers
0
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@etherean/etherean-grpc - npm Package Compare versions

Comparing version 1.6.5 to 1.7.0

11

dist/cjs/user_service.client.d.ts
import { RpcOptions, UnaryCall, ServiceInfo, RpcTransport } from '@protobuf-ts/runtime-rpc';
import { RegisterRequest, UserIdAndLink, AddWalletRequest, AddEmailRequest, AddUsernameRequest, GetUserLinkResponse, GetUserIdAndLinkV2Request, GetUsersCountResponse, GetWalletsRequest, GetWalletsResponse, TgRegisterRequest, XRegisterRequest, GetHumanReadableIdentifiersRequest, GetHumanReadableIdentifiersResponse, CheckTgPartnerUserRequest, CheckTgPartnerUserResponse, GetUserIdsRequest, GetUserIdsResponse } from './user_service.js';
import { RegisterRequest, UserIdAndLink, AddWalletRequest, AddEmailRequest, AddUsernameRequest, GetUserLinkResponse, GetUserIdAndLinkV2Request, GetUsersCountResponse, GetWalletsRequest, GetWalletsResponse, TgRegisterRequest, XRegisterRequest, GetHumanReadableIdentifiersRequest, GetHumanReadableIdentifiersResponse, CheckTgPartnerUserRequest, CheckTgPartnerUserResponse, GetUsersByTgIdsRequest, GetUsersByTgIdsResponse } from './user_service.js';
import { Address } from './user_wallet.js';

@@ -9,2 +9,3 @@ import { UserId } from './client_id.js';

import './username.js';
import './google/protobuf/timestamp.js';
import './tg_id.js';

@@ -104,5 +105,5 @@ import './web3_auth_data.js';

/**
* @generated from protobuf rpc: GetUserIds(etherean.user_service.GetUserIdsRequest) returns (etherean.user_service.GetUserIdsResponse);
* @generated from protobuf rpc: GetUsersByTgIds(etherean.user_service.GetUsersByTgIdsRequest) returns (etherean.user_service.GetUsersByTgIdsResponse);
*/
getUserIds(input: GetUserIdsRequest, options?: RpcOptions): UnaryCall<GetUserIdsRequest, GetUserIdsResponse>;
getUsersByTgIds(input: GetUsersByTgIdsRequest, options?: RpcOptions): UnaryCall<GetUsersByTgIdsRequest, GetUsersByTgIdsResponse>;
}

@@ -201,7 +202,7 @@ /**

/**
* @generated from protobuf rpc: GetUserIds(etherean.user_service.GetUserIdsRequest) returns (etherean.user_service.GetUserIdsResponse);
* @generated from protobuf rpc: GetUsersByTgIds(etherean.user_service.GetUsersByTgIdsRequest) returns (etherean.user_service.GetUsersByTgIdsResponse);
*/
getUserIds(input: GetUserIdsRequest, options?: RpcOptions): UnaryCall<GetUserIdsRequest, GetUserIdsResponse>;
getUsersByTgIds(input: GetUsersByTgIdsRequest, options?: RpcOptions): UnaryCall<GetUsersByTgIdsRequest, GetUsersByTgIdsResponse>;
}
export { type IUserServiceClient, UserServiceClient };

@@ -5,2 +5,3 @@ import { MessageType } from '@protobuf-ts/runtime';

import { Username } from './username.js';
import { Timestamp } from './google/protobuf/timestamp.js';
import { UserId } from './client_id.js';

@@ -14,9 +15,9 @@ import { TgId } from './tg_id.js';

declare class GetUserIdsRequest$Type extends MessageType<GetUserIdsRequest> {
declare class GetUsersByTgIdsRequest$Type extends MessageType<GetUsersByTgIdsRequest> {
constructor();
}
/**
* @generated from protobuf message etherean.user_service.GetUserIdsRequest
* @generated from protobuf message etherean.user_service.GetUsersByTgIdsRequest
*/
interface GetUserIdsRequest {
interface GetUsersByTgIdsRequest {
/**

@@ -28,23 +29,47 @@ * @generated from protobuf field: repeated etherean.type.TgId tg_ids = 1;

/**
* @generated MessageType for protobuf message etherean.user_service.GetUserIdsRequest
* @generated MessageType for protobuf message etherean.user_service.GetUsersByTgIdsRequest
*/
declare const GetUserIdsRequest: GetUserIdsRequest$Type;
declare class GetUserIdsResponse$Type extends MessageType<GetUserIdsResponse> {
declare const GetUsersByTgIdsRequest: GetUsersByTgIdsRequest$Type;
declare class GetUsersByTgIdsResponse$Type extends MessageType<GetUsersByTgIdsResponse> {
constructor();
}
/**
* @generated from protobuf message etherean.user_service.GetUserIdsResponse
* @generated from protobuf message etherean.user_service.GetUsersByTgIdsResponse
*/
interface GetUserIdsResponse {
interface GetUsersByTgIdsResponse {
/**
* @generated from protobuf field: map<int64, etherean.type.UserId> user_ids_by_tg_ids = 1;
* @generated from protobuf field: map<int64, etherean.user_service.User> users = 1;
*/
userIdsByTgIds: {
[key: string]: UserId;
users: {
[key: string]: User;
};
}
/**
* @generated MessageType for protobuf message etherean.user_service.GetUserIdsResponse
* @generated MessageType for protobuf message etherean.user_service.GetUsersByTgIdsResponse
*/
declare const GetUserIdsResponse: GetUserIdsResponse$Type;
declare const GetUsersByTgIdsResponse: GetUsersByTgIdsResponse$Type;
declare class User$Type extends MessageType<User> {
constructor();
}
/**
* @generated from protobuf message etherean.user_service.User
*/
interface User {
/**
* @generated from protobuf field: etherean.type.UserId user_id = 1;
*/
userId?: UserId;
/**
* @generated from protobuf field: etherean.type.UserId referent_user_id = 2;
*/
referentUserId?: UserId;
/**
* @generated from protobuf field: google.protobuf.Timestamp registered_at = 3;
*/
registeredAt?: Timestamp;
}
/**
* @generated MessageType for protobuf message etherean.user_service.User
*/
declare const User: User$Type;
declare class CheckTgPartnerUserRequest$Type extends MessageType<CheckTgPartnerUserRequest> {

@@ -425,2 +450,2 @@ constructor();

export { AddEmailRequest, AddUsernameRequest, AddWalletRequest, CheckTgPartnerUserRequest, CheckTgPartnerUserResponse, GetHumanReadableIdentifiersRequest, GetHumanReadableIdentifiersResponse, GetUserIdAndLinkV2Request, GetUserIdsRequest, GetUserIdsResponse, GetUserLinkResponse, GetUsersCountResponse, GetWalletsRequest, GetWalletsResponse, RegisterRequest, TgRegisterRequest, UserIdAndLink, UserIdentifier, UserService, XRegisterRequest };
export { AddEmailRequest, AddUsernameRequest, AddWalletRequest, CheckTgPartnerUserRequest, CheckTgPartnerUserResponse, GetHumanReadableIdentifiersRequest, GetHumanReadableIdentifiersResponse, GetUserIdAndLinkV2Request, GetUserLinkResponse, GetUsersByTgIdsRequest, GetUsersByTgIdsResponse, GetUsersCountResponse, GetWalletsRequest, GetWalletsResponse, RegisterRequest, TgRegisterRequest, User, UserIdAndLink, UserIdentifier, UserService, XRegisterRequest };

@@ -6,4 +6,4 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript

import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import type { GetUserIdsResponse } from "./user_service.js";
import type { GetUserIdsRequest } from "./user_service.js";
import type { GetUsersByTgIdsResponse } from "./user_service.js";
import type { GetUsersByTgIdsRequest } from "./user_service.js";
import type { CheckTgPartnerUserResponse } from "./user_service.js";

@@ -117,5 +117,5 @@ import type { CheckTgPartnerUserRequest } from "./user_service.js";

/**
* @generated from protobuf rpc: GetUserIds(etherean.user_service.GetUserIdsRequest) returns (etherean.user_service.GetUserIdsResponse);
* @generated from protobuf rpc: GetUsersByTgIds(etherean.user_service.GetUsersByTgIdsRequest) returns (etherean.user_service.GetUsersByTgIdsResponse);
*/
getUserIds(input: GetUserIdsRequest, options?: RpcOptions): UnaryCall<GetUserIdsRequest, GetUserIdsResponse>;
getUsersByTgIds(input: GetUsersByTgIdsRequest, options?: RpcOptions): UnaryCall<GetUsersByTgIdsRequest, GetUsersByTgIdsResponse>;
}

@@ -214,5 +214,5 @@ /**

/**
* @generated from protobuf rpc: GetUserIds(etherean.user_service.GetUserIdsRequest) returns (etherean.user_service.GetUserIdsResponse);
* @generated from protobuf rpc: GetUsersByTgIds(etherean.user_service.GetUsersByTgIdsRequest) returns (etherean.user_service.GetUsersByTgIdsResponse);
*/
getUserIds(input: GetUserIdsRequest, options?: RpcOptions): UnaryCall<GetUserIdsRequest, GetUserIdsResponse>;
getUsersByTgIds(input: GetUsersByTgIdsRequest, options?: RpcOptions): UnaryCall<GetUsersByTgIdsRequest, GetUsersByTgIdsResponse>;
}

@@ -150,5 +150,5 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript

/**
* @generated from protobuf rpc: GetUserIds(etherean.user_service.GetUserIdsRequest) returns (etherean.user_service.GetUserIdsResponse);
* @generated from protobuf rpc: GetUsersByTgIds(etherean.user_service.GetUsersByTgIdsRequest) returns (etherean.user_service.GetUsersByTgIdsResponse);
*/
getUserIds(input, options) {
getUsersByTgIds(input, options) {
const method = this.methods[17], opt = this._transport.mergeOptions(options);

@@ -155,0 +155,0 @@ return stackIntercept("unary", this._transport, method, opt, input);

@@ -9,8 +9,9 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript

import { Username } from "./username.js";
import { Timestamp } from "./google/protobuf/timestamp.js";
import { UserId } from "./client_id.js";
import { TgId } from "./tg_id.js";
/**
* @generated from protobuf message etherean.user_service.GetUserIdsRequest
* @generated from protobuf message etherean.user_service.GetUsersByTgIdsRequest
*/
export interface GetUserIdsRequest {
export interface GetUsersByTgIdsRequest {
/**

@@ -22,13 +23,30 @@ * @generated from protobuf field: repeated etherean.type.TgId tg_ids = 1;

/**
* @generated from protobuf message etherean.user_service.GetUserIdsResponse
* @generated from protobuf message etherean.user_service.GetUsersByTgIdsResponse
*/
export interface GetUserIdsResponse {
export interface GetUsersByTgIdsResponse {
/**
* @generated from protobuf field: map<int64, etherean.type.UserId> user_ids_by_tg_ids = 1;
* @generated from protobuf field: map<int64, etherean.user_service.User> users = 1;
*/
userIdsByTgIds: {
[key: string]: UserId;
users: {
[key: string]: User;
};
}
/**
* @generated from protobuf message etherean.user_service.User
*/
export interface User {
/**
* @generated from protobuf field: etherean.type.UserId user_id = 1;
*/
userId?: UserId;
/**
* @generated from protobuf field: etherean.type.UserId referent_user_id = 2;
*/
referentUserId?: UserId;
/**
* @generated from protobuf field: google.protobuf.Timestamp registered_at = 3;
*/
registeredAt?: Timestamp;
}
/**
* @generated from protobuf message etherean.user_service.CheckTgPartnerUserRequest

@@ -284,16 +302,23 @@ */

}
declare class GetUserIdsRequest$Type extends MessageType<GetUserIdsRequest> {
declare class GetUsersByTgIdsRequest$Type extends MessageType<GetUsersByTgIdsRequest> {
constructor();
}
/**
* @generated MessageType for protobuf message etherean.user_service.GetUserIdsRequest
* @generated MessageType for protobuf message etherean.user_service.GetUsersByTgIdsRequest
*/
export declare const GetUserIdsRequest: GetUserIdsRequest$Type;
declare class GetUserIdsResponse$Type extends MessageType<GetUserIdsResponse> {
export declare const GetUsersByTgIdsRequest: GetUsersByTgIdsRequest$Type;
declare class GetUsersByTgIdsResponse$Type extends MessageType<GetUsersByTgIdsResponse> {
constructor();
}
/**
* @generated MessageType for protobuf message etherean.user_service.GetUserIdsResponse
* @generated MessageType for protobuf message etherean.user_service.GetUsersByTgIdsResponse
*/
export declare const GetUserIdsResponse: GetUserIdsResponse$Type;
export declare const GetUsersByTgIdsResponse: GetUsersByTgIdsResponse$Type;
declare class User$Type extends MessageType<User> {
constructor();
}
/**
* @generated MessageType for protobuf message etherean.user_service.User
*/
export declare const User: User$Type;
declare class CheckTgPartnerUserRequest$Type extends MessageType<CheckTgPartnerUserRequest> {

@@ -300,0 +325,0 @@ constructor();

@@ -14,8 +14,9 @@ // @generated by protobuf-ts 2.9.4 with parameter generate_dependencies,optimize_code_size,output_javascript

import { Username } from "./username.js";
import { Timestamp } from "./google/protobuf/timestamp.js";
import { UserId } from "./client_id.js";
import { TgId } from "./tg_id.js";
// @generated message type with reflection information, may provide speed optimized methods
class GetUserIdsRequest$Type extends MessageType {
class GetUsersByTgIdsRequest$Type extends MessageType {
constructor() {
super("etherean.user_service.GetUserIdsRequest", [
super("etherean.user_service.GetUsersByTgIdsRequest", [
{ no: 1, name: "tg_ids", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => TgId }

@@ -26,10 +27,10 @@ ]);

/**
* @generated MessageType for protobuf message etherean.user_service.GetUserIdsRequest
* @generated MessageType for protobuf message etherean.user_service.GetUsersByTgIdsRequest
*/
export const GetUserIdsRequest = new GetUserIdsRequest$Type();
export const GetUsersByTgIdsRequest = new GetUsersByTgIdsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetUserIdsResponse$Type extends MessageType {
class GetUsersByTgIdsResponse$Type extends MessageType {
constructor() {
super("etherean.user_service.GetUserIdsResponse", [
{ no: 1, name: "user_ids_by_tg_ids", kind: "map", K: 3 /*ScalarType.INT64*/, V: { kind: "message", T: () => UserId } }
super("etherean.user_service.GetUsersByTgIdsResponse", [
{ no: 1, name: "users", kind: "map", K: 3 /*ScalarType.INT64*/, V: { kind: "message", T: () => User } }
]);

@@ -39,6 +40,20 @@ }

/**
* @generated MessageType for protobuf message etherean.user_service.GetUserIdsResponse
* @generated MessageType for protobuf message etherean.user_service.GetUsersByTgIdsResponse
*/
export const GetUserIdsResponse = new GetUserIdsResponse$Type();
export const GetUsersByTgIdsResponse = new GetUsersByTgIdsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class User$Type extends MessageType {
constructor() {
super("etherean.user_service.User", [
{ no: 1, name: "user_id", kind: "message", T: () => UserId },
{ no: 2, name: "referent_user_id", kind: "message", T: () => UserId },
{ no: 3, name: "registered_at", kind: "message", T: () => Timestamp }
]);
}
}
/**
* @generated MessageType for protobuf message etherean.user_service.User
*/
export const User = new User$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CheckTgPartnerUserRequest$Type extends MessageType {

@@ -289,3 +304,3 @@ constructor() {

{ name: "CheckTgPartnerUser", options: {}, I: CheckTgPartnerUserRequest, O: CheckTgPartnerUserResponse },
{ name: "GetUserIds", options: {}, I: GetUserIdsRequest, O: GetUserIdsResponse }
{ name: "GetUsersByTgIds", options: {}, I: GetUsersByTgIdsRequest, O: GetUsersByTgIdsResponse }
]);
{
"name": "@etherean/etherean-grpc",
"type": "module",
"version": "1.6.5",
"version": "1.7.0",
"description": "",

@@ -6,0 +6,0 @@ "keywords": [],

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc