@dxos/protocols 0.4.10-main.e3078ed → 0.4.10-main.e6ba7bc
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.
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +175 -175
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +25 -25
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts +11 -1
- package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +1 -0
- package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.js +1 -1
- package/dist/cjs/src/proto/gen/index.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +175 -175
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +24 -24
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/service.d.ts +11 -1
- package/dist/esm/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +1 -0
- package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.js +1 -1
- package/dist/esm/src/proto/gen/index.js.map +1 -1
- package/package.json +5 -5
- package/src/proto/dxos/echo/service.proto +6 -1
- package/src/proto/gen/dxos/client/services.ts +175 -175
- package/src/proto/gen/dxos/echo/service.ts +11 -1
- package/src/proto/gen/index.ts +2 -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;AA8DhE,OAAO,aAAa,MAAM,kBAAkB,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;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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protocols",
|
|
3
|
-
"version": "0.4.10-main.
|
|
3
|
+
"version": "0.4.10-main.e6ba7bc",
|
|
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/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
36
|
+
"@dxos/invariant": "0.4.10-main.e6ba7bc",
|
|
37
|
+
"@dxos/timeframe": "0.4.10-main.e6ba7bc",
|
|
38
|
+
"@dxos/keys": "0.4.10-main.e6ba7bc",
|
|
39
|
+
"@dxos/codec-protobuf": "0.4.10-main.e6ba7bc"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
|
@@ -47,11 +47,16 @@ message MutationReceipt {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
message FlushRequest {
|
|
50
|
+
message DocState {
|
|
51
|
+
string document_id = 1;
|
|
52
|
+
repeated string heads = 2;
|
|
53
|
+
}
|
|
54
|
+
|
|
50
55
|
optional dxos.keys.PublicKey space_key = 1;
|
|
51
56
|
/**
|
|
52
57
|
* Automerge specific document ids to wait to flush.
|
|
53
58
|
*/
|
|
54
|
-
repeated
|
|
59
|
+
repeated DocState states = 2;
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
// Automerge specific.
|
|
@@ -60,181 +60,6 @@ import * as dxos_value from "../value";
|
|
|
60
60
|
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
|
-
/**
|
|
64
|
-
* Defined in:
|
|
65
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
66
|
-
*/
|
|
67
|
-
export interface Metrics {
|
|
68
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
69
|
-
values?: Metrics.KeyPair[];
|
|
70
|
-
}
|
|
71
|
-
export namespace Metrics {
|
|
72
|
-
/**
|
|
73
|
-
* Defined in:
|
|
74
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
75
|
-
*/
|
|
76
|
-
export interface KeyPair {
|
|
77
|
-
/**
|
|
78
|
-
* Options:
|
|
79
|
-
* - proto3_optional = true
|
|
80
|
-
*/
|
|
81
|
-
key?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Options:
|
|
84
|
-
* - proto3_optional = true
|
|
85
|
-
*/
|
|
86
|
-
value?: dxos_value.Value;
|
|
87
|
-
/**
|
|
88
|
-
* Options:
|
|
89
|
-
* - proto3_optional = true
|
|
90
|
-
*/
|
|
91
|
-
stats?: dxos_value.Stats;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Defined in:
|
|
96
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
97
|
-
*/
|
|
98
|
-
export interface ControlMetricsRequest {
|
|
99
|
-
/**
|
|
100
|
-
* Options:
|
|
101
|
-
* - proto3_optional = true
|
|
102
|
-
*/
|
|
103
|
-
reset?: boolean;
|
|
104
|
-
/**
|
|
105
|
-
* Options:
|
|
106
|
-
* - proto3_optional = true
|
|
107
|
-
*/
|
|
108
|
-
record?: boolean;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Defined in:
|
|
112
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
113
|
-
*/
|
|
114
|
-
export interface ControlMetricsResponse {
|
|
115
|
-
/**
|
|
116
|
-
* Options:
|
|
117
|
-
* - proto3_optional = true
|
|
118
|
-
*/
|
|
119
|
-
recording?: boolean;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Defined in:
|
|
123
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
124
|
-
*/
|
|
125
|
-
export interface QueryMetricsRequest {
|
|
126
|
-
/**
|
|
127
|
-
* Options:
|
|
128
|
-
* - proto3_optional = true
|
|
129
|
-
*/
|
|
130
|
-
interval?: number;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Defined in:
|
|
134
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
135
|
-
*/
|
|
136
|
-
export interface QueryMetricsResponse {
|
|
137
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
138
|
-
metrics: Metrics;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Defined in:
|
|
142
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
143
|
-
*/
|
|
144
|
-
export enum LogLevel {
|
|
145
|
-
TRACE = 5,
|
|
146
|
-
DEBUG = 10,
|
|
147
|
-
INFO = 11,
|
|
148
|
-
WARN = 12,
|
|
149
|
-
ERROR = 13
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Defined in:
|
|
153
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
154
|
-
*/
|
|
155
|
-
export interface QueryLogsRequest {
|
|
156
|
-
filters?: QueryLogsRequest.Filter[];
|
|
157
|
-
/**
|
|
158
|
-
* Options:
|
|
159
|
-
* - proto3_optional = true
|
|
160
|
-
*/
|
|
161
|
-
options?: QueryLogsRequest.MatchingOptions;
|
|
162
|
-
}
|
|
163
|
-
export namespace QueryLogsRequest {
|
|
164
|
-
/**
|
|
165
|
-
* Defined in:
|
|
166
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
167
|
-
*/
|
|
168
|
-
export enum MatchingOptions {
|
|
169
|
-
INCLUSIVE = 1,
|
|
170
|
-
EXPLICIT = 2
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Defined in:
|
|
174
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
175
|
-
*/
|
|
176
|
-
export interface Filter {
|
|
177
|
-
level: LogLevel;
|
|
178
|
-
/**
|
|
179
|
-
* Options:
|
|
180
|
-
* - proto3_optional = true
|
|
181
|
-
*/
|
|
182
|
-
pattern?: string;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Defined in:
|
|
187
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
188
|
-
*/
|
|
189
|
-
export interface LogEntry {
|
|
190
|
-
level: LogLevel;
|
|
191
|
-
message: string;
|
|
192
|
-
/**
|
|
193
|
-
* Options:
|
|
194
|
-
* - proto3_optional = true
|
|
195
|
-
*/
|
|
196
|
-
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
197
|
-
/**
|
|
198
|
-
* Options:
|
|
199
|
-
* - proto3_optional = true
|
|
200
|
-
*/
|
|
201
|
-
meta?: LogEntry.Meta;
|
|
202
|
-
/**
|
|
203
|
-
* Options:
|
|
204
|
-
* - proto3_optional = true
|
|
205
|
-
*/
|
|
206
|
-
error?: dxos_error.Error;
|
|
207
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
208
|
-
}
|
|
209
|
-
export namespace LogEntry {
|
|
210
|
-
/**
|
|
211
|
-
* Defined in:
|
|
212
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
213
|
-
*/
|
|
214
|
-
export interface Meta {
|
|
215
|
-
file: string;
|
|
216
|
-
line: number;
|
|
217
|
-
/**
|
|
218
|
-
* Options:
|
|
219
|
-
* - proto3_optional = true
|
|
220
|
-
*/
|
|
221
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
222
|
-
/**
|
|
223
|
-
* Options:
|
|
224
|
-
* - proto3_optional = true
|
|
225
|
-
*/
|
|
226
|
-
resourceId?: number;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* Defined in:
|
|
231
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
232
|
-
*/
|
|
233
|
-
export interface LoggingService {
|
|
234
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
235
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
236
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
237
|
-
}
|
|
238
63
|
/**
|
|
239
64
|
* Defined in:
|
|
240
65
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -1124,3 +949,178 @@ export interface NetworkService {
|
|
|
1124
949
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
1125
950
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1126
951
|
}
|
|
952
|
+
/**
|
|
953
|
+
* Defined in:
|
|
954
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
955
|
+
*/
|
|
956
|
+
export interface Metrics {
|
|
957
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
958
|
+
values?: Metrics.KeyPair[];
|
|
959
|
+
}
|
|
960
|
+
export namespace Metrics {
|
|
961
|
+
/**
|
|
962
|
+
* Defined in:
|
|
963
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
964
|
+
*/
|
|
965
|
+
export interface KeyPair {
|
|
966
|
+
/**
|
|
967
|
+
* Options:
|
|
968
|
+
* - proto3_optional = true
|
|
969
|
+
*/
|
|
970
|
+
key?: string;
|
|
971
|
+
/**
|
|
972
|
+
* Options:
|
|
973
|
+
* - proto3_optional = true
|
|
974
|
+
*/
|
|
975
|
+
value?: dxos_value.Value;
|
|
976
|
+
/**
|
|
977
|
+
* Options:
|
|
978
|
+
* - proto3_optional = true
|
|
979
|
+
*/
|
|
980
|
+
stats?: dxos_value.Stats;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* Defined in:
|
|
985
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
986
|
+
*/
|
|
987
|
+
export interface ControlMetricsRequest {
|
|
988
|
+
/**
|
|
989
|
+
* Options:
|
|
990
|
+
* - proto3_optional = true
|
|
991
|
+
*/
|
|
992
|
+
reset?: boolean;
|
|
993
|
+
/**
|
|
994
|
+
* Options:
|
|
995
|
+
* - proto3_optional = true
|
|
996
|
+
*/
|
|
997
|
+
record?: boolean;
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
* Defined in:
|
|
1001
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1002
|
+
*/
|
|
1003
|
+
export interface ControlMetricsResponse {
|
|
1004
|
+
/**
|
|
1005
|
+
* Options:
|
|
1006
|
+
* - proto3_optional = true
|
|
1007
|
+
*/
|
|
1008
|
+
recording?: boolean;
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* Defined in:
|
|
1012
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1013
|
+
*/
|
|
1014
|
+
export interface QueryMetricsRequest {
|
|
1015
|
+
/**
|
|
1016
|
+
* Options:
|
|
1017
|
+
* - proto3_optional = true
|
|
1018
|
+
*/
|
|
1019
|
+
interval?: number;
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* Defined in:
|
|
1023
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1024
|
+
*/
|
|
1025
|
+
export interface QueryMetricsResponse {
|
|
1026
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1027
|
+
metrics: Metrics;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* Defined in:
|
|
1031
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1032
|
+
*/
|
|
1033
|
+
export enum LogLevel {
|
|
1034
|
+
TRACE = 5,
|
|
1035
|
+
DEBUG = 10,
|
|
1036
|
+
INFO = 11,
|
|
1037
|
+
WARN = 12,
|
|
1038
|
+
ERROR = 13
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
* Defined in:
|
|
1042
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1043
|
+
*/
|
|
1044
|
+
export interface QueryLogsRequest {
|
|
1045
|
+
filters?: QueryLogsRequest.Filter[];
|
|
1046
|
+
/**
|
|
1047
|
+
* Options:
|
|
1048
|
+
* - proto3_optional = true
|
|
1049
|
+
*/
|
|
1050
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
1051
|
+
}
|
|
1052
|
+
export namespace QueryLogsRequest {
|
|
1053
|
+
/**
|
|
1054
|
+
* Defined in:
|
|
1055
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1056
|
+
*/
|
|
1057
|
+
export enum MatchingOptions {
|
|
1058
|
+
INCLUSIVE = 1,
|
|
1059
|
+
EXPLICIT = 2
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
* Defined in:
|
|
1063
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1064
|
+
*/
|
|
1065
|
+
export interface Filter {
|
|
1066
|
+
level: LogLevel;
|
|
1067
|
+
/**
|
|
1068
|
+
* Options:
|
|
1069
|
+
* - proto3_optional = true
|
|
1070
|
+
*/
|
|
1071
|
+
pattern?: string;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Defined in:
|
|
1076
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1077
|
+
*/
|
|
1078
|
+
export interface LogEntry {
|
|
1079
|
+
level: LogLevel;
|
|
1080
|
+
message: string;
|
|
1081
|
+
/**
|
|
1082
|
+
* Options:
|
|
1083
|
+
* - proto3_optional = true
|
|
1084
|
+
*/
|
|
1085
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1086
|
+
/**
|
|
1087
|
+
* Options:
|
|
1088
|
+
* - proto3_optional = true
|
|
1089
|
+
*/
|
|
1090
|
+
meta?: LogEntry.Meta;
|
|
1091
|
+
/**
|
|
1092
|
+
* Options:
|
|
1093
|
+
* - proto3_optional = true
|
|
1094
|
+
*/
|
|
1095
|
+
error?: dxos_error.Error;
|
|
1096
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1097
|
+
}
|
|
1098
|
+
export namespace LogEntry {
|
|
1099
|
+
/**
|
|
1100
|
+
* Defined in:
|
|
1101
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1102
|
+
*/
|
|
1103
|
+
export interface Meta {
|
|
1104
|
+
file: string;
|
|
1105
|
+
line: number;
|
|
1106
|
+
/**
|
|
1107
|
+
* Options:
|
|
1108
|
+
* - proto3_optional = true
|
|
1109
|
+
*/
|
|
1110
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1111
|
+
/**
|
|
1112
|
+
* Options:
|
|
1113
|
+
* - proto3_optional = true
|
|
1114
|
+
*/
|
|
1115
|
+
resourceId?: number;
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Defined in:
|
|
1120
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1121
|
+
*/
|
|
1122
|
+
export interface LoggingService {
|
|
1123
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1124
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1125
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1126
|
+
}
|
|
@@ -143,7 +143,17 @@ export interface FlushRequest {
|
|
|
143
143
|
/**
|
|
144
144
|
* Automerge specific document ids to wait to flush.
|
|
145
145
|
*/
|
|
146
|
-
|
|
146
|
+
states?: FlushRequest.DocState[];
|
|
147
|
+
}
|
|
148
|
+
export namespace FlushRequest {
|
|
149
|
+
/**
|
|
150
|
+
* Defined in:
|
|
151
|
+
* {@link file://./../../../dxos/echo/service.proto}
|
|
152
|
+
*/
|
|
153
|
+
export interface DocState {
|
|
154
|
+
documentId: string;
|
|
155
|
+
heads?: string[];
|
|
156
|
+
}
|
|
147
157
|
}
|
|
148
158
|
/**
|
|
149
159
|
* Defined in:
|