@dxos/protocols 0.4.4-main.fcf0b00 → 0.4.4-next.75bfacc
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/config.d.ts +7 -0
- package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/config.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 +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/config.d.ts +7 -0
- package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/config.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/config.proto +3 -0
- package/src/proto/gen/dxos/client/services.ts +175 -175
- package/src/proto/gen/dxos/config.ts +7 -0
- 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;AA6DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAohB7C,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;AA6DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAohB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,8umGAA8umG,CAAC,CAAC,CAAC;AACvymG,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.4-
|
|
3
|
+
"version": "0.4.4-next.75bfacc",
|
|
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/timeframe": "0.4.4-
|
|
39
|
-
"@dxos/
|
|
36
|
+
"@dxos/codec-protobuf": "0.4.4-next.75bfacc",
|
|
37
|
+
"@dxos/keys": "0.4.4-next.75bfacc",
|
|
38
|
+
"@dxos/timeframe": "0.4.4-next.75bfacc",
|
|
39
|
+
"@dxos/invariant": "0.4.4-next.75bfacc"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
|
@@ -324,6 +324,9 @@ message Runtime {
|
|
|
324
324
|
message Ipfs {
|
|
325
325
|
optional string server = 1;
|
|
326
326
|
optional string gateway = 2;
|
|
327
|
+
/// Used for IPFS API authentication, regardless if server is direct KUBO API (e.g. path of '/api/v0') or a reverse proxy
|
|
328
|
+
/// Same secret format as https://github.com/ipfs/kubo/blob/master/docs/config.md#apiauthorizations
|
|
329
|
+
optional string server_auth_secret = 3;
|
|
327
330
|
}
|
|
328
331
|
|
|
329
332
|
message Signal {
|
|
@@ -59,6 +59,181 @@ import * as dxos_value from "../value";
|
|
|
59
59
|
import * as example_testing_data from "../../example/testing/data";
|
|
60
60
|
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
61
61
|
import * as google_protobuf from "../../google/protobuf";
|
|
62
|
+
/**
|
|
63
|
+
* Defined in:
|
|
64
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
65
|
+
*/
|
|
66
|
+
export interface Metrics {
|
|
67
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
68
|
+
values?: Metrics.KeyPair[];
|
|
69
|
+
}
|
|
70
|
+
export namespace Metrics {
|
|
71
|
+
/**
|
|
72
|
+
* Defined in:
|
|
73
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
74
|
+
*/
|
|
75
|
+
export interface KeyPair {
|
|
76
|
+
/**
|
|
77
|
+
* Options:
|
|
78
|
+
* - proto3_optional = true
|
|
79
|
+
*/
|
|
80
|
+
key?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Options:
|
|
83
|
+
* - proto3_optional = true
|
|
84
|
+
*/
|
|
85
|
+
value?: dxos_value.Value;
|
|
86
|
+
/**
|
|
87
|
+
* Options:
|
|
88
|
+
* - proto3_optional = true
|
|
89
|
+
*/
|
|
90
|
+
stats?: dxos_value.Stats;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Defined in:
|
|
95
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
96
|
+
*/
|
|
97
|
+
export interface ControlMetricsRequest {
|
|
98
|
+
/**
|
|
99
|
+
* Options:
|
|
100
|
+
* - proto3_optional = true
|
|
101
|
+
*/
|
|
102
|
+
reset?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Options:
|
|
105
|
+
* - proto3_optional = true
|
|
106
|
+
*/
|
|
107
|
+
record?: boolean;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Defined in:
|
|
111
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
112
|
+
*/
|
|
113
|
+
export interface ControlMetricsResponse {
|
|
114
|
+
/**
|
|
115
|
+
* Options:
|
|
116
|
+
* - proto3_optional = true
|
|
117
|
+
*/
|
|
118
|
+
recording?: boolean;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Defined in:
|
|
122
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
123
|
+
*/
|
|
124
|
+
export interface QueryMetricsRequest {
|
|
125
|
+
/**
|
|
126
|
+
* Options:
|
|
127
|
+
* - proto3_optional = true
|
|
128
|
+
*/
|
|
129
|
+
interval?: number;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Defined in:
|
|
133
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
134
|
+
*/
|
|
135
|
+
export interface QueryMetricsResponse {
|
|
136
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
137
|
+
metrics: Metrics;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Defined in:
|
|
141
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
142
|
+
*/
|
|
143
|
+
export enum LogLevel {
|
|
144
|
+
TRACE = 5,
|
|
145
|
+
DEBUG = 10,
|
|
146
|
+
INFO = 11,
|
|
147
|
+
WARN = 12,
|
|
148
|
+
ERROR = 13
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Defined in:
|
|
152
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
153
|
+
*/
|
|
154
|
+
export interface QueryLogsRequest {
|
|
155
|
+
filters?: QueryLogsRequest.Filter[];
|
|
156
|
+
/**
|
|
157
|
+
* Options:
|
|
158
|
+
* - proto3_optional = true
|
|
159
|
+
*/
|
|
160
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
161
|
+
}
|
|
162
|
+
export namespace QueryLogsRequest {
|
|
163
|
+
/**
|
|
164
|
+
* Defined in:
|
|
165
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
166
|
+
*/
|
|
167
|
+
export enum MatchingOptions {
|
|
168
|
+
INCLUSIVE = 1,
|
|
169
|
+
EXPLICIT = 2
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Defined in:
|
|
173
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
174
|
+
*/
|
|
175
|
+
export interface Filter {
|
|
176
|
+
level: LogLevel;
|
|
177
|
+
/**
|
|
178
|
+
* Options:
|
|
179
|
+
* - proto3_optional = true
|
|
180
|
+
*/
|
|
181
|
+
pattern?: string;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Defined in:
|
|
186
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
187
|
+
*/
|
|
188
|
+
export interface LogEntry {
|
|
189
|
+
level: LogLevel;
|
|
190
|
+
message: string;
|
|
191
|
+
/**
|
|
192
|
+
* Options:
|
|
193
|
+
* - proto3_optional = true
|
|
194
|
+
*/
|
|
195
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
196
|
+
/**
|
|
197
|
+
* Options:
|
|
198
|
+
* - proto3_optional = true
|
|
199
|
+
*/
|
|
200
|
+
meta?: LogEntry.Meta;
|
|
201
|
+
/**
|
|
202
|
+
* Options:
|
|
203
|
+
* - proto3_optional = true
|
|
204
|
+
*/
|
|
205
|
+
error?: dxos_error.Error;
|
|
206
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
207
|
+
}
|
|
208
|
+
export namespace LogEntry {
|
|
209
|
+
/**
|
|
210
|
+
* Defined in:
|
|
211
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
212
|
+
*/
|
|
213
|
+
export interface Meta {
|
|
214
|
+
file: string;
|
|
215
|
+
line: number;
|
|
216
|
+
/**
|
|
217
|
+
* Options:
|
|
218
|
+
* - proto3_optional = true
|
|
219
|
+
*/
|
|
220
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
221
|
+
/**
|
|
222
|
+
* Options:
|
|
223
|
+
* - proto3_optional = true
|
|
224
|
+
*/
|
|
225
|
+
resourceId?: number;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Defined in:
|
|
230
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
231
|
+
*/
|
|
232
|
+
export interface LoggingService {
|
|
233
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
234
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
235
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
236
|
+
}
|
|
62
237
|
/**
|
|
63
238
|
* Defined in:
|
|
64
239
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -856,178 +1031,3 @@ export interface NetworkService {
|
|
|
856
1031
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
857
1032
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
858
1033
|
}
|
|
859
|
-
/**
|
|
860
|
-
* Defined in:
|
|
861
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
862
|
-
*/
|
|
863
|
-
export interface Metrics {
|
|
864
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
865
|
-
values?: Metrics.KeyPair[];
|
|
866
|
-
}
|
|
867
|
-
export namespace Metrics {
|
|
868
|
-
/**
|
|
869
|
-
* Defined in:
|
|
870
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
871
|
-
*/
|
|
872
|
-
export interface KeyPair {
|
|
873
|
-
/**
|
|
874
|
-
* Options:
|
|
875
|
-
* - proto3_optional = true
|
|
876
|
-
*/
|
|
877
|
-
key?: string;
|
|
878
|
-
/**
|
|
879
|
-
* Options:
|
|
880
|
-
* - proto3_optional = true
|
|
881
|
-
*/
|
|
882
|
-
value?: dxos_value.Value;
|
|
883
|
-
/**
|
|
884
|
-
* Options:
|
|
885
|
-
* - proto3_optional = true
|
|
886
|
-
*/
|
|
887
|
-
stats?: dxos_value.Stats;
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
/**
|
|
891
|
-
* Defined in:
|
|
892
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
893
|
-
*/
|
|
894
|
-
export interface ControlMetricsRequest {
|
|
895
|
-
/**
|
|
896
|
-
* Options:
|
|
897
|
-
* - proto3_optional = true
|
|
898
|
-
*/
|
|
899
|
-
reset?: boolean;
|
|
900
|
-
/**
|
|
901
|
-
* Options:
|
|
902
|
-
* - proto3_optional = true
|
|
903
|
-
*/
|
|
904
|
-
record?: boolean;
|
|
905
|
-
}
|
|
906
|
-
/**
|
|
907
|
-
* Defined in:
|
|
908
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
909
|
-
*/
|
|
910
|
-
export interface ControlMetricsResponse {
|
|
911
|
-
/**
|
|
912
|
-
* Options:
|
|
913
|
-
* - proto3_optional = true
|
|
914
|
-
*/
|
|
915
|
-
recording?: boolean;
|
|
916
|
-
}
|
|
917
|
-
/**
|
|
918
|
-
* Defined in:
|
|
919
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
920
|
-
*/
|
|
921
|
-
export interface QueryMetricsRequest {
|
|
922
|
-
/**
|
|
923
|
-
* Options:
|
|
924
|
-
* - proto3_optional = true
|
|
925
|
-
*/
|
|
926
|
-
interval?: number;
|
|
927
|
-
}
|
|
928
|
-
/**
|
|
929
|
-
* Defined in:
|
|
930
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
931
|
-
*/
|
|
932
|
-
export interface QueryMetricsResponse {
|
|
933
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
934
|
-
metrics: Metrics;
|
|
935
|
-
}
|
|
936
|
-
/**
|
|
937
|
-
* Defined in:
|
|
938
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
939
|
-
*/
|
|
940
|
-
export enum LogLevel {
|
|
941
|
-
TRACE = 5,
|
|
942
|
-
DEBUG = 10,
|
|
943
|
-
INFO = 11,
|
|
944
|
-
WARN = 12,
|
|
945
|
-
ERROR = 13
|
|
946
|
-
}
|
|
947
|
-
/**
|
|
948
|
-
* Defined in:
|
|
949
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
950
|
-
*/
|
|
951
|
-
export interface QueryLogsRequest {
|
|
952
|
-
filters?: QueryLogsRequest.Filter[];
|
|
953
|
-
/**
|
|
954
|
-
* Options:
|
|
955
|
-
* - proto3_optional = true
|
|
956
|
-
*/
|
|
957
|
-
options?: QueryLogsRequest.MatchingOptions;
|
|
958
|
-
}
|
|
959
|
-
export namespace QueryLogsRequest {
|
|
960
|
-
/**
|
|
961
|
-
* Defined in:
|
|
962
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
963
|
-
*/
|
|
964
|
-
export enum MatchingOptions {
|
|
965
|
-
INCLUSIVE = 1,
|
|
966
|
-
EXPLICIT = 2
|
|
967
|
-
}
|
|
968
|
-
/**
|
|
969
|
-
* Defined in:
|
|
970
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
971
|
-
*/
|
|
972
|
-
export interface Filter {
|
|
973
|
-
level: LogLevel;
|
|
974
|
-
/**
|
|
975
|
-
* Options:
|
|
976
|
-
* - proto3_optional = true
|
|
977
|
-
*/
|
|
978
|
-
pattern?: string;
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
/**
|
|
982
|
-
* Defined in:
|
|
983
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
984
|
-
*/
|
|
985
|
-
export interface LogEntry {
|
|
986
|
-
level: LogLevel;
|
|
987
|
-
message: string;
|
|
988
|
-
/**
|
|
989
|
-
* Options:
|
|
990
|
-
* - proto3_optional = true
|
|
991
|
-
*/
|
|
992
|
-
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
993
|
-
/**
|
|
994
|
-
* Options:
|
|
995
|
-
* - proto3_optional = true
|
|
996
|
-
*/
|
|
997
|
-
meta?: LogEntry.Meta;
|
|
998
|
-
/**
|
|
999
|
-
* Options:
|
|
1000
|
-
* - proto3_optional = true
|
|
1001
|
-
*/
|
|
1002
|
-
error?: dxos_error.Error;
|
|
1003
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1004
|
-
}
|
|
1005
|
-
export namespace LogEntry {
|
|
1006
|
-
/**
|
|
1007
|
-
* Defined in:
|
|
1008
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1009
|
-
*/
|
|
1010
|
-
export interface Meta {
|
|
1011
|
-
file: string;
|
|
1012
|
-
line: number;
|
|
1013
|
-
/**
|
|
1014
|
-
* Options:
|
|
1015
|
-
* - proto3_optional = true
|
|
1016
|
-
*/
|
|
1017
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1018
|
-
/**
|
|
1019
|
-
* Options:
|
|
1020
|
-
* - proto3_optional = true
|
|
1021
|
-
*/
|
|
1022
|
-
resourceId?: number;
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
/**
|
|
1026
|
-
* Defined in:
|
|
1027
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1028
|
-
*/
|
|
1029
|
-
export interface LoggingService {
|
|
1030
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1031
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1032
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1033
|
-
}
|
|
@@ -876,6 +876,13 @@ export namespace Runtime {
|
|
|
876
876
|
* - proto3_optional = true
|
|
877
877
|
*/
|
|
878
878
|
gateway?: string;
|
|
879
|
+
/**
|
|
880
|
+
* Same secret format as https://github.com/ipfs/kubo/blob/master/docs/config.md#apiauthorizations
|
|
881
|
+
*
|
|
882
|
+
* Options:
|
|
883
|
+
* - proto3_optional = true
|
|
884
|
+
*/
|
|
885
|
+
serverAuthSecret?: string;
|
|
879
886
|
}
|
|
880
887
|
/**
|
|
881
888
|
* Defined in:
|
|
@@ -78,14 +78,14 @@ export enum NullValue {
|
|
|
78
78
|
export interface ListValue {
|
|
79
79
|
values?: Value[];
|
|
80
80
|
}
|
|
81
|
-
export interface Timestamp {
|
|
82
|
-
seconds: string;
|
|
83
|
-
nanos: number;
|
|
84
|
-
}
|
|
85
81
|
export interface Any {
|
|
86
82
|
type_url: string;
|
|
87
83
|
value: Uint8Array;
|
|
88
84
|
}
|
|
85
|
+
export interface Timestamp {
|
|
86
|
+
seconds: string;
|
|
87
|
+
nanos: number;
|
|
88
|
+
}
|
|
89
89
|
export interface FileDescriptorSet {
|
|
90
90
|
file?: FileDescriptorProto[];
|
|
91
91
|
}
|