@alienplatform/core 1.14.1 → 2.0.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/dist/index.d.ts +467 -339
- 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
|
@@ -1,537 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from "vitest"
|
|
2
|
-
|
|
3
|
-
import { WorkerSchema } from "../generated/index.js"
|
|
4
|
-
import * as alien from "../index.js"
|
|
5
|
-
|
|
6
|
-
// Shared image URI for workers in tests
|
|
7
|
-
const SHARED_IMAGE = "docker.io/library/rust:latest"
|
|
8
|
-
|
|
9
|
-
describe("Stack builder validation", () => {
|
|
10
|
-
it("builds compute pools from portable requirements only", () => {
|
|
11
|
-
const compute = new alien.ComputeCluster("runtime")
|
|
12
|
-
.pool("nested", {
|
|
13
|
-
requirements: {
|
|
14
|
-
cpu: 4,
|
|
15
|
-
memory: "16Gi",
|
|
16
|
-
architecture: "x86_64",
|
|
17
|
-
nestedVirtualization: true,
|
|
18
|
-
},
|
|
19
|
-
scale: {
|
|
20
|
-
type: "fixed",
|
|
21
|
-
machines: { min: 2, max: 4, default: 2 },
|
|
22
|
-
},
|
|
23
|
-
})
|
|
24
|
-
.build()
|
|
25
|
-
|
|
26
|
-
expect(compute.config.capacityGroups).toEqual([
|
|
27
|
-
{
|
|
28
|
-
groupId: "nested",
|
|
29
|
-
profile: {
|
|
30
|
-
cpu: "4",
|
|
31
|
-
memoryBytes: 17179869184,
|
|
32
|
-
ephemeralStorageBytes: 21474836480,
|
|
33
|
-
architecture: "x86_64",
|
|
34
|
-
gpu: undefined,
|
|
35
|
-
},
|
|
36
|
-
minSize: 2,
|
|
37
|
-
maxSize: 2,
|
|
38
|
-
scalePolicy: {
|
|
39
|
-
type: "fixed",
|
|
40
|
-
machines: { min: 2, max: 4, default: 2 },
|
|
41
|
-
},
|
|
42
|
-
nestedVirtualization: true,
|
|
43
|
-
},
|
|
44
|
-
])
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
it("builds stack input definitions for deployment forms", () => {
|
|
48
|
-
const stackInputs = alien.inputs({
|
|
49
|
-
apiBaseUrl: alien.string({
|
|
50
|
-
providedBy: ["developer", "deployer"],
|
|
51
|
-
required: true,
|
|
52
|
-
label: "API base URL",
|
|
53
|
-
description: "Public URL used by the runtime service.",
|
|
54
|
-
placeholder: "https://api.example.com",
|
|
55
|
-
format: "url",
|
|
56
|
-
env: "API_BASE_URL",
|
|
57
|
-
}),
|
|
58
|
-
accessKey: alien.secret({
|
|
59
|
-
providedBy: "deployer",
|
|
60
|
-
required: true,
|
|
61
|
-
label: "Access key",
|
|
62
|
-
description: "Secret token used by the runtime service.",
|
|
63
|
-
minLength: 1,
|
|
64
|
-
env: {
|
|
65
|
-
name: "ACCESS_KEY",
|
|
66
|
-
targetResources: ["my-test-worker"],
|
|
67
|
-
type: "secret",
|
|
68
|
-
},
|
|
69
|
-
}),
|
|
70
|
-
deploymentTier: alien.enum(["starter", "enterprise"], {
|
|
71
|
-
providedBy: "developer",
|
|
72
|
-
required: false,
|
|
73
|
-
label: "Deployment tier",
|
|
74
|
-
description: "Controls default service sizing.",
|
|
75
|
-
default: "starter",
|
|
76
|
-
}),
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
const worker = new alien.Worker("my-test-worker")
|
|
80
|
-
.code({ type: "image", image: SHARED_IMAGE })
|
|
81
|
-
.permissions("execution")
|
|
82
|
-
.build()
|
|
83
|
-
|
|
84
|
-
const stack = new alien.Stack("my-test-stack").inputs(stackInputs).add(worker, "live").build()
|
|
85
|
-
const inputs = stack.inputs
|
|
86
|
-
expect(inputs).toBeDefined()
|
|
87
|
-
if (!inputs) {
|
|
88
|
-
throw new Error("expected stack inputs to be defined")
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
expect(inputs).toHaveLength(3)
|
|
92
|
-
expect(inputs.map(input => input.id)).toEqual(["apiBaseUrl", "accessKey", "deploymentTier"])
|
|
93
|
-
expect(inputs.find(input => input.id === "apiBaseUrl")).toMatchObject({
|
|
94
|
-
kind: "string",
|
|
95
|
-
providedBy: ["developer", "deployer"],
|
|
96
|
-
required: true,
|
|
97
|
-
validation: { format: "url" },
|
|
98
|
-
env: [{ name: "API_BASE_URL" }],
|
|
99
|
-
})
|
|
100
|
-
expect(inputs.find(input => input.id === "accessKey")).toMatchObject({
|
|
101
|
-
kind: "secret",
|
|
102
|
-
providedBy: ["deployer"],
|
|
103
|
-
env: [
|
|
104
|
-
{
|
|
105
|
-
name: "ACCESS_KEY",
|
|
106
|
-
targetResources: ["my-test-worker"],
|
|
107
|
-
type: "secret",
|
|
108
|
-
},
|
|
109
|
-
],
|
|
110
|
-
})
|
|
111
|
-
expect(inputs.find(input => input.id === "deploymentTier")).toMatchObject({
|
|
112
|
-
kind: "enum",
|
|
113
|
-
default: {
|
|
114
|
-
type: "string",
|
|
115
|
-
value: "starter",
|
|
116
|
-
},
|
|
117
|
-
validation: {
|
|
118
|
-
values: ["starter", "enterprise"],
|
|
119
|
-
},
|
|
120
|
-
})
|
|
121
|
-
})
|
|
122
|
-
|
|
123
|
-
it("rejects non-portable stack input regex patterns", () => {
|
|
124
|
-
expect(() =>
|
|
125
|
-
alien.inputs({
|
|
126
|
-
apiBaseUrl: alien.string({
|
|
127
|
-
providedBy: "deployer",
|
|
128
|
-
required: true,
|
|
129
|
-
label: "API base URL",
|
|
130
|
-
description: "Public URL used by the runtime service.",
|
|
131
|
-
pattern: "(?=https://).*",
|
|
132
|
-
}),
|
|
133
|
-
}),
|
|
134
|
-
).toThrow(/not portable/)
|
|
135
|
-
})
|
|
136
|
-
|
|
137
|
-
it("builds a stateful container with persistent storage options", () => {
|
|
138
|
-
const postgres = new alien.Container("postgres")
|
|
139
|
-
.code({ type: "image", image: "postgres:16-alpine" })
|
|
140
|
-
.cpu(0.5)
|
|
141
|
-
.memory("512Mi")
|
|
142
|
-
.port(5432)
|
|
143
|
-
.permissions("database")
|
|
144
|
-
.persistentStorage("20Gi", {
|
|
145
|
-
mountPath: "/var/lib/postgresql/data",
|
|
146
|
-
})
|
|
147
|
-
.build()
|
|
148
|
-
|
|
149
|
-
expect(postgres.config.stateful).toBe(true)
|
|
150
|
-
expect(postgres.config.persistentStorage).toEqual({
|
|
151
|
-
size: "20Gi",
|
|
152
|
-
mountPath: "/var/lib/postgresql/data",
|
|
153
|
-
})
|
|
154
|
-
})
|
|
155
|
-
|
|
156
|
-
it("builds container and daemon stop grace periods", () => {
|
|
157
|
-
const container = new alien.Container("api")
|
|
158
|
-
.code({ type: "image", image: "nginx:latest" })
|
|
159
|
-
.cpu(0.25)
|
|
160
|
-
.memory("256Mi")
|
|
161
|
-
.permissions("execution")
|
|
162
|
-
.stopGracePeriod(21_600)
|
|
163
|
-
.build()
|
|
164
|
-
|
|
165
|
-
expect(container.config.stopGracePeriodSeconds).toBe(21_600)
|
|
166
|
-
|
|
167
|
-
const daemon = new alien.Daemon("log-forwarder")
|
|
168
|
-
.code({ type: "image", image: "registry.example.com/log-forwarder:latest" })
|
|
169
|
-
.permissions("execution")
|
|
170
|
-
.stopGracePeriod(21_600)
|
|
171
|
-
.build()
|
|
172
|
-
|
|
173
|
-
expect(daemon.config.stopGracePeriodSeconds).toBe(21_600)
|
|
174
|
-
})
|
|
175
|
-
|
|
176
|
-
it("builds container and daemon wildcard public endpoint options", () => {
|
|
177
|
-
const container = new alien.Container("router")
|
|
178
|
-
.code({ type: "image", image: "nginx:latest" })
|
|
179
|
-
.cpu(0.25)
|
|
180
|
-
.memory("256Mi")
|
|
181
|
-
.permissions("execution")
|
|
182
|
-
.publicEndpoint("api", 8080, {
|
|
183
|
-
protocol: "http",
|
|
184
|
-
hostLabel: "edge",
|
|
185
|
-
wildcardSubdomains: true,
|
|
186
|
-
})
|
|
187
|
-
.build()
|
|
188
|
-
|
|
189
|
-
expect(container.config.ports).toEqual([
|
|
190
|
-
{
|
|
191
|
-
port: 8080,
|
|
192
|
-
},
|
|
193
|
-
])
|
|
194
|
-
expect(container.config.publicEndpoints).toEqual([
|
|
195
|
-
{
|
|
196
|
-
name: "api",
|
|
197
|
-
port: 8080,
|
|
198
|
-
protocol: "http",
|
|
199
|
-
hostLabel: "edge",
|
|
200
|
-
wildcardSubdomains: true,
|
|
201
|
-
},
|
|
202
|
-
])
|
|
203
|
-
|
|
204
|
-
const daemon = new alien.Daemon("gateway")
|
|
205
|
-
.code({ type: "image", image: "registry.example.com/gateway:latest" })
|
|
206
|
-
.cluster("compute")
|
|
207
|
-
.permissions("execution")
|
|
208
|
-
.publicEndpoint("api", 8080, {
|
|
209
|
-
protocol: "http",
|
|
210
|
-
hostLabel: "public",
|
|
211
|
-
wildcardSubdomains: true,
|
|
212
|
-
})
|
|
213
|
-
.healthCheck({
|
|
214
|
-
path: "/health",
|
|
215
|
-
method: "GET",
|
|
216
|
-
timeoutSeconds: 1,
|
|
217
|
-
failureThreshold: 3,
|
|
218
|
-
})
|
|
219
|
-
.build()
|
|
220
|
-
|
|
221
|
-
expect(daemon.config.publicEndpoints).toEqual([
|
|
222
|
-
{
|
|
223
|
-
name: "api",
|
|
224
|
-
port: 8080,
|
|
225
|
-
protocol: "http",
|
|
226
|
-
hostLabel: "public",
|
|
227
|
-
wildcardSubdomains: true,
|
|
228
|
-
},
|
|
229
|
-
])
|
|
230
|
-
expect(daemon.config.healthCheck).toEqual({
|
|
231
|
-
path: "/health",
|
|
232
|
-
method: "GET",
|
|
233
|
-
timeoutSeconds: 1,
|
|
234
|
-
failureThreshold: 3,
|
|
235
|
-
})
|
|
236
|
-
})
|
|
237
|
-
|
|
238
|
-
it("builds and validates a complex stack with permissions", () => {
|
|
239
|
-
// Storage bucket
|
|
240
|
-
const storage = new alien.Storage("my-test-bucket").publicRead(true).build()
|
|
241
|
-
|
|
242
|
-
// Main application worker with permissions
|
|
243
|
-
const worker = new alien.Worker("my-test-worker")
|
|
244
|
-
.code({ type: "image", image: SHARED_IMAGE })
|
|
245
|
-
.memoryMb(512)
|
|
246
|
-
.timeoutSeconds(30)
|
|
247
|
-
.permissions("execution")
|
|
248
|
-
.publicEndpoint("api")
|
|
249
|
-
.environment({
|
|
250
|
-
RUST_LOG: "info,alien_runtime_test_server=debug,alien_runtime=debug",
|
|
251
|
-
})
|
|
252
|
-
.link(storage)
|
|
253
|
-
.build()
|
|
254
|
-
|
|
255
|
-
const stack = new alien.Stack("my-test-stack")
|
|
256
|
-
.add(storage, "frozen")
|
|
257
|
-
.add(worker, "live")
|
|
258
|
-
.permissions({
|
|
259
|
-
profiles: {
|
|
260
|
-
execution: {
|
|
261
|
-
"*": ["storage/data-read"],
|
|
262
|
-
"my-test-bucket": ["storage/data-write"],
|
|
263
|
-
},
|
|
264
|
-
},
|
|
265
|
-
management: {
|
|
266
|
-
extend: {
|
|
267
|
-
"*": ["worker/management", "storage/management"],
|
|
268
|
-
},
|
|
269
|
-
},
|
|
270
|
-
})
|
|
271
|
-
.build()
|
|
272
|
-
|
|
273
|
-
// Basic assertions
|
|
274
|
-
expect(stack.id).toBe("my-test-stack")
|
|
275
|
-
expect(stack.resources).toHaveProperty("my-test-bucket")
|
|
276
|
-
expect(stack.resources).toHaveProperty("my-test-worker")
|
|
277
|
-
expect(stack.permissions?.profiles).toHaveProperty("execution")
|
|
278
|
-
expect(stack.permissions?.management).toHaveProperty("extend")
|
|
279
|
-
|
|
280
|
-
// Schema validation occurs inside build(); absence of thrown error means success
|
|
281
|
-
|
|
282
|
-
// Snapshot the full stack for regression testing
|
|
283
|
-
expect(stack).toMatchSnapshot()
|
|
284
|
-
})
|
|
285
|
-
|
|
286
|
-
it("builds and validates a stack with Build and ArtifactRegistry resources", () => {
|
|
287
|
-
// Artifact registry for storing build artifacts
|
|
288
|
-
const registry = new alien.ArtifactRegistry("my-artifact-registry").build()
|
|
289
|
-
|
|
290
|
-
// Storage for build inputs/outputs
|
|
291
|
-
const buildStorage = new alien.Storage("build-storage").build()
|
|
292
|
-
|
|
293
|
-
// Build resource with permissions
|
|
294
|
-
const build = new alien.Build("my-build")
|
|
295
|
-
.computeType("medium")
|
|
296
|
-
.environment({
|
|
297
|
-
NODE_ENV: "production",
|
|
298
|
-
BUILD_TARGET: "release",
|
|
299
|
-
})
|
|
300
|
-
.link(registry)
|
|
301
|
-
.link(buildStorage)
|
|
302
|
-
.permissions("builder")
|
|
303
|
-
.build()
|
|
304
|
-
|
|
305
|
-
const stack = new alien.Stack("build-stack")
|
|
306
|
-
.add(registry, "frozen")
|
|
307
|
-
.add(buildStorage, "frozen")
|
|
308
|
-
.add(build, "live")
|
|
309
|
-
.permissions({
|
|
310
|
-
profiles: {
|
|
311
|
-
builder: {
|
|
312
|
-
"*": ["artifact-registry/data-read", "artifact-registry/data-write"],
|
|
313
|
-
"build-storage": ["storage/data-read", "storage/data-write"],
|
|
314
|
-
},
|
|
315
|
-
},
|
|
316
|
-
management: {
|
|
317
|
-
extend: {
|
|
318
|
-
"*": ["build/management", "storage/management", "artifact-registry/management"],
|
|
319
|
-
},
|
|
320
|
-
},
|
|
321
|
-
})
|
|
322
|
-
.build()
|
|
323
|
-
|
|
324
|
-
// Basic assertions
|
|
325
|
-
expect(stack.id).toBe("build-stack")
|
|
326
|
-
expect(stack.resources).toHaveProperty("my-artifact-registry")
|
|
327
|
-
expect(stack.resources).toHaveProperty("build-storage")
|
|
328
|
-
expect(stack.resources).toHaveProperty("my-build")
|
|
329
|
-
|
|
330
|
-
// Verify resource configurations
|
|
331
|
-
const buildResource = stack.resources["my-build"]
|
|
332
|
-
expect(buildResource?.config.computeType).toBe("medium")
|
|
333
|
-
expect(buildResource?.config.environment).toEqual({
|
|
334
|
-
NODE_ENV: "production",
|
|
335
|
-
BUILD_TARGET: "release",
|
|
336
|
-
})
|
|
337
|
-
expect(buildResource?.config.links).toHaveLength(2)
|
|
338
|
-
|
|
339
|
-
// Schema validation occurs inside build(); absence of thrown error means success
|
|
340
|
-
expect(stack).toMatchSnapshot()
|
|
341
|
-
})
|
|
342
|
-
|
|
343
|
-
it("builds and validates a stack with worker source", () => {
|
|
344
|
-
const workerWithSource = new alien.Worker("my-source-worker")
|
|
345
|
-
.code({
|
|
346
|
-
type: "source",
|
|
347
|
-
src: "./app",
|
|
348
|
-
toolchain: { type: "typescript" },
|
|
349
|
-
})
|
|
350
|
-
.memoryMb(256)
|
|
351
|
-
.timeoutSeconds(15)
|
|
352
|
-
.permissions("execution")
|
|
353
|
-
.build()
|
|
354
|
-
|
|
355
|
-
const stack = new alien.Stack("my-source-stack")
|
|
356
|
-
.add(workerWithSource, "live")
|
|
357
|
-
.permissions({
|
|
358
|
-
profiles: {
|
|
359
|
-
execution: {
|
|
360
|
-
"*": ["worker/execute"],
|
|
361
|
-
},
|
|
362
|
-
},
|
|
363
|
-
management: {
|
|
364
|
-
extend: {
|
|
365
|
-
"*": ["worker/management"],
|
|
366
|
-
},
|
|
367
|
-
},
|
|
368
|
-
})
|
|
369
|
-
.build()
|
|
370
|
-
|
|
371
|
-
expect(stack.id).toBe("my-source-stack")
|
|
372
|
-
expect(stack.resources).toHaveProperty("my-source-worker")
|
|
373
|
-
const resourceInStack = stack.resources["my-source-worker"]
|
|
374
|
-
expect(resourceInStack).toBeDefined()
|
|
375
|
-
const workerConfigFromStack = WorkerSchema.parse(resourceInStack!.config)
|
|
376
|
-
expect(workerConfigFromStack.code.type).toBe("source")
|
|
377
|
-
|
|
378
|
-
expect(stack).toMatchSnapshot()
|
|
379
|
-
})
|
|
380
|
-
})
|
|
381
|
-
|
|
382
|
-
describe("Permissions system", () => {
|
|
383
|
-
it("creates a stack with custom permission sets", () => {
|
|
384
|
-
// Create a custom permission set
|
|
385
|
-
const customPermissionSet: alien.PermissionSet = {
|
|
386
|
-
id: "custom-storage-access",
|
|
387
|
-
description: "Custom storage access permissions",
|
|
388
|
-
platforms: {
|
|
389
|
-
aws: [
|
|
390
|
-
{
|
|
391
|
-
grant: { actions: ["s3:GetObject", "s3:PutObject"] },
|
|
392
|
-
binding: {
|
|
393
|
-
stack: { resources: ["arn:aws:s3:::${stackPrefix}-*"] },
|
|
394
|
-
},
|
|
395
|
-
},
|
|
396
|
-
],
|
|
397
|
-
},
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
// Create a worker with permissions
|
|
401
|
-
const worker = new alien.Worker("test-worker")
|
|
402
|
-
.code({ type: "image", image: SHARED_IMAGE })
|
|
403
|
-
.permissions("execution")
|
|
404
|
-
.build()
|
|
405
|
-
|
|
406
|
-
// Create stack with both string and custom permission sets
|
|
407
|
-
const stack = new alien.Stack("permissions-stack")
|
|
408
|
-
.add(worker, "live")
|
|
409
|
-
.permissions({
|
|
410
|
-
profiles: {
|
|
411
|
-
execution: {
|
|
412
|
-
"*": ["storage/data-read", customPermissionSet],
|
|
413
|
-
},
|
|
414
|
-
},
|
|
415
|
-
management: {
|
|
416
|
-
extend: {
|
|
417
|
-
"*": ["worker/management"],
|
|
418
|
-
},
|
|
419
|
-
},
|
|
420
|
-
})
|
|
421
|
-
.build()
|
|
422
|
-
|
|
423
|
-
// Verify the stack is properly configured
|
|
424
|
-
expect(stack.id).toBe("permissions-stack")
|
|
425
|
-
expect(stack.resources).toHaveProperty("test-worker")
|
|
426
|
-
expect(stack.permissions?.profiles).toHaveProperty("execution")
|
|
427
|
-
expect(stack.permissions?.management).toHaveProperty("extend")
|
|
428
|
-
|
|
429
|
-
// Verify the permissions structure
|
|
430
|
-
expect(stack.permissions?.profiles.execution?.["*"]).toEqual([
|
|
431
|
-
"storage/data-read",
|
|
432
|
-
customPermissionSet,
|
|
433
|
-
])
|
|
434
|
-
|
|
435
|
-
expect(stack).toMatchSnapshot()
|
|
436
|
-
})
|
|
437
|
-
})
|
|
438
|
-
|
|
439
|
-
describe("Build resource configuration", () => {
|
|
440
|
-
it("creates a build with all configuration options", () => {
|
|
441
|
-
// Create dependencies
|
|
442
|
-
const registry = new alien.ArtifactRegistry("test-registry").build()
|
|
443
|
-
const storage = new alien.Storage("test-storage").build()
|
|
444
|
-
|
|
445
|
-
// Create build with all options
|
|
446
|
-
const build = new alien.Build("comprehensive-build")
|
|
447
|
-
.computeType("large")
|
|
448
|
-
.environment({
|
|
449
|
-
NODE_ENV: "production",
|
|
450
|
-
BUILD_TARGET: "release",
|
|
451
|
-
CUSTOM_VAR: "test-value",
|
|
452
|
-
})
|
|
453
|
-
.link(registry)
|
|
454
|
-
.link(storage)
|
|
455
|
-
.permissions("builder")
|
|
456
|
-
.build()
|
|
457
|
-
|
|
458
|
-
// Verify configuration
|
|
459
|
-
expect(build.config.id).toBe("comprehensive-build")
|
|
460
|
-
expect(build.config.computeType).toBe("large")
|
|
461
|
-
expect(build.config.environment).toEqual({
|
|
462
|
-
NODE_ENV: "production",
|
|
463
|
-
BUILD_TARGET: "release",
|
|
464
|
-
CUSTOM_VAR: "test-value",
|
|
465
|
-
})
|
|
466
|
-
expect(build.config.links).toHaveLength(2)
|
|
467
|
-
expect(build.config.permissions).toBe("builder")
|
|
468
|
-
|
|
469
|
-
expect(build).toMatchSnapshot()
|
|
470
|
-
})
|
|
471
|
-
|
|
472
|
-
it("creates a minimal build with defaults", () => {
|
|
473
|
-
const build = new alien.Build("minimal-build").permissions("default").build()
|
|
474
|
-
|
|
475
|
-
// Verify minimal configuration
|
|
476
|
-
expect(build.config.id).toBe("minimal-build")
|
|
477
|
-
expect(build.config.links).toEqual([])
|
|
478
|
-
expect(build.config.environment).toEqual({})
|
|
479
|
-
expect(build.config.computeType).toBeUndefined()
|
|
480
|
-
expect(build.config.permissions).toBe("default")
|
|
481
|
-
|
|
482
|
-
expect(build).toMatchSnapshot()
|
|
483
|
-
})
|
|
484
|
-
|
|
485
|
-
it("tests all compute types", () => {
|
|
486
|
-
const computeTypes = ["small", "medium", "large", "x-large"] as const
|
|
487
|
-
|
|
488
|
-
for (const computeType of computeTypes) {
|
|
489
|
-
const build = new alien.Build(`build-${computeType}`)
|
|
490
|
-
.computeType(computeType)
|
|
491
|
-
.permissions("default")
|
|
492
|
-
.build()
|
|
493
|
-
|
|
494
|
-
expect(build.config.computeType).toBe(computeType)
|
|
495
|
-
}
|
|
496
|
-
})
|
|
497
|
-
})
|
|
498
|
-
|
|
499
|
-
describe("ArtifactRegistry resource configuration", () => {
|
|
500
|
-
it("creates an artifact registry", () => {
|
|
501
|
-
const registry = new alien.ArtifactRegistry("test-registry").build()
|
|
502
|
-
|
|
503
|
-
// Verify configuration
|
|
504
|
-
expect(registry.config.id).toBe("test-registry")
|
|
505
|
-
|
|
506
|
-
expect(registry).toMatchSnapshot()
|
|
507
|
-
})
|
|
508
|
-
|
|
509
|
-
it("can be used in stack permissions", () => {
|
|
510
|
-
const registry = new alien.ArtifactRegistry("protected-registry").build()
|
|
511
|
-
|
|
512
|
-
const worker = new alien.Worker("registry-user")
|
|
513
|
-
.code({ type: "image", image: SHARED_IMAGE })
|
|
514
|
-
.permissions("execution")
|
|
515
|
-
.build()
|
|
516
|
-
|
|
517
|
-
const stack = new alien.Stack("registry-stack")
|
|
518
|
-
.add(registry, "frozen")
|
|
519
|
-
.add(worker, "live")
|
|
520
|
-
.permissions({
|
|
521
|
-
profiles: {
|
|
522
|
-
execution: {
|
|
523
|
-
"protected-registry": ["artifact-registry/data-read", "artifact-registry/data-write"],
|
|
524
|
-
},
|
|
525
|
-
},
|
|
526
|
-
})
|
|
527
|
-
.build()
|
|
528
|
-
|
|
529
|
-
// Verify the stack includes permissions for the registry
|
|
530
|
-
expect(stack.permissions?.profiles.execution?.["protected-registry"]).toEqual([
|
|
531
|
-
"artifact-registry/data-read",
|
|
532
|
-
"artifact-registry/data-write",
|
|
533
|
-
])
|
|
534
|
-
|
|
535
|
-
expect(stack).toMatchSnapshot()
|
|
536
|
-
})
|
|
537
|
-
})
|
package/src/artifact-registry.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type ArtifactRegistry as ArtifactRegistryConfig,
|
|
3
|
-
ArtifactRegistrySchema,
|
|
4
|
-
type ResourceType,
|
|
5
|
-
} from "./generated/index.js"
|
|
6
|
-
import { Resource } from "./resource.js"
|
|
7
|
-
|
|
8
|
-
export type {
|
|
9
|
-
ArtifactRegistryOutputs,
|
|
10
|
-
ArtifactRegistry as ArtifactRegistryConfig,
|
|
11
|
-
} from "./generated/index.js"
|
|
12
|
-
export { ArtifactRegistrySchema as ArtifactRegistryConfigSchema } from "./generated/index.js"
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Represents an artifact registry for storing container images and other build artifacts.
|
|
16
|
-
* This is a high-level wrapper resource that provides a cloud-agnostic interface over
|
|
17
|
-
* AWS ECR, GCP Artifact Registry, and Azure Container Registry.
|
|
18
|
-
*/
|
|
19
|
-
export class ArtifactRegistry {
|
|
20
|
-
private _config: Partial<ArtifactRegistryConfig> = {}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Creates a new ArtifactRegistry builder.
|
|
24
|
-
* @param id Identifier for the artifact registry. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters.
|
|
25
|
-
*/
|
|
26
|
-
constructor(id: string) {
|
|
27
|
-
this._config.id = id
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Returns a ResourceType representing any artifact registry resource.
|
|
32
|
-
* Used for creating permission targets that apply to all artifact registry resources.
|
|
33
|
-
* @returns The "artifact-registry" resource type.
|
|
34
|
-
*/
|
|
35
|
-
public static any(): ResourceType {
|
|
36
|
-
return "artifact-registry"
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* AWS-only: Configure ECR private image replication to additional regions.
|
|
41
|
-
* Ensures images pushed in the registry's home region are automatically
|
|
42
|
-
* available in these destination regions (required when Lambda or other
|
|
43
|
-
* compute runs in a different region).
|
|
44
|
-
* @param regions - AWS region codes to replicate to (e.g., ["us-east-2", "eu-west-1"])
|
|
45
|
-
*/
|
|
46
|
-
public replicationRegions(regions: string[]): this {
|
|
47
|
-
this._config.replicationRegions = regions
|
|
48
|
-
return this
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Builds and validates the artifact registry configuration.
|
|
53
|
-
* @returns An immutable Resource representing the configured artifact registry.
|
|
54
|
-
* @throws Error if the artifact registry configuration is invalid.
|
|
55
|
-
*/
|
|
56
|
-
public build(): Resource {
|
|
57
|
-
const config = ArtifactRegistrySchema.parse(this._config)
|
|
58
|
-
|
|
59
|
-
return new Resource({
|
|
60
|
-
type: "artifact-registry",
|
|
61
|
-
...config,
|
|
62
|
-
})
|
|
63
|
-
}
|
|
64
|
-
}
|
package/src/build.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type Build as BuildConfig,
|
|
3
|
-
BuildSchema,
|
|
4
|
-
type ComputeType,
|
|
5
|
-
type ResourceType,
|
|
6
|
-
} from "./generated/index.js"
|
|
7
|
-
import { Resource } from "./resource.js"
|
|
8
|
-
|
|
9
|
-
export type { BuildOutputs, ComputeType, BuildStatus, BuildConfig } from "./generated/index.js"
|
|
10
|
-
export {
|
|
11
|
-
BuildOutputsSchema,
|
|
12
|
-
ComputeTypeSchema,
|
|
13
|
-
BuildStatusSchema,
|
|
14
|
-
BuildConfigSchema,
|
|
15
|
-
} from "./generated/index.js"
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Represents a build resource that executes bash scripts to build code.
|
|
19
|
-
* Builds are designed to be stateless and can be triggered on-demand to compile,
|
|
20
|
-
* test, or package application code.
|
|
21
|
-
*/
|
|
22
|
-
export class Build {
|
|
23
|
-
private _config: Partial<BuildConfig> = {
|
|
24
|
-
links: [],
|
|
25
|
-
environment: {},
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Creates a new Build builder.
|
|
30
|
-
* @param id Identifier for the build resource. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters.
|
|
31
|
-
*/
|
|
32
|
-
constructor(id: string) {
|
|
33
|
-
this._config.id = id
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Returns a ResourceType representing any build resource.
|
|
38
|
-
* Used for creating permission targets that apply to all build resources.
|
|
39
|
-
* @returns The "build" resource type.
|
|
40
|
-
*/
|
|
41
|
-
public static any(): ResourceType {
|
|
42
|
-
return "build"
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Sets the compute type for the build.
|
|
47
|
-
* @param type The compute type (small, medium, large, x-large).
|
|
48
|
-
* @returns The Build builder instance.
|
|
49
|
-
*/
|
|
50
|
-
public computeType(type: ComputeType): this {
|
|
51
|
-
this._config.computeType = type
|
|
52
|
-
return this
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Sets key-value pairs as environment variables for the build.
|
|
57
|
-
* @param env A map of environment variable names to their values.
|
|
58
|
-
* @returns The Build builder instance.
|
|
59
|
-
*/
|
|
60
|
-
public environment(env: Record<string, string>): this {
|
|
61
|
-
this._config.environment = env
|
|
62
|
-
return this
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Links another resource (e.g., Storage, ArtifactRegistry, Role) to this build.
|
|
67
|
-
* This makes the linked resource accessible to the build, often by injecting
|
|
68
|
-
* environment variables or granting permissions.
|
|
69
|
-
* @param resource The resource to link.
|
|
70
|
-
* @returns The Build builder instance.
|
|
71
|
-
*/
|
|
72
|
-
public link(resource: Resource): this {
|
|
73
|
-
if (!this._config.links) {
|
|
74
|
-
this._config.links = []
|
|
75
|
-
}
|
|
76
|
-
this._config.links.push(resource.ref())
|
|
77
|
-
return this
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Assigns a permission profile to this build.
|
|
82
|
-
* The profile defines the permissions granted to this build when interacting
|
|
83
|
-
* with other cloud resources.
|
|
84
|
-
* @param permissions The permission profile name.
|
|
85
|
-
* @returns The Build builder instance.
|
|
86
|
-
*/
|
|
87
|
-
public permissions(permissions: string): this {
|
|
88
|
-
this._config.permissions = permissions
|
|
89
|
-
return this
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Builds and validates the build configuration.
|
|
94
|
-
* @returns An immutable Resource representing the configured build.
|
|
95
|
-
* @throws Error if the build configuration is invalid.
|
|
96
|
-
*/
|
|
97
|
-
public build(): Resource {
|
|
98
|
-
const config = BuildSchema.parse(this._config)
|
|
99
|
-
|
|
100
|
-
return new Resource({
|
|
101
|
-
type: "build",
|
|
102
|
-
...config,
|
|
103
|
-
})
|
|
104
|
-
}
|
|
105
|
-
}
|