echofi-client
Version:
A comprehensive TypeScript/JavaScript client library for EchoFi services with automatic gRPC-Web code generation, unified service access, and real-time WebSocket communication.
124 lines (99 loc) • 3.71 kB
TypeScript
import * as jspb from 'google-protobuf'
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto"
export class Wallet extends jspb.Message {
getId(): string;
setId(value: string): Wallet;
getUserId(): string;
setUserId(value: string): Wallet;
getWalletAddress(): string;
setWalletAddress(value: string): Wallet;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Wallet;
hasCreatedAt(): boolean;
clearCreatedAt(): Wallet;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Wallet;
hasUpdatedAt(): boolean;
clearUpdatedAt(): Wallet;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Wallet.AsObject;
static toObject(includeInstance: boolean, msg: Wallet): Wallet.AsObject;
static serializeBinaryToWriter(message: Wallet, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Wallet;
static deserializeBinaryFromReader(message: Wallet, reader: jspb.BinaryReader): Wallet;
}
export namespace Wallet {
export type AsObject = {
id: string,
userId: string,
walletAddress: string,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}
export class Web3User extends jspb.Message {
getId(): string;
setId(value: string): Web3User;
getName(): string;
setName(value: string): Web3User;
hasName(): boolean;
clearName(): Web3User;
getEmail(): string;
setEmail(value: string): Web3User;
hasEmail(): boolean;
clearEmail(): Web3User;
getEmailVerified(): google_protobuf_timestamp_pb.Timestamp | undefined;
setEmailVerified(value?: google_protobuf_timestamp_pb.Timestamp): Web3User;
hasEmailVerified(): boolean;
clearEmailVerified(): Web3User;
getImage(): string;
setImage(value: string): Web3User;
hasImage(): boolean;
clearImage(): Web3User;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Web3User;
hasCreatedAt(): boolean;
clearCreatedAt(): Web3User;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Web3User;
hasUpdatedAt(): boolean;
clearUpdatedAt(): Web3User;
getWallet(): Wallet | undefined;
setWallet(value?: Wallet): Web3User;
hasWallet(): boolean;
clearWallet(): Web3User;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Web3User.AsObject;
static toObject(includeInstance: boolean, msg: Web3User): Web3User.AsObject;
static serializeBinaryToWriter(message: Web3User, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Web3User;
static deserializeBinaryFromReader(message: Web3User, reader: jspb.BinaryReader): Web3User;
}
export namespace Web3User {
export type AsObject = {
id: string,
name?: string,
email?: string,
emailVerified?: google_protobuf_timestamp_pb.Timestamp.AsObject,
image?: string,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
wallet?: Wallet.AsObject,
}
export enum NameCase {
_NAME_NOT_SET = 0,
NAME = 2,
}
export enum EmailCase {
_EMAIL_NOT_SET = 0,
EMAIL = 3,
}
export enum EmailVerifiedCase {
_EMAIL_VERIFIED_NOT_SET = 0,
EMAIL_VERIFIED = 4,
}
export enum ImageCase {
_IMAGE_NOT_SET = 0,
IMAGE = 5,
}
}