@dxos/protocols 0.1.58-main.ac41ed1 → 0.1.58-main.ae0adad

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