@alienplatform/sdk 3.3.31 → 3.3.33
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 +79 -3
- package/package.json +4 -4
package/dist/dist.js
CHANGED
|
@@ -6033,7 +6033,8 @@ const AlienEventSchema = union([
|
|
|
6033
6033
|
object({
|
|
6034
6034
|
"platform": string().describe("Platform being targeted"),
|
|
6035
6035
|
"stack": string().describe("Name of the stack being checked"),
|
|
6036
|
-
"type": _enum(["RunningPreflights"])
|
|
6036
|
+
"type": _enum(["RunningPreflights"]),
|
|
6037
|
+
"warnings": optional(array(string()).describe("Non-blocking diagnostics reported by the completed checks."))
|
|
6037
6038
|
}),
|
|
6038
6039
|
object({
|
|
6039
6040
|
"targetTriple": string().describe("Target triple for the runtime"),
|
|
@@ -6982,7 +6983,10 @@ const AwsIamRoleServiceAccountHeartbeatDataSchema = object({
|
|
|
6982
6983
|
},
|
|
6983
6984
|
"tagCount": int().min(0)
|
|
6984
6985
|
});
|
|
6985
|
-
object({
|
|
6986
|
+
object({
|
|
6987
|
+
"availabilityProbe": optional(boolean().describe("Setup installed the scoped key availability probe permission.")),
|
|
6988
|
+
"keyArn": string().describe("Immutable KMS key ARN. Alias ARNs are not accepted.")
|
|
6989
|
+
}).describe("AWS KMS key created by the customer-installed setup stack.");
|
|
6986
6990
|
/**
|
|
6987
6991
|
* Generated by Kubb (https://kubb.dev/).
|
|
6988
6992
|
* Do not edit manually.
|
|
@@ -8887,9 +8891,24 @@ const ComputePoolSelectionSchema = union([object({
|
|
|
8887
8891
|
* Do not edit manually.
|
|
8888
8892
|
*/
|
|
8889
8893
|
/**
|
|
8894
|
+
* @description Deployment-time resource allocation for a container. Omitted fields use release defaults.
|
|
8895
|
+
*/
|
|
8896
|
+
const ContainerResourceSelectionSchema = object({
|
|
8897
|
+
"cpu": number().describe("CPU allocation in vCPUs.").nullish(),
|
|
8898
|
+
"memory": string().describe("Memory allocation, using binary units such as Mi or Gi.").nullish(),
|
|
8899
|
+
"volumeSizeGib": int().min(0).describe("Persistent volume capacity per replica, in whole GiB. Omitted values\nuse the release default. Existing volumes can only grow.").nullish()
|
|
8900
|
+
}).describe("Deployment-time resource allocation for a container. Omitted fields use release defaults.");
|
|
8901
|
+
/**
|
|
8902
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
8903
|
+
* Do not edit manually.
|
|
8904
|
+
*/
|
|
8905
|
+
/**
|
|
8890
8906
|
* @description Deployment-time compute choices for Alien-managed compute pools.\n\nApplication source declares portable pool requirements. This settings\nobject stores the concrete choices made for one deployment, such as the\nprovider machine type and selected machine counts.
|
|
8891
8907
|
*/
|
|
8892
|
-
const ComputeSettingsSchema = object({
|
|
8908
|
+
const ComputeSettingsSchema = object({
|
|
8909
|
+
"containers": optional(object({}).catchall(lazy(() => ContainerResourceSelectionSchema).describe("Deployment-time resource allocation for a container. Omitted fields use release defaults.")).describe("Per-replica resources selected within each container's declared ranges.")),
|
|
8910
|
+
"pools": optional(object({}).catchall(lazy(() => ComputePoolSelectionSchema).describe("User-selected deployment settings for one compute pool.")).describe("Selected compute choices keyed by pool ID."))
|
|
8911
|
+
}).describe("Deployment-time compute choices for Alien-managed compute pools.\n\nApplication source declares portable pool requirements. This settings\nobject stores the concrete choices made for one deployment, such as the\nprovider machine type and selected machine counts.");
|
|
8893
8912
|
/**
|
|
8894
8913
|
* Generated by Kubb (https://kubb.dev/).
|
|
8895
8914
|
* Do not edit manually.
|
|
@@ -9408,6 +9427,33 @@ const ContainerPortSchema = object({ "port": int().min(0).describe("Port number"
|
|
|
9408
9427
|
* Do not edit manually.
|
|
9409
9428
|
*/
|
|
9410
9429
|
/**
|
|
9430
|
+
* @description Allowed deployment-time resource quantities. These are choices, not autoscaling targets.
|
|
9431
|
+
*/
|
|
9432
|
+
const ResourceChoiceRangeSchema = object({
|
|
9433
|
+
"default": string().describe("Allocation used when deployment settings omit a selection."),
|
|
9434
|
+
"max": string().describe("Largest permitted allocation."),
|
|
9435
|
+
"min": string().describe("Smallest permitted allocation.")
|
|
9436
|
+
}).describe("Allowed deployment-time resource quantities. These are choices, not autoscaling targets.");
|
|
9437
|
+
/**
|
|
9438
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
9439
|
+
* Do not edit manually.
|
|
9440
|
+
*/
|
|
9441
|
+
/**
|
|
9442
|
+
* @description Release-declared choices for each container resource dimension.
|
|
9443
|
+
*/
|
|
9444
|
+
const ContainerResourceChoicesSchema = object({
|
|
9445
|
+
get "cpu"() {
|
|
9446
|
+
return union([ResourceChoiceRangeSchema, _null()]).optional();
|
|
9447
|
+
},
|
|
9448
|
+
get "memory"() {
|
|
9449
|
+
return union([ResourceChoiceRangeSchema, _null()]).optional();
|
|
9450
|
+
}
|
|
9451
|
+
}).describe("Release-declared choices for each container resource dimension.");
|
|
9452
|
+
/**
|
|
9453
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
9454
|
+
* Do not edit manually.
|
|
9455
|
+
*/
|
|
9456
|
+
/**
|
|
9411
9457
|
* @description Security profile shared by container runtimes.
|
|
9412
9458
|
*/
|
|
9413
9459
|
const ContainerSecurityProfileSchema = _enum(["restricted"]).describe("Security profile shared by container runtimes.");
|
|
@@ -9493,6 +9539,9 @@ const PersistentStorageSchema = object({
|
|
|
9493
9539
|
get "backups"() {
|
|
9494
9540
|
return VolumeBackupsSchema.describe("Scheduled snapshots of a persistent volume.\n\nThe cloud's own scheduler takes the snapshots (AWS Data Lifecycle Manager,\na Compute Engine snapshot schedule, or Azure Disk Backup), so they keep being\ntaken while the deployment is unreachable. Snapshots are crash-consistent:\nthe volume as it would be after a sudden power loss. When a container is\ndeleted, Alien keeps one final snapshot of each volume.\n\nKubernetes deployments leave volume backups to the cluster's own tooling,\nand local deployments don't snapshot volumes. Neither reports volumes in\n`ContainerOutputs.volumes` or a `volumeBackups` status.").optional();
|
|
9495
9541
|
},
|
|
9542
|
+
get "encryptionKey"() {
|
|
9543
|
+
return union([ResourceRefSchema, _null()]).optional();
|
|
9544
|
+
},
|
|
9496
9545
|
"mountPath": string().describe("Mount path inside the container"),
|
|
9497
9546
|
"size": string().describe("Storage size (e.g., \"100Gi\", \"500Gi\")")
|
|
9498
9547
|
}).describe("Persistent storage configuration for stateful containers.");
|
|
@@ -9572,6 +9621,9 @@ object({
|
|
|
9572
9621
|
return array(PublicEndpointSchema.describe("Public endpoint configuration for port-backed workload resources.")).describe("Public endpoints exposed by the container.").optional();
|
|
9573
9622
|
},
|
|
9574
9623
|
"replicas": int().min(0).describe("Fixed replica count (for stateful containers or stateless without autoscaling)").nullish(),
|
|
9624
|
+
get "resourceChoices"() {
|
|
9625
|
+
return union([ContainerResourceChoicesSchema, _null()]).optional();
|
|
9626
|
+
},
|
|
9575
9627
|
get "security"() {
|
|
9576
9628
|
return union([ContainerSecuritySchema, _null()]).optional();
|
|
9577
9629
|
},
|
|
@@ -11118,6 +11170,7 @@ const KeyHeartbeatDataSchema = union([
|
|
|
11118
11170
|
})
|
|
11119
11171
|
]);
|
|
11120
11172
|
object({
|
|
11173
|
+
"available": boolean().describe("Latest key availability observation. Absent on older imported states.\nA false observation suspends dependent reconciliation without replacing resources.").nullish(),
|
|
11121
11174
|
get "fingerprint"() {
|
|
11122
11175
|
return KeyFingerprintSchema.describe("Stable identity of a provider key family.\n\nProvider-native version rotation does not change this value. Replacing the\nprovider key does.");
|
|
11123
11176
|
},
|
|
@@ -11923,6 +11976,9 @@ object({
|
|
|
11923
11976
|
return union([PostgresBackendSchema, _null()]).optional();
|
|
11924
11977
|
},
|
|
11925
11978
|
"cpu": string().describe("Requested vCPUs (e.g. \"0.5\", \"2\"). None = smallest available tier.").nullish(),
|
|
11979
|
+
get "encryptionKey"() {
|
|
11980
|
+
return union([ResourceRefSchema, _null()]).optional();
|
|
11981
|
+
},
|
|
11926
11982
|
"highAvailability": optional(boolean().describe("Multi-AZ / regional / zone-redundant high availability. Default false.")),
|
|
11927
11983
|
"id": string(),
|
|
11928
11984
|
"memory": string().describe("Requested memory (e.g. \"1Gi\", \"8Gi\"). None = smallest available tier.").nullish(),
|
|
@@ -12380,6 +12436,14 @@ object({
|
|
|
12380
12436
|
* Do not edit manually.
|
|
12381
12437
|
*/
|
|
12382
12438
|
/**
|
|
12439
|
+
* @description Whether setup remains a separate administrator operation.
|
|
12440
|
+
*/
|
|
12441
|
+
const SetupManagementSchema = _enum(["manual", "automatic"]).describe("Whether setup remains a separate administrator operation.");
|
|
12442
|
+
/**
|
|
12443
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
12444
|
+
* Do not edit manually.
|
|
12445
|
+
*/
|
|
12446
|
+
/**
|
|
12383
12447
|
* @description How telemetry (logs, metrics, traces) is handled.
|
|
12384
12448
|
*/
|
|
12385
12449
|
const TelemetryModeSchema = _enum([
|
|
@@ -12428,6 +12492,10 @@ const StackSettingsSchema = object({
|
|
|
12428
12492
|
return union([NetworkSettingsSchema, _null()]).optional();
|
|
12429
12493
|
},
|
|
12430
12494
|
"publicEndpoints": object({}).catchall(object({}).catchall(string())).describe("Exact externally managed endpoint URLs, keyed by resource ID and endpoint name.\n\nThis is intended for adopted Machines deployments whose DNS and certificates remain\ncustomer-owned. The platform passes these URLs to the runtime without creating or\nreplacing DNS records or certificates.").nullish(),
|
|
12495
|
+
"quotaWarningOverrides": optional(array(string()).describe("Provider quota identities whose preflight failures become visible warnings\nfor this deployment. Checks still run; deploy-time provider limits still apply.\nUnknown identities are rejected. An empty list restores normal blocking.")),
|
|
12496
|
+
get "setupManagement"() {
|
|
12497
|
+
return SetupManagementSchema.describe("Whether setup remains a separate administrator operation.").optional();
|
|
12498
|
+
},
|
|
12431
12499
|
get "telemetry"() {
|
|
12432
12500
|
return TelemetryModeSchema.describe("How telemetry (logs, metrics, traces) is handled.").optional();
|
|
12433
12501
|
},
|
|
@@ -13389,5 +13457,13 @@ const BindingNotFoundError = defineError({
|
|
|
13389
13457
|
internal: false,
|
|
13390
13458
|
httpStatusCode: 404
|
|
13391
13459
|
});
|
|
13460
|
+
defineError({
|
|
13461
|
+
code: "INVALID_ENCRYPTION_KEY",
|
|
13462
|
+
context: object({ resourceType: string() }),
|
|
13463
|
+
message: ({ resourceType }) => `Encryption requires an alien.Key, received '${resourceType}'`,
|
|
13464
|
+
retryable: false,
|
|
13465
|
+
internal: false,
|
|
13466
|
+
httpStatusCode: 400
|
|
13467
|
+
});
|
|
13392
13468
|
//#endregion
|
|
13393
13469
|
export { logSystemWarn as _, object as a, getCommands as c, onQueueMessage as d, onStorageEvent as f, logSystemError as g, waitUntil as h, defineError as i, getEventHandlers as l, setOnTaskRegistered as m, BindingNotFoundError as n, string as o, runCommand as p, InvalidBindingConfigError as r, command as s, AlienError as t, onCronEvent as u };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alienplatform/sdk",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.33",
|
|
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.33",
|
|
61
|
+
"@alienplatform/bindings": "^3.3.33",
|
|
62
|
+
"@alienplatform/core": "^3.3.33"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "tsdown && tsc --emitDeclarationOnly",
|