The per-App key authorization capability consumed by Project model routes.
API
@Interface()
export abstract class PlatformAuth {
abstract start(input: { projectId: string; userId: string }): Promise<{
flowId: string;
authorizeUrl: string;
expiresAt: string;
}>;
abstract status(input: {
flowId: string;
projectId: string;
userId: string;
}): Promise<PlatformAuthStatusResult>;
abstract retryApply(input: {
flowId: string;
projectId: string;
userId: string;
}): Promise<PlatformAuthStatusResult>;
abstract sync(projectId: string): Promise<PlatformModelApplyResult>;
abstract cancel(input: { flowId: string; projectId: string; userId: string }): void;
}Contract Topology
Static AST wiring across @Module / @Provide / @UseMembers (5)
start
start(input: { projectId: string; userId: string }): Promise<{ flowId: string; authorizeUrl: string; expiresAt: string; }>@paraminput
{ projectId: string; userId: string }@returns
Promise<{ flowId: string; authorizeUrl: string; expiresAt: string; }>status
status(input: { flowId: string; projectId: string; userId: string; }): Promise<PlatformAuthStatusResult>@paraminput
{ flowId: string; projectId: string; userId: string; }@returns
Promise<PlatformAuthStatusResult>retryApply
retryApply(input: { flowId: string; projectId: string; userId: string; }): Promise<PlatformAuthStatusResult>@paraminput
{ flowId: string; projectId: string; userId: string; }@returns
Promise<PlatformAuthStatusResult>sync
sync(projectId: string): Promise<PlatformModelApplyResult>@paramprojectId
string@returns
Promise<PlatformModelApplyResult>cancel
cancel(input: { flowId: string; projectId: string; userId: string }): void@paraminput
{ flowId: string; projectId: string; userId: string }@returns
void