@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
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -2049,10 +2049,13 @@ __export(apps_exports, {
|
|
|
2049
2049
|
minio: () => minio,
|
|
2050
2050
|
mongodb: () => mongodb,
|
|
2051
2051
|
mongodbDatabase: () => mongodbDatabase,
|
|
2052
|
+
node: () => node,
|
|
2052
2053
|
optionalSharedArgs: () => optionalSharedArgs,
|
|
2053
2054
|
optionalSharedInputs: () => optionalSharedInputs,
|
|
2054
2055
|
postgresql: () => postgresql,
|
|
2055
2056
|
postgresqlDatabase: () => postgresqlDatabase,
|
|
2057
|
+
remnawave: () => remnawave,
|
|
2058
|
+
remnawaveEntity: () => remnawaveEntity,
|
|
2056
2059
|
sharedArgs: () => sharedArgs2,
|
|
2057
2060
|
sharedInputs: () => sharedInputs2,
|
|
2058
2061
|
sharedSecrets: () => sharedSecrets2,
|
|
@@ -2702,6 +2705,53 @@ var postgresqlDatabase = defineUnit({
|
|
|
2702
2705
|
},
|
|
2703
2706
|
source: source("postgresql/database")
|
|
2704
2707
|
});
|
|
2708
|
+
var remnawaveEntity = defineEntity({
|
|
2709
|
+
type: "k8s.apps.remnawave.v1",
|
|
2710
|
+
schema: z.object({
|
|
2711
|
+
/**
|
|
2712
|
+
* The ID of the Remnawave instance.
|
|
2713
|
+
*/
|
|
2714
|
+
instanceId: z.string().meta({ title: camelCaseToHumanReadable("instanceId"), description: `The ID of the Remnawave instance.` })
|
|
2715
|
+
})
|
|
2716
|
+
});
|
|
2717
|
+
var remnawave = defineUnit({
|
|
2718
|
+
type: "k8s.apps.remnawave.backend.v1",
|
|
2719
|
+
secrets: {
|
|
2720
|
+
jwtAuthSecret: z.string(),
|
|
2721
|
+
jwtApiTokensSecret: z.string()
|
|
2722
|
+
},
|
|
2723
|
+
inputs: {
|
|
2724
|
+
...pick(sharedInputs2, ["k8sCluster", "accessPoint", "postgresql", "redis"]),
|
|
2725
|
+
...pick(optionalSharedInputs, ["resticRepo"])
|
|
2726
|
+
},
|
|
2727
|
+
outputs: {
|
|
2728
|
+
remnawave: remnawaveEntity
|
|
2729
|
+
},
|
|
2730
|
+
meta: {
|
|
2731
|
+
description: `The Remnawave backend deployed on Kubernetes.`,
|
|
2732
|
+
title: "Remnawave Backend",
|
|
2733
|
+
icon: "mdi:waveform",
|
|
2734
|
+
iconColor: "#0066cc",
|
|
2735
|
+
category: "VPN"
|
|
2736
|
+
},
|
|
2737
|
+
source: source("remnawave/backend")
|
|
2738
|
+
});
|
|
2739
|
+
var node = defineUnit({
|
|
2740
|
+
type: "k8s.apps.remnawave.node.v1",
|
|
2741
|
+
inputs: {
|
|
2742
|
+
remnawave: remnawaveEntity,
|
|
2743
|
+
...pick(sharedInputs2, ["k8sCluster"])
|
|
2744
|
+
},
|
|
2745
|
+
meta: {
|
|
2746
|
+
description: `The Remnawave node deployed on Kubernetes.`,
|
|
2747
|
+
title: "Remnawave Node",
|
|
2748
|
+
icon: "mdi:waveform",
|
|
2749
|
+
iconColor: "#0066cc",
|
|
2750
|
+
secondaryIcon: "mdi:server-network",
|
|
2751
|
+
category: "VPN"
|
|
2752
|
+
},
|
|
2753
|
+
source: source("remnawave/node")
|
|
2754
|
+
});
|
|
2705
2755
|
var backupModeSchema = z.enum(["state", "full"]);
|
|
2706
2756
|
var syncthing = defineUnit({
|
|
2707
2757
|
type: "k8s.apps.syncthing.v1",
|
|
@@ -4306,7 +4356,7 @@ __export(wireguard_exports, {
|
|
|
4306
4356
|
identityEntity: () => identityEntity,
|
|
4307
4357
|
network: () => network,
|
|
4308
4358
|
networkEntity: () => networkEntity,
|
|
4309
|
-
node: () =>
|
|
4359
|
+
node: () => node2,
|
|
4310
4360
|
nodeExposePolicySchema: () => nodeExposePolicySchema,
|
|
4311
4361
|
nodeK8s: () => nodeK8s,
|
|
4312
4362
|
peer: () => peer,
|
|
@@ -4812,7 +4862,7 @@ var nodeK8s = defineUnit({
|
|
|
4812
4862
|
path: "node.k8s"
|
|
4813
4863
|
}
|
|
4814
4864
|
});
|
|
4815
|
-
var
|
|
4865
|
+
var node2 = defineUnit({
|
|
4816
4866
|
type: "wireguard.node.v1",
|
|
4817
4867
|
args: {
|
|
4818
4868
|
/**
|