@dxos/protocols 0.3.10 → 0.3.11-main.00a28cb

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 (49) hide show
  1. package/dist/cjs/src/proto/gen/dxos/agent/echoproxy.d.ts +1 -1
  2. package/dist/cjs/src/proto/gen/dxos/agent/echoproxy.d.ts.map +1 -1
  3. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +24 -1
  4. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  5. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  6. package/dist/cjs/src/proto/gen/dxos/config.d.ts +21 -0
  7. package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
  8. package/dist/cjs/src/proto/gen/dxos/config.js.map +1 -1
  9. package/dist/cjs/src/proto/gen/dxos/iframe.d.ts +30 -2
  10. package/dist/cjs/src/proto/gen/dxos/iframe.d.ts.map +1 -1
  11. package/dist/cjs/src/proto/gen/dxos/iframe.js.map +1 -1
  12. package/dist/cjs/src/proto/gen/google/protobuf.d.ts +8 -8
  13. package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
  14. package/dist/cjs/src/proto/gen/google/protobuf.js.map +1 -1
  15. package/dist/cjs/src/proto/gen/index.d.ts +3 -1
  16. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  17. package/dist/cjs/src/proto/gen/index.js +1 -1
  18. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  19. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  20. package/dist/esm/src/proto/gen/dxos/agent/echoproxy.d.ts +1 -1
  21. package/dist/esm/src/proto/gen/dxos/agent/echoproxy.d.ts.map +1 -1
  22. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +24 -1
  23. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  24. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  25. package/dist/esm/src/proto/gen/dxos/config.d.ts +21 -0
  26. package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
  27. package/dist/esm/src/proto/gen/dxos/config.js.map +1 -1
  28. package/dist/esm/src/proto/gen/dxos/iframe.d.ts +30 -2
  29. package/dist/esm/src/proto/gen/dxos/iframe.d.ts.map +1 -1
  30. package/dist/esm/src/proto/gen/dxos/iframe.js.map +1 -1
  31. package/dist/esm/src/proto/gen/google/protobuf.d.ts +8 -8
  32. package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
  33. package/dist/esm/src/proto/gen/google/protobuf.js.map +1 -1
  34. package/dist/esm/src/proto/gen/index.d.ts +3 -1
  35. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  36. package/dist/esm/src/proto/gen/index.js +1 -1
  37. package/dist/esm/src/proto/gen/index.js.map +1 -1
  38. package/package.json +6 -6
  39. package/src/proto/dxos/agent/echo-proxy.proto +1 -1
  40. package/src/proto/dxos/agent/query.proto +0 -1
  41. package/src/proto/dxos/client/services.proto +9 -1
  42. package/src/proto/dxos/config.proto +7 -0
  43. package/src/proto/dxos/iframe.proto +18 -2
  44. package/src/proto/gen/dxos/agent/echoproxy.ts +1 -1
  45. package/src/proto/gen/dxos/client/services.ts +24 -1
  46. package/src/proto/gen/dxos/config.ts +21 -0
  47. package/src/proto/gen/dxos/iframe.ts +30 -2
  48. package/src/proto/gen/google/protobuf.ts +8 -8
  49. package/src/proto/gen/index.ts +4 -2
@@ -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;AA6DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAghB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,iliGAAiliG,CAAC,CAAC,CAAC;AAC1oiG,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;AA6DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAkhB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,ilkGAAilkG,CAAC,CAAC,CAAC;AAC1okG,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.3.10",
3
+ "version": "0.3.11-main.00a28cb",
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/invariant": "0.3.10",
37
- "@dxos/keys": "0.3.10",
38
- "@dxos/timeframe": "0.3.10",
39
- "@dxos/codec-protobuf": "0.3.10"
36
+ "@dxos/codec-protobuf": "0.3.11-main.00a28cb",
37
+ "@dxos/keys": "0.3.11-main.00a28cb",
38
+ "@dxos/timeframe": "0.3.11-main.00a28cb",
39
+ "@dxos/invariant": "0.3.11-main.00a28cb"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -45,6 +45,6 @@
45
45
  "access": "public"
46
46
  },
47
47
  "scripts": {
48
- "tsc-cjs": "tsc --module commonjs --target es2018 --outdir ./dist/cjs"
48
+ "tsc-cjs": "rm -rf dist/cjs; tsc --module commonjs --target es2018 --outdir ./dist/cjs"
49
49
  }
50
50
  }
@@ -6,6 +6,6 @@ syntax = "proto3";
6
6
 
7
7
  package dxos.agent.echoproxy;
8
8
 
9
- message EchoProxyConfig {
9
+ message Config {
10
10
  optional int32 port = 1;
11
11
  }
@@ -10,7 +10,6 @@ import "dxos/echo/object.proto";
10
10
 
11
11
  package dxos.agent.query;
12
12
 
13
-
14
13
  message QueryRequest {
15
14
  string queryId = 1;
16
15
  filter.Filter filter = 2;
@@ -107,9 +107,14 @@ message SignPresentationRequest {
107
107
  optional bytes nonce = 2;
108
108
  }
109
109
 
110
+ message CreateIdentityRequest {
111
+ optional halo.credentials.ProfileDocument profile = 1;
112
+ optional bool use_automerge = 2;
113
+ }
114
+
110
115
  // TODO(wittjosiah): Align pluralization with other services.
111
116
  service IdentityService {
112
- rpc CreateIdentity(halo.credentials.ProfileDocument) returns (Identity);
117
+ rpc CreateIdentity(CreateIdentityRequest) returns (Identity);
113
118
  rpc RecoverIdentity(RecoverIdentityRequest) returns (Identity);
114
119
  rpc QueryIdentity(google.protobuf.Empty) returns (stream QueryIdentityResponse);
115
120
  rpc UpdateProfile(halo.credentials.ProfileDocument) returns (Identity);
@@ -407,6 +412,9 @@ message Invitation {
407
412
 
408
413
  /// Authentication code created by host (only present if auth_method is SHARED_SECRET).
409
414
  optional string auth_code = 10;
415
+
416
+ /// Path or identifier to navigate to after successful authentication.
417
+ optional string target = 11;
410
418
  }
411
419
 
412
420
  message AuthenticationRequest {
@@ -367,6 +367,12 @@ message Runtime {
367
367
  optional string username = 2;
368
368
  optional string password = 3;
369
369
  }
370
+ // TODO(nf): Set API version, authentication scheme, etc.
371
+ message AgentHosting {
372
+ // TODO(nf): read enum from yml?
373
+ optional string server = 1;
374
+ optional string type = 2;
375
+ }
370
376
 
371
377
  optional Kube kube = 1;
372
378
  optional AppServer app = 2;
@@ -380,6 +386,7 @@ message Runtime {
380
386
  optional Supervisor supervisor = 10; // TODO(burdon): Promote to 1; start others at 10.
381
387
  optional Tunneling tunneling = 11;
382
388
  optional Faasd faasd = 12;
389
+ optional AgentHosting agent_hosting = 13;
383
390
  }
384
391
 
385
392
  message Keys {
@@ -29,11 +29,19 @@ enum ShellDisplay {
29
29
  }
30
30
 
31
31
  message AppContextRequest {
32
- /// The display mode that shell should use
32
+ /// The display mode that shell should use.
33
33
  optional ShellDisplay display = 1;
34
34
 
35
- /// The key of the joined space
35
+ /// The key of the joined space.
36
36
  optional dxos.keys.PublicKey space_key = 2;
37
+
38
+ /// Target to redirect to after a successful invitation.
39
+ optional string target = 3;
40
+
41
+ /// Reload the app.
42
+ /// Shell cannot reload the app from within an iframe.
43
+ /// Used after sign out/identity reset.
44
+ optional bool reload = 4;
37
45
  }
38
46
 
39
47
  /// App RPCs for the shell.
@@ -52,9 +60,17 @@ enum ShellLayout {
52
60
  }
53
61
 
54
62
  message LayoutRequest {
63
+ /// Determins which panel of the shell is opened.
55
64
  ShellLayout layout = 1;
65
+
66
+ /// Invitation code to join a space.
56
67
  optional string invitation_code = 2;
68
+
69
+ /// Key of the space to share.
57
70
  optional dxos.keys.PublicKey space_key = 3;
71
+
72
+ /// Target to include in an invitation for redirecting after a successful invitation.
73
+ optional string target = 4;
58
74
  }
59
75
 
60
76
  /// Shell UI RPCs.
@@ -63,7 +63,7 @@ import * as google_protobuf from "../../google/protobuf";
63
63
  * Defined in:
64
64
  * {@link file://./../../../dxos/agent/echo-proxy.proto}
65
65
  */
66
- export interface EchoProxyConfig {
66
+ export interface Config {
67
67
  /**
68
68
  * Options:
69
69
  * - proto3_optional = true
@@ -195,12 +195,28 @@ export interface SignPresentationRequest {
195
195
  */
196
196
  nonce?: Uint8Array;
197
197
  }
198
+ /**
199
+ * Defined in:
200
+ * {@link file://./../../../dxos/client/services.proto}
201
+ */
202
+ export interface CreateIdentityRequest {
203
+ /**
204
+ * Options:
205
+ * - proto3_optional = true
206
+ */
207
+ profile?: dxos_halo_credentials.ProfileDocument;
208
+ /**
209
+ * Options:
210
+ * - proto3_optional = true
211
+ */
212
+ useAutomerge?: boolean;
213
+ }
198
214
  /**
199
215
  * Defined in:
200
216
  * {@link file://./../../../dxos/client/services.proto}
201
217
  */
202
218
  export interface IdentityService {
203
- createIdentity: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
219
+ createIdentity: (request: CreateIdentityRequest, options?: RequestOptions) => Promise<Identity>;
204
220
  recoverIdentity: (request: RecoverIdentityRequest, options?: RequestOptions) => Promise<Identity>;
205
221
  queryIdentity: (request: void, options?: RequestOptions) => Stream<QueryIdentityResponse>;
206
222
  updateProfile: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
@@ -623,6 +639,13 @@ export interface Invitation {
623
639
  * - proto3_optional = true
624
640
  */
625
641
  authCode?: string;
642
+ /**
643
+ * Path or identifier to navigate to after successful authentication.
644
+ *
645
+ * Options:
646
+ * - proto3_optional = true
647
+ */
648
+ target?: string;
626
649
  }
627
650
  export namespace Invitation {
628
651
  /**
@@ -757,6 +757,11 @@ export namespace Runtime {
757
757
  * - proto3_optional = true
758
758
  */
759
759
  faasd?: Runtime.Services.Faasd;
760
+ /**
761
+ * Options:
762
+ * - proto3_optional = true
763
+ */
764
+ agentHosting?: Runtime.Services.AgentHosting;
760
765
  }
761
766
  export namespace Services {
762
767
  /**
@@ -1006,6 +1011,22 @@ export namespace Runtime {
1006
1011
  */
1007
1012
  password?: string;
1008
1013
  }
1014
+ /**
1015
+ * Defined in:
1016
+ * {@link file://./../../dxos/config.proto}
1017
+ */
1018
+ export interface AgentHosting {
1019
+ /**
1020
+ * Options:
1021
+ * - proto3_optional = true
1022
+ */
1023
+ server?: string;
1024
+ /**
1025
+ * Options:
1026
+ * - proto3_optional = true
1027
+ */
1028
+ type?: string;
1029
+ }
1009
1030
  }
1010
1031
  /**
1011
1032
  * Defined in:
@@ -97,19 +97,33 @@ export enum ShellDisplay {
97
97
  */
98
98
  export interface AppContextRequest {
99
99
  /**
100
- * The display mode that shell should use
100
+ * The display mode that shell should use.
101
101
  *
102
102
  * Options:
103
103
  * - proto3_optional = true
104
104
  */
105
105
  display?: ShellDisplay;
106
106
  /**
107
- * The key of the joined space
107
+ * The key of the joined space.
108
108
  *
109
109
  * Options:
110
110
  * - proto3_optional = true
111
111
  */
112
112
  spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
113
+ /**
114
+ * Target to redirect to after a successful invitation.
115
+ *
116
+ * Options:
117
+ * - proto3_optional = true
118
+ */
119
+ target?: string;
120
+ /**
121
+ * Used after sign out/identity reset.
122
+ *
123
+ * Options:
124
+ * - proto3_optional = true
125
+ */
126
+ reload?: boolean;
113
127
  }
114
128
  /**
115
129
  * App RPCs for the shell.
@@ -138,17 +152,31 @@ export enum ShellLayout {
138
152
  * {@link file://./../../dxos/iframe.proto}
139
153
  */
140
154
  export interface LayoutRequest {
155
+ /**
156
+ * Determins which panel of the shell is opened.
157
+ */
141
158
  layout: ShellLayout;
142
159
  /**
160
+ * Invitation code to join a space.
161
+ *
143
162
  * Options:
144
163
  * - proto3_optional = true
145
164
  */
146
165
  invitationCode?: string;
147
166
  /**
167
+ * Key of the space to share.
168
+ *
148
169
  * Options:
149
170
  * - proto3_optional = true
150
171
  */
151
172
  spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
173
+ /**
174
+ * Target to include in an invitation for redirecting after a successful invitation.
175
+ *
176
+ * Options:
177
+ * - proto3_optional = true
178
+ */
179
+ target?: string;
152
180
  }
153
181
  /**
154
182
  * Shell UI RPCs.
@@ -61,14 +61,6 @@ import * as example_testing_data from "../example/testing/data";
61
61
  import * as example_testing_rpc from "../example/testing/rpc";
62
62
  export interface Empty {
63
63
  }
64
- export interface Timestamp {
65
- seconds: string;
66
- nanos: number;
67
- }
68
- export interface Any {
69
- type_url: string;
70
- value: Uint8Array;
71
- }
72
64
  export interface Struct {
73
65
  fields?: Partial<Record<string, Value>>;
74
66
  }
@@ -86,6 +78,14 @@ export enum NullValue {
86
78
  export interface ListValue {
87
79
  values?: Value[];
88
80
  }
81
+ export interface Timestamp {
82
+ seconds: string;
83
+ nanos: number;
84
+ }
85
+ export interface Any {
86
+ type_url: string;
87
+ value: Uint8Array;
88
+ }
89
89
  export interface FileDescriptorSet {
90
90
  file?: FileDescriptorProto[];
91
91
  }