@dxos/credentials 2.33.9-dev.8e92e630 → 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.
Files changed (36) hide show
  1. package/.rush/temp/package-deps_build_test.json +1 -1
  2. package/.rush/temp/shrinkwrap-deps.json +2 -2
  3. package/credentials.build.log +102 -0
  4. package/dist/src/proto/gen/dxos/credentials/auth.d.ts +12 -3
  5. package/dist/src/proto/gen/dxos/credentials/auth.d.ts.map +1 -1
  6. package/dist/src/proto/gen/dxos/credentials/greet.d.ts +39 -8
  7. package/dist/src/proto/gen/dxos/credentials/greet.d.ts.map +1 -1
  8. package/dist/src/proto/gen/dxos/credentials/greet.js +4 -0
  9. package/dist/src/proto/gen/dxos/credentials/greet.js.map +1 -1
  10. package/dist/src/proto/gen/dxos/credentials/identity.d.ts +12 -4
  11. package/dist/src/proto/gen/dxos/credentials/identity.d.ts.map +1 -1
  12. package/dist/src/proto/gen/dxos/credentials/party.d.ts +50 -18
  13. package/dist/src/proto/gen/dxos/credentials/party.d.ts.map +1 -1
  14. package/dist/src/proto/gen/dxos/credentials/party.js +4 -0
  15. package/dist/src/proto/gen/dxos/credentials/party.js.map +1 -1
  16. package/dist/src/proto/gen/dxos/credentials.d.ts +39 -0
  17. package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
  18. package/dist/src/proto/gen/dxos/halo/keys.d.ts +44 -2
  19. package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  20. package/dist/src/proto/gen/dxos/halo/keys.js +4 -0
  21. package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
  22. package/dist/src/proto/gen/google/protobuf.d.ts +11 -11
  23. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
  24. package/dist/src/proto/gen/index.d.ts.map +1 -1
  25. package/dist/src/proto/gen/index.js +1 -1
  26. package/dist/src/proto/gen/index.js.map +1 -1
  27. package/dist/tsconfig.tsbuildinfo +1 -1
  28. package/package.json +11 -11
  29. package/src/proto/gen/dxos/credentials/auth.ts +12 -3
  30. package/src/proto/gen/dxos/credentials/greet.ts +39 -8
  31. package/src/proto/gen/dxos/credentials/identity.ts +12 -4
  32. package/src/proto/gen/dxos/credentials/party.ts +50 -18
  33. package/src/proto/gen/dxos/credentials.ts +39 -0
  34. package/src/proto/gen/dxos/halo/keys.ts +44 -2
  35. package/src/proto/gen/google/protobuf.ts +11 -11
  36. package/src/proto/gen/index.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "files": {
3
- "packages/halo/credentials/.rush/temp/shrinkwrap-deps.json": "b244e85cfdb47b1a4acf350ebdf0f6a24b988361",
3
+ "packages/halo/credentials/.rush/temp/shrinkwrap-deps.json": "f90902037a3a47d88ccd8ea2ef498c3242892c7e",
4
4
  "packages/halo/credentials/.eslintrc.js": "8c186197e908188715a6c9635941ec4b7896c787",
5
5
  "packages/halo/credentials/README.md": "b6859b1e271596aa5934d07b6d4320721c43b035",
6
6
  "packages/halo/credentials/package.json": "ec2d638856c5d301ba67cac6c35bd9bad434583e",
@@ -95,7 +95,7 @@
95
95
  "/color-convert/2.0.1": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
96
96
  "/color-name/1.1.3": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",
97
97
  "/color-name/1.1.4": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
98
- "/concat-map/0.0.1": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
98
+ "/concat-map/0.0.1": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
99
99
  "/create-hash/1.2.0": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==",
100
100
  "/create-hmac/1.1.7": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==",
101
101
  "/cross-spawn/7.0.3": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
@@ -175,7 +175,7 @@
175
175
  "/glob/7.1.7": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==",
176
176
  "/globals/13.12.0": "sha512-uS8X6lSKN2JumVoXrbUz+uG4BYG+eiawqm3qFcT7ammfbUHeCBoJMlHcec/S3krSk73/AE/f0szYFmgAA3kYZg==",
177
177
  "/globby/11.1.0": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",
178
- "/graceful-fs/4.2.8": "sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==",
178
+ "/graceful-fs/4.2.10": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==",
179
179
  "/has-bigints/1.0.1": "sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==",
180
180
  "/has-bigints/1.0.2": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==",
181
181
  "/has-flag/3.0.0": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
@@ -0,0 +1,102 @@
1
+ Invoking: toolchain build:test
2
+
3
+ Tests started
4
+ Protobuf
5
+ Compiling protobuf definitions
6
+
7
+ Proto file(s): /home/github/_work/protocols/protocols/packages/halo/credentials/src/proto/defs/import.proto
8
+ Substitution file: /home/github/_work/protocols/protocols/packages/halo/credentials/src/proto/substitutions.ts
9
+ Output directory: /home/github/_work/protocols/protocols/packages/halo/credentials/src/proto/gen
10
+
11
+ Loaded 3 substitutions:
12
+
13
+ dxos.halo.keys.PubKey -> import("/home/github/_work/protocols/protocols/packages/common/protocols/dist/src/public-key").PublicKey
14
+ dxos.halo.keys.PrivKey -> Buffer
15
+ google.protobuf.Any -> any
16
+
17
+ OK in 2713 ms
18
+
19
+ Typescript
20
+ OK in 3940 ms
21
+ /home/github/_work/protocols/protocols/packages/halo/credentials/src/auth/auth-plugin.test.ts(151,1): warning jest/expect-expect : Test has no assertions
22
+ /home/github/_work/protocols/protocols/packages/halo/credentials/src/greet/greeter.test.js(34,1): warning jest/expect-expect : Test has no assertions
23
+ /home/github/_work/protocols/protocols/packages/halo/credentials/src/keys/keyring.test.ts(378,1): warning jest/expect-expect : Test has no assertions
24
+
25
+ 3 problems
26
+ OK in 6949 ms
27
+
28
+ Mocha Tests
29
+
30
+
31
+ ✓ Auth Plugin (GOOD) (63ms)
32
+ ✓ Auth & Repl (GOOD) (100ms)
33
+ ✓ Greeting Flow using GreetingCommandPlugin
34
+ ✓ Good invitation
35
+ ✓ Bad invitation secret
36
+ ✓ Attempt to re-use invitation
37
+ ✓ Wrong partyKey
38
+ ✓ Create Invitation message
39
+ ✓ WellKnownType params - BytesValue
40
+ ✓ Basic bip39 operations work
41
+ ✓ Create keypair from seedphrase
42
+ ✓ Create cold identity key and recover
43
+ ✓ Basic filter
44
+ ✓ Basic AND filter
45
+ ✓ Generate keys
46
+ ✓ Update a key
47
+ ✓ Bad key attributes
48
+ ✓ Add/retrieve single keyRecord from an external source
49
+ ✓ Try to add/retrieve a publicKey from an external source (with secret present)
50
+ ✓ Add/retrieve a publicKey from an external source (without secret present)
51
+ ✓ Retrieve a non-existent key
52
+ ✓ Sign and verify a message with a single key
53
+ ✓ Sign and verify a message with multiple keys
54
+ ✓ Sign and verify a message using a key chain
55
+ ✓ Attempt to sign a message with a publicKey
56
+ ✓ Attempt to add a badly formatted key
57
+ ✓ Attempt to add a keyRecord missing its secretKey
58
+ ✓ Attempt to add a keyRecord missing its publicKey
59
+ ✓ Attempt to add keyRecord with reversed publicKey/secretKey
60
+ ✓ Attempt to add secretKey as a publicKey
61
+ ✓ Tamper with the contents of a signed message
62
+ ✓ Tamper with the signature of a signed message
63
+ ✓ Tamper with the signature key of a signed message
64
+ ✓ To/from JSON
65
+ ✓ Raw sign
66
+ ✓ To/from Protobuf
67
+ ✓ Authenticate flow for Kube/Keyhole authentication
68
+ ✓ Storing DXNS Address keys
69
+ ✓ Basic store operations
70
+ ✓ reloading
71
+ ✓ PartyInvitation messages
72
+ ✓ Process basic message types
73
+ ✓ GreetingCommandPlugin envelopes
74
+ ✓ Reject message from unknown source
75
+ ✓ Message signed by known and unknown key should not admit unknown key
76
+ ✓ Reject Genesis not signed by Party key
77
+ ✓ Reject admit key message with wrong Party
78
+ ✓ Reject admit feed message with wrong Party
79
+ ✓ Reject tampered Genesis message
80
+ ✓ Reject tampered admit feed message
81
+ ✓ Reject tampered admit key message
82
+ PartyAuthenticator
83
+ ✓ Chain of Keys
84
+ ✓ good direct
85
+ ✓ auth callback is called
86
+ ✓ good chain
87
+ ✓ bad chain
88
+ ✓ wrong key
89
+ ✓ wrong party
90
+ ✓ missing deviceKey
91
+ ✓ tampered message
92
+ ✓ tampered signature
93
+ ✓ signature too old
94
+ ✓ signature too far in future
95
+ ✓ signature date invalid
96
+
97
+
98
+ 64 passing (601ms)
99
+
100
+ OK in 1711 ms
101
+
102
+ Tests complete in 15334 ms
@@ -1,26 +1,35 @@
1
1
  import substitutions from "../../../substitutions";
2
2
  /**
3
3
  * The payload for a SignedMessage sent during handshake for replication authentication.
4
+ *
5
+ * Defined in:
6
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/auth.proto}
4
7
  */
5
8
  export interface Auth {
6
9
  /**
7
10
  * The publicKey of the target Party for these credentials.
8
11
  */
9
- partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
12
+ partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
10
13
  /**
11
14
  * The publicKey of the authenticating Device.
12
15
  */
13
- deviceKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
16
+ deviceKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
14
17
  /**
15
18
  * The publicKey of the authenticating Identity.
16
19
  */
17
- identityKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
20
+ identityKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
18
21
  /**
19
22
  * The publicKey of the authenticating Identity.
23
+ *
24
+ * Options:
25
+ * - proto3_optional = true
20
26
  */
21
27
  feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
22
28
  /**
23
29
  * FeedAdmit message to the should be written to a control feed in case the `feedKey` is not admitted to the party.
30
+ *
31
+ * Options:
32
+ * - proto3_optional = true
24
33
  */
25
34
  feedAdmit?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
26
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/auth.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAOnD;;GAEG;AACH,MAAM,WAAW,IAAI;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClF;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpF;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChF;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CACnF"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/auth.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAOnD;;;;;GAKG;AACH,MAAM,WAAW,IAAI;IACjB;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChF;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF;;OAEG;IACH,WAAW,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnF;;;;;OAKG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChF;;;;;OAKG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CACnF"}
@@ -2,13 +2,24 @@ import substitutions from "../../../substitutions";
2
2
  import * as dxos_halo_keys from "../halo/keys";
3
3
  /**
4
4
  * A Greeter command.
5
+ *
6
+ * Defined in:
7
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
5
8
  */
6
9
  export interface Command {
7
- command?: Command.Type;
10
+ command: Command.Type;
11
+ /**
12
+ * Options:
13
+ * - proto3_optional = true
14
+ */
8
15
  secret?: Uint8Array;
9
16
  params?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>[];
10
17
  }
11
18
  export declare namespace Command {
19
+ /**
20
+ * Defined in:
21
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
22
+ */
12
23
  enum Type {
13
24
  BEGIN = 0,
14
25
  HANDSHAKE = 1,
@@ -17,23 +28,43 @@ export declare namespace Command {
17
28
  CLAIM = 10
18
29
  }
19
30
  }
31
+ /**
32
+ * Defined in:
33
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
34
+ */
20
35
  export interface BeginResponse {
21
36
  info?: Partial<Record<string, ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>>>;
22
37
  }
38
+ /**
39
+ * Defined in:
40
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
41
+ */
23
42
  export interface HandshakeResponse {
24
- nonce?: Uint8Array;
25
- partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
43
+ nonce: Uint8Array;
44
+ partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
26
45
  }
46
+ /**
47
+ * Defined in:
48
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
49
+ */
27
50
  export interface NotarizeResponse {
28
51
  copies?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>[];
29
- genesisFeed?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
52
+ genesisFeed: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
30
53
  }
54
+ /**
55
+ * Defined in:
56
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
57
+ */
31
58
  export interface KeyHint {
32
- publicKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
33
- type?: dxos_halo_keys.KeyType;
59
+ publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
60
+ type: dxos_halo_keys.KeyType;
34
61
  }
62
+ /**
63
+ * Defined in:
64
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
65
+ */
35
66
  export interface ClaimResponse {
36
- id?: Uint8Array;
37
- rendezvousKey?: Uint8Array;
67
+ id: Uint8Array;
68
+ rendezvousKey: Uint8Array;
38
69
  }
39
70
  //# sourceMappingURL=greet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"greet.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/greet.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAKnD,OAAO,KAAK,cAAc,MAAM,cAAc,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,OAAO;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,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,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC;CAChC;AACD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,UAAU,CAAC;IACf,aAAa,EAAE,UAAU,CAAC;CAC7B"}
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Command = void 0;
4
4
  var Command;
5
5
  (function (Command) {
6
+ /**
7
+ * Defined in:
8
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/greet.proto}
9
+ */
6
10
  let Type;
7
11
  (function (Type) {
8
12
  Type[Type["BEGIN"] = 0] = "BEGIN";
@@ -1 +1 @@
1
- {"version":3,"file":"greet.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/greet.ts"],"names":[],"mappings":";;;AAgBA,IAAiB,OAAO,CAQvB;AARD,WAAiB,OAAO;IACpB,IAAY,IAMX;IAND,WAAY,IAAI;QACZ,iCAAS,CAAA;QACT,yCAAa,CAAA;QACb,uCAAY,CAAA;QACZ,mCAAU,CAAA;QACV,kCAAU,CAAA;IACd,CAAC,EANW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAMf;AACL,CAAC,EARgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAQvB"}
1
+ {"version":3,"file":"greet.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/greet.ts"],"names":[],"mappings":";;;AAuBA,IAAiB,OAAO,CAYvB;AAZD,WAAiB,OAAO;IACpB;;;OAGG;IACH,IAAY,IAMX;IAND,WAAY,IAAI;QACZ,iCAAS,CAAA;QACT,yCAAa,CAAA;QACb,uCAAY,CAAA;QACZ,mCAAU,CAAA;QACV,kCAAU,CAAA;IACd,CAAC,EANW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAMf;AACL,CAAC,EAZgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAYvB"}
@@ -1,10 +1,18 @@
1
1
  import substitutions from "../../../substitutions";
2
+ /**
3
+ * Defined in:
4
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/identity.proto}
5
+ */
2
6
  export interface IdentityInfo {
3
- publicKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
4
- displayName?: string;
7
+ publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
8
+ displayName: string;
5
9
  }
10
+ /**
11
+ * Defined in:
12
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/identity.proto}
13
+ */
6
14
  export interface DeviceInfo {
7
- publicKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
8
- displayName?: string;
15
+ publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
16
+ displayName: string;
9
17
  }
10
18
  //# sourceMappingURL=identity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/identity.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAOnD,MAAM,WAAW,YAAY;IACzB,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,UAAU;IACvB,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/identity.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAOnD;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,WAAW,EAAE,MAAM,CAAC;CACvB;AACD;;;GAGG;AACH,MAAM,WAAW,UAAU;IACvB,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,WAAW,EAAE,MAAM,CAAC;CACvB"}
@@ -1,8 +1,12 @@
1
1
  import substitutions from "../../../substitutions";
2
2
  import * as dxos_credentials from "../credentials";
3
3
  import * as dxos_halo_keys from "../halo/keys";
4
+ /**
5
+ * Defined in:
6
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
7
+ */
4
8
  export interface PartyCredential {
5
- type?: PartyCredential.Type;
9
+ type: PartyCredential.Type;
6
10
  envelope?: Envelope;
7
11
  partyGenesis?: PartyGenesis;
8
12
  keyAdmit?: KeyAdmit;
@@ -10,6 +14,10 @@ export interface PartyCredential {
10
14
  feedGenesis?: FeedGenesis;
11
15
  }
12
16
  export declare namespace PartyCredential {
17
+ /**
18
+ * Defined in:
19
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
20
+ */
13
21
  enum Type {
14
22
  ENVELOPE = 0,
15
23
  PARTY_GENESIS = 1,
@@ -18,33 +26,57 @@ export declare namespace PartyCredential {
18
26
  FEED_ADMIT = 4
19
27
  }
20
28
  }
29
+ /**
30
+ * Defined in:
31
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
32
+ */
21
33
  export interface PartyGenesis {
22
- partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
23
- feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
24
- admitKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
25
- admitKeyType?: dxos_halo_keys.KeyType;
34
+ partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
35
+ feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
36
+ admitKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
37
+ admitKeyType: dxos_halo_keys.KeyType;
26
38
  }
39
+ /**
40
+ * Defined in:
41
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
42
+ */
27
43
  export interface KeyAdmit {
28
- partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
29
- admitKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
30
- admitKeyType?: dxos_halo_keys.KeyType;
44
+ partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
45
+ admitKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
46
+ admitKeyType: dxos_halo_keys.KeyType;
31
47
  }
48
+ /**
49
+ * Defined in:
50
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
51
+ */
32
52
  export interface FeedAdmit {
33
- partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
34
- feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
53
+ partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
54
+ feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
35
55
  }
56
+ /**
57
+ * Defined in:
58
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
59
+ */
36
60
  export interface FeedGenesis {
37
- feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
38
- ownerKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
61
+ feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
62
+ ownerKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
39
63
  }
64
+ /**
65
+ * Defined in:
66
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
67
+ */
40
68
  export interface Envelope {
41
- partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
42
- message?: dxos_credentials.Message;
69
+ partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
70
+ message: dxos_credentials.Message;
43
71
  }
72
+ /**
73
+ * Defined in:
74
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
75
+ */
44
76
  export interface PartyInvitation {
45
- id?: Uint8Array;
46
- partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
47
- issuerKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
48
- inviteeKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
77
+ id: Uint8Array;
78
+ partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
79
+ issuerKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
80
+ inviteeKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
49
81
  }
50
82
  //# sourceMappingURL=party.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"party.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/party.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,gBAAgB,MAAM,gBAAgB,CAAC;AAInD,OAAO,KAAK,cAAc,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC5B,IAAI,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,QAAQ,C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AuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CAClF;AACD;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/E,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CACnF;AACD;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChF,OAAO,EAAE,gBAAgB,CAAC,OAAO,CAAC;CACrC;AACD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,UAAU,CAAC;IACf,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChF,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,UAAU,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CACrF"}
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PartyCredential = void 0;
4
4
  var PartyCredential;
5
5
  (function (PartyCredential) {
6
+ /**
7
+ * Defined in:
8
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/party.proto}
9
+ */
6
10
  let Type;
7
11
  (function (Type) {
8
12
  Type[Type["ENVELOPE"] = 0] = "ENVELOPE";
@@ -1 +1 @@
1
- {"version":3,"file":"party.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/party.ts"],"names":[],"mappings":";;;AAgBA,IAAiB,eAAe,CAQ/B;AARD,WAAiB,eAAe;IAC5B,IAAY,IAMX;IAND,WAAY,IAAI;QACZ,uCAAY,CAAA;QACZ,iDAAiB,CAAA;QACjB,+CAAgB,CAAA;QAChB,yCAAa,CAAA;QACb,2CAAc,CAAA;IAClB,CAAC,EANW,IAAI,GAAJ,oBAAI,KAAJ,oBAAI,QAMf;AACL,CAAC,EARgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAQ/B"}
1
+ {"version":3,"file":"party.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/party.ts"],"names":[],"mappings":";;;AAoBA,IAAiB,eAAe,CAY/B;AAZD,WAAiB,eAAe;IAC5B;;;OAGG;IACH,IAAY,IAMX;IAND,WAAY,IAAI;QACZ,uCAAY,CAAA;QACZ,iDAAiB,CAAA;QACjB,+CAAgB,CAAA;QAChB,yCAAa,CAAA;QACb,2CAAc,CAAA;IAClB,CAAC,EANW,IAAI,GAAJ,oBAAI,KAAJ,oBAAI,QAMf;AACL,CAAC,EAZgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAY/B"}
@@ -1,24 +1,63 @@
1
1
  import substitutions from "../../substitutions";
2
2
  import * as dxos_halo_keys from "./halo/keys";
3
+ /**
4
+ * Defined in:
5
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
6
+ */
3
7
  export interface Message {
4
8
  payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
5
9
  }
6
10
  /**
7
11
  * A generic container message used whenever messages are signed (e.g. PartyCredential)
12
+ *
13
+ * Defined in:
14
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
8
15
  */
9
16
  export interface SignedMessage {
17
+ /**
18
+ * The signed message contents.
19
+ */
10
20
  signed: SignedMessage.Signed;
21
+ /**
22
+ * An array of Signatures, one for each key that signed the message.
23
+ */
11
24
  signatures?: SignedMessage.Signature[];
12
25
  }
13
26
  export declare namespace SignedMessage {
27
+ /**
28
+ * Defined in:
29
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
30
+ */
14
31
  interface Signed {
32
+ /**
33
+ * RFC-3339 datetime string.
34
+ */
15
35
  created: string;
16
36
  nonce: Uint8Array;
37
+ /**
38
+ * The payload to be signed.
39
+ */
17
40
  payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
18
41
  }
42
+ /**
43
+ * Defined in:
44
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
45
+ */
19
46
  interface Signature {
47
+ /**
48
+ * The publicKey of the keypair that made this signature.
49
+ */
20
50
  key: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
51
+ /**
52
+ * The bytes of the signature.
53
+ */
21
54
  signature: Uint8Array;
55
+ /**
56
+ * The certification chain of SignedMessages for this key.
57
+ *
58
+ * Options:
59
+ * - proto3_optional = true
60
+ */
22
61
  keyChain?: dxos_halo_keys.KeyChain;
23
62
  }
24
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/credentials.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAKhD,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC;AAE9C,MAAM,WAAW,OAAO;IACpB,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CAChF;AACD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,aAAa,CAAC,SAAS,EAAE,CAAC;CAC1C;AACD,yBAAiB,aAAa,CAAC;IAC3B,UAAiB,MAAM;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,UAAU,CAAC;QAClB,OAAO,EAAE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AAE,UAAU,CAAC;QACtB;;;;;WAKG;QACH,QAAQ,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC;KACtC;CACJ"}
@@ -1,5 +1,9 @@
1
1
  import substitutions from "../../../substitutions";
2
2
  import * as dxos_credentials from "../credentials";
3
+ /**
4
+ * Defined in:
5
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
6
+ */
3
7
  export declare enum KeyType {
4
8
  UNKNOWN = 0,
5
9
  IDENTITY = 1,
@@ -8,12 +12,24 @@ export declare enum KeyType {
8
12
  FEED = 4,
9
13
  DXNS_ADDRESS = 5
10
14
  }
15
+ /**
16
+ * Defined in:
17
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
18
+ */
11
19
  export interface PubKey {
12
- data?: Uint8Array;
20
+ data: Uint8Array;
13
21
  }
22
+ /**
23
+ * Defined in:
24
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
25
+ */
14
26
  export interface PrivKey {
15
- data?: Uint8Array;
27
+ data: Uint8Array;
16
28
  }
29
+ /**
30
+ * Defined in:
31
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
32
+ */
17
33
  export interface KeyRecord {
18
34
  /**
19
35
  * The `KeyType` type of the key. This is often unknown for keys from other sources.
@@ -25,33 +41,59 @@ export interface KeyRecord {
25
41
  publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
26
42
  /**
27
43
  * The secret key as a Buffer (this will never be visible outside the Keyring).
44
+ *
45
+ * Options:
46
+ * - proto3_optional = true
28
47
  */
29
48
  secretKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PrivKey"]["decode"]>;
30
49
  /**
31
50
  * Is this key from a Greeting "hint"?
51
+ *
52
+ * Options:
53
+ * - proto3_optional = true
32
54
  */
33
55
  hint?: boolean;
34
56
  /**
35
57
  * Determines if this is our key?
36
58
  * Usually true if `secretKey` is present; may be false for "inception keys" such as the Party key.
59
+ *
60
+ * Options:
61
+ * - proto3_optional = true
37
62
  */
38
63
  own?: boolean;
39
64
  /**
40
65
  * Is this key to be trusted?
66
+ *
67
+ * Options:
68
+ * - proto3_optional = true
41
69
  */
42
70
  trusted?: boolean;
43
71
  /**
44
72
  * An RFC-3339 date/time string for when the key was added to the Keyring.
73
+ *
74
+ * Options:
75
+ * - proto3_optional = true
45
76
  */
46
77
  added?: string;
47
78
  /**
48
79
  * An RFC-3339 date/time string for when the key was created.
80
+ *
81
+ * Options:
82
+ * - proto3_optional = true
49
83
  */
50
84
  created?: string;
51
85
  }
86
+ /**
87
+ * Defined in:
88
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
89
+ */
52
90
  export interface KeyRecordList {
53
91
  keys?: KeyRecord[];
54
92
  }
93
+ /**
94
+ * Defined in:
95
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
96
+ */
55
97
  export interface KeyChain {
56
98
  publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
57
99
  message: dxos_credentials.SignedMessage;
@@ -1 +1 @@
1
- {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/halo/keys.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,gBAAgB,MAAM,gBAAgB,CAAC;AAMnD,oBAAY,OAAO;IACf,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,KAAK,IAAI;IACT,IAAI,IAAI;IACR,YAAY,IAAI;CACnB;AACD,MAAM,WAAW,MAAM;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;CACrB;AACD,MAAM,WAAW,OAAO;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;CACrB;AACD,MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,U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MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF;;;;;OAKG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,wBAAwB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnF;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AACD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;CACtB;AACD;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,OAAO,EAAE,gBAAgB,CAAC,aAAa,CAAC;IACxC,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;CACxB"}
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.KeyType = void 0;
4
+ /**
5
+ * Defined in:
6
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
7
+ */
4
8
  var KeyType;
5
9
  (function (KeyType) {
6
10
  KeyType[KeyType["UNKNOWN"] = 0] = "UNKNOWN";
@@ -1 +1 @@
1
- {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/halo/keys.ts"],"names":[],"mappings":";;;AAQA,IAAY,OAOX;AAPD,WAAY,OAAO;IACf,2CAAW,CAAA;IACX,6CAAY,CAAA;IACZ,yCAAU,CAAA;IACV,uCAAS,CAAA;IACT,qCAAQ,CAAA;IACR,qDAAgB,CAAA;AACpB,CAAC,EAPW,OAAO,GAAP,eAAO,KAAP,eAAO,QAOlB"}
1
+ {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/halo/keys.ts"],"names":[],"mappings":";;;AAQA;;;GAGG;AACH,IAAY,OAOX;AAPD,WAAY,OAAO;IACf,2CAAW,CAAA;IACX,6CAAY,CAAA;IACZ,yCAAU,CAAA;IACV,uCAAS,CAAA;IACT,qCAAQ,CAAA;IACR,qDAAgB,CAAA;AACpB,CAAC,EAPW,OAAO,GAAP,eAAO,KAAP,eAAO,QAOlB"}