import { r as __exportAll } from "./chunk-BSw8zbkd.mjs";
import { A as any, F as object, I as string, M as boolean, N as lazy, P as literal, R as url, f as createAction, j as array, k as _enum } from "./dist-t40iqfEE.mjs";
//#region document-models/vetra-cloud-environment/v1/gen/schema/zod.ts
const isDefinedNonNullAny = (v) => v !== void 0 && v !== null;
const definedNonNullAnySchema = any().refine((v) => isDefinedNonNullAny(v));
const AutoUpdateChannelSchema = _enum([
	"DEV",
	"LATEST",
	"STAGING"
]);
const ServiceStatusSchema = _enum([
	"ACTIVE",
	"BILLING_ISSUE",
	"PROVISIONING",
	"SUSPENDED"
]);
const VetraCloudEnvironmentServiceTypeSchema = _enum([
	"CLINT",
	"CONNECT",
	"FUSION",
	"SWITCHBOARD"
]);
const VetraCloudEnvironmentStatusSchema = _enum([
	"ARCHIVED",
	"CHANGES_APPROVED",
	"CHANGES_PENDING",
	"CHANGES_PUSHED",
	"DEPLOYING",
	"DEPLOYMENt_FAILED",
	"DESTROYED",
	"DRAFT",
	"READY",
	"STOPPED",
	"TERMINATING"
]);
const VetraCloudRessourceSizeSchema = _enum([
	"VETRA_AGENT_L",
	"VETRA_AGENT_M",
	"VETRA_AGENT_S",
	"VETRA_AGENT_XL",
	"VETRA_AGENT_XXL"
]);
function AddPackageInputSchema() {
	return object({
		packageName: string(),
		registry: url().nullish(),
		version: string().nullish()
	});
}
function ApproveChangesInputSchema() {
	return object({ _placeholder: string().nullish() });
}
function ArchiveInputSchema() {
	return object({ _placeholder: string().nullish() });
}
function DisableServiceInputSchema() {
	return object({
		prefix: string().nullish(),
		type: VetraCloudEnvironmentServiceTypeSchema
	});
}
function DnsRecordSchema() {
	return object({
		__typename: literal("DnsRecord").optional(),
		host: string(),
		type: string(),
		value: string()
	});
}
function DnsRecordInputSchema() {
	return object({
		host: string(),
		type: string(),
		value: string()
	});
}
function EnableServiceInputSchema() {
	return object({
		clintConfig: lazy(() => VetraCloudServiceClintInputSchema().nullish()),
		prefix: string(),
		selectedRessource: VetraCloudRessourceSizeSchema.nullish(),
		type: VetraCloudEnvironmentServiceTypeSchema
	});
}
function InitializeInputSchema() {
	return object({
		defaultPackageRegistry: url().nullish(),
		genericBaseDomain: string(),
		genericSubdomain: string()
	});
}
function MarkChangesPushedInputSchema() {
	return object({ _placeholder: string().nullish() });
}
function MarkDeploymentStartedInputSchema() {
	return object({ _placeholder: string().nullish() });
}
function MarkDestroyedInputSchema() {
	return object({ _placeholder: string().nullish() });
}
function RemovePackageInputSchema() {
	return object({ packageName: string() });
}
function ReportDeploymentFailedInputSchema() {
	return object({
		code: string(),
		message: string()
	});
}
function ReportDeploymentSucceededInputSchema() {
	return object({ _placeholder: string().nullish() });
}
function SetApexServiceInputSchema() {
	return object({ type: VetraCloudEnvironmentServiceTypeSchema.nullish() });
}
function SetAutoUpdateChannelInputSchema() {
	return object({ channel: AutoUpdateChannelSchema.nullish() });
}
function SetCustomDomainInputSchema() {
	return object({
		domain: string().nullish(),
		enabled: boolean()
	});
}
function SetDefaultPackageRegistryInputSchema() {
	return object({ defaultPackageRegistry: url() });
}
function SetDnsRecordsInputSchema() {
	return object({ records: array(lazy(() => DnsRecordInputSchema())) });
}
function SetGenericSubdomainInputSchema() {
	return object({ genericSubdomain: string() });
}
function SetLabelInputSchema() {
	return object({ label: string() });
}
function SetOwnerInputSchema() {
	return object({ address: string().regex(/^0x[a-fA-F0-9]{40}$/, { message: "Invalid Ethereum address format" }) });
}
function SetPackageVersionInputSchema() {
	return object({
		packageName: string(),
		version: string()
	});
}
function SetRuntimeConfigInputSchema() {
	return object({ config: string().nullish() });
}
function SetServiceConfigInputSchema() {
	return object({
		config: lazy(() => VetraCloudServiceClintConfigInputSchema()),
		prefix: string()
	});
}
function SetServiceSizeInputSchema() {
	return object({
		prefix: string(),
		size: VetraCloudRessourceSizeSchema
	});
}
function SetServiceStatusInputSchema() {
	return object({
		prefix: string().nullish(),
		status: ServiceStatusSchema,
		type: VetraCloudEnvironmentServiceTypeSchema,
		url: string().nullish()
	});
}
function SetServiceVersionInputSchema() {
	return object({
		type: VetraCloudEnvironmentServiceTypeSchema,
		version: string()
	});
}
function SetStudioInstanceInputSchema() {
	return object({ studioInstanceId: string().nullish() });
}
function SleepEnvironmentInputSchema() {
	return object({ _placeholder: string().nullish() });
}
function TerminateEnvironmentInputSchema() {
	return object({ _placeholder: string().nullish() });
}
function ToggleServiceInputSchema() {
	return object({ type: VetraCloudEnvironmentServiceTypeSchema });
}
function UnarchiveInputSchema() {
	return object({ _placeholder: string().nullish() });
}
function UpdateServicePrefixInputSchema() {
	return object({
		prefix: string(),
		type: VetraCloudEnvironmentServiceTypeSchema
	});
}
function VetraCloudEnvironmentServiceSchema() {
	return object({
		__typename: literal("VetraCloudEnvironmentService").optional(),
		config: lazy(() => VetraCloudServiceClintSchema().nullish()),
		enabled: boolean(),
		prefix: string(),
		selectedRessource: VetraCloudRessourceSizeSchema.nullish(),
		status: ServiceStatusSchema,
		type: VetraCloudEnvironmentServiceTypeSchema,
		url: string().nullish(),
		version: string().nullish()
	});
}
function VetraCloudEnvironmentStateSchema() {
	return object({
		__typename: literal("VetraCloudEnvironmentState").optional(),
		apexService: VetraCloudEnvironmentServiceTypeSchema.nullish(),
		autoUpdateChannel: AutoUpdateChannelSchema.nullish(),
		customDomain: lazy(() => VetraCustomDomainSchema().nullish()),
		defaultPackageRegistry: url().nullish(),
		genericBaseDomain: string().nullish(),
		genericSubdomain: string().nullish(),
		label: string().nullish(),
		owner: string().regex(/^0x[a-fA-F0-9]{40}$/, { message: "Invalid Ethereum address format" }).nullish(),
		packages: array(lazy(() => VetraCloudPackageSchema())),
		runtimeConfig: string().nullish(),
		services: array(lazy(() => VetraCloudEnvironmentServiceSchema())),
		status: VetraCloudEnvironmentStatusSchema,
		studioInstanceId: string().nullish()
	});
}
function VetraCloudPackageSchema() {
	return object({
		__typename: literal("VetraCloudPackage").optional(),
		name: string(),
		registry: url(),
		version: string().nullish()
	});
}
function VetraCloudPackageConfigInputSchema() {
	return object({
		name: string(),
		registry: url(),
		version: string().nullish()
	});
}
function VetraCloudPackageInputSchema() {
	return object({
		name: string(),
		registry: url(),
		version: string().nullish()
	});
}
function VetraCloudServiceClintSchema() {
	return object({
		__typename: literal("VetraCloudServiceClint").optional(),
		env: array(lazy(() => VetraCloudServiceEnvSchema())),
		package: lazy(() => VetraCloudPackageSchema()),
		selectedRessource: VetraCloudRessourceSizeSchema.nullish(),
		serviceCommand: string().nullish()
	});
}
function VetraCloudServiceClintConfigInputSchema() {
	return object({
		env: array(lazy(() => VetraCloudServiceEnvConfigInputSchema())),
		package: lazy(() => VetraCloudPackageConfigInputSchema()),
		selectedRessource: VetraCloudRessourceSizeSchema.nullish(),
		serviceCommand: string().nullish()
	});
}
function VetraCloudServiceClintInputSchema() {
	return object({
		env: array(lazy(() => VetraCloudServiceEnvInputSchema())),
		package: lazy(() => VetraCloudPackageInputSchema()),
		selectedRessource: VetraCloudRessourceSizeSchema.nullish(),
		serviceCommand: string().nullish()
	});
}
function VetraCloudServiceEnvSchema() {
	return object({
		__typename: literal("VetraCloudServiceEnv").optional(),
		isSecret: boolean().nullish(),
		name: string(),
		value: string().nullish()
	});
}
function VetraCloudServiceEnvConfigInputSchema() {
	return object({
		isSecret: boolean().nullish(),
		name: string(),
		value: string().nullish()
	});
}
function VetraCloudServiceEnvInputSchema() {
	return object({
		isSecret: boolean().nullish(),
		name: string(),
		value: string().nullish()
	});
}
function VetraCustomDomainSchema() {
	return object({
		__typename: literal("VetraCustomDomain").optional(),
		dnsRecords: array(lazy(() => DnsRecordSchema())),
		domain: string().nullish(),
		enabled: boolean()
	});
}
function WakeEnvironmentInputSchema() {
	return object({ _placeholder: string().nullish() });
}
//#endregion
//#region document-models/vetra-cloud-environment/v1/gen/status-transitions/creators.ts
/**
* WARNING: DO NOT EDIT
* This file is auto-generated and updated by codegen
*/
var creators_exports = /* @__PURE__ */ __exportAll({
	approveChanges: () => approveChanges,
	archive: () => archive,
	initialize: () => initialize,
	markChangesPushed: () => markChangesPushed,
	markDeploymentStarted: () => markDeploymentStarted,
	markDestroyed: () => markDestroyed,
	reportDeploymentFailed: () => reportDeploymentFailed,
	reportDeploymentSucceeded: () => reportDeploymentSucceeded,
	sleepEnvironment: () => sleepEnvironment,
	terminateEnvironment: () => terminateEnvironment,
	unarchive: () => unarchive,
	wakeEnvironment: () => wakeEnvironment
});
const initialize = (input) => createAction("INITIALIZE", { ...input }, void 0, InitializeInputSchema, "global");
const markChangesPushed = (input) => createAction("MARK_CHANGES_PUSHED", { ...input }, void 0, MarkChangesPushedInputSchema, "global");
const markDeploymentStarted = (input) => createAction("MARK_DEPLOYMENT_STARTED", { ...input }, void 0, MarkDeploymentStartedInputSchema, "global");
const reportDeploymentSucceeded = (input) => createAction("REPORT_DEPLOYMENT_SUCCEEDED", { ...input }, void 0, ReportDeploymentSucceededInputSchema, "global");
const reportDeploymentFailed = (input) => createAction("REPORT_DEPLOYMENT_FAILED", { ...input }, void 0, ReportDeploymentFailedInputSchema, "global");
const approveChanges = (input) => createAction("APPROVE_CHANGES", { ...input }, void 0, ApproveChangesInputSchema, "global");
const terminateEnvironment = (input) => createAction("TERMINATE_ENVIRONMENT", { ...input }, void 0, TerminateEnvironmentInputSchema, "global");
const markDestroyed = (input) => createAction("MARK_DESTROYED", { ...input }, void 0, MarkDestroyedInputSchema, "global");
const archive = (input) => createAction("ARCHIVE", { ...input }, void 0, ArchiveInputSchema, "global");
const unarchive = (input) => createAction("UNARCHIVE", { ...input }, void 0, UnarchiveInputSchema, "global");
const sleepEnvironment = (input) => createAction("SLEEP_ENVIRONMENT", { ...input }, void 0, SleepEnvironmentInputSchema, "global");
const wakeEnvironment = (input) => createAction("WAKE_ENVIRONMENT", { ...input }, void 0, WakeEnvironmentInputSchema, "global");
//#endregion
export { VetraCloudEnvironmentStatusSchema as $, SetApexServiceInputSchema as A, SetServiceConfigInputSchema as B, MarkChangesPushedInputSchema as C, ReportDeploymentFailedInputSchema as D, RemovePackageInputSchema as E, SetGenericSubdomainInputSchema as F, SleepEnvironmentInputSchema as G, SetServiceStatusInputSchema as H, SetLabelInputSchema as I, UnarchiveInputSchema as J, TerminateEnvironmentInputSchema as K, SetOwnerInputSchema as L, SetCustomDomainInputSchema as M, SetDefaultPackageRegistryInputSchema as N, ReportDeploymentSucceededInputSchema as O, SetDnsRecordsInputSchema as P, VetraCloudEnvironmentStateSchema as Q, SetPackageVersionInputSchema as R, InitializeInputSchema as S, MarkDestroyedInputSchema as T, SetServiceVersionInputSchema as U, SetServiceSizeInputSchema as V, SetStudioInstanceInputSchema as W, VetraCloudEnvironmentServiceSchema as X, UpdateServicePrefixInputSchema as Y, VetraCloudEnvironmentServiceTypeSchema as Z, AutoUpdateChannelSchema as _, markChangesPushed as a, VetraCloudServiceClintInputSchema as at, DnsRecordSchema as b, reportDeploymentFailed as c, VetraCloudServiceEnvInputSchema as ct, terminateEnvironment as d, WakeEnvironmentInputSchema as dt, VetraCloudPackageConfigInputSchema as et, unarchive as f, definedNonNullAnySchema as ft, ArchiveInputSchema as g, ApproveChangesInputSchema as h, initialize as i, VetraCloudServiceClintConfigInputSchema as it, SetAutoUpdateChannelInputSchema as j, ServiceStatusSchema as k, reportDeploymentSucceeded as l, VetraCloudServiceEnvSchema as lt, AddPackageInputSchema as m, archive as n, VetraCloudPackageSchema as nt, markDeploymentStarted as o, VetraCloudServiceClintSchema as ot, wakeEnvironment as p, isDefinedNonNullAny as pt, ToggleServiceInputSchema as q, creators_exports as r, VetraCloudRessourceSizeSchema as rt, markDestroyed as s, VetraCloudServiceEnvConfigInputSchema as st, approveChanges as t, VetraCloudPackageInputSchema as tt, sleepEnvironment as u, VetraCustomDomainSchema as ut, DisableServiceInputSchema as v, MarkDeploymentStartedInputSchema as w, EnableServiceInputSchema as x, DnsRecordInputSchema as y, SetRuntimeConfigInputSchema as z };

//# sourceMappingURL=creators-D4wiR4rK.mjs.map