@alienplatform/sdk 3.3.32 → 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.
Files changed (2) hide show
  1. package/dist/dist.js +35 -3
  2. 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({ "keyArn": string().describe("Immutable KMS key ARN. Alias ARNs are not accepted.") }).describe("AWS KMS key created by the customer-installed setup stack.");
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.
@@ -8891,7 +8895,8 @@ const ComputePoolSelectionSchema = union([object({
8891
8895
  */
8892
8896
  const ContainerResourceSelectionSchema = object({
8893
8897
  "cpu": number().describe("CPU allocation in vCPUs.").nullish(),
8894
- "memory": string().describe("Memory allocation, using binary units such as Mi or Gi.").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()
8895
8900
  }).describe("Deployment-time resource allocation for a container. Omitted fields use release defaults.");
8896
8901
  /**
8897
8902
  * Generated by Kubb (https://kubb.dev/).
@@ -9534,6 +9539,9 @@ const PersistentStorageSchema = object({
9534
9539
  get "backups"() {
9535
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();
9536
9541
  },
9542
+ get "encryptionKey"() {
9543
+ return union([ResourceRefSchema, _null()]).optional();
9544
+ },
9537
9545
  "mountPath": string().describe("Mount path inside the container"),
9538
9546
  "size": string().describe("Storage size (e.g., \"100Gi\", \"500Gi\")")
9539
9547
  }).describe("Persistent storage configuration for stateful containers.");
@@ -11162,6 +11170,7 @@ const KeyHeartbeatDataSchema = union([
11162
11170
  })
11163
11171
  ]);
11164
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(),
11165
11174
  get "fingerprint"() {
11166
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.");
11167
11176
  },
@@ -11967,6 +11976,9 @@ object({
11967
11976
  return union([PostgresBackendSchema, _null()]).optional();
11968
11977
  },
11969
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
+ },
11970
11982
  "highAvailability": optional(boolean().describe("Multi-AZ / regional / zone-redundant high availability. Default false.")),
11971
11983
  "id": string(),
11972
11984
  "memory": string().describe("Requested memory (e.g. \"1Gi\", \"8Gi\"). None = smallest available tier.").nullish(),
@@ -12424,6 +12436,14 @@ object({
12424
12436
  * Do not edit manually.
12425
12437
  */
12426
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
+ /**
12427
12447
  * @description How telemetry (logs, metrics, traces) is handled.
12428
12448
  */
12429
12449
  const TelemetryModeSchema = _enum([
@@ -12472,6 +12492,10 @@ const StackSettingsSchema = object({
12472
12492
  return union([NetworkSettingsSchema, _null()]).optional();
12473
12493
  },
12474
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
+ },
12475
12499
  get "telemetry"() {
12476
12500
  return TelemetryModeSchema.describe("How telemetry (logs, metrics, traces) is handled.").optional();
12477
12501
  },
@@ -13433,5 +13457,13 @@ const BindingNotFoundError = defineError({
13433
13457
  internal: false,
13434
13458
  httpStatusCode: 404
13435
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
+ });
13436
13468
  //#endregion
13437
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.32",
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.32",
61
- "@alienplatform/bindings": "^3.3.32",
62
- "@alienplatform/core": "^3.3.32"
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",