@alienplatform/core 1.10.6 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +16 -17
- package/dist/index.d.ts +2031 -244
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +109 -2
- package/dist/index.js.map +1 -1
- package/dist/stack.js +422 -38
- package/dist/stack.js.map +1 -1
- package/dist/tests/index.d.ts +2 -2
- package/dist/tests/index.d.ts.map +1 -1
- package/dist/tests/index.js +1 -1
- package/package.json +1 -1
- package/src/__tests__/stack.test.ts +25 -0
- package/src/container.ts +10 -0
- package/src/daemon.ts +10 -0
- package/src/generated/index.ts +42 -0
- package/src/generated/schemas/alienEvent.json +1 -1
- package/src/generated/schemas/auroraPostgresHeartbeatData.json +1 -0
- package/src/generated/schemas/awsComputeClusterHeartbeatData.json +1 -1
- package/src/generated/schemas/awsDaemonHeartbeatData.json +1 -1
- package/src/generated/schemas/awsPostgresImportData.json +1 -0
- package/src/generated/schemas/azureComputeClusterHeartbeatData.json +1 -1
- package/src/generated/schemas/azureDaemonHeartbeatData.json +1 -1
- package/src/generated/schemas/azureFlexibleServerPostgresHeartbeatData.json +1 -0
- package/src/generated/schemas/azureFlexibleServerPostgresImportData.json +1 -0
- package/src/generated/schemas/azureVnetNetworkHeartbeatData.json +1 -1
- package/src/generated/schemas/computeCapacityGroupStatus.json +1 -1
- package/src/generated/schemas/computeClusterHeartbeatData.json +1 -1
- package/src/generated/schemas/computeDrainBlocker.json +1 -0
- package/src/generated/schemas/computeDrainProgress.json +1 -0
- package/src/generated/schemas/computeDrainProgressStatus.json +1 -0
- package/src/generated/schemas/container.json +1 -1
- package/src/generated/schemas/daemon.json +1 -1
- package/src/generated/schemas/daemonHeartbeatData.json +1 -1
- package/src/generated/schemas/deploymentStatus.json +1 -1
- package/src/generated/schemas/domainSettings.json +1 -1
- package/src/generated/schemas/eventChange.json +1 -1
- package/src/generated/schemas/gcpCloudSqlPostgresHeartbeatData.json +1 -0
- package/src/generated/schemas/gcpComputeClusterHeartbeatData.json +1 -1
- package/src/generated/schemas/gcpDaemonHeartbeatData.json +1 -1
- package/src/generated/schemas/gcpPostgresImportData.json +1 -0
- package/src/generated/schemas/localDaemonHeartbeatData.json +1 -1
- package/src/generated/schemas/localPostgresHeartbeatData.json +1 -0
- package/src/generated/schemas/machinesComputeClusterHeartbeatData.json +1 -0
- package/src/generated/schemas/machinesComputeMachineStatus.json +1 -0
- package/src/generated/schemas/machinesDaemonHeartbeatData.json +1 -0
- package/src/generated/schemas/networkHeartbeatData.json +1 -1
- package/src/generated/schemas/networkSettings.json +1 -1
- package/src/generated/schemas/observedInventoryBatch.json +1 -0
- package/src/generated/schemas/observedResourceSample.json +1 -0
- package/src/generated/schemas/platform.json +1 -1
- package/src/generated/schemas/postgres.json +1 -0
- package/src/generated/schemas/postgresBackend.json +1 -0
- package/src/generated/schemas/postgresHeartbeatData.json +1 -0
- package/src/generated/schemas/postgresHeartbeatStatus.json +1 -0
- package/src/generated/schemas/postgresOutputs.json +1 -0
- package/src/generated/schemas/publicEndpointTargetSettings.json +1 -0
- package/src/generated/schemas/resourceHeartbeat.json +1 -1
- package/src/generated/schemas/resourceHeartbeatData.json +1 -1
- package/src/generated/schemas/stack.json +1 -1
- package/src/generated/schemas/stackImportRequest.json +1 -1
- package/src/generated/schemas/stackImportResponse.json +1 -1
- package/src/generated/schemas/stackInputDefinition.json +1 -1
- package/src/generated/schemas/stackResourceState.json +1 -1
- package/src/generated/schemas/stackSettings.json +1 -1
- package/src/generated/schemas/stackState.json +1 -1
- package/src/generated/zod/agent-status-schema.ts +1 -1
- package/src/generated/zod/aurora-postgres-heartbeat-data-schema.ts +20 -0
- package/src/generated/zod/aws-daemon-heartbeat-data-schema.ts +1 -1
- package/src/generated/zod/aws-postgres-import-data-schema.ts +23 -0
- package/src/generated/zod/azure-daemon-heartbeat-data-schema.ts +1 -1
- package/src/generated/zod/azure-flexible-server-postgres-heartbeat-data-schema.ts +18 -0
- package/src/generated/zod/azure-flexible-server-postgres-import-data-schema.ts +25 -0
- package/src/generated/zod/azure-vnet-network-heartbeat-data-schema.ts +1 -0
- package/src/generated/zod/compute-capacity-group-status-schema.ts +4 -0
- package/src/generated/zod/compute-cluster-heartbeat-data-schema.ts +3 -0
- package/src/generated/zod/compute-drain-blocker-schema.ts +16 -0
- package/src/generated/zod/compute-drain-progress-schema.ts +26 -0
- package/src/generated/zod/compute-drain-progress-status-schema.ts +10 -0
- package/src/generated/zod/container-schema.ts +2 -1
- package/src/generated/zod/daemon-heartbeat-data-schema.ts +3 -0
- package/src/generated/zod/daemon-schema.ts +2 -1
- package/src/generated/zod/deployment-status-schema.ts +2 -2
- package/src/generated/zod/domain-settings-schema.ts +5 -1
- package/src/generated/zod/gcp-cloud-sql-postgres-heartbeat-data-schema.ts +18 -0
- package/src/generated/zod/gcp-daemon-heartbeat-data-schema.ts +1 -1
- package/src/generated/zod/gcp-postgres-import-data-schema.ts +23 -0
- package/src/generated/zod/index.ts +42 -0
- package/src/generated/zod/local-daemon-heartbeat-data-schema.ts +1 -1
- package/src/generated/zod/local-postgres-heartbeat-data-schema.ts +19 -0
- package/src/generated/zod/machines-compute-cluster-heartbeat-data-schema.ts +36 -0
- package/src/generated/zod/machines-compute-machine-status-schema.ts +30 -0
- package/src/generated/zod/machines-daemon-heartbeat-data-schema.ts +35 -0
- package/src/generated/zod/network-settings-schema.ts +1 -0
- package/src/generated/zod/observed-inventory-batch-schema.ts +27 -0
- package/src/generated/zod/observed-resource-sample-schema.ts +54 -0
- package/src/generated/zod/platform-schema.ts +1 -1
- package/src/generated/zod/postgres-backend-schema.ts +15 -0
- package/src/generated/zod/postgres-heartbeat-data-schema.ts +22 -0
- package/src/generated/zod/postgres-heartbeat-status-schema.ts +26 -0
- package/src/generated/zod/postgres-outputs-schema.ts +17 -0
- package/src/generated/zod/postgres-schema.ts +24 -0
- package/src/generated/zod/public-endpoint-target-settings-schema.ts +18 -0
- package/src/generated/zod/resource-heartbeat-data-schema.ts +6 -0
- package/src/generated/zod/resource-heartbeat-schema.ts +1 -1
- package/src/index.ts +5 -0
- package/src/postgres.ts +107 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { PostgresHeartbeatStatusSchema } from "./postgres-heartbeat-status-schema.js";
|
|
8
|
+
|
|
9
|
+
export const AuroraPostgresHeartbeatDataSchema = z.object({
|
|
10
|
+
"clusterIdentifier": z.string(),
|
|
11
|
+
"endpoint": z.string().nullish(),
|
|
12
|
+
"engineVersion": z.string().nullish(),
|
|
13
|
+
"neverPauses": z.boolean().describe("True when a `minCapacity: 0` instance has not reached 0 ACU over the observation\nwindow — it is silently paying always-on prices (auto-pause verification)."),
|
|
14
|
+
"serverlessCapacity": z.number().describe("Latest sampled `ServerlessDatabaseCapacity` (ACU).").nullish(),
|
|
15
|
+
get "status"(){
|
|
16
|
+
return PostgresHeartbeatStatusSchema
|
|
17
|
+
}
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
export type AuroraPostgresHeartbeatData = z.infer<typeof AuroraPostgresHeartbeatDataSchema>
|
|
@@ -15,7 +15,7 @@ export const AwsDaemonHeartbeatDataSchema = z.object({
|
|
|
15
15
|
get "daemonInstances"(){
|
|
16
16
|
return z.array(ManagedRuntimeUnitStatusSchema)
|
|
17
17
|
},
|
|
18
|
-
"daemonName": z.string(),
|
|
18
|
+
"daemonName": z.optional(z.string()),
|
|
19
19
|
"desiredMachines": z.int().min(0),
|
|
20
20
|
get "events"(){
|
|
21
21
|
return z.array(ManagedRuntimeEventSnapshotSchema)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description AWS Postgres (Aurora Serverless v2) registration data: the handles by which a\nsetup-created Aurora cluster is registered as a Frozen Postgres resource. Setup owns\nthe cluster, Alien refreshes and heartbeats it. Carries the master password\'s Secrets\nManager ARN, never the password.
|
|
10
|
+
*/
|
|
11
|
+
export const AwsPostgresImportDataSchema = z.object({
|
|
12
|
+
"clusterEndpoint": z.string().describe("Cluster writer endpoint (the binding host)."),
|
|
13
|
+
"clusterIdentifier": z.string().describe("Aurora DB cluster identifier."),
|
|
14
|
+
"database": z.string().describe("Default database name."),
|
|
15
|
+
"engineVersion": z.string().describe("Engine version the cluster reports."),
|
|
16
|
+
"instanceIdentifier": z.string().describe("Writer instance identifier within the cluster."),
|
|
17
|
+
"passwordSecretArn": z.string().describe("Secrets Manager ARN of the master password (never the password itself)."),
|
|
18
|
+
"securityGroupId": z.string().describe("Dedicated security group admitting 5432 from the stack security group."),
|
|
19
|
+
"subnetGroupName": z.string().describe("DB subnet group spanning the private subnets."),
|
|
20
|
+
"username": z.string().describe("Master username.")
|
|
21
|
+
}).describe("AWS Postgres (Aurora Serverless v2) registration data: the handles by which a\nsetup-created Aurora cluster is registered as a Frozen Postgres resource. Setup owns\nthe cluster, Alien refreshes and heartbeats it. Carries the master password's Secrets\nManager ARN, never the password.")
|
|
22
|
+
|
|
23
|
+
export type AwsPostgresImportData = z.infer<typeof AwsPostgresImportDataSchema>
|
|
@@ -15,7 +15,7 @@ export const AzureDaemonHeartbeatDataSchema = z.object({
|
|
|
15
15
|
get "daemonInstances"(){
|
|
16
16
|
return z.array(ManagedRuntimeUnitStatusSchema)
|
|
17
17
|
},
|
|
18
|
-
"daemonName": z.string(),
|
|
18
|
+
"daemonName": z.optional(z.string()),
|
|
19
19
|
"desiredMachines": z.int().min(0),
|
|
20
20
|
get "events"(){
|
|
21
21
|
return z.array(ManagedRuntimeEventSnapshotSchema)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { PostgresHeartbeatStatusSchema } from "./postgres-heartbeat-status-schema.js";
|
|
8
|
+
|
|
9
|
+
export const AzureFlexibleServerPostgresHeartbeatDataSchema = z.object({
|
|
10
|
+
"serverName": z.string(),
|
|
11
|
+
"state": z.string().nullish(),
|
|
12
|
+
get "status"(){
|
|
13
|
+
return PostgresHeartbeatStatusSchema
|
|
14
|
+
},
|
|
15
|
+
"version": z.string().nullish()
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
export type AzureFlexibleServerPostgresHeartbeatData = z.infer<typeof AzureFlexibleServerPostgresHeartbeatDataSchema>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description Azure Postgres (Flexible Server + Private Endpoint) registration data: the handles by\nwhich a setup-created Flexible Server (with its Private Endpoint, private DNS zone, and\nthe Key Vault secret holding the master password) is registered as a Frozen Postgres\nresource. Setup owns the server, Alien refreshes and heartbeats it. The raw password is\nnever carried, only the Key Vault secret URI.
|
|
10
|
+
*/
|
|
11
|
+
export const AzureFlexibleServerPostgresImportDataSchema = z.object({
|
|
12
|
+
"database": z.string().describe("Default database name."),
|
|
13
|
+
"host": z.string().describe("Private DNS FQDN host workloads resolve to reach the server (the binding host)."),
|
|
14
|
+
"keyVaultUrl": z.string().describe("Key Vault base URL holding the password (e.g. `https://<vault>.vault.azure.net`)."),
|
|
15
|
+
"passwordSecretName": z.string().describe("Key Vault secret name of the master password (never the password)."),
|
|
16
|
+
"passwordSecretUri": z.string().describe("Key Vault secret URI of the master password; the binding carries this and the\nworkload resolves the value at load time."),
|
|
17
|
+
"privateEndpointName": z.string().describe("Private Endpoint name fronting the server in the dedicated PE subnet."),
|
|
18
|
+
"region": z.string().describe("Azure region the server lives in."),
|
|
19
|
+
"resourceGroup": z.string().describe("Resource group the server lives in."),
|
|
20
|
+
"serverName": z.string().describe("Flexible Server name on Azure."),
|
|
21
|
+
"serverResourceId": z.string().describe("Full ARM resource id of the Flexible Server (the deletable handle)."),
|
|
22
|
+
"version": z.string().describe("Engine version the server reports.")
|
|
23
|
+
}).describe("Azure Postgres (Flexible Server + Private Endpoint) registration data: the handles by\nwhich a setup-created Flexible Server (with its Private Endpoint, private DNS zone, and\nthe Key Vault secret holding the master password) is registered as a Frozen Postgres\nresource. Setup owns the server, Alien refreshes and heartbeats it. The raw password is\nnever carried, only the Key Vault secret URI.")
|
|
24
|
+
|
|
25
|
+
export type AzureFlexibleServerPostgresImportData = z.infer<typeof AzureFlexibleServerPostgresImportDataSchema>
|
|
@@ -14,6 +14,7 @@ export const AzureVnetNetworkHeartbeatDataSchema = z.object({
|
|
|
14
14
|
"location": z.string().nullish(),
|
|
15
15
|
"natGatewayId": z.string().nullish(),
|
|
16
16
|
"nsgId": z.string().nullish(),
|
|
17
|
+
"privateEndpointSubnetName": z.string().nullish(),
|
|
17
18
|
"privateSubnetName": z.string().nullish(),
|
|
18
19
|
"publicIpId": z.string().nullish(),
|
|
19
20
|
"publicSubnetName": z.string().nullish(),
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
import { ComputeCapacityBlockerSchema } from "./compute-capacity-blocker-schema.js";
|
|
8
8
|
import { ComputeCapacityRecommendationSchema } from "./compute-capacity-recommendation-schema.js";
|
|
9
|
+
import { ComputeDrainProgressSchema } from "./compute-drain-progress-schema.js";
|
|
9
10
|
|
|
10
11
|
export const ComputeCapacityGroupStatusSchema = z.object({
|
|
11
12
|
get "capacityBlocker"(){
|
|
@@ -13,6 +14,9 @@ export const ComputeCapacityGroupStatusSchema = z.object({
|
|
|
13
14
|
},
|
|
14
15
|
"currentMachines": z.int().min(0),
|
|
15
16
|
"desiredMachines": z.int().min(0),
|
|
17
|
+
get "drainProgress"(){
|
|
18
|
+
return z.union([ComputeDrainProgressSchema, z.null()]).optional()
|
|
19
|
+
},
|
|
16
20
|
"groupId": z.string(),
|
|
17
21
|
"instanceType": z.string().nullish(),
|
|
18
22
|
"maxMachines": z.int().min(0).nullish(),
|
|
@@ -8,6 +8,7 @@ import { AwsComputeClusterHeartbeatDataSchema } from "./aws-compute-cluster-hear
|
|
|
8
8
|
import { AzureComputeClusterHeartbeatDataSchema } from "./azure-compute-cluster-heartbeat-data-schema.js";
|
|
9
9
|
import { GcpComputeClusterHeartbeatDataSchema } from "./gcp-compute-cluster-heartbeat-data-schema.js";
|
|
10
10
|
import { LocalComputeClusterHeartbeatDataSchema } from "./local-compute-cluster-heartbeat-data-schema.js";
|
|
11
|
+
import { MachinesComputeClusterHeartbeatDataSchema } from "./machines-compute-cluster-heartbeat-data-schema.js";
|
|
11
12
|
|
|
12
13
|
export const ComputeClusterHeartbeatDataSchema = z.union([z.lazy(() => AwsComputeClusterHeartbeatDataSchema).and(z.object({
|
|
13
14
|
"backend": z.enum(["aws"])
|
|
@@ -15,6 +16,8 @@ export const ComputeClusterHeartbeatDataSchema = z.union([z.lazy(() => AwsComput
|
|
|
15
16
|
"backend": z.enum(["gcp"])
|
|
16
17
|
})), z.lazy(() => AzureComputeClusterHeartbeatDataSchema).and(z.object({
|
|
17
18
|
"backend": z.enum(["azure"])
|
|
19
|
+
})), z.lazy(() => MachinesComputeClusterHeartbeatDataSchema).and(z.object({
|
|
20
|
+
"backend": z.enum(["machines"])
|
|
18
21
|
})), z.lazy(() => LocalComputeClusterHeartbeatDataSchema).and(z.object({
|
|
19
22
|
"backend": z.enum(["local"])
|
|
20
23
|
}))])
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
export const ComputeDrainBlockerSchema = z.object({
|
|
9
|
+
"reason": z.string(),
|
|
10
|
+
"replicaId": z.string(),
|
|
11
|
+
"schedulingMode": z.string(),
|
|
12
|
+
"state": z.string(),
|
|
13
|
+
"workloadName": z.string()
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
export type ComputeDrainBlocker = z.infer<typeof ComputeDrainBlockerSchema>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ComputeDrainBlockerSchema } from "./compute-drain-blocker-schema.js";
|
|
8
|
+
import { ComputeDrainProgressStatusSchema } from "./compute-drain-progress-status-schema.js";
|
|
9
|
+
|
|
10
|
+
export const ComputeDrainProgressSchema = z.object({
|
|
11
|
+
get "blockers"(){
|
|
12
|
+
return z.array(ComputeDrainBlockerSchema).optional()
|
|
13
|
+
},
|
|
14
|
+
"drainDeadlineAt": z.string().nullish(),
|
|
15
|
+
"drainRequestedAt": z.string().nullish(),
|
|
16
|
+
"drainedAt": z.string().nullish(),
|
|
17
|
+
"force": z.boolean(),
|
|
18
|
+
"machineId": z.string(),
|
|
19
|
+
"replicaCount": z.int(),
|
|
20
|
+
"stalled": z.boolean(),
|
|
21
|
+
get "status"(){
|
|
22
|
+
return ComputeDrainProgressStatusSchema
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
export type ComputeDrainProgress = z.infer<typeof ComputeDrainProgressSchema>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
export const ComputeDrainProgressStatusSchema = z.enum(["draining", "drained", "terminating"])
|
|
9
|
+
|
|
10
|
+
export type ComputeDrainProgressStatus = z.infer<typeof ComputeDrainProgressStatusSchema>
|
|
@@ -58,7 +58,8 @@ get "publicEndpoints"(){
|
|
|
58
58
|
return z.array(PublicEndpointSchema.describe("Public endpoint configuration for port-backed workload resources.")).describe("Public endpoints exposed by the container.").optional()
|
|
59
59
|
},
|
|
60
60
|
"replicas": z.int().min(0).describe("Fixed replica count (for stateful containers or stateless without autoscaling)").nullish(),
|
|
61
|
-
"stateful": z.optional(z.boolean().describe("Whether container is stateful (gets stable ordinals, optional persistent volumes)"))
|
|
61
|
+
"stateful": z.optional(z.boolean().describe("Whether container is stateful (gets stable ordinals, optional persistent volumes)")),
|
|
62
|
+
"stopGracePeriodSeconds": z.int().min(1).max(86400).describe("Grace period in seconds for stopping replicas during updates, drains, and deletes.\n\nWhen omitted, the runtime backend applies its default. Valid values are\n1 second through 24 hours.").nullish()
|
|
62
63
|
}).describe("Container resource for running long-running container workloads.\n\nA Container defines a deployable unit that runs on a ComputeCluster.\nThe managed container backend handles scheduling replicas across machines,\nautoscaling based on various metrics, and service discovery.\n\n## Example\n\n```rust\nuse alien_core::{Container, ContainerCode, ResourceSpec, ContainerAutoscaling, PublicEndpoint, ExposeProtocol};\n\nlet container = Container::new(\"api\".to_string())\n .cluster(\"compute\".to_string())\n .code(ContainerCode::Image {\n image: \"myapp:latest\".to_string(),\n })\n .cpu(ResourceSpec { min: \"0.5\".to_string(), desired: \"1\".to_string() })\n .memory(ResourceSpec { min: \"512Mi\".to_string(), desired: \"1Gi\".to_string() })\n .port(8080)\n .public_endpoint(PublicEndpoint {\n name: \"api\".to_string(),\n port: 8080,\n protocol: ExposeProtocol::Http,\n host_label: None,\n wildcard_subdomains: false,\n })\n .autoscaling(ContainerAutoscaling {\n min: 2,\n desired: 3,\n max: 10,\n target_cpu_percent: Some(70.0),\n target_memory_percent: None,\n target_http_in_flight_per_replica: Some(100),\n max_http_p95_latency_ms: None,\n })\n .permissions(\"container-execution\".to_string())\n .build();\n```")
|
|
63
64
|
|
|
64
65
|
export type Container = z.infer<typeof ContainerSchema>
|
|
@@ -9,6 +9,7 @@ import { AzureDaemonHeartbeatDataSchema } from "./azure-daemon-heartbeat-data-sc
|
|
|
9
9
|
import { GcpDaemonHeartbeatDataSchema } from "./gcp-daemon-heartbeat-data-schema.js";
|
|
10
10
|
import { KubernetesDaemonHeartbeatDataSchema } from "./kubernetes-daemon-heartbeat-data-schema.js";
|
|
11
11
|
import { LocalDaemonHeartbeatDataSchema } from "./local-daemon-heartbeat-data-schema.js";
|
|
12
|
+
import { MachinesDaemonHeartbeatDataSchema } from "./machines-daemon-heartbeat-data-schema.js";
|
|
12
13
|
|
|
13
14
|
export const DaemonHeartbeatDataSchema = z.union([z.lazy(() => AwsDaemonHeartbeatDataSchema).and(z.object({
|
|
14
15
|
"backend": z.enum(["aws"])
|
|
@@ -16,6 +17,8 @@ export const DaemonHeartbeatDataSchema = z.union([z.lazy(() => AwsDaemonHeartbea
|
|
|
16
17
|
"backend": z.enum(["gcp"])
|
|
17
18
|
})), z.lazy(() => AzureDaemonHeartbeatDataSchema).and(z.object({
|
|
18
19
|
"backend": z.enum(["azure"])
|
|
20
|
+
})), z.lazy(() => MachinesDaemonHeartbeatDataSchema).and(z.object({
|
|
21
|
+
"backend": z.enum(["machines"])
|
|
19
22
|
})), z.lazy(() => KubernetesDaemonHeartbeatDataSchema).and(z.object({
|
|
20
23
|
"backend": z.enum(["kubernetes"])
|
|
21
24
|
})), z.lazy(() => LocalDaemonHeartbeatDataSchema).and(z.object({
|
|
@@ -41,7 +41,8 @@ get "publicEndpoints"(){
|
|
|
41
41
|
},
|
|
42
42
|
get "runtime"(){
|
|
43
43
|
return z.union([DaemonRuntimeSchema, z.null()]).optional()
|
|
44
|
-
}
|
|
44
|
+
},
|
|
45
|
+
"stopGracePeriodSeconds": z.int().min(1).max(86400).describe("Grace period in seconds for stopping daemon instances during updates, drains, and deletes.\n\nWhen omitted, the runtime backend applies its default. Valid values are\n1 second through 24 hours.").nullish()
|
|
45
46
|
})
|
|
46
47
|
|
|
47
48
|
export type Daemon = z.infer<typeof DaemonSchema>
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @description Deployment status in the deployment lifecycle
|
|
9
|
+
* @description Deployment status in the deployment lifecycle.\n\nFor observe-only deployments with no release or stack state, `Running`\nmeans the Operator is attached. Connectivity comes from `lastHeartbeatAt`;\nresource health comes from inventory and resource heartbeat data.
|
|
10
10
|
*/
|
|
11
|
-
export const DeploymentStatusSchema = z.enum(["pending", "preflights-failed", "initial-setup", "initial-setup-failed", "provisioning", "provisioning-failed", "running", "refresh-failed", "update-pending", "updating", "update-failed", "delete-pending", "deleting", "delete-failed", "teardown-required", "teardown-failed", "deleted", "error"]).describe("Deployment status in the deployment lifecycle")
|
|
11
|
+
export const DeploymentStatusSchema = z.enum(["pending", "preflights-failed", "initial-setup", "initial-setup-failed", "provisioning", "provisioning-failed", "running", "refresh-failed", "update-pending", "updating", "update-failed", "delete-pending", "deleting", "delete-failed", "teardown-required", "teardown-failed", "deleted", "error"]).describe("Deployment status in the deployment lifecycle.\n\nFor observe-only deployments with no release or stack state, `Running`\nmeans the Operator is attached. Connectivity comes from `lastHeartbeatAt`;\nresource health comes from inventory and resource heartbeat data.")
|
|
12
12
|
|
|
13
13
|
export type DeploymentStatus = z.infer<typeof DeploymentStatusSchema>
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
import { CustomDomainConfigSchema } from "./custom-domain-config-schema.js";
|
|
8
|
+
import { PublicEndpointTargetSettingsSchema } from "./public-endpoint-target-settings-schema.js";
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* @description Domain configuration for the stack.\n\nWhen `custom_domains` is set, the specified resources use customer-provided\ndomains and certificates. Otherwise, Alien auto-generates domains.
|
|
@@ -12,7 +13,10 @@ import { CustomDomainConfigSchema } from "./custom-domain-config-schema.js";
|
|
|
12
13
|
export const DomainSettingsSchema = z.object({
|
|
13
14
|
"customDomains": z.object({
|
|
14
15
|
|
|
15
|
-
}).catchall(z.lazy(() => CustomDomainConfigSchema).describe("Custom domain configuration for a single resource.")).describe("Custom domain configuration per resource ID.").nullish()
|
|
16
|
+
}).catchall(z.lazy(() => CustomDomainConfigSchema).describe("Custom domain configuration for a single resource.")).describe("Custom domain configuration per resource ID.").nullish(),
|
|
17
|
+
get "publicEndpointTarget"(){
|
|
18
|
+
return z.union([PublicEndpointTargetSettingsSchema, z.null()]).optional()
|
|
19
|
+
}
|
|
16
20
|
}).describe("Domain configuration for the stack.\n\nWhen `custom_domains` is set, the specified resources use customer-provided\ndomains and certificates. Otherwise, Alien auto-generates domains.")
|
|
17
21
|
|
|
18
22
|
export type DomainSettings = z.infer<typeof DomainSettingsSchema>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { PostgresHeartbeatStatusSchema } from "./postgres-heartbeat-status-schema.js";
|
|
8
|
+
|
|
9
|
+
export const GcpCloudSqlPostgresHeartbeatDataSchema = z.object({
|
|
10
|
+
"databaseVersion": z.string().nullish(),
|
|
11
|
+
"instanceName": z.string(),
|
|
12
|
+
"state": z.string().nullish(),
|
|
13
|
+
get "status"(){
|
|
14
|
+
return PostgresHeartbeatStatusSchema
|
|
15
|
+
}
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
export type GcpCloudSqlPostgresHeartbeatData = z.infer<typeof GcpCloudSqlPostgresHeartbeatDataSchema>
|
|
@@ -15,7 +15,7 @@ export const GcpDaemonHeartbeatDataSchema = z.object({
|
|
|
15
15
|
get "daemonInstances"(){
|
|
16
16
|
return z.array(ManagedRuntimeUnitStatusSchema)
|
|
17
17
|
},
|
|
18
|
-
"daemonName": z.string(),
|
|
18
|
+
"daemonName": z.optional(z.string()),
|
|
19
19
|
"desiredMachines": z.int().min(0),
|
|
20
20
|
get "events"(){
|
|
21
21
|
return z.array(ManagedRuntimeEventSnapshotSchema)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description GCP Postgres (Cloud SQL + Private Service Connect) registration data: the handles by\nwhich a setup-created Cloud SQL instance and its PSC consumer endpoint are registered\nas a Frozen Postgres resource. Setup owns the instance, Alien refreshes and heartbeats it.
|
|
10
|
+
*/
|
|
11
|
+
export const GcpPostgresImportDataSchema = z.object({
|
|
12
|
+
"database": z.string().describe("Default database name."),
|
|
13
|
+
"databaseVersion": z.string().describe("Engine version the instance reports."),
|
|
14
|
+
"endpointIp": z.string().describe("PSC consumer endpoint IP (the binding host)."),
|
|
15
|
+
"instanceName": z.string().describe("Cloud SQL instance name."),
|
|
16
|
+
"passwordSecretName": z.string().describe("Secret Manager secret name of the master password (never the password)."),
|
|
17
|
+
"pscAddressName": z.string().describe("Regional internal address backing the PSC consumer endpoint."),
|
|
18
|
+
"pscForwardingRuleName": z.string().describe("Regional forwarding rule for the PSC consumer endpoint."),
|
|
19
|
+
"pscServiceAttachment": z.string().describe("PSC service-attachment URI exposed by the instance."),
|
|
20
|
+
"region": z.string().describe("GCP region.")
|
|
21
|
+
}).describe("GCP Postgres (Cloud SQL + Private Service Connect) registration data: the handles by\nwhich a setup-created Cloud SQL instance and its PSC consumer endpoint are registered\nas a Frozen Postgres resource. Setup owns the instance, Alien refreshes and heartbeats it.")
|
|
22
|
+
|
|
23
|
+
export type GcpPostgresImportData = z.infer<typeof GcpPostgresImportDataSchema>
|
|
@@ -6,6 +6,7 @@ export type { ArtifactRegistryHeartbeatData } from "./artifact-registry-heartbea
|
|
|
6
6
|
export type { ArtifactRegistryHeartbeatStatus } from "./artifact-registry-heartbeat-status-schema.js";
|
|
7
7
|
export type { ArtifactRegistryOutputs } from "./artifact-registry-outputs-schema.js";
|
|
8
8
|
export type { ArtifactRegistry } from "./artifact-registry-schema.js";
|
|
9
|
+
export type { AuroraPostgresHeartbeatData } from "./aurora-postgres-heartbeat-data-schema.js";
|
|
9
10
|
export type { AwsArtifactRegistryImportData } from "./aws-artifact-registry-import-data-schema.js";
|
|
10
11
|
export type { AwsBuildImportData } from "./aws-build-import-data-schema.js";
|
|
11
12
|
export type { AwsCodeBuildHeartbeatData } from "./aws-code-build-heartbeat-data-schema.js";
|
|
@@ -25,6 +26,7 @@ export type { AwsNetworkImportData } from "./aws-network-import-data-schema.js";
|
|
|
25
26
|
export type { AwsParameterStoreVaultHeartbeatData } from "./aws-parameter-store-vault-heartbeat-data-schema.js";
|
|
26
27
|
export type { AwsPermissionEffect } from "./aws-permission-effect-schema.js";
|
|
27
28
|
export type { AwsPlatformPermission } from "./aws-platform-permission-schema.js";
|
|
29
|
+
export type { AwsPostgresImportData } from "./aws-postgres-import-data-schema.js";
|
|
28
30
|
export type { AwsQueueImportData } from "./aws-queue-import-data-schema.js";
|
|
29
31
|
export type { AwsRemoteStackManagementHeartbeatData } from "./aws-remote-stack-management-heartbeat-data-schema.js";
|
|
30
32
|
export type { AwsRemoteStackManagementImportData } from "./aws-remote-stack-management-import-data-schema.js";
|
|
@@ -49,6 +51,8 @@ export type { AzureContainerAppsWorkerHeartbeatData } from "./azure-container-ap
|
|
|
49
51
|
export type { AzureContainerRegistryHeartbeatData } from "./azure-container-registry-heartbeat-data-schema.js";
|
|
50
52
|
export type { AzureCustomCertificateConfig } from "./azure-custom-certificate-config-schema.js";
|
|
51
53
|
export type { AzureDaemonHeartbeatData } from "./azure-daemon-heartbeat-data-schema.js";
|
|
54
|
+
export type { AzureFlexibleServerPostgresHeartbeatData } from "./azure-flexible-server-postgres-heartbeat-data-schema.js";
|
|
55
|
+
export type { AzureFlexibleServerPostgresImportData } from "./azure-flexible-server-postgres-import-data-schema.js";
|
|
52
56
|
export type { AzureKeyVaultHeartbeatData } from "./azure-key-vault-heartbeat-data-schema.js";
|
|
53
57
|
export type { AzureKvImportData } from "./azure-kv-import-data-schema.js";
|
|
54
58
|
export type { AzureManagedIdentityServiceAccountHeartbeatData } from "./azure-managed-identity-service-account-heartbeat-data-schema.js";
|
|
@@ -100,6 +104,9 @@ export type { ComputeChoiceRange } from "./compute-choice-range-schema.js";
|
|
|
100
104
|
export type { ComputeClusterHeartbeatData } from "./compute-cluster-heartbeat-data-schema.js";
|
|
101
105
|
export type { ComputeClusterHeartbeatStatus } from "./compute-cluster-heartbeat-status-schema.js";
|
|
102
106
|
export type { ComputeCluster } from "./compute-cluster-schema.js";
|
|
107
|
+
export type { ComputeDrainBlocker } from "./compute-drain-blocker-schema.js";
|
|
108
|
+
export type { ComputeDrainProgress } from "./compute-drain-progress-schema.js";
|
|
109
|
+
export type { ComputeDrainProgressStatus } from "./compute-drain-progress-status-schema.js";
|
|
103
110
|
export type { ComputePoolSelection } from "./compute-pool-selection-schema.js";
|
|
104
111
|
export type { ComputeSettings } from "./compute-settings-schema.js";
|
|
105
112
|
export type { ComputeType } from "./compute-type-schema.js";
|
|
@@ -136,6 +143,7 @@ export type { GcpArtifactRegistryImportData } from "./gcp-artifact-registry-impo
|
|
|
136
143
|
export type { GcpBuildImportData } from "./gcp-build-import-data-schema.js";
|
|
137
144
|
export type { GcpCloudBuildHeartbeatData } from "./gcp-cloud-build-heartbeat-data-schema.js";
|
|
138
145
|
export type { GcpCloudRunWorkerHeartbeatData } from "./gcp-cloud-run-worker-heartbeat-data-schema.js";
|
|
146
|
+
export type { GcpCloudSqlPostgresHeartbeatData } from "./gcp-cloud-sql-postgres-heartbeat-data-schema.js";
|
|
139
147
|
export type { GcpCloudStorageHeartbeatData } from "./gcp-cloud-storage-heartbeat-data-schema.js";
|
|
140
148
|
export type { GcpComputeClusterHeartbeatData } from "./gcp-compute-cluster-heartbeat-data-schema.js";
|
|
141
149
|
export type { GcpComputeClusterImportData } from "./gcp-compute-cluster-import-data-schema.js";
|
|
@@ -147,6 +155,7 @@ export type { GcpKvImportData } from "./gcp-kv-import-data-schema.js";
|
|
|
147
155
|
export type { GcpManagementConfig } from "./gcp-management-config-schema.js";
|
|
148
156
|
export type { GcpNetworkImportData } from "./gcp-network-import-data-schema.js";
|
|
149
157
|
export type { GcpPlatformPermission } from "./gcp-platform-permission-schema.js";
|
|
158
|
+
export type { GcpPostgresImportData } from "./gcp-postgres-import-data-schema.js";
|
|
150
159
|
export type { GcpPubSubQueueHeartbeatData } from "./gcp-pub-sub-queue-heartbeat-data-schema.js";
|
|
151
160
|
export type { GcpQueueImportData } from "./gcp-queue-import-data-schema.js";
|
|
152
161
|
export type { GcpRemoteStackManagementHeartbeatData } from "./gcp-remote-stack-management-heartbeat-data-schema.js";
|
|
@@ -217,6 +226,7 @@ export type { LocalContainerHeartbeatData } from "./local-container-heartbeat-da
|
|
|
217
226
|
export type { LocalDaemonHeartbeatData } from "./local-daemon-heartbeat-data-schema.js";
|
|
218
227
|
export type { LocalKvHeartbeatData } from "./local-kv-heartbeat-data-schema.js";
|
|
219
228
|
export type { LocalOperation } from "./local-operation-schema.js";
|
|
229
|
+
export type { LocalPostgresHeartbeatData } from "./local-postgres-heartbeat-data-schema.js";
|
|
220
230
|
export type { LocalQueueHeartbeatData } from "./local-queue-heartbeat-data-schema.js";
|
|
221
231
|
export type { LocalRuntimeEventSnapshot } from "./local-runtime-event-snapshot-schema.js";
|
|
222
232
|
export type { LocalRuntimeEventSubject } from "./local-runtime-event-subject-schema.js";
|
|
@@ -227,6 +237,9 @@ export type { LocalStorageHeartbeatData } from "./local-storage-heartbeat-data-s
|
|
|
227
237
|
export type { LocalVaultHeartbeatData } from "./local-vault-heartbeat-data-schema.js";
|
|
228
238
|
export type { LocalWorkerHeartbeatData } from "./local-worker-heartbeat-data-schema.js";
|
|
229
239
|
export type { MachineProfile } from "./machine-profile-schema.js";
|
|
240
|
+
export type { MachinesComputeClusterHeartbeatData } from "./machines-compute-cluster-heartbeat-data-schema.js";
|
|
241
|
+
export type { MachinesComputeMachineStatus } from "./machines-compute-machine-status-schema.js";
|
|
242
|
+
export type { MachinesDaemonHeartbeatData } from "./machines-daemon-heartbeat-data-schema.js";
|
|
230
243
|
export type { ManagedRuntimeEventInvolvedObject } from "./managed-runtime-event-involved-object-schema.js";
|
|
231
244
|
export type { ManagedRuntimeEventSnapshot } from "./managed-runtime-event-snapshot-schema.js";
|
|
232
245
|
export type { ManagedRuntimeEventSource } from "./managed-runtime-event-source-schema.js";
|
|
@@ -242,6 +255,8 @@ export type { NetworkHeartbeatStatus } from "./network-heartbeat-status-schema.j
|
|
|
242
255
|
export type { NetworkSettings } from "./network-settings-schema.js";
|
|
243
256
|
export type { ObservedCounts } from "./observed-counts-schema.js";
|
|
244
257
|
export type { ObservedHealth } from "./observed-health-schema.js";
|
|
258
|
+
export type { ObservedInventoryBatch } from "./observed-inventory-batch-schema.js";
|
|
259
|
+
export type { ObservedResourceSample } from "./observed-resource-sample-schema.js";
|
|
245
260
|
export type { PermissionGrant } from "./permission-grant-schema.js";
|
|
246
261
|
export type { PermissionProfile } from "./permission-profile-schema.js";
|
|
247
262
|
export type { PermissionSetReference } from "./permission-set-reference-schema.js";
|
|
@@ -250,6 +265,11 @@ export type { PermissionsConfig } from "./permissions-config-schema.js";
|
|
|
250
265
|
export type { PersistentStorage } from "./persistent-storage-schema.js";
|
|
251
266
|
export type { PlatformPermissions } from "./platform-permissions-schema.js";
|
|
252
267
|
export type { Platform } from "./platform-schema.js";
|
|
268
|
+
export type { PostgresBackend } from "./postgres-backend-schema.js";
|
|
269
|
+
export type { PostgresHeartbeatData } from "./postgres-heartbeat-data-schema.js";
|
|
270
|
+
export type { PostgresHeartbeatStatus } from "./postgres-heartbeat-status-schema.js";
|
|
271
|
+
export type { PostgresOutputs } from "./postgres-outputs-schema.js";
|
|
272
|
+
export type { Postgres } from "./postgres-schema.js";
|
|
253
273
|
export type { PresignedOperation } from "./presigned-operation-schema.js";
|
|
254
274
|
export type { PresignedRequestBackend } from "./presigned-request-backend-schema.js";
|
|
255
275
|
export type { PresignedRequest } from "./presigned-request-schema.js";
|
|
@@ -257,6 +277,7 @@ export type { ProviderFleetStatus } from "./provider-fleet-status-schema.js";
|
|
|
257
277
|
export type { ProviderLifecycleState } from "./provider-lifecycle-state-schema.js";
|
|
258
278
|
export type { PublicEndpointOutput } from "./public-endpoint-output-schema.js";
|
|
259
279
|
export type { PublicEndpoint } from "./public-endpoint-schema.js";
|
|
280
|
+
export type { PublicEndpointTargetSettings } from "./public-endpoint-target-settings-schema.js";
|
|
260
281
|
export type { PushProgress } from "./push-progress-schema.js";
|
|
261
282
|
export type { QueueHeartbeatData } from "./queue-heartbeat-data-schema.js";
|
|
262
283
|
export type { QueueHeartbeatStatus } from "./queue-heartbeat-status-schema.js";
|
|
@@ -338,6 +359,7 @@ export { ArtifactRegistryHeartbeatDataSchema } from "./artifact-registry-heartbe
|
|
|
338
359
|
export { ArtifactRegistryHeartbeatStatusSchema } from "./artifact-registry-heartbeat-status-schema.js";
|
|
339
360
|
export { ArtifactRegistryOutputsSchema } from "./artifact-registry-outputs-schema.js";
|
|
340
361
|
export { ArtifactRegistrySchema } from "./artifact-registry-schema.js";
|
|
362
|
+
export { AuroraPostgresHeartbeatDataSchema } from "./aurora-postgres-heartbeat-data-schema.js";
|
|
341
363
|
export { AwsArtifactRegistryImportDataSchema } from "./aws-artifact-registry-import-data-schema.js";
|
|
342
364
|
export { AwsBuildImportDataSchema } from "./aws-build-import-data-schema.js";
|
|
343
365
|
export { AwsCodeBuildHeartbeatDataSchema } from "./aws-code-build-heartbeat-data-schema.js";
|
|
@@ -357,6 +379,7 @@ export { AwsNetworkImportDataSchema } from "./aws-network-import-data-schema.js"
|
|
|
357
379
|
export { AwsParameterStoreVaultHeartbeatDataSchema } from "./aws-parameter-store-vault-heartbeat-data-schema.js";
|
|
358
380
|
export { AwsPermissionEffectSchema } from "./aws-permission-effect-schema.js";
|
|
359
381
|
export { AwsPlatformPermissionSchema } from "./aws-platform-permission-schema.js";
|
|
382
|
+
export { AwsPostgresImportDataSchema } from "./aws-postgres-import-data-schema.js";
|
|
360
383
|
export { AwsQueueImportDataSchema } from "./aws-queue-import-data-schema.js";
|
|
361
384
|
export { AwsRemoteStackManagementHeartbeatDataSchema } from "./aws-remote-stack-management-heartbeat-data-schema.js";
|
|
362
385
|
export { AwsRemoteStackManagementImportDataSchema } from "./aws-remote-stack-management-import-data-schema.js";
|
|
@@ -381,6 +404,8 @@ export { AzureContainerAppsWorkerHeartbeatDataSchema } from "./azure-container-a
|
|
|
381
404
|
export { AzureContainerRegistryHeartbeatDataSchema } from "./azure-container-registry-heartbeat-data-schema.js";
|
|
382
405
|
export { AzureCustomCertificateConfigSchema } from "./azure-custom-certificate-config-schema.js";
|
|
383
406
|
export { AzureDaemonHeartbeatDataSchema } from "./azure-daemon-heartbeat-data-schema.js";
|
|
407
|
+
export { AzureFlexibleServerPostgresHeartbeatDataSchema } from "./azure-flexible-server-postgres-heartbeat-data-schema.js";
|
|
408
|
+
export { AzureFlexibleServerPostgresImportDataSchema } from "./azure-flexible-server-postgres-import-data-schema.js";
|
|
384
409
|
export { AzureKeyVaultHeartbeatDataSchema } from "./azure-key-vault-heartbeat-data-schema.js";
|
|
385
410
|
export { AzureKvImportDataSchema } from "./azure-kv-import-data-schema.js";
|
|
386
411
|
export { AzureManagedIdentityServiceAccountHeartbeatDataSchema } from "./azure-managed-identity-service-account-heartbeat-data-schema.js";
|
|
@@ -432,6 +457,9 @@ export { ComputeChoiceRangeSchema } from "./compute-choice-range-schema.js";
|
|
|
432
457
|
export { ComputeClusterHeartbeatDataSchema } from "./compute-cluster-heartbeat-data-schema.js";
|
|
433
458
|
export { ComputeClusterHeartbeatStatusSchema } from "./compute-cluster-heartbeat-status-schema.js";
|
|
434
459
|
export { ComputeClusterSchema } from "./compute-cluster-schema.js";
|
|
460
|
+
export { ComputeDrainBlockerSchema } from "./compute-drain-blocker-schema.js";
|
|
461
|
+
export { ComputeDrainProgressSchema } from "./compute-drain-progress-schema.js";
|
|
462
|
+
export { ComputeDrainProgressStatusSchema } from "./compute-drain-progress-status-schema.js";
|
|
435
463
|
export { ComputePoolSelectionSchema } from "./compute-pool-selection-schema.js";
|
|
436
464
|
export { ComputeSettingsSchema } from "./compute-settings-schema.js";
|
|
437
465
|
export { ComputeTypeSchema } from "./compute-type-schema.js";
|
|
@@ -468,6 +496,7 @@ export { GcpArtifactRegistryImportDataSchema } from "./gcp-artifact-registry-imp
|
|
|
468
496
|
export { GcpBuildImportDataSchema } from "./gcp-build-import-data-schema.js";
|
|
469
497
|
export { GcpCloudBuildHeartbeatDataSchema } from "./gcp-cloud-build-heartbeat-data-schema.js";
|
|
470
498
|
export { GcpCloudRunWorkerHeartbeatDataSchema } from "./gcp-cloud-run-worker-heartbeat-data-schema.js";
|
|
499
|
+
export { GcpCloudSqlPostgresHeartbeatDataSchema } from "./gcp-cloud-sql-postgres-heartbeat-data-schema.js";
|
|
471
500
|
export { GcpCloudStorageHeartbeatDataSchema } from "./gcp-cloud-storage-heartbeat-data-schema.js";
|
|
472
501
|
export { GcpComputeClusterHeartbeatDataSchema } from "./gcp-compute-cluster-heartbeat-data-schema.js";
|
|
473
502
|
export { GcpComputeClusterImportDataSchema } from "./gcp-compute-cluster-import-data-schema.js";
|
|
@@ -479,6 +508,7 @@ export { GcpKvImportDataSchema } from "./gcp-kv-import-data-schema.js";
|
|
|
479
508
|
export { GcpManagementConfigSchema } from "./gcp-management-config-schema.js";
|
|
480
509
|
export { GcpNetworkImportDataSchema } from "./gcp-network-import-data-schema.js";
|
|
481
510
|
export { GcpPlatformPermissionSchema } from "./gcp-platform-permission-schema.js";
|
|
511
|
+
export { GcpPostgresImportDataSchema } from "./gcp-postgres-import-data-schema.js";
|
|
482
512
|
export { GcpPubSubQueueHeartbeatDataSchema } from "./gcp-pub-sub-queue-heartbeat-data-schema.js";
|
|
483
513
|
export { GcpQueueImportDataSchema } from "./gcp-queue-import-data-schema.js";
|
|
484
514
|
export { GcpRemoteStackManagementHeartbeatDataSchema } from "./gcp-remote-stack-management-heartbeat-data-schema.js";
|
|
@@ -549,6 +579,7 @@ export { LocalContainerHeartbeatDataSchema } from "./local-container-heartbeat-d
|
|
|
549
579
|
export { LocalDaemonHeartbeatDataSchema } from "./local-daemon-heartbeat-data-schema.js";
|
|
550
580
|
export { LocalKvHeartbeatDataSchema } from "./local-kv-heartbeat-data-schema.js";
|
|
551
581
|
export { LocalOperationSchema } from "./local-operation-schema.js";
|
|
582
|
+
export { LocalPostgresHeartbeatDataSchema } from "./local-postgres-heartbeat-data-schema.js";
|
|
552
583
|
export { LocalQueueHeartbeatDataSchema } from "./local-queue-heartbeat-data-schema.js";
|
|
553
584
|
export { LocalRuntimeEventSnapshotSchema } from "./local-runtime-event-snapshot-schema.js";
|
|
554
585
|
export { LocalRuntimeEventSubjectSchema } from "./local-runtime-event-subject-schema.js";
|
|
@@ -559,6 +590,9 @@ export { LocalStorageHeartbeatDataSchema } from "./local-storage-heartbeat-data-
|
|
|
559
590
|
export { LocalVaultHeartbeatDataSchema } from "./local-vault-heartbeat-data-schema.js";
|
|
560
591
|
export { LocalWorkerHeartbeatDataSchema } from "./local-worker-heartbeat-data-schema.js";
|
|
561
592
|
export { MachineProfileSchema } from "./machine-profile-schema.js";
|
|
593
|
+
export { MachinesComputeClusterHeartbeatDataSchema } from "./machines-compute-cluster-heartbeat-data-schema.js";
|
|
594
|
+
export { MachinesComputeMachineStatusSchema } from "./machines-compute-machine-status-schema.js";
|
|
595
|
+
export { MachinesDaemonHeartbeatDataSchema } from "./machines-daemon-heartbeat-data-schema.js";
|
|
562
596
|
export { ManagedRuntimeEventInvolvedObjectSchema } from "./managed-runtime-event-involved-object-schema.js";
|
|
563
597
|
export { ManagedRuntimeEventSnapshotSchema } from "./managed-runtime-event-snapshot-schema.js";
|
|
564
598
|
export { ManagedRuntimeEventSourceSchema } from "./managed-runtime-event-source-schema.js";
|
|
@@ -574,6 +608,8 @@ export { NetworkHeartbeatStatusSchema } from "./network-heartbeat-status-schema.
|
|
|
574
608
|
export { NetworkSettingsSchema } from "./network-settings-schema.js";
|
|
575
609
|
export { ObservedCountsSchema } from "./observed-counts-schema.js";
|
|
576
610
|
export { ObservedHealthSchema } from "./observed-health-schema.js";
|
|
611
|
+
export { ObservedInventoryBatchSchema } from "./observed-inventory-batch-schema.js";
|
|
612
|
+
export { ObservedResourceSampleSchema } from "./observed-resource-sample-schema.js";
|
|
577
613
|
export { PermissionGrantSchema } from "./permission-grant-schema.js";
|
|
578
614
|
export { PermissionProfileSchema } from "./permission-profile-schema.js";
|
|
579
615
|
export { PermissionSetReferenceSchema } from "./permission-set-reference-schema.js";
|
|
@@ -582,6 +618,11 @@ export { PermissionsConfigSchema } from "./permissions-config-schema.js";
|
|
|
582
618
|
export { PersistentStorageSchema } from "./persistent-storage-schema.js";
|
|
583
619
|
export { PlatformPermissionsSchema } from "./platform-permissions-schema.js";
|
|
584
620
|
export { PlatformSchema } from "./platform-schema.js";
|
|
621
|
+
export { PostgresBackendSchema } from "./postgres-backend-schema.js";
|
|
622
|
+
export { PostgresHeartbeatDataSchema } from "./postgres-heartbeat-data-schema.js";
|
|
623
|
+
export { PostgresHeartbeatStatusSchema } from "./postgres-heartbeat-status-schema.js";
|
|
624
|
+
export { PostgresOutputsSchema } from "./postgres-outputs-schema.js";
|
|
625
|
+
export { PostgresSchema } from "./postgres-schema.js";
|
|
585
626
|
export { PresignedOperationSchema } from "./presigned-operation-schema.js";
|
|
586
627
|
export { PresignedRequestBackendSchema } from "./presigned-request-backend-schema.js";
|
|
587
628
|
export { PresignedRequestSchema } from "./presigned-request-schema.js";
|
|
@@ -589,6 +630,7 @@ export { ProviderFleetStatusSchema } from "./provider-fleet-status-schema.js";
|
|
|
589
630
|
export { ProviderLifecycleStateSchema } from "./provider-lifecycle-state-schema.js";
|
|
590
631
|
export { PublicEndpointOutputSchema } from "./public-endpoint-output-schema.js";
|
|
591
632
|
export { PublicEndpointSchema } from "./public-endpoint-schema.js";
|
|
633
|
+
export { PublicEndpointTargetSettingsSchema } from "./public-endpoint-target-settings-schema.js";
|
|
592
634
|
export { PushProgressSchema } from "./push-progress-schema.js";
|
|
593
635
|
export { QueueHeartbeatDataSchema } from "./queue-heartbeat-data-schema.js";
|
|
594
636
|
export { QueueHeartbeatStatusSchema } from "./queue-heartbeat-status-schema.js";
|
|
@@ -13,7 +13,7 @@ export const LocalDaemonHeartbeatDataSchema = z.object({
|
|
|
13
13
|
get "daemonInstance"(){
|
|
14
14
|
return z.union([LocalRuntimeUnitStatusSchema, z.null()]).optional()
|
|
15
15
|
},
|
|
16
|
-
"daemonName": z.string(),
|
|
16
|
+
"daemonName": z.optional(z.string()),
|
|
17
17
|
get "events"(){
|
|
18
18
|
return z.array(LocalRuntimeEventSnapshotSchema)
|
|
19
19
|
},
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { PostgresHeartbeatStatusSchema } from "./postgres-heartbeat-status-schema.js";
|
|
8
|
+
|
|
9
|
+
export const LocalPostgresHeartbeatDataSchema = z.object({
|
|
10
|
+
"name": z.string(),
|
|
11
|
+
"port": z.int().min(0).nullish(),
|
|
12
|
+
"processRunning": z.boolean(),
|
|
13
|
+
get "status"(){
|
|
14
|
+
return PostgresHeartbeatStatusSchema
|
|
15
|
+
},
|
|
16
|
+
"version": z.string()
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
export type LocalPostgresHeartbeatData = z.infer<typeof LocalPostgresHeartbeatDataSchema>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ComputeCapacityGroupStatusSchema } from "./compute-capacity-group-status-schema.js";
|
|
8
|
+
import { ComputeClusterHeartbeatStatusSchema } from "./compute-cluster-heartbeat-status-schema.js";
|
|
9
|
+
import { MachinesComputeMachineStatusSchema } from "./machines-compute-machine-status-schema.js";
|
|
10
|
+
import { MetricSampleSchema } from "./metric-sample-schema.js";
|
|
11
|
+
import { ObservedCountsSchema } from "./observed-counts-schema.js";
|
|
12
|
+
|
|
13
|
+
export const MachinesComputeClusterHeartbeatDataSchema = z.object({
|
|
14
|
+
"backendClusterId": z.string().nullish(),
|
|
15
|
+
get "capacityGroups"(){
|
|
16
|
+
return z.array(ComputeCapacityGroupStatusSchema)
|
|
17
|
+
},
|
|
18
|
+
get "cpu"(){
|
|
19
|
+
return z.union([MetricSampleSchema, z.null()]).optional()
|
|
20
|
+
},
|
|
21
|
+
get "machines"(){
|
|
22
|
+
return z.array(MachinesComputeMachineStatusSchema)
|
|
23
|
+
},
|
|
24
|
+
get "memory"(){
|
|
25
|
+
return z.union([MetricSampleSchema, z.null()]).optional()
|
|
26
|
+
},
|
|
27
|
+
"name": z.string(),
|
|
28
|
+
get "nodes"(){
|
|
29
|
+
return ObservedCountsSchema
|
|
30
|
+
},
|
|
31
|
+
get "status"(){
|
|
32
|
+
return ComputeClusterHeartbeatStatusSchema
|
|
33
|
+
}
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
export type MachinesComputeClusterHeartbeatData = z.infer<typeof MachinesComputeClusterHeartbeatDataSchema>
|