UNPKG

@emeraldpay/api

Version:
374 lines (325 loc) 15.2 kB
// package: emerald // file: auth.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; export class AuthRequest extends jspb.Message { clearAgentDetailsList(): void; getAgentDetailsList(): Array<string>; setAgentDetailsList(value: Array<string>): AuthRequest; addAgentDetails(value: string, index?: number): string; clearCapabilitiesList(): void; getCapabilitiesList(): Array<string>; setCapabilitiesList(value: Array<string>): AuthRequest; addCapabilities(value: string, index?: number): string; clearScopesList(): void; getScopesList(): Array<string>; setScopesList(value: Array<string>): AuthRequest; addScopes(value: string, index?: number): string; hasTempAuth(): boolean; clearTempAuth(): void; getTempAuth(): TempAuth | undefined; setTempAuth(value?: TempAuth): AuthRequest; hasAuthSecret(): boolean; clearAuthSecret(): void; getAuthSecret(): string; setAuthSecret(value: string): AuthRequest; getAuthTypeCase(): AuthRequest.AuthTypeCase; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AuthRequest.AsObject; static toObject(includeInstance: boolean, msg: AuthRequest): AuthRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: AuthRequest, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): AuthRequest; static deserializeBinaryFromReader(message: AuthRequest, reader: jspb.BinaryReader): AuthRequest; } export namespace AuthRequest { export type AsObject = { agentDetailsList: Array<string>, capabilitiesList: Array<string>, scopesList: Array<string>, tempAuth?: TempAuth.AsObject, authSecret: string, } export enum AuthTypeCase { AUTH_TYPE_NOT_SET = 0, TEMP_AUTH = 4, AUTH_SECRET = 5, } } export class TempAuth extends jspb.Message { getId(): string; setId(value: string): TempAuth; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TempAuth.AsObject; static toObject(includeInstance: boolean, msg: TempAuth): TempAuth.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: TempAuth, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): TempAuth; static deserializeBinaryFromReader(message: TempAuth, reader: jspb.BinaryReader): TempAuth; } export namespace TempAuth { export type AsObject = { id: string, } } export class AuthResponse extends jspb.Message { getSucceed(): boolean; setSucceed(value: boolean): AuthResponse; getStatus(): number; setStatus(value: number): AuthResponse; getDenyMessage(): string; setDenyMessage(value: string): AuthResponse; getAccessToken(): string; setAccessToken(value: string): AuthResponse; getRefreshToken(): string; setRefreshToken(value: string): AuthResponse; getExpiresAt(): number; setExpiresAt(value: number): AuthResponse; getType(): string; setType(value: string): AuthResponse; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AuthResponse.AsObject; static toObject(includeInstance: boolean, msg: AuthResponse): AuthResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: AuthResponse, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): AuthResponse; static deserializeBinaryFromReader(message: AuthResponse, reader: jspb.BinaryReader): AuthResponse; } export namespace AuthResponse { export type AsObject = { succeed: boolean, status: number, denyMessage: string, accessToken: string, refreshToken: string, expiresAt: number, type: string, } } export class RefreshRequest extends jspb.Message { getAuthSecret(): string; setAuthSecret(value: string): RefreshRequest; getRefreshToken(): string; setRefreshToken(value: string): RefreshRequest; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RefreshRequest.AsObject; static toObject(includeInstance: boolean, msg: RefreshRequest): RefreshRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: RefreshRequest, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): RefreshRequest; static deserializeBinaryFromReader(message: RefreshRequest, reader: jspb.BinaryReader): RefreshRequest; } export namespace RefreshRequest { export type AsObject = { authSecret: string, refreshToken: string, } } export class WhoAmIRequest extends jspb.Message { serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): WhoAmIRequest.AsObject; static toObject(includeInstance: boolean, msg: WhoAmIRequest): WhoAmIRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: WhoAmIRequest, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): WhoAmIRequest; static deserializeBinaryFromReader(message: WhoAmIRequest, reader: jspb.BinaryReader): WhoAmIRequest; } export namespace WhoAmIRequest { export type AsObject = { } } export class WhoAmIResponse extends jspb.Message { getIsAuthenticated(): boolean; setIsAuthenticated(value: boolean): WhoAmIResponse; getTokenId(): string; setTokenId(value: string): WhoAmIResponse; getUserId(): string; setUserId(value: string): WhoAmIResponse; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): WhoAmIResponse.AsObject; static toObject(includeInstance: boolean, msg: WhoAmIResponse): WhoAmIResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: WhoAmIResponse, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): WhoAmIResponse; static deserializeBinaryFromReader(message: WhoAmIResponse, reader: jspb.BinaryReader): WhoAmIResponse; } export namespace WhoAmIResponse { export type AsObject = { isAuthenticated: boolean, tokenId: string, userId: string, } } export class ListTokensRequest extends jspb.Message { getOrganizationId(): string; setOrganizationId(value: string): ListTokensRequest; getProjectId(): string; setProjectId(value: string): ListTokensRequest; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListTokensRequest.AsObject; static toObject(includeInstance: boolean, msg: ListTokensRequest): ListTokensRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: ListTokensRequest, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): ListTokensRequest; static deserializeBinaryFromReader(message: ListTokensRequest, reader: jspb.BinaryReader): ListTokensRequest; } export namespace ListTokensRequest { export type AsObject = { organizationId: string, projectId: string, } } export class ListTokensResponse extends jspb.Message { clearTokensList(): void; getTokensList(): Array<TokenDetails>; setTokensList(value: Array<TokenDetails>): ListTokensResponse; addTokens(value?: TokenDetails, index?: number): TokenDetails; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListTokensResponse.AsObject; static toObject(includeInstance: boolean, msg: ListTokensResponse): ListTokensResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: ListTokensResponse, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): ListTokensResponse; static deserializeBinaryFromReader(message: ListTokensResponse, reader: jspb.BinaryReader): ListTokensResponse; } export namespace ListTokensResponse { export type AsObject = { tokensList: Array<TokenDetails.AsObject>, } } export class TokenDetails extends jspb.Message { getOrganizationId(): string; setOrganizationId(value: string): TokenDetails; getProjectId(): string; setProjectId(value: string): TokenDetails; getTokenId(): string; setTokenId(value: string): TokenDetails; getCreationDate(): number; setCreationDate(value: number): TokenDetails; getDescription(): string; setDescription(value: string): TokenDetails; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TokenDetails.AsObject; static toObject(includeInstance: boolean, msg: TokenDetails): TokenDetails.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: TokenDetails, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): TokenDetails; static deserializeBinaryFromReader(message: TokenDetails, reader: jspb.BinaryReader): TokenDetails; } export namespace TokenDetails { export type AsObject = { organizationId: string, projectId: string, tokenId: string, creationDate: number, description: string, } } export class IssueTokenRequest extends jspb.Message { getType(): IssueTokenRequest.TokenType; setType(value: IssueTokenRequest.TokenType): IssueTokenRequest; clearScopesList(): void; getScopesList(): Array<string>; setScopesList(value: Array<string>): IssueTokenRequest; addScopes(value: string, index?: number): string; getUserId(): string; setUserId(value: string): IssueTokenRequest; getExpireAt(): number; setExpireAt(value: number): IssueTokenRequest; getOrganizationId(): string; setOrganizationId(value: string): IssueTokenRequest; getProjectId(): string; setProjectId(value: string): IssueTokenRequest; getDescription(): string; setDescription(value: string): IssueTokenRequest; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): IssueTokenRequest.AsObject; static toObject(includeInstance: boolean, msg: IssueTokenRequest): IssueTokenRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: IssueTokenRequest, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): IssueTokenRequest; static deserializeBinaryFromReader(message: IssueTokenRequest, reader: jspb.BinaryReader): IssueTokenRequest; } export namespace IssueTokenRequest { export type AsObject = { type: IssueTokenRequest.TokenType, scopesList: Array<string>, userId: string, expireAt: number, organizationId: string, projectId: string, description: string, } export enum TokenType { TEMP = 0, PERMANENT = 1, } } export class IssuedTokenResponse extends jspb.Message { getAuthSecret(): string; setAuthSecret(value: string): IssuedTokenResponse; getExpiresAt(): number; setExpiresAt(value: number): IssuedTokenResponse; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): IssuedTokenResponse.AsObject; static toObject(includeInstance: boolean, msg: IssuedTokenResponse): IssuedTokenResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: IssuedTokenResponse, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): IssuedTokenResponse; static deserializeBinaryFromReader(message: IssuedTokenResponse, reader: jspb.BinaryReader): IssuedTokenResponse; } export namespace IssuedTokenResponse { export type AsObject = { authSecret: string, expiresAt: number, } } export class DeleteTokenRequest extends jspb.Message { getOrganizationId(): string; setOrganizationId(value: string): DeleteTokenRequest; getProjectId(): string; setProjectId(value: string): DeleteTokenRequest; getTokenId(): string; setTokenId(value: string): DeleteTokenRequest; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DeleteTokenRequest.AsObject; static toObject(includeInstance: boolean, msg: DeleteTokenRequest): DeleteTokenRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: DeleteTokenRequest, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): DeleteTokenRequest; static deserializeBinaryFromReader(message: DeleteTokenRequest, reader: jspb.BinaryReader): DeleteTokenRequest; } export namespace DeleteTokenRequest { export type AsObject = { organizationId: string, projectId: string, tokenId: string, } } export class DeleteTokenResponse extends jspb.Message { serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DeleteTokenResponse.AsObject; static toObject(includeInstance: boolean, msg: DeleteTokenResponse): DeleteTokenResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: DeleteTokenResponse, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): DeleteTokenResponse; static deserializeBinaryFromReader(message: DeleteTokenResponse, reader: jspb.BinaryReader): DeleteTokenResponse; } export namespace DeleteTokenResponse { export type AsObject = { } }