@alienplatform/sdk 3.3.32 → 3.3.34

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 +67 -4
  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.");
@@ -9972,6 +9980,34 @@ object({
9972
9980
  * Do not edit manually.
9973
9981
  */
9974
9982
  /**
9983
+ * @description Commands for a shell family. Values are never sent to the control plane.
9984
+ */
9985
+ const DeployerSecretCommandVariantsSchema = object({
9986
+ "inline": string().describe("Command with a visible value placeholder; shell history can retain it."),
9987
+ "prompt": string().describe("Hidden-input command, without the value in shell history or process arguments.")
9988
+ }).describe("Commands for a shell family. Values are never sent to the control plane.");
9989
+ /**
9990
+ * Generated by Kubb (https://kubb.dev/).
9991
+ * Do not edit manually.
9992
+ */
9993
+ /**
9994
+ * @description Shell-specific instructions generated beside the secret location.
9995
+ */
9996
+ const DeployerSecretCommandsSchema = object({
9997
+ "checkCommand": string().describe("Read-only identity check, valid in both shell families.").nullish(),
9998
+ "target": string().describe("Expected account, project, subscription or Kubernetes namespace.").nullish(),
9999
+ get "unix"() {
10000
+ return DeployerSecretCommandVariantsSchema.describe("Commands for a shell family. Values are never sent to the control plane.");
10001
+ },
10002
+ get "windows"() {
10003
+ return DeployerSecretCommandVariantsSchema.describe("Commands for a shell family. Values are never sent to the control plane.");
10004
+ }
10005
+ }).describe("Shell-specific instructions generated beside the secret location.");
10006
+ /**
10007
+ * Generated by Kubb (https://kubb.dev/).
10008
+ * Do not edit manually.
10009
+ */
10010
+ /**
9975
10011
  * @description The secret store a deployer writes a vault-native secret into.
9976
10012
  */
9977
10013
  const DeployerSecretStoreSchema = _enum([
@@ -9989,7 +10025,10 @@ const DeployerSecretStoreSchema = _enum([
9989
10025
  * @description Where a deployer writes a vault-native secret.
9990
10026
  */
9991
10027
  const DeployerSecretLocationSchema = object({
9992
- "cliCommand": string().describe("Command that writes the value, with `<VALUE>` in place of the secret."),
10028
+ "cliCommand": string().describe("Command that prompts without echoing and writes the value through stdin."),
10029
+ get "commands"() {
10030
+ return union([DeployerSecretCommandsSchema, _null()]).optional();
10031
+ },
9993
10032
  "consoleUrl": string().describe("Cloud console page where the secret is created, when the store has one.").nullish(),
9994
10033
  "deleteCommand": string().describe("Command that deletes the secret. Deleting a deployment keeps the\nsecrets the deployer wrote, since Alien never owned their values.").nullish(),
9995
10034
  "name": string().describe("Full name of the secret in that store."),
@@ -11162,6 +11201,7 @@ const KeyHeartbeatDataSchema = union([
11162
11201
  })
11163
11202
  ]);
11164
11203
  object({
11204
+ "available": boolean().describe("Latest key availability observation. Absent on older imported states.\nA false observation suspends dependent reconciliation without replacing resources.").nullish(),
11165
11205
  get "fingerprint"() {
11166
11206
  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
11207
  },
@@ -11967,6 +12007,9 @@ object({
11967
12007
  return union([PostgresBackendSchema, _null()]).optional();
11968
12008
  },
11969
12009
  "cpu": string().describe("Requested vCPUs (e.g. \"0.5\", \"2\"). None = smallest available tier.").nullish(),
12010
+ get "encryptionKey"() {
12011
+ return union([ResourceRefSchema, _null()]).optional();
12012
+ },
11970
12013
  "highAvailability": optional(boolean().describe("Multi-AZ / regional / zone-redundant high availability. Default false.")),
11971
12014
  "id": string(),
11972
12015
  "memory": string().describe("Requested memory (e.g. \"1Gi\", \"8Gi\"). None = smallest available tier.").nullish(),
@@ -12424,6 +12467,14 @@ object({
12424
12467
  * Do not edit manually.
12425
12468
  */
12426
12469
  /**
12470
+ * @description Whether setup remains a separate administrator operation.
12471
+ */
12472
+ const SetupManagementSchema = _enum(["manual", "automatic"]).describe("Whether setup remains a separate administrator operation.");
12473
+ /**
12474
+ * Generated by Kubb (https://kubb.dev/).
12475
+ * Do not edit manually.
12476
+ */
12477
+ /**
12427
12478
  * @description How telemetry (logs, metrics, traces) is handled.
12428
12479
  */
12429
12480
  const TelemetryModeSchema = _enum([
@@ -12472,6 +12523,10 @@ const StackSettingsSchema = object({
12472
12523
  return union([NetworkSettingsSchema, _null()]).optional();
12473
12524
  },
12474
12525
  "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(),
12526
+ "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.")),
12527
+ get "setupManagement"() {
12528
+ return SetupManagementSchema.describe("Whether setup remains a separate administrator operation.").optional();
12529
+ },
12475
12530
  get "telemetry"() {
12476
12531
  return TelemetryModeSchema.describe("How telemetry (logs, metrics, traces) is handled.").optional();
12477
12532
  },
@@ -13433,5 +13488,13 @@ const BindingNotFoundError = defineError({
13433
13488
  internal: false,
13434
13489
  httpStatusCode: 404
13435
13490
  });
13491
+ defineError({
13492
+ code: "INVALID_ENCRYPTION_KEY",
13493
+ context: object({ resourceType: string() }),
13494
+ message: ({ resourceType }) => `Encryption requires an alien.Key, received '${resourceType}'`,
13495
+ retryable: false,
13496
+ internal: false,
13497
+ httpStatusCode: 400
13498
+ });
13436
13499
  //#endregion
13437
13500
  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.34",
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.34",
61
+ "@alienplatform/bindings": "^3.3.34",
62
+ "@alienplatform/core": "^3.3.34"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "tsdown && tsc --emitDeclarationOnly",