@dxos/protocols 0.5.9-main.f099efe → 0.5.9-next.73dcc17

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 (34) hide show
  1. package/dist/cjs/src/params.d.ts +7 -0
  2. package/dist/cjs/src/params.d.ts.map +1 -0
  3. package/dist/cjs/src/params.js +38 -0
  4. package/dist/cjs/src/params.js.map +1 -0
  5. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +182 -175
  6. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  7. package/dist/cjs/src/proto/gen/dxos/client/services.js +25 -25
  8. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  9. package/dist/cjs/src/proto/gen/dxos/echo/query.d.ts +1 -0
  10. package/dist/cjs/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
  11. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  12. package/dist/cjs/src/proto/gen/index.js +1 -1
  13. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  14. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  15. package/dist/esm/src/params.d.ts +7 -0
  16. package/dist/esm/src/params.d.ts.map +1 -0
  17. package/dist/esm/src/params.js +12 -0
  18. package/dist/esm/src/params.js.map +1 -0
  19. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +182 -175
  20. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  21. package/dist/esm/src/proto/gen/dxos/client/services.js +24 -24
  22. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  23. package/dist/esm/src/proto/gen/dxos/echo/query.d.ts +1 -0
  24. package/dist/esm/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
  25. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  26. package/dist/esm/src/proto/gen/index.js +1 -1
  27. package/dist/esm/src/proto/gen/index.js.map +1 -1
  28. package/package.json +7 -5
  29. package/src/params.ts +14 -0
  30. package/src/proto/dxos/client/services.proto +3 -0
  31. package/src/proto/dxos/echo/query.proto +1 -0
  32. package/src/proto/gen/dxos/client/services.ts +182 -175
  33. package/src/proto/gen/dxos/echo/query.ts +1 -0
  34. 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;AAgEhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAqjB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,gr4GAAgr4G,CAAC,CAAC,CAAC;AACzu4G,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;AAgEhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAqjB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,i14GAAi14G,CAAC,CAAC,CAAC;AAC144G,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.f099efe",
3
+ "version": "0.5.9-next.73dcc17",
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,12 @@
33
33
  "src"
34
34
  ],
35
35
  "dependencies": {
36
- "@dxos/codec-protobuf": "0.5.9-main.f099efe",
37
- "@dxos/invariant": "0.5.9-main.f099efe",
38
- "@dxos/keys": "0.5.9-main.f099efe",
39
- "@dxos/timeframe": "0.5.9-main.f099efe"
36
+ "@effect/schema": "^0.67.16",
37
+ "@dxos/codec-protobuf": "0.5.9-next.73dcc17",
38
+ "@dxos/keys": "0.5.9-next.73dcc17",
39
+ "@dxos/invariant": "0.5.9-next.73dcc17",
40
+ "@dxos/timeframe": "0.5.9-next.73dcc17",
41
+ "@dxos/util": "0.5.9-next.73dcc17"
40
42
  },
41
43
  "devDependencies": {
42
44
  "glob": "~7.1.6"
package/src/params.ts ADDED
@@ -0,0 +1,14 @@
1
+ //
2
+ // Copyright 2024 DXOS.org
3
+ //
4
+
5
+ import * as S from '@effect/schema/Schema';
6
+
7
+ import { ParamKeyAnnotation } from '@dxos/util';
8
+
9
+ // TODO(burdon): Use uniformly for processing params.
10
+ export const InvitationUrl = S.Struct({
11
+ accessToken: S.String,
12
+ deviceInvitationCode: S.String.pipe(ParamKeyAnnotation('deviceInvitationCode')),
13
+ spaceInvitationCode: S.String.pipe(ParamKeyAnnotation('spaceInvitationCode')),
14
+ });
@@ -306,6 +306,9 @@ message Space {
306
306
 
307
307
  /// All mutations known to exist on the network.
308
308
  optional dxos.echo.timeframe.TimeframeVector known_data_timeframe = 17;
309
+
310
+ /// URL of the current space root automerge document.
311
+ optional string space_root_url = 22;
309
312
  }
310
313
 
311
314
  string id = 5;
@@ -30,6 +30,7 @@ message Heads {
30
30
  message QueryResult {
31
31
  string id = 1;
32
32
  string spaceId = 4;
33
+ string documentId = 5;
33
34
  /// @deprecated Use spaceId.
34
35
  dxos.keys.PublicKey spaceKey = 2;
35
36
  float rank = 3;
@@ -62,6 +62,181 @@ import * as dxos_value from "../value";
62
62
  import * as example_testing_data from "../../example/testing/data";
63
63
  import * as example_testing_rpc from "../../example/testing/rpc";
64
64
  import * as google_protobuf from "../../google/protobuf";
65
+ /**
66
+ * Defined in:
67
+ * {@link file://./../../../dxos/client/logging.proto}
68
+ */
69
+ export interface Metrics {
70
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
71
+ values?: Metrics.KeyPair[];
72
+ }
73
+ export namespace Metrics {
74
+ /**
75
+ * Defined in:
76
+ * {@link file://./../../../dxos/client/logging.proto}
77
+ */
78
+ export interface KeyPair {
79
+ /**
80
+ * Options:
81
+ * - proto3_optional = true
82
+ */
83
+ key?: string;
84
+ /**
85
+ * Options:
86
+ * - proto3_optional = true
87
+ */
88
+ value?: dxos_value.Value;
89
+ /**
90
+ * Options:
91
+ * - proto3_optional = true
92
+ */
93
+ stats?: dxos_value.Stats;
94
+ }
95
+ }
96
+ /**
97
+ * Defined in:
98
+ * {@link file://./../../../dxos/client/logging.proto}
99
+ */
100
+ export interface ControlMetricsRequest {
101
+ /**
102
+ * Options:
103
+ * - proto3_optional = true
104
+ */
105
+ reset?: boolean;
106
+ /**
107
+ * Options:
108
+ * - proto3_optional = true
109
+ */
110
+ record?: boolean;
111
+ }
112
+ /**
113
+ * Defined in:
114
+ * {@link file://./../../../dxos/client/logging.proto}
115
+ */
116
+ export interface ControlMetricsResponse {
117
+ /**
118
+ * Options:
119
+ * - proto3_optional = true
120
+ */
121
+ recording?: boolean;
122
+ }
123
+ /**
124
+ * Defined in:
125
+ * {@link file://./../../../dxos/client/logging.proto}
126
+ */
127
+ export interface QueryMetricsRequest {
128
+ /**
129
+ * Options:
130
+ * - proto3_optional = true
131
+ */
132
+ interval?: number;
133
+ }
134
+ /**
135
+ * Defined in:
136
+ * {@link file://./../../../dxos/client/logging.proto}
137
+ */
138
+ export interface QueryMetricsResponse {
139
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
140
+ metrics: Metrics;
141
+ }
142
+ /**
143
+ * Defined in:
144
+ * {@link file://./../../../dxos/client/logging.proto}
145
+ */
146
+ export enum LogLevel {
147
+ TRACE = 5,
148
+ DEBUG = 10,
149
+ INFO = 11,
150
+ WARN = 12,
151
+ ERROR = 13
152
+ }
153
+ /**
154
+ * Defined in:
155
+ * {@link file://./../../../dxos/client/logging.proto}
156
+ */
157
+ export interface QueryLogsRequest {
158
+ filters?: QueryLogsRequest.Filter[];
159
+ /**
160
+ * Options:
161
+ * - proto3_optional = true
162
+ */
163
+ options?: QueryLogsRequest.MatchingOptions;
164
+ }
165
+ export namespace QueryLogsRequest {
166
+ /**
167
+ * Defined in:
168
+ * {@link file://./../../../dxos/client/logging.proto}
169
+ */
170
+ export enum MatchingOptions {
171
+ INCLUSIVE = 1,
172
+ EXPLICIT = 2
173
+ }
174
+ /**
175
+ * Defined in:
176
+ * {@link file://./../../../dxos/client/logging.proto}
177
+ */
178
+ export interface Filter {
179
+ level: LogLevel;
180
+ /**
181
+ * Options:
182
+ * - proto3_optional = true
183
+ */
184
+ pattern?: string;
185
+ }
186
+ }
187
+ /**
188
+ * Defined in:
189
+ * {@link file://./../../../dxos/client/logging.proto}
190
+ */
191
+ export interface LogEntry {
192
+ level: LogLevel;
193
+ message: string;
194
+ /**
195
+ * Options:
196
+ * - proto3_optional = true
197
+ */
198
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
199
+ /**
200
+ * Options:
201
+ * - proto3_optional = true
202
+ */
203
+ meta?: LogEntry.Meta;
204
+ /**
205
+ * Options:
206
+ * - proto3_optional = true
207
+ */
208
+ error?: dxos_error.Error;
209
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
210
+ }
211
+ export namespace LogEntry {
212
+ /**
213
+ * Defined in:
214
+ * {@link file://./../../../dxos/client/logging.proto}
215
+ */
216
+ export interface Meta {
217
+ file: string;
218
+ line: number;
219
+ /**
220
+ * Options:
221
+ * - proto3_optional = true
222
+ */
223
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
224
+ /**
225
+ * Options:
226
+ * - proto3_optional = true
227
+ */
228
+ resourceId?: number;
229
+ }
230
+ }
231
+ /**
232
+ * Defined in:
233
+ * {@link file://./../../../dxos/client/logging.proto}
234
+ */
235
+ export interface LoggingService {
236
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
237
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
238
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
239
+ }
65
240
  /**
66
241
  * Defined in:
67
242
  * {@link file://./../../../dxos/client/services.proto}
@@ -566,6 +741,13 @@ export namespace Space {
566
741
  * - proto3_optional = true
567
742
  */
568
743
  knownDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
744
+ /**
745
+ * URL of the current space root automerge document.
746
+ *
747
+ * Options:
748
+ * - proto3_optional = true
749
+ */
750
+ spaceRootUrl?: string;
569
751
  }
570
752
  }
571
753
  /**
@@ -1037,178 +1219,3 @@ export interface NetworkService {
1037
1219
  updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
1038
1220
  queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
1039
1221
  }
1040
- /**
1041
- * Defined in:
1042
- * {@link file://./../../../dxos/client/logging.proto}
1043
- */
1044
- export interface Metrics {
1045
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1046
- values?: Metrics.KeyPair[];
1047
- }
1048
- export namespace Metrics {
1049
- /**
1050
- * Defined in:
1051
- * {@link file://./../../../dxos/client/logging.proto}
1052
- */
1053
- export interface KeyPair {
1054
- /**
1055
- * Options:
1056
- * - proto3_optional = true
1057
- */
1058
- key?: string;
1059
- /**
1060
- * Options:
1061
- * - proto3_optional = true
1062
- */
1063
- value?: dxos_value.Value;
1064
- /**
1065
- * Options:
1066
- * - proto3_optional = true
1067
- */
1068
- stats?: dxos_value.Stats;
1069
- }
1070
- }
1071
- /**
1072
- * Defined in:
1073
- * {@link file://./../../../dxos/client/logging.proto}
1074
- */
1075
- export interface ControlMetricsRequest {
1076
- /**
1077
- * Options:
1078
- * - proto3_optional = true
1079
- */
1080
- reset?: boolean;
1081
- /**
1082
- * Options:
1083
- * - proto3_optional = true
1084
- */
1085
- record?: boolean;
1086
- }
1087
- /**
1088
- * Defined in:
1089
- * {@link file://./../../../dxos/client/logging.proto}
1090
- */
1091
- export interface ControlMetricsResponse {
1092
- /**
1093
- * Options:
1094
- * - proto3_optional = true
1095
- */
1096
- recording?: boolean;
1097
- }
1098
- /**
1099
- * Defined in:
1100
- * {@link file://./../../../dxos/client/logging.proto}
1101
- */
1102
- export interface QueryMetricsRequest {
1103
- /**
1104
- * Options:
1105
- * - proto3_optional = true
1106
- */
1107
- interval?: number;
1108
- }
1109
- /**
1110
- * Defined in:
1111
- * {@link file://./../../../dxos/client/logging.proto}
1112
- */
1113
- export interface QueryMetricsResponse {
1114
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1115
- metrics: Metrics;
1116
- }
1117
- /**
1118
- * Defined in:
1119
- * {@link file://./../../../dxos/client/logging.proto}
1120
- */
1121
- export enum LogLevel {
1122
- TRACE = 5,
1123
- DEBUG = 10,
1124
- INFO = 11,
1125
- WARN = 12,
1126
- ERROR = 13
1127
- }
1128
- /**
1129
- * Defined in:
1130
- * {@link file://./../../../dxos/client/logging.proto}
1131
- */
1132
- export interface QueryLogsRequest {
1133
- filters?: QueryLogsRequest.Filter[];
1134
- /**
1135
- * Options:
1136
- * - proto3_optional = true
1137
- */
1138
- options?: QueryLogsRequest.MatchingOptions;
1139
- }
1140
- export namespace QueryLogsRequest {
1141
- /**
1142
- * Defined in:
1143
- * {@link file://./../../../dxos/client/logging.proto}
1144
- */
1145
- export enum MatchingOptions {
1146
- INCLUSIVE = 1,
1147
- EXPLICIT = 2
1148
- }
1149
- /**
1150
- * Defined in:
1151
- * {@link file://./../../../dxos/client/logging.proto}
1152
- */
1153
- export interface Filter {
1154
- level: LogLevel;
1155
- /**
1156
- * Options:
1157
- * - proto3_optional = true
1158
- */
1159
- pattern?: string;
1160
- }
1161
- }
1162
- /**
1163
- * Defined in:
1164
- * {@link file://./../../../dxos/client/logging.proto}
1165
- */
1166
- export interface LogEntry {
1167
- level: LogLevel;
1168
- message: string;
1169
- /**
1170
- * Options:
1171
- * - proto3_optional = true
1172
- */
1173
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1174
- /**
1175
- * Options:
1176
- * - proto3_optional = true
1177
- */
1178
- meta?: LogEntry.Meta;
1179
- /**
1180
- * Options:
1181
- * - proto3_optional = true
1182
- */
1183
- error?: dxos_error.Error;
1184
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1185
- }
1186
- export namespace LogEntry {
1187
- /**
1188
- * Defined in:
1189
- * {@link file://./../../../dxos/client/logging.proto}
1190
- */
1191
- export interface Meta {
1192
- file: string;
1193
- line: number;
1194
- /**
1195
- * Options:
1196
- * - proto3_optional = true
1197
- */
1198
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1199
- /**
1200
- * Options:
1201
- * - proto3_optional = true
1202
- */
1203
- resourceId?: number;
1204
- }
1205
- }
1206
- /**
1207
- * Defined in:
1208
- * {@link file://./../../../dxos/client/logging.proto}
1209
- */
1210
- export interface LoggingService {
1211
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
1212
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
1213
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
1214
- }
@@ -92,6 +92,7 @@ export interface Heads {
92
92
  export interface QueryResult {
93
93
  id: string;
94
94
  spaceId: string;
95
+ documentId: string;
95
96
  /**
96
97
  * @deprecated Use spaceId.
97
98
  */