@dxos/protocols 0.6.3-main.40d1cec → 0.6.3-main.4203f37
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.
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +349 -346
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +81 -78
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts +31 -31
- package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/metadata.d.ts +3 -3
- package/dist/cjs/src/proto/gen/dxos/echo/object.d.ts +2 -2
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts +4 -4
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.js +5 -5
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/keys.d.ts +0 -10
- package/dist/cjs/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/signed.d.ts +5 -4
- package/dist/cjs/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts +9 -4
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +3 -4
- package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.js +1 -1
- package/dist/cjs/src/proto/gen/index.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +349 -346
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +80 -77
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts +31 -31
- package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/metadata.d.ts +3 -3
- package/dist/esm/src/proto/gen/dxos/echo/object.d.ts +2 -2
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts +4 -4
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/invitations.js +4 -4
- package/dist/esm/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/keys.d.ts +0 -10
- package/dist/esm/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/signed.d.ts +5 -4
- package/dist/esm/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.d.ts +9 -4
- package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +3 -4
- package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.js +1 -1
- package/dist/esm/src/proto/gen/index.js.map +1 -1
- package/package.json +16 -7
- package/src/proto/dxos/agent/dashboard.proto +3 -2
- package/src/proto/dxos/bot.proto +2 -1
- package/src/proto/dxos/client/invitation.proto +171 -0
- package/src/proto/dxos/client/logging.proto +3 -0
- package/src/proto/dxos/client/services.proto +10 -144
- package/src/proto/dxos/config.proto +10 -10
- package/src/proto/dxos/echo/metadata.proto +10 -14
- package/src/proto/dxos/echo/object.proto +4 -2
- package/src/proto/dxos/field_options.proto +11 -0
- package/src/proto/dxos/halo/credentials.proto +2 -0
- package/src/proto/dxos/halo/invitations.proto +3 -3
- package/src/proto/dxos/halo/keys.proto +0 -12
- package/src/proto/dxos/halo/signed.proto +10 -6
- package/src/proto/dxos/mesh/presence.proto +3 -1
- package/src/proto/dxos/mesh/teleport/gossip.proto +3 -1
- package/src/proto/gen/dxos/client/services.ts +349 -346
- package/src/proto/gen/dxos/devtools/host.ts +31 -31
- package/src/proto/gen/dxos/echo/metadata.ts +3 -3
- package/src/proto/gen/dxos/echo/object.ts +2 -2
- package/src/proto/gen/dxos/halo/invitations.ts +4 -4
- package/src/proto/gen/dxos/halo/keys.ts +0 -9
- package/src/proto/gen/dxos/halo/signed.ts +5 -3
- package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -1
- package/src/proto/gen/google/protobuf.ts +9 -4
- package/src/proto/gen/index.ts +4 -5
|
@@ -9,6 +9,183 @@ import * as dxos_mesh_presence from "../mesh/presence";
|
|
|
9
9
|
import * as dxos_mesh_signal from "../mesh/signal";
|
|
10
10
|
import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
|
|
11
11
|
import * as dxos_value from "../value";
|
|
12
|
+
/**
|
|
13
|
+
* Defined in:
|
|
14
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
15
|
+
*/
|
|
16
|
+
export interface Metrics {
|
|
17
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
18
|
+
values?: Metrics.KeyPair[];
|
|
19
|
+
}
|
|
20
|
+
export declare namespace Metrics {
|
|
21
|
+
/**
|
|
22
|
+
* Defined in:
|
|
23
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
24
|
+
*/
|
|
25
|
+
interface KeyPair {
|
|
26
|
+
/**
|
|
27
|
+
* Options:
|
|
28
|
+
* - proto3_optional = true
|
|
29
|
+
*/
|
|
30
|
+
key?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Options:
|
|
33
|
+
* - proto3_optional = true
|
|
34
|
+
*/
|
|
35
|
+
value?: dxos_value.Value;
|
|
36
|
+
/**
|
|
37
|
+
* Options:
|
|
38
|
+
* - proto3_optional = true
|
|
39
|
+
*/
|
|
40
|
+
stats?: dxos_value.Stats;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Defined in:
|
|
45
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
46
|
+
*/
|
|
47
|
+
export interface ControlMetricsRequest {
|
|
48
|
+
/**
|
|
49
|
+
* Options:
|
|
50
|
+
* - proto3_optional = true
|
|
51
|
+
*/
|
|
52
|
+
reset?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Options:
|
|
55
|
+
* - proto3_optional = true
|
|
56
|
+
*/
|
|
57
|
+
record?: boolean;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Defined in:
|
|
61
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
62
|
+
*/
|
|
63
|
+
export interface ControlMetricsResponse {
|
|
64
|
+
/**
|
|
65
|
+
* Options:
|
|
66
|
+
* - proto3_optional = true
|
|
67
|
+
*/
|
|
68
|
+
recording?: boolean;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Defined in:
|
|
72
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
73
|
+
*/
|
|
74
|
+
export interface QueryMetricsRequest {
|
|
75
|
+
/**
|
|
76
|
+
* Options:
|
|
77
|
+
* - proto3_optional = true
|
|
78
|
+
*/
|
|
79
|
+
interval?: number;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Defined in:
|
|
83
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
84
|
+
*/
|
|
85
|
+
export interface QueryMetricsResponse {
|
|
86
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
87
|
+
metrics: Metrics;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Defined in:
|
|
91
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
92
|
+
*/
|
|
93
|
+
export declare enum LogLevel {
|
|
94
|
+
NONE = 0,
|
|
95
|
+
TRACE = 5,
|
|
96
|
+
DEBUG = 10,
|
|
97
|
+
INFO = 11,
|
|
98
|
+
WARN = 12,
|
|
99
|
+
ERROR = 13
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Defined in:
|
|
103
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
104
|
+
*/
|
|
105
|
+
export interface QueryLogsRequest {
|
|
106
|
+
filters?: QueryLogsRequest.Filter[];
|
|
107
|
+
/**
|
|
108
|
+
* Options:
|
|
109
|
+
* - proto3_optional = true
|
|
110
|
+
*/
|
|
111
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
112
|
+
}
|
|
113
|
+
export declare namespace QueryLogsRequest {
|
|
114
|
+
/**
|
|
115
|
+
* Defined in:
|
|
116
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
117
|
+
*/
|
|
118
|
+
enum MatchingOptions {
|
|
119
|
+
NONE = 0,
|
|
120
|
+
INCLUSIVE = 1,
|
|
121
|
+
EXPLICIT = 2
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Defined in:
|
|
125
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
126
|
+
*/
|
|
127
|
+
interface Filter {
|
|
128
|
+
level: LogLevel;
|
|
129
|
+
/**
|
|
130
|
+
* Options:
|
|
131
|
+
* - proto3_optional = true
|
|
132
|
+
*/
|
|
133
|
+
pattern?: string;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Defined in:
|
|
138
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
139
|
+
*/
|
|
140
|
+
export interface LogEntry {
|
|
141
|
+
level: LogLevel;
|
|
142
|
+
message: string;
|
|
143
|
+
/**
|
|
144
|
+
* Options:
|
|
145
|
+
* - proto3_optional = true
|
|
146
|
+
*/
|
|
147
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
148
|
+
/**
|
|
149
|
+
* Options:
|
|
150
|
+
* - proto3_optional = true
|
|
151
|
+
*/
|
|
152
|
+
meta?: LogEntry.Meta;
|
|
153
|
+
/**
|
|
154
|
+
* Options:
|
|
155
|
+
* - proto3_optional = true
|
|
156
|
+
*/
|
|
157
|
+
error?: dxos_error.Error;
|
|
158
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
159
|
+
}
|
|
160
|
+
export declare namespace LogEntry {
|
|
161
|
+
/**
|
|
162
|
+
* Defined in:
|
|
163
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
164
|
+
*/
|
|
165
|
+
interface Meta {
|
|
166
|
+
file: string;
|
|
167
|
+
line: number;
|
|
168
|
+
/**
|
|
169
|
+
* Options:
|
|
170
|
+
* - proto3_optional = true
|
|
171
|
+
*/
|
|
172
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
173
|
+
/**
|
|
174
|
+
* Options:
|
|
175
|
+
* - proto3_optional = true
|
|
176
|
+
*/
|
|
177
|
+
resourceId?: number;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Defined in:
|
|
182
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
183
|
+
*/
|
|
184
|
+
export interface LoggingService {
|
|
185
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
186
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
187
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
188
|
+
}
|
|
12
189
|
/**
|
|
13
190
|
* Defined in:
|
|
14
191
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -332,22 +509,6 @@ export declare namespace SpaceMember {
|
|
|
332
509
|
ONLINE = 1
|
|
333
510
|
}
|
|
334
511
|
}
|
|
335
|
-
/**
|
|
336
|
-
* Runtime state of the space object.
|
|
337
|
-
*
|
|
338
|
-
* Defined in:
|
|
339
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
340
|
-
*/
|
|
341
|
-
export declare enum SpaceState {
|
|
342
|
-
INACTIVE = 2,
|
|
343
|
-
ACTIVE = 6,
|
|
344
|
-
CLOSED = 1,
|
|
345
|
-
CONTROL_ONLY = 7,
|
|
346
|
-
INITIALIZING = 4,
|
|
347
|
-
READY = 3,
|
|
348
|
-
ERROR = 5,
|
|
349
|
-
REQUIRES_MIGRATION = 8
|
|
350
|
-
}
|
|
351
512
|
/**
|
|
352
513
|
* Defined in:
|
|
353
514
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -702,223 +863,55 @@ export interface SpacesService {
|
|
|
702
863
|
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
703
864
|
}
|
|
704
865
|
/**
|
|
705
|
-
* Represents the invitation state passed between client and service.
|
|
706
|
-
*
|
|
707
866
|
* Defined in:
|
|
708
867
|
* {@link file://./../../../dxos/client/services.proto}
|
|
709
868
|
*/
|
|
710
|
-
export interface
|
|
711
|
-
|
|
712
|
-
* Local identifier (random).
|
|
713
|
-
*/
|
|
714
|
-
invitationId: string;
|
|
715
|
-
/**
|
|
716
|
-
* Determines the behavior of the invitation.
|
|
717
|
-
*/
|
|
718
|
-
type: Invitation.Type;
|
|
719
|
-
/**
|
|
720
|
-
* Kind of access the invitation will grant.
|
|
721
|
-
*/
|
|
722
|
-
kind: Invitation.Kind;
|
|
723
|
-
/**
|
|
724
|
-
* How the invitation is authenticated.
|
|
725
|
-
*/
|
|
726
|
-
authMethod: Invitation.AuthMethod;
|
|
727
|
-
/**
|
|
728
|
-
* Swarm rendezvous (random).
|
|
729
|
-
*/
|
|
730
|
-
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
731
|
-
/**
|
|
732
|
-
* Local state.
|
|
733
|
-
*/
|
|
734
|
-
state: Invitation.State;
|
|
869
|
+
export interface AcceptInvitationRequest {
|
|
870
|
+
invitation: Invitation;
|
|
735
871
|
/**
|
|
736
|
-
* Timeout for guest to complete invitation once connected (ms).
|
|
737
|
-
*
|
|
738
872
|
* Options:
|
|
739
873
|
* - proto3_optional = true
|
|
740
874
|
*/
|
|
741
|
-
|
|
875
|
+
deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* Defined in:
|
|
879
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
880
|
+
*/
|
|
881
|
+
export interface AuthenticationRequest {
|
|
882
|
+
invitationId: string;
|
|
883
|
+
authCode: string;
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
* Defined in:
|
|
887
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
888
|
+
*/
|
|
889
|
+
export interface CancelInvitationRequest {
|
|
890
|
+
invitationId: string;
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* Defined in:
|
|
894
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
895
|
+
*/
|
|
896
|
+
export interface InvitationMethod {
|
|
897
|
+
created?: Invitation;
|
|
898
|
+
accepted?: Invitation;
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
* Defined in:
|
|
902
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
903
|
+
*/
|
|
904
|
+
export interface QueryInvitationsResponse {
|
|
905
|
+
action: QueryInvitationsResponse.Action;
|
|
906
|
+
type: QueryInvitationsResponse.Type;
|
|
907
|
+
invitations?: Invitation[];
|
|
742
908
|
/**
|
|
743
|
-
* Guest's identity.
|
|
744
|
-
*
|
|
745
909
|
* Options:
|
|
746
910
|
* - proto3_optional = true
|
|
747
911
|
*/
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
*
|
|
752
|
-
* Options:
|
|
753
|
-
* - proto3_optional = true
|
|
754
|
-
*/
|
|
755
|
-
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
756
|
-
/**
|
|
757
|
-
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
758
|
-
*
|
|
759
|
-
* Options:
|
|
760
|
-
* - proto3_optional = true
|
|
761
|
-
*/
|
|
762
|
-
authCode?: string;
|
|
763
|
-
/**
|
|
764
|
-
* Path or identifier to navigate to after successful authentication.
|
|
765
|
-
*
|
|
766
|
-
* Options:
|
|
767
|
-
* - proto3_optional = true
|
|
768
|
-
*/
|
|
769
|
-
target?: string;
|
|
770
|
-
/**
|
|
771
|
-
* Host should resume invitation on startup until timeout.
|
|
772
|
-
*
|
|
773
|
-
* Options:
|
|
774
|
-
* - proto3_optional = true
|
|
775
|
-
*/
|
|
776
|
-
persistent?: boolean;
|
|
777
|
-
/**
|
|
778
|
-
* Options:
|
|
779
|
-
* - proto3_optional = true
|
|
780
|
-
*/
|
|
781
|
-
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
782
|
-
/**
|
|
783
|
-
* Options:
|
|
784
|
-
* - proto3_optional = true
|
|
785
|
-
*/
|
|
786
|
-
lifetime?: number;
|
|
787
|
-
/**
|
|
788
|
-
* Whether an invitation can be used multiple times.
|
|
789
|
-
*
|
|
790
|
-
* Options:
|
|
791
|
-
* - proto3_optional = true
|
|
792
|
-
*/
|
|
793
|
-
multiUse?: boolean;
|
|
794
|
-
/**
|
|
795
|
-
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
796
|
-
*
|
|
797
|
-
* Options:
|
|
798
|
-
* - proto3_optional = true
|
|
799
|
-
*/
|
|
800
|
-
guestKeypair?: AdmissionKeypair;
|
|
801
|
-
/**
|
|
802
|
-
* Present on Type.DELEGATED invitations.
|
|
803
|
-
*
|
|
804
|
-
* Options:
|
|
805
|
-
* - proto3_optional = true
|
|
806
|
-
*/
|
|
807
|
-
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
808
|
-
/**
|
|
809
|
-
* Role of the admitted member, defaults to ADMIN.
|
|
810
|
-
*
|
|
811
|
-
* Options:
|
|
812
|
-
* - proto3_optional = true
|
|
813
|
-
*/
|
|
814
|
-
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
815
|
-
}
|
|
816
|
-
export declare namespace Invitation {
|
|
817
|
-
/**
|
|
818
|
-
* Defined in:
|
|
819
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
820
|
-
*/
|
|
821
|
-
enum Type {
|
|
822
|
-
INTERACTIVE = 0,
|
|
823
|
-
DELEGATED = 1,
|
|
824
|
-
MULTIUSE = 2
|
|
825
|
-
}
|
|
826
|
-
/**
|
|
827
|
-
* Defined in:
|
|
828
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
829
|
-
*/
|
|
830
|
-
enum Kind {
|
|
831
|
-
DEVICE = 0,
|
|
832
|
-
SPACE = 1
|
|
833
|
-
}
|
|
834
|
-
/**
|
|
835
|
-
* Defined in:
|
|
836
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
837
|
-
*/
|
|
838
|
-
enum AuthMethod {
|
|
839
|
-
NONE = 0,
|
|
840
|
-
SHARED_SECRET = 1,
|
|
841
|
-
KNOWN_PUBLIC_KEY = 2
|
|
842
|
-
}
|
|
843
|
-
/**
|
|
844
|
-
* Defined in:
|
|
845
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
846
|
-
*/
|
|
847
|
-
enum State {
|
|
848
|
-
INIT = 0,
|
|
849
|
-
CONNECTING = 1,
|
|
850
|
-
CONNECTED = 2,
|
|
851
|
-
READY_FOR_AUTHENTICATION = 3,
|
|
852
|
-
AUTHENTICATING = 4,
|
|
853
|
-
SUCCESS = 5,
|
|
854
|
-
CANCELLED = 6,
|
|
855
|
-
TIMEOUT = 7,
|
|
856
|
-
ERROR = 8,
|
|
857
|
-
EXPIRED = 9
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
/**
|
|
861
|
-
* Defined in:
|
|
862
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
863
|
-
*/
|
|
864
|
-
export interface AdmissionKeypair {
|
|
865
|
-
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
866
|
-
/**
|
|
867
|
-
* Options:
|
|
868
|
-
* - proto3_optional = true
|
|
869
|
-
*/
|
|
870
|
-
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
871
|
-
}
|
|
872
|
-
/**
|
|
873
|
-
* Defined in:
|
|
874
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
875
|
-
*/
|
|
876
|
-
export interface AcceptInvitationRequest {
|
|
877
|
-
invitation: Invitation;
|
|
878
|
-
/**
|
|
879
|
-
* Options:
|
|
880
|
-
* - proto3_optional = true
|
|
881
|
-
*/
|
|
882
|
-
deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
883
|
-
}
|
|
884
|
-
/**
|
|
885
|
-
* Defined in:
|
|
886
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
887
|
-
*/
|
|
888
|
-
export interface AuthenticationRequest {
|
|
889
|
-
invitationId: string;
|
|
890
|
-
authCode: string;
|
|
891
|
-
}
|
|
892
|
-
/**
|
|
893
|
-
* Defined in:
|
|
894
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
895
|
-
*/
|
|
896
|
-
export interface CancelInvitationRequest {
|
|
897
|
-
invitationId: string;
|
|
898
|
-
}
|
|
899
|
-
/**
|
|
900
|
-
* Defined in:
|
|
901
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
902
|
-
*/
|
|
903
|
-
export interface InvitationMethod {
|
|
904
|
-
created?: Invitation;
|
|
905
|
-
accepted?: Invitation;
|
|
906
|
-
}
|
|
907
|
-
/**
|
|
908
|
-
* Defined in:
|
|
909
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
910
|
-
*/
|
|
911
|
-
export interface QueryInvitationsResponse {
|
|
912
|
-
action: QueryInvitationsResponse.Action;
|
|
913
|
-
type: QueryInvitationsResponse.Type;
|
|
914
|
-
invitations?: Invitation[];
|
|
915
|
-
/**
|
|
916
|
-
* Options:
|
|
917
|
-
* - proto3_optional = true
|
|
918
|
-
*/
|
|
919
|
-
existing?: boolean;
|
|
920
|
-
}
|
|
921
|
-
export declare namespace QueryInvitationsResponse {
|
|
912
|
+
existing?: boolean;
|
|
913
|
+
}
|
|
914
|
+
export declare namespace QueryInvitationsResponse {
|
|
922
915
|
/**
|
|
923
916
|
* Defined in:
|
|
924
917
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -1000,177 +993,187 @@ export interface NetworkService {
|
|
|
1000
993
|
}
|
|
1001
994
|
/**
|
|
1002
995
|
* Defined in:
|
|
1003
|
-
* {@link file://./../../../dxos/client/
|
|
996
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1004
997
|
*/
|
|
1005
|
-
export interface
|
|
1006
|
-
|
|
1007
|
-
values?: Metrics.KeyPair[];
|
|
1008
|
-
}
|
|
1009
|
-
export declare namespace Metrics {
|
|
998
|
+
export interface AdmissionKeypair {
|
|
999
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1010
1000
|
/**
|
|
1011
|
-
*
|
|
1012
|
-
*
|
|
1001
|
+
* Options:
|
|
1002
|
+
* - proto3_optional = true
|
|
1013
1003
|
*/
|
|
1014
|
-
|
|
1015
|
-
/**
|
|
1016
|
-
* Options:
|
|
1017
|
-
* - proto3_optional = true
|
|
1018
|
-
*/
|
|
1019
|
-
key?: string;
|
|
1020
|
-
/**
|
|
1021
|
-
* Options:
|
|
1022
|
-
* - proto3_optional = true
|
|
1023
|
-
*/
|
|
1024
|
-
value?: dxos_value.Value;
|
|
1025
|
-
/**
|
|
1026
|
-
* Options:
|
|
1027
|
-
* - proto3_optional = true
|
|
1028
|
-
*/
|
|
1029
|
-
stats?: dxos_value.Stats;
|
|
1030
|
-
}
|
|
1004
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
1031
1005
|
}
|
|
1032
1006
|
/**
|
|
1007
|
+
* Runtime state of the space object.
|
|
1008
|
+
*
|
|
1033
1009
|
* Defined in:
|
|
1034
|
-
* {@link file://./../../../dxos/client/
|
|
1010
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1035
1011
|
*/
|
|
1036
|
-
export
|
|
1012
|
+
export declare enum SpaceState {
|
|
1013
|
+
INVALID = 0,
|
|
1014
|
+
SPACE_INACTIVE = 2,
|
|
1015
|
+
SPACE_ACTIVE = 6,
|
|
1016
|
+
SPACE_CLOSED = 1,
|
|
1017
|
+
SPACE_CONTROL_ONLY = 7,
|
|
1018
|
+
SPACE_INITIALIZING = 4,
|
|
1019
|
+
SPACE_READY = 3,
|
|
1020
|
+
SPACE_ERROR = 5,
|
|
1021
|
+
SPACE_REQUIRES_MIGRATION = 8
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
* Represents the invitation state passed between client and service.
|
|
1025
|
+
*
|
|
1026
|
+
* Defined in:
|
|
1027
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1028
|
+
*/
|
|
1029
|
+
export interface Invitation {
|
|
1030
|
+
/**
|
|
1031
|
+
* Local identifier (random).
|
|
1032
|
+
*/
|
|
1033
|
+
invitationId: string;
|
|
1034
|
+
/**
|
|
1035
|
+
* Determines the behavior of the invitation.
|
|
1036
|
+
*/
|
|
1037
|
+
type: Invitation.Type;
|
|
1038
|
+
/**
|
|
1039
|
+
* Kind of access the invitation will grant.
|
|
1040
|
+
*/
|
|
1041
|
+
kind: Invitation.Kind;
|
|
1042
|
+
/**
|
|
1043
|
+
* How the invitation is authenticated.
|
|
1044
|
+
*/
|
|
1045
|
+
authMethod: Invitation.AuthMethod;
|
|
1046
|
+
/**
|
|
1047
|
+
* Swarm rendezvous (random).
|
|
1048
|
+
*/
|
|
1049
|
+
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1037
1050
|
/**
|
|
1051
|
+
* Local state.
|
|
1052
|
+
*/
|
|
1053
|
+
state: Invitation.State;
|
|
1054
|
+
/**
|
|
1055
|
+
* Timeout for guest to complete invitation once connected (ms).
|
|
1056
|
+
*
|
|
1038
1057
|
* Options:
|
|
1039
1058
|
* - proto3_optional = true
|
|
1040
1059
|
*/
|
|
1041
|
-
|
|
1060
|
+
timeout?: number;
|
|
1042
1061
|
/**
|
|
1062
|
+
* Guest's identity.
|
|
1063
|
+
*
|
|
1043
1064
|
* Options:
|
|
1044
1065
|
* - proto3_optional = true
|
|
1045
1066
|
*/
|
|
1046
|
-
|
|
1047
|
-
}
|
|
1048
|
-
/**
|
|
1049
|
-
* Defined in:
|
|
1050
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1051
|
-
*/
|
|
1052
|
-
export interface ControlMetricsResponse {
|
|
1067
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1053
1068
|
/**
|
|
1069
|
+
* Space to join (only present if kind is SPACE).
|
|
1070
|
+
*
|
|
1054
1071
|
* Options:
|
|
1055
1072
|
* - proto3_optional = true
|
|
1056
1073
|
*/
|
|
1057
|
-
|
|
1058
|
-
}
|
|
1059
|
-
/**
|
|
1060
|
-
* Defined in:
|
|
1061
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1062
|
-
*/
|
|
1063
|
-
export interface QueryMetricsRequest {
|
|
1074
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1064
1075
|
/**
|
|
1076
|
+
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
1077
|
+
*
|
|
1065
1078
|
* Options:
|
|
1066
1079
|
* - proto3_optional = true
|
|
1067
1080
|
*/
|
|
1068
|
-
|
|
1069
|
-
}
|
|
1070
|
-
/**
|
|
1071
|
-
* Defined in:
|
|
1072
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1073
|
-
*/
|
|
1074
|
-
export interface QueryMetricsResponse {
|
|
1075
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1076
|
-
metrics: Metrics;
|
|
1077
|
-
}
|
|
1078
|
-
/**
|
|
1079
|
-
* Defined in:
|
|
1080
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1081
|
-
*/
|
|
1082
|
-
export declare enum LogLevel {
|
|
1083
|
-
TRACE = 5,
|
|
1084
|
-
DEBUG = 10,
|
|
1085
|
-
INFO = 11,
|
|
1086
|
-
WARN = 12,
|
|
1087
|
-
ERROR = 13
|
|
1088
|
-
}
|
|
1089
|
-
/**
|
|
1090
|
-
* Defined in:
|
|
1091
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1092
|
-
*/
|
|
1093
|
-
export interface QueryLogsRequest {
|
|
1094
|
-
filters?: QueryLogsRequest.Filter[];
|
|
1081
|
+
authCode?: string;
|
|
1095
1082
|
/**
|
|
1083
|
+
* Path or identifier to navigate to after successful authentication.
|
|
1084
|
+
*
|
|
1096
1085
|
* Options:
|
|
1097
1086
|
* - proto3_optional = true
|
|
1098
1087
|
*/
|
|
1099
|
-
|
|
1100
|
-
}
|
|
1101
|
-
export declare namespace QueryLogsRequest {
|
|
1088
|
+
target?: string;
|
|
1102
1089
|
/**
|
|
1103
|
-
*
|
|
1104
|
-
*
|
|
1090
|
+
* Host should resume invitation on startup until timeout.
|
|
1091
|
+
*
|
|
1092
|
+
* Options:
|
|
1093
|
+
* - proto3_optional = true
|
|
1105
1094
|
*/
|
|
1106
|
-
|
|
1107
|
-
INCLUSIVE = 1,
|
|
1108
|
-
EXPLICIT = 2
|
|
1109
|
-
}
|
|
1095
|
+
persistent?: boolean;
|
|
1110
1096
|
/**
|
|
1111
|
-
*
|
|
1112
|
-
*
|
|
1097
|
+
* Options:
|
|
1098
|
+
* - proto3_optional = true
|
|
1113
1099
|
*/
|
|
1114
|
-
|
|
1115
|
-
level: LogLevel;
|
|
1116
|
-
/**
|
|
1117
|
-
* Options:
|
|
1118
|
-
* - proto3_optional = true
|
|
1119
|
-
*/
|
|
1120
|
-
pattern?: string;
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
/**
|
|
1124
|
-
* Defined in:
|
|
1125
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1126
|
-
*/
|
|
1127
|
-
export interface LogEntry {
|
|
1128
|
-
level: LogLevel;
|
|
1129
|
-
message: string;
|
|
1100
|
+
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1130
1101
|
/**
|
|
1131
1102
|
* Options:
|
|
1132
1103
|
* - proto3_optional = true
|
|
1133
1104
|
*/
|
|
1134
|
-
|
|
1105
|
+
lifetime?: number;
|
|
1135
1106
|
/**
|
|
1107
|
+
* Whether an invitation can be used multiple times.
|
|
1108
|
+
*
|
|
1136
1109
|
* Options:
|
|
1137
1110
|
* - proto3_optional = true
|
|
1138
1111
|
*/
|
|
1139
|
-
|
|
1112
|
+
multiUse?: boolean;
|
|
1113
|
+
/**
|
|
1114
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
1115
|
+
*
|
|
1116
|
+
* Options:
|
|
1117
|
+
* - proto3_optional = true
|
|
1118
|
+
*/
|
|
1119
|
+
guestKeypair?: AdmissionKeypair;
|
|
1140
1120
|
/**
|
|
1121
|
+
* Present on Type.DELEGATED invitations.
|
|
1122
|
+
*
|
|
1141
1123
|
* Options:
|
|
1142
1124
|
* - proto3_optional = true
|
|
1143
1125
|
*/
|
|
1144
|
-
|
|
1145
|
-
|
|
1126
|
+
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1127
|
+
/**
|
|
1128
|
+
* Role of the admitted member, defaults to ADMIN.
|
|
1129
|
+
*
|
|
1130
|
+
* Options:
|
|
1131
|
+
* - proto3_optional = true
|
|
1132
|
+
*/
|
|
1133
|
+
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
1146
1134
|
}
|
|
1147
|
-
export declare namespace
|
|
1135
|
+
export declare namespace Invitation {
|
|
1148
1136
|
/**
|
|
1149
1137
|
* Defined in:
|
|
1150
|
-
* {@link file://./../../../dxos/client/
|
|
1138
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1151
1139
|
*/
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1140
|
+
enum Type {
|
|
1141
|
+
INTERACTIVE = 0,
|
|
1142
|
+
DELEGATED = 1,
|
|
1143
|
+
MULTIUSE = 2
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* Defined in:
|
|
1147
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1148
|
+
*/
|
|
1149
|
+
enum Kind {
|
|
1150
|
+
DEVICE = 0,
|
|
1151
|
+
SPACE = 1
|
|
1152
|
+
}
|
|
1153
|
+
/**
|
|
1154
|
+
* Defined in:
|
|
1155
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1156
|
+
*/
|
|
1157
|
+
enum AuthMethod {
|
|
1158
|
+
NONE = 0,
|
|
1159
|
+
SHARED_SECRET = 1,
|
|
1160
|
+
KNOWN_PUBLIC_KEY = 2
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
* Defined in:
|
|
1164
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1165
|
+
*/
|
|
1166
|
+
enum State {
|
|
1167
|
+
INIT = 0,
|
|
1168
|
+
CONNECTING = 1,
|
|
1169
|
+
CONNECTED = 2,
|
|
1170
|
+
READY_FOR_AUTHENTICATION = 3,
|
|
1171
|
+
AUTHENTICATING = 4,
|
|
1172
|
+
SUCCESS = 5,
|
|
1173
|
+
CANCELLED = 6,
|
|
1174
|
+
TIMEOUT = 7,
|
|
1175
|
+
ERROR = 8,
|
|
1176
|
+
EXPIRED = 9
|
|
1165
1177
|
}
|
|
1166
|
-
}
|
|
1167
|
-
/**
|
|
1168
|
-
* Defined in:
|
|
1169
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1170
|
-
*/
|
|
1171
|
-
export interface LoggingService {
|
|
1172
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1173
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1174
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1175
1178
|
}
|
|
1176
1179
|
//# sourceMappingURL=services.d.ts.map
|