@highstate/library 0.25.0 → 0.26.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.
Binary file
package/dist/index.js CHANGED
@@ -1398,11 +1398,9 @@ var gatewayPatchInputs = {
1398
1398
  };
1399
1399
  var gatewayEntity = defineEntity11({
1400
1400
  type: "common.gateway.v1",
1401
+ extends: { l3EndpointContainer },
1401
1402
  schema: z14.object({
1402
1403
  implRef: implementationReferenceSchema.meta({ title: __camelCaseToHumanReadable8("implRef"), description: `The reference to the implementation of the gateway.` }),
1403
- endpoints: l3EndpointEntity.schema.array().default([]).meta({ title: __camelCaseToHumanReadable8("endpoints"), description: `The public L3 endpoints of the gateway.
1404
-
1405
- If not provided, should be automatically detected by the implementation.` }),
1406
1404
  clientAuth: gatewayClientAuthSchema.optional().meta({ title: __camelCaseToHumanReadable8("clientAuth"), description: `The default client certificate validation configuration for routes using this gateway.` })
1407
1405
  }),
1408
1406
  meta: {
@@ -1427,6 +1425,7 @@ var tlsIssuerEntity = defineEntity11({
1427
1425
  });
1428
1426
  var accessPointEntity = defineEntity11({
1429
1427
  type: "common.access-point.v1",
1428
+ extends: { l3EndpointContainer },
1430
1429
  includes: {
1431
1430
  gateway: gatewayEntity,
1432
1431
  tlsIssuers: {
@@ -7683,6 +7682,10 @@ var virtualMachine4 = defineUnit68({
7683
7682
  entity: publicAddressEntity,
7684
7683
  required: false
7685
7684
  }, `The reserved public address to attach to the virtual machine.`),
7685
+ sshProxyEndpoint: $addInputDescription56({
7686
+ entity: l4EndpointEntity,
7687
+ required: false
7688
+ }, `The endpoint of the SSH jump host used to connect to the virtual machine.`),
7686
7689
  ...inputs
7687
7690
  },
7688
7691
  outputs: serverOutputs,
@@ -7730,6 +7733,10 @@ var instanceGroup2 = defineUnit68({
7730
7733
  entity: publicAddressEntity,
7731
7734
  required: false
7732
7735
  }, `The reserved public address to use for the network load balancer.`),
7736
+ sshProxyEndpoint: $addInputDescription56({
7737
+ entity: l4EndpointEntity,
7738
+ required: false
7739
+ }, `The endpoint of the SSH jump host used to connect to the instances.`),
7733
7740
  ...inputs
7734
7741
  },
7735
7742
  outputs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highstate/library",
3
- "version": "0.25.0",
3
+ "version": "0.26.1",
4
4
  "type": "module",
5
5
  "highstate": {
6
6
  "type": "library"
@@ -30,12 +30,12 @@
30
30
  "biome:check": "biome check --error-on-warnings"
31
31
  },
32
32
  "dependencies": {
33
- "@highstate/contract": "0.25.0",
33
+ "@highstate/contract": "0.27.0",
34
34
  "remeda": "^2.21.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@biomejs/biome": "2.2.0",
38
- "@highstate/cli": "0.25.0",
37
+ "@biomejs/biome": "2.5.0",
38
+ "@highstate/cli": "0.27.0",
39
39
  "@typescript/native-preview": "^7.0.0-dev.20250920.1",
40
40
  "type-fest": "^4.41.0"
41
41
  },
@@ -7,7 +7,7 @@ import {
7
7
  } from "@highstate/contract"
8
8
  import * as dns from "../dns"
9
9
  import { implementationReferenceSchema } from "../impl-ref"
10
- import { l3EndpointEntity } from "../network"
10
+ import { l3EndpointContainer, l3EndpointEntity } from "../network"
11
11
  import { booleanPatchSchema } from "../utils"
12
12
  import { fileEntity } from "./files"
13
13
 
@@ -62,19 +62,14 @@ const gatewayPatchInputs = {
62
62
  export const gatewayEntity = defineEntity({
63
63
  type: "common.gateway.v1",
64
64
 
65
+ extends: { l3EndpointContainer },
66
+
65
67
  schema: z.object({
66
68
  /**
67
69
  * The reference to the implementation of the gateway.
68
70
  */
69
71
  implRef: implementationReferenceSchema,
70
72
 
71
- /**
72
- * The public L3 endpoints of the gateway.
73
- *
74
- * If not provided, should be automatically detected by the implementation.
75
- */
76
- endpoints: l3EndpointEntity.schema.array().default([]),
77
-
78
73
  /**
79
74
  * The default client certificate validation configuration for routes using this gateway.
80
75
  */
@@ -115,6 +110,8 @@ export const tlsIssuerEntity = defineEntity({
115
110
  export const accessPointEntity = defineEntity({
116
111
  type: "common.access-point.v1",
117
112
 
113
+ extends: { l3EndpointContainer },
114
+
118
115
  includes: {
119
116
  /**
120
117
  * The gateway of the access point.
@@ -567,6 +567,14 @@ export const virtualMachine = defineUnit({
567
567
  required: false,
568
568
  },
569
569
 
570
+ /**
571
+ * The endpoint of the SSH jump host used to connect to the virtual machine.
572
+ */
573
+ sshProxyEndpoint: {
574
+ entity: l4EndpointEntity,
575
+ required: false,
576
+ },
577
+
570
578
  ...ssh.inputs,
571
579
  },
572
580
 
@@ -656,6 +664,14 @@ export const instanceGroup = defineUnit({
656
664
  required: false,
657
665
  },
658
666
 
667
+ /**
668
+ * The endpoint of the SSH jump host used to connect to the instances.
669
+ */
670
+ sshProxyEndpoint: {
671
+ entity: l4EndpointEntity,
672
+ required: false,
673
+ },
674
+
659
675
  ...ssh.inputs,
660
676
  },
661
677