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.
60 lines (46 loc) • 1.9 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 Session extends jspb.Message {
getId(): string;
setId(value: string): Session;
getSessionToken(): string;
setSessionToken(value: string): Session;
getUserId(): string;
setUserId(value: string): Session;
getExpires(): google_protobuf_timestamp_pb.Timestamp | undefined;
setExpires(value?: google_protobuf_timestamp_pb.Timestamp): Session;
hasExpires(): boolean;
clearExpires(): Session;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Session;
hasCreatedAt(): boolean;
clearCreatedAt(): Session;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Session;
hasUpdatedAt(): boolean;
clearUpdatedAt(): Session;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Session.AsObject;
static toObject(includeInstance: boolean, msg: Session): Session.AsObject;
static serializeBinaryToWriter(message: Session, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Session;
static deserializeBinaryFromReader(message: Session, reader: jspb.BinaryReader): Session;
}
export namespace Session {
export type AsObject = {
id: string,
sessionToken: string,
userId: string,
expires?: google_protobuf_timestamp_pb.Timestamp.AsObject,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
export enum CreatedAtCase {
_CREATED_AT_NOT_SET = 0,
CREATED_AT = 5,
}
export enum UpdatedAtCase {
_UPDATED_AT_NOT_SET = 0,
UPDATED_AT = 6,
}
}