@highstate/library 0.10.0 → 0.11.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highstate/library",
3
- "version": "0.10.0",
3
+ "version": "0.11.3",
4
4
  "type": "module",
5
5
  "highstate": {
6
6
  "type": "library"
@@ -18,12 +18,6 @@
18
18
  "publishConfig": {
19
19
  "access": "public"
20
20
  },
21
- "scripts": {
22
- "build": "highstate build",
23
- "typecheck": "tsgo --noEmit --skipLibCheck",
24
- "biome": "biome check --write --unsafe --error-on-warnings",
25
- "biome:check": "biome check --error-on-warnings"
26
- },
27
21
  "dependencies": {
28
22
  "@highstate/contract": "^0.10.0",
29
23
  "remeda": "^2.21.0"
@@ -34,5 +28,13 @@
34
28
  "@typescript/native-preview": "^7.0.0-dev.20250920.1",
35
29
  "type-fest": "^4.41.0"
36
30
  },
37
- "gitHead": "39727b965ab54c84e730adbca69cd15066fab852"
38
- }
31
+ "repository": {
32
+ "url": "https://github.com/highstate-io/highstate"
33
+ },
34
+ "scripts": {
35
+ "build": "highstate build",
36
+ "typecheck": "tsgo --noEmit --skipLibCheck",
37
+ "biome": "biome check --write --unsafe --error-on-warnings",
38
+ "biome:check": "biome check --error-on-warnings"
39
+ }
40
+ }
@@ -32,6 +32,13 @@ export const existingMariadb = defineUnit({
32
32
  package: "@highstate/common",
33
33
  path: "units/databases/existing-mariadb",
34
34
  },
35
+
36
+ meta: {
37
+ title: "Existing MariaDB Database",
38
+ icon: "simple-icons:mariadb",
39
+ secondaryIcon: "mdi:database",
40
+ category: "Databases",
41
+ },
35
42
  })
36
43
 
37
44
  export type MariaDB = z.infer<typeof mariadbEntity.schema>
@@ -32,6 +32,13 @@ export const existingMongodb = defineUnit({
32
32
  package: "@highstate/common",
33
33
  path: "units/databases/existing-mongodb",
34
34
  },
35
+
36
+ meta: {
37
+ title: "Existing MongoDB Database",
38
+ icon: "simple-icons:mongodb",
39
+ secondaryIcon: "mdi:database",
40
+ category: "Databases",
41
+ },
35
42
  })
36
43
 
37
44
  export type MongoDB = z.infer<typeof mongodbEntity.schema>
@@ -32,6 +32,13 @@ export const existingPostgresql = defineUnit({
32
32
  package: "@highstate/common",
33
33
  path: "units/databases/existing-postgresql",
34
34
  },
35
+
36
+ meta: {
37
+ title: "Existing PostgreSQL Database",
38
+ icon: "simple-icons:postgresql",
39
+ secondaryIcon: "mdi:database",
40
+ category: "Databases",
41
+ },
35
42
  })
36
43
 
37
44
  export type PostgreSQL = z.infer<typeof postgresqlEntity.schema>
@@ -3,7 +3,7 @@ import { pick } from "remeda"
3
3
  import { portSchema } from "../../network"
4
4
  import { namespaceEntity } from "../resources"
5
5
  import { serviceEntity, serviceTypeSchema } from "../service"
6
- import { deploymentEntity } from "../workload"
6
+ import { exposableWorkloadEntity } from "../workload"
7
7
  import { optionalSharedInputs, sharedInputs, source } from "./shared"
8
8
 
9
9
  export const databaseConfigKeySchema = z.enum([
@@ -177,11 +177,11 @@ export const workload = defineUnit({
177
177
  mongodbPassword: z.string().optional(),
178
178
 
179
179
  /**
180
- * The password for the backup.
180
+ * The key for the backup.
181
181
  *
182
- * If not provided and requested, a random password will be generated.
182
+ * If not provided and requested, a random key will be generated.
183
183
  */
184
- backupPassword: z.string().optional(),
184
+ backupKey: z.string().optional(),
185
185
 
186
186
  /**
187
187
  * The secret configuration for the workload.
@@ -206,7 +206,7 @@ export const workload = defineUnit({
206
206
 
207
207
  outputs: {
208
208
  namespace: namespaceEntity,
209
- deployment: deploymentEntity,
209
+ workload: exposableWorkloadEntity,
210
210
  service: serviceEntity,
211
211
  },
212
212
 
package/src/wireguard.ts CHANGED
@@ -216,6 +216,13 @@ const sharedPeerArgs = {
216
216
  * The port to listen on.
217
217
  */
218
218
  listenPort: z.number().optional(),
219
+
220
+ /**
221
+ * The keepalive interval in seconds that will be used by all nodes connecting to this peer.
222
+ *
223
+ * If set to 0, keepalive is disabled.
224
+ */
225
+ persistentKeepalive: z.number().int().nonnegative().default(0),
219
226
  }
220
227
 
221
228
  const sharedPeerInputs = {
@@ -288,18 +295,7 @@ const sharedPeerOutputs = {
288
295
  },
289
296
  } as const
290
297
 
291
- export type SharedPeerArgs = {
292
- peerName?: string
293
- address?: string
294
- exitNode: boolean
295
- excludedIps: string[]
296
- excludePrivateIps: boolean
297
- endpoints: string[]
298
- allowedEndpoints: string[]
299
- dns: string[]
300
- includeDns: boolean
301
- listenPort?: number
302
- }
298
+ export type SharedPeerArgs = z.infer<z.ZodObject<typeof sharedPeerArgs>>
303
299
 
304
300
  /**
305
301
  * The WireGuard peer with the public key.