UNPKG

mastra

Version:
44 lines 1.75 kB
import type { DeployDiagnosisLookup } from '../deploy-suggestions.js'; export interface Project { id: string; name: string; slug: string | null; organizationId: string; latestDeployId: string | null; latestDeployStatus: string | null; latestDeployCreatedAt?: string | null; instanceUrl: string | null; createdAt: string | null; updatedAt: string | null; } export interface DeployStatus { id: string; status: string; instanceUrl: string | null; error: string | null; } export declare function fetchProjects(token: string, orgId: string): Promise<Project[]>; export declare function createProject(token: string, orgId: string, name: string): Promise<Project>; export interface DeployInfo { id: string; status: string; instanceUrl: string | null; error: string | null; projectName?: string | null; createdAt?: string | null; } export declare function fetchDeployStatus(deployId: string, token: string, orgId?: string): Promise<DeployInfo>; export declare function fetchDeployDiagnosis(deployId: string, token: string, orgId?: string): Promise<DeployDiagnosisLookup>; export declare function startDeployDiagnosis(deployId: string, token: string, orgId?: string): Promise<void>; export declare function uploadDeploy(token: string, orgId: string, projectId: string, zipBuffer: Buffer, meta?: { gitBranch?: string; projectName?: string; envVars?: Record<string, string>; mastraVersion?: string; disablePlatformObservability?: boolean; }): Promise<{ id: string; status: string; }>; export declare function pollDeploy(deployId: string, token: string, orgId: string, maxWaitMs?: number): Promise<DeployStatus>; //# sourceMappingURL=platform-api.d.ts.map