mastra
Version:
cli for mastra
30 lines • 1.11 kB
TypeScript
export interface Project {
id: string;
name: string;
slug: string | null;
organizationId: string;
}
export interface Environment {
id: string;
projectId: string;
name: string;
slug: string;
type: 'production' | 'staging' | 'preview';
region: string | null;
branch: string | null;
instanceUrl: string | null;
customServerUrl: string | null;
observabilityProjectId: string | null;
envVars: Record<string, string> | null;
createdAt: string;
updatedAt: string;
}
export declare function fetchProjects(token: string, orgId: string): Promise<Project[]>;
export declare function fetchEnvironments(token: string, orgId: string, projectId: string): Promise<Environment[]>;
export declare function createEnvironment(token: string, orgId: string, projectId: string, env: {
name: string;
type: 'production' | 'staging' | 'preview';
region?: string;
}): Promise<Environment>;
export declare function deleteEnvironment(token: string, orgId: string, projectId: string, envId: string): Promise<void>;
//# sourceMappingURL=platform-api.d.ts.map