@dxos/protocols 0.1.2 → 0.1.3

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 (123) hide show
  1. package/dist/src/proto/gen/dxos/bot.d.ts +11 -11
  2. package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -1
  3. package/dist/src/proto/gen/dxos/client/services.d.ts +247 -0
  4. package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -0
  5. package/dist/src/proto/gen/dxos/client/services.js +32 -0
  6. package/dist/src/proto/gen/dxos/client/services.js.map +1 -0
  7. package/dist/src/proto/gen/dxos/client.d.ts +49 -68
  8. package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
  9. package/dist/src/proto/gen/dxos/config.d.ts +0 -16
  10. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
  11. package/dist/src/proto/gen/dxos/config.js +0 -12
  12. package/dist/src/proto/gen/dxos/config.js.map +1 -1
  13. package/dist/src/proto/gen/dxos/devtools/host.d.ts +52 -21
  14. package/dist/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  15. package/dist/src/proto/gen/dxos/devtools/{swarmLog.d.ts → swarm.d.ts} +4 -4
  16. package/dist/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -0
  17. package/dist/src/proto/gen/dxos/devtools/{swarmLog.js → swarm.js} +1 -1
  18. package/dist/src/proto/gen/dxos/devtools/swarm.js.map +1 -0
  19. package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
  20. package/dist/src/proto/gen/dxos/echo/metadata.d.ts +5 -5
  21. package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
  22. package/dist/src/proto/gen/dxos/echo/service.d.ts +3 -3
  23. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  24. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +2 -2
  25. package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts +3 -3
  26. package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts +1 -1
  27. package/dist/src/proto/gen/dxos/halo/credentials.d.ts +25 -27
  28. package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
  29. package/dist/src/proto/gen/dxos/halo/credentials.js +5 -5
  30. package/dist/src/proto/gen/dxos/halo/invitations.d.ts +10 -44
  31. package/dist/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
  32. package/dist/src/proto/gen/dxos/halo/invitations.js +0 -13
  33. package/dist/src/proto/gen/dxos/halo/invitations.js.map +1 -1
  34. package/dist/src/proto/gen/dxos/halo/keys.d.ts +2 -2
  35. package/dist/src/proto/gen/dxos/halo/keys.js +1 -1
  36. package/dist/src/proto/gen/dxos/halo/signed.d.ts +1 -1
  37. package/dist/src/proto/gen/dxos/service/publisher.d.ts.map +1 -1
  38. package/dist/src/proto/gen/dxos/service/scheduler.d.ts +1 -1
  39. package/dist/src/proto/gen/dxos/service/scheduler.d.ts.map +1 -1
  40. package/dist/src/proto/gen/index.d.ts +56 -41
  41. package/dist/src/proto/gen/index.d.ts.map +1 -1
  42. package/dist/src/proto/gen/index.js +1 -1
  43. package/dist/src/proto/gen/index.js.map +1 -1
  44. package/package.json +5 -5
  45. package/proto/dxos/client/services.d.ts +2 -0
  46. package/proto/dxos/{devtools/swarmLog.d.ts.map → client/services.d.ts.map} +2 -2
  47. package/proto/dxos/client/services.js +2 -0
  48. package/proto/dxos/devtools/diagnostics.d.ts +2 -0
  49. package/proto/dxos/devtools/diagnostics.d.ts.map +10 -0
  50. package/proto/dxos/devtools/diagnostics.js +2 -0
  51. package/proto/dxos/devtools/swarm.d.ts +2 -0
  52. package/proto/dxos/{halo/credentials/party.d.ts.map → devtools/swarm.d.ts.map} +2 -2
  53. package/proto/dxos/devtools/{swarmLog.js → swarm.js} +1 -1
  54. package/src/proto/dxos/bot.proto +11 -11
  55. package/src/proto/dxos/client/services.proto +197 -0
  56. package/src/proto/dxos/client.proto +49 -55
  57. package/src/proto/dxos/config.proto +2 -15
  58. package/src/proto/dxos/devtools/diagnostics.proto +28 -0
  59. package/src/proto/dxos/devtools/host.proto +21 -23
  60. package/src/proto/dxos/devtools/{swarmLog.proto → swarm.proto} +1 -1
  61. package/src/proto/dxos/echo/metadata.proto +6 -6
  62. package/src/proto/dxos/echo/service.proto +3 -3
  63. package/src/proto/dxos/echo/snapshot.proto +5 -5
  64. package/src/proto/dxos/echo/timeframe.proto +1 -1
  65. package/src/proto/dxos/halo/credentials/auth.proto +3 -3
  66. package/src/proto/dxos/halo/credentials/greet.proto +19 -19
  67. package/src/proto/dxos/halo/credentials.proto +21 -20
  68. package/src/proto/dxos/halo/invitations.proto +9 -27
  69. package/src/proto/dxos/halo/keys.proto +2 -2
  70. package/src/proto/dxos/halo/signed.proto +1 -1
  71. package/src/proto/dxos/service/scheduler.proto +1 -1
  72. package/src/proto/gen/dxos/bot.ts +12 -12
  73. package/src/proto/gen/dxos/client/services.ts +283 -0
  74. package/src/proto/gen/dxos/client.ts +50 -69
  75. package/src/proto/gen/dxos/config.ts +2 -18
  76. package/src/proto/gen/dxos/devtools/host.ts +53 -22
  77. package/src/proto/gen/dxos/devtools/{swarmLog.ts → swarm.ts} +4 -4
  78. package/src/proto/gen/dxos/echo/feed.ts +2 -2
  79. package/src/proto/gen/dxos/echo/metadata.ts +7 -7
  80. package/src/proto/gen/dxos/echo/model/messenger.ts +2 -2
  81. package/src/proto/gen/dxos/echo/model/object.ts +2 -2
  82. package/src/proto/gen/dxos/echo/model/text.ts +2 -2
  83. package/src/proto/gen/dxos/echo/service.ts +5 -5
  84. package/src/proto/gen/dxos/echo/snapshot.ts +4 -4
  85. package/src/proto/gen/dxos/echo/timeframe.ts +2 -2
  86. package/src/proto/gen/dxos/halo/credentials/auth.ts +5 -5
  87. package/src/proto/gen/dxos/halo/credentials/greet.ts +3 -3
  88. package/src/proto/gen/dxos/halo/credentials/identity.ts +2 -2
  89. package/src/proto/gen/dxos/halo/credentials.ts +27 -29
  90. package/src/proto/gen/dxos/halo/invitations.ts +12 -46
  91. package/src/proto/gen/dxos/halo/keyring.ts +2 -2
  92. package/src/proto/gen/dxos/halo/keys.ts +4 -4
  93. package/src/proto/gen/dxos/halo/signed.ts +3 -3
  94. package/src/proto/gen/dxos/iframe.ts +2 -2
  95. package/src/proto/gen/dxos/keys.ts +2 -2
  96. package/src/proto/gen/dxos/mesh/bridge.ts +2 -2
  97. package/src/proto/gen/dxos/mesh/broadcast.ts +2 -2
  98. package/src/proto/gen/dxos/mesh/messaging.ts +2 -2
  99. package/src/proto/gen/dxos/mesh/presence.ts +2 -2
  100. package/src/proto/gen/dxos/mesh/protocol.ts +2 -2
  101. package/src/proto/gen/dxos/mesh/replicator.ts +2 -2
  102. package/src/proto/gen/dxos/mesh/signal.ts +2 -2
  103. package/src/proto/gen/dxos/mesh/swarm.ts +2 -2
  104. package/src/proto/gen/dxos/registry.ts +2 -2
  105. package/src/proto/gen/dxos/rpc.ts +2 -2
  106. package/src/proto/gen/dxos/service/publisher.ts +2 -2
  107. package/src/proto/gen/dxos/service/scheduler.ts +3 -3
  108. package/src/proto/gen/dxos/type.ts +2 -2
  109. package/src/proto/gen/example/testing/data.ts +2 -2
  110. package/src/proto/gen/example/testing/rpc.ts +2 -2
  111. package/src/proto/gen/google/protobuf.ts +2 -2
  112. package/src/proto/gen/index.ts +57 -42
  113. package/dist/src/proto/gen/dxos/devtools/swarmLog.d.ts.map +0 -1
  114. package/dist/src/proto/gen/dxos/devtools/swarmLog.js.map +0 -1
  115. package/dist/src/proto/gen/dxos/halo/credentials/party.d.ts +0 -82
  116. package/dist/src/proto/gen/dxos/halo/credentials/party.d.ts.map +0 -1
  117. package/dist/src/proto/gen/dxos/halo/credentials/party.js +0 -19
  118. package/dist/src/proto/gen/dxos/halo/credentials/party.js.map +0 -1
  119. package/proto/dxos/devtools/swarmLog.d.ts +0 -2
  120. package/proto/dxos/halo/credentials/party.d.ts +0 -2
  121. package/proto/dxos/halo/credentials/party.js +0 -2
  122. package/src/proto/dxos/halo/credentials/party.proto +0 -127
  123. package/src/proto/gen/dxos/halo/credentials/party.ts +0 -119
@@ -1 +0,0 @@
1
- {"version":3,"file":"swarmLog.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/devtools/swarmLog.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAwCnD;;;GAGG;AACH,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxE,KAAK,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3E;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;CAClC;AACD;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/E,YAAY,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClF;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;CAC9B;AACD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"swarmLog.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/devtools/swarmLog.ts"],"names":[],"mappings":""}
@@ -1,82 +0,0 @@
1
- import substitutions from "../../../../substitutions";
2
- import * as dxos_halo_keys from "../keys";
3
- import * as dxos_halo_signed from "../signed";
4
- /**
5
- * Defined in:
6
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
7
- */
8
- export interface PartyCredential {
9
- type: PartyCredential.Type;
10
- envelope?: Envelope;
11
- partyGenesis?: PartyGenesis;
12
- keyAdmit?: KeyAdmit;
13
- feedAdmit?: FeedAdmit;
14
- feedGenesis?: FeedGenesis;
15
- }
16
- export declare namespace PartyCredential {
17
- /**
18
- * Defined in:
19
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
20
- */
21
- enum Type {
22
- ENVELOPE = 0,
23
- PARTY_GENESIS = 1,
24
- FEED_GENESIS = 2,
25
- KEY_ADMIT = 3,
26
- FEED_ADMIT = 4
27
- }
28
- }
29
- /**
30
- * Defined in:
31
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
32
- */
33
- export interface PartyGenesis {
34
- partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
35
- feedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
36
- admitKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
37
- admitKeyType: dxos_halo_keys.KeyType;
38
- }
39
- /**
40
- * Defined in:
41
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
42
- */
43
- export interface KeyAdmit {
44
- partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
45
- admitKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
46
- admitKeyType: dxos_halo_keys.KeyType;
47
- }
48
- /**
49
- * Defined in:
50
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
51
- */
52
- export interface FeedAdmit {
53
- partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
54
- feedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
55
- }
56
- /**
57
- * Defined in:
58
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
59
- */
60
- export interface FeedGenesis {
61
- feedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
62
- ownerKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
63
- }
64
- /**
65
- * Defined in:
66
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
67
- */
68
- export interface Envelope {
69
- partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
70
- message: dxos_halo_signed.Message;
71
- }
72
- /**
73
- * Defined in:
74
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
75
- */
76
- export interface PartyInvitation {
77
- id: Uint8Array;
78
- partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
79
- issuerKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
80
- inviteeKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
81
- }
82
- //# sourceMappingURL=party.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"party.d.ts","sourceRoot":"","sources":["../../../../../../../src/proto/gen/dxos/halo/credentials/party.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,2BAA2B,CAAC;AAoBtD,OAAO,KAAK,cAAc,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,gBAAgB,MAAM,WAAW,CAAC;AAmB9C;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B;AACD,yBAAiB,eAAe,CAAC;IAC7B;;;OAGG;IACH,KAAY,IAAI;QACZ,QAAQ,IAAI;QACZ,aAAa,IAAI;QACjB,YAAY,IAAI;QAChB,SAAS,IAAI;QACb,UAAU,IAAI;KACjB;CACJ;AACD;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9E,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7E,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9E,YAAY,EAAE,cAAc,CAAC,OAAO,CAAC;CACxC;AACD;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9E,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9E,YAAY,EAAE,cAAc,CAAC,OAAO,CAAC;CACxC;AACD;;;GAGG;AACH,MAAM,WAAW,SAAS;IACtB,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9E,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CAChF;AACD;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7E,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CACjF;AACD;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9E,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,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9E,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/E,UAAU,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CACnF"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PartyCredential = void 0;
4
- var PartyCredential;
5
- (function (PartyCredential) {
6
- /**
7
- * Defined in:
8
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
9
- */
10
- let Type;
11
- (function (Type) {
12
- Type[Type["ENVELOPE"] = 0] = "ENVELOPE";
13
- Type[Type["PARTY_GENESIS"] = 1] = "PARTY_GENESIS";
14
- Type[Type["FEED_GENESIS"] = 2] = "FEED_GENESIS";
15
- Type[Type["KEY_ADMIT"] = 3] = "KEY_ADMIT";
16
- Type[Type["FEED_ADMIT"] = 4] = "FEED_ADMIT";
17
- })(Type = PartyCredential.Type || (PartyCredential.Type = {}));
18
- })(PartyCredential = exports.PartyCredential || (exports.PartyCredential = {}));
19
- //# sourceMappingURL=party.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"party.js","sourceRoot":"","sources":["../../../../../../../src/proto/gen/dxos/halo/credentials/party.ts"],"names":[],"mappings":";;;AAqDA,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,2 +0,0 @@
1
- // Generated file: do not edit.
2
- export * from '../../../dist/src/proto/gen/dxos/devtools/swarmLog';
@@ -1,2 +0,0 @@
1
- // Generated file: do not edit.
2
- export * from '../../../../dist/src/proto/gen/dxos/halo/credentials/party';
@@ -1,2 +0,0 @@
1
- // Generated file: do not edit.
2
- module.exports = require('../../../../dist/src/proto/gen/dxos/halo/credentials/party');
@@ -1,127 +0,0 @@
1
- //
2
- // Copyright 2020 DXOS.org
3
- //
4
-
5
- syntax = "proto3";
6
-
7
- import "dxos/halo/keys.proto";
8
- import "dxos/halo/signed.proto";
9
- import "dxos/keys.proto";
10
-
11
- package dxos.halo.credentials.party;
12
-
13
- //
14
- // Party Credentials are messages that, by virtue of their being signed by a key that is a
15
- // recognized authority, convey to the recipient that something should be allowed or done.
16
- // They are therefore similar in structure and purpose to X.509 certificates and to W3C
17
- // Verifiable Credentials. The "subject" for a Party Credential (who or what can do the thing allowed),
18
- // along with the kind of action permitted is specified in one of the four contained message
19
- // types: PartyGenesis, FeedGenesis, KeyAdmit, FeedAdmit. One such subject message is
20
- // present in the contents field of each PartyCredential message.
21
- // PartyMessage carries common metadata (created, nonce) and the type of the subject message (type).
22
- // Note that the subject message type is explicitly present in the type field even though
23
- // its type will be discoverable via the relevant codec at runtime. This arrangement allows
24
- // for signing to be done over the relevant fields (fields for which signature inclusion is
25
- // necessary to ensure the security of the system), without needing to make assumptions about
26
- // the presence and specific form of the codec-supplied message type identification.
27
- // The complete credential comprises the PartyCredential message contents, signed by the
28
- // relevant authority key(s), encoded as a SignedMessage (see ../signed.proto).
29
- //
30
- message PartyCredential {
31
- enum Type {
32
- ENVELOPE = 0;
33
- PARTY_GENESIS = 1;
34
- FEED_GENESIS = 2;
35
- KEY_ADMIT = 3;
36
- FEED_ADMIT = 4;
37
- }
38
-
39
- Type type = 1;
40
-
41
- oneof contents {
42
- Envelope envelope = 10;
43
- PartyGenesis party_genesis = 11;
44
- KeyAdmit key_admit = 12;
45
- FeedAdmit feed_admit = 13;
46
- FeedGenesis feed_genesis = 14;
47
- }
48
- }
49
-
50
- //
51
- // The start-of-authority record for the Party, admitting a single key (usually a pseudonym) and a single feed.
52
- // It must be signed by all three keys (party, key, feed). The Party private key should be destroyed after
53
- // signing this message. This pattern is sometimes called an Inception Key.
54
- //
55
- message PartyGenesis {
56
- dxos.keys.PublicKey party_key = 1; // The party public key.
57
- dxos.keys.PublicKey feed_key = 2; // The initial feed to admit.
58
- dxos.keys.PublicKey admit_key = 3; // The key to admit (usually a pseudonym key).
59
- keys.KeyType admit_key_type = 4; // The KeyType of the admitKey.
60
- }
61
-
62
- //
63
- // Admit a single public key to the Party. This message must be signed by the key to be admitted, to prevent
64
- // impersonation attacks, and unless the contents of an Envelope, also by a key which has already been admitted.
65
- // Admitted keys represent entities in the Party Authority trust tree, for example: an identity pseudonym key
66
- // representing "Alice in this party", or a device pseudonym key representing "Alice's Laptop in this Party".
67
- //
68
- message KeyAdmit {
69
- dxos.keys.PublicKey party_key = 1;
70
- dxos.keys.PublicKey admit_key = 2; // The public key to admit.
71
- keys.KeyType admit_key_type = 3; // The KeyType of the admitKey.
72
- }
73
-
74
- //
75
- // Admit a single feed to the Party. This message must be signed by the feed key to be admitted, also by some other
76
- // key which has already been admitted (usually by a device pseudonym key).
77
- // FeedAdmit messages constitute the leaf nodes in the Party Authority trust tree in that Party data is transmitted
78
- // via feeds and therefore to write to a Party a node must have at least one feed admitted.
79
- //
80
- message FeedAdmit {
81
- dxos.keys.PublicKey party_key = 1; // The Party public key.
82
- dxos.keys.PublicKey feed_key = 2; // The Feed public key.
83
- }
84
-
85
- //
86
- // The start-of-authority record for the Feed, signed by the owner of the feed and the feed.
87
- // The owner must be a key previously admitted to the Party.
88
- //
89
- message FeedGenesis {
90
- dxos.keys.PublicKey feed_key = 1; // The feed public key.
91
- dxos.keys.PublicKey owner_key = 2; // The public key of the owner of this feed.
92
- }
93
-
94
- //
95
- // TODO(burdon): Needs discussion.
96
- // A signed message containing a signed message. The nested signed structure allows a signed message
97
- // received from another node that is not yet a party member (invitee), to be published on the party on behalf
98
- // of that node by another node (greeter). It thereby provides a kind of delegated authority mechanism used to
99
- // link signatures across the two nodes in a replay and impersonation resistant manner.
100
- // Envelope is used by a Greeter to write, and countersign using
101
- // its key, a message provided to it, signed by the Invitee, to the Party, via the greeting node's feed.
102
- // The signature on the Envelope is that of the Greeter, while the signature(s) on the interior message are
103
- // those of the Invitee, demonstrating ownership by the Invitee of the keys or feeds to be admitted.
104
- // Envelope exists solely to include the party key under the countersignature, otherwise two nested SignedMessages
105
- // could be used. The party key is included to prevent replay attacks where a valid credential from one
106
- // party is used to gain access to a different party.
107
- // The interior message can only be of types:
108
- // KEY_ADMIT
109
- // FEED_ADMIT
110
- //
111
- message Envelope {
112
- dxos.keys.PublicKey party_key = 1; // The Party public key.
113
- dxos.halo.signed.Message message = 2; // The original Message.
114
- }
115
-
116
- //
117
- // A PartyInvitation message that can be written to the Party so that any Party member can authenticate
118
- // the invitee and perform greeting. This message must be written within a SignedMessage signed by the key (or KeyChain)
119
- // of listed as the `issuer`. The invitee must authenticate themselves to the Greeter with Auth messages signed by
120
- // the key (or KeyChain) of listed in the `invitee` field.
121
- //
122
- message PartyInvitation {
123
- bytes id = 1; // A unique ID for this Invitation.
124
- dxos.keys.PublicKey party_key = 2; // The public key of the Party for which this Invitation is valid.
125
- dxos.keys.PublicKey issuer_key = 3; // The public key of the Party member issuing this invitation.
126
- dxos.keys.PublicKey invitee_key = 4; // The public key of the non-member that is being invited to join the Party.
127
- }
@@ -1,119 +0,0 @@
1
- import type { Stream } from "@dxos/codec-protobuf";
2
- import substitutions from "../../../../substitutions";
3
- import * as dxos_bot from "../../bot";
4
- import * as dxos_client from "../../client";
5
- import * as dxos_config from "../../config";
6
- import * as dxos_devtools_host from "../../devtools/host";
7
- import * as dxos_devtools_swarmLog from "../../devtools/swarmLog";
8
- import * as dxos_echo_feed from "../../echo/feed";
9
- import * as dxos_echo_metadata from "../../echo/metadata";
10
- import * as dxos_echo_model_messenger from "../../echo/model/messenger";
11
- import * as dxos_echo_model_object from "../../echo/model/object";
12
- import * as dxos_echo_model_text from "../../echo/model/text";
13
- import * as dxos_echo_service from "../../echo/service";
14
- import * as dxos_echo_snapshot from "../../echo/snapshot";
15
- import * as dxos_echo_timeframe from "../../echo/timeframe";
16
- import * as dxos_halo_credentials from "../credentials";
17
- import * as dxos_halo_credentials_auth from "./auth";
18
- import * as dxos_halo_credentials_greet from "./greet";
19
- import * as dxos_halo_credentials_identity from "./identity";
20
- import * as dxos_halo_invitations from "../invitations";
21
- import * as dxos_halo_keyring from "../keyring";
22
- import * as dxos_halo_keys from "../keys";
23
- import * as dxos_halo_signed from "../signed";
24
- import * as dxos_iframe from "../../iframe";
25
- import * as dxos_keys from "../../keys";
26
- import * as dxos_mesh_bridge from "../../mesh/bridge";
27
- import * as dxos_mesh_broadcast from "../../mesh/broadcast";
28
- import * as dxos_mesh_messaging from "../../mesh/messaging";
29
- import * as dxos_mesh_presence from "../../mesh/presence";
30
- import * as dxos_mesh_protocol from "../../mesh/protocol";
31
- import * as dxos_mesh_replicator from "../../mesh/replicator";
32
- import * as dxos_mesh_signal from "../../mesh/signal";
33
- import * as dxos_mesh_swarm from "../../mesh/swarm";
34
- import * as dxos_registry from "../../registry";
35
- import * as dxos_rpc from "../../rpc";
36
- import * as dxos_service_publisher from "../../service/publisher";
37
- import * as dxos_service_scheduler from "../../service/scheduler";
38
- import * as dxos_type from "../../type";
39
- import * as example_testing_data from "../../../example/testing/data";
40
- import * as example_testing_rpc from "../../../example/testing/rpc";
41
- import * as google_protobuf from "../../../google/protobuf";
42
- /**
43
- * Defined in:
44
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
45
- */
46
- export interface PartyCredential {
47
- type: PartyCredential.Type;
48
- envelope?: Envelope;
49
- partyGenesis?: PartyGenesis;
50
- keyAdmit?: KeyAdmit;
51
- feedAdmit?: FeedAdmit;
52
- feedGenesis?: FeedGenesis;
53
- }
54
- export namespace PartyCredential {
55
- /**
56
- * Defined in:
57
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
58
- */
59
- export enum Type {
60
- ENVELOPE = 0,
61
- PARTY_GENESIS = 1,
62
- FEED_GENESIS = 2,
63
- KEY_ADMIT = 3,
64
- FEED_ADMIT = 4
65
- }
66
- }
67
- /**
68
- * Defined in:
69
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
70
- */
71
- export interface PartyGenesis {
72
- partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
73
- feedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
74
- admitKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
75
- admitKeyType: dxos_halo_keys.KeyType;
76
- }
77
- /**
78
- * Defined in:
79
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
80
- */
81
- export interface KeyAdmit {
82
- partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
83
- admitKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
84
- admitKeyType: dxos_halo_keys.KeyType;
85
- }
86
- /**
87
- * Defined in:
88
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
89
- */
90
- export interface FeedAdmit {
91
- partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
92
- feedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
93
- }
94
- /**
95
- * Defined in:
96
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
97
- */
98
- export interface FeedGenesis {
99
- feedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
100
- ownerKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
101
- }
102
- /**
103
- * Defined in:
104
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
105
- */
106
- export interface Envelope {
107
- partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
108
- message: dxos_halo_signed.Message;
109
- }
110
- /**
111
- * Defined in:
112
- * {@link file://./../../../../dxos/halo/credentials/party.proto}
113
- */
114
- export interface PartyInvitation {
115
- id: Uint8Array;
116
- partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
117
- issuerKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
118
- inviteeKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
119
- }