@dxos/protocols 0.5.1-main.bc05254 → 0.5.1-main.bf560fd

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;AAgiB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,o1vGAAo1vG,CAAC,CAAC,CAAC;AAC74vG,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;AAkiB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,y3wGAAy3wG,CAAC,CAAC,CAAC;AACl7wG,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.5.1-main.bc05254",
3
+ "version": "0.5.1-main.bf560fd",
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.5.1-main.bc05254",
37
- "@dxos/keys": "0.5.1-main.bc05254",
38
- "@dxos/invariant": "0.5.1-main.bc05254",
39
- "@dxos/timeframe": "0.5.1-main.bc05254"
36
+ "@dxos/codec-protobuf": "0.5.1-main.bf560fd",
37
+ "@dxos/invariant": "0.5.1-main.bf560fd",
38
+ "@dxos/timeframe": "0.5.1-main.bf560fd",
39
+ "@dxos/keys": "0.5.1-main.bf560fd"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -267,6 +267,14 @@ message Runtime {
267
267
  int32 interval = 2;
268
268
  }
269
269
 
270
+ /// https://github.com/ipfs/kubo/blob/master/docs/config.md#apiauthorizations
271
+ message KuboApiAuthorization {
272
+ /// Just for organizational purposes.
273
+ string name = 1;
274
+ string auth_secret = 2;
275
+ repeated string allowed_paths = 3;
276
+ }
277
+
270
278
  // TODO(burdon): Needs documentation/
271
279
  string host = 1;
272
280
  string port = 2;
@@ -282,6 +290,8 @@ message Runtime {
282
290
  Gravity gravity = 12;
283
291
  AppTunneling app_tunneling = 13;
284
292
  Bots bots = 14;
293
+ // TODO(nf): manage secret better.
294
+ repeated KuboApiAuthorization ipfs_api_authorizations = 15;
285
295
  }
286
296
 
287
297
  //
@@ -18,6 +18,15 @@ message QueryRequest {
18
18
  dxos.echo.filter.Filter filter = 2;
19
19
  }
20
20
 
21
+ /**
22
+ * Automerge heads.
23
+ * Used for encoding in Index metadata store.
24
+ * @see https://automerge.org/automerge-repo/types/_automerge_automerge_repo.Heads.html
25
+ */
26
+ message Heads {
27
+ repeated string hashes = 1;
28
+ }
29
+
21
30
  message QueryResult {
22
31
  string id = 1;
23
32
  dxos.keys.PublicKey spaceKey = 2;
@@ -617,6 +617,7 @@ export namespace Runtime {
617
617
  gravity: Runtime.Kube.Gravity;
618
618
  appTunneling: Runtime.Kube.AppTunneling;
619
619
  bots: Runtime.Kube.Bots;
620
+ ipfsApiAuthorizations?: Runtime.Kube.KuboApiAuthorization[];
620
621
  }
621
622
  export namespace Kube {
622
623
  /**
@@ -712,6 +713,20 @@ export namespace Runtime {
712
713
  */
713
714
  interval: number;
714
715
  }
716
+ /**
717
+ * https://github.com/ipfs/kubo/blob/master/docs/config.md#apiauthorizations
718
+ *
719
+ * Defined in:
720
+ * {@link file://./../../dxos/config.proto}
721
+ */
722
+ export interface KuboApiAuthorization {
723
+ /**
724
+ * Just for organizational purposes.
725
+ */
726
+ name: string;
727
+ authSecret: string;
728
+ allowedPaths?: string[];
729
+ }
715
730
  }
716
731
  /**
717
732
  * Defined in:
@@ -72,6 +72,17 @@ export interface QueryRequest {
72
72
  queryId?: string;
73
73
  filter: dxos_echo_filter.Filter;
74
74
  }
75
+ /**
76
+ * Automerge heads.
77
+ * Used for encoding in Index metadata store.
78
+ * @see https://automerge.org/automerge-repo/types/_automerge_automerge_repo.Heads.html
79
+ *
80
+ * Defined in:
81
+ * {@link file://./../../../dxos/echo/query.proto}
82
+ */
83
+ export interface Heads {
84
+ hashes?: string[];
85
+ }
75
86
  /**
76
87
  * Defined in:
77
88
  * {@link file://./../../../dxos/echo/query.proto}