@highstate/library 0.6.0 → 0.6.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/index.d.ts CHANGED
@@ -10,11 +10,7 @@ declare const serverEntity: _highstate_contract.Entity<"common.server", _sinclai
10
10
  user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
11
11
  port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
12
12
  password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
13
- keyPair: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
14
- type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
15
- privateKey: _sinclair_typebox.TString;
16
- publicKey: _sinclair_typebox.TString;
17
- }>>;
13
+ privateKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
18
14
  }>>;
19
15
  }>>;
20
16
  declare const interfaceEntity: _highstate_contract.Entity<"common.interface", _sinclair_typebox.TObject<{
@@ -48,11 +44,7 @@ declare const existingServer: _highstate_contract.Unit<{
48
44
  user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
49
45
  port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
50
46
  password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
51
- keyPair: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
52
- type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
53
- privateKey: _sinclair_typebox.TString;
54
- publicKey: _sinclair_typebox.TString;
55
- }>>;
47
+ privateKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
56
48
  }>>;
57
49
  }>>, true, false];
58
50
  }, {
@@ -178,11 +170,7 @@ declare const virtualMachine: _highstate_contract.Unit<{
178
170
  user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
179
171
  port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
180
172
  password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
181
- keyPair: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
182
- type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
183
- privateKey: _sinclair_typebox.TString;
184
- publicKey: _sinclair_typebox.TString;
185
- }>>;
173
+ privateKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
186
174
  }>>;
187
175
  }>>, true, false];
188
176
  }, Record<string, never>>;
@@ -206,11 +194,7 @@ declare const credentialsSchema: _sinclair_typebox.TObject<{
206
194
  user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
207
195
  port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
208
196
  password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
209
- keyPair: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
210
- type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
211
- privateKey: _sinclair_typebox.TString;
212
- publicKey: _sinclair_typebox.TString;
213
- }>>;
197
+ privateKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
214
198
  }>;
215
199
  declare const keyPair: _highstate_contract.Unit<Record<string, never>, Record<string, never>, {
216
200
  keyPair: [_highstate_contract.Entity<"ssh.key-pair", _sinclair_typebox.TObject<{
@@ -418,11 +402,7 @@ declare const cluster$1: _highstate_contract.Unit<{
418
402
  user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
419
403
  port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
420
404
  password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
421
- keyPair: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
422
- type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
423
- privateKey: _sinclair_typebox.TString;
424
- publicKey: _sinclair_typebox.TString;
425
- }>>;
405
+ privateKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
426
406
  }>>;
427
407
  }>>, true, true];
428
408
  workers: [_highstate_contract.Entity<"common.server", _sinclair_typebox.TObject<{
@@ -433,11 +413,7 @@ declare const cluster$1: _highstate_contract.Unit<{
433
413
  user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
434
414
  port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
435
415
  password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
436
- keyPair: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
437
- type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
438
- privateKey: _sinclair_typebox.TString;
439
- publicKey: _sinclair_typebox.TString;
440
- }>>;
416
+ privateKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
441
417
  }>>;
442
418
  }>>, false, true];
443
419
  }, {
@@ -1074,11 +1050,7 @@ declare const cluster: _highstate_contract.Unit<Record<string, never>, {
1074
1050
  user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1075
1051
  port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1076
1052
  password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1077
- keyPair: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1078
- type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
1079
- privateKey: _sinclair_typebox.TString;
1080
- publicKey: _sinclair_typebox.TString;
1081
- }>>;
1053
+ privateKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1082
1054
  }>>;
1083
1055
  }>>, true, false];
1084
1056
  }, {
package/dist/index.mjs CHANGED
@@ -22,7 +22,7 @@ const credentialsSchema = Type.Object({
22
22
  user: Type.Optional(Type.String()),
23
23
  port: Type.Optional(Type.Number()),
24
24
  password: Type.Optional(Type.String()),
25
- keyPair: Type.Optional(keyPairEntity.schema)
25
+ privateKey: Type.Optional(Type.String())
26
26
  });
27
27
  const keyPair = defineUnit({
28
28
  type: "ssh.key-pair",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highstate/library",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  "build": "pkgroll --tsconfig=tsconfig.build.json"
21
21
  },
22
22
  "dependencies": {
23
- "@highstate/contract": "^0.6.0",
23
+ "@highstate/contract": "^0.6.1",
24
24
  "@sinclair/typebox": "^0.34.11",
25
25
  "ip-cidr": "^4.0.2",
26
26
  "remeda": "^2.21.0"
@@ -28,5 +28,5 @@
28
28
  "devDependencies": {
29
29
  "pkgroll": "^2.5.1"
30
30
  },
31
- "gitHead": "cf9b81699d833f7d795d1936f97f045709fc058b"
31
+ "gitHead": "afe736f7e93b7fcfbae97e2d6e35b07175a8fc76"
32
32
  }