@dxos/protocols 2.28.0

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 (113) hide show
  1. package/dist/src/index.d.ts +1 -0
  2. package/dist/src/index.d.ts.map +1 -0
  3. package/dist/src/index.js +5 -0
  4. package/dist/src/index.js.map +1 -0
  5. package/dist/src/proto/gen/dxos/bot.d.ts +109 -0
  6. package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -0
  7. package/dist/src/proto/gen/dxos/bot.js +14 -0
  8. package/dist/src/proto/gen/dxos/bot.js.map +1 -0
  9. package/dist/src/proto/gen/dxos/client.d.ts +179 -0
  10. package/dist/src/proto/gen/dxos/client.d.ts.map +1 -0
  11. package/dist/src/proto/gen/dxos/client.js +11 -0
  12. package/dist/src/proto/gen/dxos/client.js.map +1 -0
  13. package/dist/src/proto/gen/dxos/config.d.ts +210 -0
  14. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -0
  15. package/dist/src/proto/gen/dxos/config.js +29 -0
  16. package/dist/src/proto/gen/dxos/config.js.map +1 -0
  17. package/dist/src/proto/gen/dxos/credentials/auth.d.ts +11 -0
  18. package/dist/src/proto/gen/dxos/credentials/auth.d.ts.map +1 -0
  19. package/dist/src/proto/gen/dxos/credentials/auth.js +3 -0
  20. package/dist/src/proto/gen/dxos/credentials/auth.js.map +1 -0
  21. package/dist/src/proto/gen/dxos/credentials/greet.d.ts +39 -0
  22. package/dist/src/proto/gen/dxos/credentials/greet.d.ts.map +1 -0
  23. package/dist/src/proto/gen/dxos/credentials/greet.js +15 -0
  24. package/dist/src/proto/gen/dxos/credentials/greet.js.map +1 -0
  25. package/dist/src/proto/gen/dxos/credentials/identity.d.ts +10 -0
  26. package/dist/src/proto/gen/dxos/credentials/identity.d.ts.map +1 -0
  27. package/dist/src/proto/gen/dxos/credentials/identity.js +3 -0
  28. package/dist/src/proto/gen/dxos/credentials/identity.js.map +1 -0
  29. package/dist/src/proto/gen/dxos/credentials/party.d.ts +49 -0
  30. package/dist/src/proto/gen/dxos/credentials/party.d.ts.map +1 -0
  31. package/dist/src/proto/gen/dxos/credentials/party.js +15 -0
  32. package/dist/src/proto/gen/dxos/credentials/party.js.map +1 -0
  33. package/dist/src/proto/gen/dxos/credentials.d.ts +25 -0
  34. package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -0
  35. package/dist/src/proto/gen/dxos/credentials.js +3 -0
  36. package/dist/src/proto/gen/dxos/credentials.js.map +1 -0
  37. package/dist/src/proto/gen/dxos/devtools.d.ts +196 -0
  38. package/dist/src/proto/gen/dxos/devtools.d.ts.map +1 -0
  39. package/dist/src/proto/gen/dxos/devtools.js +3 -0
  40. package/dist/src/proto/gen/dxos/devtools.js.map +1 -0
  41. package/dist/src/proto/gen/dxos/echo/feed.d.ts +69 -0
  42. package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -0
  43. package/dist/src/proto/gen/dxos/echo/feed.js +13 -0
  44. package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -0
  45. package/dist/src/proto/gen/dxos/echo/invitation.d.ts +20 -0
  46. package/dist/src/proto/gen/dxos/echo/invitation.d.ts.map +1 -0
  47. package/dist/src/proto/gen/dxos/echo/invitation.js +12 -0
  48. package/dist/src/proto/gen/dxos/echo/invitation.js.map +1 -0
  49. package/dist/src/proto/gen/dxos/echo/metadata.d.ts +19 -0
  50. package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -0
  51. package/dist/src/proto/gen/dxos/echo/metadata.js +3 -0
  52. package/dist/src/proto/gen/dxos/echo/metadata.js.map +1 -0
  53. package/dist/src/proto/gen/dxos/echo/service.d.ts +47 -0
  54. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -0
  55. package/dist/src/proto/gen/dxos/echo/service.js +3 -0
  56. package/dist/src/proto/gen/dxos/echo/service.js.map +1 -0
  57. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +51 -0
  58. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -0
  59. package/dist/src/proto/gen/dxos/echo/snapshot.js +3 -0
  60. package/dist/src/proto/gen/dxos/echo/snapshot.js.map +1 -0
  61. package/dist/src/proto/gen/dxos/halo/keys.d.ts +59 -0
  62. package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -0
  63. package/dist/src/proto/gen/dxos/halo/keys.js +13 -0
  64. package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -0
  65. package/dist/src/proto/gen/dxos/rpc.d.ts +41 -0
  66. package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -0
  67. package/dist/src/proto/gen/dxos/rpc.js +12 -0
  68. package/dist/src/proto/gen/dxos/rpc.js.map +1 -0
  69. package/dist/src/proto/gen/google/protobuf.d.ts +277 -0
  70. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -0
  71. package/dist/src/proto/gen/google/protobuf.js +58 -0
  72. package/dist/src/proto/gen/google/protobuf.js.map +1 -0
  73. package/dist/src/proto/gen/index.d.ts +249 -0
  74. package/dist/src/proto/gen/index.d.ts.map +1 -0
  75. package/dist/src/proto/gen/index.js +7 -0
  76. package/dist/src/proto/gen/index.js.map +1 -0
  77. package/dist/tsconfig.tsbuildinfo +1 -0
  78. package/package.json +35 -0
  79. package/src/index.ts +3 -0
  80. package/src/proto/dxos/bot.proto +120 -0
  81. package/src/proto/dxos/client.proto +237 -0
  82. package/src/proto/dxos/config.proto +254 -0
  83. package/src/proto/dxos/devtools.proto +271 -0
  84. package/src/proto/dxos/echo/feed.proto +93 -0
  85. package/src/proto/dxos/echo/invitation.proto +29 -0
  86. package/src/proto/dxos/echo/metadata.proto +30 -0
  87. package/src/proto/dxos/echo/service.proto +64 -0
  88. package/src/proto/dxos/echo/snapshot.proto +88 -0
  89. package/src/proto/dxos/halo/auth.proto +20 -0
  90. package/src/proto/dxos/halo/greet.proto +125 -0
  91. package/src/proto/dxos/halo/identity.proto +24 -0
  92. package/src/proto/dxos/halo/keys.proto +88 -0
  93. package/src/proto/dxos/halo/party.proto +127 -0
  94. package/src/proto/dxos/halo/signed.proto +42 -0
  95. package/src/proto/dxos/rpc.proto +59 -0
  96. package/src/proto/gen/dxos/bot.ts +120 -0
  97. package/src/proto/gen/dxos/client.ts +190 -0
  98. package/src/proto/gen/dxos/config.ts +225 -0
  99. package/src/proto/gen/dxos/credentials/auth.ts +26 -0
  100. package/src/proto/gen/dxos/credentials/greet.ts +53 -0
  101. package/src/proto/gen/dxos/credentials/identity.ts +25 -0
  102. package/src/proto/gen/dxos/credentials/party.ts +63 -0
  103. package/src/proto/gen/dxos/credentials.ts +39 -0
  104. package/src/proto/gen/dxos/devtools.ts +206 -0
  105. package/src/proto/gen/dxos/echo/feed.ts +84 -0
  106. package/src/proto/gen/dxos/echo/invitation.ts +36 -0
  107. package/src/proto/gen/dxos/echo/metadata.ts +33 -0
  108. package/src/proto/gen/dxos/echo/service.ts +59 -0
  109. package/src/proto/gen/dxos/echo/snapshot.ts +66 -0
  110. package/src/proto/gen/dxos/halo/keys.ts +74 -0
  111. package/src/proto/gen/dxos/rpc.ts +56 -0
  112. package/src/proto/gen/google/protobuf.ts +293 -0
  113. package/src/proto/gen/index.ts +248 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"greet.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/greet.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,cAAc,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC;AACzD;;GAEG;AACH,MAAM,WAAW,OAAO;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,eAAe,CAAC,GAAG,EAAE,CAAC;CAClC;AACD,yBAAiB,OAAO,CAAC;IACrB,KAAY,IAAI;QACZ,KAAK,IAAI;QACT,SAAS,IAAI;QACb,QAAQ,IAAI;QACZ,MAAM,IAAI;QACV,KAAK,KAAK;KACb;CACJ;AACD,MAAM,WAAW,aAAa;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;CACvD;AACD,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC;CACpC;AACD,MAAM,WAAW,gBAAgB;IAC7B,MAAM,CAAC,EAAE,eAAe,CAAC,GAAG,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;CACrB;AACD,MAAM,WAAW,OAAO;IACpB,SAAS,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC;CACjC;AACD,MAAM,WAAW,aAAa;IAC1B,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,aAAa,CAAC,EAAE,UAAU,CAAC;CAC9B"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Command = void 0;
4
+ var Command;
5
+ (function (Command) {
6
+ let Type;
7
+ (function (Type) {
8
+ Type[Type["BEGIN"] = 0] = "BEGIN";
9
+ Type[Type["HANDSHAKE"] = 1] = "HANDSHAKE";
10
+ Type[Type["NOTARIZE"] = 2] = "NOTARIZE";
11
+ Type[Type["FINISH"] = 3] = "FINISH";
12
+ Type[Type["CLAIM"] = 10] = "CLAIM";
13
+ })(Type = Command.Type || (Command.Type = {}));
14
+ })(Command = exports.Command || (exports.Command = {}));
15
+ //# sourceMappingURL=greet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"greet.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/greet.ts"],"names":[],"mappings":";;;AAyBA,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"}
@@ -0,0 +1,10 @@
1
+ import * as dxos_halo_keys from "../halo/keys";
2
+ export interface IdentityInfo {
3
+ publicKey?: dxos_halo_keys.PubKey;
4
+ displayName?: string;
5
+ }
6
+ export interface DeviceInfo {
7
+ publicKey?: dxos_halo_keys.PubKey;
8
+ displayName?: string;
9
+ }
10
+ //# sourceMappingURL=identity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/identity.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,cAAc,MAAM,cAAc,CAAC;AAG/C,MAAM,WAAW,YAAY;IACzB,SAAS,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,UAAU;IACvB,SAAS,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=identity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/identity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,49 @@
1
+ import * as dxos_credentials from "../credentials";
2
+ import * as dxos_halo_keys from "../halo/keys";
3
+ export interface PartyCredential {
4
+ type?: PartyCredential.Type;
5
+ envelope?: Envelope;
6
+ partyGenesis?: PartyGenesis;
7
+ keyAdmit?: KeyAdmit;
8
+ feedAdmit?: FeedAdmit;
9
+ feedGenesis?: FeedGenesis;
10
+ }
11
+ export declare namespace PartyCredential {
12
+ enum Type {
13
+ ENVELOPE = 0,
14
+ PARTY_GENESIS = 1,
15
+ FEED_GENESIS = 2,
16
+ KEY_ADMIT = 3,
17
+ FEED_ADMIT = 4
18
+ }
19
+ }
20
+ export interface PartyGenesis {
21
+ partyKey?: dxos_halo_keys.PubKey;
22
+ feedKey?: dxos_halo_keys.PubKey;
23
+ admitKey?: dxos_halo_keys.PubKey;
24
+ admitKeyType?: dxos_halo_keys.KeyType;
25
+ }
26
+ export interface KeyAdmit {
27
+ partyKey?: dxos_halo_keys.PubKey;
28
+ admitKey?: dxos_halo_keys.PubKey;
29
+ admitKeyType?: dxos_halo_keys.KeyType;
30
+ }
31
+ export interface FeedAdmit {
32
+ partyKey?: dxos_halo_keys.PubKey;
33
+ feedKey?: dxos_halo_keys.PubKey;
34
+ }
35
+ export interface FeedGenesis {
36
+ feedKey?: dxos_halo_keys.PubKey;
37
+ ownerKey?: dxos_halo_keys.PubKey;
38
+ }
39
+ export interface Envelope {
40
+ partyKey?: dxos_halo_keys.PubKey;
41
+ message?: dxos_credentials.Message;
42
+ }
43
+ export interface PartyInvitation {
44
+ id?: Uint8Array;
45
+ partyKey?: dxos_halo_keys.PubKey;
46
+ issuerKey?: dxos_halo_keys.PubKey;
47
+ inviteeKey?: dxos_halo_keys.PubKey;
48
+ }
49
+ //# sourceMappingURL=party.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"party.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/party.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,gBAAgB,MAAM,gBAAgB,CAAC;AAUnD,OAAO,KAAK,cAAc,MAAM,cAAc,CAAC;AAG/C,MAAM,WAAW,eAAe;IAC5B,IAAI,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAA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ACtC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PartyCredential = void 0;
4
+ var PartyCredential;
5
+ (function (PartyCredential) {
6
+ let Type;
7
+ (function (Type) {
8
+ Type[Type["ENVELOPE"] = 0] = "ENVELOPE";
9
+ Type[Type["PARTY_GENESIS"] = 1] = "PARTY_GENESIS";
10
+ Type[Type["FEED_GENESIS"] = 2] = "FEED_GENESIS";
11
+ Type[Type["KEY_ADMIT"] = 3] = "KEY_ADMIT";
12
+ Type[Type["FEED_ADMIT"] = 4] = "FEED_ADMIT";
13
+ })(Type = PartyCredential.Type || (PartyCredential.Type = {}));
14
+ })(PartyCredential = exports.PartyCredential || (exports.PartyCredential = {}));
15
+ //# sourceMappingURL=party.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"party.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/credentials/party.ts"],"names":[],"mappings":";;;AAyBA,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"}
@@ -0,0 +1,25 @@
1
+ import * as dxos_halo_keys from "./halo/keys";
2
+ import * as google_protobuf from "../google/protobuf";
3
+ export interface Message {
4
+ payload: google_protobuf.Any;
5
+ }
6
+ /**
7
+ * A generic container message used whenever messages are signed (e.g. PartyCredential)
8
+ */
9
+ export interface SignedMessage {
10
+ signed: SignedMessage.Signed;
11
+ signatures?: SignedMessage.Signature[];
12
+ }
13
+ export declare namespace SignedMessage {
14
+ interface Signed {
15
+ created: string;
16
+ nonce: Uint8Array;
17
+ payload: google_protobuf.Any;
18
+ }
19
+ interface Signature {
20
+ key: dxos_halo_keys.PubKey;
21
+ signature: Uint8Array;
22
+ keyChain?: dxos_halo_keys.KeyChain;
23
+ }
24
+ }
25
+ //# sourceMappingURL=credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/credentials.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,MAAM,WAAW,OAAO;IACpB,OAAO,EAAE,eAAe,CAAC,GAAG,CAAC;CAChC;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,eAAe,CAAC,GAAG,CAAC;KAChC;IACD,UAAiB,SAAS;QACtB,GAAG,EAAE,cAAc,CAAC,MAAM,CAAC;QAC3B,SAAS,EAAE,UAAU,CAAC;QACtB,QAAQ,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC;KACtC;CACJ"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/credentials.ts"],"names":[],"mappings":""}
@@ -0,0 +1,196 @@
1
+ import type { Stream } from "@dxos/codec-protobuf";
2
+ import * as dxos_credentials from "./credentials";
3
+ import * as dxos_echo_feed from "./echo/feed";
4
+ import * as dxos_echo_snapshot from "./echo/snapshot";
5
+ import * as dxos_halo_keys from "./halo/keys";
6
+ import * as dxos_rpc from "./rpc";
7
+ export interface DevtoolsHost {
8
+ events: (request: void) => Stream<Event>;
9
+ getConfig: (request: void) => Promise<GetConfigResponse>;
10
+ resetStorage: (request: ResetStorageRequest) => Promise<void>;
11
+ enableDebugLogging: (request: EnableDebugLoggingRequest) => Promise<EnableDebugLoggingResponse>;
12
+ disableDebugLogging: (request: EnableDebugLoggingRequest) => Promise<EnableDebugLoggingResponse>;
13
+ subscribeToKeyringKeys: (request: SubscribeToKeyringKeysRequest) => Stream<SubscribeToKeyringKeysResponse>;
14
+ subscribeToCredentialMessages: (request: SubscribeToCredentialMessagesRequest) => Stream<SubscribeToCredentialMessagesResponse>;
15
+ subscribeToParties: (request: SubscribeToPartiesRequest) => Stream<SubscribeToPartiesResponse>;
16
+ subscribeToItems: (request: SubscribeToItemsRequest) => Stream<SubscribeToItemsResponse>;
17
+ subscribeToFeeds: (request: SubscribeToFeedsRequest) => Stream<SubscribeToFeedsResponse>;
18
+ subscribeToFeed: (request: SubscribeToFeedRequest) => Stream<SubscribeToFeedResponse>;
19
+ getPartySnapshot: (request: GetPartySnapshotRequest) => Promise<GetPartySnapshotResponse>;
20
+ savePartySnapshot: (request: SavePartySnapshotRequest) => Promise<SavePartySnapshotResponse>;
21
+ clearSnapshots: (request: ClearSnapshotsRequest) => Promise<void>;
22
+ getNetworkPeers: (request: GetNetworkPeersRequest) => Promise<GetNetworkPeersResponse>;
23
+ subscribeToNetworkTopics: (request: void) => Stream<SubscribeToNetworkTopicsResponse>;
24
+ subscribeToSignalStatus: (request: void) => Stream<SubscribeToSignalStatusResponse>;
25
+ subscribeToSignalTrace: (request: void) => Stream<SubscribeToSignalTraceResponse>;
26
+ subscribeToSwarmInfo: (request: SubscribeToSwarmInfoRequest) => Stream<SubscribeToSwarmInfoResponse>;
27
+ }
28
+ export interface Event {
29
+ ready?: ReadyEvent;
30
+ }
31
+ export interface ReadyEvent {
32
+ }
33
+ export interface GetConfigResponse {
34
+ config?: string;
35
+ }
36
+ export interface EnableDebugLoggingRequest {
37
+ namespaces?: string;
38
+ }
39
+ export interface EnableDebugLoggingResponse {
40
+ enabledNamespaces?: string;
41
+ }
42
+ export interface DisableDebugLoggingRequest {
43
+ namespaces?: string;
44
+ }
45
+ export interface DisableDebugLoggingResponse {
46
+ enabledNamespaces?: string;
47
+ }
48
+ export interface SubscribeToKeyringKeysRequest {
49
+ }
50
+ export interface SubscribeToKeyringKeysResponse {
51
+ keys?: dxos_halo_keys.KeyRecord[];
52
+ }
53
+ export interface SubscribeToCredentialMessagesRequest {
54
+ partyKey?: dxos_halo_keys.PubKey;
55
+ }
56
+ export interface SubscribeToCredentialMessagesResponse {
57
+ messages?: dxos_credentials.SignedMessage[];
58
+ }
59
+ export interface ResetStorageRequest {
60
+ }
61
+ export interface GetNetworkPeersRequest {
62
+ topic?: Uint8Array;
63
+ }
64
+ export interface GetNetworkPeersResponse {
65
+ peers?: GetNetworkPeersResponse.PeerInfo[];
66
+ }
67
+ export declare namespace GetNetworkPeersResponse {
68
+ interface PeerInfo {
69
+ id?: dxos_halo_keys.PubKey;
70
+ state?: string;
71
+ connections?: Uint8Array[];
72
+ }
73
+ }
74
+ export interface SubscribeToPartiesRequest {
75
+ }
76
+ export interface SubscribeToPartiesResponse {
77
+ parties?: SubscribeToPartiesResponse.PartyInfo[];
78
+ }
79
+ export declare namespace SubscribeToPartiesResponse {
80
+ interface PartyInfo {
81
+ key?: string;
82
+ isOpen?: boolean;
83
+ isActive?: boolean;
84
+ feedKeys?: number;
85
+ properties?: Partial<Record<string, string>>;
86
+ timeframe?: dxos_echo_feed.TimeframeVector;
87
+ }
88
+ }
89
+ export interface SubscribeToItemsRequest {
90
+ }
91
+ export interface SubscribeToItemsResponse {
92
+ data?: string;
93
+ }
94
+ export interface SubscribeToFeedsRequest {
95
+ }
96
+ export interface SubscribeToFeedsResponse {
97
+ parties?: SubscribeToFeedsResponse.Party[];
98
+ }
99
+ export declare namespace SubscribeToFeedsResponse {
100
+ interface Party {
101
+ key?: dxos_halo_keys.PubKey;
102
+ feeds?: dxos_halo_keys.PubKey[];
103
+ }
104
+ }
105
+ export interface SubscribeToFeedRequest {
106
+ partyKey?: dxos_halo_keys.PubKey;
107
+ feedKey?: dxos_halo_keys.PubKey;
108
+ }
109
+ export interface SubscribeToFeedResponse {
110
+ blocks?: SubscribeToFeedResponse.EchoFeedBlock[];
111
+ }
112
+ export declare namespace SubscribeToFeedResponse {
113
+ interface EchoFeedBlock {
114
+ key?: Uint8Array;
115
+ seq?: number;
116
+ sync?: boolean;
117
+ path?: string;
118
+ data?: dxos_echo_feed.FeedMessage;
119
+ }
120
+ }
121
+ export interface GetPartySnapshotRequest {
122
+ partyKey: dxos_halo_keys.PubKey;
123
+ }
124
+ export interface GetPartySnapshotResponse {
125
+ snapshot?: dxos_echo_snapshot.PartySnapshot;
126
+ }
127
+ export interface SavePartySnapshotRequest {
128
+ partyKey: dxos_halo_keys.PubKey;
129
+ }
130
+ export interface SavePartySnapshotResponse {
131
+ snapshot?: dxos_echo_snapshot.PartySnapshot;
132
+ }
133
+ export interface ClearSnapshotsRequest {
134
+ }
135
+ export interface SubscribeToNetworkTopicsResponse {
136
+ topics?: SubscribeToNetworkTopicsResponse.Topic[];
137
+ }
138
+ export declare namespace SubscribeToNetworkTopicsResponse {
139
+ interface Topic {
140
+ topic?: dxos_halo_keys.PubKey;
141
+ label?: string;
142
+ }
143
+ }
144
+ export interface SubscribeToSignalStatusResponse {
145
+ servers?: SubscribeToSignalStatusResponse.SignalServer[];
146
+ }
147
+ export declare namespace SubscribeToSignalStatusResponse {
148
+ interface SignalServer {
149
+ host?: string;
150
+ state?: string;
151
+ error?: string;
152
+ reconnectIn?: number;
153
+ connectionStarted?: number;
154
+ lastStateChange?: number;
155
+ }
156
+ }
157
+ export interface SubscribeToSignalTraceResponse {
158
+ events?: string[];
159
+ }
160
+ export interface SubscribeToSwarmInfoRequest {
161
+ }
162
+ export interface SubscribeToSwarmInfoResponse {
163
+ data?: SubscribeToSwarmInfoResponse.SwarmInfo[];
164
+ }
165
+ export declare namespace SubscribeToSwarmInfoResponse {
166
+ interface SwarmInfo {
167
+ id?: dxos_halo_keys.PubKey;
168
+ topic?: dxos_halo_keys.PubKey;
169
+ label?: string;
170
+ isActive?: boolean;
171
+ connections?: SubscribeToSwarmInfoResponse.SwarmInfo.ConnectionInfo[];
172
+ }
173
+ namespace SwarmInfo {
174
+ interface ConnectionInfo {
175
+ state?: string;
176
+ sessionId?: dxos_halo_keys.PubKey;
177
+ remotePeerId?: dxos_halo_keys.PubKey;
178
+ transport?: string;
179
+ protocolExtensions?: string[];
180
+ events?: SubscribeToSwarmInfoResponse.SwarmInfo.ConnectionInfo.Json[];
181
+ }
182
+ namespace ConnectionInfo {
183
+ interface Json {
184
+ data?: string;
185
+ }
186
+ }
187
+ }
188
+ }
189
+ export interface SetTracingOptionsRequest {
190
+ enable?: boolean;
191
+ }
192
+ export interface TracingService {
193
+ setTracingOptions: (request: SetTracingOptionsRequest) => Promise<void>;
194
+ subscribeToRpcTrace: (request: void) => Stream<dxos_rpc.RpcMessage>;
195
+ }
196
+ //# sourceMappingURL=devtools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devtools.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/devtools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAInD,OAAO,KAAK,gBAAgB,MAAM,eAAe,CAAC;AAKlD,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC;AAI9C,OAAO,KAAK,kBAAkB,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,QAAQ,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,YAAY;IACzB,MAAM,EAAE,CAAC,OAAO,EAAE,IAAI,KAAK,MAAM,CAAC,KAAK,CAAC,CAAC;IACzC,SAAS,EAAE,CAAC,OAAO,EAAE,IA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-0,0 +1 @@
1
+ {"version":3,"file":"devtools.js","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/devtools.ts"],"names":[],"mappings":""}
@@ -0,0 +1,69 @@
1
+ import * as dxos_echo_snapshot from "./snapshot";
2
+ /**
3
+ * Outer message type decoded by Codec.
4
+ * This is what is written to the feeds.
5
+ */
6
+ export interface FeedMessage {
7
+ halo?: CredentialsMessage;
8
+ echo?: EchoEnvelope;
9
+ }
10
+ /**
11
+ * A container for dxos.credentials.Message
12
+ */
13
+ export interface CredentialsMessage {
14
+ data?: Uint8Array;
15
+ }
16
+ /**
17
+ * Vector timestamp used to order messages.
18
+ */
19
+ export interface TimeframeVector {
20
+ frames?: TimeframeVector.Frame[];
21
+ }
22
+ export declare namespace TimeframeVector {
23
+ interface Frame {
24
+ feedKey?: Uint8Array;
25
+ seq?: number;
26
+ }
27
+ }
28
+ /**
29
+ * Wrapper for all ECHO messages.
30
+ */
31
+ export interface EchoEnvelope {
32
+ itemId?: string;
33
+ timeframe?: TimeframeVector;
34
+ genesis?: ItemGenesis;
35
+ itemMutation?: ItemMutation;
36
+ mutation?: Uint8Array;
37
+ /**
38
+ * Set the model to the provided snapshot.
39
+ */
40
+ snapshot?: dxos_echo_snapshot.ModelSnapshot;
41
+ }
42
+ export interface LinkData {
43
+ source?: string;
44
+ target?: string;
45
+ }
46
+ /**
47
+ * Item creation.
48
+ */
49
+ export interface ItemGenesis {
50
+ itemType?: string;
51
+ modelType?: string;
52
+ modelVersion?: string;
53
+ link?: LinkData;
54
+ }
55
+ /**
56
+ * Item mutation.
57
+ */
58
+ export interface ItemMutation {
59
+ parentId?: string;
60
+ action?: ItemMutation.Action;
61
+ }
62
+ export declare namespace ItemMutation {
63
+ enum Action {
64
+ NOOP = 0,
65
+ DELETE = 1,
66
+ RESTORE = 2
67
+ }
68
+ }
69
+ //# sourceMappingURL=feed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../../../../../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AAY,CAAC;IAC1B,KAAY,MAAM;QACd,IAAI,IAAI;QACR,MAAM,IAAI;QACV,OAAO,IAAI;KACd;CACJ"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItemMutation = void 0;
4
+ var ItemMutation;
5
+ (function (ItemMutation) {
6
+ let Action;
7
+ (function (Action) {
8
+ Action[Action["NOOP"] = 0] = "NOOP";
9
+ Action[Action["DELETE"] = 1] = "DELETE";
10
+ Action[Action["RESTORE"] = 2] = "RESTORE";
11
+ })(Action = ItemMutation.Action || (ItemMutation.Action = {}));
12
+ })(ItemMutation = exports.ItemMutation || (exports.ItemMutation = {}));
13
+ //# sourceMappingURL=feed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feed.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/feed.ts"],"names":[],"mappings":";;;AA6EA,IAAiB,YAAY,CAM5B;AAND,WAAiB,YAAY;IACzB,IAAY,MAIX;IAJD,WAAY,MAAM;QACd,mCAAQ,CAAA;QACR,uCAAU,CAAA;QACV,yCAAW,CAAA;IACf,CAAC,EAJW,MAAM,GAAN,mBAAM,KAAN,mBAAM,QAIjB;AACL,CAAC,EANgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAM5B"}
@@ -0,0 +1,20 @@
1
+ export interface InvitationDescriptor {
2
+ type?: InvitationDescriptor.Type;
3
+ swarmKey?: Uint8Array;
4
+ invitation?: Uint8Array;
5
+ /**
6
+ * Only present if type == OFFLINE.
7
+ */
8
+ identityKey?: Uint8Array;
9
+ /**
10
+ * Must be stripped out when passing to another peer.
11
+ */
12
+ secret?: Uint8Array;
13
+ }
14
+ export declare namespace InvitationDescriptor {
15
+ enum Type {
16
+ INTERACTIVE = 1,
17
+ OFFLINE = 2
18
+ }
19
+ }
20
+ //# sourceMappingURL=invitation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invitation.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/invitation.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,oBAAoB;IACjC,IAAI,CAAC,EAAE,oBAAoB,CAAC,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;CACvB;AACD,yBAAiB,oBAAoB,CAAC;IAClC,KAAY,IAAI;QACZ,WAAW,IAAI;QACf,OAAO,IAAI;KACd;CACJ"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvitationDescriptor = void 0;
4
+ var InvitationDescriptor;
5
+ (function (InvitationDescriptor) {
6
+ let Type;
7
+ (function (Type) {
8
+ Type[Type["INTERACTIVE"] = 1] = "INTERACTIVE";
9
+ Type[Type["OFFLINE"] = 2] = "OFFLINE";
10
+ })(Type = InvitationDescriptor.Type || (InvitationDescriptor.Type = {}));
11
+ })(InvitationDescriptor = exports.InvitationDescriptor || (exports.InvitationDescriptor = {}));
12
+ //# sourceMappingURL=invitation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invitation.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/invitation.ts"],"names":[],"mappings":";;;AA8BA,IAAiB,oBAAoB,CAKpC;AALD,WAAiB,oBAAoB;IACjC,IAAY,IAGX;IAHD,WAAY,IAAI;QACZ,6CAAe,CAAA;QACf,qCAAW,CAAA;IACf,CAAC,EAHW,IAAI,GAAJ,yBAAI,KAAJ,yBAAI,QAGf;AACL,CAAC,EALgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAKpC"}
@@ -0,0 +1,19 @@
1
+ import * as dxos_halo_keys from "../halo/keys";
2
+ import * as google_protobuf from "../../google/protobuf";
3
+ export interface EchoMetadata {
4
+ /**
5
+ * Version number that is inceremnted every time there's a breaking change to the storage schema.
6
+ *
7
+ * This is used to detect if the storage schema has changed since the last time the client was run.
8
+ * Loading data from a different version will might result in an error.
9
+ */
10
+ version?: number;
11
+ parties?: PartyMetadata[];
12
+ created?: google_protobuf.Timestamp;
13
+ updated?: google_protobuf.Timestamp;
14
+ }
15
+ export interface PartyMetadata {
16
+ key?: dxos_halo_keys.PubKey;
17
+ feedKeys?: dxos_halo_keys.PubKey[];
18
+ }
19
+ //# sourceMappingURL=metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/metadata.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,cAAc,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC;AACzD,MAAM,WAAW,YAAY;IACzB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,OAAO,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC;IACpC,OAAO,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC;CACvC;AACD,MAAM,WAAW,aAAa;IAC1B,GAAG,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,cAAc,CAAC,MAAM,EAAE,CAAC;CACtC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=metadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/metadata.ts"],"names":[],"mappings":""}
@@ -0,0 +1,47 @@
1
+ import type { Stream } from "@dxos/codec-protobuf";
2
+ import * as dxos_echo_feed from "./feed";
3
+ import * as dxos_echo_snapshot from "./snapshot";
4
+ import * as dxos_halo_keys from "../halo/keys";
5
+ export interface SubscribeEntitySetRequest {
6
+ partyKey?: dxos_halo_keys.PubKey;
7
+ }
8
+ export interface SubscribeEntitySetResponse {
9
+ added?: dxos_echo_feed.EchoEnvelope[];
10
+ deleted?: dxos_echo_feed.EchoEnvelope[];
11
+ }
12
+ export interface SubscribeEntityStreamRequest {
13
+ partyKey?: dxos_halo_keys.PubKey;
14
+ itemId?: string;
15
+ }
16
+ export interface SubscribeEntityStreamResponse {
17
+ snapshot?: dxos_echo_snapshot.ItemSnapshot;
18
+ mutation?: SubscribeEntityStreamResponse.Mutation;
19
+ }
20
+ export declare namespace SubscribeEntityStreamResponse {
21
+ interface Mutation {
22
+ data?: dxos_echo_feed.EchoEnvelope;
23
+ meta?: SubscribeEntityStreamResponse.Mutation.Metadata;
24
+ }
25
+ namespace Mutation {
26
+ interface Metadata {
27
+ feedKey?: dxos_halo_keys.PubKey;
28
+ memberKey?: dxos_halo_keys.PubKey;
29
+ seq?: number;
30
+ timeframe?: dxos_echo_feed.TimeframeVector;
31
+ }
32
+ }
33
+ }
34
+ export interface WriteRequest {
35
+ partyKey?: dxos_halo_keys.PubKey;
36
+ mutation?: dxos_echo_feed.EchoEnvelope;
37
+ }
38
+ export interface MutationReceipt {
39
+ feedKey?: dxos_halo_keys.PubKey;
40
+ seq?: number;
41
+ }
42
+ export interface DataService {
43
+ subscribeEntitySet: (request: SubscribeEntitySetRequest) => Stream<SubscribeEntitySetResponse>;
44
+ subscribeEntityStream: (request: SubscribeEntityStreamRequest) => Stream<SubscribeEntityStreamResponse>;
45
+ write: (request: WriteRequest) => Promise<MutationReceipt>;
46
+ }
47
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAUnD,OAAO,KAAK,cAAc,MAAM,QAAQ,CAAC;AAGzC,OA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AAW;IACxB,kBAAkB,EAAE,CAAC,OAAO,EAAE,yBAAyB,KAAK,MAAM,CAAC,0BAA0B,CAAC,CAAC;IAC/F,qBAAqB,EAAE,CAAC,OAAO,EAAE,4BAA4B,KAAK,MAAM,CAAC,6BAA6B,CAAC,CAAC;IACxG,KAAK,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;CAC9D"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/service.ts"],"names":[],"mappings":""}