@highstate/library 0.12.1 → 0.13.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.
- package/dist/highstate.library.msgpack +0 -0
- package/dist/index.js +52 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/k8s/apps/index.ts +1 -0
- package/src/k8s/apps/remnawave.ts +66 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@highstate/library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"highstate": {
|
|
6
6
|
"type": "library"
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"remeda": "^2.21.0",
|
|
23
|
+
"@highstate/contract": "0.13.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@biomejs/biome": "2.2.0",
|
|
27
|
-
"@highstate/cli": "^0.10.0",
|
|
28
27
|
"@typescript/native-preview": "^7.0.0-dev.20250920.1",
|
|
29
|
-
"type-fest": "^4.41.0"
|
|
28
|
+
"type-fest": "^4.41.0",
|
|
29
|
+
"@highstate/cli": "0.13.1"
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|
|
32
32
|
"url": "https://github.com/highstate-io/highstate"
|
package/src/k8s/apps/index.ts
CHANGED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineEntity, defineUnit, z } from "@highstate/contract"
|
|
2
|
+
import { pick } from "remeda"
|
|
3
|
+
import { optionalSharedInputs, sharedInputs, source } from "./shared"
|
|
4
|
+
|
|
5
|
+
export const remnawaveEntity = defineEntity({
|
|
6
|
+
type: "k8s.apps.remnawave.v1",
|
|
7
|
+
|
|
8
|
+
schema: z.object({
|
|
9
|
+
/**
|
|
10
|
+
* The ID of the Remnawave instance.
|
|
11
|
+
*/
|
|
12
|
+
instanceId: z.string(),
|
|
13
|
+
}),
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The Remnawave backend deployed on Kubernetes.
|
|
18
|
+
*/
|
|
19
|
+
export const remnawave = defineUnit({
|
|
20
|
+
type: "k8s.apps.remnawave.backend.v1",
|
|
21
|
+
|
|
22
|
+
secrets: {
|
|
23
|
+
jwtAuthSecret: z.string(),
|
|
24
|
+
jwtApiTokensSecret: z.string(),
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
inputs: {
|
|
28
|
+
...pick(sharedInputs, ["k8sCluster", "accessPoint", "postgresql", "redis"]),
|
|
29
|
+
...pick(optionalSharedInputs, ["resticRepo"]),
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
outputs: {
|
|
33
|
+
remnawave: remnawaveEntity,
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
meta: {
|
|
37
|
+
title: "Remnawave Backend",
|
|
38
|
+
icon: "mdi:waveform",
|
|
39
|
+
iconColor: "#0066cc",
|
|
40
|
+
category: "VPN",
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
source: source("remnawave/backend"),
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* The Remnawave node deployed on Kubernetes.
|
|
48
|
+
*/
|
|
49
|
+
export const node = defineUnit({
|
|
50
|
+
type: "k8s.apps.remnawave.node.v1",
|
|
51
|
+
|
|
52
|
+
inputs: {
|
|
53
|
+
remnawave: remnawaveEntity,
|
|
54
|
+
...pick(sharedInputs, ["k8sCluster"]),
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
meta: {
|
|
58
|
+
title: "Remnawave Node",
|
|
59
|
+
icon: "mdi:waveform",
|
|
60
|
+
iconColor: "#0066cc",
|
|
61
|
+
secondaryIcon: "mdi:server-network",
|
|
62
|
+
category: "VPN",
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
source: source("remnawave/node"),
|
|
66
|
+
})
|