@dxos/protocols 0.3.3-main.1817c8a → 0.3.3-main.22971a3

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