@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
package/src/input.ts
DELETED
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
Platform,
|
|
3
|
-
StackInputDefaultValue,
|
|
4
|
-
StackInputDefinition,
|
|
5
|
-
StackInputEnvironmentMapping,
|
|
6
|
-
StackInputEnvironmentVariableType,
|
|
7
|
-
StackInputKind,
|
|
8
|
-
StackInputProvider,
|
|
9
|
-
StackInputValidation,
|
|
10
|
-
} from "./generated/index.js"
|
|
11
|
-
|
|
12
|
-
const stackInputDraftSymbol = Symbol("alien.stackInputDraft")
|
|
13
|
-
const stackInputDefinitionsSymbol = Symbol("alien.stackInputDefinitions")
|
|
14
|
-
|
|
15
|
-
export type StackInputValue = string | number | boolean | string[]
|
|
16
|
-
|
|
17
|
-
type OneOrMany<T> = T | readonly T[]
|
|
18
|
-
|
|
19
|
-
export type StackInputEnvMapping =
|
|
20
|
-
| string
|
|
21
|
-
| {
|
|
22
|
-
name: string
|
|
23
|
-
targetResources?: readonly string[]
|
|
24
|
-
type?: StackInputEnvironmentVariableType
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface CommonInputOptions<TDefault extends StackInputValue> {
|
|
28
|
-
providedBy: OneOrMany<StackInputProvider>
|
|
29
|
-
required: boolean
|
|
30
|
-
label: string
|
|
31
|
-
description: string
|
|
32
|
-
placeholder?: string
|
|
33
|
-
default?: TDefault
|
|
34
|
-
platforms?: readonly Platform[]
|
|
35
|
-
env?: OneOrMany<StackInputEnvMapping>
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface StringInputOptions extends CommonInputOptions<string> {
|
|
39
|
-
minLength?: number
|
|
40
|
-
maxLength?: number
|
|
41
|
-
pattern?: string
|
|
42
|
-
format?: string
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface SecretInputOptions extends Omit<CommonInputOptions<string>, "default"> {
|
|
46
|
-
minLength?: number
|
|
47
|
-
maxLength?: number
|
|
48
|
-
pattern?: string
|
|
49
|
-
format?: string
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface NumberInputOptions extends CommonInputOptions<number> {
|
|
53
|
-
min?: number
|
|
54
|
-
max?: number
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface IntegerInputOptions extends CommonInputOptions<number> {
|
|
58
|
-
min?: number
|
|
59
|
-
max?: number
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface BooleanInputOptions extends CommonInputOptions<boolean> {}
|
|
63
|
-
|
|
64
|
-
export interface EnumInputOptions extends CommonInputOptions<string> {
|
|
65
|
-
placeholder?: string
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface StringListInputOptions extends CommonInputOptions<string[]> {
|
|
69
|
-
minItems?: number
|
|
70
|
-
maxItems?: number
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface StackInputRef<TValue extends StackInputValue = StackInputValue> {
|
|
74
|
-
readonly id: string
|
|
75
|
-
readonly kind: StackInputKind
|
|
76
|
-
readonly __value?: TValue
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export type StackInputCollection = {
|
|
80
|
-
readonly [stackInputDefinitionsSymbol]: readonly StackInputDefinition[]
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface StackInputDraft<TValue extends StackInputValue = StackInputValue> {
|
|
84
|
-
readonly [stackInputDraftSymbol]: true
|
|
85
|
-
readonly kind: StackInputKind
|
|
86
|
-
readonly options: CommonInputOptions<TValue>
|
|
87
|
-
readonly validation: StackInputValidation
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export type StackInputSet<T extends Record<string, StackInputDraft>> = {
|
|
91
|
-
readonly [K in keyof T]: T[K] extends StackInputDraft<infer TValue>
|
|
92
|
-
? StackInputRef<TValue>
|
|
93
|
-
: never
|
|
94
|
-
} & StackInputCollection
|
|
95
|
-
|
|
96
|
-
export function inputs<const T extends Record<string, StackInputDraft>>(
|
|
97
|
-
drafts: T,
|
|
98
|
-
): StackInputSet<T> {
|
|
99
|
-
const result = {} as Record<string, StackInputRef>
|
|
100
|
-
const definitions: StackInputDefinition[] = []
|
|
101
|
-
|
|
102
|
-
for (const [id, draft] of Object.entries(drafts)) {
|
|
103
|
-
validateInputId(id)
|
|
104
|
-
validateDraft(id, draft)
|
|
105
|
-
|
|
106
|
-
result[id] = { id, kind: draft.kind }
|
|
107
|
-
definitions.push({
|
|
108
|
-
id,
|
|
109
|
-
kind: draft.kind,
|
|
110
|
-
providedBy: normalizeArray(draft.options.providedBy),
|
|
111
|
-
required: draft.options.required,
|
|
112
|
-
label: draft.options.label,
|
|
113
|
-
description: draft.options.description,
|
|
114
|
-
placeholder: draft.options.placeholder,
|
|
115
|
-
default: toDefaultValue(draft.kind, draft.options.default),
|
|
116
|
-
platforms: draft.options.platforms ? [...draft.options.platforms] : undefined,
|
|
117
|
-
validation: Object.keys(draft.validation).length > 0 ? draft.validation : undefined,
|
|
118
|
-
env: normalizeEnv(draft.options.env),
|
|
119
|
-
})
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
Object.defineProperty(result, stackInputDefinitionsSymbol, {
|
|
123
|
-
value: Object.freeze(definitions),
|
|
124
|
-
enumerable: false,
|
|
125
|
-
})
|
|
126
|
-
|
|
127
|
-
return result as StackInputSet<T>
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export function getStackInputDefinitions(
|
|
131
|
-
value: StackInputCollection | readonly StackInputDefinition[],
|
|
132
|
-
): StackInputDefinition[] {
|
|
133
|
-
if (Array.isArray(value)) {
|
|
134
|
-
return [...(value as readonly StackInputDefinition[])]
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
return [...(value as StackInputCollection)[stackInputDefinitionsSymbol]]
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function defineInput<TValue extends StackInputValue>(
|
|
141
|
-
kind: StackInputKind,
|
|
142
|
-
options: CommonInputOptions<TValue>,
|
|
143
|
-
validation: StackInputValidation = {},
|
|
144
|
-
): StackInputDraft<TValue> {
|
|
145
|
-
return {
|
|
146
|
-
[stackInputDraftSymbol]: true,
|
|
147
|
-
kind,
|
|
148
|
-
options,
|
|
149
|
-
validation,
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
function defineStringInput(options: StringInputOptions): StackInputDraft<string> {
|
|
154
|
-
return defineInput("string", options, {
|
|
155
|
-
minLength: options.minLength,
|
|
156
|
-
maxLength: options.maxLength,
|
|
157
|
-
pattern: options.pattern,
|
|
158
|
-
format: options.format,
|
|
159
|
-
})
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
function defineSecretInput(options: SecretInputOptions): StackInputDraft<string> {
|
|
163
|
-
return defineInput("secret", options, {
|
|
164
|
-
minLength: options.minLength,
|
|
165
|
-
maxLength: options.maxLength,
|
|
166
|
-
pattern: options.pattern,
|
|
167
|
-
format: options.format,
|
|
168
|
-
})
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
function defineNumberInput(options: NumberInputOptions): StackInputDraft<number> {
|
|
172
|
-
return defineInput("number", options, {
|
|
173
|
-
min: numberToString(options.min),
|
|
174
|
-
max: numberToString(options.max),
|
|
175
|
-
})
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
function defineIntegerInput(options: IntegerInputOptions): StackInputDraft<number> {
|
|
179
|
-
return defineInput("integer", options, {
|
|
180
|
-
min: integerToString(options.min, "min"),
|
|
181
|
-
max: integerToString(options.max, "max"),
|
|
182
|
-
})
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
function defineBooleanInput(options: BooleanInputOptions): StackInputDraft<boolean> {
|
|
186
|
-
return defineInput("boolean", options)
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
function defineEnumInput<const TValues extends readonly [string, ...string[]]>(
|
|
190
|
-
values: TValues,
|
|
191
|
-
options: EnumInputOptions,
|
|
192
|
-
): StackInputDraft<TValues[number]> {
|
|
193
|
-
return defineInput("enum", options, {
|
|
194
|
-
values: [...values],
|
|
195
|
-
}) as StackInputDraft<TValues[number]>
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
function defineStringListInput(options: StringListInputOptions): StackInputDraft<string[]> {
|
|
199
|
-
return defineInput("stringList", options, {
|
|
200
|
-
minItems: options.minItems,
|
|
201
|
-
maxItems: options.maxItems,
|
|
202
|
-
})
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
function normalizeArray<T>(value: OneOrMany<T>): T[] {
|
|
206
|
-
return Array.isArray(value) ? [...(value as readonly T[])] : [value as T]
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
function normalizeEnv(
|
|
210
|
-
value: OneOrMany<StackInputEnvMapping> | undefined,
|
|
211
|
-
): StackInputEnvironmentMapping[] {
|
|
212
|
-
if (!value) {
|
|
213
|
-
return []
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
return normalizeArray(value).map(mapping => {
|
|
217
|
-
if (typeof mapping === "string") {
|
|
218
|
-
return { name: mapping }
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
return {
|
|
222
|
-
name: mapping.name,
|
|
223
|
-
targetResources: mapping.targetResources ? [...mapping.targetResources] : undefined,
|
|
224
|
-
type: mapping.type,
|
|
225
|
-
}
|
|
226
|
-
})
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
function toDefaultValue(
|
|
230
|
-
kind: StackInputKind,
|
|
231
|
-
value: StackInputValue | undefined,
|
|
232
|
-
): StackInputDefaultValue | undefined {
|
|
233
|
-
if (value === undefined) {
|
|
234
|
-
return undefined
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
switch (kind) {
|
|
238
|
-
case "string":
|
|
239
|
-
case "enum":
|
|
240
|
-
return { type: "string", value: String(value) }
|
|
241
|
-
case "number":
|
|
242
|
-
return { type: "number", value: numberToString(value as number) ?? "" }
|
|
243
|
-
case "integer":
|
|
244
|
-
return { type: "number", value: integerToString(value as number, "default") ?? "" }
|
|
245
|
-
case "boolean":
|
|
246
|
-
return { type: "boolean", value: Boolean(value) }
|
|
247
|
-
case "stringList":
|
|
248
|
-
return { type: "stringList", value: [...(value as string[])] }
|
|
249
|
-
case "secret":
|
|
250
|
-
throw new Error("Secret stack inputs cannot declare a default value")
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
function validateDraft(id: string, draft: StackInputDraft): void {
|
|
255
|
-
if (!draft || draft[stackInputDraftSymbol] !== true) {
|
|
256
|
-
throw new Error(
|
|
257
|
-
`Stack input '${id}' must be created with alien.string(), alien.secret(), or another input helper`,
|
|
258
|
-
)
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
if (normalizeArray(draft.options.providedBy).length === 0) {
|
|
262
|
-
throw new Error(`Stack input '${id}' must include at least one providedBy value`)
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
if (!draft.options.label.trim()) {
|
|
266
|
-
throw new Error(`Stack input '${id}' must include a label`)
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
if (draft.options.required && !draft.options.description.trim()) {
|
|
270
|
-
throw new Error(`Stack input '${id}' must include a description when required is true`)
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
validateValidation(id, draft.kind, draft.validation)
|
|
274
|
-
|
|
275
|
-
for (const mapping of normalizeEnv(draft.options.env)) {
|
|
276
|
-
validateEnvName(id, mapping.name)
|
|
277
|
-
if (mapping.targetResources?.length === 0) {
|
|
278
|
-
throw new Error(
|
|
279
|
-
`Stack input '${id}' env mapping '${mapping.name}' cannot use an empty targetResources list`,
|
|
280
|
-
)
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
function validateInputId(id: string): void {
|
|
286
|
-
if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(id)) {
|
|
287
|
-
throw new Error(
|
|
288
|
-
`Stack input '${id}' id must start with a letter or underscore and contain only letters, digits, and underscores`,
|
|
289
|
-
)
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
if (!/[a-z]/.test(id)) {
|
|
293
|
-
throw new Error(`Stack input '${id}' id must not be all-caps env-var style`)
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
function validateEnvName(id: string, name: string): void {
|
|
298
|
-
if (!/^[A-Z_][A-Z0-9_]*$/.test(name)) {
|
|
299
|
-
throw new Error(
|
|
300
|
-
`Stack input '${id}' env name '${name}' must use uppercase letters, digits, and underscores`,
|
|
301
|
-
)
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
function validateValidation(
|
|
306
|
-
id: string,
|
|
307
|
-
kind: StackInputKind,
|
|
308
|
-
validation: StackInputValidation,
|
|
309
|
-
): void {
|
|
310
|
-
const minLength = validation.minLength ?? undefined
|
|
311
|
-
const maxLength = validation.maxLength ?? undefined
|
|
312
|
-
const minItems = validation.minItems ?? undefined
|
|
313
|
-
const maxItems = validation.maxItems ?? undefined
|
|
314
|
-
|
|
315
|
-
if (minLength !== undefined && maxLength !== undefined && minLength > maxLength) {
|
|
316
|
-
throw new Error(`Stack input '${id}' minLength must be less than or equal to maxLength`)
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
if (minItems !== undefined && maxItems !== undefined && minItems > maxItems) {
|
|
320
|
-
throw new Error(`Stack input '${id}' minItems must be less than or equal to maxItems`)
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
if (kind === "enum" && (!validation.values || validation.values.length === 0)) {
|
|
324
|
-
throw new Error(`Stack input '${id}' enum values must not be empty`)
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
if (validation.pattern) {
|
|
328
|
-
validatePortablePattern(id, validation.pattern)
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
function validatePortablePattern(id: string, pattern: string): void {
|
|
333
|
-
if (pattern.length === 0) {
|
|
334
|
-
throw new Error(`Stack input '${id}' pattern must not be empty`)
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
if (pattern.startsWith("/") && pattern.endsWith("/") && pattern.length > 1) {
|
|
338
|
-
throw new Error(`Stack input '${id}' pattern must not use regex delimiters`)
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
if (/\\[1-9pPk]/.test(pattern) || /\(\?/.test(pattern) || /\[[^\]]*\[/.test(pattern)) {
|
|
342
|
-
throw new Error(
|
|
343
|
-
`Stack input '${id}' pattern is not portable across TypeScript, CloudFormation, and Terraform`,
|
|
344
|
-
)
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
function numberToString(value: number | undefined): string | undefined {
|
|
349
|
-
if (value === undefined) {
|
|
350
|
-
return undefined
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
if (!Number.isFinite(value)) {
|
|
354
|
-
throw new Error("Stack input number constraints must be finite")
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
return String(value)
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
function integerToString(value: number | undefined, field: string): string | undefined {
|
|
361
|
-
if (value === undefined) {
|
|
362
|
-
return undefined
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
if (!Number.isInteger(value)) {
|
|
366
|
-
throw new Error(`Stack input integer ${field} must be an integer`)
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
return String(value)
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
export {
|
|
373
|
-
defineBooleanInput as boolean,
|
|
374
|
-
defineEnumInput as enum,
|
|
375
|
-
defineIntegerInput as integer,
|
|
376
|
-
defineNumberInput as number,
|
|
377
|
-
defineSecretInput as secret,
|
|
378
|
-
defineStringInput as string,
|
|
379
|
-
defineStringListInput as stringList,
|
|
380
|
-
}
|
package/src/kv.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { type Kv as KvConfig, KvSchema, type ResourceType } from "./generated/index.js"
|
|
2
|
-
import { Resource } from "./resource.js"
|
|
3
|
-
|
|
4
|
-
export type { KvOutputs, Kv as KvConfig } from "./generated/index.js"
|
|
5
|
-
export { KvSchema as KvConfigSchema } from "./generated/index.js"
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Represents a key-value store for data storage.
|
|
9
|
-
* This resource provides a platform-agnostic interface over cloud-native KV services:
|
|
10
|
-
* - AWS: DynamoDB with hash bucketing for load distribution
|
|
11
|
-
* - GCP: Firestore with document-based storage and collection management
|
|
12
|
-
* - Azure: Table Storage with client-side TTL filtering and partition fan-out
|
|
13
|
-
*
|
|
14
|
-
* The KV store supports basic operations: get, put, delete, exists, and scan_prefix.
|
|
15
|
-
* All operations support TTL for automatic expiration and conditional operations.
|
|
16
|
-
*
|
|
17
|
-
* Key Features:
|
|
18
|
-
* - Universal size limits: 512B keys, 64KB values
|
|
19
|
-
* - TTL support with logical expiry across all platforms
|
|
20
|
-
* - Conditional puts with if_not_exists support
|
|
21
|
-
* - Prefix-based scanning with pagination
|
|
22
|
-
* - Platform-specific optimizations while maintaining consistent API
|
|
23
|
-
*
|
|
24
|
-
* Size Constraints:
|
|
25
|
-
* - Keys: ≤ 512 bytes with portable ASCII charset (a-z, A-Z, 0-9, -, _, :, /, .)
|
|
26
|
-
* - Values: ≤ 65,536 bytes (64 KiB)
|
|
27
|
-
*
|
|
28
|
-
* TTL Behavior:
|
|
29
|
-
* - Expired items appear absent on reads even if physically present
|
|
30
|
-
* - TTL precision varies by platform but logical behavior is consistent
|
|
31
|
-
*
|
|
32
|
-
* Scan Operations:
|
|
33
|
-
* - Returns arbitrary, unordered subsets in backend-natural order
|
|
34
|
-
* - No ordering guarantees across platforms
|
|
35
|
-
* - May return ≤ limit items (not guaranteed to fill)
|
|
36
|
-
* - Clients must de-duplicate keys across pages
|
|
37
|
-
* - No completeness guarantee under concurrent writes
|
|
38
|
-
*/
|
|
39
|
-
export class Kv {
|
|
40
|
-
private _config: Partial<KvConfig> = {}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Creates a new KV builder.
|
|
44
|
-
* @param id Identifier for the KV store. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters.
|
|
45
|
-
*/
|
|
46
|
-
constructor(id: string) {
|
|
47
|
-
this._config.id = id
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Returns a ResourceType representing any KV resource.
|
|
52
|
-
* Used for creating permission targets that apply to all KV resources.
|
|
53
|
-
* @returns The "kv" resource type.
|
|
54
|
-
*/
|
|
55
|
-
public static any(): ResourceType {
|
|
56
|
-
return "kv"
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Builds and validates the KV configuration.
|
|
61
|
-
* @returns An immutable Resource representing the configured KV store.
|
|
62
|
-
* @throws Error if the KV configuration is invalid.
|
|
63
|
-
*/
|
|
64
|
-
public build(): Resource {
|
|
65
|
-
const config = KvSchema.parse(this._config)
|
|
66
|
-
|
|
67
|
-
return new Resource({
|
|
68
|
-
type: "kv",
|
|
69
|
-
...config,
|
|
70
|
-
})
|
|
71
|
-
}
|
|
72
|
-
}
|
package/src/postgres.ts
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type Postgres as PostgresConfig,
|
|
3
|
-
PostgresSchema,
|
|
4
|
-
type ResourceType,
|
|
5
|
-
} from "./generated/index.js"
|
|
6
|
-
import { Resource } from "./resource.js"
|
|
7
|
-
|
|
8
|
-
export type { Postgres as PostgresConfig, PostgresOutputs } from "./generated/index.js"
|
|
9
|
-
export { PostgresSchema as PostgresConfigSchema } from "./generated/index.js"
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Represents a managed PostgreSQL database. The target platform decides the backend;
|
|
13
|
-
* the database is private and reachable only by same-stack workloads.
|
|
14
|
-
*/
|
|
15
|
-
export class Postgres {
|
|
16
|
-
private _config: Partial<PostgresConfig> = {
|
|
17
|
-
version: "17",
|
|
18
|
-
storage: "20Gi",
|
|
19
|
-
highAvailability: false,
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Creates a new Postgres builder.
|
|
24
|
-
* @param id ID of the database. A database of this name is created on the server.
|
|
25
|
-
*/
|
|
26
|
-
constructor(id: string) {
|
|
27
|
-
this._config.id = id
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Returns a ResourceType representing any postgres resource.
|
|
32
|
-
* Used for creating permission targets that apply to all postgres resources.
|
|
33
|
-
* @returns The "postgres" resource type.
|
|
34
|
-
*/
|
|
35
|
-
public static any(): ResourceType {
|
|
36
|
-
return "postgres"
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Sets the major engine version ("15" | "16" | "17"). Default `"17"`.
|
|
41
|
-
* The union narrows the generated schema's free-form string for authoring ergonomics;
|
|
42
|
-
* keep it in sync with the supported majors if the Rust `Postgres` resource adds one.
|
|
43
|
-
* @param value The major version.
|
|
44
|
-
* @returns The Postgres builder instance.
|
|
45
|
-
*/
|
|
46
|
-
public version(value: "15" | "16" | "17"): this {
|
|
47
|
-
this._config.version = value
|
|
48
|
-
return this
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Requests vCPUs (e.g. "0.5", "2"). On GCP and Azure, `cpu` and `memory` together pick the
|
|
53
|
-
* smallest tier that satisfies both. On AWS (Aurora Serverless v2) sizing comes from `memory`, so
|
|
54
|
-
* `cpu` is ignored.
|
|
55
|
-
* @param value The requested vCPUs.
|
|
56
|
-
* @returns The Postgres builder instance.
|
|
57
|
-
*/
|
|
58
|
-
public cpu(value: string): this {
|
|
59
|
-
this._config.cpu = value
|
|
60
|
-
return this
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Requests memory (e.g. "1Gi", "8Gi"). Drives the size on AWS (the ACU ceiling) and, together
|
|
65
|
-
* with `cpu`, the tier on GCP and Azure.
|
|
66
|
-
* @param value The requested memory.
|
|
67
|
-
* @returns The Postgres builder instance.
|
|
68
|
-
*/
|
|
69
|
-
public memory(value: string): this {
|
|
70
|
-
this._config.memory = value
|
|
71
|
-
return this
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Sets allocated storage (e.g. "100Gi"). Default `"20Gi"`. Grow-only.
|
|
76
|
-
* @param value The storage size.
|
|
77
|
-
* @returns The Postgres builder instance.
|
|
78
|
-
*/
|
|
79
|
-
public storage(value: string): this {
|
|
80
|
-
this._config.storage = value
|
|
81
|
-
return this
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Enables multi-AZ / regional / zone-redundant high availability. Default `false`.
|
|
86
|
-
* @param value Whether to enable HA.
|
|
87
|
-
* @returns The Postgres builder instance.
|
|
88
|
-
*/
|
|
89
|
-
public highAvailability(value = true): this {
|
|
90
|
-
this._config.highAvailability = value
|
|
91
|
-
return this
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Builds and validates the postgres configuration.
|
|
96
|
-
* @returns An immutable Resource representing the configured database.
|
|
97
|
-
* @throws Error if the configuration is invalid.
|
|
98
|
-
*/
|
|
99
|
-
public build(): Resource {
|
|
100
|
-
const config = PostgresSchema.parse(this._config)
|
|
101
|
-
|
|
102
|
-
return new Resource({
|
|
103
|
-
type: "postgres",
|
|
104
|
-
...config,
|
|
105
|
-
})
|
|
106
|
-
}
|
|
107
|
-
}
|
package/src/queue.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { type Queue as QueueConfig, QueueSchema, type ResourceType } from "./generated/index.js"
|
|
2
|
-
import { Resource } from "./resource.js"
|
|
3
|
-
|
|
4
|
-
export type { QueueOutputs, Queue as QueueConfig } from "./generated/index.js"
|
|
5
|
-
export { QueueSchema as QueueConfigSchema } from "./generated/index.js"
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Represents a message queue resource with minimal, portable semantics.
|
|
9
|
-
* Queue integrates with platform-native services (AWS SQS, GCP Pub/Sub, Azure Service Bus).
|
|
10
|
-
*/
|
|
11
|
-
export class Queue {
|
|
12
|
-
private _config: Partial<QueueConfig> = {}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Creates a new Queue builder.
|
|
16
|
-
* @param id Identifier for the queue. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters.
|
|
17
|
-
*/
|
|
18
|
-
constructor(id: string) {
|
|
19
|
-
this._config.id = id
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Returns a ResourceType representing any queue resource.
|
|
24
|
-
* Used for creating permission targets that apply to all queue resources.
|
|
25
|
-
* @returns The "queue" resource type.
|
|
26
|
-
*/
|
|
27
|
-
public static any(): ResourceType {
|
|
28
|
-
return "queue"
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Builds and validates the queue configuration.
|
|
33
|
-
* @returns An immutable Resource representing the configured queue.
|
|
34
|
-
* @throws Error if the queue configuration is invalid.
|
|
35
|
-
*/
|
|
36
|
-
public build(): Resource {
|
|
37
|
-
const config = QueueSchema.parse(this._config)
|
|
38
|
-
|
|
39
|
-
return new Resource({
|
|
40
|
-
type: "queue",
|
|
41
|
-
...config,
|
|
42
|
-
})
|
|
43
|
-
}
|
|
44
|
-
}
|
package/src/resource.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { BaseResource, ResourceRef } from "./generated/index.js"
|
|
2
|
-
|
|
3
|
-
export { ResourceTypeSchema } from "./generated/index.js"
|
|
4
|
-
export type { ResourceType } from "./generated/index.js"
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Represents a generic cloud resource within the Alien framework.
|
|
8
|
-
* This class encapsulates the common properties of a resource, such as its name and configuration.
|
|
9
|
-
*/
|
|
10
|
-
export class Resource {
|
|
11
|
-
/**
|
|
12
|
-
* Creates a new Resource instance.
|
|
13
|
-
* @param config The configuration object for this specific resource type.
|
|
14
|
-
*/
|
|
15
|
-
constructor(public config: BaseResource) {}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Returns a reference to this resource.
|
|
19
|
-
* A resource reference is used to link resources together (e.g., granting a Worker access to a Storage bucket).
|
|
20
|
-
* @returns A ResourceRef object containing the type and name of this resource.
|
|
21
|
-
*/
|
|
22
|
-
public ref(): ResourceRef {
|
|
23
|
-
return { type: this.config.type, id: this.config.id }
|
|
24
|
-
}
|
|
25
|
-
}
|