@dxos/protocols 0.4.10-main.fda6f37 → 0.4.10-main.fe71b4c

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.
@@ -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;AA6hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,g7tGAAg7tG,CAAC,CAAC,CAAC;AACz+tG,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;AA8DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA6hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,6huGAA6huG,CAAC,CAAC,CAAC;AACtluG,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.fda6f37",
3
+ "version": "0.4.10-main.fe71b4c",
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.4.10-main.fda6f37",
37
- "@dxos/timeframe": "0.4.10-main.fda6f37",
38
- "@dxos/invariant": "0.4.10-main.fda6f37",
39
- "@dxos/keys": "0.4.10-main.fda6f37"
36
+ "@dxos/invariant": "0.4.10-main.fe71b4c",
37
+ "@dxos/keys": "0.4.10-main.fe71b4c",
38
+ "@dxos/timeframe": "0.4.10-main.fe71b4c",
39
+ "@dxos/codec-protobuf": "0.4.10-main.fe71b4c"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -131,9 +131,13 @@ message Runtime {
131
131
  /// Location of the remote client host.
132
132
  // TODO(burdon): Rename vault_endpoint (generalize http/ws; drop vault.html).
133
133
  optional string remote_source = 6;
134
-
134
+
135
+ // Authenticate via `Sec-WebSocket-Protocol` header hack.
136
+ optional string remote_source_authentication_token = 8;
137
+
135
138
  /// Connect to and serve client services to a remote proxy.
136
139
  optional string devtools_proxy = 7;
140
+
137
141
  }
138
142
 
139
143
  message App {
@@ -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}
@@ -951,178 +1126,3 @@ export interface NetworkService {
951
1126
  updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
952
1127
  queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
953
1128
  }
954
- /**
955
- * Defined in:
956
- * {@link file://./../../../dxos/client/logging.proto}
957
- */
958
- export interface Metrics {
959
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
960
- values?: Metrics.KeyPair[];
961
- }
962
- export namespace Metrics {
963
- /**
964
- * Defined in:
965
- * {@link file://./../../../dxos/client/logging.proto}
966
- */
967
- export interface KeyPair {
968
- /**
969
- * Options:
970
- * - proto3_optional = true
971
- */
972
- key?: string;
973
- /**
974
- * Options:
975
- * - proto3_optional = true
976
- */
977
- value?: dxos_value.Value;
978
- /**
979
- * Options:
980
- * - proto3_optional = true
981
- */
982
- stats?: dxos_value.Stats;
983
- }
984
- }
985
- /**
986
- * Defined in:
987
- * {@link file://./../../../dxos/client/logging.proto}
988
- */
989
- export interface ControlMetricsRequest {
990
- /**
991
- * Options:
992
- * - proto3_optional = true
993
- */
994
- reset?: boolean;
995
- /**
996
- * Options:
997
- * - proto3_optional = true
998
- */
999
- record?: boolean;
1000
- }
1001
- /**
1002
- * Defined in:
1003
- * {@link file://./../../../dxos/client/logging.proto}
1004
- */
1005
- export interface ControlMetricsResponse {
1006
- /**
1007
- * Options:
1008
- * - proto3_optional = true
1009
- */
1010
- recording?: boolean;
1011
- }
1012
- /**
1013
- * Defined in:
1014
- * {@link file://./../../../dxos/client/logging.proto}
1015
- */
1016
- export interface QueryMetricsRequest {
1017
- /**
1018
- * Options:
1019
- * - proto3_optional = true
1020
- */
1021
- interval?: number;
1022
- }
1023
- /**
1024
- * Defined in:
1025
- * {@link file://./../../../dxos/client/logging.proto}
1026
- */
1027
- export interface QueryMetricsResponse {
1028
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1029
- metrics: Metrics;
1030
- }
1031
- /**
1032
- * Defined in:
1033
- * {@link file://./../../../dxos/client/logging.proto}
1034
- */
1035
- export enum LogLevel {
1036
- TRACE = 5,
1037
- DEBUG = 10,
1038
- INFO = 11,
1039
- WARN = 12,
1040
- ERROR = 13
1041
- }
1042
- /**
1043
- * Defined in:
1044
- * {@link file://./../../../dxos/client/logging.proto}
1045
- */
1046
- export interface QueryLogsRequest {
1047
- filters?: QueryLogsRequest.Filter[];
1048
- /**
1049
- * Options:
1050
- * - proto3_optional = true
1051
- */
1052
- options?: QueryLogsRequest.MatchingOptions;
1053
- }
1054
- export namespace QueryLogsRequest {
1055
- /**
1056
- * Defined in:
1057
- * {@link file://./../../../dxos/client/logging.proto}
1058
- */
1059
- export enum MatchingOptions {
1060
- INCLUSIVE = 1,
1061
- EXPLICIT = 2
1062
- }
1063
- /**
1064
- * Defined in:
1065
- * {@link file://./../../../dxos/client/logging.proto}
1066
- */
1067
- export interface Filter {
1068
- level: LogLevel;
1069
- /**
1070
- * Options:
1071
- * - proto3_optional = true
1072
- */
1073
- pattern?: string;
1074
- }
1075
- }
1076
- /**
1077
- * Defined in:
1078
- * {@link file://./../../../dxos/client/logging.proto}
1079
- */
1080
- export interface LogEntry {
1081
- level: LogLevel;
1082
- message: string;
1083
- /**
1084
- * Options:
1085
- * - proto3_optional = true
1086
- */
1087
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1088
- /**
1089
- * Options:
1090
- * - proto3_optional = true
1091
- */
1092
- meta?: LogEntry.Meta;
1093
- /**
1094
- * Options:
1095
- * - proto3_optional = true
1096
- */
1097
- error?: dxos_error.Error;
1098
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1099
- }
1100
- export namespace LogEntry {
1101
- /**
1102
- * Defined in:
1103
- * {@link file://./../../../dxos/client/logging.proto}
1104
- */
1105
- export interface Meta {
1106
- file: string;
1107
- line: number;
1108
- /**
1109
- * Options:
1110
- * - proto3_optional = true
1111
- */
1112
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1113
- /**
1114
- * Options:
1115
- * - proto3_optional = true
1116
- */
1117
- resourceId?: number;
1118
- }
1119
- }
1120
- /**
1121
- * Defined in:
1122
- * {@link file://./../../../dxos/client/logging.proto}
1123
- */
1124
- export interface LoggingService {
1125
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
1126
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
1127
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
1128
- }
@@ -291,6 +291,11 @@ export namespace Runtime {
291
291
  * - proto3_optional = true
292
292
  */
293
293
  remoteSource?: string;
294
+ /**
295
+ * Options:
296
+ * - proto3_optional = true
297
+ */
298
+ remoteSourceAuthenticationToken?: string;
294
299
  /**
295
300
  * Connect to and serve client services to a remote proxy.
296
301
  *