;
token_id?: string;
description?: string;
};
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): _GenerateApiTokenRequest;
serializeBinary(): Uint8Array;
static deserializeBinary(bytes: Uint8Array): _GenerateApiTokenRequest;
}
export namespace _GenerateApiTokenRequest {
class Never extends pb_1.Message {
#private;
constructor(data?: any[] | {});
static fromObject(data: {}): Never;
toObject(): {};
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Never;
serializeBinary(): Uint8Array;
static deserializeBinary(bytes: Uint8Array): Never;
}
class Expires extends pb_1.Message {
#private;
constructor(data?: any[] | {
valid_for_seconds?: number;
});
get valid_for_seconds(): number;
set valid_for_seconds(value: number);
static fromObject(data: {
valid_for_seconds?: number;
}): Expires;
toObject(): {
valid_for_seconds?: number;
};
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Expires;
serializeBinary(): Uint8Array;
static deserializeBinary(bytes: Uint8Array): Expires;
}
}
export class _GenerateApiTokenResponse extends pb_1.Message {
#private;
constructor(data?: any[] | {
api_key?: string;
refresh_token?: string;
endpoint?: string;
valid_until?: number;
});
get api_key(): string;
set api_key(value: string);
get refresh_token(): string;
set refresh_token(value: string);
get endpoint(): string;
set endpoint(value: string);
get valid_until(): number;
set valid_until(value: number);
static fromObject(data: {
api_key?: string;
refresh_token?: string;
endpoint?: string;
valid_until?: number;
}): _GenerateApiTokenResponse;
toObject(): {
api_key?: string;
refresh_token?: string;
endpoint?: string;
valid_until?: number;
};
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): _GenerateApiTokenResponse;
serializeBinary(): Uint8Array;
static deserializeBinary(bytes: Uint8Array): _GenerateApiTokenResponse;
}
export class _RefreshApiTokenRequest extends pb_1.Message {
#private;
constructor(data?: any[] | {
api_key?: string;
refresh_token?: string;
});
get api_key(): string;
set api_key(value: string);
get refresh_token(): string;
set refresh_token(value: string);
static fromObject(data: {
api_key?: string;
refresh_token?: string;
}): _RefreshApiTokenRequest;
toObject(): {
api_key?: string;
refresh_token?: string;
};
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): _RefreshApiTokenRequest;
serializeBinary(): Uint8Array;
static deserializeBinary(bytes: Uint8Array): _RefreshApiTokenRequest;
}
export class _RefreshApiTokenResponse extends pb_1.Message {
#private;
constructor(data?: any[] | {
api_key?: string;
refresh_token?: string;
endpoint?: string;
valid_until?: number;
});
get api_key(): string;
set api_key(value: string);
get refresh_token(): string;
set refresh_token(value: string);
get endpoint(): string;
set endpoint(value: string);
get valid_until(): number;
set valid_until(value: number);
static fromObject(data: {
api_key?: string;
refresh_token?: string;
endpoint?: string;
valid_until?: number;
}): _RefreshApiTokenResponse;
toObject(): {
api_key?: string;
refresh_token?: string;
endpoint?: string;
valid_until?: number;
};
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): _RefreshApiTokenResponse;
serializeBinary(): Uint8Array;
static deserializeBinary(bytes: Uint8Array): _RefreshApiTokenResponse;
}
interface GrpcUnaryServiceInterface {
(message: P, metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback): grpc_1.ClientUnaryCall;
(message: P, metadata: grpc_1.Metadata, callback: grpc_1.requestCallback): grpc_1.ClientUnaryCall;
(message: P, options: grpc_1.CallOptions, callback: grpc_1.requestCallback): grpc_1.ClientUnaryCall;
(message: P, callback: grpc_1.requestCallback): grpc_1.ClientUnaryCall;
}
interface GrpcStreamServiceInterface {
(message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream;
(message: P, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream;
}
export abstract class UnimplementedAuthService {
static definition: {
Login: {
path: string;
requestStream: boolean;
responseStream: boolean;
requestSerialize: (message: _LoginRequest) => Buffer;
requestDeserialize: (bytes: Buffer) => _LoginRequest;
responseSerialize: (message: _LoginResponse) => Buffer;
responseDeserialize: (bytes: Buffer) => _LoginResponse;
};
GenerateApiToken: {
path: string;
requestStream: boolean;
responseStream: boolean;
requestSerialize: (message: _GenerateApiTokenRequest) => Buffer;
requestDeserialize: (bytes: Buffer) => _GenerateApiTokenRequest;
responseSerialize: (message: _GenerateApiTokenResponse) => Buffer;
responseDeserialize: (bytes: Buffer) => _GenerateApiTokenResponse;
};
RefreshApiToken: {
path: string;
requestStream: boolean;
responseStream: boolean;
requestSerialize: (message: _RefreshApiTokenRequest) => Buffer;
requestDeserialize: (bytes: Buffer) => _RefreshApiTokenRequest;
responseSerialize: (message: _RefreshApiTokenResponse) => Buffer;
responseDeserialize: (bytes: Buffer) => _RefreshApiTokenResponse;
};
};
[method: string]: grpc_1.UntypedHandleCall;
abstract Login(call: grpc_1.ServerWritableStream<_LoginRequest, _LoginResponse>): void;
abstract GenerateApiToken(call: grpc_1.ServerUnaryCall<_GenerateApiTokenRequest, _GenerateApiTokenResponse>, callback: grpc_1.sendUnaryData<_GenerateApiTokenResponse>): void;
abstract RefreshApiToken(call: grpc_1.ServerUnaryCall<_RefreshApiTokenRequest, _RefreshApiTokenResponse>, callback: grpc_1.sendUnaryData<_RefreshApiTokenResponse>): void;
}
const AuthClient_base: grpc_1.ServiceClientConstructor;
export class AuthClient extends AuthClient_base {
constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial);
Login: GrpcStreamServiceInterface<_LoginRequest, _LoginResponse>;
GenerateApiToken: GrpcUnaryServiceInterface<_GenerateApiTokenRequest, _GenerateApiTokenResponse>;
RefreshApiToken: GrpcUnaryServiceInterface<_RefreshApiTokenRequest, _RefreshApiTokenResponse>;
}
export {};
}