stacktape 3.1.2 → 3.2.0-beta.7

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 (6) hide show
  1. package/index.d.ts +27 -1
  2. package/index.js +444 -458
  3. package/package.json +1 -1
  4. package/sdk.d.ts +47 -7
  5. package/sdk.js +11262 -12325
  6. package/types.d.ts +277 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stacktape",
3
- "version": "3.1.2",
3
+ "version": "3.2.0-beta.7",
4
4
  "description": "PaaS 2.0 that deploys to your own AWS account.",
5
5
  "author": "Stacktape team <support@stacktape.com>",
6
6
  "license": "MIT",
package/sdk.d.ts CHANGED
@@ -7,6 +7,7 @@ export type LoggableEventType =
7
7
  | "BUILD_CODE"
8
8
  | "BUILD_IMAGE"
9
9
  | "BUILD_NEXTJS_PROJECT"
10
+ | "BUILD_SHARED_LAYER"
10
11
  | "BUNDLING_NEXTJS_FUNCTIONS"
11
12
  | "CALCULATE_CHANGES"
12
13
  | "CALCULATE_CHECKSUM"
@@ -19,6 +20,8 @@ export type LoggableEventType =
19
20
  | "DELETE_OBSOLETE_ARTIFACTS"
20
21
  | "DELETE_STACK"
21
22
  | "DEPLOY"
23
+ | "DEV_SESSION_ERROR"
24
+ | "DEV_SESSION_READY"
22
25
  | "FETCH_BUDGET_INFO"
23
26
  | "FETCH_DOMAIN_STATUSES"
24
27
  | "FETCH_EC2_INFO"
@@ -63,6 +66,7 @@ export type LoggableEventType =
63
66
  | "UPLOAD_IMAGE"
64
67
  | "UPLOAD_PACKAGE"
65
68
  | "UPLOAD_PROJECT"
69
+ | "UPLOAD_SHARED_LAYER"
66
70
  | "VALIDATE_CONFIG_TEMP"
67
71
  | "VALIDATE_TEMPLATE"
68
72
  | "ZIP_PACKAGE"
@@ -1838,7 +1842,7 @@ export interface LoadBalancerHealthCheck {
1838
1842
  *
1839
1843
  * **Supported languages:** JavaScript, TypeScript, Python, Java, and Go.
1840
1844
  *
1841
- * For JS/TS, your code is bundled into a single file using esbuild with source maps.
1845
+ * For JS/TS, your code is bundled into a single file with source maps.
1842
1846
  * The resulting image is uploaded to a managed ECR repository.
1843
1847
  */
1844
1848
  export interface StpBuildpackCwImagePackaging {
@@ -10345,9 +10349,9 @@ export interface EventBusArchivation {
10345
10349
  *
10346
10350
  * ---
10347
10351
  *
10348
- * The number of days to retain archived events.
10352
+ * The number of days to retain archived events. Default is indefinitely.
10349
10353
  */
10350
- retentionDays?: number & string;
10354
+ retentionDays?: number;
10351
10355
  }
10352
10356
  /**
10353
10357
  * #### Bastion Host
@@ -11788,7 +11792,7 @@ export interface CustomResourceDefinitionProps {
11788
11792
  *
11789
11793
  * **Supported languages:** JavaScript, TypeScript, Python, Java, and Go.
11790
11794
  *
11791
- * For JS/TS, your code is bundled into a single file using esbuild. Source maps are automatically generated.
11795
+ * For JS/TS, your code is bundled into a single file. Source maps are automatically generated.
11792
11796
  * Packages are cached based on a checksum, so unchanged code is not re-packaged.
11793
11797
  */
11794
11798
  export interface StpBuildpackLambdaPackaging {
@@ -16743,6 +16747,10 @@ export interface DeployReturnValue {
16743
16747
  skipped: boolean;
16744
16748
  size: number;
16745
16749
  artifactPath?: string;
16750
+ /**
16751
+ * All npm modules resolved during bundling (for Lambda functions)
16752
+ */
16753
+ resolvedModules?: string[];
16746
16754
  }[];
16747
16755
  abortedBeforeStart?: boolean;
16748
16756
  }
@@ -25688,6 +25696,10 @@ export type PackageWorkloadsReturnValue = {
25688
25696
  skipped: boolean;
25689
25697
  size: number;
25690
25698
  artifactPath?: string;
25699
+ /**
25700
+ * All npm modules resolved during bundling (for Lambda functions)
25701
+ */
25702
+ resolvedModules?: string[];
25691
25703
  }[];
25692
25704
 
25693
25705
  export interface PreviewChangesReturnValue {
@@ -25844,7 +25856,15 @@ declare class Stacktape {
25844
25856
  *
25845
25857
  * If `true`, attempts a faster deployment for code-only changes by updating `functions` and `multi-container-workloads` directly, without using CloudFormation. This is recommended only for development stacks. Hotswap will only be used if all stack changes are hot-swappable.
25846
25858
  */
25847
- hotSwap?: boolean, onEvent?: (eventData: any) => void, printProgress?: boolean }): Promise<{ eventLog: EventLogEntry[], result: DeployReturnValue }>;
25859
+ hotSwap?: boolean,
25860
+ /**
25861
+ * #### Disable Layer Optimization
25862
+ *
25863
+ * ---
25864
+ *
25865
+ * If `true`, disables the shared Lambda layer optimization. By default, Stacktape extracts shared code into Lambda layers to reduce deployment size. Use this flag to bundle all code directly into each Lambda function.
25866
+ */
25867
+ disableLayerOptimization?: boolean, onEvent?: (eventData: any) => void, printProgress?: boolean }): Promise<{ eventLog: EventLogEntry[], result: DeployReturnValue }>;
25848
25868
 
25849
25869
 
25850
25870
  /**
@@ -26117,7 +26137,15 @@ declare class Stacktape {
26117
26137
  *
26118
26138
  * If `true`, attempts a faster deployment for code-only changes by updating `functions` and `multi-container-workloads` directly, without using CloudFormation. This is recommended only for development stacks. Hotswap will only be used if all stack changes are hot-swappable.
26119
26139
  */
26120
- hotSwap?: boolean, onEvent?: (eventData: any) => void, printProgress?: boolean }): Promise<{ eventLog: EventLogEntry[], result: CodebuildDeployReturnValue }>;
26140
+ hotSwap?: boolean,
26141
+ /**
26142
+ * #### Disable Layer Optimization
26143
+ *
26144
+ * ---
26145
+ *
26146
+ * If `true`, disables the shared Lambda layer optimization. By default, Stacktape extracts shared code into Lambda layers to reduce deployment size. Use this flag to bundle all code directly into each Lambda function.
26147
+ */
26148
+ disableLayerOptimization?: boolean, onEvent?: (eventData: any) => void, printProgress?: boolean }): Promise<{ eventLog: EventLogEntry[], result: CodebuildDeployReturnValue }>;
26121
26149
 
26122
26150
 
26123
26151
  /**
@@ -26349,7 +26377,19 @@ declare class Stacktape {
26349
26377
  *
26350
26378
  * The ID of the template to download. You can find a list of available templates on the [Config Builder page](https://console.stacktape.com/templates).
26351
26379
  */
26352
- templateId?: string, onEvent?: (eventData: any) => void, printProgress?: boolean }): Promise<{ eventLog: EventLogEntry[], result: RollbackReturnValue }>;
26380
+ templateId?: string,
26381
+ /**
26382
+ * #### Resources to Skip
26383
+ *
26384
+ * ---
26385
+ *
26386
+ * A list of logical resource IDs to skip during rollback. Use this when a rollback fails because certain resources
26387
+ * cannot be restored to their previous state (e.g., a Lambda alias pointing to a deleted version).
26388
+ *
26389
+ * **Warning:** Skipping resources means CloudFormation won't restore them to their previous state, which may leave
26390
+ * your stack in an inconsistent state. Use with caution.
26391
+ */
26392
+ resourcesToSkip?: array, onEvent?: (eventData: any) => void, printProgress?: boolean }): Promise<{ eventLog: EventLogEntry[], result: RollbackReturnValue }>;
26353
26393
 
26354
26394
 
26355
26395
  /**