@dxos/protocols 0.3.4 → 0.3.5-main.0b69ff7

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;AA2DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA+f7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,i96FAAi96F,CAAC,CAAC,CAAC;AAC1g7F,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;AA2DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAggB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,6/6FAA6/6F,CAAC,CAAC,CAAC;AACtj7F,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.3.4",
3
+ "version": "0.3.5-main.0b69ff7",
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.3.4",
37
- "@dxos/invariant": "0.3.4",
38
- "@dxos/keys": "0.3.4",
39
- "@dxos/timeframe": "0.3.4"
36
+ "@dxos/codec-protobuf": "0.3.5-main.0b69ff7",
37
+ "@dxos/invariant": "0.3.5-main.0b69ff7",
38
+ "@dxos/keys": "0.3.5-main.0b69ff7",
39
+ "@dxos/timeframe": "0.3.5-main.0b69ff7"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -11,7 +11,9 @@ message Command {
11
11
  oneof payload {
12
12
  OpenChannel open_channel = 1;
13
13
  Data data = 2;
14
+ // deprecated.
14
15
  Destroy destroy = 3;
16
+ Close close = 4;
15
17
  }
16
18
  }
17
19
 
@@ -48,4 +50,8 @@ message Data {
48
50
  message Destroy {
49
51
  /// Error that caused the termination.
50
52
  optional string error = 1;
53
+ }
54
+ message Close {
55
+ /// Error that caused the termination.
56
+ optional string error = 1;
51
57
  }
@@ -57,181 +57,6 @@ import * as dxos_value from "../value";
57
57
  import * as example_testing_data from "../../example/testing/data";
58
58
  import * as example_testing_rpc from "../../example/testing/rpc";
59
59
  import * as google_protobuf from "../../google/protobuf";
60
- /**
61
- * Defined in:
62
- * {@link file://./../../../dxos/client/logging.proto}
63
- */
64
- export interface Metrics {
65
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
66
- values?: Metrics.KeyPair[];
67
- }
68
- export namespace Metrics {
69
- /**
70
- * Defined in:
71
- * {@link file://./../../../dxos/client/logging.proto}
72
- */
73
- export interface KeyPair {
74
- /**
75
- * Options:
76
- * - proto3_optional = true
77
- */
78
- key?: string;
79
- /**
80
- * Options:
81
- * - proto3_optional = true
82
- */
83
- value?: dxos_value.Value;
84
- /**
85
- * Options:
86
- * - proto3_optional = true
87
- */
88
- stats?: dxos_value.Stats;
89
- }
90
- }
91
- /**
92
- * Defined in:
93
- * {@link file://./../../../dxos/client/logging.proto}
94
- */
95
- export interface ControlMetricsRequest {
96
- /**
97
- * Options:
98
- * - proto3_optional = true
99
- */
100
- reset?: boolean;
101
- /**
102
- * Options:
103
- * - proto3_optional = true
104
- */
105
- record?: boolean;
106
- }
107
- /**
108
- * Defined in:
109
- * {@link file://./../../../dxos/client/logging.proto}
110
- */
111
- export interface ControlMetricsResponse {
112
- /**
113
- * Options:
114
- * - proto3_optional = true
115
- */
116
- recording?: boolean;
117
- }
118
- /**
119
- * Defined in:
120
- * {@link file://./../../../dxos/client/logging.proto}
121
- */
122
- export interface QueryMetricsRequest {
123
- /**
124
- * Options:
125
- * - proto3_optional = true
126
- */
127
- interval?: number;
128
- }
129
- /**
130
- * Defined in:
131
- * {@link file://./../../../dxos/client/logging.proto}
132
- */
133
- export interface QueryMetricsResponse {
134
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
135
- metrics: Metrics;
136
- }
137
- /**
138
- * Defined in:
139
- * {@link file://./../../../dxos/client/logging.proto}
140
- */
141
- export enum LogLevel {
142
- TRACE = 5,
143
- DEBUG = 10,
144
- INFO = 11,
145
- WARN = 12,
146
- ERROR = 13
147
- }
148
- /**
149
- * Defined in:
150
- * {@link file://./../../../dxos/client/logging.proto}
151
- */
152
- export interface QueryLogsRequest {
153
- filters?: QueryLogsRequest.Filter[];
154
- /**
155
- * Options:
156
- * - proto3_optional = true
157
- */
158
- options?: QueryLogsRequest.MatchingOptions;
159
- }
160
- export namespace QueryLogsRequest {
161
- /**
162
- * Defined in:
163
- * {@link file://./../../../dxos/client/logging.proto}
164
- */
165
- export enum MatchingOptions {
166
- INCLUSIVE = 1,
167
- EXPLICIT = 2
168
- }
169
- /**
170
- * Defined in:
171
- * {@link file://./../../../dxos/client/logging.proto}
172
- */
173
- export interface Filter {
174
- level: LogLevel;
175
- /**
176
- * Options:
177
- * - proto3_optional = true
178
- */
179
- pattern?: string;
180
- }
181
- }
182
- /**
183
- * Defined in:
184
- * {@link file://./../../../dxos/client/logging.proto}
185
- */
186
- export interface LogEntry {
187
- level: LogLevel;
188
- message: string;
189
- /**
190
- * Options:
191
- * - proto3_optional = true
192
- */
193
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
194
- /**
195
- * Options:
196
- * - proto3_optional = true
197
- */
198
- meta?: LogEntry.Meta;
199
- /**
200
- * Options:
201
- * - proto3_optional = true
202
- */
203
- error?: dxos_error.Error;
204
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
205
- }
206
- export namespace LogEntry {
207
- /**
208
- * Defined in:
209
- * {@link file://./../../../dxos/client/logging.proto}
210
- */
211
- export interface Meta {
212
- file: string;
213
- line: number;
214
- /**
215
- * Options:
216
- * - proto3_optional = true
217
- */
218
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
219
- /**
220
- * Options:
221
- * - proto3_optional = true
222
- */
223
- resourceId?: number;
224
- }
225
- }
226
- /**
227
- * Defined in:
228
- * {@link file://./../../../dxos/client/logging.proto}
229
- */
230
- export interface LoggingService {
231
- controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
232
- queryMetrics: (request: QueryMetricsRequest) => Stream<QueryMetricsResponse>;
233
- queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
234
- }
235
60
  /**
236
61
  * Defined in:
237
62
  * {@link file://./../../../dxos/client/services.proto}
@@ -926,3 +751,178 @@ export interface NetworkService {
926
751
  updateConfig: (request: UpdateConfigRequest) => Promise<void>;
927
752
  queryStatus: (request: void) => Stream<NetworkStatus>;
928
753
  }
754
+ /**
755
+ * Defined in:
756
+ * {@link file://./../../../dxos/client/logging.proto}
757
+ */
758
+ export interface Metrics {
759
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
760
+ values?: Metrics.KeyPair[];
761
+ }
762
+ export namespace Metrics {
763
+ /**
764
+ * Defined in:
765
+ * {@link file://./../../../dxos/client/logging.proto}
766
+ */
767
+ export interface KeyPair {
768
+ /**
769
+ * Options:
770
+ * - proto3_optional = true
771
+ */
772
+ key?: string;
773
+ /**
774
+ * Options:
775
+ * - proto3_optional = true
776
+ */
777
+ value?: dxos_value.Value;
778
+ /**
779
+ * Options:
780
+ * - proto3_optional = true
781
+ */
782
+ stats?: dxos_value.Stats;
783
+ }
784
+ }
785
+ /**
786
+ * Defined in:
787
+ * {@link file://./../../../dxos/client/logging.proto}
788
+ */
789
+ export interface ControlMetricsRequest {
790
+ /**
791
+ * Options:
792
+ * - proto3_optional = true
793
+ */
794
+ reset?: boolean;
795
+ /**
796
+ * Options:
797
+ * - proto3_optional = true
798
+ */
799
+ record?: boolean;
800
+ }
801
+ /**
802
+ * Defined in:
803
+ * {@link file://./../../../dxos/client/logging.proto}
804
+ */
805
+ export interface ControlMetricsResponse {
806
+ /**
807
+ * Options:
808
+ * - proto3_optional = true
809
+ */
810
+ recording?: boolean;
811
+ }
812
+ /**
813
+ * Defined in:
814
+ * {@link file://./../../../dxos/client/logging.proto}
815
+ */
816
+ export interface QueryMetricsRequest {
817
+ /**
818
+ * Options:
819
+ * - proto3_optional = true
820
+ */
821
+ interval?: number;
822
+ }
823
+ /**
824
+ * Defined in:
825
+ * {@link file://./../../../dxos/client/logging.proto}
826
+ */
827
+ export interface QueryMetricsResponse {
828
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
829
+ metrics: Metrics;
830
+ }
831
+ /**
832
+ * Defined in:
833
+ * {@link file://./../../../dxos/client/logging.proto}
834
+ */
835
+ export enum LogLevel {
836
+ TRACE = 5,
837
+ DEBUG = 10,
838
+ INFO = 11,
839
+ WARN = 12,
840
+ ERROR = 13
841
+ }
842
+ /**
843
+ * Defined in:
844
+ * {@link file://./../../../dxos/client/logging.proto}
845
+ */
846
+ export interface QueryLogsRequest {
847
+ filters?: QueryLogsRequest.Filter[];
848
+ /**
849
+ * Options:
850
+ * - proto3_optional = true
851
+ */
852
+ options?: QueryLogsRequest.MatchingOptions;
853
+ }
854
+ export namespace QueryLogsRequest {
855
+ /**
856
+ * Defined in:
857
+ * {@link file://./../../../dxos/client/logging.proto}
858
+ */
859
+ export enum MatchingOptions {
860
+ INCLUSIVE = 1,
861
+ EXPLICIT = 2
862
+ }
863
+ /**
864
+ * Defined in:
865
+ * {@link file://./../../../dxos/client/logging.proto}
866
+ */
867
+ export interface Filter {
868
+ level: LogLevel;
869
+ /**
870
+ * Options:
871
+ * - proto3_optional = true
872
+ */
873
+ pattern?: string;
874
+ }
875
+ }
876
+ /**
877
+ * Defined in:
878
+ * {@link file://./../../../dxos/client/logging.proto}
879
+ */
880
+ export interface LogEntry {
881
+ level: LogLevel;
882
+ message: string;
883
+ /**
884
+ * Options:
885
+ * - proto3_optional = true
886
+ */
887
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
888
+ /**
889
+ * Options:
890
+ * - proto3_optional = true
891
+ */
892
+ meta?: LogEntry.Meta;
893
+ /**
894
+ * Options:
895
+ * - proto3_optional = true
896
+ */
897
+ error?: dxos_error.Error;
898
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
899
+ }
900
+ export namespace LogEntry {
901
+ /**
902
+ * Defined in:
903
+ * {@link file://./../../../dxos/client/logging.proto}
904
+ */
905
+ export interface Meta {
906
+ file: string;
907
+ line: number;
908
+ /**
909
+ * Options:
910
+ * - proto3_optional = true
911
+ */
912
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
913
+ /**
914
+ * Options:
915
+ * - proto3_optional = true
916
+ */
917
+ resourceId?: number;
918
+ }
919
+ }
920
+ /**
921
+ * Defined in:
922
+ * {@link file://./../../../dxos/client/logging.proto}
923
+ */
924
+ export interface LoggingService {
925
+ controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
926
+ queryMetrics: (request: QueryMetricsRequest) => Stream<QueryMetricsResponse>;
927
+ queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
928
+ }
@@ -67,6 +67,7 @@ export interface Command {
67
67
  openChannel?: OpenChannel;
68
68
  data?: Data;
69
69
  destroy?: Destroy;
70
+ close?: Close;
70
71
  }
71
72
  /**
72
73
  * Notify the remote peer that we are opening a channel.
@@ -124,3 +125,16 @@ export interface Destroy {
124
125
  */
125
126
  error?: string;
126
127
  }
128
+ /**
129
+ * Defined in:
130
+ * {@link file://./../../../dxos/mesh/muxer.proto}
131
+ */
132
+ export interface Close {
133
+ /**
134
+ * Error that caused the termination.
135
+ *
136
+ * Options:
137
+ * - proto3_optional = true
138
+ */
139
+ error?: string;
140
+ }