import * as z from "zod/v4"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { GitMetadata } from "./gitmetadata.js"; import { SetupFingerprintInfo } from "./setupfingerprintinfo.js"; export type ReleaseListItemResponseStack = { aws?: any | null | undefined; gcp?: any | null | undefined; azure?: any | null | undefined; kubernetes?: any | null | undefined; machines?: any | null | undefined; local?: any | null | undefined; test?: any | null | undefined; }; /** * Project info, included when ?include=project is used */ export type ReleaseListItemResponseProject = { /** * Project ID */ id: string; /** * Project name */ name: string; }; /** * Rollout stats, included when ?include=rollout is used */ export type Rollout = { /** * Deployments that finished updating to this release (excludes initial provisions) */ updatedCount: number; /** * Deployments currently targeting this release but not yet running it */ pendingCount: number; /** * Average time from release creation until a deployment finished updating, in milliseconds */ avgDurationMs: number | null; }; /** * Platform user who created the release, included when ?include=createdBy is used */ export type CreatedBy = { /** * User ID */ id: string; /** * User's display name */ name: string; /** * User's email address */ email: string; /** * User's avatar image URL */ image: string | null; }; export type ReleaseListItemResponse = { /** * Unique identifier for the release. */ id: string; projectId: string; version: string; gitMetadata?: GitMetadata | null | undefined; createdAt: Date; stack?: ReleaseListItemResponseStack | null | undefined; setupFingerprints: { [k: string]: SetupFingerprintInfo; }; rootDirectory?: string | null | undefined; /** * ID of the platform user who created the release, if known */ createdByUserId?: string | null | undefined; workspaceId: string; /** * Channels for which this release is currently selected */ currentChannels: Array; /** * Validated canonical provider URL for the exact commit */ commitUrl: string | null; /** * Project info, included when ?include=project is used */ project?: ReleaseListItemResponseProject | null | undefined; /** * Rollout stats, included when ?include=rollout is used */ rollout?: Rollout | null | undefined; /** * Platform user who created the release, included when ?include=createdBy is used */ createdBy?: CreatedBy | null | undefined; }; /** @internal */ export declare const ReleaseListItemResponseStack$inboundSchema: z.ZodType; export declare function releaseListItemResponseStackFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ReleaseListItemResponseProject$inboundSchema: z.ZodType; export declare function releaseListItemResponseProjectFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Rollout$inboundSchema: z.ZodType; export declare function rolloutFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreatedBy$inboundSchema: z.ZodType; export declare function createdByFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ReleaseListItemResponse$inboundSchema: z.ZodType; export declare function releaseListItemResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=releaselistitemresponse.d.ts.map