@alienplatform/core 3.3.68 → 3.3.69
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 +345 -318
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -757,6 +757,24 @@ const AlienEventSchema = z$1.union([
|
|
|
757
757
|
"type": z$1.enum(["EmptyingBuckets"])
|
|
758
758
|
})
|
|
759
759
|
]).describe("Represents all possible events in the Alien system");
|
|
760
|
+
// src/generated/zod/bedrock-ai-binding-schema.ts
|
|
761
|
+
/**
|
|
762
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
763
|
+
* Do not edit manually.
|
|
764
|
+
*/
|
|
765
|
+
/**
|
|
766
|
+
* @description AWS Bedrock AI binding configuration
|
|
767
|
+
*/
|
|
768
|
+
const BedrockAiBindingSchema = z$1.object({ "region": z$1.string().describe("The AWS region where Bedrock is accessed (for example `us-east-1`). The gateway builds\n`https://bedrock-runtime.<region>.amazonaws.com` from it, so parsing refuses anything\nthat is not a plain AWS region name.") }).describe("AWS Bedrock AI binding configuration");
|
|
769
|
+
// src/generated/zod/ambient-ai-binding-schema.ts
|
|
770
|
+
/**
|
|
771
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
772
|
+
* Do not edit manually.
|
|
773
|
+
*/
|
|
774
|
+
/**
|
|
775
|
+
* @description A managed cloud AI service the workload reaches with its ambient identity. The installer owns\nthe identity and its permissions; Alien grants nothing for it.
|
|
776
|
+
*/
|
|
777
|
+
const AmbientAiBindingSchema = z$1.lazy(() => BedrockAiBindingSchema).and(z$1.object({ "service": z$1.enum(["bedrock"]) })).describe("AWS Bedrock AI binding configuration").describe("A managed cloud AI service the workload reaches with its ambient identity. The installer owns\nthe identity and its permissions; Alien grants nothing for it.");
|
|
760
778
|
// src/generated/zod/architecture-schema.ts
|
|
761
779
|
/**
|
|
762
780
|
* Generated by Kubb (https://kubb.dev/).
|
|
@@ -2803,17 +2821,18 @@ const AzureManagementConfigSchema = z$1.object({
|
|
|
2803
2821
|
* Do not edit manually.
|
|
2804
2822
|
*/
|
|
2805
2823
|
/**
|
|
2806
|
-
* @description Setup-owned subnet coordinates consumed by
|
|
2824
|
+
* @description Setup-owned subnet coordinates consumed by the sandbox gateway VMs.
|
|
2807
2825
|
*/
|
|
2808
2826
|
const AzureSandboxNetworkSchema = z$1.object({
|
|
2809
2827
|
"gatewayCidrs": z$1.array(z$1.string()).describe("Gateway ranges allowed by the sandbox subnet NSGs on TCP 3128. Deployments set up before\nthe admin port was removed from that rule also allow TCP 3129; both are accepted."),
|
|
2810
|
-
"
|
|
2828
|
+
"gatewayIps": z$1.optional(z$1.array(z$1.string()).describe("Static private IPs of the setup-created gateway VMs (one per replica). Setup releases\nthat predate the VMs leave this empty, and Internet sandboxes then refuse to start.")),
|
|
2829
|
+
"gatewaySubnetIds": z$1.array(z$1.string()).describe("Undelegated subnet reserved for the gateway replicas' static NICs."),
|
|
2811
2830
|
"sandboxCidrs": z$1.array(z$1.string()).describe("Sandbox source ranges allowed on the proxy listener."),
|
|
2812
2831
|
"sandboxCidrsByResource": z$1.optional(z$1.object({}).catchall(z$1.array(z$1.string())).describe("Dedicated source ranges keyed by Sandbox resource id for exact linked-resource access.")),
|
|
2813
2832
|
"sandboxSubnetIds": z$1.array(z$1.string()).describe("Dedicated delegated subnets whose sandboxes use the gateway."),
|
|
2814
2833
|
"vpcCidrs": z$1.array(z$1.string()).describe("Every VNet range excluded from gateway destinations."),
|
|
2815
2834
|
"workloadCidrs": z$1.array(z$1.string()).describe("Workload source ranges allowed on the authenticated admin listener.")
|
|
2816
|
-
}).describe("Setup-owned subnet coordinates consumed by
|
|
2835
|
+
}).describe("Setup-owned subnet coordinates consumed by the sandbox gateway VMs.");
|
|
2817
2836
|
// src/generated/zod/azure-network-import-data-schema.ts
|
|
2818
2837
|
/**
|
|
2819
2838
|
* Generated by Kubb (https://kubb.dev/).
|
|
@@ -5824,6 +5843,15 @@ const ExternalAiBindingSchema = z$1.object({
|
|
|
5824
5843
|
},
|
|
5825
5844
|
"provider": z$1.string().describe("The external AI provider name (e.g., \"openai\", \"anthropic\")")
|
|
5826
5845
|
}).describe("External AI provider binding configuration (BYO-key).\n\nThe operator-supplied secret rides inside the binding via\n`BindingValue<String>`, so it is a literal on cloud platforms and gains\nKubernetes SecretRef resolution for free (`extract_binding_secrets` walks\nthe binding JSON for `secretRef`).");
|
|
5846
|
+
// src/generated/zod/external-ai-schema.ts
|
|
5847
|
+
/**
|
|
5848
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
5849
|
+
* Do not edit manually.
|
|
5850
|
+
*/
|
|
5851
|
+
/**
|
|
5852
|
+
* @description What an installer supplies for an AI resource with an external binding.\n\nTwo inputs, told apart by whether the JSON carries a `service` tag (other than `external-ai`):\n- `{ \"provider\", \"apiKey\" }` — BYO key (the original input; stored deployments and Helm values\n carry it, so it parses exactly as before). `{ \"service\": \"external-ai\", \"provider\",\n \"apiKey\" }` also parses, as it did before the cloud-identity form existed.\n- `{ \"service\": \"bedrock\", \"region\" }` — the cloud\'s own AI service, called with the workload\'s\n ambient identity (for example an EKS pod\'s IRSA role). No key, no Secret.\n\nThe cloud-identity form needs the pod to have its own AWS identity: on Kubernetes, an IRSA role\non the service account (or an EKS Pod Identity association) with `bedrock:InvokeModel` and\n`bedrock:InvokeModelWithResponseStream`. Without one the gateway refuses to sign and never uses\nthe node\'s role. The `region` must be a plain AWS region name such as `us-east-1`.\n\nAccess is not checked at install time (the setup credentials cannot speak for the pod\'s role):\nit is checked on the first call, and a model the role cannot use fails with\n`provider_access_unavailable`.\n\nUntagged, because the BYO-key input has no tag and must keep parsing unchanged. The two shapes\ncannot overlap: the ambient one requires `service`, the key one requires `provider` and `apiKey`.\n`Deserialize` is hand-written (see below) so a typo gets an error naming both accepted forms, and\nso an ambient input carrying an unused key such as `apiKey` is refused instead of dropped.
|
|
5853
|
+
*/
|
|
5854
|
+
const ExternalAiSchema = z$1.union([z$1.lazy(() => AmbientAiBindingSchema), z$1.lazy(() => ExternalAiBindingSchema)]).describe("What an installer supplies for an AI resource with an external binding.\n\nTwo inputs, told apart by whether the JSON carries a `service` tag (other than `external-ai`):\n- `{ \"provider\", \"apiKey\" }` — BYO key (the original input; stored deployments and Helm values\n carry it, so it parses exactly as before). `{ \"service\": \"external-ai\", \"provider\",\n \"apiKey\" }` also parses, as it did before the cloud-identity form existed.\n- `{ \"service\": \"bedrock\", \"region\" }` — the cloud's own AI service, called with the workload's\n ambient identity (for example an EKS pod's IRSA role). No key, no Secret.\n\nThe cloud-identity form needs the pod to have its own AWS identity: on Kubernetes, an IRSA role\non the service account (or an EKS Pod Identity association) with `bedrock:InvokeModel` and\n`bedrock:InvokeModelWithResponseStream`. Without one the gateway refuses to sign and never uses\nthe node's role. The `region` must be a plain AWS region name such as `us-east-1`.\n\nAccess is not checked at install time (the setup credentials cannot speak for the pod's role):\nit is checked on the first call, and a model the role cannot use fails with\n`provider_access_unavailable`.\n\nUntagged, because the BYO-key input has no tag and must keep parsing unchanged. The two shapes\ncannot overlap: the ambient one requires `service`, the key one requires `provider` and `apiKey`.\n`Deserialize` is hand-written (see below) so a typo gets an error naming both accepted forms, and\nso an ambient input carrying an unused key such as `apiKey` is refused instead of dropped.");
|
|
5827
5855
|
// src/generated/zod/firestore-kv-binding-schema.ts
|
|
5828
5856
|
/**
|
|
5829
5857
|
* Generated by Kubb (https://kubb.dev/).
|
|
@@ -6356,7 +6384,7 @@ const ExternalBindingSchema = z$1.union([
|
|
|
6356
6384
|
z$1.lazy(() => ContainerAppsEnvironmentBindingSchema).and(z$1.object({ "type": z$1.enum(["container_apps_environment"]) })).describe("Binding configuration for a pre-existing Azure Container Apps Environment.\n\nUsed when deploying to an existing environment instead of having Alien provision one.\nThis is useful for shared environments (e.g., test infrastructure) or enterprise\nsetups where environments are managed by a separate team."),
|
|
6357
6385
|
z$1.lazy(() => PostgresBindingSchema).and(z$1.object({ "type": z$1.enum(["postgres"]) })).describe("Connection details for a Postgres database, one variant per backend."),
|
|
6358
6386
|
z$1.lazy(() => RedisBindingSchema).and(z$1.object({ "type": z$1.enum(["redis"]) })).describe("Connection details for a Redis-compatible server, one variant per backend.\n\nService tags are unique across all binding enums (serde dispatches on\n`service` alone), so the key-value store's `redis` tag is not reused."),
|
|
6359
|
-
z$1.lazy(() =>
|
|
6387
|
+
z$1.lazy(() => ExternalAiSchema).and(z$1.object({ "type": z$1.enum(["ai"]) })).describe("What an installer supplies for an AI resource with an external binding.\n\nTwo inputs, told apart by whether the JSON carries a `service` tag (other than `external-ai`):\n- `{ \"provider\", \"apiKey\" }` — BYO key (the original input; stored deployments and Helm values\n carry it, so it parses exactly as before). `{ \"service\": \"external-ai\", \"provider\",\n \"apiKey\" }` also parses, as it did before the cloud-identity form existed.\n- `{ \"service\": \"bedrock\", \"region\" }` — the cloud's own AI service, called with the workload's\n ambient identity (for example an EKS pod's IRSA role). No key, no Secret.\n\nThe cloud-identity form needs the pod to have its own AWS identity: on Kubernetes, an IRSA role\non the service account (or an EKS Pod Identity association) with `bedrock:InvokeModel` and\n`bedrock:InvokeModelWithResponseStream`. Without one the gateway refuses to sign and never uses\nthe node's role. The `region` must be a plain AWS region name such as `us-east-1`.\n\nAccess is not checked at install time (the setup credentials cannot speak for the pod's role):\nit is checked on the first call, and a model the role cannot use fails with\n`provider_access_unavailable`.\n\nUntagged, because the BYO-key input has no tag and must keep parsing unchanged. The two shapes\ncannot overlap: the ambient one requires `service`, the key one requires `provider` and `apiKey`.\n`Deserialize` is hand-written (see below) so a typo gets an error naming both accepted forms, and\nso an ambient input carrying an unused key such as `apiKey` is refused instead of dropped.")
|
|
6360
6388
|
]).describe("Represents a binding to pre-existing infrastructure.\n\nThe binding type must match the resource type it's applied to.\nValidated at runtime by the executor.");
|
|
6361
6389
|
// src/generated/zod/external-bindings-schema.ts
|
|
6362
6390
|
/**
|
|
@@ -8930,6 +8958,7 @@ z$1.union([z$1.object({ "external": z$1.string().describe("Reference to another
|
|
|
8930
8958
|
* @description A bag of resources, unaware of any cloud.
|
|
8931
8959
|
*/
|
|
8932
8960
|
const StackSchema = z$1.object({
|
|
8961
|
+
"builtArchitectures": z$1.optional(z$1.object({}).catchall(z$1.array(z$1.lazy(() => ArchitectureSchema).describe("CPU architecture."))).describe("Set by `alien build` for a Kubernetes stack: the CPU architectures of the image\nbuilt for each Container, Daemon and Worker, by resource id (more than one means a\nmulti-architecture image). Pods of a single-architecture image are placed on\nmatching nodes. A resource with no entry was not recorded (a prebuilt image or an\nolder release), so no architecture is selected. Build output replaces any value\nwritten in the stack definition.\n\nKept on the stack, not on the resources: older managers and Operators read every\nresource strictly and refuse a field they do not know, but ignore an unknown\nstack-level field.")),
|
|
8933
8962
|
"dynamicContainerImageResources": z$1.optional(z$1.array(z$1.string()).describe("Released Container resources whose image repositories are approved for\ncontainers created after installation.")),
|
|
8934
8963
|
"dynamicContainerRepositories": z$1.optional(z$1.array(z$1.string()).describe("Exact image repositories approved for containers created after installation.\nThe runtime API also requires an immutable SHA-256 digest.")),
|
|
8935
8964
|
"id": z$1.string().describe("Unique identifier for the stack"),
|
|
@@ -11728,6 +11757,10 @@ var Redis = class extends ResourceBuilder {
|
|
|
11728
11757
|
*
|
|
11729
11758
|
* Limits are enforced ceilings, not scheduling hints, and are validated when the stack is
|
|
11730
11759
|
* planned. A platform that cannot enforce them rejects the sandbox rather than ignoring them.
|
|
11760
|
+
*
|
|
11761
|
+
* The same declaration works on AWS, Azure and Google Cloud. On AWS a `"live"` sandbox is created
|
|
11762
|
+
* and updated at runtime. On Azure and Google Cloud a `"live"` sandbox is created by setup, like a
|
|
11763
|
+
* `"frozen"` one, and changes to it go through setup; the build says so.
|
|
11731
11764
|
*/
|
|
11732
11765
|
var Sandbox = class extends ResourceBuilder {
|
|
11733
11766
|
_config = {};
|