@alienplatform/sdk 3.3.34 → 3.3.36
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/dist.js +67 -11
- package/package.json +4 -4
package/dist/dist.js
CHANGED
|
@@ -6187,6 +6187,9 @@ const EcrArtifactRegistryBindingSchema = object({
|
|
|
6187
6187
|
},
|
|
6188
6188
|
get "repositoryPrefix"() {
|
|
6189
6189
|
return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
|
|
6190
|
+
},
|
|
6191
|
+
get "sandboxRepositoryPrefix"() {
|
|
6192
|
+
return union([BindingValueStringSchema, _null()]).optional();
|
|
6190
6193
|
}
|
|
6191
6194
|
}).describe("AWS ECR (Elastic Container Registry) binding configuration");
|
|
6192
6195
|
/**
|
|
@@ -7086,9 +7089,25 @@ const AwsMicrovmSandboxHeartbeatDataSchema = object({
|
|
|
7086
7089
|
return SandboxHeartbeatStatusSchema;
|
|
7087
7090
|
}
|
|
7088
7091
|
}).describe("AWS: the image a sandbox runs from, and the lifecycle state AWS reports for it.");
|
|
7092
|
+
/**
|
|
7093
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
7094
|
+
* Do not edit manually.
|
|
7095
|
+
*/
|
|
7096
|
+
/**
|
|
7097
|
+
* @description Setup network coordinates; the deployment controller verifies actual EC2 routes and CIDRs.
|
|
7098
|
+
*/
|
|
7099
|
+
const AwsSandboxNetworkSchema = object({
|
|
7100
|
+
"gatewayCidrs": array(string()).describe("Only destinations permitted by the connector security group."),
|
|
7101
|
+
"gatewaySubnetIds": array(string()).describe("Dedicated NAT-routed subnets for the gateway's internal load balancer."),
|
|
7102
|
+
"sandboxCidrs": array(string()).describe("Source ranges permitted on the gateway proxy port."),
|
|
7103
|
+
"sandboxSubnetIds": array(string()).describe("Route-less connector subnet identifiers."),
|
|
7104
|
+
"vpcCidrs": array(string()).describe("Every associated VPC IPv4 range, denied by the gateway."),
|
|
7105
|
+
"workloadCidrs": array(string()).describe("Source ranges permitted on the gateway admin port.")
|
|
7106
|
+
}).describe("Setup network coordinates; the deployment controller verifies actual EC2 routes and CIDRs.");
|
|
7089
7107
|
object({
|
|
7090
7108
|
"availabilityZones": array(string()).describe("Availability zone names used by created or BYO subnets."),
|
|
7091
7109
|
"cidrBlock": string().describe("VPC CIDR block when the VPC is created by this stack.").nullish(),
|
|
7110
|
+
"egressPublicIps": optional(array(string()).describe("Public addresses allocated to this deployment's NAT; empty when unknown.")),
|
|
7092
7111
|
"eipAllocationId": string().describe("Elastic IP allocation ID backing the NAT gateway.").nullish(),
|
|
7093
7112
|
"internetGatewayId": string().describe("Internet gateway ID when created by this stack.").nullish(),
|
|
7094
7113
|
"isByoVpc": boolean().describe("True when the VPC is owned outside this stack."),
|
|
@@ -7097,6 +7116,9 @@ object({
|
|
|
7097
7116
|
"privateSubnetIds": array(string()).describe("Private subnet IDs."),
|
|
7098
7117
|
"publicRouteTableId": string().describe("Public route table ID.").nullish(),
|
|
7099
7118
|
"publicSubnetIds": array(string()).describe("Public subnet IDs."),
|
|
7119
|
+
get "sandboxNetwork"() {
|
|
7120
|
+
return union([AwsSandboxNetworkSchema, _null()]).optional();
|
|
7121
|
+
},
|
|
7100
7122
|
"securityGroupId": string().describe("Security group ID for private workloads.").nullish(),
|
|
7101
7123
|
"subnetsByFailureDomain": optional(object({}).catchall(lazy(() => AwsFailureDomainSubnetsSchema).describe("AWS subnets grouped by their real availability zone.")).describe("Exact subnet membership keyed by real availability zone.")),
|
|
7102
7124
|
"vpcId": string().describe("VPC ID. Absent when default-VPC mode defers lookup to AWS at runtime.").nullish()
|
|
@@ -7350,7 +7372,7 @@ const AwsS3StorageHeartbeatDataSchema = object({
|
|
|
7350
7372
|
"versioningStatus": string().nullish()
|
|
7351
7373
|
});
|
|
7352
7374
|
object({
|
|
7353
|
-
"allowEgress": optional(boolean().describe("Whether
|
|
7375
|
+
"allowEgress": optional(boolean().describe("Whether sessions use native cloud internet without a deployment gateway.\nIsolated sessions must instead name their setup-owned connector.")),
|
|
7354
7376
|
"buildRoleArn": string().describe("Role the controller passes to `CreateMicrovmImage`. Setup owns it because\n`sandbox/provision` grants the controller `iam:PassRole` and no `iam:CreateRole`.").nullish(),
|
|
7355
7377
|
"bundleUri": string().describe("Bundle the controller builds the image from. Only a runtime-provisioned sandbox carries it.").nullish(),
|
|
7356
7378
|
"egressConnectorArns": optional(array(string()).describe("Egress network connectors. Deleting one while MicroVMs still reference it breaks their\nnetworking, so teardown needs them named rather than rediscovered.")),
|
|
@@ -9000,6 +9022,14 @@ const ContainerCodeSchema = union([object({
|
|
|
9000
9022
|
* Do not edit manually.
|
|
9001
9023
|
*/
|
|
9002
9024
|
/**
|
|
9025
|
+
* @description Outbound network restriction enforced outside the container.\nInternet access also permits this container\'s own replicas on declared TCP ports,\nown-service discovery, and the credential proxy for its own identity.\nAbsence preserves the runtime\'s existing full-network behavior.
|
|
9026
|
+
*/
|
|
9027
|
+
const ContainerEgressSchema = _enum(["internet"]).describe("Outbound network restriction enforced outside the container.\nInternet access also permits this container's own replicas on declared TCP ports,\nown-service discovery, and the credential proxy for its own identity.\nAbsence preserves the runtime's existing full-network behavior.");
|
|
9028
|
+
/**
|
|
9029
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
9030
|
+
* Do not edit manually.
|
|
9031
|
+
*/
|
|
9032
|
+
/**
|
|
9003
9033
|
* @description GPU specification for a container.
|
|
9004
9034
|
*/
|
|
9005
9035
|
const ContainerGpuSpecSchema = object({
|
|
@@ -9399,6 +9429,7 @@ object({
|
|
|
9399
9429
|
"currentReplicas": int().min(0).describe("Number of current replicas"),
|
|
9400
9430
|
"desiredReplicas": int().min(0).describe("Desired number of replicas"),
|
|
9401
9431
|
"internalDns": string().describe("Internal DNS name (e.g., \"api.svc\")"),
|
|
9432
|
+
"internalUrls": optional(object({}).catchall(string()).describe("Internal URLs keyed by port for cluster members and linking resources.")),
|
|
9402
9433
|
"name": string().describe("Container name in the managed container backend"),
|
|
9403
9434
|
"publicEndpoints": optional(object({}).catchall(lazy(() => PublicEndpointOutputSchema).describe("Runtime-resolved public endpoint metadata.")).describe("Public endpoints resolved for this container.")),
|
|
9404
9435
|
get "replicas"() {
|
|
@@ -9585,6 +9616,9 @@ object({
|
|
|
9585
9616
|
get "cpu"() {
|
|
9586
9617
|
return ResourceSpecSchema.describe("Resource specification with min/desired values.");
|
|
9587
9618
|
},
|
|
9619
|
+
get "egress"() {
|
|
9620
|
+
return union([ContainerEgressSchema, _null()]).optional();
|
|
9621
|
+
},
|
|
9588
9622
|
"environment": optional(object({}).catchall(string()).describe("Environment variables")),
|
|
9589
9623
|
"ephemeralStorage": string().describe("Ephemeral storage requirement (e.g., \"10Gi\")").nullish(),
|
|
9590
9624
|
get "gpu"() {
|
|
@@ -9615,7 +9649,7 @@ object({
|
|
|
9615
9649
|
},
|
|
9616
9650
|
"pool": string().describe("Capacity group to run on (must exist in the cluster)\nIf not specified, containers are scheduled to any available group.").nullish(),
|
|
9617
9651
|
get "ports"() {
|
|
9618
|
-
return array(ContainerPortSchema.describe("Container port configuration.")).describe("
|
|
9652
|
+
return array(ContainerPortSchema.describe("Container port configuration.")).describe("Ports reachable by compute-cluster members and resources that link to this container.");
|
|
9619
9653
|
},
|
|
9620
9654
|
get "publicEndpoints"() {
|
|
9621
9655
|
return array(PublicEndpointSchema.describe("Public endpoint configuration for port-backed workload resources.")).describe("Public endpoints exposed by the container.").optional();
|
|
@@ -9669,6 +9703,12 @@ object({
|
|
|
9669
9703
|
return union([StorageUploadSchema, _null()]).optional();
|
|
9670
9704
|
}
|
|
9671
9705
|
}).describe("Response to command creation");
|
|
9706
|
+
object({
|
|
9707
|
+
"startedAt": datetime().describe("First credential failure in this phase; subsequent attempts keep this timestamp."),
|
|
9708
|
+
get "status"() {
|
|
9709
|
+
return DeploymentStatusSchema.describe("Deployment status in the deployment lifecycle.\n\nFor observe-only deployments with no release or stack state, `Running`\nmeans the Operator is attached. Connectivity comes from `lastHeartbeatAt`;\nresource health comes from inventory and resource heartbeat data.");
|
|
9710
|
+
}
|
|
9711
|
+
}).describe("A credential outage's durable retry window, scoped to its deployment phase.");
|
|
9672
9712
|
/**
|
|
9673
9713
|
* Generated by Kubb (https://kubb.dev/).
|
|
9674
9714
|
* Do not edit manually.
|
|
@@ -10172,6 +10212,14 @@ const DynamodbKvBindingSchema = object({
|
|
|
10172
10212
|
* Do not edit manually.
|
|
10173
10213
|
*/
|
|
10174
10214
|
/**
|
|
10215
|
+
* @description Per-sandbox outbound policy. Mail ports 25, 465 and 587 require an explicit allowlist port, such as smtp.example.com:587; internet and portless targets exclude them. This protects the deployment\'s shared outbound IP from mail abuse and blocklisting that could disrupt every tenant.
|
|
10216
|
+
*/
|
|
10217
|
+
const EgressPolicySchema = union([object({ "allow": array(string()).min(0).max(4096) }), _enum(["internet"])]).describe("Per-sandbox outbound policy. Mail ports 25, 465 and 587 require an explicit allowlist port, such as smtp.example.com:587; internet and portless targets exclude them. This protects the deployment's shared outbound IP from mail abuse and blocklisting that could disrupt every tenant.");
|
|
10218
|
+
/**
|
|
10219
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
10220
|
+
* Do not edit manually.
|
|
10221
|
+
*/
|
|
10222
|
+
/**
|
|
10175
10223
|
* @description A single DKIM CNAME record the operator must create in DNS.
|
|
10176
10224
|
*/
|
|
10177
10225
|
const EmailDkimTokenSchema = object({
|
|
@@ -11596,6 +11644,14 @@ object({
|
|
|
11596
11644
|
object({ get "leases"() {
|
|
11597
11645
|
return array(LeaseInfoSchema.describe("Lease information")).describe("Acquired leases (empty array if none available)");
|
|
11598
11646
|
} }).describe("Response to lease acquisition");
|
|
11647
|
+
union([
|
|
11648
|
+
object({ "mode": _enum(["deny"]) }),
|
|
11649
|
+
object({ "mode": _enum(["allow"]) }),
|
|
11650
|
+
object({
|
|
11651
|
+
"domains": array(string()),
|
|
11652
|
+
"mode": _enum(["allowDomains"])
|
|
11653
|
+
})
|
|
11654
|
+
]).describe("Deprecated object declarations preserve their released backend behavior.");
|
|
11599
11655
|
/**
|
|
11600
11656
|
* Generated by Kubb (https://kubb.dev/).
|
|
11601
11657
|
* Do not edit manually.
|
|
@@ -11998,7 +12054,7 @@ const PostgresHeartbeatDataSchema = union([
|
|
|
11998
12054
|
lazy(() => LocalPostgresHeartbeatDataSchema).and(object({ "backend": _enum(["local"]) })).describe("Local embedded Postgres backend.")
|
|
11999
12055
|
]);
|
|
12000
12056
|
object({
|
|
12001
|
-
"database": string().describe("The default database created for this resource. On cloud backends this is the fixed\nlabel `POSTGRES_DATABASE_NAME` (`
|
|
12057
|
+
"database": string().describe("The default database created for this resource. On cloud backends this is the fixed\nlabel `POSTGRES_DATABASE_NAME` (`app`); on Local it is the resource id."),
|
|
12002
12058
|
"endpoint": string().describe("Host (or host:port) the database listens on; never publicly reachable."),
|
|
12003
12059
|
"port": int().min(0).describe("Listening port, when known.").nullish()
|
|
12004
12060
|
}).describe("Outputs generated by a successfully provisioned Postgres database.");
|
|
@@ -12382,17 +12438,14 @@ const SandboxCodeSchema = union([object({
|
|
|
12382
12438
|
* Generated by Kubb (https://kubb.dev/).
|
|
12383
12439
|
* Do not edit manually.
|
|
12384
12440
|
*/
|
|
12385
|
-
|
|
12386
|
-
* @description Outbound network policy for a sandbox.
|
|
12387
|
-
*/
|
|
12388
|
-
const SandboxEgressSchema = union([
|
|
12441
|
+
const SandboxEgressSchema = union([union([
|
|
12389
12442
|
object({ "mode": _enum(["deny"]) }),
|
|
12390
12443
|
object({ "mode": _enum(["allow"]) }),
|
|
12391
12444
|
object({
|
|
12392
|
-
"domains": array(string())
|
|
12445
|
+
"domains": array(string()),
|
|
12393
12446
|
"mode": _enum(["allowDomains"])
|
|
12394
12447
|
})
|
|
12395
|
-
])
|
|
12448
|
+
]), _enum(["none", "internet"])]);
|
|
12396
12449
|
/**
|
|
12397
12450
|
* Generated by Kubb (https://kubb.dev/).
|
|
12398
12451
|
* Do not edit manually.
|
|
@@ -12434,10 +12487,13 @@ object({
|
|
|
12434
12487
|
get "code"() {
|
|
12435
12488
|
return SandboxCodeSchema.describe("Specifies where the sandbox's root filesystem comes from.");
|
|
12436
12489
|
},
|
|
12490
|
+
get "defaultPolicy"() {
|
|
12491
|
+
return union([EgressPolicySchema, _null()]).optional();
|
|
12492
|
+
},
|
|
12437
12493
|
get "egress"() {
|
|
12438
|
-
return SandboxEgressSchema.describe("Outbound network policy
|
|
12494
|
+
return SandboxEgressSchema.describe("Outbound network policy");
|
|
12439
12495
|
},
|
|
12440
|
-
"id": string().describe("Identifier for the sandbox. Must
|
|
12496
|
+
"id": string().describe("Identifier for the sandbox. Must be DNS-compatible: lowercase letters, digits and hyphens,\nstarting and ending with a letter or digit, with no consecutive hyphens."),
|
|
12441
12497
|
get "lifecycle"() {
|
|
12442
12498
|
return SandboxLifecyclePolicySchema.describe("How long a sandbox may live and when it is paused.\n\nDeclaration-time ceilings, not per-request values: every sandbox created through this\ndeclaration's binding is held to them, whatever a caller asks for at runtime.");
|
|
12443
12499
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alienplatform/sdk",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"nice-grpc": "^2.1.11",
|
|
58
58
|
"nice-grpc-common": "^2.0.2",
|
|
59
59
|
"zod": "^4.5.2",
|
|
60
|
-
"@alienplatform/ai-gateway": "^3.3.
|
|
61
|
-
"@alienplatform/bindings": "^3.3.
|
|
62
|
-
"@alienplatform/core": "^3.3.
|
|
60
|
+
"@alienplatform/ai-gateway": "^3.3.36",
|
|
61
|
+
"@alienplatform/bindings": "^3.3.36",
|
|
62
|
+
"@alienplatform/core": "^3.3.36"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "tsdown && tsc --emitDeclarationOnly",
|