@alienplatform/sdk 1.5.1 → 1.7.1

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @alienplatform/sdk@1.5.1 build /home/runner/work/alien/alien/packages/sdk
2
+ > @alienplatform/sdk@1.7.1 build /home/runner/work/alien/alien/packages/sdk
3
3
  > tsdown && tsc --emitDeclarationOnly
4
4
 
5
5
  ℹ tsdown v0.13.5 powered by rolldown v1.0.3
@@ -12,8 +12,8 @@
12
12
  - For the "define". Invalid key: Expected never but received "define". 
13
13
  ℹ dist/index.js 1338.28 kB
14
14
  ℹ dist/commands/index.js  12.03 kB │ gzip: 3.11 kB
15
- ℹ dist/dist.js  333.31 kB │ gzip: 62.28 kB
16
- ℹ 3 files, total: 1683.62 kB
15
+ ℹ dist/dist.js  333.56 kB │ gzip: 62.38 kB
16
+ ℹ 3 files, total: 1683.87 kB
17
17
  ../../node_modules/.pnpm/@protobufjs+inquire@1.1.0/node_modules/@protobufjs/inquire/index.js (12:18) [EVAL] Use of direct `eval` function is strongly discouraged as it poses security risks and may cause issues with minification.
18
18
  ╭─[ ../../node_modules/.pnpm/@protobufjs+inquire@1.1.0/node_modules/@protobufjs/inquire/index.js:12:19 ]
19
19
  │
@@ -24,4 +24,4 @@
24
24
   │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
25
25
  ────╯
26
26
 
27
- ✔ Build complete in 359ms
27
+ ✔ Build complete in 160ms
package/dist/dist.js CHANGED
@@ -3790,6 +3790,7 @@ const AlienErrorSchema = object({
3790
3790
  */
3791
3791
  const DeploymentStatusSchema = _enum([
3792
3792
  "pending",
3793
+ "preflights-failed",
3793
3794
  "initial-setup",
3794
3795
  "initial-setup-failed",
3795
3796
  "provisioning",
@@ -3802,6 +3803,8 @@ const DeploymentStatusSchema = _enum([
3802
3803
  "delete-pending",
3803
3804
  "deleting",
3804
3805
  "delete-failed",
3806
+ "teardown-required",
3807
+ "teardown-failed",
3805
3808
  "deleted",
3806
3809
  "error"
3807
3810
  ]).describe("Deployment status in the deployment lifecycle");
@@ -3933,6 +3936,7 @@ const ResourceStatusSchema = _enum([
3933
3936
  "update-failed",
3934
3937
  "deleting",
3935
3938
  "delete-failed",
3939
+ "teardown-required",
3936
3940
  "deleted",
3937
3941
  "refresh-failed"
3938
3942
  ]).describe("Represents the high-level status of a resource during its lifecycle.");
@@ -8272,6 +8276,7 @@ object({
8272
8276
  "setupFingerprint": string().describe("Setup compatibility fingerprint embedded in the package."),
8273
8277
  "setupFingerprintVersion": int().min(0).describe("Setup fingerprint algorithm version embedded in the package."),
8274
8278
  "setupImportFormatVersion": int().min(0).describe("Wire-format version for the setup import payload."),
8279
+ "setupMetadata": optional(any().describe("Setup source metadata needed by the control plane to guide privileged\nteardown. The manager treats this as opaque JSON.")),
8275
8280
  "setupTarget": string().describe("Setup target this package was generated for."),
8276
8281
  get "sourceKind"() {
8277
8282
  return union([ImportSourceKindSchema, _null()]).optional();
@@ -8850,7 +8855,7 @@ var AlienError = class AlienError extends Error {
8850
8855
  code: "GENERIC_ERROR",
8851
8856
  message: `HTTP request failed with status ${error.status}`,
8852
8857
  retryable: false,
8853
- internal: false,
8858
+ internal: true,
8854
8859
  httpStatusCode: error.status,
8855
8860
  context: {
8856
8861
  url: error.url,
@@ -8865,7 +8870,7 @@ var AlienError = class AlienError extends Error {
8865
8870
  code: "GENERIC_ERROR",
8866
8871
  message: errorBody?.message || `HTTP request failed with status ${error.status}`,
8867
8872
  retryable: false,
8868
- internal: false,
8873
+ internal: true,
8869
8874
  httpStatusCode: error.status,
8870
8875
  context: {
8871
8876
  url: error.url,
@@ -8884,7 +8889,7 @@ var AlienError = class AlienError extends Error {
8884
8889
  code: "GENERIC_ERROR",
8885
8890
  message: serialized?.message || String(error),
8886
8891
  retryable: false,
8887
- internal: false,
8892
+ internal: true,
8888
8893
  httpStatusCode: 500,
8889
8894
  context: {
8890
8895
  originalError: serialized,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alienplatform/sdk",
3
- "version": "1.5.1",
3
+ "version": "1.7.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -50,7 +50,7 @@
50
50
  "protobufjs": "^7.5.3",
51
51
  "ts-pattern": "^5.7.1",
52
52
  "zod": "4.3.2",
53
- "@alienplatform/core": "^1.5.1"
53
+ "@alienplatform/core": "^1.7.1"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "tsdown && tsc --emitDeclarationOnly",