@highstate/library 0.5.5 → 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 +14 -36
- package/dist/index.mjs +7 -1
- package/package.json +3 -3
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
|
-
|
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<{
|
@@ -33,7 +29,13 @@ declare const existingServer: _highstate_contract.Unit<{
|
|
33
29
|
sshUser?: string | undefined;
|
34
30
|
sshPort?: number | undefined;
|
35
31
|
endpoint: string;
|
36
|
-
},
|
32
|
+
}, {
|
33
|
+
sshKeyPair: [_highstate_contract.Entity<"ssh.key-pair", _sinclair_typebox.TObject<{
|
34
|
+
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
|
35
|
+
privateKey: _sinclair_typebox.TString;
|
36
|
+
publicKey: _sinclair_typebox.TString;
|
37
|
+
}>>, false, false];
|
38
|
+
}, {
|
37
39
|
server: [_highstate_contract.Entity<"common.server", _sinclair_typebox.TObject<{
|
38
40
|
endpoint: _sinclair_typebox.TString;
|
39
41
|
hostname: _sinclair_typebox.TString;
|
@@ -42,11 +44,7 @@ declare const existingServer: _highstate_contract.Unit<{
|
|
42
44
|
user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
43
45
|
port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
44
46
|
password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
45
|
-
|
46
|
-
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
|
47
|
-
privateKey: _sinclair_typebox.TString;
|
48
|
-
publicKey: _sinclair_typebox.TString;
|
49
|
-
}>>;
|
47
|
+
privateKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
50
48
|
}>>;
|
51
49
|
}>>, true, false];
|
52
50
|
}, {
|
@@ -172,11 +170,7 @@ declare const virtualMachine: _highstate_contract.Unit<{
|
|
172
170
|
user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
173
171
|
port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
174
172
|
password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
175
|
-
|
176
|
-
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
|
177
|
-
privateKey: _sinclair_typebox.TString;
|
178
|
-
publicKey: _sinclair_typebox.TString;
|
179
|
-
}>>;
|
173
|
+
privateKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
180
174
|
}>>;
|
181
175
|
}>>, true, false];
|
182
176
|
}, Record<string, never>>;
|
@@ -200,11 +194,7 @@ declare const credentialsSchema: _sinclair_typebox.TObject<{
|
|
200
194
|
user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
201
195
|
port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
202
196
|
password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
203
|
-
|
204
|
-
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
|
205
|
-
privateKey: _sinclair_typebox.TString;
|
206
|
-
publicKey: _sinclair_typebox.TString;
|
207
|
-
}>>;
|
197
|
+
privateKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
208
198
|
}>;
|
209
199
|
declare const keyPair: _highstate_contract.Unit<Record<string, never>, Record<string, never>, {
|
210
200
|
keyPair: [_highstate_contract.Entity<"ssh.key-pair", _sinclair_typebox.TObject<{
|
@@ -412,11 +402,7 @@ declare const cluster$1: _highstate_contract.Unit<{
|
|
412
402
|
user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
413
403
|
port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
414
404
|
password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
415
|
-
|
416
|
-
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
|
417
|
-
privateKey: _sinclair_typebox.TString;
|
418
|
-
publicKey: _sinclair_typebox.TString;
|
419
|
-
}>>;
|
405
|
+
privateKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
420
406
|
}>>;
|
421
407
|
}>>, true, true];
|
422
408
|
workers: [_highstate_contract.Entity<"common.server", _sinclair_typebox.TObject<{
|
@@ -427,11 +413,7 @@ declare const cluster$1: _highstate_contract.Unit<{
|
|
427
413
|
user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
428
414
|
port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
429
415
|
password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
430
|
-
|
431
|
-
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
|
432
|
-
privateKey: _sinclair_typebox.TString;
|
433
|
-
publicKey: _sinclair_typebox.TString;
|
434
|
-
}>>;
|
416
|
+
privateKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
435
417
|
}>>;
|
436
418
|
}>>, false, true];
|
437
419
|
}, {
|
@@ -1068,11 +1050,7 @@ declare const cluster: _highstate_contract.Unit<Record<string, never>, {
|
|
1068
1050
|
user: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
1069
1051
|
port: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
1070
1052
|
password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
1071
|
-
|
1072
|
-
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"rsa">, _sinclair_typebox.TLiteral<"ed25519">]>;
|
1073
|
-
privateKey: _sinclair_typebox.TString;
|
1074
|
-
publicKey: _sinclair_typebox.TString;
|
1075
|
-
}>>;
|
1053
|
+
privateKey: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
1076
1054
|
}>>;
|
1077
1055
|
}>>, true, false];
|
1078
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
|
-
|
25
|
+
privateKey: Type.Optional(Type.String())
|
26
26
|
});
|
27
27
|
const keyPair = defineUnit({
|
28
28
|
type: "ssh.key-pair",
|
@@ -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.
|
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.
|
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": "
|
31
|
+
"gitHead": "afe736f7e93b7fcfbae97e2d6e35b07175a8fc76"
|
32
32
|
}
|