@alienplatform/core 3.3.42 → 3.3.43

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/index.d.ts CHANGED
@@ -46,6 +46,8 @@ declare const AgentStatusSchema: z$2.ZodObject<{
46
46
  "delete-failed": "delete-failed";
47
47
  "teardown-required": "teardown-required";
48
48
  "teardown-failed": "teardown-failed";
49
+ "retention-required": "retention-required";
50
+ retained: "retained";
49
51
  deleted: "deleted";
50
52
  }>;
51
53
  }, z$2.core.$strip>;
@@ -188,6 +190,8 @@ declare const AlienEventSchema: z$2.ZodUnion<readonly [z$2.ZodObject<{
188
190
  id: z$2.ZodString;
189
191
  type: z$2.ZodString;
190
192
  }, z$2.core.$strip>>>;
193
+ description: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
194
+ displayName: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
191
195
  error: z$2.ZodOptional<z$2.ZodUnion<readonly [z$2.ZodObject<{
192
196
  code: z$2.ZodString;
193
197
  context: z$2.ZodOptional<z$2.ZodAny>;
@@ -210,6 +214,7 @@ declare const AlienEventSchema: z$2.ZodUnion<readonly [z$2.ZodObject<{
210
214
  id: z$2.ZodString;
211
215
  type: z$2.ZodString;
212
216
  }, z$2.core.$catchall<z$2.ZodAny>>, z$2.ZodNull]>>;
217
+ progress: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
213
218
  remoteBindingParams: z$2.ZodOptional<z$2.ZodAny>;
214
219
  retryAttempt: z$2.ZodOptional<z$2.ZodInt>;
215
220
  status: z$2.ZodEnum<{
@@ -6427,6 +6432,8 @@ declare const DevStatusSchema: z$2.ZodObject<{
6427
6432
  "delete-failed": "delete-failed";
6428
6433
  "teardown-required": "teardown-required";
6429
6434
  "teardown-failed": "teardown-failed";
6435
+ "retention-required": "retention-required";
6436
+ retained: "retained";
6430
6437
  deleted: "deleted";
6431
6438
  }>;
6432
6439
  }, z$2.core.$strip>>>>;
@@ -6758,6 +6765,8 @@ declare const EventChangeSchema: z$2.ZodUnion<readonly [z$2.ZodObject<{
6758
6765
  id: z$2.ZodString;
6759
6766
  type: z$2.ZodString;
6760
6767
  }, z$2.core.$strip>>>;
6768
+ description: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
6769
+ displayName: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
6761
6770
  error: z$2.ZodOptional<z$2.ZodUnion<readonly [z$2.ZodObject<{
6762
6771
  code: z$2.ZodString;
6763
6772
  context: z$2.ZodOptional<z$2.ZodAny>;
@@ -6780,6 +6789,7 @@ declare const EventChangeSchema: z$2.ZodUnion<readonly [z$2.ZodObject<{
6780
6789
  id: z$2.ZodString;
6781
6790
  type: z$2.ZodString;
6782
6791
  }, z$2.core.$catchall<z$2.ZodAny>>, z$2.ZodNull]>>;
6792
+ progress: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
6783
6793
  remoteBindingParams: z$2.ZodOptional<z$2.ZodAny>;
6784
6794
  retryAttempt: z$2.ZodOptional<z$2.ZodInt>;
6785
6795
  status: z$2.ZodEnum<{
@@ -7031,6 +7041,8 @@ declare const EventChangeSchema: z$2.ZodUnion<readonly [z$2.ZodObject<{
7031
7041
  id: z$2.ZodString;
7032
7042
  type: z$2.ZodString;
7033
7043
  }, z$2.core.$strip>>>;
7044
+ description: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
7045
+ displayName: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
7034
7046
  error: z$2.ZodOptional<z$2.ZodUnion<readonly [z$2.ZodObject<{
7035
7047
  code: z$2.ZodString;
7036
7048
  context: z$2.ZodOptional<z$2.ZodAny>;
@@ -7053,6 +7065,7 @@ declare const EventChangeSchema: z$2.ZodUnion<readonly [z$2.ZodObject<{
7053
7065
  id: z$2.ZodString;
7054
7066
  type: z$2.ZodString;
7055
7067
  }, z$2.core.$catchall<z$2.ZodAny>>, z$2.ZodNull]>>;
7068
+ progress: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
7056
7069
  remoteBindingParams: z$2.ZodOptional<z$2.ZodAny>;
7057
7070
  retryAttempt: z$2.ZodOptional<z$2.ZodInt>;
7058
7071
  status: z$2.ZodEnum<{
@@ -7739,6 +7752,41 @@ declare const ExternalBindingSchema: z$2.ZodUnion<readonly [z$2.ZodIntersection<
7739
7752
  service: z$2.ZodEnum<{
7740
7753
  aurora: "aurora";
7741
7754
  }>;
7755
+ }, z$2.core.$strip>>, z$2.ZodIntersection<z$2.ZodLazy<z$2.ZodObject<{
7756
+ clusterEndpoint: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
7757
+ secretRef: z$2.ZodObject<{
7758
+ key: z$2.ZodString;
7759
+ name: z$2.ZodString;
7760
+ }, z$2.core.$strip>;
7761
+ }, z$2.core.$strip>]>;
7762
+ database: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
7763
+ secretRef: z$2.ZodObject<{
7764
+ key: z$2.ZodString;
7765
+ name: z$2.ZodString;
7766
+ }, z$2.core.$strip>;
7767
+ }, z$2.core.$strip>]>;
7768
+ passwordSecretArn: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
7769
+ secretRef: z$2.ZodObject<{
7770
+ key: z$2.ZodString;
7771
+ name: z$2.ZodString;
7772
+ }, z$2.core.$strip>;
7773
+ }, z$2.core.$strip>]>;
7774
+ port: z$2.ZodUnion<readonly [z$2.ZodInt, z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodObject<{
7775
+ secretRef: z$2.ZodObject<{
7776
+ key: z$2.ZodString;
7777
+ name: z$2.ZodString;
7778
+ }, z$2.core.$strip>;
7779
+ }, z$2.core.$strip>]>;
7780
+ username: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
7781
+ secretRef: z$2.ZodObject<{
7782
+ key: z$2.ZodString;
7783
+ name: z$2.ZodString;
7784
+ }, z$2.core.$strip>;
7785
+ }, z$2.core.$strip>]>;
7786
+ }, z$2.core.$strip>>, z$2.ZodObject<{
7787
+ service: z$2.ZodEnum<{
7788
+ "aurora-managed": "aurora-managed";
7789
+ }>;
7742
7790
  }, z$2.core.$strip>>, z$2.ZodIntersection<z$2.ZodLazy<z$2.ZodObject<{
7743
7791
  database: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
7744
7792
  secretRef: z$2.ZodObject<{
@@ -8397,6 +8445,41 @@ declare const ExternalBindingsSchema: z$2.ZodObject<{}, z$2.core.$catchall<z$2.Z
8397
8445
  service: z$2.ZodEnum<{
8398
8446
  aurora: "aurora";
8399
8447
  }>;
8448
+ }, z$2.core.$strip>>, z$2.ZodIntersection<z$2.ZodLazy<z$2.ZodObject<{
8449
+ clusterEndpoint: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
8450
+ secretRef: z$2.ZodObject<{
8451
+ key: z$2.ZodString;
8452
+ name: z$2.ZodString;
8453
+ }, z$2.core.$strip>;
8454
+ }, z$2.core.$strip>]>;
8455
+ database: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
8456
+ secretRef: z$2.ZodObject<{
8457
+ key: z$2.ZodString;
8458
+ name: z$2.ZodString;
8459
+ }, z$2.core.$strip>;
8460
+ }, z$2.core.$strip>]>;
8461
+ passwordSecretArn: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
8462
+ secretRef: z$2.ZodObject<{
8463
+ key: z$2.ZodString;
8464
+ name: z$2.ZodString;
8465
+ }, z$2.core.$strip>;
8466
+ }, z$2.core.$strip>]>;
8467
+ port: z$2.ZodUnion<readonly [z$2.ZodInt, z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodObject<{
8468
+ secretRef: z$2.ZodObject<{
8469
+ key: z$2.ZodString;
8470
+ name: z$2.ZodString;
8471
+ }, z$2.core.$strip>;
8472
+ }, z$2.core.$strip>]>;
8473
+ username: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
8474
+ secretRef: z$2.ZodObject<{
8475
+ key: z$2.ZodString;
8476
+ name: z$2.ZodString;
8477
+ }, z$2.core.$strip>;
8478
+ }, z$2.core.$strip>]>;
8479
+ }, z$2.core.$strip>>, z$2.ZodObject<{
8480
+ service: z$2.ZodEnum<{
8481
+ "aurora-managed": "aurora-managed";
8482
+ }>;
8400
8483
  }, z$2.core.$strip>>, z$2.ZodIntersection<z$2.ZodLazy<z$2.ZodObject<{
8401
8484
  database: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
8402
8485
  secretRef: z$2.ZodObject<{
@@ -26542,6 +26625,8 @@ declare const StackResourceStateSchema: z$2.ZodObject<{
26542
26625
  id: z$2.ZodString;
26543
26626
  type: z$2.ZodString;
26544
26627
  }, z$2.core.$strip>>>;
26628
+ description: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
26629
+ displayName: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
26545
26630
  error: z$2.ZodOptional<z$2.ZodUnion<readonly [z$2.ZodObject<{
26546
26631
  code: z$2.ZodString;
26547
26632
  context: z$2.ZodOptional<z$2.ZodAny>;
@@ -26564,6 +26649,7 @@ declare const StackResourceStateSchema: z$2.ZodObject<{
26564
26649
  id: z$2.ZodString;
26565
26650
  type: z$2.ZodString;
26566
26651
  }, z$2.core.$catchall<z$2.ZodAny>>, z$2.ZodNull]>>;
26652
+ progress: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
26567
26653
  remoteBindingParams: z$2.ZodOptional<z$2.ZodAny>;
26568
26654
  retryAttempt: z$2.ZodOptional<z$2.ZodInt>;
26569
26655
  status: z$2.ZodEnum<{
@@ -26957,6 +27043,8 @@ declare const StackSchema: z$2.ZodObject<{
26957
27043
  id: z$2.ZodString;
26958
27044
  type: z$2.ZodString;
26959
27045
  }, z$2.core.$strip>>;
27046
+ description: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
27047
+ displayName: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
26960
27048
  enabledWhen: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
26961
27049
  lifecycle: z$2.ZodEnum<{
26962
27050
  frozen: "frozen";
@@ -27547,6 +27635,41 @@ declare const StackSettingsSchema: z$2.ZodObject<{
27547
27635
  service: z$2.ZodEnum<{
27548
27636
  aurora: "aurora";
27549
27637
  }>;
27638
+ }, z$2.core.$strip>>, z$2.ZodIntersection<z$2.ZodLazy<z$2.ZodObject<{
27639
+ clusterEndpoint: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
27640
+ secretRef: z$2.ZodObject<{
27641
+ key: z$2.ZodString;
27642
+ name: z$2.ZodString;
27643
+ }, z$2.core.$strip>;
27644
+ }, z$2.core.$strip>]>;
27645
+ database: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
27646
+ secretRef: z$2.ZodObject<{
27647
+ key: z$2.ZodString;
27648
+ name: z$2.ZodString;
27649
+ }, z$2.core.$strip>;
27650
+ }, z$2.core.$strip>]>;
27651
+ passwordSecretArn: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
27652
+ secretRef: z$2.ZodObject<{
27653
+ key: z$2.ZodString;
27654
+ name: z$2.ZodString;
27655
+ }, z$2.core.$strip>;
27656
+ }, z$2.core.$strip>]>;
27657
+ port: z$2.ZodUnion<readonly [z$2.ZodInt, z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodObject<{
27658
+ secretRef: z$2.ZodObject<{
27659
+ key: z$2.ZodString;
27660
+ name: z$2.ZodString;
27661
+ }, z$2.core.$strip>;
27662
+ }, z$2.core.$strip>]>;
27663
+ username: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
27664
+ secretRef: z$2.ZodObject<{
27665
+ key: z$2.ZodString;
27666
+ name: z$2.ZodString;
27667
+ }, z$2.core.$strip>;
27668
+ }, z$2.core.$strip>]>;
27669
+ }, z$2.core.$strip>>, z$2.ZodObject<{
27670
+ service: z$2.ZodEnum<{
27671
+ "aurora-managed": "aurora-managed";
27672
+ }>;
27550
27673
  }, z$2.core.$strip>>, z$2.ZodIntersection<z$2.ZodLazy<z$2.ZodObject<{
27551
27674
  database: z$2.ZodUnion<readonly [z$2.ZodLazy<z$2.ZodJSONSchema>, z$2.ZodString, z$2.ZodObject<{
27552
27675
  secretRef: z$2.ZodObject<{
@@ -28006,6 +28129,8 @@ declare const StackStateSchema: z$2.ZodObject<{
28006
28129
  id: z$2.ZodString;
28007
28130
  type: z$2.ZodString;
28008
28131
  }, z$2.core.$strip>>>;
28132
+ description: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
28133
+ displayName: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
28009
28134
  error: z$2.ZodOptional<z$2.ZodUnion<readonly [z$2.ZodObject<{
28010
28135
  code: z$2.ZodString;
28011
28136
  context: z$2.ZodOptional<z$2.ZodAny>;
@@ -28028,6 +28153,7 @@ declare const StackStateSchema: z$2.ZodObject<{
28028
28153
  id: z$2.ZodString;
28029
28154
  type: z$2.ZodString;
28030
28155
  }, z$2.core.$catchall<z$2.ZodAny>>, z$2.ZodNull]>>;
28156
+ progress: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
28031
28157
  remoteBindingParams: z$2.ZodOptional<z$2.ZodAny>;
28032
28158
  retryAttempt: z$2.ZodOptional<z$2.ZodInt>;
28033
28159
  status: z$2.ZodEnum<{
@@ -29728,12 +29854,14 @@ declare class Resource {
29728
29854
  * ungated ones, which shows up in the stack snapshots.
29729
29855
  */
29730
29856
  readonly enabledWhen?: string;
29857
+ readonly displayName?: string;
29858
+ readonly description?: string;
29731
29859
  /**
29732
29860
  * Creates a new Resource instance.
29733
29861
  * @param config The configuration object for this specific resource type.
29734
29862
  * @param enabledWhen Id of the boolean stack input gating this resource's creation.
29735
29863
  */
29736
- constructor(config: BaseResource, enabledWhen?: string);
29864
+ constructor(config: BaseResource, enabledWhen?: string, displayName?: string, description?: string);
29737
29865
  /**
29738
29866
  * Returns a reference to this resource.
29739
29867
  * A resource reference is used to link resources together (e.g., granting a Worker access to a Storage bucket).
@@ -29742,10 +29870,19 @@ declare class Resource {
29742
29870
  ref(): ResourceRef;
29743
29871
  }
29744
29872
  /**
29745
- * Base class for the per-resource builders, giving every resource type the same
29746
- * `.enabled()` gate without each builder reimplementing it.
29873
+ * Shared display metadata for resource builders.
29747
29874
  */
29748
- declare abstract class ResourceBuilder {
29875
+ declare abstract class ResourceMetadataBuilder {
29876
+ private _displayName?;
29877
+ private _description?;
29878
+ /** Sets a friendly name; the resource ID remains its stable identity. */
29879
+ displayName(name: string): this;
29880
+ /** Describes this resource's purpose as plain text. */
29881
+ description(description: string): this;
29882
+ protected resource(config: BaseResource, enabledWhen?: string): Resource;
29883
+ }
29884
+ /** Shared conditional creation for resource types that support gates. */
29885
+ declare abstract class ResourceBuilder extends ResourceMetadataBuilder {
29749
29886
  private _enabledWhen?;
29750
29887
  /**
29751
29888
  * Creates this resource only when the given boolean stack input is true.
@@ -29793,7 +29930,7 @@ declare class AI extends ResourceBuilder {
29793
29930
  * This is a high-level wrapper resource that provides a cloud-agnostic interface over
29794
29931
  * AWS ECR, GCP Artifact Registry, and Azure Container Registry.
29795
29932
  */
29796
- declare class ArtifactRegistry {
29933
+ declare class ArtifactRegistry extends ResourceMetadataBuilder {
29797
29934
  private _config;
29798
29935
  /**
29799
29936
  * Creates a new ArtifactRegistry builder.
@@ -29807,11 +29944,9 @@ declare class ArtifactRegistry {
29807
29944
  */
29808
29945
  static any(): ResourceType;
29809
29946
  /**
29810
- * AWS-only: Configure ECR private image replication to additional regions.
29811
- * Ensures images pushed in the registry's home region are automatically
29812
- * available in these destination regions (required when Lambda or other
29813
- * compute runs in a different region).
29814
- * @param regions - AWS region codes to replicate to (e.g., ["us-east-2", "eu-west-1"])
29947
+ * Legacy AWS replication setting. Accepted with a warning; account replication is unchanged.
29948
+ * Configure destination regions through the account infrastructure owner.
29949
+ * @deprecated Per-deployment ECR replication is unsupported.
29815
29950
  */
29816
29951
  replicationRegions(regions: string[]): this;
29817
29952
  /**
@@ -29826,7 +29961,7 @@ declare class ArtifactRegistry {
29826
29961
  * Builds are designed to be stateless and can be triggered on-demand to compile,
29827
29962
  * test, or package application code.
29828
29963
  */
29829
- declare class Build {
29964
+ declare class Build extends ResourceMetadataBuilder {
29830
29965
  private _config;
29831
29966
  /**
29832
29967
  * Creates a new Build builder.
@@ -30394,7 +30529,7 @@ type ComputePoolInput = {
30394
30529
  * Provider instance types, selected zones, custom container CIDRs, GPU, and
30395
30530
  * nested virtualization requirements are unsupported and fail validation.
30396
30531
  */
30397
- declare class ComputeCluster {
30532
+ declare class ComputeCluster extends ResourceMetadataBuilder {
30398
30533
  private _config;
30399
30534
  constructor(id: string);
30400
30535
  /**
@@ -31647,7 +31782,7 @@ declare class Postgres extends ResourceBuilder {
31647
31782
  *
31648
31783
  * Use binary units: Ki, Mi, Gi or Ti (e.g. "512Mi", "4Gi"). Decimal units are powers of 1000,
31649
31784
  * as in Kubernetes: "8G" is 8×10^9 bytes, about 7.45 GiB, so it can pick a smaller tier than
31650
- * "8Gi". A number without a unit is rejected.
31785
+ * "8Gi". A number without a unit retains its historical meaning in GiB.
31651
31786
  *
31652
31787
  * On AWS (Aurora Serverless v2) the ceiling is memory / 2 GiB per ACU, with a minimum of 1 ACU
31653
31788
  * (about 2 GiB): Aurora rejects a lower maximum capacity, so anything under "2Gi" is sized
@@ -31664,6 +31799,7 @@ declare class Postgres extends ResourceBuilder {
31664
31799
  storage(value: string): this;
31665
31800
  /**
31666
31801
  * Enables multi-AZ / regional / zone-redundant high availability. Default `false`.
31802
+ * AWS currently keeps one Aurora compute instance and warns when this is true.
31667
31803
  * @param value Whether to enable HA.
31668
31804
  * @returns The Postgres builder instance.
31669
31805
  */
@@ -31791,7 +31927,7 @@ declare class Sandbox extends ResourceBuilder {
31791
31927
  * .build()
31792
31928
  * ```
31793
31929
  */
31794
- declare class ServiceAccount {
31930
+ declare class ServiceAccount extends ResourceMetadataBuilder {
31795
31931
  private _config;
31796
31932
  /**
31797
31933
  * Creates a new ServiceAccount builder.