@dxos/protocols 0.4.10-main.93fda5f → 0.4.10-main.a14f081
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 +177 -176
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +26 -25
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts +4 -4
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
- 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 +177 -176
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +25 -24
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.d.ts +4 -4
- package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
- 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/client/services.proto +3 -0
- package/src/proto/gen/dxos/client/services.ts +177 -176
- package/src/proto/gen/google/protobuf.ts +4 -4
- 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;AA8DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA4hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,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;AA4hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,y+rGAAy+rG,CAAC,CAAC,CAAC;AAClisG,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.a14f081",
|
|
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.4.10-main.
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
36
|
+
"@dxos/invariant": "0.4.10-main.a14f081",
|
|
37
|
+
"@dxos/keys": "0.4.10-main.a14f081",
|
|
38
|
+
"@dxos/timeframe": "0.4.10-main.a14f081",
|
|
39
|
+
"@dxos/codec-protobuf": "0.4.10-main.a14f081"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
|
@@ -356,6 +356,9 @@ message CreateEpochRequest {
|
|
|
356
356
|
|
|
357
357
|
/// Init new automerge root by clonning the current space root. History is pruned.
|
|
358
358
|
PRUNE_AUTOMERGE_ROOT_HISTORY = 2;
|
|
359
|
+
|
|
360
|
+
/// Create a new space root and move objects from the current space root to separate automerge documents and.
|
|
361
|
+
FRAGMENT_AUTOMERGE_ROOT = 3;
|
|
359
362
|
}
|
|
360
363
|
|
|
361
364
|
dxos.keys.PublicKey space_key = 1;
|
|
@@ -60,6 +60,181 @@ 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
|
+
}
|
|
63
238
|
/**
|
|
64
239
|
* Defined in:
|
|
65
240
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -629,7 +804,8 @@ export namespace CreateEpochRequest {
|
|
|
629
804
|
export enum Migration {
|
|
630
805
|
NONE = 0,
|
|
631
806
|
INIT_AUTOMERGE = 1,
|
|
632
|
-
PRUNE_AUTOMERGE_ROOT_HISTORY = 2
|
|
807
|
+
PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
|
|
808
|
+
FRAGMENT_AUTOMERGE_ROOT = 3
|
|
633
809
|
}
|
|
634
810
|
}
|
|
635
811
|
/**
|
|
@@ -923,178 +1099,3 @@ export interface NetworkService {
|
|
|
923
1099
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
924
1100
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
925
1101
|
}
|
|
926
|
-
/**
|
|
927
|
-
* Defined in:
|
|
928
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
929
|
-
*/
|
|
930
|
-
export interface Metrics {
|
|
931
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
932
|
-
values?: Metrics.KeyPair[];
|
|
933
|
-
}
|
|
934
|
-
export namespace Metrics {
|
|
935
|
-
/**
|
|
936
|
-
* Defined in:
|
|
937
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
938
|
-
*/
|
|
939
|
-
export interface KeyPair {
|
|
940
|
-
/**
|
|
941
|
-
* Options:
|
|
942
|
-
* - proto3_optional = true
|
|
943
|
-
*/
|
|
944
|
-
key?: string;
|
|
945
|
-
/**
|
|
946
|
-
* Options:
|
|
947
|
-
* - proto3_optional = true
|
|
948
|
-
*/
|
|
949
|
-
value?: dxos_value.Value;
|
|
950
|
-
/**
|
|
951
|
-
* Options:
|
|
952
|
-
* - proto3_optional = true
|
|
953
|
-
*/
|
|
954
|
-
stats?: dxos_value.Stats;
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
/**
|
|
958
|
-
* Defined in:
|
|
959
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
960
|
-
*/
|
|
961
|
-
export interface ControlMetricsRequest {
|
|
962
|
-
/**
|
|
963
|
-
* Options:
|
|
964
|
-
* - proto3_optional = true
|
|
965
|
-
*/
|
|
966
|
-
reset?: boolean;
|
|
967
|
-
/**
|
|
968
|
-
* Options:
|
|
969
|
-
* - proto3_optional = true
|
|
970
|
-
*/
|
|
971
|
-
record?: boolean;
|
|
972
|
-
}
|
|
973
|
-
/**
|
|
974
|
-
* Defined in:
|
|
975
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
976
|
-
*/
|
|
977
|
-
export interface ControlMetricsResponse {
|
|
978
|
-
/**
|
|
979
|
-
* Options:
|
|
980
|
-
* - proto3_optional = true
|
|
981
|
-
*/
|
|
982
|
-
recording?: boolean;
|
|
983
|
-
}
|
|
984
|
-
/**
|
|
985
|
-
* Defined in:
|
|
986
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
987
|
-
*/
|
|
988
|
-
export interface QueryMetricsRequest {
|
|
989
|
-
/**
|
|
990
|
-
* Options:
|
|
991
|
-
* - proto3_optional = true
|
|
992
|
-
*/
|
|
993
|
-
interval?: number;
|
|
994
|
-
}
|
|
995
|
-
/**
|
|
996
|
-
* Defined in:
|
|
997
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
998
|
-
*/
|
|
999
|
-
export interface QueryMetricsResponse {
|
|
1000
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1001
|
-
metrics: Metrics;
|
|
1002
|
-
}
|
|
1003
|
-
/**
|
|
1004
|
-
* Defined in:
|
|
1005
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1006
|
-
*/
|
|
1007
|
-
export enum LogLevel {
|
|
1008
|
-
TRACE = 5,
|
|
1009
|
-
DEBUG = 10,
|
|
1010
|
-
INFO = 11,
|
|
1011
|
-
WARN = 12,
|
|
1012
|
-
ERROR = 13
|
|
1013
|
-
}
|
|
1014
|
-
/**
|
|
1015
|
-
* Defined in:
|
|
1016
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1017
|
-
*/
|
|
1018
|
-
export interface QueryLogsRequest {
|
|
1019
|
-
filters?: QueryLogsRequest.Filter[];
|
|
1020
|
-
/**
|
|
1021
|
-
* Options:
|
|
1022
|
-
* - proto3_optional = true
|
|
1023
|
-
*/
|
|
1024
|
-
options?: QueryLogsRequest.MatchingOptions;
|
|
1025
|
-
}
|
|
1026
|
-
export namespace QueryLogsRequest {
|
|
1027
|
-
/**
|
|
1028
|
-
* Defined in:
|
|
1029
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1030
|
-
*/
|
|
1031
|
-
export enum MatchingOptions {
|
|
1032
|
-
INCLUSIVE = 1,
|
|
1033
|
-
EXPLICIT = 2
|
|
1034
|
-
}
|
|
1035
|
-
/**
|
|
1036
|
-
* Defined in:
|
|
1037
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1038
|
-
*/
|
|
1039
|
-
export interface Filter {
|
|
1040
|
-
level: LogLevel;
|
|
1041
|
-
/**
|
|
1042
|
-
* Options:
|
|
1043
|
-
* - proto3_optional = true
|
|
1044
|
-
*/
|
|
1045
|
-
pattern?: string;
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
/**
|
|
1049
|
-
* Defined in:
|
|
1050
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1051
|
-
*/
|
|
1052
|
-
export interface LogEntry {
|
|
1053
|
-
level: LogLevel;
|
|
1054
|
-
message: string;
|
|
1055
|
-
/**
|
|
1056
|
-
* Options:
|
|
1057
|
-
* - proto3_optional = true
|
|
1058
|
-
*/
|
|
1059
|
-
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1060
|
-
/**
|
|
1061
|
-
* Options:
|
|
1062
|
-
* - proto3_optional = true
|
|
1063
|
-
*/
|
|
1064
|
-
meta?: LogEntry.Meta;
|
|
1065
|
-
/**
|
|
1066
|
-
* Options:
|
|
1067
|
-
* - proto3_optional = true
|
|
1068
|
-
*/
|
|
1069
|
-
error?: dxos_error.Error;
|
|
1070
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1071
|
-
}
|
|
1072
|
-
export namespace LogEntry {
|
|
1073
|
-
/**
|
|
1074
|
-
* Defined in:
|
|
1075
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1076
|
-
*/
|
|
1077
|
-
export interface Meta {
|
|
1078
|
-
file: string;
|
|
1079
|
-
line: number;
|
|
1080
|
-
/**
|
|
1081
|
-
* Options:
|
|
1082
|
-
* - proto3_optional = true
|
|
1083
|
-
*/
|
|
1084
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1085
|
-
/**
|
|
1086
|
-
* Options:
|
|
1087
|
-
* - proto3_optional = true
|
|
1088
|
-
*/
|
|
1089
|
-
resourceId?: number;
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
/**
|
|
1093
|
-
* Defined in:
|
|
1094
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1095
|
-
*/
|
|
1096
|
-
export interface LoggingService {
|
|
1097
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1098
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1099
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1100
|
-
}
|
|
@@ -79,14 +79,14 @@ export enum NullValue {
|
|
|
79
79
|
export interface ListValue {
|
|
80
80
|
values?: Value[];
|
|
81
81
|
}
|
|
82
|
-
export interface Any {
|
|
83
|
-
type_url: string;
|
|
84
|
-
value: Uint8Array;
|
|
85
|
-
}
|
|
86
82
|
export interface Timestamp {
|
|
87
83
|
seconds: string;
|
|
88
84
|
nanos: number;
|
|
89
85
|
}
|
|
86
|
+
export interface Any {
|
|
87
|
+
type_url: string;
|
|
88
|
+
value: Uint8Array;
|
|
89
|
+
}
|
|
90
90
|
export interface FileDescriptorSet {
|
|
91
91
|
file?: FileDescriptorProto[];
|
|
92
92
|
}
|