@dxos/protocols 0.4.10-main.7f20d36 → 0.4.10-main.83e1ee9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA8DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA6hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,6huGAA6huG,CAAC,CAAC,CAAC;AACtluG,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA8DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA6hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,mmuGAAmmuG,CAAC,CAAC,CAAC;AAC5puG,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.4.10-main.7f20d36",
3
+ "version": "0.4.10-main.83e1ee9",
4
4
  "description": "Protobuf definitions for DXOS protocols.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -33,10 +33,10 @@
33
33
  "src"
34
34
  ],
35
35
  "dependencies": {
36
- "@dxos/codec-protobuf": "0.4.10-main.7f20d36",
37
- "@dxos/keys": "0.4.10-main.7f20d36",
38
- "@dxos/invariant": "0.4.10-main.7f20d36",
39
- "@dxos/timeframe": "0.4.10-main.7f20d36"
36
+ "@dxos/codec-protobuf": "0.4.10-main.83e1ee9",
37
+ "@dxos/invariant": "0.4.10-main.83e1ee9",
38
+ "@dxos/timeframe": "0.4.10-main.83e1ee9",
39
+ "@dxos/keys": "0.4.10-main.83e1ee9"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -551,7 +551,6 @@ service InvitationsService {
551
551
  rpc Authenticate(AuthenticationRequest) returns (google.protobuf.Empty);
552
552
  rpc CancelInvitation(CancelInvitationRequest) returns (google.protobuf.Empty);
553
553
  rpc QueryInvitations(google.protobuf.Empty) returns (stream QueryInvitationsResponse);
554
- rpc LoadPersistentInvitations(google.protobuf.Empty) returns (LoadPersistentInvitationsResponse);
555
554
  }
556
555
 
557
556
  //
@@ -9,14 +9,19 @@ import "dxos/keys.proto";
9
9
 
10
10
  package dxos.mesh.swarm;
11
11
 
12
+ /**
13
+ * Use for:
14
+ * - Initial peer discovery (initiate session id between two peers).
15
+ * - RTC negotiation (SDP offer/answer and ICE).
16
+ */
12
17
  message SwarmMessage {
13
- /// Swarm identefier.
18
+ /// Swarm identifier.
14
19
  dxos.keys.PublicKey topic = 3;
15
20
  /// Unique connection identifier.
16
21
  dxos.keys.PublicKey session_id = 4;
17
22
  /// Message payload.
18
23
  MessageData data = 5;
19
- /// Unique message identifier. Used for Acknolegment and matching Anwers to Offers.
24
+ /// Unique message identifier. Used for ACK and matching Answers to Offers.
20
25
  dxos.keys.PublicKey message_id = 6;
21
26
  }
22
27
 
@@ -29,7 +34,6 @@ message MessageData {
29
34
  * @deprecated Use SignalBatch instead.
30
35
  */
31
36
  Signal signal = 3;
32
-
33
37
  SignalBatch signal_batch = 4;
34
38
  }
35
39
  }
@@ -43,6 +47,10 @@ message Answer {
43
47
  optional dxos.keys.PublicKey offer_message_id = 2;
44
48
  }
45
49
 
50
+ //
51
+ // RTC messages.
52
+ //
53
+
46
54
  message Signal {
47
55
  google.protobuf.Struct payload = 1;
48
56
  }
@@ -1082,7 +1082,6 @@ export interface InvitationsService {
1082
1082
  authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
1083
1083
  cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
1084
1084
  queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
1085
- loadPersistentInvitations: (request: void, options?: RequestOptions) => Promise<LoadPersistentInvitationsResponse>;
1086
1085
  }
1087
1086
  /**
1088
1087
  * Defined in:
@@ -61,12 +61,16 @@ import * as example_testing_data from "../../example/testing/data";
61
61
  import * as example_testing_rpc from "../../example/testing/rpc";
62
62
  import * as google_protobuf from "../../google/protobuf";
63
63
  /**
64
+ * Use for:
65
+ * - Initial peer discovery (initiate session id between two peers).
66
+ * - RTC negotiation (SDP offer/answer and ICE).
67
+ *
64
68
  * Defined in:
65
69
  * {@link file://./../../../dxos/mesh/swarm.proto}
66
70
  */
67
71
  export interface SwarmMessage {
68
72
  /**
69
- * Swarm identefier.
73
+ * Swarm identifier.
70
74
  */
71
75
  topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
72
76
  /**
@@ -78,7 +82,7 @@ export interface SwarmMessage {
78
82
  */
79
83
  data: MessageData;
80
84
  /**
81
- * Unique message identifier. Used for Acknolegment and matching Anwers to Offers.
85
+ * Unique message identifier. Used for ACK and matching Answers to Offers.
82
86
  */
83
87
  messageId: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
84
88
  }