@prismshadow/penguin-server · packages/server/src/services/app-data.ts:57

AppData

interface

AppData: what SystemAgentAppData implements, and a server module reaches through the plugin face.

API

@Interface()
export abstract class AppData {
  abstract dataPaths(projectId: string, appId: string): Promise<AppDataPaths>;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use
@Moduleexported by
@Provideprovided by
@Useconsumed by (1)

Members (1)

dataPaths

dataPaths(projectId: string, appId: string): Promise<AppDataPaths>

The folders of the system app appId in the Project projectId, each made before it is returned. 400 for an id that is not one plain segment, 404 project_not_found for a Project this server does not have, 409 system_agent_held where the Project's system_agent is the user's own Agent (see the module header). Callers check the caller's access to the Project first; this does not.

@paramprojectIdstring
@paramappIdstring
@returnsPromise<AppDataPaths>