/** * Deployments — status / get / trigger / history / rollback. * * Wire shape sourced from `@sylphx/contract` (ADR-084). */ import type { BuildDetail, CancelBuildResult, DeploymentDetail, DeploymentHistoryItem, DeployResult, DeploySupplyChain, ProjectStatus, RollbackDeploymentInput, RollbackResult } from '@sylphx/contract'; import type { Client } from './client.js'; export type DeploymentHistoryRow = DeploymentHistoryItem & { readonly deploymentId: DeploymentHistoryItem['id']; readonly environment?: string; }; export interface OrgScopedRequestOptions { readonly orgId?: string; } export interface TriggerDeploymentOptions extends OrgScopedRequestOptions { /** * Canonical environment id. When omitted, the SDK resolves the provided * environment reference by name first and envType second. */ readonly envId?: string; /** * ADR-141 — per-service framework-detection signals. Map of service slug * → signals (e.g. `{ web: { sdkHealthDetected: true } }`). Captured by * the CLI's `package.json` scan and merged into * `project_services.machine_config.frameworkSignals` on the server * before the build / reconcile fans out. Omit when no signals were * detected; the server then leaves machine_config untouched. */ readonly frameworkSignals?: Readonly>; /** Stable project-local service name for a single-service deploy. */ readonly serviceName?: string; } export declare const status: (client: Client, projectId: string, options?: OrgScopedRequestOptions) => Promise; export declare const get: (client: Client, deploymentId: string, options?: OrgScopedRequestOptions) => Promise; /** * ADR-135 §2.3 Artifact 1 — per-deploy supply chain provenance. * * Surfaces always-produced provenance (image digest, builder identity, * source SHA, base image, L3 probe). `signing` block is banner-only per * ADR-072 doctrine — `signing.enabled` is structurally `false`. */ export declare const supplyChain: (client: Client, deploymentId: string, options?: OrgScopedRequestOptions) => Promise; export declare const getBuild: (client: Client, buildId: string, options?: OrgScopedRequestOptions) => Promise; export declare const trigger: (client: Client, projectId: string, environment: string, options?: TriggerDeploymentOptions) => Promise; export declare function triggerResolved(client: Client, projectId: string, environment: string, options: TriggerDeploymentOptions): Promise; export declare const history: (client: Client, projectId: string, envType: string, options?: OrgScopedRequestOptions) => Promise; export type RollbackBody = RollbackDeploymentInput; export declare const rollback: (client: Client, projectId: string, body: RollbackBody, options?: OrgScopedRequestOptions) => Promise; /** * Cancel an in-flight build. Terminal builds (`ready` / `error` / * `cancelled`) return 409. Phase 4b closure for ADR-089 Matrix 2. */ export declare const cancel: (client: Client, buildId: string) => Promise; export type { BuildDetail, DeploymentDetail, DeploymentHistoryItem, DeploymentHistoryResult, DeploySupplyChain, ProjectStatus, RollbackResult, } from '@sylphx/contract'; //# sourceMappingURL=deployments.d.ts.map