@alienplatform/sdk 3.3.42 → 3.3.44

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 +82 -4
  2. package/package.json +4 -4
package/dist/dist.js CHANGED
@@ -5580,6 +5580,8 @@ const DeploymentStatusSchema = _enum([
5580
5580
  "delete-failed",
5581
5581
  "teardown-required",
5582
5582
  "teardown-failed",
5583
+ "retention-required",
5584
+ "retained",
5583
5585
  "deleted",
5584
5586
  "error"
5585
5587
  ]).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.");
@@ -5976,6 +5978,8 @@ const StackResourceStateSchema = object({
5976
5978
  get "dependencies"() {
5977
5979
  return array(ResourceRefSchema.describe("Reference to a resource by its stable id and resource type.")).describe("Complete list of dependencies for this resource, including infrastructure dependencies.\nThis preserves the full dependency information from the stack definition.").optional();
5978
5980
  },
5981
+ "description": string().nullish(),
5982
+ "displayName": string().describe("Presentation metadata from the effective resource entry, outside runtime configuration.").nullish(),
5979
5983
  get "error"() {
5980
5984
  return union([AlienErrorSchema, _null()]).optional();
5981
5985
  },
@@ -5989,6 +5993,7 @@ const StackResourceStateSchema = object({
5989
5993
  get "previousConfig"() {
5990
5994
  return union([BaseResourceSchema, _null()]).optional();
5991
5995
  },
5996
+ "progress": string().describe("Last reported step explanation for display only; not a machine-readable status.").nullish(),
5992
5997
  "remoteBindingParams": optional(any().describe("Binding parameters for remote access.\nOnly populated when the resource has `remote_access: true` in its ResourceEntry.\nThis is the JSON serialization of the binding configuration (e.g., StorageBinding, VaultBinding).\nPopulated by controllers during provisioning using get_binding_params().")),
5993
5998
  "retryAttempt": optional(int().min(0).describe("Tracks consecutive retry attempts for the current state transition.")),
5994
5999
  get "status"() {
@@ -7276,6 +7281,7 @@ object({
7276
7281
  "database": string().describe("Default database name."),
7277
7282
  "engineVersion": string().describe("Engine version the cluster reports."),
7278
7283
  "instanceIdentifier": string().describe("Writer instance identifier within the cluster."),
7284
+ "managedPassword": optional(boolean().describe("True when RDS owns the JSON username/password secret and its rotation.")),
7279
7285
  "passwordSecretArn": string().describe("Secrets Manager ARN of the master password (never the password itself)."),
7280
7286
  "securityGroupId": string().describe("Dedicated security group admitting 5432 from the stack security group."),
7281
7287
  "subnetGroupName": string().describe("DB subnet group spanning the private subnets."),
@@ -9766,6 +9772,14 @@ const KubernetesCustomCertificateConfigSchema = object({ get "tlsSecretRef"() {
9766
9772
  * Do not edit manually.
9767
9773
  */
9768
9774
  /**
9775
+ * @description Managed certificate issuance settings.
9776
+ */
9777
+ const ManagedCustomCertificateConfigSchema = object({}).describe("Managed certificate issuance settings.");
9778
+ /**
9779
+ * Generated by Kubb (https://kubb.dev/).
9780
+ * Do not edit manually.
9781
+ */
9782
+ /**
9769
9783
  * @description Platform-specific certificate references for custom domains.
9770
9784
  */
9771
9785
  const CustomCertificateConfigSchema = object({
@@ -9780,6 +9794,9 @@ const CustomCertificateConfigSchema = object({
9780
9794
  },
9781
9795
  get "kubernetes"() {
9782
9796
  return union([KubernetesCustomCertificateConfigSchema, _null()]).optional();
9797
+ },
9798
+ get "managed"() {
9799
+ return union([ManagedCustomCertificateConfigSchema, _null()]).optional();
9783
9800
  }
9784
9801
  }).describe("Platform-specific certificate references for custom domains.");
9785
9802
  /**
@@ -9793,7 +9810,8 @@ const CustomDomainConfigSchema = object({
9793
9810
  get "certificate"() {
9794
9811
  return CustomCertificateConfigSchema.describe("Platform-specific certificate references for custom domains.");
9795
9812
  },
9796
- "domain": string().describe("Fully qualified domain name to use.")
9813
+ "domain": optional(string().describe("Fully qualified domain name for a supplied certificate.")),
9814
+ "endpoints": optional(object({}).catchall(string()).describe("Hostnames keyed by endpoint name for a managed certificate."))
9797
9815
  }).describe("Custom domain configuration for a single resource.");
9798
9816
  /**
9799
9817
  * Generated by Kubb (https://kubb.dev/).
@@ -10184,14 +10202,14 @@ const PublicEndpointTargetSettingsSchema = union([object({ "mode": _enum(["machi
10184
10202
  * Do not edit manually.
10185
10203
  */
10186
10204
  /**
10187
- * @description Domain configuration for the stack.\n\nWhen `custom_domains` is set, the specified resources use customer-provided\ndomains and certificates. Otherwise, Alien auto-generates domains.
10205
+ * @description Domain configuration for the stack.\n\nWhen `custom_domains` is set, the specified resources use customer-provided\ndomains with supplied or managed certificates. Otherwise, Alien auto-generates domains.
10188
10206
  */
10189
10207
  const DomainSettingsSchema = object({
10190
10208
  "customDomains": object({}).catchall(lazy(() => CustomDomainConfigSchema).describe("Custom domain configuration for a single resource.")).describe("Custom domain configuration per resource ID.").nullish(),
10191
10209
  get "publicEndpointTarget"() {
10192
10210
  return union([PublicEndpointTargetSettingsSchema, _null()]).optional();
10193
10211
  }
10194
- }).describe("Domain configuration for the stack.\n\nWhen `custom_domains` is set, the specified resources use customer-provided\ndomains and certificates. Otherwise, Alien auto-generates domains.");
10212
+ }).describe("Domain configuration for the stack.\n\nWhen `custom_domains` is set, the specified resources use customer-provided\ndomains with supplied or managed certificates. Otherwise, Alien auto-generates domains.");
10195
10213
  /**
10196
10214
  * Generated by Kubb (https://kubb.dev/).
10197
10215
  * Do not edit manually.
@@ -10505,6 +10523,20 @@ const KvBindingSchema = union([
10505
10523
  * Generated by Kubb (https://kubb.dev/).
10506
10524
  * Do not edit manually.
10507
10525
  */
10526
+ const ExternalPasswordSecretKeyRefSchema = object({ get "secretKeyRef"() {
10527
+ return SecretReferenceSchema.describe("Reference to a Kubernetes Secret");
10528
+ } });
10529
+ /**
10530
+ * Generated by Kubb (https://kubb.dev/).
10531
+ * Do not edit manually.
10532
+ */
10533
+ const ExternalPasswordSecretRefSchema = object({ get "secretRef"() {
10534
+ return SecretReferenceSchema.describe("Reference to a Kubernetes Secret");
10535
+ } });
10536
+ /**
10537
+ * Generated by Kubb (https://kubb.dev/).
10538
+ * Do not edit manually.
10539
+ */
10508
10540
  /**
10509
10541
  * @description TLS policy for an operator-provided / BYO Postgres database.\n\nUnlike libpq\'s ambiguous `prefer` mode, both choices map exactly to the\nconnection settings exposed by every supported SDK.
10510
10542
  */
@@ -10523,7 +10555,13 @@ const ExternalPostgresBindingSchema = object({
10523
10555
  get "host"() {
10524
10556
  return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10525
10557
  },
10526
- "password": string().describe("Connection password as a concrete value, never an unresolved `SecretRef`: the platform\nmaterializes the Kubernetes secret into the pod env. The cloud variants carry a secret\nlocator instead."),
10558
+ get "password"() {
10559
+ return union([
10560
+ ExternalPasswordSecretRefSchema,
10561
+ ExternalPasswordSecretKeyRefSchema,
10562
+ string()
10563
+ ]).describe("Connection password or Kubernetes Secret reference. Kubernetes workloads resolve\nthe reference through secretKeyRef before the application loads its binding.");
10564
+ },
10527
10565
  get "port"() {
10528
10566
  return BindingValueU16Schema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10529
10567
  },
@@ -10589,6 +10627,7 @@ const LocalPostgresBindingSchema = object({
10589
10627
  */
10590
10628
  const PostgresBindingSchema = union([
10591
10629
  lazy(() => AuroraPostgresBindingSchema).and(object({ "service": _enum(["aurora"]) })).describe("AWS Aurora Serverless v2 binding."),
10630
+ lazy(() => AuroraPostgresBindingSchema).and(object({ "service": _enum(["aurora-managed"]) })).describe("AWS Aurora Serverless v2 binding."),
10592
10631
  lazy(() => CloudSqlPostgresBindingSchema).and(object({ "service": _enum(["cloud-sql"]) })).describe("GCP Cloud SQL binding."),
10593
10632
  lazy(() => FlexibleServerPostgresBindingSchema).and(object({ "service": _enum(["flexible-server"]) })).describe("Azure Flexible Server binding."),
10594
10633
  lazy(() => ExternalPostgresBindingSchema).and(object({ "service": _enum(["external"]) })).describe("Operator-provided / BYO database binding."),
@@ -11591,6 +11630,16 @@ const KubernetesExposureSettingsSchema = union([
11591
11630
  get "route"() {
11592
11631
  return KubernetesRouteProfileSchema.describe("Kubernetes route API selected for public endpoints.");
11593
11632
  }
11633
+ }),
11634
+ object({
11635
+ "baseDomain": string().describe("DNS name without a wildcard or URL scheme, for example `app.example.com`."),
11636
+ get "certificate"() {
11637
+ return KubernetesCertificateModeSchema.describe("Certificate publication or reference mode for Kubernetes public endpoints.");
11638
+ },
11639
+ "mode": _enum(["customBaseDomain"]),
11640
+ get "route"() {
11641
+ return KubernetesRouteProfileSchema.describe("Kubernetes route API selected for public endpoints.");
11642
+ }
11594
11643
  })
11595
11644
  ]).describe("Kubernetes public HTTPS exposure mode.");
11596
11645
  /**
@@ -12249,6 +12298,8 @@ const ResourceEntrySchema = object({
12249
12298
  get "dependencies"() {
12250
12299
  return array(ResourceRefSchema.describe("Reference to a resource by its stable id and resource type.")).describe("Additional dependencies for this resource beyond those defined in the resource itself.\nThe total dependencies are: resource.get_dependencies() + this list");
12251
12300
  },
12301
+ "description": string().describe("Authored purpose, displayed as plain text. Does not affect resource configuration.").nullish(),
12302
+ "displayName": string().describe("Optional human-readable name. The stable resource ID is the display fallback.").nullish(),
12252
12303
  "enabledWhen": string().describe("Id of the boolean stack input that decides whether this resource is\ncreated at all. `None` means always create it.\n\nSet by `.enabled(input)` in the SDK. Setup emitters render the resource\nconditionally on the matching template variable, so a deployer who says no\nnever gets the resource, its outputs, or anything derived from it.").nullish(),
12253
12304
  get "lifecycle"() {
12254
12305
  return ResourceLifecycleSchema.describe("Describes the lifecycle of a resource within a stack, determining how it's managed and deployed.");
@@ -12647,6 +12698,7 @@ const UpdatesModeSchema = _enum(["auto", "approval-required"]).describe("How upd
12647
12698
  * @description User-customizable deployment settings specified at deploy time.\n\nThese settings are provided by the customer via CloudFormation parameters,\nTerraform attributes, CLI flags, or Helm values. They customize how the\ndeployment runs and what capabilities are enabled.\n\n**Key distinction**: StackSettings is user-customizable, while ManagementConfig\nis platform-derived (from the Manager\'s ServiceAccount).
12648
12699
  */
12649
12700
  const StackSettingsSchema = object({
12701
+ "airgapped": optional(boolean().describe("Deliver Kubernetes updates and reports as carried bundles instead of a live connection.\nThe Operator still executes deployments with the pull model.")),
12650
12702
  get "compute"() {
12651
12703
  return union([ComputeSettingsSchema, _null()]).optional();
12652
12704
  },
@@ -12729,6 +12781,17 @@ object({
12729
12781
  * Do not edit manually.
12730
12782
  */
12731
12783
  /**
12784
+ * @description A boolean input condition controlling whether another input applies.
12785
+ */
12786
+ const StackInputConditionSchema = object({
12787
+ "equals": boolean().describe("Boolean value for which this input applies."),
12788
+ "input": string().describe("ID of an unconditional boolean input in the same stack.")
12789
+ }).describe("A boolean input condition controlling whether another input applies.");
12790
+ /**
12791
+ * Generated by Kubb (https://kubb.dev/).
12792
+ * Do not edit manually.
12793
+ */
12794
+ /**
12732
12795
  * @description Stack input default value.
12733
12796
  */
12734
12797
  const StackInputDefaultValueSchema = union([
@@ -12854,6 +12917,9 @@ const StackInputDefinitionSchema = object({
12854
12917
  "required": boolean().describe("Whether a resolved value is required before deployment can proceed."),
12855
12918
  get "validation"() {
12856
12919
  return union([StackInputValidationSchema, _null()]).optional();
12920
+ },
12921
+ get "when"() {
12922
+ return union([StackInputConditionSchema, _null()]).optional();
12857
12923
  }
12858
12924
  }).describe("Stack input definition serialized into a release stack.");
12859
12925
  union([object({ "external": string().describe("Reference to another stack by ID") }), _enum(["current"])]).describe("Reference to a stack for management permissions");
@@ -13648,4 +13714,16 @@ defineError({
13648
13714
  internal: false,
13649
13715
  httpStatusCode: 400
13650
13716
  });
13717
+ defineError({
13718
+ code: "INVALID_INPUT_CONDITION",
13719
+ context: object({
13720
+ input: string(),
13721
+ reference: string(),
13722
+ reason: string()
13723
+ }),
13724
+ message: ({ input, reference, reason }) => `Stack input '${input}' when '${reference}': ${reason}`,
13725
+ retryable: false,
13726
+ internal: false,
13727
+ httpStatusCode: 400
13728
+ });
13651
13729
  export { logSystemError as _, object as a, getCommands as c, onQueueBatch as d, onQueueMessage as f, waitUntil as g, setOnTaskRegistered as h, defineError as i, getEventHandlers as l, runCommand as m, BindingNotFoundError as n, string as o, onStorageEvent as p, InvalidBindingConfigError as r, command as s, AlienError as t, onCronEvent as u, logSystemWarn as v };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alienplatform/sdk",
3
- "version": "3.3.42",
3
+ "version": "3.3.44",
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.42",
61
- "@alienplatform/bindings": "^3.3.42",
62
- "@alienplatform/core": "^3.3.42"
60
+ "@alienplatform/ai-gateway": "^3.3.44",
61
+ "@alienplatform/bindings": "^3.3.44",
62
+ "@alienplatform/core": "^3.3.44"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "tsdown && tsc --emitDeclarationOnly",