@highstate/library 0.5.5 → 0.6.0

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
@@ -33,7 +33,13 @@ declare const existingServer: _highstate_contract.Unit<{
33
33
  sshUser?: string | undefined;
34
34
  sshPort?: number | undefined;
35
35
  endpoint: string;
36
- }, Record<string, never>, {
36
+ }, {
37
+ sshKeyPair: [_highstate_contract.Entity<"ssh.key-pair", _sinclair_typebox.TObject<{
38
+ type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
39
+ privateKey: _sinclair_typebox.TString;
40
+ publicKey: _sinclair_typebox.TString;
41
+ }>>, false, false];
42
+ }, {
37
43
  server: [_highstate_contract.Entity<"common.server", _sinclair_typebox.TObject<{
38
44
  endpoint: _sinclair_typebox.TString;
39
45
  hostname: _sinclair_typebox.TString;
package/dist/index.mjs CHANGED
@@ -110,6 +110,12 @@ const existingServer = defineUnit({
110
110
  sshPassword: Type.Optional(Type.String()),
111
111
  sshPrivateKey: Type.Optional(Type.String())
112
112
  },
113
+ inputs: {
114
+ sshKeyPair: {
115
+ entity: keyPairEntity,
116
+ required: false
117
+ }
118
+ },
113
119
  outputs: {
114
120
  server: serverEntity
115
121
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highstate/library",
3
- "version": "0.5.5",
3
+ "version": "0.6.0",
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.5.5",
23
+ "@highstate/contract": "^0.6.0",
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": "daed8a1121d6dc0af8ed92261962356dad2325aa"
31
+ "gitHead": "cf9b81699d833f7d795d1936f97f045709fc058b"
32
32
  }