@dxos/credentials 2.33.5-dev.ea3876ba → 2.33.5-dev.fee8f5fe

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 (103) hide show
  1. package/.rush/temp/package-deps_build.json +16 -16
  2. package/.rush/temp/{package-deps_build:test.json → package-deps_build_test.json} +16 -16
  3. package/.rush/temp/shrinkwrap-deps.json +68 -39
  4. package/credentials.build.log +99 -0
  5. package/dist/src/auth/auth-message.d.ts +1 -1
  6. package/dist/src/auth/auth-message.d.ts.map +1 -1
  7. package/dist/src/auth/auth-plugin.d.ts +1 -0
  8. package/dist/src/auth/auth-plugin.d.ts.map +1 -1
  9. package/dist/src/auth/auth-plugin.test.js +8 -14
  10. package/dist/src/auth/auth-plugin.test.js.map +1 -1
  11. package/dist/src/auth/auth.test.js +1 -4
  12. package/dist/src/auth/auth.test.js.map +1 -1
  13. package/dist/src/auth/authenticator.js.map +1 -1
  14. package/dist/src/auth/index.js +5 -1
  15. package/dist/src/auth/index.js.map +1 -1
  16. package/dist/src/greet/greeter-plugin.test.js +2 -4
  17. package/dist/src/greet/greeter-plugin.test.js.map +1 -1
  18. package/dist/src/greet/greeter.d.ts +4 -16
  19. package/dist/src/greet/greeter.d.ts.map +1 -1
  20. package/dist/src/greet/greeter.js +1 -1
  21. package/dist/src/greet/greeter.js.map +1 -1
  22. package/dist/src/greet/greeter.test.js +1 -2
  23. package/dist/src/greet/greeter.test.js.map +1 -1
  24. package/dist/src/greet/greeting-command-plugin.d.ts +1 -0
  25. package/dist/src/greet/greeting-command-plugin.d.ts.map +1 -1
  26. package/dist/src/greet/greeting-message.d.ts.map +1 -1
  27. package/dist/src/greet/greeting-message.js +5 -7
  28. package/dist/src/greet/greeting-message.js.map +1 -1
  29. package/dist/src/greet/index.js +5 -1
  30. package/dist/src/greet/index.js.map +1 -1
  31. package/dist/src/identity/identity-message.d.ts.map +1 -1
  32. package/dist/src/identity/identity-message.js +1 -4
  33. package/dist/src/identity/identity-message.js.map +1 -1
  34. package/dist/src/identity/index.js +5 -1
  35. package/dist/src/identity/index.js.map +1 -1
  36. package/dist/src/index.js +5 -1
  37. package/dist/src/index.js.map +1 -1
  38. package/dist/src/keys/index.js +5 -1
  39. package/dist/src/keys/index.js.map +1 -1
  40. package/dist/src/keys/keyring-helpers.d.ts +1 -1
  41. package/dist/src/keys/keyring-helpers.d.ts.map +1 -1
  42. package/dist/src/keys/keyring-helpers.js +29 -30
  43. package/dist/src/keys/keyring-helpers.js.map +1 -1
  44. package/dist/src/keys/keystore.d.ts.map +1 -1
  45. package/dist/src/keys/keystore.js +2 -6
  46. package/dist/src/keys/keystore.js.map +1 -1
  47. package/dist/src/keys/keytype.d.ts.map +1 -1
  48. package/dist/src/keys/keytype.js +1 -3
  49. package/dist/src/keys/keytype.js.map +1 -1
  50. package/dist/src/party/index.js +5 -1
  51. package/dist/src/party/index.js.map +1 -1
  52. package/dist/src/party/party-credential.d.ts +8 -8
  53. package/dist/src/party/party-credential.d.ts.map +1 -1
  54. package/dist/src/party/party-credential.js +16 -18
  55. package/dist/src/party/party-credential.js.map +1 -1
  56. package/dist/src/party/party-state.d.ts +1 -0
  57. package/dist/src/party/party-state.d.ts.map +1 -1
  58. package/dist/src/party/party-state.js +7 -9
  59. package/dist/src/party/party-state.js.map +1 -1
  60. package/dist/src/proto/datetime.d.ts.map +1 -1
  61. package/dist/src/proto/datetime.js +1 -3
  62. package/dist/src/proto/datetime.js.map +1 -1
  63. package/dist/src/proto/gen/dxos/credentials/auth.d.ts +5 -5
  64. package/dist/src/proto/gen/dxos/credentials/auth.d.ts.map +1 -1
  65. package/dist/src/proto/gen/dxos/credentials/greet.d.ts +6 -6
  66. package/dist/src/proto/gen/dxos/credentials/greet.d.ts.map +1 -1
  67. package/dist/src/proto/gen/dxos/credentials/identity.d.ts +2 -2
  68. package/dist/src/proto/gen/dxos/credentials/identity.d.ts.map +1 -1
  69. package/dist/src/proto/gen/dxos/credentials/party.d.ts +13 -13
  70. package/dist/src/proto/gen/dxos/credentials/party.d.ts.map +1 -1
  71. package/dist/src/proto/gen/dxos/credentials.d.ts +3 -3
  72. package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
  73. package/dist/src/proto/gen/dxos/halo/keys.d.ts +3 -3
  74. package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  75. package/dist/src/proto/gen/index.d.ts.map +1 -1
  76. package/dist/src/proto/gen/index.js +1 -1
  77. package/dist/src/proto/gen/index.js.map +1 -1
  78. package/dist/src/proto/index.js +5 -1
  79. package/dist/src/proto/index.js.map +1 -1
  80. package/dist/tsconfig.tsbuildinfo +1 -1
  81. package/package.json +13 -13
  82. package/src/auth/auth-plugin.test.ts +8 -14
  83. package/src/auth/auth.test.ts +2 -5
  84. package/src/greet/greeter-plugin.test.ts +2 -4
  85. package/src/greet/greeter.test.js +1 -2
  86. package/src/greet/greeter.ts +3 -3
  87. package/src/greet/greeting-message.ts +5 -7
  88. package/src/identity/identity-message.ts +1 -4
  89. package/src/keys/keyring-helpers.ts +23 -24
  90. package/src/keys/keystore.ts +2 -6
  91. package/src/keys/keytype.ts +1 -3
  92. package/src/party/party-credential.ts +7 -9
  93. package/src/party/party-state.ts +7 -9
  94. package/src/proto/datetime.ts +1 -3
  95. package/src/proto/gen/dxos/credentials/auth.ts +5 -5
  96. package/src/proto/gen/dxos/credentials/greet.ts +6 -6
  97. package/src/proto/gen/dxos/credentials/identity.ts +2 -2
  98. package/src/proto/gen/dxos/credentials/party.ts +13 -13
  99. package/src/proto/gen/dxos/credentials.ts +3 -3
  100. package/src/proto/gen/dxos/halo/keys.ts +3 -3
  101. package/src/proto/gen/index.ts +1 -1
  102. package/tsconfig.json +6 -6
  103. package/.rush/temp/package-deps_prerelease.json +0 -61
@@ -19,7 +19,7 @@ import { SecretKey } from './keytype';
19
19
  * Checks for a valid publicKey Buffer.
20
20
  */
21
21
  // TODO(burdon): Move to dxos/crypto.
22
- export function isValidPublicKey (key: PublicKeyLike, keyType?: KeyType): key is PublicKeyLike {
22
+ export const isValidPublicKey = (key: PublicKeyLike, keyType?: KeyType): key is PublicKeyLike => {
23
23
  try {
24
24
  PublicKey.from(key);
25
25
  if (keyType && [KeyType.PARTY, KeyType.IDENTITY, KeyType.FEED, KeyType.DEVICE].includes(keyType)) {
@@ -29,12 +29,13 @@ export function isValidPublicKey (key: PublicKeyLike, keyType?: KeyType): key is
29
29
  } catch (e: any) {
30
30
  }
31
31
  return false;
32
- }
32
+ };
33
33
 
34
34
  /**
35
35
  * Checks for a valid publicKey Buffer.
36
36
  */
37
37
  // TODO(burdon): Move to dxos/crypto.
38
+ // eslint-disable-next-line @stayradiated/prefer-arrow-functions/prefer-arrow-functions
38
39
  export function assertValidPublicKey (key: PublicKeyLike, keyType?: KeyType): asserts key is PublicKeyLike {
39
40
  assert(key);
40
41
  assert(isValidPublicKey(key, keyType));
@@ -44,6 +45,7 @@ export function assertValidPublicKey (key: PublicKeyLike, keyType?: KeyType): as
44
45
  * Checks for a valid secretKey Buffer.
45
46
  */
46
47
  // TODO(burdon): Move to dxos/crypto.
48
+ // eslint-disable-next-line @stayradiated/prefer-arrow-functions/prefer-arrow-functions
47
49
  export function assertValidSecretKey (key?: SecretKey, keyType?: KeyType): asserts key is SecretKey {
48
50
  assert(key);
49
51
  if (keyType && [KeyType.PARTY, KeyType.IDENTITY, KeyType.FEED, KeyType.DEVICE].includes(keyType)) {
@@ -55,6 +57,7 @@ export function assertValidSecretKey (key?: SecretKey, keyType?: KeyType): asser
55
57
  * Checks for a valid publicKey/secretKey KeyPair.
56
58
  */
57
59
  // TODO(burdon): Move to dxos/crypto.
60
+ // eslint-disable-next-line @stayradiated/prefer-arrow-functions/prefer-arrow-functions
58
61
  export function assertValidKeyPair (keyRecord: any): asserts keyRecord is KeyPair {
59
62
  const { publicKey, secretKey, type } = keyRecord;
60
63
  assertValidPublicKey(publicKey, type);
@@ -128,40 +131,36 @@ export const createKeyRecord = (attributes: Partial<KeyRecord> = {},
128
131
  * Utility method to produce stable output for signing/verifying.
129
132
  */
130
133
  // TODO(burdon): Factor out.
131
- export const canonicalStringify = (obj: any) => {
132
- return stableStringify(obj, {
133
- /* The point of signing and verifying is not that the internal, private state of the objects be
134
+ export const canonicalStringify = (obj: any) => stableStringify(obj, {
135
+ /* The point of signing and verifying is not that the internal, private state of the objects be
134
136
  * identical, but that the public contents can be verified not to have been altered. For that reason,
135
137
  * really private fields (indicated by '__') are not included in the signature.
136
138
  * This gives a mechanism for attaching other attributes to an object without breaking the signature.
137
139
  * We also skip @type.
138
140
  */
139
- replacer: (key: any, value: any) => {
140
- if (key.toString().startsWith('__') || key.toString() === '@type') {
141
- return undefined;
141
+ replacer: (key: any, value: any) => {
142
+ if (key.toString().startsWith('__') || key.toString() === '@type') {
143
+ return undefined;
144
+ }
145
+ if (value) {
146
+ if (PublicKey.isPublicKey(value)) {
147
+ return value.toHex();
148
+ }
149
+ if (Buffer.isBuffer(value)) {
150
+ return value.toString('hex');
142
151
  }
143
- if (value) {
144
- if (PublicKey.isPublicKey(value)) {
145
- return value.toHex();
146
- }
147
- if (Buffer.isBuffer(value)) {
148
- return value.toString('hex');
149
- }
150
- if (value instanceof Uint8Array || (value.data && value.type === 'Buffer')) {
151
- return Buffer.from(value).toString('hex');
152
- }
152
+ if (value instanceof Uint8Array || (value.data && value.type === 'Buffer')) {
153
+ return Buffer.from(value).toString('hex');
153
154
  }
154
- return value;
155
155
  }
156
- });
157
- };
156
+ return value;
157
+ }
158
+ });
158
159
 
159
160
  /**
160
161
  * Is object `key` a KeyChain?
161
162
  */
162
- export const isKeyChain = (key: any = {}): key is KeyChain => {
163
- return isValidPublicKey(key.publicKey) && key.message && key.message.signed && Array.isArray(key.message.signatures);
164
- };
163
+ export const isKeyChain = (key: any = {}): key is KeyChain => isValidPublicKey(key.publicKey) && key.message && key.message.signed && Array.isArray(key.message.signatures);
165
164
 
166
165
  /**
167
166
  * Checks conformity and normalizes the KeyRecord. (Used before storing, so that only well-formed records are stored.)
@@ -17,12 +17,8 @@ import { KeyRecord } from '../proto';
17
17
  const log = debug('dxos:halo:keys:keystore'); // eslint-disable-line unused-imports/no-unused-vars
18
18
 
19
19
  const marshaller = {
20
- marshall (record: KeyRecord) {
21
- return { ...record, publicKey: record.publicKey.asBuffer() };
22
- },
23
- unmarshall (raw: any): KeyRecord {
24
- return { ...raw, publicKey: PublicKey.from(raw.publicKey) };
25
- }
20
+ marshall: (record: KeyRecord) => ({ ...record, publicKey: record.publicKey.asBuffer() }),
21
+ unmarshall: (raw: any): KeyRecord => ({ ...raw, publicKey: PublicKey.from(raw.publicKey) })
26
22
  };
27
23
 
28
24
  /**
@@ -6,6 +6,4 @@ import { KeyType } from '../proto/gen/dxos/halo/keys';
6
6
 
7
7
  export type SecretKey = Buffer;
8
8
 
9
- export const keyTypeName = (keyType: KeyType) => {
10
- return KeyType[keyType];
11
- };
9
+ export const keyTypeName = (keyType: KeyType) => KeyType[keyType];
@@ -143,12 +143,12 @@ export const isPartyCredentialMessage = (message: Message | SignedMessage) => {
143
143
  * @return {boolean}
144
144
  * @private
145
145
  */
146
- export function isEnvelope (message: any) {
146
+ export const isEnvelope = (message: any) => {
147
147
  assert(message);
148
148
  const type = message?.signed?.payload?.type;
149
149
  const envelope = message?.signed?.payload?.envelope;
150
150
  return type === PartyCredential.Type.ENVELOPE && envelope;
151
- }
151
+ };
152
152
 
153
153
  /**
154
154
  * Is this a SignedMessage?
@@ -156,30 +156,28 @@ export function isEnvelope (message: any) {
156
156
  * @return {boolean}
157
157
  * @private
158
158
  */
159
- export function isSignedMessage (message: any): message is SignedMessage {
160
- return message && message.signed && message.signed.payload && message.signatures && Array.isArray(message.signatures);
161
- }
159
+ export const isSignedMessage = (message: any): message is SignedMessage => message && message.signed && message.signed.payload && message.signatures && Array.isArray(message.signatures);
162
160
 
163
161
  /**
164
162
  * Wraps a SignedMessage with a Message.
165
163
  */
166
164
  // TODO(burdon): Typespec is too loose.
167
- export function wrapMessage (message: Message | SignedMessage | Command | Auth): WithTypeUrl<Message> {
165
+ export const wrapMessage = (message: Message | SignedMessage | Command | Auth): WithTypeUrl<Message> => {
168
166
  const payload = message as any;
169
167
  return { '@type': TYPE_URL_MESSAGE, payload } as WithTypeUrl<Message>;
170
- }
168
+ };
171
169
 
172
170
  /**
173
171
  * Unwraps (if necessary) a Message to its contents.
174
172
  */
175
- export function unwrapMessage (message: any): any {
173
+ export const unwrapMessage = (message: any): any => {
176
174
  let result: any = message;
177
175
  while (result.payload) { // TODO(burdon): Recursion!
178
176
  result = result.payload;
179
177
  }
180
178
 
181
179
  return result;
182
- }
180
+ };
183
181
 
184
182
  /**
185
183
  * Unwrap a SignedMessage from its Envelopes.
@@ -516,15 +516,13 @@ export class PartyState extends EventEmitter {
516
516
  publicKey = PublicKey.from(publicKey);
517
517
  const keyStr = publicKey.toHex();
518
518
 
519
- const makeRecord = () => {
520
- return {
521
- type: KeyType.UNKNOWN,
522
- trusted: true,
523
- own: false,
524
- ...attributes, // Let attributes clobber the defaults.
525
- publicKey
526
- };
527
- };
519
+ const makeRecord = () => ({
520
+ type: KeyType.UNKNOWN,
521
+ trusted: true,
522
+ own: false,
523
+ ...attributes, // Let attributes clobber the defaults.
524
+ publicKey
525
+ });
528
526
 
529
527
  let keyRecord = this._keyring.getKey(publicKey);
530
528
  if (!keyRecord) {
@@ -8,6 +8,4 @@ import moment from 'moment';
8
8
  * Creates a properly formatted RFC-3339 date-time string for "now".
9
9
  * @returns {string}
10
10
  */
11
- export const createDateTimeString = () => {
12
- return moment().format('YYYY-MM-DDTHH:mm:ssZ');
13
- };
11
+ export const createDateTimeString = () => moment().format('YYYY-MM-DDTHH:mm:ssZ');
@@ -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
- hints?: KeyHint[];
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
  }
@@ -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": "e884473fe315f9b24832211ba1d7493b370c73ef",
4
- "packages/halo/credentials/.eslintrc.js": "8c186197e908188715a6c9635941ec4b7896c787",
5
- "packages/halo/credentials/README.md": "b6859b1e271596aa5934d07b6d4320721c43b035",
6
- "packages/halo/credentials/package.json": "85604e927b8e4372c64b6c470bd1c0c4527f8e1d",
7
- "packages/halo/credentials/src/auth/auth-message.ts": "6982758086188598c13c0836fb5e984444154c25",
8
- "packages/halo/credentials/src/auth/auth-plugin.test.ts": "69904a0b5d024397e5e42fb9cb9003de11322b8c",
9
- "packages/halo/credentials/src/auth/auth-plugin.ts": "068f54e08e213def743485a78b3c43ca2c30014d",
10
- "packages/halo/credentials/src/auth/auth.test.ts": "9fecba319dfb9e7b2c5643b412031ab64531edc1",
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": "f4362c760180b663170cde5b0fed3aaee1adff0e",
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": "e05b2c45aa76089822b0b75ce58278cbb4b2cf10",
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": "3794b2e413c419c7ab8f97dbe2a5a61a9ac79f11",
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": "ba31868921c5b9d3c1cf2b9ee072db32ed814139",
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": "82e7c258bb423bf36517d66d8ad9d4390def5891",
40
- "packages/halo/credentials/src/keys/keytype.ts": "9a4451ec1cb535773aa2217f9626c62afd16ee16",
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": "228dbb4e66627b539cd90baab8a9f66be6fb8945",
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": "37d475ce13ebe477c601b148469cda8eb19f31e0",
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": "3ef4b73a5f1c8389f17b0f8599413db451a1fd76",
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
- }