@alienplatform/sdk 1.4.2 → 1.7.0

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.4.2 build /home/runner/work/alien/alien/packages/sdk
2
+ > @alienplatform/sdk@1.7.0 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
@@ -10,18 +10,18 @@
10
10
  ℹ Cleaning 80 files
11
11
  Warning: Invalid input options (1 issue found)
12
12
  - For the "define". Invalid key: Expected never but received "define". 
13
- ℹ dist/index.js 1338.28 kB
14
- ℹ dist/commands/index.js  12.03 kB │ gzip: 3.11 kB
15
- ℹ dist/dist.js  333.03 kB │ gzip: 62.27 kB
16
- ℹ 3 files, total: 1683.34 kB
17
13
  ../../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.
14
+ ℹ dist/index.js 1338.28 kB
18
15
  â•­─[ ../../node_modules/.pnpm/@protobufjs+inquire@1.1.0/node_modules/@protobufjs/inquire/index.js:12:19 ]
19
16
  │
17
+ ℹ dist/commands/index.js  12.03 kB │ gzip: 3.11 kB
20
18
  12 │         var mod = eval("quire".replace(/^/,"re"))(moduleName); // eslint-disable-line no-eval
19
+ ℹ dist/dist.js  333.56 kB │ gzip: 62.38 kB
21
20
   │ ──┬─
21
+ ℹ 3 files, total: 1683.87 kB
22
22
   │ ╰─── Use of direct `eval` here.
23
+ ✔ Build complete in 181ms
23
24
   │
24
25
   │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
25
26
  ────╯
26
27
 
27
- ✔ Build complete in 317ms
package/dist/dist.js CHANGED
@@ -3763,7 +3763,7 @@ function superRefine(fn) {
3763
3763
  return /* @__PURE__ */ _superRefine(fn);
3764
3764
  }
3765
3765
  //#endregion
3766
- //#region ../../node_modules/.pnpm/@alienplatform+core@file+packages+core_openapi-types@12.1.3/node_modules/@alienplatform/core/dist/stack.js
3766
+ //#region ../core/dist/stack.js
3767
3767
  /**
3768
3768
  * Generated by Kubb (https://kubb.dev/).
3769
3769
  * Do not edit manually.
@@ -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.");
@@ -5311,7 +5315,10 @@ const AzureContainerAppsWorkerHeartbeatDataSchema = object({
5311
5315
  * Generated by Kubb (https://kubb.dev/).
5312
5316
  * Do not edit manually.
5313
5317
  */
5314
- const AzureCustomCertificateConfigSchema = object({ "keyVaultCertificateId": string() });
5318
+ const AzureCustomCertificateConfigSchema = object({
5319
+ "keyVaultCertificateId": string(),
5320
+ "keyVaultResourceId": string().nullish()
5321
+ });
5315
5322
  /**
5316
5323
  * Generated by Kubb (https://kubb.dev/).
5317
5324
  * Do not edit manually.
@@ -5408,6 +5415,8 @@ const AzureManagementConfigSchema = object({
5408
5415
  "oidcSubject": string().describe("OIDC subject claim trusted by the target-side managed identity.")
5409
5416
  }).describe("Azure management configuration extracted from stack settings");
5410
5417
  object({
5418
+ "applicationGatewaySubnetId": string().describe("Dedicated subnet for classic Azure Application Gateway ingress.").nullish(),
5419
+ "applicationGatewaySubnetName": string().describe("Dedicated subnet name for classic Azure Application Gateway ingress.").nullish(),
5411
5420
  "isByoVnet": boolean().describe("True when the VNet is owned outside this stack."),
5412
5421
  "natGatewayId": string().describe("NAT gateway resource id when one was created.").nullish(),
5413
5422
  "networkSecurityGroupId": string().describe("Network Security Group resource id attached to workload subnets.").nullish(),
@@ -5727,6 +5736,7 @@ object({
5727
5736
  * Do not edit manually.
5728
5737
  */
5729
5738
  const AzureVnetNetworkHeartbeatDataSchema = object({
5739
+ "applicationGatewaySubnetName": string().nullish(),
5730
5740
  "cidrBlock": string().nullish(),
5731
5741
  "isByoVnet": boolean(),
5732
5742
  "lastByoVnetVerificationErrorCode": string().nullish(),
@@ -7884,6 +7894,7 @@ const NetworkSettingsSchema = union([
7884
7894
  "type": _enum(["byo-vpc-gcp"])
7885
7895
  }),
7886
7896
  object({
7897
+ "application_gateway_subnet_name": string().describe("Name of the dedicated classic Application Gateway subnet within the VNet.").nullish(),
7887
7898
  "private_subnet_name": string().describe("Name of the private subnet within the VNet"),
7888
7899
  "public_subnet_name": string().describe("Name of the public subnet within the VNet"),
7889
7900
  "type": _enum(["byo-vnet-azure"]),
@@ -8265,6 +8276,7 @@ object({
8265
8276
  "setupFingerprint": string().describe("Setup compatibility fingerprint embedded in the package."),
8266
8277
  "setupFingerprintVersion": int().min(0).describe("Setup fingerprint algorithm version embedded in the package."),
8267
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.")),
8268
8280
  "setupTarget": string().describe("Setup target this package was generated for."),
8269
8281
  get "sourceKind"() {
8270
8282
  return union([ImportSourceKindSchema, _null()]).optional();
@@ -8559,7 +8571,7 @@ function isErrorLike(value) {
8559
8571
  return Boolean(value) && typeof value === "object" && typeof value.name === "string" && typeof value.message === "string" && typeof value.stack === "string";
8560
8572
  }
8561
8573
  //#endregion
8562
- //#region ../../node_modules/.pnpm/@alienplatform+core@file+packages+core_openapi-types@12.1.3/node_modules/@alienplatform/core/dist/index.js
8574
+ //#region ../core/dist/index.js
8563
8575
  /**
8564
8576
  * This module provides a structured error handling system similar to Rust's error types,
8565
8577
  * with TypeScript type safety, error chaining, and context preservation.
@@ -8843,7 +8855,7 @@ var AlienError = class AlienError extends Error {
8843
8855
  code: "GENERIC_ERROR",
8844
8856
  message: `HTTP request failed with status ${error.status}`,
8845
8857
  retryable: false,
8846
- internal: false,
8858
+ internal: true,
8847
8859
  httpStatusCode: error.status,
8848
8860
  context: {
8849
8861
  url: error.url,
@@ -8858,7 +8870,7 @@ var AlienError = class AlienError extends Error {
8858
8870
  code: "GENERIC_ERROR",
8859
8871
  message: errorBody?.message || `HTTP request failed with status ${error.status}`,
8860
8872
  retryable: false,
8861
- internal: false,
8873
+ internal: true,
8862
8874
  httpStatusCode: error.status,
8863
8875
  context: {
8864
8876
  url: error.url,
@@ -8877,7 +8889,7 @@ var AlienError = class AlienError extends Error {
8877
8889
  code: "GENERIC_ERROR",
8878
8890
  message: serialized?.message || String(error),
8879
8891
  retryable: false,
8880
- internal: false,
8892
+ internal: true,
8881
8893
  httpStatusCode: 500,
8882
8894
  context: {
8883
8895
  originalError: serialized,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alienplatform/sdk",
3
- "version": "1.4.2",
3
+ "version": "1.7.0",
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.4.2"
53
+ "@alienplatform/core": "^1.7.0"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "tsdown && tsc --emitDeclarationOnly",