@dxos/credentials 2.33.5-dev.c37556a4 → 2.33.5-dev.cb045a79

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.
Files changed (67) hide show
  1. package/.rush/temp/package-deps_build.json +6 -6
  2. package/.rush/temp/{package-deps_build:test.json → package-deps_build_test.json} +6 -6
  3. package/.rush/temp/shrinkwrap-deps.json +49 -29
  4. package/dist/src/auth/auth-message.d.ts +1 -1
  5. package/dist/src/auth/auth-message.d.ts.map +1 -1
  6. package/dist/src/auth/auth-plugin.d.ts +1 -0
  7. package/dist/src/auth/auth-plugin.d.ts.map +1 -1
  8. package/dist/src/auth/authenticator.js.map +1 -1
  9. package/dist/src/auth/index.js +5 -1
  10. package/dist/src/auth/index.js.map +1 -1
  11. package/dist/src/greet/greeter-plugin.test.js +1 -1
  12. package/dist/src/greet/greeter-plugin.test.js.map +1 -1
  13. package/dist/src/greet/greeter.d.ts +4 -16
  14. package/dist/src/greet/greeter.d.ts.map +1 -1
  15. package/dist/src/greet/greeter.js +1 -1
  16. package/dist/src/greet/greeter.js.map +1 -1
  17. package/dist/src/greet/greeter.test.js +1 -2
  18. package/dist/src/greet/greeter.test.js.map +1 -1
  19. package/dist/src/greet/greeting-command-plugin.d.ts +1 -0
  20. package/dist/src/greet/greeting-command-plugin.d.ts.map +1 -1
  21. package/dist/src/greet/index.js +5 -1
  22. package/dist/src/greet/index.js.map +1 -1
  23. package/dist/src/identity/index.js +5 -1
  24. package/dist/src/identity/index.js.map +1 -1
  25. package/dist/src/index.js +5 -1
  26. package/dist/src/index.js.map +1 -1
  27. package/dist/src/keys/index.js +5 -1
  28. package/dist/src/keys/index.js.map +1 -1
  29. package/dist/src/keys/keyring-helpers.d.ts +1 -1
  30. package/dist/src/keys/keyring-helpers.d.ts.map +1 -1
  31. package/dist/src/party/index.js +5 -1
  32. package/dist/src/party/index.js.map +1 -1
  33. package/dist/src/party/party-credential.d.ts +4 -4
  34. package/dist/src/party/party-credential.d.ts.map +1 -1
  35. package/dist/src/party/party-state.d.ts +1 -0
  36. package/dist/src/party/party-state.d.ts.map +1 -1
  37. package/dist/src/proto/gen/dxos/credentials/auth.d.ts +5 -5
  38. package/dist/src/proto/gen/dxos/credentials/auth.d.ts.map +1 -1
  39. package/dist/src/proto/gen/dxos/credentials/greet.d.ts +6 -6
  40. package/dist/src/proto/gen/dxos/credentials/greet.d.ts.map +1 -1
  41. package/dist/src/proto/gen/dxos/credentials/identity.d.ts +2 -2
  42. package/dist/src/proto/gen/dxos/credentials/identity.d.ts.map +1 -1
  43. package/dist/src/proto/gen/dxos/credentials/party.d.ts +13 -13
  44. package/dist/src/proto/gen/dxos/credentials/party.d.ts.map +1 -1
  45. package/dist/src/proto/gen/dxos/credentials.d.ts +3 -3
  46. package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
  47. package/dist/src/proto/gen/dxos/halo/keys.d.ts +3 -3
  48. package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  49. package/dist/src/proto/gen/index.d.ts.map +1 -1
  50. package/dist/src/proto/gen/index.js +1 -1
  51. package/dist/src/proto/gen/index.js.map +1 -1
  52. package/dist/src/proto/index.js +5 -1
  53. package/dist/src/proto/index.js.map +1 -1
  54. package/dist/tsconfig.tsbuildinfo +1 -1
  55. package/package.json +12 -12
  56. package/src/greet/greeter-plugin.test.ts +1 -1
  57. package/src/greet/greeter.test.js +1 -2
  58. package/src/greet/greeter.ts +3 -3
  59. package/src/proto/gen/dxos/credentials/auth.ts +5 -5
  60. package/src/proto/gen/dxos/credentials/greet.ts +6 -6
  61. package/src/proto/gen/dxos/credentials/identity.ts +2 -2
  62. package/src/proto/gen/dxos/credentials/party.ts +13 -13
  63. package/src/proto/gen/dxos/credentials.ts +3 -3
  64. package/src/proto/gen/dxos/halo/keys.ts +3 -3
  65. package/src/proto/gen/index.ts +1 -1
  66. package/tsconfig.json +6 -6
  67. package/.rush/temp/package-deps_prerelease.json +0 -61
@@ -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
  }
@@ -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},\"hints\":{\"rule\":\"repeated\",\"type\":\"KeyHint\",\"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}}}}}}}");
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": "../../echo/feed-store"
23
+ "path": "../../common/protocols"
24
24
  },
25
25
  {
26
- "path": "../../mesh/protocol"
26
+ "path": "../../common/random-access-multi-storage"
27
27
  },
28
28
  {
29
- "path": "../../common/protocols"
29
+ "path": "../../common/util"
30
30
  },
31
31
  {
32
- "path": "../../common/util"
32
+ "path": "../../echo/feed-store"
33
33
  },
34
34
  {
35
- "path": "../../mesh/protocol-plugin-replicator"
35
+ "path": "../../mesh/protocol"
36
36
  },
37
37
  {
38
- "path": "../../common/random-access-multi-storage"
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
- }