@dxos/protocols 0.1.55 → 0.1.56-main.1034c86

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.
@@ -52,168 +52,6 @@ import * as dxos_value from "../value";
52
52
  import * as example_testing_data from "../../example/testing/data";
53
53
  import * as example_testing_rpc from "../../example/testing/rpc";
54
54
  import * as google_protobuf from "../../google/protobuf";
55
- /**
56
- * Defined in:
57
- * {@link file://./../../../dxos/client/logging.proto}
58
- */
59
- export interface Metrics {
60
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
61
- values?: Metrics.KeyPair[];
62
- }
63
- export namespace Metrics {
64
- /**
65
- * Defined in:
66
- * {@link file://./../../../dxos/client/logging.proto}
67
- */
68
- export interface KeyPair {
69
- /**
70
- * Options:
71
- * - proto3_optional = true
72
- */
73
- key?: string;
74
- /**
75
- * Options:
76
- * - proto3_optional = true
77
- */
78
- value?: dxos_value.Value;
79
- /**
80
- * Options:
81
- * - proto3_optional = true
82
- */
83
- stats?: dxos_value.Stats;
84
- }
85
- }
86
- /**
87
- * Defined in:
88
- * {@link file://./../../../dxos/client/logging.proto}
89
- */
90
- export interface ControlMetricsRequest {
91
- /**
92
- * Options:
93
- * - proto3_optional = true
94
- */
95
- reset?: boolean;
96
- /**
97
- * Options:
98
- * - proto3_optional = true
99
- */
100
- record?: boolean;
101
- }
102
- /**
103
- * Defined in:
104
- * {@link file://./../../../dxos/client/logging.proto}
105
- */
106
- export interface ControlMetricsResponse {
107
- /**
108
- * Options:
109
- * - proto3_optional = true
110
- */
111
- recording?: boolean;
112
- }
113
- /**
114
- * Defined in:
115
- * {@link file://./../../../dxos/client/logging.proto}
116
- */
117
- export interface QueryMetricsRequest {
118
- /**
119
- * Options:
120
- * - proto3_optional = true
121
- */
122
- interval?: number;
123
- }
124
- /**
125
- * Defined in:
126
- * {@link file://./../../../dxos/client/logging.proto}
127
- */
128
- export enum LogLevel {
129
- TRACE = 5,
130
- DEBUG = 10,
131
- INFO = 11,
132
- WARN = 12,
133
- ERROR = 13
134
- }
135
- /**
136
- * Defined in:
137
- * {@link file://./../../../dxos/client/logging.proto}
138
- */
139
- export interface QueryLogsRequest {
140
- filters?: QueryLogsRequest.Filter[];
141
- /**
142
- * Options:
143
- * - proto3_optional = true
144
- */
145
- options?: QueryLogsRequest.MatchingOptions;
146
- }
147
- export namespace QueryLogsRequest {
148
- /**
149
- * Defined in:
150
- * {@link file://./../../../dxos/client/logging.proto}
151
- */
152
- export enum MatchingOptions {
153
- INCLUSIVE = 1,
154
- EXPLICIT = 2
155
- }
156
- /**
157
- * Defined in:
158
- * {@link file://./../../../dxos/client/logging.proto}
159
- */
160
- export interface Filter {
161
- level: LogLevel;
162
- /**
163
- * Options:
164
- * - proto3_optional = true
165
- */
166
- pattern?: string;
167
- }
168
- }
169
- /**
170
- * Defined in:
171
- * {@link file://./../../../dxos/client/logging.proto}
172
- */
173
- export interface LogEntry {
174
- level: LogLevel;
175
- message: string;
176
- /**
177
- * Options:
178
- * - proto3_optional = true
179
- */
180
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
181
- /**
182
- * Options:
183
- * - proto3_optional = true
184
- */
185
- meta?: LogEntry.Meta;
186
- /**
187
- * Options:
188
- * - proto3_optional = true
189
- */
190
- error?: dxos_error.Error;
191
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
192
- }
193
- export namespace LogEntry {
194
- /**
195
- * Defined in:
196
- * {@link file://./../../../dxos/client/logging.proto}
197
- */
198
- export interface Meta {
199
- file: string;
200
- line: number;
201
- /**
202
- * Options:
203
- * - proto3_optional = true
204
- */
205
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
206
- }
207
- }
208
- /**
209
- * Defined in:
210
- * {@link file://./../../../dxos/client/logging.proto}
211
- */
212
- export interface LoggingService {
213
- controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
214
- queryMetrics: (request: QueryMetricsRequest) => Stream<Metrics>;
215
- queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
216
- }
217
55
  /**
218
56
  * Defined in:
219
57
  * {@link file://./../../../dxos/client/services.proto}
@@ -866,3 +704,165 @@ export interface NetworkService {
866
704
  updateConfig: (request: UpdateConfigRequest) => Promise<void>;
867
705
  queryStatus: (request: void) => Stream<NetworkStatus>;
868
706
  }
707
+ /**
708
+ * Defined in:
709
+ * {@link file://./../../../dxos/client/logging.proto}
710
+ */
711
+ export interface Metrics {
712
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
713
+ values?: Metrics.KeyPair[];
714
+ }
715
+ export namespace Metrics {
716
+ /**
717
+ * Defined in:
718
+ * {@link file://./../../../dxos/client/logging.proto}
719
+ */
720
+ export interface KeyPair {
721
+ /**
722
+ * Options:
723
+ * - proto3_optional = true
724
+ */
725
+ key?: string;
726
+ /**
727
+ * Options:
728
+ * - proto3_optional = true
729
+ */
730
+ value?: dxos_value.Value;
731
+ /**
732
+ * Options:
733
+ * - proto3_optional = true
734
+ */
735
+ stats?: dxos_value.Stats;
736
+ }
737
+ }
738
+ /**
739
+ * Defined in:
740
+ * {@link file://./../../../dxos/client/logging.proto}
741
+ */
742
+ export interface ControlMetricsRequest {
743
+ /**
744
+ * Options:
745
+ * - proto3_optional = true
746
+ */
747
+ reset?: boolean;
748
+ /**
749
+ * Options:
750
+ * - proto3_optional = true
751
+ */
752
+ record?: boolean;
753
+ }
754
+ /**
755
+ * Defined in:
756
+ * {@link file://./../../../dxos/client/logging.proto}
757
+ */
758
+ export interface ControlMetricsResponse {
759
+ /**
760
+ * Options:
761
+ * - proto3_optional = true
762
+ */
763
+ recording?: boolean;
764
+ }
765
+ /**
766
+ * Defined in:
767
+ * {@link file://./../../../dxos/client/logging.proto}
768
+ */
769
+ export interface QueryMetricsRequest {
770
+ /**
771
+ * Options:
772
+ * - proto3_optional = true
773
+ */
774
+ interval?: number;
775
+ }
776
+ /**
777
+ * Defined in:
778
+ * {@link file://./../../../dxos/client/logging.proto}
779
+ */
780
+ export enum LogLevel {
781
+ TRACE = 5,
782
+ DEBUG = 10,
783
+ INFO = 11,
784
+ WARN = 12,
785
+ ERROR = 13
786
+ }
787
+ /**
788
+ * Defined in:
789
+ * {@link file://./../../../dxos/client/logging.proto}
790
+ */
791
+ export interface QueryLogsRequest {
792
+ filters?: QueryLogsRequest.Filter[];
793
+ /**
794
+ * Options:
795
+ * - proto3_optional = true
796
+ */
797
+ options?: QueryLogsRequest.MatchingOptions;
798
+ }
799
+ export namespace QueryLogsRequest {
800
+ /**
801
+ * Defined in:
802
+ * {@link file://./../../../dxos/client/logging.proto}
803
+ */
804
+ export enum MatchingOptions {
805
+ INCLUSIVE = 1,
806
+ EXPLICIT = 2
807
+ }
808
+ /**
809
+ * Defined in:
810
+ * {@link file://./../../../dxos/client/logging.proto}
811
+ */
812
+ export interface Filter {
813
+ level: LogLevel;
814
+ /**
815
+ * Options:
816
+ * - proto3_optional = true
817
+ */
818
+ pattern?: string;
819
+ }
820
+ }
821
+ /**
822
+ * Defined in:
823
+ * {@link file://./../../../dxos/client/logging.proto}
824
+ */
825
+ export interface LogEntry {
826
+ level: LogLevel;
827
+ message: string;
828
+ /**
829
+ * Options:
830
+ * - proto3_optional = true
831
+ */
832
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
833
+ /**
834
+ * Options:
835
+ * - proto3_optional = true
836
+ */
837
+ meta?: LogEntry.Meta;
838
+ /**
839
+ * Options:
840
+ * - proto3_optional = true
841
+ */
842
+ error?: dxos_error.Error;
843
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
844
+ }
845
+ export namespace LogEntry {
846
+ /**
847
+ * Defined in:
848
+ * {@link file://./../../../dxos/client/logging.proto}
849
+ */
850
+ export interface Meta {
851
+ file: string;
852
+ line: number;
853
+ /**
854
+ * Options:
855
+ * - proto3_optional = true
856
+ */
857
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
858
+ }
859
+ }
860
+ /**
861
+ * Defined in:
862
+ * {@link file://./../../../dxos/client/logging.proto}
863
+ */
864
+ export interface LoggingService {
865
+ controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
866
+ queryMetrics: (request: QueryMetricsRequest) => Stream<Metrics>;
867
+ queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
868
+ }
@@ -54,6 +54,10 @@ import * as example_testing_data from "../example/testing/data";
54
54
  import * as example_testing_rpc from "../example/testing/rpc";
55
55
  export interface Empty {
56
56
  }
57
+ export interface Timestamp {
58
+ seconds: string;
59
+ nanos: number;
60
+ }
57
61
  export interface Any {
58
62
  type_url: string;
59
63
  value: Uint8Array;
@@ -75,10 +79,6 @@ export enum NullValue {
75
79
  export interface ListValue {
76
80
  values?: Value[];
77
81
  }
78
- export interface Timestamp {
79
- seconds: string;
80
- nanos: number;
81
- }
82
82
  export interface FileDescriptorSet {
83
83
  file?: FileDescriptorProto[];
84
84
  }