@prismshadow/penguin-library-model · library/model/src/platform-auth-service.ts:585

PlatformAuth

interface

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 / @Use
@Moduleexported by
@Provideprovided by
@Useconsumed by (1)

Members (5)

start

start(input: { projectId: string; userId: string }): Promise<{ flowId: string; authorizeUrl: string; expiresAt: string; }>
@paraminput{ projectId: string; userId: string }
@returnsPromise<{ flowId: string; authorizeUrl: string; expiresAt: string; }>

status

status(input: { flowId: string; projectId: string; userId: string; }): Promise<PlatformAuthStatusResult>
@paraminput{ flowId: string; projectId: string; userId: string; }
@returnsPromise<PlatformAuthStatusResult>

retryApply

retryApply(input: { flowId: string; projectId: string; userId: string; }): Promise<PlatformAuthStatusResult>
@paraminput{ flowId: string; projectId: string; userId: string; }
@returnsPromise<PlatformAuthStatusResult>

sync

sync(projectId: string): Promise<PlatformModelApplyResult>
@paramprojectIdstring
@returnsPromise<PlatformModelApplyResult>

cancel

cancel(input: { flowId: string; projectId: string; userId: string }): void
@paraminput{ flowId: string; projectId: string; userId: string }
@returnsvoid