@dxos/protocols 0.5.9-main.bdf733d → 0.5.9-main.ea1d25b

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 (28) hide show
  1. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +184 -176
  2. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  3. package/dist/cjs/src/proto/gen/dxos/client/services.js +26 -25
  4. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  5. package/dist/cjs/src/proto/gen/dxos/iframe.d.ts +14 -0
  6. package/dist/cjs/src/proto/gen/dxos/iframe.d.ts.map +1 -1
  7. package/dist/cjs/src/proto/gen/dxos/iframe.js.map +1 -1
  8. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  9. package/dist/cjs/src/proto/gen/index.js +1 -1
  10. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  11. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  12. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +184 -176
  13. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  14. package/dist/esm/src/proto/gen/dxos/client/services.js +25 -24
  15. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  16. package/dist/esm/src/proto/gen/dxos/iframe.d.ts +14 -0
  17. package/dist/esm/src/proto/gen/dxos/iframe.d.ts.map +1 -1
  18. package/dist/esm/src/proto/gen/dxos/iframe.js.map +1 -1
  19. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  20. package/dist/esm/src/proto/gen/index.js +1 -1
  21. package/dist/esm/src/proto/gen/index.js.map +1 -1
  22. package/package.json +5 -5
  23. package/src/proto/dxos/client/services.proto +6 -0
  24. package/src/proto/dxos/echo/service.proto +1 -0
  25. package/src/proto/dxos/iframe.proto +8 -0
  26. package/src/proto/gen/dxos/client/services.ts +184 -176
  27. package/src/proto/gen/dxos/iframe.ts +14 -0
  28. package/src/proto/gen/index.ts +1 -1
@@ -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;AA+DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA2iB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,000GAA000G,CAAC,CAAC,CAAC;AACn40G,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;AA+DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA2iB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,uv1GAAuv1G,CAAC,CAAC,CAAC;AAChz1G,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.9-main.bdf733d",
3
+ "version": "0.5.9-main.ea1d25b",
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.9-main.bdf733d",
37
- "@dxos/invariant": "0.5.9-main.bdf733d",
38
- "@dxos/keys": "0.5.9-main.bdf733d",
39
- "@dxos/timeframe": "0.5.9-main.bdf733d"
36
+ "@dxos/codec-protobuf": "0.5.9-main.ea1d25b",
37
+ "@dxos/invariant": "0.5.9-main.ea1d25b",
38
+ "@dxos/keys": "0.5.9-main.ea1d25b",
39
+ "@dxos/timeframe": "0.5.9-main.ea1d25b"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -358,11 +358,17 @@ message CreateEpochRequest {
358
358
 
359
359
  /// Create a new space root and move objects from the current space root to separate automerge documents and.
360
360
  FRAGMENT_AUTOMERGE_ROOT = 3;
361
+
362
+ /// Replace the current automerge root with a new one specified by the user.
363
+ REPLACE_AUTOMERGE_ROOT = 4;
361
364
  }
362
365
 
363
366
  dxos.keys.PublicKey space_key = 1;
364
367
 
365
368
  optional Migration migration = 2;
369
+
370
+ /// For REPLACE_AUTOMERGE_ROOT migration.
371
+ optional string automerge_root_url = 3;
366
372
  }
367
373
 
368
374
  message UpdateMemberRoleRequest {
@@ -52,6 +52,7 @@ message FlushRequest {
52
52
  repeated string heads = 2;
53
53
  }
54
54
 
55
+ // TODO(dmaretskyi): Does not appear to be used.
55
56
  optional dxos.keys.PublicKey space_key = 1;
56
57
  /**
57
58
  * Automerge specific document ids to wait to flush.
@@ -35,8 +35,12 @@ message AppContextRequest {
35
35
  /// The display mode that shell should use.
36
36
  optional ShellDisplay display = 1;
37
37
 
38
+ // TODO(wittjosiah): Remove.
38
39
  /// The key of the joined space.
39
40
  optional dxos.keys.PublicKey space_key = 2;
41
+
42
+ /// The id of the joined space.
43
+ optional string space_id = 5;
40
44
 
41
45
  /// Target to redirect to after a successful invitation.
42
46
  optional string target = 3;
@@ -71,9 +75,13 @@ message LayoutRequest {
71
75
  /// Invitation code to join a space.
72
76
  optional string invitation_code = 2;
73
77
 
78
+ // TODO(wittjosiah): Remove.
74
79
  /// Key of the space to share.
75
80
  optional dxos.keys.PublicKey space_key = 3;
76
81
 
82
+ /// Id of the space to share.
83
+ optional string space_id = 5;
84
+
77
85
  /// Target to include in an invitation for redirecting after a successful invitation.
78
86
  optional string target = 4;
79
87
  }
@@ -61,181 +61,6 @@ import * as dxos_value from "../value";
61
61
  import * as example_testing_data from "../../example/testing/data";
62
62
  import * as example_testing_rpc from "../../example/testing/rpc";
63
63
  import * as google_protobuf from "../../google/protobuf";
64
- /**
65
- * Defined in:
66
- * {@link file://./../../../dxos/client/logging.proto}
67
- */
68
- export interface Metrics {
69
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
70
- values?: Metrics.KeyPair[];
71
- }
72
- export namespace Metrics {
73
- /**
74
- * Defined in:
75
- * {@link file://./../../../dxos/client/logging.proto}
76
- */
77
- export interface KeyPair {
78
- /**
79
- * Options:
80
- * - proto3_optional = true
81
- */
82
- key?: string;
83
- /**
84
- * Options:
85
- * - proto3_optional = true
86
- */
87
- value?: dxos_value.Value;
88
- /**
89
- * Options:
90
- * - proto3_optional = true
91
- */
92
- stats?: dxos_value.Stats;
93
- }
94
- }
95
- /**
96
- * Defined in:
97
- * {@link file://./../../../dxos/client/logging.proto}
98
- */
99
- export interface ControlMetricsRequest {
100
- /**
101
- * Options:
102
- * - proto3_optional = true
103
- */
104
- reset?: boolean;
105
- /**
106
- * Options:
107
- * - proto3_optional = true
108
- */
109
- record?: boolean;
110
- }
111
- /**
112
- * Defined in:
113
- * {@link file://./../../../dxos/client/logging.proto}
114
- */
115
- export interface ControlMetricsResponse {
116
- /**
117
- * Options:
118
- * - proto3_optional = true
119
- */
120
- recording?: boolean;
121
- }
122
- /**
123
- * Defined in:
124
- * {@link file://./../../../dxos/client/logging.proto}
125
- */
126
- export interface QueryMetricsRequest {
127
- /**
128
- * Options:
129
- * - proto3_optional = true
130
- */
131
- interval?: number;
132
- }
133
- /**
134
- * Defined in:
135
- * {@link file://./../../../dxos/client/logging.proto}
136
- */
137
- export interface QueryMetricsResponse {
138
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
139
- metrics: Metrics;
140
- }
141
- /**
142
- * Defined in:
143
- * {@link file://./../../../dxos/client/logging.proto}
144
- */
145
- export enum LogLevel {
146
- TRACE = 5,
147
- DEBUG = 10,
148
- INFO = 11,
149
- WARN = 12,
150
- ERROR = 13
151
- }
152
- /**
153
- * Defined in:
154
- * {@link file://./../../../dxos/client/logging.proto}
155
- */
156
- export interface QueryLogsRequest {
157
- filters?: QueryLogsRequest.Filter[];
158
- /**
159
- * Options:
160
- * - proto3_optional = true
161
- */
162
- options?: QueryLogsRequest.MatchingOptions;
163
- }
164
- export namespace QueryLogsRequest {
165
- /**
166
- * Defined in:
167
- * {@link file://./../../../dxos/client/logging.proto}
168
- */
169
- export enum MatchingOptions {
170
- INCLUSIVE = 1,
171
- EXPLICIT = 2
172
- }
173
- /**
174
- * Defined in:
175
- * {@link file://./../../../dxos/client/logging.proto}
176
- */
177
- export interface Filter {
178
- level: LogLevel;
179
- /**
180
- * Options:
181
- * - proto3_optional = true
182
- */
183
- pattern?: string;
184
- }
185
- }
186
- /**
187
- * Defined in:
188
- * {@link file://./../../../dxos/client/logging.proto}
189
- */
190
- export interface LogEntry {
191
- level: LogLevel;
192
- message: string;
193
- /**
194
- * Options:
195
- * - proto3_optional = true
196
- */
197
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
198
- /**
199
- * Options:
200
- * - proto3_optional = true
201
- */
202
- meta?: LogEntry.Meta;
203
- /**
204
- * Options:
205
- * - proto3_optional = true
206
- */
207
- error?: dxos_error.Error;
208
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
209
- }
210
- export namespace LogEntry {
211
- /**
212
- * Defined in:
213
- * {@link file://./../../../dxos/client/logging.proto}
214
- */
215
- export interface Meta {
216
- file: string;
217
- line: number;
218
- /**
219
- * Options:
220
- * - proto3_optional = true
221
- */
222
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
223
- /**
224
- * Options:
225
- * - proto3_optional = true
226
- */
227
- resourceId?: number;
228
- }
229
- }
230
- /**
231
- * Defined in:
232
- * {@link file://./../../../dxos/client/logging.proto}
233
- */
234
- export interface LoggingService {
235
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
236
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
237
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
238
- }
239
64
  /**
240
65
  * Defined in:
241
66
  * {@link file://./../../../dxos/client/services.proto}
@@ -797,6 +622,13 @@ export interface CreateEpochRequest {
797
622
  * - proto3_optional = true
798
623
  */
799
624
  migration?: CreateEpochRequest.Migration;
625
+ /**
626
+ * For REPLACE_AUTOMERGE_ROOT migration.
627
+ *
628
+ * Options:
629
+ * - proto3_optional = true
630
+ */
631
+ automergeRootUrl?: string;
800
632
  }
801
633
  export namespace CreateEpochRequest {
802
634
  /**
@@ -807,7 +639,8 @@ export namespace CreateEpochRequest {
807
639
  NONE = 0,
808
640
  INIT_AUTOMERGE = 1,
809
641
  PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
810
- FRAGMENT_AUTOMERGE_ROOT = 3
642
+ FRAGMENT_AUTOMERGE_ROOT = 3,
643
+ REPLACE_AUTOMERGE_ROOT = 4
811
644
  }
812
645
  }
813
646
  /**
@@ -1143,3 +976,178 @@ export interface NetworkService {
1143
976
  updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
1144
977
  queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
1145
978
  }
979
+ /**
980
+ * Defined in:
981
+ * {@link file://./../../../dxos/client/logging.proto}
982
+ */
983
+ export interface Metrics {
984
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
985
+ values?: Metrics.KeyPair[];
986
+ }
987
+ export namespace Metrics {
988
+ /**
989
+ * Defined in:
990
+ * {@link file://./../../../dxos/client/logging.proto}
991
+ */
992
+ export interface KeyPair {
993
+ /**
994
+ * Options:
995
+ * - proto3_optional = true
996
+ */
997
+ key?: string;
998
+ /**
999
+ * Options:
1000
+ * - proto3_optional = true
1001
+ */
1002
+ value?: dxos_value.Value;
1003
+ /**
1004
+ * Options:
1005
+ * - proto3_optional = true
1006
+ */
1007
+ stats?: dxos_value.Stats;
1008
+ }
1009
+ }
1010
+ /**
1011
+ * Defined in:
1012
+ * {@link file://./../../../dxos/client/logging.proto}
1013
+ */
1014
+ export interface ControlMetricsRequest {
1015
+ /**
1016
+ * Options:
1017
+ * - proto3_optional = true
1018
+ */
1019
+ reset?: boolean;
1020
+ /**
1021
+ * Options:
1022
+ * - proto3_optional = true
1023
+ */
1024
+ record?: boolean;
1025
+ }
1026
+ /**
1027
+ * Defined in:
1028
+ * {@link file://./../../../dxos/client/logging.proto}
1029
+ */
1030
+ export interface ControlMetricsResponse {
1031
+ /**
1032
+ * Options:
1033
+ * - proto3_optional = true
1034
+ */
1035
+ recording?: boolean;
1036
+ }
1037
+ /**
1038
+ * Defined in:
1039
+ * {@link file://./../../../dxos/client/logging.proto}
1040
+ */
1041
+ export interface QueryMetricsRequest {
1042
+ /**
1043
+ * Options:
1044
+ * - proto3_optional = true
1045
+ */
1046
+ interval?: number;
1047
+ }
1048
+ /**
1049
+ * Defined in:
1050
+ * {@link file://./../../../dxos/client/logging.proto}
1051
+ */
1052
+ export interface QueryMetricsResponse {
1053
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1054
+ metrics: Metrics;
1055
+ }
1056
+ /**
1057
+ * Defined in:
1058
+ * {@link file://./../../../dxos/client/logging.proto}
1059
+ */
1060
+ export enum LogLevel {
1061
+ TRACE = 5,
1062
+ DEBUG = 10,
1063
+ INFO = 11,
1064
+ WARN = 12,
1065
+ ERROR = 13
1066
+ }
1067
+ /**
1068
+ * Defined in:
1069
+ * {@link file://./../../../dxos/client/logging.proto}
1070
+ */
1071
+ export interface QueryLogsRequest {
1072
+ filters?: QueryLogsRequest.Filter[];
1073
+ /**
1074
+ * Options:
1075
+ * - proto3_optional = true
1076
+ */
1077
+ options?: QueryLogsRequest.MatchingOptions;
1078
+ }
1079
+ export namespace QueryLogsRequest {
1080
+ /**
1081
+ * Defined in:
1082
+ * {@link file://./../../../dxos/client/logging.proto}
1083
+ */
1084
+ export enum MatchingOptions {
1085
+ INCLUSIVE = 1,
1086
+ EXPLICIT = 2
1087
+ }
1088
+ /**
1089
+ * Defined in:
1090
+ * {@link file://./../../../dxos/client/logging.proto}
1091
+ */
1092
+ export interface Filter {
1093
+ level: LogLevel;
1094
+ /**
1095
+ * Options:
1096
+ * - proto3_optional = true
1097
+ */
1098
+ pattern?: string;
1099
+ }
1100
+ }
1101
+ /**
1102
+ * Defined in:
1103
+ * {@link file://./../../../dxos/client/logging.proto}
1104
+ */
1105
+ export interface LogEntry {
1106
+ level: LogLevel;
1107
+ message: string;
1108
+ /**
1109
+ * Options:
1110
+ * - proto3_optional = true
1111
+ */
1112
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1113
+ /**
1114
+ * Options:
1115
+ * - proto3_optional = true
1116
+ */
1117
+ meta?: LogEntry.Meta;
1118
+ /**
1119
+ * Options:
1120
+ * - proto3_optional = true
1121
+ */
1122
+ error?: dxos_error.Error;
1123
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1124
+ }
1125
+ export namespace LogEntry {
1126
+ /**
1127
+ * Defined in:
1128
+ * {@link file://./../../../dxos/client/logging.proto}
1129
+ */
1130
+ export interface Meta {
1131
+ file: string;
1132
+ line: number;
1133
+ /**
1134
+ * Options:
1135
+ * - proto3_optional = true
1136
+ */
1137
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1138
+ /**
1139
+ * Options:
1140
+ * - proto3_optional = true
1141
+ */
1142
+ resourceId?: number;
1143
+ }
1144
+ }
1145
+ /**
1146
+ * Defined in:
1147
+ * {@link file://./../../../dxos/client/logging.proto}
1148
+ */
1149
+ export interface LoggingService {
1150
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
1151
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
1152
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
1153
+ }
@@ -122,6 +122,13 @@ export interface AppContextRequest {
122
122
  * - proto3_optional = true
123
123
  */
124
124
  spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
125
+ /**
126
+ * The id of the joined space.
127
+ *
128
+ * Options:
129
+ * - proto3_optional = true
130
+ */
131
+ spaceId?: string;
125
132
  /**
126
133
  * Target to redirect to after a successful invitation.
127
134
  *
@@ -184,6 +191,13 @@ export interface LayoutRequest {
184
191
  * - proto3_optional = true
185
192
  */
186
193
  spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
194
+ /**
195
+ * Id of the space to share.
196
+ *
197
+ * Options:
198
+ * - proto3_optional = true
199
+ */
200
+ spaceId?: string;
187
201
  /**
188
202
  * Target to include in an invitation for redirecting after a successful invitation.
189
203
  *