@dxos/credentials 2.33.5-dev.ebc105f7 → 2.33.5
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/.rush/temp/package-deps_build.json +6 -6
- package/.rush/temp/{package-deps_build:test.json → package-deps_build_test.json} +6 -6
- package/.rush/temp/shrinkwrap-deps.json +53 -32
- package/credentials.build.log +99 -0
- package/dist/src/auth/auth-message.d.ts +1 -1
- package/dist/src/auth/auth-message.d.ts.map +1 -1
- package/dist/src/auth/auth-plugin.d.ts +1 -0
- package/dist/src/auth/auth-plugin.d.ts.map +1 -1
- package/dist/src/auth/authenticator.js.map +1 -1
- package/dist/src/auth/index.js +5 -1
- package/dist/src/auth/index.js.map +1 -1
- package/dist/src/greet/greeter-plugin.test.js +1 -1
- package/dist/src/greet/greeter-plugin.test.js.map +1 -1
- package/dist/src/greet/greeter.d.ts +4 -16
- package/dist/src/greet/greeter.d.ts.map +1 -1
- package/dist/src/greet/greeter.js +1 -1
- package/dist/src/greet/greeter.js.map +1 -1
- package/dist/src/greet/greeter.test.js +1 -2
- package/dist/src/greet/greeter.test.js.map +1 -1
- package/dist/src/greet/greeting-command-plugin.d.ts +1 -0
- package/dist/src/greet/greeting-command-plugin.d.ts.map +1 -1
- package/dist/src/greet/index.js +5 -1
- package/dist/src/greet/index.js.map +1 -1
- package/dist/src/identity/index.js +5 -1
- package/dist/src/identity/index.js.map +1 -1
- package/dist/src/index.js +5 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/keys/index.js +5 -1
- package/dist/src/keys/index.js.map +1 -1
- package/dist/src/keys/keyring-helpers.d.ts +1 -1
- package/dist/src/keys/keyring-helpers.d.ts.map +1 -1
- package/dist/src/party/index.js +5 -1
- package/dist/src/party/index.js.map +1 -1
- package/dist/src/party/party-credential.d.ts +4 -4
- package/dist/src/party/party-credential.d.ts.map +1 -1
- package/dist/src/party/party-state.d.ts +1 -0
- package/dist/src/party/party-state.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/auth.d.ts +5 -5
- package/dist/src/proto/gen/dxos/credentials/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/greet.d.ts +6 -6
- package/dist/src/proto/gen/dxos/credentials/greet.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/identity.d.ts +2 -2
- package/dist/src/proto/gen/dxos/credentials/identity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/party.d.ts +13 -13
- package/dist/src/proto/gen/dxos/credentials/party.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials.d.ts +3 -3
- package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.d.ts +3 -3
- package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/index.d.ts.map +1 -1
- package/dist/src/proto/gen/index.js +1 -1
- package/dist/src/proto/gen/index.js.map +1 -1
- package/dist/src/proto/index.js +5 -1
- package/dist/src/proto/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -13
- package/src/greet/greeter-plugin.test.ts +1 -1
- package/src/greet/greeter.test.js +1 -2
- package/src/greet/greeter.ts +3 -3
- package/src/proto/gen/dxos/credentials/auth.ts +5 -5
- package/src/proto/gen/dxos/credentials/greet.ts +6 -6
- package/src/proto/gen/dxos/credentials/identity.ts +2 -2
- package/src/proto/gen/dxos/credentials/party.ts +13 -13
- package/src/proto/gen/dxos/credentials.ts +3 -3
- package/src/proto/gen/dxos/halo/keys.ts +3 -3
- package/src/proto/gen/index.ts +1 -1
- package/tsconfig.json +6 -6
- package/.rush/temp/package-deps_prerelease.json +0 -61
|
@@ -13,21 +13,21 @@ export interface Auth {
|
|
|
13
13
|
/**
|
|
14
14
|
* The publicKey of the target Party for these credentials.
|
|
15
15
|
*/
|
|
16
|
-
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
16
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
17
17
|
/**
|
|
18
18
|
* The publicKey of the authenticating Device.
|
|
19
19
|
*/
|
|
20
|
-
deviceKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
20
|
+
deviceKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
21
21
|
/**
|
|
22
22
|
* The publicKey of the authenticating Identity.
|
|
23
23
|
*/
|
|
24
|
-
identityKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
24
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
25
25
|
/**
|
|
26
26
|
* The publicKey of the authenticating Identity.
|
|
27
27
|
*/
|
|
28
|
-
feedKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
28
|
+
feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
29
29
|
/**
|
|
30
30
|
* FeedAdmit message to the should be written to a control feed in case the `feedKey` is not admitted to the party.
|
|
31
31
|
*/
|
|
32
|
-
feedAdmit?: ReturnType<typeof substitutions["google.protobuf.Any"]["decode"]>;
|
|
32
|
+
feedAdmit?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
33
33
|
}
|
|
@@ -12,7 +12,7 @@ import * as google_protobuf from "../../google/protobuf";
|
|
|
12
12
|
export interface Command {
|
|
13
13
|
command?: Command.Type;
|
|
14
14
|
secret?: Uint8Array;
|
|
15
|
-
params?: ReturnType<typeof substitutions["google.protobuf.Any"]["decode"]>[];
|
|
15
|
+
params?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>[];
|
|
16
16
|
}
|
|
17
17
|
export namespace Command {
|
|
18
18
|
export enum Type {
|
|
@@ -24,18 +24,18 @@ export namespace Command {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
export interface BeginResponse {
|
|
27
|
-
info?: Partial<Record<string, ReturnType<typeof substitutions["google.protobuf.Any"]["decode"]>>>;
|
|
27
|
+
info?: Partial<Record<string, ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>>>;
|
|
28
28
|
}
|
|
29
29
|
export interface HandshakeResponse {
|
|
30
30
|
nonce?: Uint8Array;
|
|
31
|
-
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
31
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
32
32
|
}
|
|
33
33
|
export interface NotarizeResponse {
|
|
34
|
-
copies?: ReturnType<typeof substitutions["google.protobuf.Any"]["decode"]>[];
|
|
35
|
-
|
|
34
|
+
copies?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>[];
|
|
35
|
+
feedHints?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>[];
|
|
36
36
|
}
|
|
37
37
|
export interface KeyHint {
|
|
38
|
-
publicKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
38
|
+
publicKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
39
39
|
type?: dxos_halo_keys.KeyType;
|
|
40
40
|
}
|
|
41
41
|
export interface ClaimResponse {
|
|
@@ -7,10 +7,10 @@ import * as dxos_credentials_party from "./party";
|
|
|
7
7
|
import * as dxos_halo_keys from "../halo/keys";
|
|
8
8
|
import * as google_protobuf from "../../google/protobuf";
|
|
9
9
|
export interface IdentityInfo {
|
|
10
|
-
publicKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
10
|
+
publicKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
11
11
|
displayName?: string;
|
|
12
12
|
}
|
|
13
13
|
export interface DeviceInfo {
|
|
14
|
-
publicKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
14
|
+
publicKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
15
15
|
displayName?: string;
|
|
16
16
|
}
|
|
@@ -24,31 +24,31 @@ export namespace PartyCredential {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
export interface PartyGenesis {
|
|
27
|
-
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
28
|
-
feedKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
29
|
-
admitKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
27
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
28
|
+
feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
29
|
+
admitKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
30
30
|
admitKeyType?: dxos_halo_keys.KeyType;
|
|
31
31
|
}
|
|
32
32
|
export interface KeyAdmit {
|
|
33
|
-
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
34
|
-
admitKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
33
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
34
|
+
admitKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
35
35
|
admitKeyType?: dxos_halo_keys.KeyType;
|
|
36
36
|
}
|
|
37
37
|
export interface FeedAdmit {
|
|
38
|
-
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
39
|
-
feedKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
38
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
39
|
+
feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
40
40
|
}
|
|
41
41
|
export interface FeedGenesis {
|
|
42
|
-
feedKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
43
|
-
ownerKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
42
|
+
feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
43
|
+
ownerKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
44
44
|
}
|
|
45
45
|
export interface Envelope {
|
|
46
|
-
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
46
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
47
47
|
message?: dxos_credentials.Message;
|
|
48
48
|
}
|
|
49
49
|
export interface PartyInvitation {
|
|
50
50
|
id?: Uint8Array;
|
|
51
|
-
partyKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
52
|
-
issuerKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
53
|
-
inviteeKey?: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
51
|
+
partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
52
|
+
issuerKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
53
|
+
inviteeKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
54
54
|
}
|
|
@@ -7,7 +7,7 @@ import * as dxos_credentials_party from "./credentials/party";
|
|
|
7
7
|
import * as dxos_halo_keys from "./halo/keys";
|
|
8
8
|
import * as google_protobuf from "../google/protobuf";
|
|
9
9
|
export interface Message {
|
|
10
|
-
payload: ReturnType<typeof substitutions["google.protobuf.Any"]["decode"]>;
|
|
10
|
+
payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* A generic container message used whenever messages are signed (e.g. PartyCredential)
|
|
@@ -20,10 +20,10 @@ export namespace SignedMessage {
|
|
|
20
20
|
export interface Signed {
|
|
21
21
|
created: string;
|
|
22
22
|
nonce: Uint8Array;
|
|
23
|
-
payload: ReturnType<typeof substitutions["google.protobuf.Any"]["decode"]>;
|
|
23
|
+
payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
24
24
|
}
|
|
25
25
|
export interface Signature {
|
|
26
|
-
key: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
26
|
+
key: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
27
27
|
signature: Uint8Array;
|
|
28
28
|
keyChain?: dxos_halo_keys.KeyChain;
|
|
29
29
|
}
|
|
@@ -28,11 +28,11 @@ export interface KeyRecord {
|
|
|
28
28
|
/**
|
|
29
29
|
* - The public key as a Buffer (required).
|
|
30
30
|
*/
|
|
31
|
-
publicKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
31
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
32
32
|
/**
|
|
33
33
|
* - The secret key as a Buffer (this will never be visible outside the Keyring).
|
|
34
34
|
*/
|
|
35
|
-
secretKey?: ReturnType<typeof substitutions["dxos.halo.keys.PrivKey"]["decode"]>;
|
|
35
|
+
secretKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PrivKey"]["decode"]>;
|
|
36
36
|
/**
|
|
37
37
|
* - Is this key from a Greeting "hint"?
|
|
38
38
|
*/
|
|
@@ -59,7 +59,7 @@ export interface KeyRecordList {
|
|
|
59
59
|
keys?: KeyRecord[];
|
|
60
60
|
}
|
|
61
61
|
export interface KeyChain {
|
|
62
|
-
publicKey: ReturnType<typeof substitutions["dxos.halo.keys.PubKey"]["decode"]>;
|
|
62
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
63
63
|
message: dxos_credentials.SignedMessage;
|
|
64
64
|
parents?: KeyChain[];
|
|
65
65
|
}
|
package/src/proto/gen/index.ts
CHANGED
|
@@ -49,5 +49,5 @@ export interface TYPES {
|
|
|
49
49
|
}
|
|
50
50
|
export interface SERVICES {
|
|
51
51
|
}
|
|
52
|
-
export const schemaJson = JSON.parse("{\"nested\":{\"dxos\":{\"nested\":{\"credentials\":{\"nested\":{\"auth\":{\"nested\":{\"Auth\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":\"The publicKey of the target Party for these credentials.\"},\"deviceKey\":{\"type\":\"PubKey\",\"id\":2,\"comment\":\"The publicKey of the authenticating Device.\"},\"identityKey\":{\"type\":\"PubKey\",\"id\":3,\"comment\":\"The publicKey of the authenticating Identity.\"},\"feedKey\":{\"type\":\"PubKey\",\"id\":4,\"comment\":\"The publicKey of the authenticating Identity.\"},\"feedAdmit\":{\"type\":\"google.protobuf.Any\",\"id\":5,\"comment\":\"FeedAdmit message to the should be written to a control feed in case the `feedKey` is not admitted to the party.\"}},\"comment\":\"The payload for a SignedMessage sent during handshake for replication authentication.\"}}},\"greet\":{\"nested\":{\"BeginResponse\":{\"fields\":{\"info\":{\"keyType\":\"string\",\"type\":\"google.protobuf.Any\",\"id\":1,\"comment\":null}},\"comment\":null},\"ClaimResponse\":{\"fields\":{\"id\":{\"type\":\"bytes\",\"id\":1,\"comment\":null},\"rendezvousKey\":{\"type\":\"bytes\",\"id\":2,\"comment\":null}},\"comment\":null},\"Command\":{\"fields\":{\"command\":{\"type\":\"Type\",\"id\":1,\"comment\":null},\"secret\":{\"type\":\"bytes\",\"id\":2,\"comment\":null},\"params\":{\"rule\":\"repeated\",\"type\":\"google.protobuf.Any\",\"id\":10,\"comment\":null}},\"nested\":{\"Type\":{\"values\":{\"BEGIN\":0,\"HANDSHAKE\":1,\"NOTARIZE\":2,\"FINISH\":3,\"CLAIM\":10},\"comment\":null,\"comments\":{\"BEGIN\":null,\"HANDSHAKE\":null,\"NOTARIZE\":null,\"FINISH\":null,\"CLAIM\":null}}},\"comment\":\"A Greeter command.\"},\"HandshakeResponse\":{\"fields\":{\"nonce\":{\"type\":\"bytes\",\"id\":1,\"comment\":null},\"partyKey\":{\"type\":\"PubKey\",\"id\":2,\"comment\":null}},\"comment\":null},\"KeyHint\":{\"fields\":{\"publicKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"type\":{\"type\":\"KeyType\",\"id\":2,\"comment\":null}},\"comment\":null},\"NotarizeResponse\":{\"fields\":{\"copies\":{\"rule\":\"repeated\",\"type\":\"google.protobuf.Any\",\"id\":1,\"comment\":null},\"
|
|
52
|
+
export const schemaJson = JSON.parse("{\"nested\":{\"dxos\":{\"nested\":{\"credentials\":{\"nested\":{\"auth\":{\"nested\":{\"Auth\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":\"The publicKey of the target Party for these credentials.\"},\"deviceKey\":{\"type\":\"PubKey\",\"id\":2,\"comment\":\"The publicKey of the authenticating Device.\"},\"identityKey\":{\"type\":\"PubKey\",\"id\":3,\"comment\":\"The publicKey of the authenticating Identity.\"},\"feedKey\":{\"type\":\"PubKey\",\"id\":4,\"comment\":\"The publicKey of the authenticating Identity.\"},\"feedAdmit\":{\"type\":\"google.protobuf.Any\",\"id\":5,\"comment\":\"FeedAdmit message to the should be written to a control feed in case the `feedKey` is not admitted to the party.\"}},\"comment\":\"The payload for a SignedMessage sent during handshake for replication authentication.\"}}},\"greet\":{\"nested\":{\"BeginResponse\":{\"fields\":{\"info\":{\"keyType\":\"string\",\"type\":\"google.protobuf.Any\",\"id\":1,\"comment\":null}},\"comment\":null},\"ClaimResponse\":{\"fields\":{\"id\":{\"type\":\"bytes\",\"id\":1,\"comment\":null},\"rendezvousKey\":{\"type\":\"bytes\",\"id\":2,\"comment\":null}},\"comment\":null},\"Command\":{\"fields\":{\"command\":{\"type\":\"Type\",\"id\":1,\"comment\":null},\"secret\":{\"type\":\"bytes\",\"id\":2,\"comment\":null},\"params\":{\"rule\":\"repeated\",\"type\":\"google.protobuf.Any\",\"id\":10,\"comment\":null}},\"nested\":{\"Type\":{\"values\":{\"BEGIN\":0,\"HANDSHAKE\":1,\"NOTARIZE\":2,\"FINISH\":3,\"CLAIM\":10},\"comment\":null,\"comments\":{\"BEGIN\":null,\"HANDSHAKE\":null,\"NOTARIZE\":null,\"FINISH\":null,\"CLAIM\":null}}},\"comment\":\"A Greeter command.\"},\"HandshakeResponse\":{\"fields\":{\"nonce\":{\"type\":\"bytes\",\"id\":1,\"comment\":null},\"partyKey\":{\"type\":\"PubKey\",\"id\":2,\"comment\":null}},\"comment\":null},\"KeyHint\":{\"fields\":{\"publicKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"type\":{\"type\":\"KeyType\",\"id\":2,\"comment\":null}},\"comment\":null},\"NotarizeResponse\":{\"fields\":{\"copies\":{\"rule\":\"repeated\",\"type\":\"google.protobuf.Any\",\"id\":1,\"comment\":null},\"feedHints\":{\"rule\":\"repeated\",\"type\":\"PubKey\",\"id\":2,\"comment\":null}},\"comment\":null}}},\"identity\":{\"nested\":{\"DeviceInfo\":{\"fields\":{\"publicKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"displayName\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"IdentityInfo\":{\"fields\":{\"publicKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"displayName\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}}},\"Message\":{\"fields\":{\"payload\":{\"rule\":\"required\",\"type\":\"google.protobuf.Any\",\"id\":1,\"comment\":null}},\"comment\":null},\"party\":{\"nested\":{\"Envelope\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"message\":{\"type\":\"Message\",\"id\":2,\"comment\":null}},\"comment\":null},\"FeedAdmit\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"feedKey\":{\"type\":\"PubKey\",\"id\":2,\"comment\":null}},\"comment\":null},\"FeedGenesis\":{\"fields\":{\"feedKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"ownerKey\":{\"type\":\"PubKey\",\"id\":2,\"comment\":null}},\"comment\":null},\"KeyAdmit\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"admitKey\":{\"type\":\"PubKey\",\"id\":2,\"comment\":null},\"admitKeyType\":{\"type\":\"KeyType\",\"id\":3,\"comment\":null}},\"comment\":null},\"PartyCredential\":{\"oneofs\":{\"contents\":{\"oneof\":[\"envelope\",\"partyGenesis\",\"keyAdmit\",\"feedAdmit\",\"feedGenesis\"],\"comment\":null}},\"fields\":{\"type\":{\"type\":\"Type\",\"id\":1,\"comment\":null},\"envelope\":{\"type\":\"Envelope\",\"id\":10,\"comment\":null},\"partyGenesis\":{\"type\":\"PartyGenesis\",\"id\":11,\"comment\":null},\"keyAdmit\":{\"type\":\"KeyAdmit\",\"id\":12,\"comment\":null},\"feedAdmit\":{\"type\":\"FeedAdmit\",\"id\":13,\"comment\":null},\"feedGenesis\":{\"type\":\"FeedGenesis\",\"id\":14,\"comment\":null}},\"nested\":{\"Type\":{\"values\":{\"ENVELOPE\":0,\"PARTY_GENESIS\":1,\"FEED_GENESIS\":2,\"KEY_ADMIT\":3,\"FEED_ADMIT\":4},\"comment\":null,\"comments\":{\"ENVELOPE\":null,\"PARTY_GENESIS\":null,\"FEED_GENESIS\":null,\"KEY_ADMIT\":null,\"FEED_ADMIT\":null}}},\"comment\":null},\"PartyGenesis\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"feedKey\":{\"type\":\"PubKey\",\"id\":2,\"comment\":null},\"admitKey\":{\"type\":\"PubKey\",\"id\":3,\"comment\":null},\"admitKeyType\":{\"type\":\"KeyType\",\"id\":4,\"comment\":null}},\"comment\":null},\"PartyInvitation\":{\"fields\":{\"id\":{\"type\":\"bytes\",\"id\":1,\"comment\":null},\"partyKey\":{\"type\":\"PubKey\",\"id\":2,\"comment\":null},\"issuerKey\":{\"type\":\"PubKey\",\"id\":3,\"comment\":null},\"inviteeKey\":{\"type\":\"PubKey\",\"id\":4,\"comment\":null}},\"comment\":null}}},\"SignedMessage\":{\"fields\":{\"signed\":{\"rule\":\"required\",\"type\":\"Signed\",\"id\":1,\"comment\":null},\"signatures\":{\"rule\":\"repeated\",\"type\":\"Signature\",\"id\":2,\"comment\":null}},\"nested\":{\"Signature\":{\"fields\":{\"key\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"signature\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":2,\"comment\":null},\"keyChain\":{\"type\":\"KeyChain\",\"id\":3,\"comment\":null}},\"comment\":null},\"Signed\":{\"fields\":{\"created\":{\"rule\":\"required\",\"type\":\"string\",\"id\":1,\"comment\":null},\"nonce\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":2,\"comment\":null},\"payload\":{\"rule\":\"required\",\"type\":\"google.protobuf.Any\",\"id\":10,\"comment\":null}},\"comment\":null}},\"comment\":\"A generic container message used whenever messages are signed (e.g. PartyCredential)\"}}},\"halo\":{\"nested\":{\"keys\":{\"nested\":{\"KeyChain\":{\"fields\":{\"publicKey\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"message\":{\"rule\":\"required\",\"type\":\"SignedMessage\",\"id\":2,\"comment\":null},\"parents\":{\"rule\":\"repeated\",\"type\":\"KeyChain\",\"id\":3,\"comment\":null}},\"comment\":null},\"KeyRecord\":{\"fields\":{\"type\":{\"rule\":\"required\",\"type\":\"KeyType\",\"id\":1,\"comment\":\"- The `KeyType` type of the key. This is often unknown for keys from other sources.\"},\"publicKey\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":2,\"comment\":\"- The public key as a Buffer (required).\"},\"secretKey\":{\"type\":\"PrivKey\",\"id\":3,\"comment\":\"- The secret key as a Buffer (this will never be visible outside the Keyring).\"},\"hint\":{\"type\":\"bool\",\"id\":4,\"comment\":\"- Is this key from a Greeting \\\"hint\\\"?\"},\"own\":{\"type\":\"bool\",\"id\":5,\"comment\":\"- Is this our key? Usually true if `secretKey` is present,\\nmay be false for \\\"inception keys\\\" such as the Party key.\"},\"trusted\":{\"type\":\"bool\",\"id\":6,\"comment\":\"- Is this key to be trusted?\"},\"added\":{\"type\":\"string\",\"id\":7,\"comment\":\"- An RFC-3339 date/time string for when the key was added to the Keyring.\"},\"created\":{\"type\":\"string\",\"id\":8,\"comment\":\"- An RFC-3339 date/time string for when the key was created.\"}},\"comment\":null},\"KeyRecordList\":{\"fields\":{\"keys\":{\"rule\":\"repeated\",\"type\":\"KeyRecord\",\"id\":1,\"comment\":null}},\"comment\":null},\"KeyType\":{\"values\":{\"UNKNOWN\":0,\"IDENTITY\":1,\"DEVICE\":2,\"PARTY\":3,\"FEED\":4,\"DXNS_ADDRESS\":5},\"comment\":null,\"comments\":{\"UNKNOWN\":null,\"IDENTITY\":null,\"DEVICE\":null,\"PARTY\":null,\"FEED\":null,\"DXNS_ADDRESS\":null}},\"PrivKey\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":null},\"PubKey\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":null}}}}}}},\"google\":{\"nested\":{\"protobuf\":{\"nested\":{\"Any\":{\"fields\":{\"type_url\":{\"type\":\"string\",\"id\":1},\"value\":{\"type\":\"bytes\",\"id\":2}},\"comment\":null},\"BoolValue\":{\"fields\":{\"value\":{\"type\":\"bool\",\"id\":1}},\"comment\":null},\"BytesValue\":{\"fields\":{\"value\":{\"type\":\"bytes\",\"id\":1}},\"comment\":null},\"DoubleValue\":{\"fields\":{\"value\":{\"type\":\"double\",\"id\":1}},\"comment\":null},\"FloatValue\":{\"fields\":{\"value\":{\"type\":\"float\",\"id\":1}},\"comment\":null},\"Int32Value\":{\"fields\":{\"value\":{\"type\":\"int32\",\"id\":1}},\"comment\":null},\"Int64Value\":{\"fields\":{\"value\":{\"type\":\"int64\",\"id\":1}},\"comment\":null},\"StringValue\":{\"fields\":{\"value\":{\"type\":\"string\",\"id\":1}},\"comment\":null},\"UInt32Value\":{\"fields\":{\"value\":{\"type\":\"uint32\",\"id\":1}},\"comment\":null},\"UInt64Value\":{\"fields\":{\"value\":{\"type\":\"uint64\",\"id\":1}},\"comment\":null}}}}}}}");
|
|
53
53
|
export const schema = Schema.fromJson<TYPES, SERVICES>(schemaJson, substitutions);
|
package/tsconfig.json
CHANGED
|
@@ -20,22 +20,22 @@
|
|
|
20
20
|
"path": "../../common/debug"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
"path": "../../
|
|
23
|
+
"path": "../../common/protocols"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
"path": "../../
|
|
26
|
+
"path": "../../common/random-access-multi-storage"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
"path": "../../common/
|
|
29
|
+
"path": "../../common/util"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
"path": "../../
|
|
32
|
+
"path": "../../echo/feed-store"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"path": "../../mesh/protocol
|
|
35
|
+
"path": "../../mesh/protocol"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
"path": "../../
|
|
38
|
+
"path": "../../mesh/protocol-plugin-replicator"
|
|
39
39
|
}
|
|
40
40
|
],
|
|
41
41
|
"types": [
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files": {
|
|
3
|
-
"packages/halo/credentials/.rush/temp/shrinkwrap-deps.json": "75f969bff7a891bb3a4c1dc4ad6d7d022179cf76",
|
|
4
|
-
"packages/halo/credentials/.eslintrc.js": "8c186197e908188715a6c9635941ec4b7896c787",
|
|
5
|
-
"packages/halo/credentials/README.md": "b6859b1e271596aa5934d07b6d4320721c43b035",
|
|
6
|
-
"packages/halo/credentials/package.json": "1bf14bd19adfa7996d74288135558dcb0ea6800a",
|
|
7
|
-
"packages/halo/credentials/src/auth/auth-message.ts": "6982758086188598c13c0836fb5e984444154c25",
|
|
8
|
-
"packages/halo/credentials/src/auth/auth-plugin.test.ts": "618b070098d723978929af719d1f0acd510a2992",
|
|
9
|
-
"packages/halo/credentials/src/auth/auth-plugin.ts": "068f54e08e213def743485a78b3c43ca2c30014d",
|
|
10
|
-
"packages/halo/credentials/src/auth/auth.test.ts": "b81d329f60d89b8de959f9d12d793f25f448aa49",
|
|
11
|
-
"packages/halo/credentials/src/auth/authenticator.ts": "f48695695f5213a1fb29975223e3a731c6481984",
|
|
12
|
-
"packages/halo/credentials/src/auth/error-codes.ts": "6949e70399430cc44a5cc7d4a24ee7cace599ffe",
|
|
13
|
-
"packages/halo/credentials/src/auth/index.ts": "c4a66cb0a4bb9f8f1e0abf6d429296617b11633b",
|
|
14
|
-
"packages/halo/credentials/src/greet/constants.ts": "195d88c13f436c94d499bd8ee3d62481e35e502f",
|
|
15
|
-
"packages/halo/credentials/src/greet/error-codes.ts": "93f2d4ddbf4f93507855529d7a5091ed4de8c90e",
|
|
16
|
-
"packages/halo/credentials/src/greet/greeter-plugin.test.ts": "551c54251e183dd21a06a92cadc2d967967358ba",
|
|
17
|
-
"packages/halo/credentials/src/greet/greeter.test.js": "b05b1aacab81a89b32c4ed707cb88a5975e8e7bc",
|
|
18
|
-
"packages/halo/credentials/src/greet/greeter.ts": "6d34cfa0c306c60d6cd649b56291e4959ceae548",
|
|
19
|
-
"packages/halo/credentials/src/greet/greeting-command-plugin.ts": "f17d85ef6f8aa72edf65860016f5dab41e908672",
|
|
20
|
-
"packages/halo/credentials/src/greet/greeting-message.ts": "52171e11b3237dd69b46daf260672c758240cf73",
|
|
21
|
-
"packages/halo/credentials/src/greet/index.ts": "27c8d16082512564760dd56a7e0a33bbb47143e7",
|
|
22
|
-
"packages/halo/credentials/src/greet/invitation.ts": "dab95c70482bba53c6292068bfd73306efcf0e64",
|
|
23
|
-
"packages/halo/credentials/src/greet/party-invitation-claim-handler.ts": "769e163563f984540d66a122507db70b2623775f",
|
|
24
|
-
"packages/halo/credentials/src/greet/passcode.ts": "8e1dbcc8bf471b9e71a4928b32cd8f78262d748a",
|
|
25
|
-
"packages/halo/credentials/src/identity/events.ts": "e246b3c0d36466d5bcd376f715debdcd625546c5",
|
|
26
|
-
"packages/halo/credentials/src/identity/identity-message-processor.ts": "f58982ac748ac98198f0c33079b10be2628e385c",
|
|
27
|
-
"packages/halo/credentials/src/identity/identity-message.ts": "6032c53a4e2386bd3b630cf72821e782d18e5bb4",
|
|
28
|
-
"packages/halo/credentials/src/identity/index.ts": "7d09e9eb35b68b83b45e74a0b0c94b6e8f2e4165",
|
|
29
|
-
"packages/halo/credentials/src/identity/seedphrase.test.ts": "2b8de32fc041890a73fbaeb6c5a1394113f84e03",
|
|
30
|
-
"packages/halo/credentials/src/index.ts": "86006625e8875fb5ae7fcc2e77954bc9c6b07d73",
|
|
31
|
-
"packages/halo/credentials/src/keys/README.md": "593ff3672447c5561d891f9e5cd6f8b1218d9cdd",
|
|
32
|
-
"packages/halo/credentials/src/keys/filter.test.js": "882ae21a88b4065471616ac08cb10ec537a38bde",
|
|
33
|
-
"packages/halo/credentials/src/keys/filter.ts": "2dc32d666b49b6562929786c3c9f9a52171e6fc3",
|
|
34
|
-
"packages/halo/credentials/src/keys/index.ts": "0319187cd75685b856deb44d887e9af389e91fa9",
|
|
35
|
-
"packages/halo/credentials/src/keys/keyring-helpers.ts": "9d4a05493259293817424b55513357fe060d2b8f",
|
|
36
|
-
"packages/halo/credentials/src/keys/keyring.test.ts": "0d9a95a2798ff01073b0a286bd858ca9db744ae8",
|
|
37
|
-
"packages/halo/credentials/src/keys/keyring.ts": "76f8372daef18144542e159e37ea1aeebe294651",
|
|
38
|
-
"packages/halo/credentials/src/keys/keystore.test.js": "c810fd1c1db191122dafbbf4f7d0acce12cb8065",
|
|
39
|
-
"packages/halo/credentials/src/keys/keystore.ts": "b613a6a44bdfe208bde2fcf84d1ab3e19625570c",
|
|
40
|
-
"packages/halo/credentials/src/keys/keytype.ts": "499be4ecd6b66fac896d0b3e615af027cad19f65",
|
|
41
|
-
"packages/halo/credentials/src/keys/signer.ts": "8cf6f82b73cc53ea7adf679dccdd7e4ec207e031",
|
|
42
|
-
"packages/halo/credentials/src/keys/simple-metrics.ts": "819fe8021c5797a05140bcb2733cc7028d1363fd",
|
|
43
|
-
"packages/halo/credentials/src/party/events.ts": "a99049a589ec5fd5190cd5770d161d21a4bc80d5",
|
|
44
|
-
"packages/halo/credentials/src/party/index.ts": "ccb02b656cf612c45e7dedba4f396fd42e78efa9",
|
|
45
|
-
"packages/halo/credentials/src/party/party-credential.ts": "f995aba75a46ebb2305f71cc4cc2aa35c8ea411b",
|
|
46
|
-
"packages/halo/credentials/src/party/party-invitation-manager.ts": "2dc4972dc2674f0e62dab75c0186eff955c03244",
|
|
47
|
-
"packages/halo/credentials/src/party/party-invitations.test.js": "c936e97e6798f32fe330241b6c137abe49494f1f",
|
|
48
|
-
"packages/halo/credentials/src/party/party-state.test.js": "66e283e1e3b53585605659f0334cf53001061eda",
|
|
49
|
-
"packages/halo/credentials/src/party/party-state.ts": "29468929dd595a5a86ae2c20708f3957f817ec5e",
|
|
50
|
-
"packages/halo/credentials/src/proto/any.ts": "105c5acfd71c4295eb43344199897e100e3e94cd",
|
|
51
|
-
"packages/halo/credentials/src/proto/codec.ts": "8abef0896530ddfe71aa382c1906528b3bc00926",
|
|
52
|
-
"packages/halo/credentials/src/proto/datetime.ts": "6b97cac40b80a7a5e54f4f6d6a2a396fa684af9b",
|
|
53
|
-
"packages/halo/credentials/src/proto/defs/import.proto": "ff3982e0053697ef1f2a0edd273b813e25e92a6c",
|
|
54
|
-
"packages/halo/credentials/src/proto/index.ts": "d7b2823fd389cbce0684ad7f964e1db02f4df05d",
|
|
55
|
-
"packages/halo/credentials/src/proto/substitutions.ts": "49d9803118d88734b3610d1633b72bce5d28f9f4",
|
|
56
|
-
"packages/halo/credentials/src/shims.d.ts": "8c9f4db12f5c348bdb0651be9592edcc488e1cfc",
|
|
57
|
-
"packages/halo/credentials/src/typedefs.ts": "dc2f10117831f97ce8ebd854f246b40bb48d273c",
|
|
58
|
-
"packages/halo/credentials/tsconfig.json": "52efb211a502f48f2b0c63d3ab92a47814b8e591"
|
|
59
|
-
},
|
|
60
|
-
"arguments": ""
|
|
61
|
-
}
|