@alienplatform/core 1.14.1 → 2.0.1
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/dist/index.d.ts +449 -321
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6930 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -5
- package/.turbo/turbo-build.log +0 -29
- package/AGENTS.md +0 -90
- package/dist/stack.js +0 -6847
- package/dist/stack.js.map +0 -1
- package/dist/tests/index.d.ts +0 -48
- package/dist/tests/index.d.ts.map +0 -1
- package/dist/tests/index.js +0 -9
- package/dist/tests/index.js.map +0 -1
- package/kubb.config.ts +0 -44
- package/src/__tests__/__snapshots__/stack.test.ts.snap +0 -354
- package/src/__tests__/error.test.ts +0 -672
- package/src/__tests__/stack.test.ts +0 -537
- package/src/artifact-registry.ts +0 -64
- package/src/build.ts +0 -105
- package/src/common-errors.ts +0 -55
- package/src/compute-cluster.ts +0 -213
- package/src/container.ts +0 -423
- package/src/daemon.ts +0 -259
- package/src/error.ts +0 -665
- package/src/generated/index.ts +0 -706
- package/src/generated/schemas/agentStatus.json +0 -1
- package/src/generated/schemas/alienError.json +0 -1
- package/src/generated/schemas/alienEvent.json +0 -1
- package/src/generated/schemas/architecture.json +0 -1
- package/src/generated/schemas/artifactRegistry.json +0 -1
- package/src/generated/schemas/artifactRegistryHeartbeatData.json +0 -1
- package/src/generated/schemas/artifactRegistryHeartbeatStatus.json +0 -1
- package/src/generated/schemas/artifactRegistryOutputs.json +0 -1
- package/src/generated/schemas/auroraPostgresHeartbeatData.json +0 -1
- package/src/generated/schemas/awsArtifactRegistryImportData.json +0 -1
- package/src/generated/schemas/awsBuildImportData.json +0 -1
- package/src/generated/schemas/awsCodeBuildHeartbeatData.json +0 -1
- package/src/generated/schemas/awsComputeClusterHeartbeatData.json +0 -1
- package/src/generated/schemas/awsComputeClusterImportData.json +0 -1
- package/src/generated/schemas/awsCustomCertificateConfig.json +0 -1
- package/src/generated/schemas/awsDaemonHeartbeatData.json +0 -1
- package/src/generated/schemas/awsDynamoDbKeySchemaElement.json +0 -1
- package/src/generated/schemas/awsDynamoDbKvHeartbeatData.json +0 -1
- package/src/generated/schemas/awsEcrArtifactRegistryHeartbeatData.json +0 -1
- package/src/generated/schemas/awsEcrRepositoryHeartbeatData.json +0 -1
- package/src/generated/schemas/awsIamRoleServiceAccountHeartbeatData.json +0 -1
- package/src/generated/schemas/awsKvImportData.json +0 -1
- package/src/generated/schemas/awsLambdaWorkerHeartbeatData.json +0 -1
- package/src/generated/schemas/awsManagementConfig.json +0 -1
- package/src/generated/schemas/awsNetworkImportData.json +0 -1
- package/src/generated/schemas/awsParameterStoreVaultHeartbeatData.json +0 -1
- package/src/generated/schemas/awsPermissionEffect.json +0 -1
- package/src/generated/schemas/awsPlatformPermission.json +0 -1
- package/src/generated/schemas/awsPostgresImportData.json +0 -1
- package/src/generated/schemas/awsQueueImportData.json +0 -1
- package/src/generated/schemas/awsRemoteStackManagementHeartbeatData.json +0 -1
- package/src/generated/schemas/awsRemoteStackManagementImportData.json +0 -1
- package/src/generated/schemas/awsS3StorageHeartbeatData.json +0 -1
- package/src/generated/schemas/awsServiceAccountImportData.json +0 -1
- package/src/generated/schemas/awsSqsQueueHeartbeatData.json +0 -1
- package/src/generated/schemas/awsStorageImportData.json +0 -1
- package/src/generated/schemas/awsVaultImportData.json +0 -1
- package/src/generated/schemas/awsVpcNetworkHeartbeatData.json +0 -1
- package/src/generated/schemas/awsWorkerImportData.json +0 -1
- package/src/generated/schemas/azureArtifactRegistryImportData.json +0 -1
- package/src/generated/schemas/azureBlobStorageHeartbeatData.json +0 -1
- package/src/generated/schemas/azureBuildImportData.json +0 -1
- package/src/generated/schemas/azureComputeClusterHeartbeatData.json +0 -1
- package/src/generated/schemas/azureComputeClusterImportData.json +0 -1
- package/src/generated/schemas/azureContainerAppsBuildHeartbeatData.json +0 -1
- package/src/generated/schemas/azureContainerAppsEnvironmentHeartbeatData.json +0 -1
- package/src/generated/schemas/azureContainerAppsEnvironmentHeartbeatStatus.json +0 -1
- package/src/generated/schemas/azureContainerAppsEnvironmentImportData.json +0 -1
- package/src/generated/schemas/azureContainerAppsEnvironmentWorkloadProfile.json +0 -1
- package/src/generated/schemas/azureContainerAppsWorkerHeartbeatData.json +0 -1
- package/src/generated/schemas/azureContainerRegistryHeartbeatData.json +0 -1
- package/src/generated/schemas/azureCustomCertificateConfig.json +0 -1
- package/src/generated/schemas/azureDaemonHeartbeatData.json +0 -1
- package/src/generated/schemas/azureFlexibleServerPostgresHeartbeatData.json +0 -1
- package/src/generated/schemas/azureFlexibleServerPostgresImportData.json +0 -1
- package/src/generated/schemas/azureKeyVaultHeartbeatData.json +0 -1
- package/src/generated/schemas/azureKvImportData.json +0 -1
- package/src/generated/schemas/azureManagedIdentityServiceAccountHeartbeatData.json +0 -1
- package/src/generated/schemas/azureManagementConfig.json +0 -1
- package/src/generated/schemas/azureNetworkImportData.json +0 -1
- package/src/generated/schemas/azurePlatformPermission.json +0 -1
- package/src/generated/schemas/azureQueueImportData.json +0 -1
- package/src/generated/schemas/azureRemoteStackManagementHeartbeatData.json +0 -1
- package/src/generated/schemas/azureRemoteStackManagementImportData.json +0 -1
- package/src/generated/schemas/azureResourceGroupHeartbeatData.json +0 -1
- package/src/generated/schemas/azureResourceGroupHeartbeatStatus.json +0 -1
- package/src/generated/schemas/azureResourceGroupImportData.json +0 -1
- package/src/generated/schemas/azureResourceProviderActivationHeartbeatData.json +0 -1
- package/src/generated/schemas/azureServiceAccountImportData.json +0 -1
- package/src/generated/schemas/azureServiceActivationImportData.json +0 -1
- package/src/generated/schemas/azureServiceBusNamespaceHeartbeatData.json +0 -1
- package/src/generated/schemas/azureServiceBusNamespaceImportData.json +0 -1
- package/src/generated/schemas/azureServiceBusQueueHeartbeatData.json +0 -1
- package/src/generated/schemas/azureStorageAccountEndpoints.json +0 -1
- package/src/generated/schemas/azureStorageAccountHeartbeatData.json +0 -1
- package/src/generated/schemas/azureStorageAccountImportData.json +0 -1
- package/src/generated/schemas/azureStorageImportData.json +0 -1
- package/src/generated/schemas/azureTableKvHeartbeatData.json +0 -1
- package/src/generated/schemas/azureVaultImportData.json +0 -1
- package/src/generated/schemas/azureVnetNetworkHeartbeatData.json +0 -1
- package/src/generated/schemas/azureWorkerImportData.json +0 -1
- package/src/generated/schemas/baseResource.json +0 -1
- package/src/generated/schemas/baseResourceOutputs.json +0 -1
- package/src/generated/schemas/bindingConfigurationAwsBindingSpec.json +0 -1
- package/src/generated/schemas/bindingConfigurationAzureBindingSpec.json +0 -1
- package/src/generated/schemas/bindingConfigurationGcpBindingSpec.json +0 -1
- package/src/generated/schemas/bodySpec.json +0 -1
- package/src/generated/schemas/build.json +0 -1
- package/src/generated/schemas/buildConfig.json +0 -1
- package/src/generated/schemas/buildHeartbeatData.json +0 -1
- package/src/generated/schemas/buildHeartbeatStatus.json +0 -1
- package/src/generated/schemas/buildOutputs.json +0 -1
- package/src/generated/schemas/buildStatus.json +0 -1
- package/src/generated/schemas/capacityGroup.json +0 -1
- package/src/generated/schemas/capacityGroupScalePolicy.json +0 -1
- package/src/generated/schemas/commandResponse.json +0 -1
- package/src/generated/schemas/commandState.json +0 -1
- package/src/generated/schemas/commandStatusResponse.json +0 -1
- package/src/generated/schemas/computeCapacityBlocker.json +0 -1
- package/src/generated/schemas/computeCapacityBlockerCategory.json +0 -1
- package/src/generated/schemas/computeCapacityGroupStatus.json +0 -1
- package/src/generated/schemas/computeCapacityRecommendation.json +0 -1
- package/src/generated/schemas/computeChoiceRange.json +0 -1
- package/src/generated/schemas/computeCluster.json +0 -1
- package/src/generated/schemas/computeClusterHeartbeatData.json +0 -1
- package/src/generated/schemas/computeClusterHeartbeatStatus.json +0 -1
- package/src/generated/schemas/computeDrainBlocker.json +0 -1
- package/src/generated/schemas/computeDrainProgress.json +0 -1
- package/src/generated/schemas/computeDrainProgressStatus.json +0 -1
- package/src/generated/schemas/computePoolSelection.json +0 -1
- package/src/generated/schemas/computeSettings.json +0 -1
- package/src/generated/schemas/computeType.json +0 -1
- package/src/generated/schemas/container.json +0 -1
- package/src/generated/schemas/containerAutoscaling.json +0 -1
- package/src/generated/schemas/containerCode.json +0 -1
- package/src/generated/schemas/containerGpuSpec.json +0 -1
- package/src/generated/schemas/containerHeartbeatData.json +0 -1
- package/src/generated/schemas/containerOutputs.json +0 -1
- package/src/generated/schemas/containerPort.json +0 -1
- package/src/generated/schemas/containerStatus.json +0 -1
- package/src/generated/schemas/createCommandRequest.json +0 -1
- package/src/generated/schemas/createCommandResponse.json +0 -1
- package/src/generated/schemas/customCertificateConfig.json +0 -1
- package/src/generated/schemas/customDomainConfig.json +0 -1
- package/src/generated/schemas/daemon.json +0 -1
- package/src/generated/schemas/daemonCode.json +0 -1
- package/src/generated/schemas/daemonHeartbeatData.json +0 -1
- package/src/generated/schemas/daemonOutputs.json +0 -1
- package/src/generated/schemas/daemonRuntime.json +0 -1
- package/src/generated/schemas/daemonRuntimeMount.json +0 -1
- package/src/generated/schemas/deploymentModel.json +0 -1
- package/src/generated/schemas/deploymentStatus.json +0 -1
- package/src/generated/schemas/devResourceInfo.json +0 -1
- package/src/generated/schemas/devStatus.json +0 -1
- package/src/generated/schemas/devStatusState.json +0 -1
- package/src/generated/schemas/domainSettings.json +0 -1
- package/src/generated/schemas/envelope.json +0 -1
- package/src/generated/schemas/eventChange.json +0 -1
- package/src/generated/schemas/eventState.json +0 -1
- package/src/generated/schemas/exposeProtocol.json +0 -1
- package/src/generated/schemas/gcpArtifactRegistryHeartbeatData.json +0 -1
- package/src/generated/schemas/gcpArtifactRegistryImportData.json +0 -1
- package/src/generated/schemas/gcpBuildImportData.json +0 -1
- package/src/generated/schemas/gcpCloudBuildHeartbeatData.json +0 -1
- package/src/generated/schemas/gcpCloudRunWorkerHeartbeatData.json +0 -1
- package/src/generated/schemas/gcpCloudSqlPostgresHeartbeatData.json +0 -1
- package/src/generated/schemas/gcpCloudStorageHeartbeatData.json +0 -1
- package/src/generated/schemas/gcpComputeClusterHeartbeatData.json +0 -1
- package/src/generated/schemas/gcpComputeClusterImportData.json +0 -1
- package/src/generated/schemas/gcpCondition.json +0 -1
- package/src/generated/schemas/gcpCustomCertificateConfig.json +0 -1
- package/src/generated/schemas/gcpDaemonHeartbeatData.json +0 -1
- package/src/generated/schemas/gcpFirestoreKvHeartbeatData.json +0 -1
- package/src/generated/schemas/gcpKvImportData.json +0 -1
- package/src/generated/schemas/gcpManagementConfig.json +0 -1
- package/src/generated/schemas/gcpNetworkImportData.json +0 -1
- package/src/generated/schemas/gcpPlatformPermission.json +0 -1
- package/src/generated/schemas/gcpPostgresImportData.json +0 -1
- package/src/generated/schemas/gcpPubSubQueueHeartbeatData.json +0 -1
- package/src/generated/schemas/gcpQueueImportData.json +0 -1
- package/src/generated/schemas/gcpRemoteStackManagementHeartbeatData.json +0 -1
- package/src/generated/schemas/gcpRemoteStackManagementImportData.json +0 -1
- package/src/generated/schemas/gcpSecretManagerVaultHeartbeatData.json +0 -1
- package/src/generated/schemas/gcpServiceAccountHeartbeatData.json +0 -1
- package/src/generated/schemas/gcpServiceAccountImportData.json +0 -1
- package/src/generated/schemas/gcpServiceActivationImportData.json +0 -1
- package/src/generated/schemas/gcpServiceUsageActivationHeartbeatData.json +0 -1
- package/src/generated/schemas/gcpStorageImportData.json +0 -1
- package/src/generated/schemas/gcpVaultImportData.json +0 -1
- package/src/generated/schemas/gcpVpcNetworkHeartbeatData.json +0 -1
- package/src/generated/schemas/gcpWorkerImportData.json +0 -1
- package/src/generated/schemas/gpuSpec.json +0 -1
- package/src/generated/schemas/healthCheck.json +0 -1
- package/src/generated/schemas/heartbeatBackend.json +0 -1
- package/src/generated/schemas/heartbeatCollectionIssue.json +0 -1
- package/src/generated/schemas/heartbeatCollectionIssueReason.json +0 -1
- package/src/generated/schemas/heartbeatIssueSeverity.json +0 -1
- package/src/generated/schemas/heartbeatsMode.json +0 -1
- package/src/generated/schemas/horizonContainerHeartbeatData.json +0 -1
- package/src/generated/schemas/horizonWorkloadSchedulingMode.json +0 -1
- package/src/generated/schemas/httpMethod.json +0 -1
- package/src/generated/schemas/importSourceKind.json +0 -1
- package/src/generated/schemas/importedResource.json +0 -1
- package/src/generated/schemas/kubernetesBuildHeartbeatData.json +0 -1
- package/src/generated/schemas/kubernetesCertificateMode.json +0 -1
- package/src/generated/schemas/kubernetesCloudReference.json +0 -1
- package/src/generated/schemas/kubernetesClusterHeartbeatData.json +0 -1
- package/src/generated/schemas/kubernetesClusterNodeStatus.json +0 -1
- package/src/generated/schemas/kubernetesClusterOwnership.json +0 -1
- package/src/generated/schemas/kubernetesClusterSettings.json +0 -1
- package/src/generated/schemas/kubernetesContainerHeartbeatData.json +0 -1
- package/src/generated/schemas/kubernetesCustomCertificateConfig.json +0 -1
- package/src/generated/schemas/kubernetesDaemonHeartbeatData.json +0 -1
- package/src/generated/schemas/kubernetesEventInvolvedObject.json +0 -1
- package/src/generated/schemas/kubernetesEventSnapshot.json +0 -1
- package/src/generated/schemas/kubernetesEventSource.json +0 -1
- package/src/generated/schemas/kubernetesExposureSettings.json +0 -1
- package/src/generated/schemas/kubernetesGatewayRouteProfile.json +0 -1
- package/src/generated/schemas/kubernetesIngressRouteProfile.json +0 -1
- package/src/generated/schemas/kubernetesNodeConditionStatus.json +0 -1
- package/src/generated/schemas/kubernetesNodeResources.json +0 -1
- package/src/generated/schemas/kubernetesNodeUsage.json +0 -1
- package/src/generated/schemas/kubernetesOwnerReference.json +0 -1
- package/src/generated/schemas/kubernetesPodRuntimeUnitStatus.json +0 -1
- package/src/generated/schemas/kubernetesRouteProfile.json +0 -1
- package/src/generated/schemas/kubernetesRouteProviderOptions.json +0 -1
- package/src/generated/schemas/kubernetesSecretVaultHeartbeatData.json +0 -1
- package/src/generated/schemas/kubernetesSettings.json +0 -1
- package/src/generated/schemas/kubernetesTlsSecretRef.json +0 -1
- package/src/generated/schemas/kubernetesWorkerHeartbeatData.json +0 -1
- package/src/generated/schemas/kubernetesWorkloadCondition.json +0 -1
- package/src/generated/schemas/kubernetesWorkloadKind.json +0 -1
- package/src/generated/schemas/kubernetesWorkloadStatus.json +0 -1
- package/src/generated/schemas/kv.json +0 -1
- package/src/generated/schemas/kvHeartbeatData.json +0 -1
- package/src/generated/schemas/kvHeartbeatStatus.json +0 -1
- package/src/generated/schemas/kvOutputs.json +0 -1
- package/src/generated/schemas/leaseInfo.json +0 -1
- package/src/generated/schemas/leaseRequest.json +0 -1
- package/src/generated/schemas/leaseResponse.json +0 -1
- package/src/generated/schemas/lifecycleRule.json +0 -1
- package/src/generated/schemas/loadBalancerEndpoint.json +0 -1
- package/src/generated/schemas/localArtifactRegistryHeartbeatData.json +0 -1
- package/src/generated/schemas/localComputeClusterHeartbeatData.json +0 -1
- package/src/generated/schemas/localContainerHeartbeatData.json +0 -1
- package/src/generated/schemas/localDaemonHeartbeatData.json +0 -1
- package/src/generated/schemas/localKvHeartbeatData.json +0 -1
- package/src/generated/schemas/localOperation.json +0 -1
- package/src/generated/schemas/localPostgresHeartbeatData.json +0 -1
- package/src/generated/schemas/localQueueHeartbeatData.json +0 -1
- package/src/generated/schemas/localRuntimeEventSnapshot.json +0 -1
- package/src/generated/schemas/localRuntimeEventSubject.json +0 -1
- package/src/generated/schemas/localRuntimeUnitKind.json +0 -1
- package/src/generated/schemas/localRuntimeUnitStatus.json +0 -1
- package/src/generated/schemas/localServiceAccountHeartbeatData.json +0 -1
- package/src/generated/schemas/localStorageHeartbeatData.json +0 -1
- package/src/generated/schemas/localVaultHeartbeatData.json +0 -1
- package/src/generated/schemas/localWorkerHeartbeatData.json +0 -1
- package/src/generated/schemas/machineProfile.json +0 -1
- package/src/generated/schemas/machinesComputeClusterHeartbeatData.json +0 -1
- package/src/generated/schemas/machinesComputeMachineStatus.json +0 -1
- package/src/generated/schemas/machinesDaemonHeartbeatData.json +0 -1
- package/src/generated/schemas/managedRuntimeEventInvolvedObject.json +0 -1
- package/src/generated/schemas/managedRuntimeEventSnapshot.json +0 -1
- package/src/generated/schemas/managedRuntimeEventSource.json +0 -1
- package/src/generated/schemas/managedRuntimeUnitStatus.json +0 -1
- package/src/generated/schemas/managementConfig.json +0 -1
- package/src/generated/schemas/managementPermissions.json +0 -1
- package/src/generated/schemas/messagePayload.json +0 -1
- package/src/generated/schemas/metricSample.json +0 -1
- package/src/generated/schemas/metricUnit.json +0 -1
- package/src/generated/schemas/monitoringConfig.json +0 -1
- package/src/generated/schemas/networkHeartbeatData.json +0 -1
- package/src/generated/schemas/networkHeartbeatStatus.json +0 -1
- package/src/generated/schemas/networkSettings.json +0 -1
- package/src/generated/schemas/observedCounts.json +0 -1
- package/src/generated/schemas/observedHealth.json +0 -1
- package/src/generated/schemas/observedInventoryBatch.json +0 -1
- package/src/generated/schemas/observedResourceSample.json +0 -1
- package/src/generated/schemas/permissionGrant.json +0 -1
- package/src/generated/schemas/permissionProfile.json +0 -1
- package/src/generated/schemas/permissionSet.json +0 -1
- package/src/generated/schemas/permissionSetReference.json +0 -1
- package/src/generated/schemas/permissionsConfig.json +0 -1
- package/src/generated/schemas/persistentStorage.json +0 -1
- package/src/generated/schemas/platform.json +0 -1
- package/src/generated/schemas/platformPermissions.json +0 -1
- package/src/generated/schemas/postgres.json +0 -1
- package/src/generated/schemas/postgresBackend.json +0 -1
- package/src/generated/schemas/postgresHeartbeatData.json +0 -1
- package/src/generated/schemas/postgresHeartbeatStatus.json +0 -1
- package/src/generated/schemas/postgresOutputs.json +0 -1
- package/src/generated/schemas/presignedOperation.json +0 -1
- package/src/generated/schemas/presignedRequest.json +0 -1
- package/src/generated/schemas/presignedRequestBackend.json +0 -1
- package/src/generated/schemas/providerFleetStatus.json +0 -1
- package/src/generated/schemas/providerLifecycleState.json +0 -1
- package/src/generated/schemas/publicEndpoint.json +0 -1
- package/src/generated/schemas/publicEndpointOutput.json +0 -1
- package/src/generated/schemas/publicEndpointTargetSettings.json +0 -1
- package/src/generated/schemas/pushProgress.json +0 -1
- package/src/generated/schemas/queue.json +0 -1
- package/src/generated/schemas/queueHeartbeatData.json +0 -1
- package/src/generated/schemas/queueHeartbeatStatus.json +0 -1
- package/src/generated/schemas/queueMessage.json +0 -1
- package/src/generated/schemas/queueOutputs.json +0 -1
- package/src/generated/schemas/rawHeartbeatSnippet.json +0 -1
- package/src/generated/schemas/rawHeartbeatSnippetFormat.json +0 -1
- package/src/generated/schemas/readinessProbe.json +0 -1
- package/src/generated/schemas/releaseRequest.json +0 -1
- package/src/generated/schemas/remoteStackManagement.json +0 -1
- package/src/generated/schemas/remoteStackManagementHeartbeatData.json +0 -1
- package/src/generated/schemas/remoteStackManagementHeartbeatStatus.json +0 -1
- package/src/generated/schemas/remoteStackManagementOutputs.json +0 -1
- package/src/generated/schemas/replicaStatus.json +0 -1
- package/src/generated/schemas/resourceEntry.json +0 -1
- package/src/generated/schemas/resourceHeartbeat.json +0 -1
- package/src/generated/schemas/resourceHeartbeatData.json +0 -1
- package/src/generated/schemas/resourceLifecycle.json +0 -1
- package/src/generated/schemas/resourceRef.json +0 -1
- package/src/generated/schemas/resourceSpec.json +0 -1
- package/src/generated/schemas/resourceStatus.json +0 -1
- package/src/generated/schemas/resourceType.json +0 -1
- package/src/generated/schemas/responseHandling.json +0 -1
- package/src/generated/schemas/scheduledEvent.json +0 -1
- package/src/generated/schemas/serviceAccount.json +0 -1
- package/src/generated/schemas/serviceAccountHeartbeatData.json +0 -1
- package/src/generated/schemas/serviceAccountHeartbeatStatus.json +0 -1
- package/src/generated/schemas/serviceAccountOutputs.json +0 -1
- package/src/generated/schemas/serviceActivationHeartbeatData.json +0 -1
- package/src/generated/schemas/serviceActivationHeartbeatStatus.json +0 -1
- package/src/generated/schemas/stack.json +0 -1
- package/src/generated/schemas/stackImportRequest.json +0 -1
- package/src/generated/schemas/stackImportResponse.json +0 -1
- package/src/generated/schemas/stackInputDefaultValue.json +0 -1
- package/src/generated/schemas/stackInputDefinition.json +0 -1
- package/src/generated/schemas/stackInputEnvironmentMapping.json +0 -1
- package/src/generated/schemas/stackInputEnvironmentVariableType.json +0 -1
- package/src/generated/schemas/stackInputKind.json +0 -1
- package/src/generated/schemas/stackInputProvider.json +0 -1
- package/src/generated/schemas/stackInputValidation.json +0 -1
- package/src/generated/schemas/stackRef.json +0 -1
- package/src/generated/schemas/stackResourceState.json +0 -1
- package/src/generated/schemas/stackSettings.json +0 -1
- package/src/generated/schemas/stackState.json +0 -1
- package/src/generated/schemas/stackStatus.json +0 -1
- package/src/generated/schemas/storage.json +0 -1
- package/src/generated/schemas/storageEvent.json +0 -1
- package/src/generated/schemas/storageEventType.json +0 -1
- package/src/generated/schemas/storageEvents.json +0 -1
- package/src/generated/schemas/storageHeartbeatData.json +0 -1
- package/src/generated/schemas/storageHeartbeatStatus.json +0 -1
- package/src/generated/schemas/storageOutputs.json +0 -1
- package/src/generated/schemas/storageUpload.json +0 -1
- package/src/generated/schemas/submitResponseRequest.json +0 -1
- package/src/generated/schemas/telemetryMode.json +0 -1
- package/src/generated/schemas/toolchainConfig.json +0 -1
- package/src/generated/schemas/updatesMode.json +0 -1
- package/src/generated/schemas/uploadCompleteRequest.json +0 -1
- package/src/generated/schemas/uploadCompleteResponse.json +0 -1
- package/src/generated/schemas/value.json +0 -1
- package/src/generated/schemas/vault.json +0 -1
- package/src/generated/schemas/vaultHeartbeatData.json +0 -1
- package/src/generated/schemas/vaultHeartbeatStatus.json +0 -1
- package/src/generated/schemas/vaultOutputs.json +0 -1
- package/src/generated/schemas/worker.json +0 -1
- package/src/generated/schemas/workerCode.json +0 -1
- package/src/generated/schemas/workerHeartbeatData.json +0 -1
- package/src/generated/schemas/workerOutputs.json +0 -1
- package/src/generated/schemas/workerPublicEndpoint.json +0 -1
- package/src/generated/schemas/workerTrigger.json +0 -1
- package/src/generated/schemas/workloadHeartbeatStatus.json +0 -1
- package/src/generated/schemas/workloadReplicaStatus.json +0 -1
- package/src/generated/zod/agent-status-schema.ts +0 -30
- package/src/generated/zod/alien-error-schema.ts +0 -22
- package/src/generated/zod/alien-event-schema.ts +0 -127
- package/src/generated/zod/architecture-schema.ts +0 -13
- package/src/generated/zod/artifact-registry-heartbeat-data-schema.ts +0 -22
- package/src/generated/zod/artifact-registry-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/artifact-registry-outputs-schema.ts +0 -18
- package/src/generated/zod/artifact-registry-schema.ts +0 -16
- package/src/generated/zod/aurora-postgres-heartbeat-data-schema.ts +0 -20
- package/src/generated/zod/aws-artifact-registry-import-data-schema.ts +0 -21
- package/src/generated/zod/aws-build-import-data-schema.ts +0 -19
- package/src/generated/zod/aws-code-build-heartbeat-data-schema.ts +0 -35
- package/src/generated/zod/aws-compute-cluster-heartbeat-data-schema.ts +0 -37
- package/src/generated/zod/aws-compute-cluster-import-data-schema.ts +0 -17
- package/src/generated/zod/aws-custom-certificate-config-schema.ts +0 -12
- package/src/generated/zod/aws-daemon-heartbeat-data-schema.ts +0 -35
- package/src/generated/zod/aws-dynamo-db-key-schema-element-schema.ts +0 -13
- package/src/generated/zod/aws-dynamo-db-kv-heartbeat-data-schema.ts +0 -38
- package/src/generated/zod/aws-ecr-artifact-registry-heartbeat-data-schema.ts +0 -27
- package/src/generated/zod/aws-ecr-repository-heartbeat-data-schema.ts +0 -20
- package/src/generated/zod/aws-iam-role-service-account-heartbeat-data-schema.ts +0 -34
- package/src/generated/zod/aws-kv-import-data-schema.ts +0 -16
- package/src/generated/zod/aws-lambda-worker-heartbeat-data-schema.ts +0 -34
- package/src/generated/zod/aws-management-config-schema.ts +0 -15
- package/src/generated/zod/aws-network-import-data-schema.ts +0 -26
- package/src/generated/zod/aws-parameter-store-vault-heartbeat-data-schema.ts +0 -27
- package/src/generated/zod/aws-permission-effect-schema.ts +0 -10
- package/src/generated/zod/aws-platform-permission-schema.ts +0 -28
- package/src/generated/zod/aws-postgres-import-data-schema.ts +0 -23
- package/src/generated/zod/aws-queue-import-data-schema.ts +0 -17
- package/src/generated/zod/aws-remote-stack-management-heartbeat-data-schema.ts +0 -18
- package/src/generated/zod/aws-remote-stack-management-import-data-schema.ts +0 -17
- package/src/generated/zod/aws-s3-storage-heartbeat-data-schema.ts +0 -31
- package/src/generated/zod/aws-service-account-import-data-schema.ts +0 -17
- package/src/generated/zod/aws-sqs-queue-heartbeat-data-schema.ts +0 -38
- package/src/generated/zod/aws-storage-import-data-schema.ts +0 -16
- package/src/generated/zod/aws-vault-import-data-schema.ts +0 -17
- package/src/generated/zod/aws-vpc-network-heartbeat-data-schema.ts +0 -26
- package/src/generated/zod/aws-worker-import-data-schema.ts +0 -25
- package/src/generated/zod/azure-artifact-registry-import-data-schema.ts +0 -20
- package/src/generated/zod/azure-blob-storage-heartbeat-data-schema.ts +0 -43
- package/src/generated/zod/azure-build-import-data-schema.ts +0 -21
- package/src/generated/zod/azure-compute-cluster-heartbeat-data-schema.ts +0 -37
- package/src/generated/zod/azure-compute-cluster-import-data-schema.ts +0 -17
- package/src/generated/zod/azure-container-apps-build-heartbeat-data-schema.ts +0 -20
- package/src/generated/zod/azure-container-apps-environment-heartbeat-data-schema.ts +0 -32
- package/src/generated/zod/azure-container-apps-environment-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/azure-container-apps-environment-import-data-schema.ts +0 -20
- package/src/generated/zod/azure-container-apps-environment-workload-profile-schema.ts +0 -15
- package/src/generated/zod/azure-container-apps-worker-heartbeat-data-schema.ts +0 -25
- package/src/generated/zod/azure-container-registry-heartbeat-data-schema.ts +0 -41
- package/src/generated/zod/azure-custom-certificate-config-schema.ts +0 -13
- package/src/generated/zod/azure-daemon-heartbeat-data-schema.ts +0 -35
- package/src/generated/zod/azure-flexible-server-postgres-heartbeat-data-schema.ts +0 -18
- package/src/generated/zod/azure-flexible-server-postgres-import-data-schema.ts +0 -25
- package/src/generated/zod/azure-key-vault-heartbeat-data-schema.ts +0 -31
- package/src/generated/zod/azure-kv-import-data-schema.ts +0 -19
- package/src/generated/zod/azure-managed-identity-service-account-heartbeat-data-schema.ts +0 -30
- package/src/generated/zod/azure-management-config-schema.ts +0 -17
- package/src/generated/zod/azure-network-import-data-schema.ts +0 -25
- package/src/generated/zod/azure-platform-permission-schema.ts +0 -24
- package/src/generated/zod/azure-queue-import-data-schema.ts +0 -18
- package/src/generated/zod/azure-remote-stack-management-heartbeat-data-schema.ts +0 -22
- package/src/generated/zod/azure-remote-stack-management-import-data-schema.ts +0 -21
- package/src/generated/zod/azure-resource-group-heartbeat-data-schema.ts +0 -22
- package/src/generated/zod/azure-resource-group-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/azure-resource-group-import-data-schema.ts +0 -17
- package/src/generated/zod/azure-resource-provider-activation-heartbeat-data-schema.ts +0 -21
- package/src/generated/zod/azure-service-account-import-data-schema.ts +0 -20
- package/src/generated/zod/azure-service-activation-import-data-schema.ts +0 -17
- package/src/generated/zod/azure-service-bus-namespace-heartbeat-data-schema.ts +0 -34
- package/src/generated/zod/azure-service-bus-namespace-import-data-schema.ts +0 -18
- package/src/generated/zod/azure-service-bus-queue-heartbeat-data-schema.ts +0 -46
- package/src/generated/zod/azure-storage-account-endpoints-schema.ts +0 -17
- package/src/generated/zod/azure-storage-account-heartbeat-data-schema.ts +0 -42
- package/src/generated/zod/azure-storage-account-import-data-schema.ts +0 -22
- package/src/generated/zod/azure-storage-import-data-schema.ts +0 -18
- package/src/generated/zod/azure-table-kv-heartbeat-data-schema.ts +0 -26
- package/src/generated/zod/azure-vault-import-data-schema.ts +0 -18
- package/src/generated/zod/azure-vnet-network-heartbeat-data-schema.ts +0 -29
- package/src/generated/zod/azure-worker-import-data-schema.ts +0 -18
- package/src/generated/zod/base-resource-outputs-schema.ts +0 -18
- package/src/generated/zod/base-resource-schema.ts +0 -19
- package/src/generated/zod/binding-configuration-aws-binding-spec-schema.ts +0 -30
- package/src/generated/zod/binding-configuration-azure-binding-spec-schema.ts +0 -20
- package/src/generated/zod/binding-configuration-gcp-binding-spec-schema.ts +0 -27
- package/src/generated/zod/body-spec-schema.ts +0 -24
- package/src/generated/zod/build-config-schema.ts +0 -28
- package/src/generated/zod/build-heartbeat-data-schema.ts +0 -22
- package/src/generated/zod/build-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/build-outputs-schema.ts +0 -15
- package/src/generated/zod/build-schema.ts +0 -27
- package/src/generated/zod/build-status-schema.ts +0 -13
- package/src/generated/zod/capacity-group-scale-policy-schema.ts +0 -27
- package/src/generated/zod/capacity-group-schema.ts +0 -27
- package/src/generated/zod/command-response-schema.ts +0 -24
- package/src/generated/zod/command-state-schema.ts +0 -13
- package/src/generated/zod/command-status-response-schema.ts +0 -24
- package/src/generated/zod/compute-capacity-blocker-category-schema.ts +0 -10
- package/src/generated/zod/compute-capacity-blocker-schema.ts +0 -19
- package/src/generated/zod/compute-capacity-group-status-schema.ts +0 -29
- package/src/generated/zod/compute-capacity-recommendation-schema.ts +0 -18
- package/src/generated/zod/compute-choice-range-schema.ts +0 -17
- package/src/generated/zod/compute-cluster-heartbeat-data-schema.ts +0 -25
- package/src/generated/zod/compute-cluster-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/compute-cluster-schema.ts +0 -20
- package/src/generated/zod/compute-drain-blocker-schema.ts +0 -16
- package/src/generated/zod/compute-drain-progress-schema.ts +0 -26
- package/src/generated/zod/compute-drain-progress-status-schema.ts +0 -10
- package/src/generated/zod/compute-pool-selection-schema.ts +0 -22
- package/src/generated/zod/compute-settings-schema.ts +0 -18
- package/src/generated/zod/compute-type-schema.ts +0 -13
- package/src/generated/zod/container-autoscaling-schema.ts +0 -21
- package/src/generated/zod/container-code-schema.ts +0 -23
- package/src/generated/zod/container-gpu-spec-schema.ts +0 -16
- package/src/generated/zod/container-heartbeat-data-schema.ts +0 -19
- package/src/generated/zod/container-outputs-schema.ts +0 -30
- package/src/generated/zod/container-port-schema.ts +0 -15
- package/src/generated/zod/container-schema.ts +0 -65
- package/src/generated/zod/container-status-schema.ts +0 -13
- package/src/generated/zod/create-command-request-schema.ts +0 -22
- package/src/generated/zod/create-command-response-schema.ts +0 -25
- package/src/generated/zod/custom-certificate-config-schema.ts +0 -30
- package/src/generated/zod/custom-domain-config-schema.ts +0 -19
- package/src/generated/zod/daemon-code-schema.ts +0 -20
- package/src/generated/zod/daemon-heartbeat-data-schema.ts +0 -28
- package/src/generated/zod/daemon-outputs-schema.ts +0 -17
- package/src/generated/zod/daemon-runtime-mount-schema.ts +0 -14
- package/src/generated/zod/daemon-runtime-schema.ts +0 -19
- package/src/generated/zod/daemon-schema.ts +0 -48
- package/src/generated/zod/deployment-model-schema.ts +0 -13
- package/src/generated/zod/deployment-status-schema.ts +0 -13
- package/src/generated/zod/dev-resource-info-schema.ts +0 -16
- package/src/generated/zod/dev-status-schema.ts +0 -33
- package/src/generated/zod/dev-status-state-schema.ts +0 -13
- package/src/generated/zod/domain-settings-schema.ts +0 -22
- package/src/generated/zod/envelope-schema.ts +0 -28
- package/src/generated/zod/event-change-schema.ts +0 -40
- package/src/generated/zod/event-state-schema.ts +0 -20
- package/src/generated/zod/expose-protocol-schema.ts +0 -13
- package/src/generated/zod/gcp-artifact-registry-heartbeat-data-schema.ts +0 -35
- package/src/generated/zod/gcp-artifact-registry-import-data-schema.ts +0 -21
- package/src/generated/zod/gcp-build-import-data-schema.ts +0 -22
- package/src/generated/zod/gcp-cloud-build-heartbeat-data-schema.ts +0 -20
- package/src/generated/zod/gcp-cloud-run-worker-heartbeat-data-schema.ts +0 -29
- package/src/generated/zod/gcp-cloud-sql-postgres-heartbeat-data-schema.ts +0 -18
- package/src/generated/zod/gcp-cloud-storage-heartbeat-data-schema.ts +0 -33
- package/src/generated/zod/gcp-compute-cluster-heartbeat-data-schema.ts +0 -37
- package/src/generated/zod/gcp-compute-cluster-import-data-schema.ts +0 -17
- package/src/generated/zod/gcp-condition-schema.ts +0 -16
- package/src/generated/zod/gcp-custom-certificate-config-schema.ts +0 -12
- package/src/generated/zod/gcp-daemon-heartbeat-data-schema.ts +0 -35
- package/src/generated/zod/gcp-firestore-kv-heartbeat-data-schema.ts +0 -32
- package/src/generated/zod/gcp-kv-import-data-schema.ts +0 -17
- package/src/generated/zod/gcp-management-config-schema.ts +0 -15
- package/src/generated/zod/gcp-network-import-data-schema.ts +0 -22
- package/src/generated/zod/gcp-platform-permission-schema.ts +0 -24
- package/src/generated/zod/gcp-postgres-import-data-schema.ts +0 -23
- package/src/generated/zod/gcp-pub-sub-queue-heartbeat-data-schema.ts +0 -54
- package/src/generated/zod/gcp-queue-import-data-schema.ts +0 -19
- package/src/generated/zod/gcp-remote-stack-management-heartbeat-data-schema.ts +0 -19
- package/src/generated/zod/gcp-remote-stack-management-import-data-schema.ts +0 -19
- package/src/generated/zod/gcp-secret-manager-vault-heartbeat-data-schema.ts +0 -19
- package/src/generated/zod/gcp-service-account-heartbeat-data-schema.ts +0 -28
- package/src/generated/zod/gcp-service-account-import-data-schema.ts +0 -18
- package/src/generated/zod/gcp-service-activation-import-data-schema.ts +0 -17
- package/src/generated/zod/gcp-service-usage-activation-heartbeat-data-schema.ts +0 -22
- package/src/generated/zod/gcp-storage-import-data-schema.ts +0 -18
- package/src/generated/zod/gcp-vault-import-data-schema.ts +0 -16
- package/src/generated/zod/gcp-vpc-network-heartbeat-data-schema.ts +0 -25
- package/src/generated/zod/gcp-worker-import-data-schema.ts +0 -23
- package/src/generated/zod/gpu-spec-schema.ts +0 -16
- package/src/generated/zod/health-check-schema.ts +0 -19
- package/src/generated/zod/heartbeat-backend-schema.ts +0 -10
- package/src/generated/zod/heartbeat-collection-issue-reason-schema.ts +0 -10
- package/src/generated/zod/heartbeat-collection-issue-schema.ts +0 -21
- package/src/generated/zod/heartbeat-issue-severity-schema.ts +0 -10
- package/src/generated/zod/heartbeats-mode-schema.ts +0 -13
- package/src/generated/zod/horizon-container-heartbeat-data-schema.ts +0 -41
- package/src/generated/zod/horizon-workload-scheduling-mode-schema.ts +0 -10
- package/src/generated/zod/http-method-schema.ts +0 -13
- package/src/generated/zod/import-source-kind-schema.ts +0 -13
- package/src/generated/zod/imported-resource-schema.ts +0 -22
- package/src/generated/zod/index.ts +0 -706
- package/src/generated/zod/kubernetes-build-heartbeat-data-schema.ts +0 -28
- package/src/generated/zod/kubernetes-certificate-mode-schema.ts +0 -30
- package/src/generated/zod/kubernetes-cloud-reference-schema.ts +0 -21
- package/src/generated/zod/kubernetes-cluster-heartbeat-data-schema.ts +0 -41
- package/src/generated/zod/kubernetes-cluster-node-status-schema.ts +0 -35
- package/src/generated/zod/kubernetes-cluster-ownership-schema.ts +0 -13
- package/src/generated/zod/kubernetes-cluster-settings-schema.ts +0 -23
- package/src/generated/zod/kubernetes-container-heartbeat-data-schema.ts +0 -45
- package/src/generated/zod/kubernetes-custom-certificate-config-schema.ts +0 -15
- package/src/generated/zod/kubernetes-daemon-heartbeat-data-schema.ts +0 -42
- package/src/generated/zod/kubernetes-event-involved-object-schema.ts +0 -18
- package/src/generated/zod/kubernetes-event-snapshot-schema.ts +0 -30
- package/src/generated/zod/kubernetes-event-source-schema.ts +0 -13
- package/src/generated/zod/kubernetes-exposure-settings-schema.ts +0 -34
- package/src/generated/zod/kubernetes-gateway-route-profile-schema.ts +0 -27
- package/src/generated/zod/kubernetes-ingress-route-profile-schema.ts +0 -26
- package/src/generated/zod/kubernetes-node-condition-status-schema.ts +0 -15
- package/src/generated/zod/kubernetes-node-resources-schema.ts +0 -19
- package/src/generated/zod/kubernetes-node-usage-schema.ts +0 -18
- package/src/generated/zod/kubernetes-owner-reference-schema.ts +0 -15
- package/src/generated/zod/kubernetes-pod-runtime-unit-status-schema.ts +0 -31
- package/src/generated/zod/kubernetes-route-profile-schema.ts +0 -19
- package/src/generated/zod/kubernetes-route-provider-options-schema.ts +0 -27
- package/src/generated/zod/kubernetes-secret-vault-heartbeat-data-schema.ts +0 -18
- package/src/generated/zod/kubernetes-settings-schema.ts +0 -22
- package/src/generated/zod/kubernetes-tls-secret-ref-schema.ts +0 -16
- package/src/generated/zod/kubernetes-worker-heartbeat-data-schema.ts +0 -46
- package/src/generated/zod/kubernetes-workload-condition-schema.ts +0 -16
- package/src/generated/zod/kubernetes-workload-kind-schema.ts +0 -10
- package/src/generated/zod/kubernetes-workload-status-schema.ts +0 -22
- package/src/generated/zod/kv-heartbeat-data-schema.ts +0 -22
- package/src/generated/zod/kv-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/kv-outputs-schema.ts +0 -17
- package/src/generated/zod/kv-schema.ts +0 -15
- package/src/generated/zod/lease-info-schema.ts +0 -22
- package/src/generated/zod/lease-request-schema.ts +0 -17
- package/src/generated/zod/lease-response-schema.ts +0 -18
- package/src/generated/zod/lifecycle-rule-schema.ts +0 -16
- package/src/generated/zod/load-balancer-endpoint-schema.ts +0 -16
- package/src/generated/zod/local-artifact-registry-heartbeat-data-schema.ts +0 -17
- package/src/generated/zod/local-compute-cluster-heartbeat-data-schema.ts +0 -30
- package/src/generated/zod/local-container-heartbeat-data-schema.ts +0 -39
- package/src/generated/zod/local-daemon-heartbeat-data-schema.ts +0 -30
- package/src/generated/zod/local-kv-heartbeat-data-schema.ts +0 -20
- package/src/generated/zod/local-operation-schema.ts +0 -13
- package/src/generated/zod/local-postgres-heartbeat-data-schema.ts +0 -19
- package/src/generated/zod/local-queue-heartbeat-data-schema.ts +0 -18
- package/src/generated/zod/local-runtime-event-snapshot-schema.ts +0 -26
- package/src/generated/zod/local-runtime-event-subject-schema.ts +0 -14
- package/src/generated/zod/local-runtime-unit-kind-schema.ts +0 -10
- package/src/generated/zod/local-runtime-unit-status-schema.ts +0 -28
- package/src/generated/zod/local-service-account-heartbeat-data-schema.ts +0 -17
- package/src/generated/zod/local-storage-heartbeat-data-schema.ts +0 -20
- package/src/generated/zod/local-vault-heartbeat-data-schema.ts +0 -21
- package/src/generated/zod/local-worker-heartbeat-data-schema.ts +0 -35
- package/src/generated/zod/machine-profile-schema.ts +0 -25
- package/src/generated/zod/machines-compute-cluster-heartbeat-data-schema.ts +0 -36
- package/src/generated/zod/machines-compute-machine-status-schema.ts +0 -30
- package/src/generated/zod/machines-daemon-heartbeat-data-schema.ts +0 -35
- package/src/generated/zod/managed-runtime-event-involved-object-schema.ts +0 -20
- package/src/generated/zod/managed-runtime-event-snapshot-schema.ts +0 -34
- package/src/generated/zod/managed-runtime-event-source-schema.ts +0 -13
- package/src/generated/zod/managed-runtime-unit-status-schema.ts +0 -34
- package/src/generated/zod/management-config-schema.ts +0 -24
- package/src/generated/zod/management-permissions-schema.ts +0 -22
- package/src/generated/zod/message-payload-schema.ts +0 -17
- package/src/generated/zod/metric-sample-schema.ts +0 -16
- package/src/generated/zod/metric-unit-schema.ts +0 -10
- package/src/generated/zod/monitoring-config-schema.ts +0 -21
- package/src/generated/zod/network-heartbeat-data-schema.ts +0 -19
- package/src/generated/zod/network-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/network-settings-schema.ts +0 -37
- package/src/generated/zod/observed-counts-schema.ts +0 -14
- package/src/generated/zod/observed-health-schema.ts +0 -10
- package/src/generated/zod/observed-inventory-batch-schema.ts +0 -27
- package/src/generated/zod/observed-resource-sample-schema.ts +0 -54
- package/src/generated/zod/permission-grant-schema.ts +0 -19
- package/src/generated/zod/permission-profile-schema.ts +0 -16
- package/src/generated/zod/permission-set-reference-schema.ts +0 -14
- package/src/generated/zod/permission-set-schema.ts +0 -20
- package/src/generated/zod/permissions-config-schema.ts +0 -22
- package/src/generated/zod/persistent-storage-schema.ts +0 -16
- package/src/generated/zod/platform-permissions-schema.ts +0 -26
- package/src/generated/zod/platform-schema.ts +0 -13
- package/src/generated/zod/postgres-backend-schema.ts +0 -15
- package/src/generated/zod/postgres-heartbeat-data-schema.ts +0 -22
- package/src/generated/zod/postgres-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/postgres-outputs-schema.ts +0 -17
- package/src/generated/zod/postgres-schema.ts +0 -24
- package/src/generated/zod/presigned-operation-schema.ts +0 -13
- package/src/generated/zod/presigned-request-backend-schema.ts +0 -27
- package/src/generated/zod/presigned-request-schema.ts +0 -24
- package/src/generated/zod/provider-fleet-status-schema.ts +0 -16
- package/src/generated/zod/provider-lifecycle-state-schema.ts +0 -10
- package/src/generated/zod/public-endpoint-output-schema.ts +0 -21
- package/src/generated/zod/public-endpoint-schema.ts +0 -22
- package/src/generated/zod/public-endpoint-target-settings-schema.ts +0 -18
- package/src/generated/zod/push-progress-schema.ts +0 -19
- package/src/generated/zod/queue-heartbeat-data-schema.ts +0 -22
- package/src/generated/zod/queue-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/queue-message-schema.ts +0 -26
- package/src/generated/zod/queue-outputs-schema.ts +0 -16
- package/src/generated/zod/queue-schema.ts +0 -15
- package/src/generated/zod/raw-heartbeat-snippet-format-schema.ts +0 -10
- package/src/generated/zod/raw-heartbeat-snippet-schema.ts +0 -19
- package/src/generated/zod/readiness-probe-schema.ts +0 -19
- package/src/generated/zod/release-request-schema.ts +0 -15
- package/src/generated/zod/remote-stack-management-heartbeat-data-schema.ts +0 -19
- package/src/generated/zod/remote-stack-management-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/remote-stack-management-outputs-schema.ts +0 -16
- package/src/generated/zod/remote-stack-management-schema.ts +0 -15
- package/src/generated/zod/replica-status-schema.ts +0 -19
- package/src/generated/zod/resource-entry-schema.ts +0 -24
- package/src/generated/zod/resource-heartbeat-data-schema.ts +0 -130
- package/src/generated/zod/resource-heartbeat-schema.ts +0 -34
- package/src/generated/zod/resource-lifecycle-schema.ts +0 -13
- package/src/generated/zod/resource-ref-schema.ts +0 -19
- package/src/generated/zod/resource-spec-schema.ts +0 -16
- package/src/generated/zod/resource-status-schema.ts +0 -13
- package/src/generated/zod/resource-type-schema.ts +0 -13
- package/src/generated/zod/response-handling-schema.ts +0 -20
- package/src/generated/zod/scheduled-event-schema.ts +0 -15
- package/src/generated/zod/service-account-heartbeat-data-schema.ts +0 -22
- package/src/generated/zod/service-account-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/service-account-outputs-schema.ts +0 -16
- package/src/generated/zod/service-account-schema.ts +0 -19
- package/src/generated/zod/service-activation-heartbeat-data-schema.ts +0 -16
- package/src/generated/zod/service-activation-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/stack-import-request-schema.ts +0 -50
- package/src/generated/zod/stack-import-response-schema.ts +0 -24
- package/src/generated/zod/stack-input-default-value-schema.ts +0 -25
- package/src/generated/zod/stack-input-definition-schema.ts +0 -43
- package/src/generated/zod/stack-input-environment-mapping-schema.ts +0 -20
- package/src/generated/zod/stack-input-environment-variable-type-schema.ts +0 -13
- package/src/generated/zod/stack-input-kind-schema.ts +0 -13
- package/src/generated/zod/stack-input-provider-schema.ts +0 -13
- package/src/generated/zod/stack-input-validation-schema.ts +0 -23
- package/src/generated/zod/stack-ref-schema.ts +0 -15
- package/src/generated/zod/stack-resource-state-schema.ts +0 -50
- package/src/generated/zod/stack-schema.ts +0 -31
- package/src/generated/zod/stack-settings-schema.ts +0 -49
- package/src/generated/zod/stack-state-schema.ts +0 -23
- package/src/generated/zod/stack-status-schema.ts +0 -13
- package/src/generated/zod/storage-event-schema.ts +0 -32
- package/src/generated/zod/storage-event-type-schema.ts +0 -13
- package/src/generated/zod/storage-events-schema.ts +0 -14
- package/src/generated/zod/storage-heartbeat-data-schema.ts +0 -22
- package/src/generated/zod/storage-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/storage-outputs-schema.ts +0 -15
- package/src/generated/zod/storage-schema.ts +0 -21
- package/src/generated/zod/storage-upload-schema.ts +0 -19
- package/src/generated/zod/submit-response-request-schema.ts +0 -14
- package/src/generated/zod/telemetry-mode-schema.ts +0 -13
- package/src/generated/zod/toolchain-config-schema.ts +0 -26
- package/src/generated/zod/updates-mode-schema.ts +0 -13
- package/src/generated/zod/upload-complete-request-schema.ts +0 -15
- package/src/generated/zod/upload-complete-response-schema.ts +0 -19
- package/src/generated/zod/value-schema.ts +0 -10
- package/src/generated/zod/vault-heartbeat-data-schema.ts +0 -25
- package/src/generated/zod/vault-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/vault-outputs-schema.ts +0 -15
- package/src/generated/zod/vault-schema.ts +0 -15
- package/src/generated/zod/worker-code-schema.ts +0 -23
- package/src/generated/zod/worker-heartbeat-data-schema.ts +0 -25
- package/src/generated/zod/worker-outputs-schema.ts +0 -21
- package/src/generated/zod/worker-public-endpoint-schema.ts +0 -17
- package/src/generated/zod/worker-schema.ts +0 -43
- package/src/generated/zod/worker-trigger-schema.ts +0 -28
- package/src/generated/zod/workload-heartbeat-status-schema.ts +0 -26
- package/src/generated/zod/workload-replica-status-schema.ts +0 -17
- package/src/get-resource-outputs.ts +0 -101
- package/src/index.ts +0 -437
- package/src/input.ts +0 -380
- package/src/kv.ts +0 -72
- package/src/postgres.ts +0 -107
- package/src/queue.ts +0 -44
- package/src/resource.ts +0 -25
- package/src/service-account.ts +0 -117
- package/src/stack.ts +0 -133
- package/src/storage.ts +0 -84
- package/src/tests/index.ts +0 -6
- package/src/vault.ts +0 -49
- package/src/worker.ts +0 -251
- package/tsconfig.json +0 -4
- package/tsdown.config.ts +0 -10
package/src/common-errors.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4"
|
|
2
|
-
import { defineError } from "./error.js"
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Error thrown when a requested resource cannot be found in the stack state.
|
|
6
|
-
* This matches the Rust alien-core error: RESOURCE_NOT_FOUND
|
|
7
|
-
*/
|
|
8
|
-
export const ResourceNotFoundError = defineError({
|
|
9
|
-
code: "RESOURCE_NOT_FOUND",
|
|
10
|
-
context: z.object({
|
|
11
|
-
resourceId: z.string(),
|
|
12
|
-
availableResources: z.array(z.string()),
|
|
13
|
-
}),
|
|
14
|
-
message: ({ resourceId, availableResources }) =>
|
|
15
|
-
`Resource '${resourceId}' not found in stack state. Available resources: ${JSON.stringify(availableResources)}`,
|
|
16
|
-
retryable: false,
|
|
17
|
-
internal: false,
|
|
18
|
-
httpStatusCode: 404,
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Error thrown when resource outputs cannot be parsed according to their expected schema.
|
|
23
|
-
* This indicates an internal system error or data corruption.
|
|
24
|
-
*/
|
|
25
|
-
export const ResourceOutputsParseError = defineError({
|
|
26
|
-
code: "RESOURCE_OUTPUTS_PARSE_ERROR",
|
|
27
|
-
context: z.object({
|
|
28
|
-
resourceName: z.string(),
|
|
29
|
-
resourceType: z.string(),
|
|
30
|
-
validationErrors: z.string(),
|
|
31
|
-
}),
|
|
32
|
-
message: ({ resourceName, resourceType, validationErrors }) =>
|
|
33
|
-
`Failed to parse outputs for resource '${resourceName}' of type '${resourceType}':\n${validationErrors}`,
|
|
34
|
-
retryable: false,
|
|
35
|
-
internal: true,
|
|
36
|
-
httpStatusCode: 500,
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Error thrown when there's a resource type mismatch during stack operations.
|
|
41
|
-
* This matches the Rust alien-core error: UNEXPECTED_RESOURCE_TYPE
|
|
42
|
-
*/
|
|
43
|
-
export const UnexpectedResourceTypeError = defineError({
|
|
44
|
-
code: "UNEXPECTED_RESOURCE_TYPE",
|
|
45
|
-
context: z.object({
|
|
46
|
-
resourceId: z.string(),
|
|
47
|
-
expected: z.string(),
|
|
48
|
-
actual: z.string(),
|
|
49
|
-
}),
|
|
50
|
-
message: ({ resourceId, expected, actual }) =>
|
|
51
|
-
`Unexpected resource type for resource '${resourceId}': expected ${expected}, but got ${actual}`,
|
|
52
|
-
retryable: false,
|
|
53
|
-
internal: false,
|
|
54
|
-
httpStatusCode: 400,
|
|
55
|
-
})
|
package/src/compute-cluster.ts
DELETED
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type ComputeCluster as ComputeClusterConfig,
|
|
3
|
-
ComputeClusterSchema,
|
|
4
|
-
type MachineProfile,
|
|
5
|
-
type ResourceType,
|
|
6
|
-
} from "./generated/index.js"
|
|
7
|
-
import { Resource } from "./resource.js"
|
|
8
|
-
|
|
9
|
-
export type {
|
|
10
|
-
ComputeCluster as ComputeClusterConfig,
|
|
11
|
-
CapacityGroup,
|
|
12
|
-
CapacityGroupScalePolicy,
|
|
13
|
-
ComputeChoiceRange as GeneratedComputeChoiceRange,
|
|
14
|
-
MachineProfile,
|
|
15
|
-
} from "./generated/index.js"
|
|
16
|
-
export {
|
|
17
|
-
ComputeClusterSchema as ComputeClusterConfigSchema,
|
|
18
|
-
CapacityGroupSchema,
|
|
19
|
-
CapacityGroupScalePolicySchema,
|
|
20
|
-
ComputeChoiceRangeSchema,
|
|
21
|
-
MachineProfileSchema,
|
|
22
|
-
} from "./generated/index.js"
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Hardware requirements for a compute pool.
|
|
26
|
-
*/
|
|
27
|
-
export type ComputePoolRequirements = {
|
|
28
|
-
cpu: number | string
|
|
29
|
-
memory: string
|
|
30
|
-
ephemeralStorage?: string
|
|
31
|
-
architecture?: "arm64" | "x86_64"
|
|
32
|
-
nestedVirtualization?: boolean
|
|
33
|
-
accelerators?: Array<{
|
|
34
|
-
type: string
|
|
35
|
-
count: number
|
|
36
|
-
}>
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type ComputeChoiceRange =
|
|
40
|
-
| number
|
|
41
|
-
| {
|
|
42
|
-
min: number
|
|
43
|
-
max: number
|
|
44
|
-
default: number
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export type ComputePoolScale =
|
|
48
|
-
| {
|
|
49
|
-
type: "fixed"
|
|
50
|
-
machines: ComputeChoiceRange
|
|
51
|
-
}
|
|
52
|
-
| {
|
|
53
|
-
type: "autoscale"
|
|
54
|
-
min: ComputeChoiceRange
|
|
55
|
-
max: ComputeChoiceRange
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export type ComputePoolInput = {
|
|
59
|
-
requirements: ComputePoolRequirements
|
|
60
|
-
scale: ComputePoolScale
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Declares a ComputeCluster — the setup-owned machine boundary for daemons and
|
|
65
|
-
* containers. Each capacity group inside the cluster becomes a separate
|
|
66
|
-
* Auto Scaling Group (AWS), Managed Instance Group (GCP), or VM Scale Set
|
|
67
|
-
* (Azure). Daemons reference a cluster via `daemon.cluster(...)` and (when
|
|
68
|
-
* the cluster has more than one capacity group) a specific group via
|
|
69
|
-
* `daemon.pool(...)`.
|
|
70
|
-
*
|
|
71
|
-
* Application source declares portable pool requirements. Provider machine
|
|
72
|
-
* names are selected later through deployment settings.
|
|
73
|
-
*/
|
|
74
|
-
export class ComputeCluster {
|
|
75
|
-
private _config: Partial<ComputeClusterConfig> = {
|
|
76
|
-
capacityGroups: [],
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
constructor(id: string) {
|
|
80
|
-
this._config.id = id
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Returns the resource type for permission targets that apply to all
|
|
85
|
-
* compute-cluster resources.
|
|
86
|
-
*/
|
|
87
|
-
public static any(): ResourceType {
|
|
88
|
-
return "compute-cluster"
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
public pool(groupId: string, config: ComputePoolInput): this {
|
|
92
|
-
const { minSize, maxSize } = selectedScaleBounds(config.scale)
|
|
93
|
-
this._config.capacityGroups!.push({
|
|
94
|
-
groupId,
|
|
95
|
-
profile: machineProfileFromRequirements(config.requirements),
|
|
96
|
-
minSize,
|
|
97
|
-
maxSize,
|
|
98
|
-
scalePolicy: scalePolicyFromInput(config.scale),
|
|
99
|
-
nestedVirtualization: config.requirements.nestedVirtualization,
|
|
100
|
-
})
|
|
101
|
-
return this
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Sets the container CIDR block used for inter-container networking inside
|
|
106
|
-
* the cluster. Each machine gets a /24 subnet carved from this range.
|
|
107
|
-
* Defaults to 10.244.0.0/16 if not specified.
|
|
108
|
-
*/
|
|
109
|
-
public containerCidr(cidr: string): this {
|
|
110
|
-
this._config.containerCidr = cidr
|
|
111
|
-
return this
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Builds and validates the cluster configuration.
|
|
116
|
-
*/
|
|
117
|
-
public build(): Resource {
|
|
118
|
-
const config = ComputeClusterSchema.parse(this._config)
|
|
119
|
-
return new Resource({
|
|
120
|
-
type: "compute-cluster",
|
|
121
|
-
...config,
|
|
122
|
-
})
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
function selectedScaleBounds(scale: ComputePoolScale): { minSize: number; maxSize: number } {
|
|
127
|
-
if (scale.type === "fixed") {
|
|
128
|
-
const machines = defaultChoice(scale.machines)
|
|
129
|
-
return { minSize: machines, maxSize: machines }
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
return {
|
|
133
|
-
minSize: defaultChoice(scale.min),
|
|
134
|
-
maxSize: defaultChoice(scale.max),
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
function scalePolicyFromInput(
|
|
139
|
-
scale: ComputePoolScale,
|
|
140
|
-
): ComputeClusterConfig["capacityGroups"][number]["scalePolicy"] {
|
|
141
|
-
if (scale.type === "fixed") {
|
|
142
|
-
return {
|
|
143
|
-
type: "fixed",
|
|
144
|
-
machines: choiceRange(scale.machines),
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
return {
|
|
149
|
-
type: "autoscale",
|
|
150
|
-
min: choiceRange(scale.min),
|
|
151
|
-
max: choiceRange(scale.max),
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
function choiceRange(choice: ComputeChoiceRange): { min: number; max: number; default: number } {
|
|
156
|
-
if (typeof choice === "number") {
|
|
157
|
-
return { min: choice, max: choice, default: choice }
|
|
158
|
-
}
|
|
159
|
-
return choice
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
function defaultChoice(choice: ComputeChoiceRange): number {
|
|
163
|
-
if (typeof choice === "number") {
|
|
164
|
-
return choice
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
return choice.default
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
function machineProfileFromRequirements(requirements: ComputePoolRequirements): MachineProfile {
|
|
171
|
-
return {
|
|
172
|
-
cpu: typeof requirements.cpu === "number" ? `${requirements.cpu}` : requirements.cpu,
|
|
173
|
-
memoryBytes: parseQuantityBytes(requirements.memory),
|
|
174
|
-
ephemeralStorageBytes: parseQuantityBytes(requirements.ephemeralStorage ?? "20Gi"),
|
|
175
|
-
architecture: requirements.architecture,
|
|
176
|
-
gpu: requirements.accelerators?.[0]
|
|
177
|
-
? {
|
|
178
|
-
type: requirements.accelerators[0].type,
|
|
179
|
-
count: requirements.accelerators[0].count,
|
|
180
|
-
}
|
|
181
|
-
: undefined,
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
function parseQuantityBytes(value: string): number {
|
|
186
|
-
const match = value.match(/^([0-9]+(?:\.[0-9]+)?)(Ki|Mi|Gi|Ti|k|M|G|T)?$/)
|
|
187
|
-
if (!match) {
|
|
188
|
-
throw new Error(`Invalid memory/storage quantity: ${value}`)
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
const amount = Number(match[1])
|
|
192
|
-
const suffix = match[2]
|
|
193
|
-
const multiplier =
|
|
194
|
-
suffix === "Ti"
|
|
195
|
-
? 1024 ** 4
|
|
196
|
-
: suffix === "Gi"
|
|
197
|
-
? 1024 ** 3
|
|
198
|
-
: suffix === "Mi"
|
|
199
|
-
? 1024 ** 2
|
|
200
|
-
: suffix === "Ki"
|
|
201
|
-
? 1024
|
|
202
|
-
: suffix === "T"
|
|
203
|
-
? 1000 ** 4
|
|
204
|
-
: suffix === "G"
|
|
205
|
-
? 1000 ** 3
|
|
206
|
-
: suffix === "M"
|
|
207
|
-
? 1000 ** 2
|
|
208
|
-
: suffix === "k"
|
|
209
|
-
? 1000
|
|
210
|
-
: 1
|
|
211
|
-
|
|
212
|
-
return Math.round(amount * multiplier)
|
|
213
|
-
}
|
package/src/container.ts
DELETED
|
@@ -1,423 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type ContainerAutoscaling,
|
|
3
|
-
type ContainerCode,
|
|
4
|
-
type Container as ContainerConfig,
|
|
5
|
-
type ContainerGpuSpec,
|
|
6
|
-
ContainerSchema,
|
|
7
|
-
type HealthCheck,
|
|
8
|
-
type PersistentStorage,
|
|
9
|
-
type PublicEndpoint,
|
|
10
|
-
type ResourceSpec,
|
|
11
|
-
type ResourceType,
|
|
12
|
-
} from "./generated/index.js"
|
|
13
|
-
import { Resource } from "./resource.js"
|
|
14
|
-
|
|
15
|
-
export type PublicEndpointOptions =
|
|
16
|
-
| "http"
|
|
17
|
-
| "tcp"
|
|
18
|
-
| {
|
|
19
|
-
protocol: "http" | "tcp"
|
|
20
|
-
hostLabel?: string
|
|
21
|
-
wildcardSubdomains?: boolean
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type {
|
|
25
|
-
Container as ContainerConfig,
|
|
26
|
-
ContainerOutputs,
|
|
27
|
-
ContainerCode,
|
|
28
|
-
ContainerAutoscaling,
|
|
29
|
-
ContainerPort,
|
|
30
|
-
ExposeProtocol,
|
|
31
|
-
PublicEndpoint,
|
|
32
|
-
ContainerGpuSpec,
|
|
33
|
-
ContainerStatus,
|
|
34
|
-
HealthCheck,
|
|
35
|
-
PersistentStorage,
|
|
36
|
-
ResourceSpec,
|
|
37
|
-
ReplicaStatus,
|
|
38
|
-
} from "./generated/index.js"
|
|
39
|
-
export {
|
|
40
|
-
ContainerSchema as ContainerConfigSchema,
|
|
41
|
-
ContainerPortSchema,
|
|
42
|
-
ExposeProtocolSchema,
|
|
43
|
-
ContainerCodeSchema,
|
|
44
|
-
ContainerAutoscalingSchema,
|
|
45
|
-
} from "./generated/index.js"
|
|
46
|
-
|
|
47
|
-
export interface PersistentStorageOptions {
|
|
48
|
-
/**
|
|
49
|
-
* Mount path inside the container.
|
|
50
|
-
*
|
|
51
|
-
* Defaults to `/data`.
|
|
52
|
-
*/
|
|
53
|
-
mountPath?: string
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Represents a long-running container workload.
|
|
58
|
-
*
|
|
59
|
-
* Containers run on compute instances (EC2, GCE, Azure VMs) and are orchestrated
|
|
60
|
-
* by the managed container backend. They're designed for always-on workloads
|
|
61
|
-
* like web services, APIs, databases, and background workers.
|
|
62
|
-
*/
|
|
63
|
-
export class Container {
|
|
64
|
-
private _config: Partial<ContainerConfig> = {
|
|
65
|
-
links: [],
|
|
66
|
-
ports: [],
|
|
67
|
-
publicEndpoints: [],
|
|
68
|
-
environment: {},
|
|
69
|
-
stateful: false,
|
|
70
|
-
// cluster is optional - if not set, ComputeClusterMutation will auto-assign
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Creates a new Container builder.
|
|
75
|
-
* @param id Identifier for the container. Must be DNS-compatible: lowercase alphanumeric with hyphens.
|
|
76
|
-
*/
|
|
77
|
-
constructor(id: string) {
|
|
78
|
-
this._config.id = id
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Returns a ResourceType representing any container resource.
|
|
83
|
-
* Used for creating permission targets that apply to all container resources.
|
|
84
|
-
* @returns The "container" resource type.
|
|
85
|
-
*/
|
|
86
|
-
public static any(): ResourceType {
|
|
87
|
-
return "container"
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Sets the container cluster this container runs on.
|
|
92
|
-
* @param clusterId The ComputeCluster resource ID.
|
|
93
|
-
* @returns The Container builder instance.
|
|
94
|
-
*/
|
|
95
|
-
public cluster(clusterId: string): this {
|
|
96
|
-
this._config.cluster = clusterId
|
|
97
|
-
return this
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Sets the code for the container, either a pre-built image or source code to be built.
|
|
102
|
-
* @param code The container code configuration.
|
|
103
|
-
* @returns The Container builder instance.
|
|
104
|
-
*/
|
|
105
|
-
public code(code: ContainerCode): this {
|
|
106
|
-
this._config.code = code
|
|
107
|
-
return this
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Sets the CPU resources for the container.
|
|
112
|
-
*
|
|
113
|
-
* For simplified configuration, use a single number:
|
|
114
|
-
* - `.cpu(1)` sets both min and desired to 1 vCPU
|
|
115
|
-
*
|
|
116
|
-
* For advanced configuration, use ResourceSpec:
|
|
117
|
-
* - `.cpu({ min: "0.5", desired: "1" })`
|
|
118
|
-
*
|
|
119
|
-
* @param value CPU in vCPUs (number) or ResourceSpec with min/desired.
|
|
120
|
-
* @returns The Container builder instance.
|
|
121
|
-
*/
|
|
122
|
-
public cpu(value: number | ResourceSpec): this {
|
|
123
|
-
if (typeof value === "number") {
|
|
124
|
-
this._config.cpu = { min: value.toString(), desired: value.toString() }
|
|
125
|
-
} else {
|
|
126
|
-
this._config.cpu = value
|
|
127
|
-
}
|
|
128
|
-
return this
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Sets the memory resources for the container.
|
|
133
|
-
*
|
|
134
|
-
* Format: "<number>Mi" or "<number>Gi"
|
|
135
|
-
*
|
|
136
|
-
* Example: "512Mi", "2Gi", "16Gi"
|
|
137
|
-
*
|
|
138
|
-
* @param size Memory size string.
|
|
139
|
-
* @returns The Container builder instance.
|
|
140
|
-
*/
|
|
141
|
-
public memory(size: string): this {
|
|
142
|
-
this._config.memory = { min: size, desired: size }
|
|
143
|
-
return this
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Sets minimum and maximum replica counts with autoscaling configuration.
|
|
148
|
-
*
|
|
149
|
-
* @param min Minimum replicas (always running).
|
|
150
|
-
* @param max Maximum replicas under load.
|
|
151
|
-
* @returns The Container builder instance.
|
|
152
|
-
*/
|
|
153
|
-
public minReplicas(min: number): this {
|
|
154
|
-
if (!this._config.autoscaling) {
|
|
155
|
-
this._config.autoscaling = {
|
|
156
|
-
min,
|
|
157
|
-
desired: min,
|
|
158
|
-
max: min * 10, // Default max is 10x min
|
|
159
|
-
}
|
|
160
|
-
} else {
|
|
161
|
-
this._config.autoscaling.min = min
|
|
162
|
-
this._config.autoscaling.desired = min
|
|
163
|
-
}
|
|
164
|
-
return this
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Sets the maximum replica count for autoscaling.
|
|
169
|
-
* @param max Maximum replicas.
|
|
170
|
-
* @returns The Container builder instance.
|
|
171
|
-
*/
|
|
172
|
-
public maxReplicas(max: number): this {
|
|
173
|
-
if (!this._config.autoscaling) {
|
|
174
|
-
this._config.autoscaling = {
|
|
175
|
-
min: 1,
|
|
176
|
-
desired: 1,
|
|
177
|
-
max,
|
|
178
|
-
}
|
|
179
|
-
} else {
|
|
180
|
-
this._config.autoscaling.max = max
|
|
181
|
-
}
|
|
182
|
-
return this
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Sets a fixed replica count (for stateful containers or stateless without autoscaling).
|
|
187
|
-
* Cannot be used with minReplicas/maxReplicas.
|
|
188
|
-
* @param count Fixed number of replicas.
|
|
189
|
-
* @returns The Container builder instance.
|
|
190
|
-
*/
|
|
191
|
-
public replicas(count: number): this {
|
|
192
|
-
this._config.replicas = count
|
|
193
|
-
this._config.autoscaling = undefined
|
|
194
|
-
return this
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Configures autoscaling behavior.
|
|
199
|
-
* @param config Autoscaling configuration.
|
|
200
|
-
* @returns The Container builder instance.
|
|
201
|
-
*/
|
|
202
|
-
public autoScale(config: ContainerAutoscaling): this {
|
|
203
|
-
this._config.autoscaling = config
|
|
204
|
-
return this
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Sets whether this container is stateful.
|
|
209
|
-
* Stateful containers get stable ordinals and support persistent storage.
|
|
210
|
-
* @param enabled Whether the container is stateful.
|
|
211
|
-
* @returns The Container builder instance.
|
|
212
|
-
*/
|
|
213
|
-
public stateful(enabled: boolean): this {
|
|
214
|
-
this._config.stateful = enabled
|
|
215
|
-
return this
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Adds an internal-only port to the container.
|
|
220
|
-
* Automatically creates DNS records for service discovery.
|
|
221
|
-
* @param port Port number (e.g., 3000, 8080, 5432).
|
|
222
|
-
* @returns The Container builder instance.
|
|
223
|
-
*/
|
|
224
|
-
public port(port: number): this {
|
|
225
|
-
if (!this._config.ports) {
|
|
226
|
-
this._config.ports = []
|
|
227
|
-
}
|
|
228
|
-
this._config.ports.push({ port })
|
|
229
|
-
return this
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Adds multiple internal-only ports to the container.
|
|
234
|
-
* @param ports Array of port numbers.
|
|
235
|
-
* @returns The Container builder instance.
|
|
236
|
-
*/
|
|
237
|
-
public ports(ports: number[]): this {
|
|
238
|
-
if (!this._config.ports) {
|
|
239
|
-
this._config.ports = []
|
|
240
|
-
}
|
|
241
|
-
this._config.ports.push(...ports.map(port => ({ port })))
|
|
242
|
-
return this
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* Exposes a named public endpoint for a container port.
|
|
247
|
-
*
|
|
248
|
-
* Endpoint names are the stable contract for URLs, DNS, and runtime
|
|
249
|
-
* environment injection.
|
|
250
|
-
*
|
|
251
|
-
* @param name Endpoint name, unique within this container.
|
|
252
|
-
* @param port Port number to expose.
|
|
253
|
-
* @param options "http"/"tcp" or endpoint options.
|
|
254
|
-
* @returns The Container builder instance.
|
|
255
|
-
*/
|
|
256
|
-
public publicEndpoint(name: string, port: number, options: PublicEndpointOptions = "http"): this {
|
|
257
|
-
if (!this._config.ports) {
|
|
258
|
-
this._config.ports = []
|
|
259
|
-
}
|
|
260
|
-
if (!this._config.publicEndpoints) {
|
|
261
|
-
this._config.publicEndpoints = []
|
|
262
|
-
}
|
|
263
|
-
const endpoint =
|
|
264
|
-
typeof options === "string"
|
|
265
|
-
? { protocol: options, hostLabel: undefined, wildcardSubdomains: false }
|
|
266
|
-
: options
|
|
267
|
-
|
|
268
|
-
if (!this._config.ports.some(p => p.port === port)) {
|
|
269
|
-
this._config.ports.push({
|
|
270
|
-
port,
|
|
271
|
-
})
|
|
272
|
-
}
|
|
273
|
-
this._config.publicEndpoints.push({
|
|
274
|
-
name,
|
|
275
|
-
port,
|
|
276
|
-
protocol: endpoint.protocol,
|
|
277
|
-
hostLabel: endpoint.hostLabel,
|
|
278
|
-
wildcardSubdomains: endpoint.wildcardSubdomains ?? false,
|
|
279
|
-
} satisfies PublicEndpoint)
|
|
280
|
-
return this
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* Sets environment variables for the container.
|
|
285
|
-
* @param vars Key-value pairs of environment variables.
|
|
286
|
-
* @returns The Container builder instance.
|
|
287
|
-
*/
|
|
288
|
-
public environment(vars: Record<string, string>): this {
|
|
289
|
-
this._config.environment = { ...this._config.environment, ...vars }
|
|
290
|
-
return this
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Sets ephemeral storage size.
|
|
295
|
-
* Data is lost on container restart.
|
|
296
|
-
* @param size Storage size (e.g., "10Gi", "100Gi", "500Gi").
|
|
297
|
-
* @returns The Container builder instance.
|
|
298
|
-
*/
|
|
299
|
-
public ephemeralStorage(size: string): this {
|
|
300
|
-
this._config.ephemeralStorage = size
|
|
301
|
-
return this
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Configures persistent storage and marks the container stateful.
|
|
306
|
-
* Data survives container restarts.
|
|
307
|
-
* @param size Storage size (e.g., "100Gi", "500Gi", "1Ti").
|
|
308
|
-
* @param options Optional mount path.
|
|
309
|
-
* @returns The Container builder instance.
|
|
310
|
-
*/
|
|
311
|
-
public persistentStorage(size: string, options: PersistentStorageOptions = {}): this {
|
|
312
|
-
const persistentStorage: PersistentStorage = {
|
|
313
|
-
size,
|
|
314
|
-
mountPath: options.mountPath ?? "/data",
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
this._config.persistentStorage = persistentStorage
|
|
318
|
-
this._config.stateful = true
|
|
319
|
-
return this
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* Requests GPU resources.
|
|
324
|
-
* @param config GPU configuration with type and count.
|
|
325
|
-
* @returns The Container builder instance.
|
|
326
|
-
*/
|
|
327
|
-
public gpu(config: ContainerGpuSpec): this {
|
|
328
|
-
this._config.gpu = config
|
|
329
|
-
return this
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Configures health check for the container.
|
|
334
|
-
* @param config Health check configuration.
|
|
335
|
-
* @returns The Container builder instance.
|
|
336
|
-
*/
|
|
337
|
-
public healthCheck(config: HealthCheck): this {
|
|
338
|
-
this._config.healthCheck = config
|
|
339
|
-
return this
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* Configures readiness probe (alias for healthCheck).
|
|
344
|
-
* @param config Readiness probe configuration with method and path.
|
|
345
|
-
* @returns The Container builder instance.
|
|
346
|
-
*/
|
|
347
|
-
public readinessProbe(config: { method: string; path: string }): this {
|
|
348
|
-
this._config.healthCheck = {
|
|
349
|
-
path: config.path,
|
|
350
|
-
method: config.method,
|
|
351
|
-
timeoutSeconds: 1,
|
|
352
|
-
failureThreshold: 3,
|
|
353
|
-
}
|
|
354
|
-
return this
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* Sets the permission profile for this container.
|
|
359
|
-
* @param profile Permission profile name from stack permissions configuration.
|
|
360
|
-
* @returns The Container builder instance.
|
|
361
|
-
*/
|
|
362
|
-
public permissions(profile: string): this {
|
|
363
|
-
this._config.permissions = profile
|
|
364
|
-
return this
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* Assigns the container to a specific compute pool.
|
|
369
|
-
* @param poolName Compute pool name.
|
|
370
|
-
* @returns The Container builder instance.
|
|
371
|
-
*/
|
|
372
|
-
public pool(poolName: string): this {
|
|
373
|
-
this._config.pool = poolName
|
|
374
|
-
return this
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* Sets the command to override the image default.
|
|
379
|
-
* @param command Array of command arguments.
|
|
380
|
-
* @returns The Container builder instance.
|
|
381
|
-
*/
|
|
382
|
-
public command(command: string[]): this {
|
|
383
|
-
this._config.command = command
|
|
384
|
-
return this
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Sets the grace period used when stopping replicas during updates, drains, and deletes.
|
|
389
|
-
*
|
|
390
|
-
* The value is expressed in seconds. Valid values are 1 through 86400.
|
|
391
|
-
*/
|
|
392
|
-
public stopGracePeriod(seconds: number): this {
|
|
393
|
-
this._config.stopGracePeriodSeconds = seconds
|
|
394
|
-
return this
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* Links this container to another resource (Storage, Queue, KV, etc.).
|
|
399
|
-
* @param resource The resource to link to.
|
|
400
|
-
* @returns The Container builder instance.
|
|
401
|
-
*/
|
|
402
|
-
public link(resource: Resource): this {
|
|
403
|
-
if (!this._config.links) {
|
|
404
|
-
this._config.links = []
|
|
405
|
-
}
|
|
406
|
-
this._config.links.push(resource.ref())
|
|
407
|
-
return this
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* Builds and validates the container configuration.
|
|
412
|
-
* @returns An immutable Resource representing the configured container.
|
|
413
|
-
* @throws Error if the container configuration is invalid.
|
|
414
|
-
*/
|
|
415
|
-
public build(): Resource {
|
|
416
|
-
const config = ContainerSchema.parse(this._config)
|
|
417
|
-
|
|
418
|
-
return new Resource({
|
|
419
|
-
type: "container",
|
|
420
|
-
...config,
|
|
421
|
-
})
|
|
422
|
-
}
|
|
423
|
-
}
|