@highstate/library 0.1.2 → 0.2.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +536 -113
  2. package/dist/index.mjs +778 -149
  3. package/package.json +11 -6
package/dist/index.d.ts CHANGED
@@ -1,137 +1,560 @@
1
1
  import * as _highstate_contract from '@highstate/contract';
2
- import { z } from 'zod';
3
-
4
- declare const clusterType: z.ZodObject<{
5
- type: z.ZodLiteral<"proxmox.cluster">;
6
- endpoint: z.ZodString;
7
- insecure: z.ZodOptional<z.ZodBoolean>;
8
- nodeName: z.ZodString;
9
- username: z.ZodOptional<z.ZodString>;
10
- password: z.ZodOptional<z.ZodString>;
11
- apiToken: z.ZodOptional<z.ZodString>;
12
- }, "strip", z.ZodTypeAny, {
13
- type: "proxmox.cluster";
14
- endpoint: string;
15
- nodeName: string;
16
- username?: string | undefined;
17
- password?: string | undefined;
18
- insecure?: boolean | undefined;
19
- apiToken?: string | undefined;
2
+ import * as _sinclair_typebox from '@sinclair/typebox';
3
+
4
+ declare const serverEntity: _highstate_contract.Entity<"common.server", _sinclair_typebox.TObject<{
5
+ endpoint: _sinclair_typebox.TString;
6
+ sshCredentials: _sinclair_typebox.TObject<{
7
+ endpoint: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
8
+ user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
9
+ port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
10
+ password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
11
+ privateKey: _sinclair_typebox.TObject<{
12
+ type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
13
+ privateKey: _sinclair_typebox.TString;
14
+ publicKey: _sinclair_typebox.TString;
15
+ }>;
16
+ }>;
17
+ }>>;
18
+ declare const gatewayEntity: _highstate_contract.Entity<"common.gateway", _sinclair_typebox.TObject<{
19
+ endpoint: _sinclair_typebox.TString;
20
+ }>>;
21
+ declare const tlsIssuerEntity: _highstate_contract.Entity<"common.tls-issuer", _sinclair_typebox.TObject<{
22
+ endpoint: _sinclair_typebox.TString;
23
+ }>>;
24
+ declare const dnsProviderEntity: _highstate_contract.Entity<"common.dns-provider", _sinclair_typebox.TObject<{
25
+ endpoint: _sinclair_typebox.TString;
26
+ }>>;
27
+ declare const accessPointEntity: _highstate_contract.Entity<"common.access-point", _sinclair_typebox.TObject<{
28
+ name: _sinclair_typebox.TString;
29
+ }>>;
30
+ declare const accessPoint: _highstate_contract.Unit<Record<string, never>, {
31
+ gateway: [_highstate_contract.Entity<"common.gateway", _sinclair_typebox.TObject<{
32
+ endpoint: _sinclair_typebox.TString;
33
+ }>>, true, false];
34
+ tlsIssuer: [_highstate_contract.Entity<"common.tls-issuer", _sinclair_typebox.TObject<{
35
+ endpoint: _sinclair_typebox.TString;
36
+ }>>, true, false];
37
+ dnsProvider: [_highstate_contract.Entity<"common.dns-provider", _sinclair_typebox.TObject<{
38
+ endpoint: _sinclair_typebox.TString;
39
+ }>>, true, false];
20
40
  }, {
21
- type: "proxmox.cluster";
22
- endpoint: string;
23
- nodeName: string;
24
- username?: string | undefined;
25
- password?: string | undefined;
41
+ accessPoint: [_highstate_contract.Entity<"common.access-point", _sinclair_typebox.TObject<{
42
+ name: _sinclair_typebox.TString;
43
+ }>>, true, false];
44
+ }, Record<string, never>>;
45
+
46
+ declare const common_accessPoint: typeof accessPoint;
47
+ declare const common_accessPointEntity: typeof accessPointEntity;
48
+ declare const common_dnsProviderEntity: typeof dnsProviderEntity;
49
+ declare const common_gatewayEntity: typeof gatewayEntity;
50
+ declare const common_serverEntity: typeof serverEntity;
51
+ declare const common_tlsIssuerEntity: typeof tlsIssuerEntity;
52
+ declare namespace common {
53
+ export { common_accessPoint as accessPoint, common_accessPointEntity as accessPointEntity, common_dnsProviderEntity as dnsProviderEntity, common_gatewayEntity as gatewayEntity, common_serverEntity as serverEntity, common_tlsIssuerEntity as tlsIssuerEntity };
54
+ }
55
+
56
+ declare const clusterEntity$1: _highstate_contract.Entity<"proxmox.cluster", _sinclair_typebox.TObject<{
57
+ endpoint: _sinclair_typebox.TString;
58
+ insecure: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
59
+ username: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
60
+ defaultNodeName: _sinclair_typebox.TString;
61
+ defaultDatastoreId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
62
+ password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
63
+ apiToken: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
64
+ }>>;
65
+ declare const imageEntity: _highstate_contract.Entity<"proxmox.image", _sinclair_typebox.TObject<{
66
+ id: _sinclair_typebox.TString;
67
+ }>>;
68
+ declare const connection$1: _highstate_contract.Unit<{
26
69
  insecure?: boolean | undefined;
27
- apiToken?: string | undefined;
28
- }>;
29
- declare const imageType: z.ZodObject<{
30
- type: z.ZodLiteral<"proxmox.image">;
31
- id: z.ZodString;
32
- }, "strip", z.ZodTypeAny, {
33
- type: "proxmox.image";
34
- id: string;
35
- }, {
36
- type: "proxmox.image";
37
- id: string;
38
- }>;
39
- declare const connection: _highstate_contract.Component<{
40
- endpoint: string;
41
- nodeName: string;
42
70
  username?: string | undefined;
71
+ defaultDatastoreId?: string | undefined;
72
+ endpoint: string;
73
+ defaultNodeName: string;
74
+ }, {
75
+ [x: string]: never;
76
+ }, {
77
+ proxmoxCluster: [_highstate_contract.Entity<"proxmox.cluster", _sinclair_typebox.TObject<{
78
+ endpoint: _sinclair_typebox.TString;
79
+ insecure: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
80
+ username: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
81
+ defaultNodeName: _sinclair_typebox.TString;
82
+ defaultDatastoreId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
83
+ password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
84
+ apiToken: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
85
+ }>>, true, false];
43
86
  }, {
44
87
  password?: string | undefined;
45
88
  apiToken?: string | undefined;
46
- }, {}, {
47
- proxmoxCluster: {
48
- type: "proxmox.cluster";
49
- endpoint: string;
50
- nodeName: string;
51
- username?: string | undefined;
52
- password?: string | undefined;
53
- insecure?: boolean | undefined;
54
- apiToken?: string | undefined;
55
- };
56
89
  }>;
57
- declare const image: _highstate_contract.Component<{
90
+ declare const image: _highstate_contract.Unit<{
91
+ nodeName?: string | undefined;
92
+ sha256?: string | undefined;
93
+ datastoreId?: string | undefined;
58
94
  url: string;
59
- }, Record<string, string | undefined>, {
60
- proxmoxCluster: {
61
- type: "proxmox.cluster";
62
- endpoint: string;
63
- nodeName: string;
64
- username?: string | undefined;
65
- password?: string | undefined;
66
- insecure?: boolean | undefined;
67
- apiToken?: string | undefined;
68
- };
69
- }, {
70
- image: {
71
- type: "proxmox.image";
72
- id: string;
73
- };
74
- }>;
75
- declare const existingImage: _highstate_contract.Component<{
76
- imageId: string;
77
- }, {}, {}, {
78
- image: {
79
- type: "proxmox.image";
80
- id: string;
81
- };
82
- }>;
83
- declare const virtualMachine: _highstate_contract.Component<{
95
+ }, {
96
+ proxmoxCluster: [_highstate_contract.Entity<"proxmox.cluster", _sinclair_typebox.TObject<{
97
+ endpoint: _sinclair_typebox.TString;
98
+ insecure: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
99
+ username: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
100
+ defaultNodeName: _sinclair_typebox.TString;
101
+ defaultDatastoreId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
102
+ password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
103
+ apiToken: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
104
+ }>>, true, false];
105
+ }, {
106
+ image: [_highstate_contract.Entity<"proxmox.image", _sinclair_typebox.TObject<{
107
+ id: _sinclair_typebox.TString;
108
+ }>>, true, false];
109
+ }, Record<string, never>>;
110
+ declare const existingImage: _highstate_contract.Unit<{
111
+ id: string;
112
+ }, {
113
+ [x: string]: never;
114
+ }, {
115
+ image: [_highstate_contract.Entity<"proxmox.image", _sinclair_typebox.TObject<{
116
+ id: _sinclair_typebox.TString;
117
+ }>>, true, false];
118
+ }, Record<string, never>>;
119
+ declare const virtualMachine: _highstate_contract.Unit<{
120
+ ipv4?: string | undefined;
84
121
  nodeName?: string | undefined;
122
+ datastoreId?: string | undefined;
85
123
  cores?: number | undefined;
86
124
  sockets?: number | undefined;
87
125
  memory?: number | undefined;
88
- ipv4?: string | undefined;
89
126
  ipv4Gateway?: string | undefined;
90
127
  dns?: string[] | undefined;
91
- datastoreId?: string | undefined;
92
128
  diskSize?: number | undefined;
93
129
  bridge?: string | undefined;
94
- }, Record<string, string | undefined>, {
95
- proxmoxCluster: {
96
- type: "proxmox.cluster";
97
- endpoint: string;
98
- nodeName: string;
99
- username?: string | undefined;
100
- password?: string | undefined;
101
- insecure?: boolean | undefined;
102
- apiToken?: string | undefined;
103
- };
104
- image: {
105
- type: "proxmox.image";
106
- id: string;
107
- };
108
- sshPublicKey?: {
109
- type: "ssh.key";
110
- publicKey: string;
111
- } | undefined;
112
- }, {
113
- server: {
114
- type: "server";
115
- endpoint: string;
116
- sshCredentials?: {
117
- type: "server.sshCredentials";
118
- endpoint?: string | undefined;
119
- port?: number | undefined;
120
- username?: string | undefined;
121
- password?: string | undefined;
122
- privateKey?: string | undefined;
123
- } | undefined;
124
- };
125
- }>;
130
+ }, {
131
+ proxmoxCluster: [_highstate_contract.Entity<"proxmox.cluster", _sinclair_typebox.TObject<{
132
+ endpoint: _sinclair_typebox.TString;
133
+ insecure: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
134
+ username: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
135
+ defaultNodeName: _sinclair_typebox.TString;
136
+ defaultDatastoreId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
137
+ password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
138
+ apiToken: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
139
+ }>>, true, false];
140
+ image: [_highstate_contract.Entity<"proxmox.image", _sinclair_typebox.TObject<{
141
+ id: _sinclair_typebox.TString;
142
+ }>>, true, false];
143
+ sshPublicKey: [_highstate_contract.Entity<"ssh.public-key", _sinclair_typebox.TObject<{
144
+ publicKey: _sinclair_typebox.TString;
145
+ }>>, false, false];
146
+ sshKeyPair: [_highstate_contract.Entity<"ssh.key-pair", _sinclair_typebox.TObject<{
147
+ type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
148
+ privateKey: _sinclair_typebox.TString;
149
+ publicKey: _sinclair_typebox.TString;
150
+ }>>, false, false];
151
+ }, {
152
+ server: [_highstate_contract.Entity<"common.server", _sinclair_typebox.TObject<{
153
+ endpoint: _sinclair_typebox.TString;
154
+ sshCredentials: _sinclair_typebox.TObject<{
155
+ endpoint: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
156
+ user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
157
+ port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
158
+ password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
159
+ privateKey: _sinclair_typebox.TObject<{
160
+ type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
161
+ privateKey: _sinclair_typebox.TString;
162
+ publicKey: _sinclair_typebox.TString;
163
+ }>;
164
+ }>;
165
+ }>>, true, false];
166
+ }, Record<string, never>>;
126
167
 
127
- declare const proxmox_clusterType: typeof clusterType;
128
- declare const proxmox_connection: typeof connection;
129
168
  declare const proxmox_existingImage: typeof existingImage;
130
169
  declare const proxmox_image: typeof image;
131
- declare const proxmox_imageType: typeof imageType;
170
+ declare const proxmox_imageEntity: typeof imageEntity;
132
171
  declare const proxmox_virtualMachine: typeof virtualMachine;
133
172
  declare namespace proxmox {
134
- export { proxmox_clusterType as clusterType, proxmox_connection as connection, proxmox_existingImage as existingImage, proxmox_image as image, proxmox_imageType as imageType, proxmox_virtualMachine as virtualMachine };
173
+ export { clusterEntity$1 as clusterEntity, connection$1 as connection, proxmox_existingImage as existingImage, proxmox_image as image, proxmox_imageEntity as imageEntity, proxmox_virtualMachine as virtualMachine };
174
+ }
175
+
176
+ declare const keyTypeSchema: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
177
+ declare const keyPairEntity: _highstate_contract.Entity<"ssh.key-pair", _sinclair_typebox.TObject<{
178
+ type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
179
+ privateKey: _sinclair_typebox.TString;
180
+ publicKey: _sinclair_typebox.TString;
181
+ }>>;
182
+ declare const publicKeyEntity: _highstate_contract.Entity<"ssh.public-key", _sinclair_typebox.TObject<{
183
+ publicKey: _sinclair_typebox.TString;
184
+ }>>;
185
+ declare const credentialsSchema: _sinclair_typebox.TObject<{
186
+ endpoint: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
187
+ user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
188
+ port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
189
+ password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
190
+ privateKey: _sinclair_typebox.TObject<{
191
+ type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
192
+ privateKey: _sinclair_typebox.TString;
193
+ publicKey: _sinclair_typebox.TString;
194
+ }>;
195
+ }>;
196
+ declare const keyPair: _highstate_contract.Unit<Record<string, never>, {
197
+ [x: string]: never;
198
+ }, {
199
+ keyPair: [_highstate_contract.Entity<"ssh.key-pair", _sinclair_typebox.TObject<{
200
+ type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
201
+ privateKey: _sinclair_typebox.TString;
202
+ publicKey: _sinclair_typebox.TString;
203
+ }>>, true, false];
204
+ }, Record<string, never>>;
205
+ declare const existingKeyPair: _highstate_contract.Unit<{
206
+ type: "rsa" | "ed25519";
207
+ }, {
208
+ [x: string]: never;
209
+ }, {
210
+ keyPair: [_highstate_contract.Entity<"ssh.key-pair", _sinclair_typebox.TObject<{
211
+ type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
212
+ privateKey: _sinclair_typebox.TString;
213
+ publicKey: _sinclair_typebox.TString;
214
+ }>>, true, false];
215
+ }, {
216
+ privateKey: string;
217
+ }>;
218
+ declare const existingPublicKey: _highstate_contract.Unit<{
219
+ type: "rsa" | "ed25519";
220
+ publicKey: string;
221
+ }, {
222
+ [x: string]: never;
223
+ }, {
224
+ publicKey: [_highstate_contract.Entity<"ssh.public-key", _sinclair_typebox.TObject<{
225
+ publicKey: _sinclair_typebox.TString;
226
+ }>>, true, false];
227
+ }, Record<string, never>>;
228
+
229
+ declare const ssh_credentialsSchema: typeof credentialsSchema;
230
+ declare const ssh_existingKeyPair: typeof existingKeyPair;
231
+ declare const ssh_existingPublicKey: typeof existingPublicKey;
232
+ declare const ssh_keyPair: typeof keyPair;
233
+ declare const ssh_keyPairEntity: typeof keyPairEntity;
234
+ declare const ssh_keyTypeSchema: typeof keyTypeSchema;
235
+ declare const ssh_publicKeyEntity: typeof publicKeyEntity;
236
+ declare namespace ssh {
237
+ export { ssh_credentialsSchema as credentialsSchema, ssh_existingKeyPair as existingKeyPair, ssh_existingPublicKey as existingPublicKey, ssh_keyPair as keyPair, ssh_keyPairEntity as keyPairEntity, ssh_keyTypeSchema as keyTypeSchema, ssh_publicKeyEntity as publicKeyEntity };
238
+ }
239
+
240
+ declare const clusterEntity: _highstate_contract.Entity<"k8s.cluster", _sinclair_typebox.TObject<{
241
+ kubeconfig: _sinclair_typebox.TString;
242
+ }>>;
243
+ declare const routeEntity: _highstate_contract.Entity<"k8s.route", _sinclair_typebox.TObject<{
244
+ someField: _sinclair_typebox.TString;
245
+ }>>;
246
+ declare const traefikGateway: _highstate_contract.Unit<Record<string, never>, {
247
+ k8sCluster: [_highstate_contract.Entity<"k8s.cluster", _sinclair_typebox.TObject<{
248
+ kubeconfig: _sinclair_typebox.TString;
249
+ }>>, true, false];
250
+ ingress: [_highstate_contract.Entity<"k8s.route", _sinclair_typebox.TObject<{
251
+ someField: _sinclair_typebox.TString;
252
+ }>>, true, false];
253
+ }, {
254
+ gateway: [_highstate_contract.Entity<"common.gateway", _sinclair_typebox.TObject<{
255
+ endpoint: _sinclair_typebox.TString;
256
+ }>>, true, false];
257
+ }, Record<string, never>>;
258
+ declare const certManager: _highstate_contract.Unit<Record<string, never>, {
259
+ k8sCluster: [_highstate_contract.Entity<"k8s.cluster", _sinclair_typebox.TObject<{
260
+ kubeconfig: _sinclair_typebox.TString;
261
+ }>>, true, false];
262
+ dnsProvider: [_highstate_contract.Entity<"common.dns-provider", _sinclair_typebox.TObject<{
263
+ endpoint: _sinclair_typebox.TString;
264
+ }>>, true, false];
265
+ }, {
266
+ tlsIssuer: [_highstate_contract.Entity<"common.tls-issuer", _sinclair_typebox.TObject<{
267
+ endpoint: _sinclair_typebox.TString;
268
+ }>>, true, false];
269
+ }, Record<string, never>>;
270
+ declare const coredns: _highstate_contract.Unit<Record<string, never>, {
271
+ k8sCluster: [_highstate_contract.Entity<"k8s.cluster", _sinclair_typebox.TObject<{
272
+ kubeconfig: _sinclair_typebox.TString;
273
+ }>>, true, false];
274
+ }, {
275
+ dnsProvider: [_highstate_contract.Entity<"common.dns-provider", _sinclair_typebox.TObject<{
276
+ endpoint: _sinclair_typebox.TString;
277
+ }>>, true, false];
278
+ }, Record<string, never>>;
279
+
280
+ declare const k8s_certManager: typeof certManager;
281
+ declare const k8s_clusterEntity: typeof clusterEntity;
282
+ declare const k8s_coredns: typeof coredns;
283
+ declare const k8s_routeEntity: typeof routeEntity;
284
+ declare const k8s_traefikGateway: typeof traefikGateway;
285
+ declare namespace k8s {
286
+ export { k8s_certManager as certManager, k8s_clusterEntity as clusterEntity, k8s_coredns as coredns, k8s_routeEntity as routeEntity, k8s_traefikGateway as traefikGateway };
287
+ }
288
+
289
+ declare const cluster: _highstate_contract.Unit<{
290
+ scheduleOnMasters?: boolean | undefined;
291
+ }, {
292
+ masters: [_highstate_contract.Entity<"common.server", _sinclair_typebox.TObject<{
293
+ endpoint: _sinclair_typebox.TString;
294
+ sshCredentials: _sinclair_typebox.TObject<{
295
+ endpoint: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
296
+ user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
297
+ port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
298
+ password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
299
+ privateKey: _sinclair_typebox.TObject<{
300
+ type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
301
+ privateKey: _sinclair_typebox.TString;
302
+ publicKey: _sinclair_typebox.TString;
303
+ }>;
304
+ }>;
305
+ }>>, true, true];
306
+ workers: [_highstate_contract.Entity<"common.server", _sinclair_typebox.TObject<{
307
+ endpoint: _sinclair_typebox.TString;
308
+ sshCredentials: _sinclair_typebox.TObject<{
309
+ endpoint: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
310
+ user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
311
+ port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
312
+ password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
313
+ privateKey: _sinclair_typebox.TObject<{
314
+ type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
315
+ privateKey: _sinclair_typebox.TString;
316
+ publicKey: _sinclair_typebox.TString;
317
+ }>;
318
+ }>;
319
+ }>>, false, true];
320
+ }, {
321
+ k8sCluster: [_highstate_contract.Entity<"k8s.cluster", _sinclair_typebox.TObject<{
322
+ kubeconfig: _sinclair_typebox.TString;
323
+ }>>, true, false];
324
+ egress: [_highstate_contract.Entity<"k8s.route", _sinclair_typebox.TObject<{
325
+ someField: _sinclair_typebox.TString;
326
+ }>>, true, false];
327
+ }, Record<string, never>>;
328
+
329
+ declare const talos_cluster: typeof cluster;
330
+ declare namespace talos {
331
+ export { talos_cluster as cluster };
332
+ }
333
+
334
+ declare const backendSchema: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"wireguard">, _sinclair_typebox.TLiteral<"amneziawg">]>;
335
+ declare const networkEntity: _highstate_contract.Entity<"wireguard.network", _sinclair_typebox.TObject<{
336
+ backend: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"wireguard">, _sinclair_typebox.TLiteral<"amneziawg">]>>;
337
+ preSharedKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
338
+ }>>;
339
+ declare const identityEntity: _highstate_contract.Entity<"wireguard.identity", _sinclair_typebox.TObject<{
340
+ network: _sinclair_typebox.TString;
341
+ address: _sinclair_typebox.TString;
342
+ privateKey: _sinclair_typebox.TString;
343
+ }>>;
344
+ declare const peerEntity: _highstate_contract.Entity<"wireguard.peer", _sinclair_typebox.TObject<{
345
+ network: _sinclair_typebox.TString;
346
+ address: _sinclair_typebox.TString;
347
+ publicKey: _sinclair_typebox.TString;
348
+ endpoint: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
349
+ }>>;
350
+ declare const k8sNodeEntity: _highstate_contract.Entity<"wireguard.node", _sinclair_typebox.TObject<{
351
+ network: _sinclair_typebox.TString;
352
+ address: _sinclair_typebox.TString;
353
+ allowedIps: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
354
+ endpoint: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
355
+ peers: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
356
+ }>>;
357
+ declare const network: _highstate_contract.Unit<{
358
+ backend?: "wireguard" | "amneziawg" | undefined;
359
+ preSharedKey?: string | undefined;
360
+ }, {
361
+ [x: string]: never;
362
+ }, {
363
+ network: [_highstate_contract.Entity<"wireguard.network", _sinclair_typebox.TObject<{
364
+ backend: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"wireguard">, _sinclair_typebox.TLiteral<"amneziawg">]>>;
365
+ preSharedKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
366
+ }>>, true, false];
367
+ }, Record<string, never>>;
368
+ declare const identity: _highstate_contract.Unit<{
369
+ endpoint?: string | undefined;
370
+ address: string;
371
+ }, {
372
+ network: [_highstate_contract.Entity<"wireguard.network", _sinclair_typebox.TObject<{
373
+ backend: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"wireguard">, _sinclair_typebox.TLiteral<"amneziawg">]>>;
374
+ preSharedKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
375
+ }>>, true, false];
376
+ }, {
377
+ identity: [_highstate_contract.Entity<"wireguard.identity", _sinclair_typebox.TObject<{
378
+ network: _sinclair_typebox.TString;
379
+ address: _sinclair_typebox.TString;
380
+ privateKey: _sinclair_typebox.TString;
381
+ }>>, true, false];
382
+ peer: [_highstate_contract.Entity<"wireguard.peer", _sinclair_typebox.TObject<{
383
+ network: _sinclair_typebox.TString;
384
+ address: _sinclair_typebox.TString;
385
+ publicKey: _sinclair_typebox.TString;
386
+ endpoint: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
387
+ }>>, true, false];
388
+ }, Record<string, never>>;
389
+ declare const node: _highstate_contract.Unit<{
390
+ allowedIps?: string[] | undefined;
391
+ listenPort?: number | undefined;
392
+ externalIp?: string | undefined;
393
+ serviceType?: "NodePort" | "LoadBalancer" | "ClusterIP" | undefined;
394
+ }, {
395
+ identity: [_highstate_contract.Entity<"wireguard.identity", _sinclair_typebox.TObject<{
396
+ network: _sinclair_typebox.TString;
397
+ address: _sinclair_typebox.TString;
398
+ privateKey: _sinclair_typebox.TString;
399
+ }>>, true, false];
400
+ k8sCluster: [_highstate_contract.Entity<"k8s.cluster", _sinclair_typebox.TObject<{
401
+ kubeconfig: _sinclair_typebox.TString;
402
+ }>>, false, false];
403
+ peers: [_highstate_contract.Entity<"wireguard.peer", _sinclair_typebox.TObject<{
404
+ network: _sinclair_typebox.TString;
405
+ address: _sinclair_typebox.TString;
406
+ publicKey: _sinclair_typebox.TString;
407
+ endpoint: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
408
+ }>>, false, true];
409
+ }, {
410
+ egress: [_highstate_contract.Entity<"k8s.route", _sinclair_typebox.TObject<{
411
+ someField: _sinclair_typebox.TString;
412
+ }>>, true, false];
413
+ }, Record<string, never>>;
414
+ declare const config: _highstate_contract.Unit<Record<string, never>, {
415
+ identity: [_highstate_contract.Entity<"wireguard.identity", _sinclair_typebox.TObject<{
416
+ network: _sinclair_typebox.TString;
417
+ address: _sinclair_typebox.TString;
418
+ privateKey: _sinclair_typebox.TString;
419
+ }>>, true, false];
420
+ peers: [_highstate_contract.Entity<"wireguard.peer", _sinclair_typebox.TObject<{
421
+ network: _sinclair_typebox.TString;
422
+ address: _sinclair_typebox.TString;
423
+ publicKey: _sinclair_typebox.TString;
424
+ endpoint: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
425
+ }>>, false, true];
426
+ }, {
427
+ [x: string]: never;
428
+ }, Record<string, never>>;
429
+
430
+ declare const wireguard_backendSchema: typeof backendSchema;
431
+ declare const wireguard_config: typeof config;
432
+ declare const wireguard_identity: typeof identity;
433
+ declare const wireguard_identityEntity: typeof identityEntity;
434
+ declare const wireguard_k8sNodeEntity: typeof k8sNodeEntity;
435
+ declare const wireguard_network: typeof network;
436
+ declare const wireguard_networkEntity: typeof networkEntity;
437
+ declare const wireguard_node: typeof node;
438
+ declare const wireguard_peerEntity: typeof peerEntity;
439
+ declare namespace wireguard {
440
+ export { wireguard_backendSchema as backendSchema, wireguard_config as config, wireguard_identity as identity, wireguard_identityEntity as identityEntity, wireguard_k8sNodeEntity as k8sNodeEntity, wireguard_network as network, wireguard_networkEntity as networkEntity, wireguard_node as node, wireguard_peerEntity as peerEntity };
441
+ }
442
+
443
+ declare const mariadbEntity: _highstate_contract.Entity<"mariadb", _sinclair_typebox.TObject<{
444
+ rootPassword: _sinclair_typebox.TString;
445
+ databases: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
446
+ }>>;
447
+ declare const postgresqlEntity: _highstate_contract.Entity<"postgresql", _sinclair_typebox.TObject<{
448
+ rootPassword: _sinclair_typebox.TString;
449
+ databases: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
450
+ }>>;
451
+ declare const mariadb: _highstate_contract.Unit<{
452
+ rootPassword: string;
453
+ databases: string[];
454
+ }, {
455
+ k8sCluster: [_highstate_contract.Entity<"k8s.cluster", _sinclair_typebox.TObject<{
456
+ kubeconfig: _sinclair_typebox.TString;
457
+ }>>, true, false];
458
+ }, {
459
+ mariadb: [_highstate_contract.Entity<"mariadb", _sinclair_typebox.TObject<{
460
+ rootPassword: _sinclair_typebox.TString;
461
+ databases: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
462
+ }>>, true, false];
463
+ }, Record<string, never>>;
464
+ declare const postgresql: _highstate_contract.Unit<{
465
+ rootPassword: string;
466
+ databases: string[];
467
+ }, {
468
+ k8sCluster: [_highstate_contract.Entity<"k8s.cluster", _sinclair_typebox.TObject<{
469
+ kubeconfig: _sinclair_typebox.TString;
470
+ }>>, true, false];
471
+ }, {
472
+ postgresql: [_highstate_contract.Entity<"postgresql", _sinclair_typebox.TObject<{
473
+ rootPassword: _sinclair_typebox.TString;
474
+ databases: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
475
+ }>>, true, false];
476
+ }, Record<string, never>>;
477
+ declare const vaultwarden: _highstate_contract.Unit<{
478
+ domain: string;
479
+ }, {
480
+ mariadb: [_highstate_contract.Entity<"mariadb", _sinclair_typebox.TObject<{
481
+ rootPassword: _sinclair_typebox.TString;
482
+ databases: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
483
+ }>>, true, false];
484
+ accessPoint: [_highstate_contract.Entity<"common.access-point", _sinclair_typebox.TObject<{
485
+ name: _sinclair_typebox.TString;
486
+ }>>, true, false];
487
+ }, {
488
+ [x: string]: never;
489
+ }, Record<string, never>>;
490
+ declare const gitea: _highstate_contract.Unit<{
491
+ domain: string;
492
+ }, {
493
+ mariadb: [_highstate_contract.Entity<"mariadb", _sinclair_typebox.TObject<{
494
+ rootPassword: _sinclair_typebox.TString;
495
+ databases: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
496
+ }>>, true, false];
497
+ accessPoint: [_highstate_contract.Entity<"common.access-point", _sinclair_typebox.TObject<{
498
+ name: _sinclair_typebox.TString;
499
+ }>>, true, false];
500
+ }, {
501
+ [x: string]: never;
502
+ }, Record<string, never>>;
503
+ declare const zitadel: _highstate_contract.Unit<{
504
+ domain: string;
505
+ }, {
506
+ postgresql: [_highstate_contract.Entity<"postgresql", _sinclair_typebox.TObject<{
507
+ rootPassword: _sinclair_typebox.TString;
508
+ databases: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
509
+ }>>, true, false];
510
+ accessPoint: [_highstate_contract.Entity<"common.access-point", _sinclair_typebox.TObject<{
511
+ name: _sinclair_typebox.TString;
512
+ }>>, true, false];
513
+ }, {
514
+ [x: string]: never;
515
+ }, Record<string, never>>;
516
+
517
+ declare const apps_gitea: typeof gitea;
518
+ declare const apps_mariadb: typeof mariadb;
519
+ declare const apps_mariadbEntity: typeof mariadbEntity;
520
+ declare const apps_postgresql: typeof postgresql;
521
+ declare const apps_postgresqlEntity: typeof postgresqlEntity;
522
+ declare const apps_vaultwarden: typeof vaultwarden;
523
+ declare const apps_zitadel: typeof zitadel;
524
+ declare namespace apps {
525
+ export { apps_gitea as gitea, apps_mariadb as mariadb, apps_mariadbEntity as mariadbEntity, apps_postgresql as postgresql, apps_postgresqlEntity as postgresqlEntity, apps_vaultwarden as vaultwarden, apps_zitadel as zitadel };
526
+ }
527
+
528
+ declare const connectionEntity: _highstate_contract.Entity<"cloudflare.connection", _sinclair_typebox.TObject<{
529
+ apiKey: _sinclair_typebox.TString;
530
+ }>>;
531
+ declare const connection: _highstate_contract.Unit<{
532
+ apiKey: string;
533
+ }, {
534
+ [x: string]: never;
535
+ }, {
536
+ connection: [_highstate_contract.Entity<"cloudflare.connection", _sinclair_typebox.TObject<{
537
+ apiKey: _sinclair_typebox.TString;
538
+ }>>, true, false];
539
+ }, Record<string, never>>;
540
+ declare const zone: _highstate_contract.Unit<{
541
+ domain: string;
542
+ zoneId: string;
543
+ }, {
544
+ connection: [_highstate_contract.Entity<"cloudflare.connection", _sinclair_typebox.TObject<{
545
+ apiKey: _sinclair_typebox.TString;
546
+ }>>, true, false];
547
+ }, {
548
+ dnsProvider: [_highstate_contract.Entity<"common.dns-provider", _sinclair_typebox.TObject<{
549
+ endpoint: _sinclair_typebox.TString;
550
+ }>>, true, false];
551
+ }, Record<string, never>>;
552
+
553
+ declare const cloudflare_connection: typeof connection;
554
+ declare const cloudflare_connectionEntity: typeof connectionEntity;
555
+ declare const cloudflare_zone: typeof zone;
556
+ declare namespace cloudflare {
557
+ export { cloudflare_connection as connection, cloudflare_connectionEntity as connectionEntity, cloudflare_zone as zone };
135
558
  }
136
559
 
137
- export { proxmox };
560
+ export { apps, cloudflare, common, k8s, proxmox, ssh, talos, wireguard };