import { AppliedChange, BranchTarget, BranchTuning, BranchTuningFn, BucketAccessLevel, BucketDef, ComputeSettings, ComputeUnit, Config, ConflictReport, CredentialPrincipalType, CredentialScope, DATA_API_AUTH_PROVIDERS, DataApiAuthProvider, DataApiConfig, DataApiExternalAuthConfig, DataApiInput, DataApiNeonAuthConfig, DataApiSettings, DurationString, DurationUnit, ExternalPackageDef, ExternalPackageEntry, FunctionDef, FunctionDevConfig, FunctionRuntime, FunctionTuning, PostgresConfig, PreviewInput, PreviewTuning, PushResult, ResolvedBranchConfig, ResolvedBucketConfig, ResolvedDataApiConfig, ResolvedExternalPackage, ResolvedFunctionConfig, ResolvedPreviewConfig, ServiceEnabled, ServiceToggle, ServiceToggleInput } from "./lib/types.js"; import { ConfigLoadError, ConfigValidationError, ErrorCode, MissingContextError, PartialBranchCreateError, PlatformError, PushAbortedError, PushConflictError, isPartialBranchCreateError, isPlatformError } from "./lib/errors.js"; import { CreateBranchInput, CreateBucketInput, CreateCredentialInput, CreateProjectInput, DeployFunctionInput, EnableDataApiInput, GetConnectionUriInput, NeonApi, NeonAuthSnapshot, NeonBranchSnapshot, NeonBranchStorageSnapshot, NeonBucketSnapshot, NeonCredentialMeta, NeonCredentialSecret, NeonDataApiSnapshot, NeonDatabaseSnapshot, NeonEndpointSnapshot, NeonFunctionDeploymentSnapshot, NeonFunctionSnapshot, NeonProjectSnapshot, NeonRoleSnapshot, UpdateBranchInput } from "./lib/neon-api.js"; import { createNeonApiFromOptions } from "./lib/auth.js"; import { CredentialFeatureFlags, credentialScopesSatisfied, deriveCredentialScopes } from "./lib/credentials.js"; import { defineConfig, resolveConfig } from "./lib/define-config.js"; import { DiffOptions, DiffResult, PlanStep, RemotePreviewState, RemoteServiceState, RemoteState, diffConfig } from "./lib/diff.js"; import { externalPackageRoot, packagesToStage } from "./lib/external-packages.js"; import { LoadConfigOptions, loadConfigFromFile } from "./lib/loader.js"; import { createRealNeonApi } from "./lib/neon-api-real.js"; import * as zod0 from "zod"; import * as zod_v4_core0 from "zod/v4/core"; //#region src/v1.d.ts /** * Specific `PlatformError` subclasses, grouped for `instanceof` / structured access. * Also available as top-level exports. */ declare const errors: { readonly ConfigLoadError: typeof ConfigLoadError; readonly ConfigValidationError: typeof ConfigValidationError; readonly ErrorCode: { readonly InvalidConfig: "PLATFORM_INVALID_CONFIG"; readonly EnvNotInjected: "PLATFORM_ENV_NOT_INJECTED"; readonly MissingContext: "PLATFORM_MISSING_CONTEXT"; readonly PushConflict: "PLATFORM_PUSH_CONFLICT"; readonly PushAborted: "PLATFORM_PUSH_ABORTED"; readonly ConfigLoadFailed: "PLATFORM_CONFIG_LOAD_FAILED"; readonly MissingApiKey: "PLATFORM_MISSING_API_KEY"; readonly AmbiguousBranchAuth: "PLATFORM_AMBIGUOUS_BRANCH_AUTH"; readonly BranchNotFound: "PLATFORM_BRANCH_NOT_FOUND"; readonly FeatureUnavailable: "PLATFORM_FEATURE_UNAVAILABLE"; readonly MissingParentBranch: "PLATFORM_MISSING_PARENT_BRANCH"; readonly PartialBranchCreate: "PLATFORM_PARTIAL_BRANCH_CREATE"; readonly Unauthorized: "PLATFORM_UNAUTHORIZED"; readonly Forbidden: "PLATFORM_FORBIDDEN"; readonly NotFound: "PLATFORM_NOT_FOUND"; readonly Conflict: "PLATFORM_CONFLICT"; readonly RateLimited: "PLATFORM_RATE_LIMITED"; readonly Locked: "PLATFORM_LOCKED"; readonly ServerError: "PLATFORM_SERVER_ERROR"; readonly NetworkError: "PLATFORM_NETWORK_ERROR"; readonly InternalError: "PLATFORM_INTERNAL_ERROR"; }; readonly isPartialBranchCreateError: typeof isPartialBranchCreateError; readonly isPlatformError: typeof isPlatformError; readonly MissingContextError: typeof MissingContextError; readonly PartialBranchCreateError: typeof PartialBranchCreateError; readonly PlatformError: typeof PlatformError; readonly PushAbortedError: typeof PushAbortedError; readonly PushConflictError: typeof PushConflictError; }; /** The zod schemas underlying `defineConfig`, grouped under product-friendly names. */ declare const schemas: { readonly config: zod0.ZodObject<{ auth: zod0.ZodOptional; }, zod_v4_core0.$strict>]>>; dataApi: zod0.ZodOptional; authProvider: zod0.ZodOptional, zod0.ZodLiteral<"external">]>>; jwksUrl: zod0.ZodOptional; providerName: zod0.ZodOptional; jwtAudience: zod0.ZodOptional; settings: zod0.ZodOptional; dbAnonRole: zod0.ZodOptional; dbExtraSearchPath: zod0.ZodOptional; dbMaxRows: zod0.ZodOptional; dbSchemas: zod0.ZodOptional>; jwtRoleClaimKey: zod0.ZodOptional; jwtCacheMaxLifetime: zod0.ZodOptional; openapiMode: zod0.ZodOptional, zod0.ZodLiteral<"disabled">]>>; serverCorsAllowedOrigins: zod0.ZodOptional; serverTimingEnabled: zod0.ZodOptional; }, zod_v4_core0.$strict>>; }, zod_v4_core0.$strict>]>>; preview: zod0.ZodOptional; }, zod_v4_core0.$strict>]>>; functions: zod0.ZodOptional>; externalPackages: zod0.ZodOptional; }, zod_v4_core0.$strict>]>>>; dev: zod0.ZodOptional; }, zod_v4_core0.$strict>>; }, zod_v4_core0.$strict>>>; buckets: zod0.ZodOptional, zod0.ZodLiteral<"public_read">]>>; }, zod_v4_core0.$strict>>>; }, zod_v4_core0.$strict>>; branch: zod0.ZodOptional unknown, (...args: unknown[]) => unknown>>; }, zod_v4_core0.$strict>; readonly branchTuning: zod0.ZodObject<{ parent: zod0.ZodOptional; protected: zod0.ZodOptional; ttl: zod0.ZodOptional>; postgres: zod0.ZodOptional, zod0.ZodLiteral<0.5>, zod0.ZodLiteral<1>, zod0.ZodLiteral<2>, zod0.ZodLiteral<4>, zod0.ZodLiteral<8>]>>; autoscalingLimitMaxCu: zod0.ZodOptional, zod0.ZodLiteral<0.5>, zod0.ZodLiteral<1>, zod0.ZodLiteral<2>, zod0.ZodLiteral<4>, zod0.ZodLiteral<8>]>>; suspendTimeout: zod0.ZodOptional, zod0.ZodString, zod0.ZodNumber]>>; }, zod_v4_core0.$strict>>; }, zod_v4_core0.$strict>>; preview: zod0.ZodOptional>; }, zod_v4_core0.$strict>>>; }, zod_v4_core0.$strict>>; }, zod_v4_core0.$strict>; readonly bucket: zod0.ZodObject<{ access: zod0.ZodOptional, zod0.ZodLiteral<"public_read">]>>; }, zod_v4_core0.$strict>; readonly computeSettings: zod0.ZodObject<{ autoscalingLimitMinCu: zod0.ZodOptional, zod0.ZodLiteral<0.5>, zod0.ZodLiteral<1>, zod0.ZodLiteral<2>, zod0.ZodLiteral<4>, zod0.ZodLiteral<8>]>>; autoscalingLimitMaxCu: zod0.ZodOptional, zod0.ZodLiteral<0.5>, zod0.ZodLiteral<1>, zod0.ZodLiteral<2>, zod0.ZodLiteral<4>, zod0.ZodLiteral<8>]>>; suspendTimeout: zod0.ZodOptional, zod0.ZodString, zod0.ZodNumber]>>; }, zod_v4_core0.$strict>; readonly dataApi: zod0.ZodObject<{ enabled: zod0.ZodOptional; authProvider: zod0.ZodOptional, zod0.ZodLiteral<"external">]>>; jwksUrl: zod0.ZodOptional; providerName: zod0.ZodOptional; jwtAudience: zod0.ZodOptional; settings: zod0.ZodOptional; dbAnonRole: zod0.ZodOptional; dbExtraSearchPath: zod0.ZodOptional; dbMaxRows: zod0.ZodOptional; dbSchemas: zod0.ZodOptional>; jwtRoleClaimKey: zod0.ZodOptional; jwtCacheMaxLifetime: zod0.ZodOptional; openapiMode: zod0.ZodOptional, zod0.ZodLiteral<"disabled">]>>; serverCorsAllowedOrigins: zod0.ZodOptional; serverTimingEnabled: zod0.ZodOptional; }, zod_v4_core0.$strict>>; }, zod_v4_core0.$strict>; readonly dataApiInput: zod0.ZodUnion; authProvider: zod0.ZodOptional, zod0.ZodLiteral<"external">]>>; jwksUrl: zod0.ZodOptional; providerName: zod0.ZodOptional; jwtAudience: zod0.ZodOptional; settings: zod0.ZodOptional; dbAnonRole: zod0.ZodOptional; dbExtraSearchPath: zod0.ZodOptional; dbMaxRows: zod0.ZodOptional; dbSchemas: zod0.ZodOptional>; jwtRoleClaimKey: zod0.ZodOptional; jwtCacheMaxLifetime: zod0.ZodOptional; openapiMode: zod0.ZodOptional, zod0.ZodLiteral<"disabled">]>>; serverCorsAllowedOrigins: zod0.ZodOptional; serverTimingEnabled: zod0.ZodOptional; }, zod_v4_core0.$strict>>; }, zod_v4_core0.$strict>]>; readonly dataApiSettings: zod0.ZodObject<{ dbAggregatesEnabled: zod0.ZodOptional; dbAnonRole: zod0.ZodOptional; dbExtraSearchPath: zod0.ZodOptional; dbMaxRows: zod0.ZodOptional; dbSchemas: zod0.ZodOptional>; jwtRoleClaimKey: zod0.ZodOptional; jwtCacheMaxLifetime: zod0.ZodOptional; openapiMode: zod0.ZodOptional, zod0.ZodLiteral<"disabled">]>>; serverCorsAllowedOrigins: zod0.ZodOptional; serverTimingEnabled: zod0.ZodOptional; }, zod_v4_core0.$strict>; readonly function: zod0.ZodObject<{ name: zod0.ZodString; source: zod0.ZodString; env: zod0.ZodOptional>; externalPackages: zod0.ZodOptional; }, zod_v4_core0.$strict>]>>>; dev: zod0.ZodOptional; }, zod_v4_core0.$strict>>; }, zod_v4_core0.$strict>; readonly functionTuning: zod0.ZodObject<{ runtime: zod0.ZodOptional>; }, zod_v4_core0.$strict>; readonly postgres: zod0.ZodObject<{ computeSettings: zod0.ZodOptional, zod0.ZodLiteral<0.5>, zod0.ZodLiteral<1>, zod0.ZodLiteral<2>, zod0.ZodLiteral<4>, zod0.ZodLiteral<8>]>>; autoscalingLimitMaxCu: zod0.ZodOptional, zod0.ZodLiteral<0.5>, zod0.ZodLiteral<1>, zod0.ZodLiteral<2>, zod0.ZodLiteral<4>, zod0.ZodLiteral<8>]>>; suspendTimeout: zod0.ZodOptional, zod0.ZodString, zod0.ZodNumber]>>; }, zod_v4_core0.$strict>>; }, zod_v4_core0.$strict>; readonly preview: zod0.ZodObject<{ aiGateway: zod0.ZodOptional; }, zod_v4_core0.$strict>]>>; functions: zod0.ZodOptional>; externalPackages: zod0.ZodOptional; }, zod_v4_core0.$strict>]>>>; dev: zod0.ZodOptional; }, zod_v4_core0.$strict>>; }, zod_v4_core0.$strict>>>; buckets: zod0.ZodOptional, zod0.ZodLiteral<"public_read">]>>; }, zod_v4_core0.$strict>>>; }, zod_v4_core0.$strict>; readonly service: zod0.ZodObject<{ enabled: zod0.ZodOptional; }, zod_v4_core0.$strict>; readonly serviceInput: zod0.ZodUnion; }, zod_v4_core0.$strict>]>; }; //#endregion export { type AppliedChange, type BranchTarget, type BranchTuning, type BranchTuningFn, type BucketAccessLevel, type BucketDef, type ComputeSettings, type ComputeUnit, type Config, ConfigLoadError, ConfigValidationError, type ConflictReport, type CreateBranchInput, type CreateBucketInput, type CreateCredentialInput, type CreateProjectInput, type CredentialFeatureFlags, type CredentialPrincipalType, type CredentialScope, DATA_API_AUTH_PROVIDERS, type DataApiAuthProvider, type DataApiConfig, type DataApiExternalAuthConfig, type DataApiInput, type DataApiNeonAuthConfig, type DataApiSettings, type DeployFunctionInput, type DiffOptions, type DiffResult, type DurationString, type DurationUnit, type EnableDataApiInput, ErrorCode, type ExternalPackageDef, type ExternalPackageEntry, type FunctionDef, type FunctionDevConfig, type FunctionRuntime, type FunctionTuning, type GetConnectionUriInput, type LoadConfigOptions, MissingContextError, type NeonApi, type NeonAuthSnapshot, type NeonBranchSnapshot, type NeonBranchStorageSnapshot, type NeonBucketSnapshot, type NeonCredentialMeta, type NeonCredentialSecret, type NeonDataApiSnapshot, type NeonDatabaseSnapshot, type NeonEndpointSnapshot, type NeonFunctionDeploymentSnapshot, type NeonFunctionSnapshot, type NeonProjectSnapshot, type NeonRoleSnapshot, PartialBranchCreateError, type PlanStep, PlatformError, type PostgresConfig, type PreviewInput, type PreviewTuning, PushAbortedError, PushConflictError, type PushResult, type RemotePreviewState, type RemoteServiceState, type RemoteState, type ResolvedBranchConfig, type ResolvedBucketConfig, type ResolvedDataApiConfig, type ResolvedExternalPackage, type ResolvedFunctionConfig, type ResolvedPreviewConfig, type ServiceEnabled, type ServiceToggle, type ServiceToggleInput, type UpdateBranchInput, createNeonApiFromOptions, createRealNeonApi, credentialScopesSatisfied, defineConfig, deriveCredentialScopes, diffConfig, errors, externalPackageRoot, isPartialBranchCreateError, isPlatformError, loadConfigFromFile, packagesToStage, resolveConfig, schemas }; //# sourceMappingURL=v1.d.ts.map