@dxos/credentials 2.33.9-dev.7c8c6a09 → 2.33.9-dev.9246a07b
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 +1 -1
- package/.rush/temp/package-deps_build_test.json +1 -1
- package/.rush/temp/shrinkwrap-deps.json +3 -6
- package/credentials.build.log +8 -8
- package/dist/src/proto/gen/dxos/credentials/auth.d.ts +12 -3
- package/dist/src/proto/gen/dxos/credentials/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/greet.d.ts +39 -8
- package/dist/src/proto/gen/dxos/credentials/greet.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/greet.js +4 -0
- package/dist/src/proto/gen/dxos/credentials/greet.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/identity.d.ts +12 -4
- package/dist/src/proto/gen/dxos/credentials/identity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/party.d.ts +50 -18
- package/dist/src/proto/gen/dxos/credentials/party.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/party.js +4 -0
- package/dist/src/proto/gen/dxos/credentials/party.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials.d.ts +39 -0
- package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.d.ts +44 -2
- package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.js +4 -0
- package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts +11 -11
- package/dist/src/proto/gen/google/protobuf.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/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/src/proto/gen/dxos/credentials/auth.ts +12 -3
- package/src/proto/gen/dxos/credentials/greet.ts +39 -8
- package/src/proto/gen/dxos/credentials/identity.ts +12 -4
- package/src/proto/gen/dxos/credentials/party.ts +50 -18
- package/src/proto/gen/dxos/credentials.ts +39 -0
- package/src/proto/gen/dxos/halo/keys.ts +44 -2
- package/src/proto/gen/google/protobuf.ts +11 -11
- package/src/proto/gen/index.ts +1 -1
|
@@ -8,26 +8,35 @@ import * as dxos_halo_keys from "../halo/keys";
|
|
|
8
8
|
import * as google_protobuf from "../../google/protobuf";
|
|
9
9
|
/**
|
|
10
10
|
* The payload for a SignedMessage sent during handshake for replication authentication.
|
|
11
|
+
*
|
|
12
|
+
* Defined in:
|
|
13
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/auth.proto}
|
|
11
14
|
*/
|
|
12
15
|
export interface Auth {
|
|
13
16
|
/**
|
|
14
17
|
* The publicKey of the target Party for these credentials.
|
|
15
18
|
*/
|
|
16
|
-
partyKey
|
|
19
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
17
20
|
/**
|
|
18
21
|
* The publicKey of the authenticating Device.
|
|
19
22
|
*/
|
|
20
|
-
deviceKey
|
|
23
|
+
deviceKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
21
24
|
/**
|
|
22
25
|
* The publicKey of the authenticating Identity.
|
|
23
26
|
*/
|
|
24
|
-
identityKey
|
|
27
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
25
28
|
/**
|
|
26
29
|
* The publicKey of the authenticating Identity.
|
|
30
|
+
*
|
|
31
|
+
* Options:
|
|
32
|
+
* - proto3_optional = true
|
|
27
33
|
*/
|
|
28
34
|
feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
29
35
|
/**
|
|
30
36
|
* FeedAdmit message to the should be written to a control feed in case the `feedKey` is not admitted to the party.
|
|
37
|
+
*
|
|
38
|
+
* Options:
|
|
39
|
+
* - proto3_optional = true
|
|
31
40
|
*/
|
|
32
41
|
feedAdmit?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
33
42
|
}
|
|
@@ -8,13 +8,24 @@ import * as dxos_halo_keys from "../halo/keys";
|
|
|
8
8
|
import * as google_protobuf from "../../google/protobuf";
|
|
9
9
|
/**
|
|
10
10
|
* A Greeter command.
|
|
11
|
+
*
|
|
12
|
+
* Defined in:
|
|
13
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
11
14
|
*/
|
|
12
15
|
export interface Command {
|
|
13
|
-
command
|
|
16
|
+
command: Command.Type;
|
|
17
|
+
/**
|
|
18
|
+
* Options:
|
|
19
|
+
* - proto3_optional = true
|
|
20
|
+
*/
|
|
14
21
|
secret?: Uint8Array;
|
|
15
22
|
params?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>[];
|
|
16
23
|
}
|
|
17
24
|
export namespace Command {
|
|
25
|
+
/**
|
|
26
|
+
* Defined in:
|
|
27
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
28
|
+
*/
|
|
18
29
|
export enum Type {
|
|
19
30
|
BEGIN = 0,
|
|
20
31
|
HANDSHAKE = 1,
|
|
@@ -23,22 +34,42 @@ export namespace Command {
|
|
|
23
34
|
CLAIM = 10
|
|
24
35
|
}
|
|
25
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Defined in:
|
|
39
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
40
|
+
*/
|
|
26
41
|
export interface BeginResponse {
|
|
27
42
|
info?: Partial<Record<string, ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>>>;
|
|
28
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Defined in:
|
|
46
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
47
|
+
*/
|
|
29
48
|
export interface HandshakeResponse {
|
|
30
|
-
nonce
|
|
31
|
-
partyKey
|
|
49
|
+
nonce: Uint8Array;
|
|
50
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
32
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Defined in:
|
|
54
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
55
|
+
*/
|
|
33
56
|
export interface NotarizeResponse {
|
|
34
57
|
copies?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>[];
|
|
35
|
-
genesisFeed
|
|
58
|
+
genesisFeed: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
36
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Defined in:
|
|
62
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
63
|
+
*/
|
|
37
64
|
export interface KeyHint {
|
|
38
|
-
publicKey
|
|
39
|
-
type
|
|
65
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
66
|
+
type: dxos_halo_keys.KeyType;
|
|
40
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Defined in:
|
|
70
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
|
|
71
|
+
*/
|
|
41
72
|
export interface ClaimResponse {
|
|
42
|
-
id
|
|
43
|
-
rendezvousKey
|
|
73
|
+
id: Uint8Array;
|
|
74
|
+
rendezvousKey: Uint8Array;
|
|
44
75
|
}
|
|
@@ -6,11 +6,19 @@ import * as dxos_credentials_greet from "./greet";
|
|
|
6
6
|
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
|
+
/**
|
|
10
|
+
* Defined in:
|
|
11
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/identity.proto}
|
|
12
|
+
*/
|
|
9
13
|
export interface IdentityInfo {
|
|
10
|
-
publicKey
|
|
11
|
-
displayName
|
|
14
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
15
|
+
displayName: string;
|
|
12
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Defined in:
|
|
19
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/identity.proto}
|
|
20
|
+
*/
|
|
13
21
|
export interface DeviceInfo {
|
|
14
|
-
publicKey
|
|
15
|
-
displayName
|
|
22
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
23
|
+
displayName: string;
|
|
16
24
|
}
|
|
@@ -6,8 +6,12 @@ import * as dxos_credentials_greet from "./greet";
|
|
|
6
6
|
import * as dxos_credentials_identity from "./identity";
|
|
7
7
|
import * as dxos_halo_keys from "../halo/keys";
|
|
8
8
|
import * as google_protobuf from "../../google/protobuf";
|
|
9
|
+
/**
|
|
10
|
+
* Defined in:
|
|
11
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
12
|
+
*/
|
|
9
13
|
export interface PartyCredential {
|
|
10
|
-
type
|
|
14
|
+
type: PartyCredential.Type;
|
|
11
15
|
envelope?: Envelope;
|
|
12
16
|
partyGenesis?: PartyGenesis;
|
|
13
17
|
keyAdmit?: KeyAdmit;
|
|
@@ -15,6 +19,10 @@ export interface PartyCredential {
|
|
|
15
19
|
feedGenesis?: FeedGenesis;
|
|
16
20
|
}
|
|
17
21
|
export namespace PartyCredential {
|
|
22
|
+
/**
|
|
23
|
+
* Defined in:
|
|
24
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
25
|
+
*/
|
|
18
26
|
export enum Type {
|
|
19
27
|
ENVELOPE = 0,
|
|
20
28
|
PARTY_GENESIS = 1,
|
|
@@ -23,32 +31,56 @@ export namespace PartyCredential {
|
|
|
23
31
|
FEED_ADMIT = 4
|
|
24
32
|
}
|
|
25
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Defined in:
|
|
36
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
37
|
+
*/
|
|
26
38
|
export interface PartyGenesis {
|
|
27
|
-
partyKey
|
|
28
|
-
feedKey
|
|
29
|
-
admitKey
|
|
30
|
-
admitKeyType
|
|
39
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
40
|
+
feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
41
|
+
admitKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
42
|
+
admitKeyType: dxos_halo_keys.KeyType;
|
|
31
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Defined in:
|
|
46
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
47
|
+
*/
|
|
32
48
|
export interface KeyAdmit {
|
|
33
|
-
partyKey
|
|
34
|
-
admitKey
|
|
35
|
-
admitKeyType
|
|
49
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
50
|
+
admitKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
51
|
+
admitKeyType: dxos_halo_keys.KeyType;
|
|
36
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Defined in:
|
|
55
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
56
|
+
*/
|
|
37
57
|
export interface FeedAdmit {
|
|
38
|
-
partyKey
|
|
39
|
-
feedKey
|
|
58
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
59
|
+
feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
40
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Defined in:
|
|
63
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
64
|
+
*/
|
|
41
65
|
export interface FeedGenesis {
|
|
42
|
-
feedKey
|
|
43
|
-
ownerKey
|
|
66
|
+
feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
67
|
+
ownerKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
44
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Defined in:
|
|
71
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
72
|
+
*/
|
|
45
73
|
export interface Envelope {
|
|
46
|
-
partyKey
|
|
47
|
-
message
|
|
74
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
75
|
+
message: dxos_credentials.Message;
|
|
48
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Defined in:
|
|
79
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
|
|
80
|
+
*/
|
|
49
81
|
export interface PartyInvitation {
|
|
50
|
-
id
|
|
51
|
-
partyKey
|
|
52
|
-
issuerKey
|
|
53
|
-
inviteeKey
|
|
82
|
+
id: Uint8Array;
|
|
83
|
+
partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
84
|
+
issuerKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
85
|
+
inviteeKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
54
86
|
}
|
|
@@ -6,25 +6,64 @@ import * as dxos_credentials_identity from "./credentials/identity";
|
|
|
6
6
|
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
|
+
/**
|
|
10
|
+
* Defined in:
|
|
11
|
+
* {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
|
|
12
|
+
*/
|
|
9
13
|
export interface Message {
|
|
10
14
|
payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
11
15
|
}
|
|
12
16
|
/**
|
|
13
17
|
* A generic container message used whenever messages are signed (e.g. PartyCredential)
|
|
18
|
+
*
|
|
19
|
+
* Defined in:
|
|
20
|
+
* {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
|
|
14
21
|
*/
|
|
15
22
|
export interface SignedMessage {
|
|
23
|
+
/**
|
|
24
|
+
* The signed message contents.
|
|
25
|
+
*/
|
|
16
26
|
signed: SignedMessage.Signed;
|
|
27
|
+
/**
|
|
28
|
+
* An array of Signatures, one for each key that signed the message.
|
|
29
|
+
*/
|
|
17
30
|
signatures?: SignedMessage.Signature[];
|
|
18
31
|
}
|
|
19
32
|
export namespace SignedMessage {
|
|
33
|
+
/**
|
|
34
|
+
* Defined in:
|
|
35
|
+
* {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
|
|
36
|
+
*/
|
|
20
37
|
export interface Signed {
|
|
38
|
+
/**
|
|
39
|
+
* RFC-3339 datetime string.
|
|
40
|
+
*/
|
|
21
41
|
created: string;
|
|
22
42
|
nonce: Uint8Array;
|
|
43
|
+
/**
|
|
44
|
+
* The payload to be signed.
|
|
45
|
+
*/
|
|
23
46
|
payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
24
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Defined in:
|
|
50
|
+
* {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
|
|
51
|
+
*/
|
|
25
52
|
export interface Signature {
|
|
53
|
+
/**
|
|
54
|
+
* The publicKey of the keypair that made this signature.
|
|
55
|
+
*/
|
|
26
56
|
key: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
57
|
+
/**
|
|
58
|
+
* The bytes of the signature.
|
|
59
|
+
*/
|
|
27
60
|
signature: Uint8Array;
|
|
61
|
+
/**
|
|
62
|
+
* The certification chain of SignedMessages for this key.
|
|
63
|
+
*
|
|
64
|
+
* Options:
|
|
65
|
+
* - proto3_optional = true
|
|
66
|
+
*/
|
|
28
67
|
keyChain?: dxos_halo_keys.KeyChain;
|
|
29
68
|
}
|
|
30
69
|
}
|
|
@@ -6,6 +6,10 @@ import * as dxos_credentials_greet from "../credentials/greet";
|
|
|
6
6
|
import * as dxos_credentials_identity from "../credentials/identity";
|
|
7
7
|
import * as dxos_credentials_party from "../credentials/party";
|
|
8
8
|
import * as google_protobuf from "../../google/protobuf";
|
|
9
|
+
/**
|
|
10
|
+
* Defined in:
|
|
11
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
|
|
12
|
+
*/
|
|
9
13
|
export enum KeyType {
|
|
10
14
|
UNKNOWN = 0,
|
|
11
15
|
IDENTITY = 1,
|
|
@@ -14,12 +18,24 @@ export enum KeyType {
|
|
|
14
18
|
FEED = 4,
|
|
15
19
|
DXNS_ADDRESS = 5
|
|
16
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Defined in:
|
|
23
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
|
|
24
|
+
*/
|
|
17
25
|
export interface PubKey {
|
|
18
|
-
data
|
|
26
|
+
data: Uint8Array;
|
|
19
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Defined in:
|
|
30
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
|
|
31
|
+
*/
|
|
20
32
|
export interface PrivKey {
|
|
21
|
-
data
|
|
33
|
+
data: Uint8Array;
|
|
22
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Defined in:
|
|
37
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
|
|
38
|
+
*/
|
|
23
39
|
export interface KeyRecord {
|
|
24
40
|
/**
|
|
25
41
|
* The `KeyType` type of the key. This is often unknown for keys from other sources.
|
|
@@ -31,33 +47,59 @@ export interface KeyRecord {
|
|
|
31
47
|
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
32
48
|
/**
|
|
33
49
|
* The secret key as a Buffer (this will never be visible outside the Keyring).
|
|
50
|
+
*
|
|
51
|
+
* Options:
|
|
52
|
+
* - proto3_optional = true
|
|
34
53
|
*/
|
|
35
54
|
secretKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PrivKey"]["decode"]>;
|
|
36
55
|
/**
|
|
37
56
|
* Is this key from a Greeting "hint"?
|
|
57
|
+
*
|
|
58
|
+
* Options:
|
|
59
|
+
* - proto3_optional = true
|
|
38
60
|
*/
|
|
39
61
|
hint?: boolean;
|
|
40
62
|
/**
|
|
41
63
|
* Determines if this is our key?
|
|
42
64
|
* Usually true if `secretKey` is present; may be false for "inception keys" such as the Party key.
|
|
65
|
+
*
|
|
66
|
+
* Options:
|
|
67
|
+
* - proto3_optional = true
|
|
43
68
|
*/
|
|
44
69
|
own?: boolean;
|
|
45
70
|
/**
|
|
46
71
|
* Is this key to be trusted?
|
|
72
|
+
*
|
|
73
|
+
* Options:
|
|
74
|
+
* - proto3_optional = true
|
|
47
75
|
*/
|
|
48
76
|
trusted?: boolean;
|
|
49
77
|
/**
|
|
50
78
|
* An RFC-3339 date/time string for when the key was added to the Keyring.
|
|
79
|
+
*
|
|
80
|
+
* Options:
|
|
81
|
+
* - proto3_optional = true
|
|
51
82
|
*/
|
|
52
83
|
added?: string;
|
|
53
84
|
/**
|
|
54
85
|
* An RFC-3339 date/time string for when the key was created.
|
|
86
|
+
*
|
|
87
|
+
* Options:
|
|
88
|
+
* - proto3_optional = true
|
|
55
89
|
*/
|
|
56
90
|
created?: string;
|
|
57
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Defined in:
|
|
94
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
|
|
95
|
+
*/
|
|
58
96
|
export interface KeyRecordList {
|
|
59
97
|
keys?: KeyRecord[];
|
|
60
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Defined in:
|
|
101
|
+
* {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
|
|
102
|
+
*/
|
|
61
103
|
export interface KeyChain {
|
|
62
104
|
publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
|
|
63
105
|
message: dxos_credentials.SignedMessage;
|
|
@@ -7,33 +7,33 @@ import * as dxos_credentials_identity from "../dxos/credentials/identity";
|
|
|
7
7
|
import * as dxos_credentials_party from "../dxos/credentials/party";
|
|
8
8
|
import * as dxos_halo_keys from "../dxos/halo/keys";
|
|
9
9
|
export interface Any {
|
|
10
|
-
type_url
|
|
11
|
-
value
|
|
10
|
+
type_url: string;
|
|
11
|
+
value: Uint8Array;
|
|
12
12
|
}
|
|
13
13
|
export interface DoubleValue {
|
|
14
|
-
value
|
|
14
|
+
value: number;
|
|
15
15
|
}
|
|
16
16
|
export interface FloatValue {
|
|
17
|
-
value
|
|
17
|
+
value: number;
|
|
18
18
|
}
|
|
19
19
|
export interface Int64Value {
|
|
20
|
-
value
|
|
20
|
+
value: string;
|
|
21
21
|
}
|
|
22
22
|
export interface UInt64Value {
|
|
23
|
-
value
|
|
23
|
+
value: string;
|
|
24
24
|
}
|
|
25
25
|
export interface Int32Value {
|
|
26
|
-
value
|
|
26
|
+
value: number;
|
|
27
27
|
}
|
|
28
28
|
export interface UInt32Value {
|
|
29
|
-
value
|
|
29
|
+
value: number;
|
|
30
30
|
}
|
|
31
31
|
export interface BoolValue {
|
|
32
|
-
value
|
|
32
|
+
value: boolean;
|
|
33
33
|
}
|
|
34
34
|
export interface StringValue {
|
|
35
|
-
value
|
|
35
|
+
value: string;
|
|
36
36
|
}
|
|
37
37
|
export interface BytesValue {
|
|
38
|
-
value
|
|
38
|
+
value: Uint8Array;
|
|
39
39
|
}
|
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},\"genesisFeed\":{\"type\":\"PubKey\",\"id\":3,\"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\"
|
|
52
|
+
export const schemaJson = JSON.parse("{\"nested\":{\"dxos\":{\"nested\":{\"credentials\":{\"nested\":{\"auth\":{\"nested\":{\"Auth\":{\"oneofs\":{\"_feedKey\":{\"oneof\":[\"feedKey\"]},\"_feedAdmit\":{\"oneof\":[\"feedAdmit\"]}},\"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,\"options\":{\"proto3_optional\":true},\"comment\":\"The publicKey of the authenticating Identity.\"},\"feedAdmit\":{\"type\":\"google.protobuf.Any\",\"id\":5,\"options\":{\"proto3_optional\":true},\"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\":{\"oneofs\":{\"_secret\":{\"oneof\":[\"secret\"]}},\"fields\":{\"command\":{\"type\":\"Type\",\"id\":1,\"comment\":null},\"secret\":{\"type\":\"bytes\",\"id\":2,\"options\":{\"proto3_optional\":true},\"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},\"genesisFeed\":{\"type\":\"PubKey\",\"id\":3,\"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\":\"The signed message contents.\"},\"signatures\":{\"rule\":\"repeated\",\"type\":\"Signature\",\"id\":2,\"comment\":\"An array of Signatures, one for each key that signed the message.\"}},\"nested\":{\"Signature\":{\"oneofs\":{\"_keyChain\":{\"oneof\":[\"keyChain\"]}},\"fields\":{\"key\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":1,\"comment\":\"The publicKey of the keypair that made this signature.\"},\"signature\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":2,\"comment\":\"The bytes of the signature.\"},\"keyChain\":{\"type\":\"KeyChain\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":\"The certification chain of SignedMessages for this key.\"}},\"comment\":null},\"Signed\":{\"fields\":{\"created\":{\"rule\":\"required\",\"type\":\"string\",\"id\":1,\"comment\":\"RFC-3339 datetime string.\"},\"nonce\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":2,\"comment\":null},\"payload\":{\"rule\":\"required\",\"type\":\"google.protobuf.Any\",\"id\":10,\"comment\":\"The payload to be signed.\"}},\"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\":{\"oneofs\":{\"_secretKey\":{\"oneof\":[\"secretKey\"]},\"_hint\":{\"oneof\":[\"hint\"]},\"_own\":{\"oneof\":[\"own\"]},\"_trusted\":{\"oneof\":[\"trusted\"]},\"_added\":{\"oneof\":[\"added\"]},\"_created\":{\"oneof\":[\"created\"]}},\"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,\"options\":{\"proto3_optional\":true},\"comment\":\"The secret key as a Buffer (this will never be visible outside the Keyring).\"},\"hint\":{\"type\":\"bool\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":\"Is this key from a Greeting \\\"hint\\\"?\"},\"own\":{\"type\":\"bool\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":\"Determines if this is our key?\\nUsually true if `secretKey` is present; may be false for \\\"inception keys\\\" such as the Party key.\"},\"trusted\":{\"type\":\"bool\",\"id\":6,\"options\":{\"proto3_optional\":true},\"comment\":\"Is this key to be trusted?\"},\"added\":{\"type\":\"string\",\"id\":7,\"options\":{\"proto3_optional\":true},\"comment\":\"An RFC-3339 date/time string for when the key was added to the Keyring.\"},\"created\":{\"type\":\"string\",\"id\":8,\"options\":{\"proto3_optional\":true},\"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);
|