@dxos/protocols 0.1.56-main.ad054df → 0.1.56-main.adb2b88

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;AAuDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAie7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,mrvFAAmrvF,CAAC,CAAC,CAAC;AAC5uvF,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;AAuDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAie7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,4svFAA4svF,CAAC,CAAC,CAAC;AACrwvF,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.1.56-main.ad054df",
3
+ "version": "0.1.56-main.adb2b88",
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.1.56-main.ad054df",
37
- "@dxos/hypercore": "0.1.56-main.ad054df",
38
- "@dxos/keys": "0.1.56-main.ad054df",
39
- "@dxos/timeframe": "0.1.56-main.ad054df"
36
+ "@dxos/codec-protobuf": "0.1.56-main.adb2b88",
37
+ "@dxos/hypercore": "0.1.56-main.adb2b88",
38
+ "@dxos/keys": "0.1.56-main.adb2b88",
39
+ "@dxos/timeframe": "0.1.56-main.adb2b88"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -112,6 +112,7 @@ service IdentityService {
112
112
  rpc CreateIdentity(halo.credentials.ProfileDocument) returns (Identity);
113
113
  rpc RecoverIdentity(RecoverIdentityRequest) returns (Identity);
114
114
  rpc QueryIdentity(google.protobuf.Empty) returns (stream QueryIdentityResponse);
115
+ rpc UpdateProfile(halo.credentials.ProfileDocument) returns (Identity);
115
116
  rpc SignPresentation(SignPresentationRequest) returns (dxos.halo.credentials.Presentation);
116
117
  }
117
118
 
@@ -53,6 +53,176 @@ 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
+ }
217
+ /**
218
+ * Defined in:
219
+ * {@link file://./../../../dxos/client/logging.proto}
220
+ */
221
+ export interface LoggingService {
222
+ controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
223
+ queryMetrics: (request: QueryMetricsRequest) => Stream<QueryMetricsResponse>;
224
+ queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
225
+ }
56
226
  /**
57
227
  * Defined in:
58
228
  * {@link file://./../../../dxos/client/services.proto}
@@ -197,6 +367,7 @@ export interface IdentityService {
197
367
  createIdentity: (request: dxos_halo_credentials.ProfileDocument) => Promise<Identity>;
198
368
  recoverIdentity: (request: RecoverIdentityRequest) => Promise<Identity>;
199
369
  queryIdentity: (request: void) => Stream<QueryIdentityResponse>;
370
+ updateProfile: (request: dxos_halo_credentials.ProfileDocument) => Promise<Identity>;
200
371
  signPresentation: (request: SignPresentationRequest) => Promise<dxos_halo_credentials.Presentation>;
201
372
  }
202
373
  /**
@@ -740,173 +911,3 @@ export interface NetworkService {
740
911
  updateConfig: (request: UpdateConfigRequest) => Promise<void>;
741
912
  queryStatus: (request: void) => Stream<NetworkStatus>;
742
913
  }
743
- /**
744
- * Defined in:
745
- * {@link file://./../../../dxos/client/logging.proto}
746
- */
747
- export interface Metrics {
748
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
749
- values?: Metrics.KeyPair[];
750
- }
751
- export namespace Metrics {
752
- /**
753
- * Defined in:
754
- * {@link file://./../../../dxos/client/logging.proto}
755
- */
756
- export interface KeyPair {
757
- /**
758
- * Options:
759
- * - proto3_optional = true
760
- */
761
- key?: string;
762
- /**
763
- * Options:
764
- * - proto3_optional = true
765
- */
766
- value?: dxos_value.Value;
767
- /**
768
- * Options:
769
- * - proto3_optional = true
770
- */
771
- stats?: dxos_value.Stats;
772
- }
773
- }
774
- /**
775
- * Defined in:
776
- * {@link file://./../../../dxos/client/logging.proto}
777
- */
778
- export interface ControlMetricsRequest {
779
- /**
780
- * Options:
781
- * - proto3_optional = true
782
- */
783
- reset?: boolean;
784
- /**
785
- * Options:
786
- * - proto3_optional = true
787
- */
788
- record?: boolean;
789
- }
790
- /**
791
- * Defined in:
792
- * {@link file://./../../../dxos/client/logging.proto}
793
- */
794
- export interface ControlMetricsResponse {
795
- /**
796
- * Options:
797
- * - proto3_optional = true
798
- */
799
- recording?: boolean;
800
- }
801
- /**
802
- * Defined in:
803
- * {@link file://./../../../dxos/client/logging.proto}
804
- */
805
- export interface QueryMetricsRequest {
806
- /**
807
- * Options:
808
- * - proto3_optional = true
809
- */
810
- interval?: number;
811
- }
812
- /**
813
- * Defined in:
814
- * {@link file://./../../../dxos/client/logging.proto}
815
- */
816
- export interface QueryMetricsResponse {
817
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
818
- metrics: Metrics;
819
- }
820
- /**
821
- * Defined in:
822
- * {@link file://./../../../dxos/client/logging.proto}
823
- */
824
- export enum LogLevel {
825
- TRACE = 5,
826
- DEBUG = 10,
827
- INFO = 11,
828
- WARN = 12,
829
- ERROR = 13
830
- }
831
- /**
832
- * Defined in:
833
- * {@link file://./../../../dxos/client/logging.proto}
834
- */
835
- export interface QueryLogsRequest {
836
- filters?: QueryLogsRequest.Filter[];
837
- /**
838
- * Options:
839
- * - proto3_optional = true
840
- */
841
- options?: QueryLogsRequest.MatchingOptions;
842
- }
843
- export namespace QueryLogsRequest {
844
- /**
845
- * Defined in:
846
- * {@link file://./../../../dxos/client/logging.proto}
847
- */
848
- export enum MatchingOptions {
849
- INCLUSIVE = 1,
850
- EXPLICIT = 2
851
- }
852
- /**
853
- * Defined in:
854
- * {@link file://./../../../dxos/client/logging.proto}
855
- */
856
- export interface Filter {
857
- level: LogLevel;
858
- /**
859
- * Options:
860
- * - proto3_optional = true
861
- */
862
- pattern?: string;
863
- }
864
- }
865
- /**
866
- * Defined in:
867
- * {@link file://./../../../dxos/client/logging.proto}
868
- */
869
- export interface LogEntry {
870
- level: LogLevel;
871
- message: string;
872
- /**
873
- * Options:
874
- * - proto3_optional = true
875
- */
876
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
877
- /**
878
- * Options:
879
- * - proto3_optional = true
880
- */
881
- meta?: LogEntry.Meta;
882
- /**
883
- * Options:
884
- * - proto3_optional = true
885
- */
886
- error?: dxos_error.Error;
887
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
888
- }
889
- export namespace LogEntry {
890
- /**
891
- * Defined in:
892
- * {@link file://./../../../dxos/client/logging.proto}
893
- */
894
- export interface Meta {
895
- file: string;
896
- line: number;
897
- /**
898
- * Options:
899
- * - proto3_optional = true
900
- */
901
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
902
- }
903
- }
904
- /**
905
- * Defined in:
906
- * {@link file://./../../../dxos/client/logging.proto}
907
- */
908
- export interface LoggingService {
909
- controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
910
- queryMetrics: (request: QueryMetricsRequest) => Stream<QueryMetricsResponse>;
911
- queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
912
- }