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.
139 lines (110 loc) • 3.46 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 Account extends jspb.Message {
getId(): string;
setId(value: string): Account;
getUserId(): string;
setUserId(value: string): Account;
getType(): string;
setType(value: string): Account;
getProvider(): string;
setProvider(value: string): Account;
getProviderAccountId(): string;
setProviderAccountId(value: string): Account;
getRefreshToken(): string;
setRefreshToken(value: string): Account;
hasRefreshToken(): boolean;
clearRefreshToken(): Account;
getAccessToken(): string;
setAccessToken(value: string): Account;
hasAccessToken(): boolean;
clearAccessToken(): Account;
getExpiresAt(): number;
setExpiresAt(value: number): Account;
hasExpiresAt(): boolean;
clearExpiresAt(): Account;
getTokenType(): string;
setTokenType(value: string): Account;
hasTokenType(): boolean;
clearTokenType(): Account;
getScope(): string;
setScope(value: string): Account;
hasScope(): boolean;
clearScope(): Account;
getIdToken(): string;
setIdToken(value: string): Account;
hasIdToken(): boolean;
clearIdToken(): Account;
getSessionState(): string;
setSessionState(value: string): Account;
hasSessionState(): boolean;
clearSessionState(): Account;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Account;
hasCreatedAt(): boolean;
clearCreatedAt(): Account;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Account;
hasUpdatedAt(): boolean;
clearUpdatedAt(): Account;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Account.AsObject;
static toObject(includeInstance: boolean, msg: Account): Account.AsObject;
static serializeBinaryToWriter(message: Account, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Account;
static deserializeBinaryFromReader(message: Account, reader: jspb.BinaryReader): Account;
}
export namespace Account {
export type AsObject = {
id: string,
userId: string,
type: string,
provider: string,
providerAccountId: string,
refreshToken?: string,
accessToken?: string,
expiresAt?: number,
tokenType?: string,
scope?: string,
idToken?: string,
sessionState?: string,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
export enum RefreshTokenCase {
_REFRESH_TOKEN_NOT_SET = 0,
REFRESH_TOKEN = 6,
}
export enum AccessTokenCase {
_ACCESS_TOKEN_NOT_SET = 0,
ACCESS_TOKEN = 7,
}
export enum ExpiresAtCase {
_EXPIRES_AT_NOT_SET = 0,
EXPIRES_AT = 8,
}
export enum TokenTypeCase {
_TOKEN_TYPE_NOT_SET = 0,
TOKEN_TYPE = 9,
}
export enum ScopeCase {
_SCOPE_NOT_SET = 0,
SCOPE = 10,
}
export enum IdTokenCase {
_ID_TOKEN_NOT_SET = 0,
ID_TOKEN = 11,
}
export enum SessionStateCase {
_SESSION_STATE_NOT_SET = 0,
SESSION_STATE = 12,
}
export enum CreatedAtCase {
_CREATED_AT_NOT_SET = 0,
CREATED_AT = 13,
}
export enum UpdatedAtCase {
_UPDATED_AT_NOT_SET = 0,
UPDATED_AT = 14,
}
}