@dxos/protocols 0.6.3-main.0ca5117 → 0.6.3-main.0dc8689
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 +313 -310
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +88 -85
- 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 +313 -310
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +87 -84
- 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 +313 -310
- 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
|
@@ -11,178 +11,188 @@ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
|
|
|
11
11
|
import * as dxos_value from "../value";
|
|
12
12
|
/**
|
|
13
13
|
* Defined in:
|
|
14
|
-
* {@link file://./../../../dxos/client/
|
|
14
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
15
15
|
*/
|
|
16
|
-
export interface
|
|
17
|
-
|
|
18
|
-
values?: Metrics.KeyPair[];
|
|
19
|
-
}
|
|
20
|
-
export declare namespace Metrics {
|
|
16
|
+
export interface AdmissionKeypair {
|
|
17
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
21
18
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
19
|
+
* Options:
|
|
20
|
+
* - proto3_optional = true
|
|
24
21
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
22
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Runtime state of the space object.
|
|
26
|
+
*
|
|
27
|
+
* Defined in:
|
|
28
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
29
|
+
*/
|
|
30
|
+
export declare enum SpaceState {
|
|
31
|
+
INVALID = 0,
|
|
32
|
+
SPACE_INACTIVE = 2,
|
|
33
|
+
SPACE_ACTIVE = 6,
|
|
34
|
+
SPACE_CLOSED = 1,
|
|
35
|
+
SPACE_CONTROL_ONLY = 7,
|
|
36
|
+
SPACE_INITIALIZING = 4,
|
|
37
|
+
SPACE_READY = 3,
|
|
38
|
+
SPACE_ERROR = 5,
|
|
39
|
+
SPACE_REQUIRES_MIGRATION = 8
|
|
42
40
|
}
|
|
43
41
|
/**
|
|
42
|
+
* Represents the invitation state passed between client and service.
|
|
43
|
+
*
|
|
44
44
|
* Defined in:
|
|
45
|
-
* {@link file://./../../../dxos/client/
|
|
45
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
46
46
|
*/
|
|
47
|
-
export interface
|
|
47
|
+
export interface Invitation {
|
|
48
|
+
/**
|
|
49
|
+
* Local identifier (random).
|
|
50
|
+
*/
|
|
51
|
+
invitationId: string;
|
|
52
|
+
/**
|
|
53
|
+
* Determines the behavior of the invitation.
|
|
54
|
+
*/
|
|
55
|
+
type: Invitation.Type;
|
|
56
|
+
/**
|
|
57
|
+
* Kind of access the invitation will grant.
|
|
58
|
+
*/
|
|
59
|
+
kind: Invitation.Kind;
|
|
60
|
+
/**
|
|
61
|
+
* How the invitation is authenticated.
|
|
62
|
+
*/
|
|
63
|
+
authMethod: Invitation.AuthMethod;
|
|
64
|
+
/**
|
|
65
|
+
* Swarm rendezvous (random).
|
|
66
|
+
*/
|
|
67
|
+
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
68
|
+
/**
|
|
69
|
+
* Local state.
|
|
70
|
+
*/
|
|
71
|
+
state: Invitation.State;
|
|
48
72
|
/**
|
|
73
|
+
* Timeout for guest to complete invitation once connected (ms).
|
|
74
|
+
*
|
|
49
75
|
* Options:
|
|
50
76
|
* - proto3_optional = true
|
|
51
77
|
*/
|
|
52
|
-
|
|
78
|
+
timeout?: number;
|
|
53
79
|
/**
|
|
80
|
+
* Guest's identity.
|
|
81
|
+
*
|
|
54
82
|
* Options:
|
|
55
83
|
* - proto3_optional = true
|
|
56
84
|
*/
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Defined in:
|
|
61
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
62
|
-
*/
|
|
63
|
-
export interface ControlMetricsResponse {
|
|
85
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
64
86
|
/**
|
|
87
|
+
* Space to join (only present if kind is SPACE).
|
|
88
|
+
*
|
|
65
89
|
* Options:
|
|
66
90
|
* - proto3_optional = true
|
|
67
91
|
*/
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Defined in:
|
|
72
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
73
|
-
*/
|
|
74
|
-
export interface QueryMetricsRequest {
|
|
92
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
75
93
|
/**
|
|
94
|
+
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
95
|
+
*
|
|
76
96
|
* Options:
|
|
77
97
|
* - proto3_optional = true
|
|
78
98
|
*/
|
|
79
|
-
|
|
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
|
-
TRACE = 5,
|
|
95
|
-
DEBUG = 10,
|
|
96
|
-
INFO = 11,
|
|
97
|
-
WARN = 12,
|
|
98
|
-
ERROR = 13
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Defined in:
|
|
102
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
103
|
-
*/
|
|
104
|
-
export interface QueryLogsRequest {
|
|
105
|
-
filters?: QueryLogsRequest.Filter[];
|
|
99
|
+
authCode?: string;
|
|
106
100
|
/**
|
|
101
|
+
* Path or identifier to navigate to after successful authentication.
|
|
102
|
+
*
|
|
107
103
|
* Options:
|
|
108
104
|
* - proto3_optional = true
|
|
109
105
|
*/
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
export declare namespace QueryLogsRequest {
|
|
106
|
+
target?: string;
|
|
113
107
|
/**
|
|
114
|
-
*
|
|
115
|
-
*
|
|
108
|
+
* Host should resume invitation on startup until timeout.
|
|
109
|
+
*
|
|
110
|
+
* Options:
|
|
111
|
+
* - proto3_optional = true
|
|
116
112
|
*/
|
|
117
|
-
|
|
118
|
-
INCLUSIVE = 1,
|
|
119
|
-
EXPLICIT = 2
|
|
120
|
-
}
|
|
113
|
+
persistent?: boolean;
|
|
121
114
|
/**
|
|
122
|
-
*
|
|
123
|
-
*
|
|
115
|
+
* Options:
|
|
116
|
+
* - proto3_optional = true
|
|
124
117
|
*/
|
|
125
|
-
|
|
126
|
-
level: LogLevel;
|
|
127
|
-
/**
|
|
128
|
-
* Options:
|
|
129
|
-
* - proto3_optional = true
|
|
130
|
-
*/
|
|
131
|
-
pattern?: string;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Defined in:
|
|
136
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
137
|
-
*/
|
|
138
|
-
export interface LogEntry {
|
|
139
|
-
level: LogLevel;
|
|
140
|
-
message: string;
|
|
118
|
+
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
141
119
|
/**
|
|
142
120
|
* Options:
|
|
143
121
|
* - proto3_optional = true
|
|
144
122
|
*/
|
|
145
|
-
|
|
123
|
+
lifetime?: number;
|
|
146
124
|
/**
|
|
125
|
+
* Whether an invitation can be used multiple times.
|
|
126
|
+
*
|
|
147
127
|
* Options:
|
|
148
128
|
* - proto3_optional = true
|
|
149
129
|
*/
|
|
150
|
-
|
|
130
|
+
multiUse?: boolean;
|
|
151
131
|
/**
|
|
132
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
133
|
+
*
|
|
152
134
|
* Options:
|
|
153
135
|
* - proto3_optional = true
|
|
154
136
|
*/
|
|
155
|
-
|
|
156
|
-
|
|
137
|
+
guestKeypair?: AdmissionKeypair;
|
|
138
|
+
/**
|
|
139
|
+
* Present on Type.DELEGATED invitations.
|
|
140
|
+
*
|
|
141
|
+
* Options:
|
|
142
|
+
* - proto3_optional = true
|
|
143
|
+
*/
|
|
144
|
+
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
145
|
+
/**
|
|
146
|
+
* Role of the admitted member, defaults to ADMIN.
|
|
147
|
+
*
|
|
148
|
+
* Options:
|
|
149
|
+
* - proto3_optional = true
|
|
150
|
+
*/
|
|
151
|
+
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
157
152
|
}
|
|
158
|
-
export declare namespace
|
|
153
|
+
export declare namespace Invitation {
|
|
159
154
|
/**
|
|
160
155
|
* Defined in:
|
|
161
|
-
* {@link file://./../../../dxos/client/
|
|
156
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
162
157
|
*/
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
158
|
+
enum Type {
|
|
159
|
+
INTERACTIVE = 0,
|
|
160
|
+
DELEGATED = 1,
|
|
161
|
+
MULTIUSE = 2
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Defined in:
|
|
165
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
166
|
+
*/
|
|
167
|
+
enum Kind {
|
|
168
|
+
DEVICE = 0,
|
|
169
|
+
SPACE = 1
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Defined in:
|
|
173
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
174
|
+
*/
|
|
175
|
+
enum AuthMethod {
|
|
176
|
+
NONE = 0,
|
|
177
|
+
SHARED_SECRET = 1,
|
|
178
|
+
KNOWN_PUBLIC_KEY = 2
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Defined in:
|
|
182
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
183
|
+
*/
|
|
184
|
+
enum State {
|
|
185
|
+
INIT = 0,
|
|
186
|
+
CONNECTING = 1,
|
|
187
|
+
CONNECTED = 2,
|
|
188
|
+
READY_FOR_AUTHENTICATION = 3,
|
|
189
|
+
AUTHENTICATING = 4,
|
|
190
|
+
SUCCESS = 5,
|
|
191
|
+
CANCELLED = 6,
|
|
192
|
+
TIMEOUT = 7,
|
|
193
|
+
ERROR = 8,
|
|
194
|
+
EXPIRED = 9
|
|
176
195
|
}
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Defined in:
|
|
180
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
181
|
-
*/
|
|
182
|
-
export interface LoggingService {
|
|
183
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
184
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
185
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
186
196
|
}
|
|
187
197
|
/**
|
|
188
198
|
* Defined in:
|
|
@@ -507,22 +517,6 @@ export declare namespace SpaceMember {
|
|
|
507
517
|
ONLINE = 1
|
|
508
518
|
}
|
|
509
519
|
}
|
|
510
|
-
/**
|
|
511
|
-
* Runtime state of the space object.
|
|
512
|
-
*
|
|
513
|
-
* Defined in:
|
|
514
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
515
|
-
*/
|
|
516
|
-
export declare enum SpaceState {
|
|
517
|
-
INACTIVE = 2,
|
|
518
|
-
ACTIVE = 6,
|
|
519
|
-
CLOSED = 1,
|
|
520
|
-
CONTROL_ONLY = 7,
|
|
521
|
-
INITIALIZING = 4,
|
|
522
|
-
READY = 3,
|
|
523
|
-
ERROR = 5,
|
|
524
|
-
REQUIRES_MIGRATION = 8
|
|
525
|
-
}
|
|
526
520
|
/**
|
|
527
521
|
* Defined in:
|
|
528
522
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -877,179 +871,11 @@ export interface SpacesService {
|
|
|
877
871
|
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
878
872
|
}
|
|
879
873
|
/**
|
|
880
|
-
* Represents the invitation state passed between client and service.
|
|
881
|
-
*
|
|
882
874
|
* Defined in:
|
|
883
875
|
* {@link file://./../../../dxos/client/services.proto}
|
|
884
876
|
*/
|
|
885
|
-
export interface
|
|
886
|
-
|
|
887
|
-
* Local identifier (random).
|
|
888
|
-
*/
|
|
889
|
-
invitationId: string;
|
|
890
|
-
/**
|
|
891
|
-
* Determines the behavior of the invitation.
|
|
892
|
-
*/
|
|
893
|
-
type: Invitation.Type;
|
|
894
|
-
/**
|
|
895
|
-
* Kind of access the invitation will grant.
|
|
896
|
-
*/
|
|
897
|
-
kind: Invitation.Kind;
|
|
898
|
-
/**
|
|
899
|
-
* How the invitation is authenticated.
|
|
900
|
-
*/
|
|
901
|
-
authMethod: Invitation.AuthMethod;
|
|
902
|
-
/**
|
|
903
|
-
* Swarm rendezvous (random).
|
|
904
|
-
*/
|
|
905
|
-
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
906
|
-
/**
|
|
907
|
-
* Local state.
|
|
908
|
-
*/
|
|
909
|
-
state: Invitation.State;
|
|
910
|
-
/**
|
|
911
|
-
* Timeout for guest to complete invitation once connected (ms).
|
|
912
|
-
*
|
|
913
|
-
* Options:
|
|
914
|
-
* - proto3_optional = true
|
|
915
|
-
*/
|
|
916
|
-
timeout?: number;
|
|
917
|
-
/**
|
|
918
|
-
* Guest's identity.
|
|
919
|
-
*
|
|
920
|
-
* Options:
|
|
921
|
-
* - proto3_optional = true
|
|
922
|
-
*/
|
|
923
|
-
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
924
|
-
/**
|
|
925
|
-
* Space to join (only present if kind is SPACE).
|
|
926
|
-
*
|
|
927
|
-
* Options:
|
|
928
|
-
* - proto3_optional = true
|
|
929
|
-
*/
|
|
930
|
-
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
931
|
-
/**
|
|
932
|
-
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
933
|
-
*
|
|
934
|
-
* Options:
|
|
935
|
-
* - proto3_optional = true
|
|
936
|
-
*/
|
|
937
|
-
authCode?: string;
|
|
938
|
-
/**
|
|
939
|
-
* Path or identifier to navigate to after successful authentication.
|
|
940
|
-
*
|
|
941
|
-
* Options:
|
|
942
|
-
* - proto3_optional = true
|
|
943
|
-
*/
|
|
944
|
-
target?: string;
|
|
945
|
-
/**
|
|
946
|
-
* Host should resume invitation on startup until timeout.
|
|
947
|
-
*
|
|
948
|
-
* Options:
|
|
949
|
-
* - proto3_optional = true
|
|
950
|
-
*/
|
|
951
|
-
persistent?: boolean;
|
|
952
|
-
/**
|
|
953
|
-
* Options:
|
|
954
|
-
* - proto3_optional = true
|
|
955
|
-
*/
|
|
956
|
-
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
957
|
-
/**
|
|
958
|
-
* Options:
|
|
959
|
-
* - proto3_optional = true
|
|
960
|
-
*/
|
|
961
|
-
lifetime?: number;
|
|
962
|
-
/**
|
|
963
|
-
* Whether an invitation can be used multiple times.
|
|
964
|
-
*
|
|
965
|
-
* Options:
|
|
966
|
-
* - proto3_optional = true
|
|
967
|
-
*/
|
|
968
|
-
multiUse?: boolean;
|
|
969
|
-
/**
|
|
970
|
-
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
971
|
-
*
|
|
972
|
-
* Options:
|
|
973
|
-
* - proto3_optional = true
|
|
974
|
-
*/
|
|
975
|
-
guestKeypair?: AdmissionKeypair;
|
|
976
|
-
/**
|
|
977
|
-
* Present on Type.DELEGATED invitations.
|
|
978
|
-
*
|
|
979
|
-
* Options:
|
|
980
|
-
* - proto3_optional = true
|
|
981
|
-
*/
|
|
982
|
-
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
983
|
-
/**
|
|
984
|
-
* Role of the admitted member, defaults to ADMIN.
|
|
985
|
-
*
|
|
986
|
-
* Options:
|
|
987
|
-
* - proto3_optional = true
|
|
988
|
-
*/
|
|
989
|
-
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
990
|
-
}
|
|
991
|
-
export declare namespace Invitation {
|
|
992
|
-
/**
|
|
993
|
-
* Defined in:
|
|
994
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
995
|
-
*/
|
|
996
|
-
enum Type {
|
|
997
|
-
INTERACTIVE = 0,
|
|
998
|
-
DELEGATED = 1,
|
|
999
|
-
MULTIUSE = 2
|
|
1000
|
-
}
|
|
1001
|
-
/**
|
|
1002
|
-
* Defined in:
|
|
1003
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1004
|
-
*/
|
|
1005
|
-
enum Kind {
|
|
1006
|
-
DEVICE = 0,
|
|
1007
|
-
SPACE = 1
|
|
1008
|
-
}
|
|
1009
|
-
/**
|
|
1010
|
-
* Defined in:
|
|
1011
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1012
|
-
*/
|
|
1013
|
-
enum AuthMethod {
|
|
1014
|
-
NONE = 0,
|
|
1015
|
-
SHARED_SECRET = 1,
|
|
1016
|
-
KNOWN_PUBLIC_KEY = 2
|
|
1017
|
-
}
|
|
1018
|
-
/**
|
|
1019
|
-
* Defined in:
|
|
1020
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1021
|
-
*/
|
|
1022
|
-
enum State {
|
|
1023
|
-
INIT = 0,
|
|
1024
|
-
CONNECTING = 1,
|
|
1025
|
-
CONNECTED = 2,
|
|
1026
|
-
READY_FOR_AUTHENTICATION = 3,
|
|
1027
|
-
AUTHENTICATING = 4,
|
|
1028
|
-
SUCCESS = 5,
|
|
1029
|
-
CANCELLED = 6,
|
|
1030
|
-
TIMEOUT = 7,
|
|
1031
|
-
ERROR = 8,
|
|
1032
|
-
EXPIRED = 9
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
/**
|
|
1036
|
-
* Defined in:
|
|
1037
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1038
|
-
*/
|
|
1039
|
-
export interface AdmissionKeypair {
|
|
1040
|
-
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1041
|
-
/**
|
|
1042
|
-
* Options:
|
|
1043
|
-
* - proto3_optional = true
|
|
1044
|
-
*/
|
|
1045
|
-
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
1046
|
-
}
|
|
1047
|
-
/**
|
|
1048
|
-
* Defined in:
|
|
1049
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1050
|
-
*/
|
|
1051
|
-
export interface AcceptInvitationRequest {
|
|
1052
|
-
invitation: Invitation;
|
|
877
|
+
export interface AcceptInvitationRequest {
|
|
878
|
+
invitation: Invitation;
|
|
1053
879
|
/**
|
|
1054
880
|
* Options:
|
|
1055
881
|
* - proto3_optional = true
|
|
@@ -1173,4 +999,181 @@ export interface NetworkService {
|
|
|
1173
999
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
1174
1000
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1175
1001
|
}
|
|
1002
|
+
/**
|
|
1003
|
+
* Defined in:
|
|
1004
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1005
|
+
*/
|
|
1006
|
+
export interface Metrics {
|
|
1007
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1008
|
+
values?: Metrics.KeyPair[];
|
|
1009
|
+
}
|
|
1010
|
+
export declare namespace Metrics {
|
|
1011
|
+
/**
|
|
1012
|
+
* Defined in:
|
|
1013
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1014
|
+
*/
|
|
1015
|
+
interface KeyPair {
|
|
1016
|
+
/**
|
|
1017
|
+
* Options:
|
|
1018
|
+
* - proto3_optional = true
|
|
1019
|
+
*/
|
|
1020
|
+
key?: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* Options:
|
|
1023
|
+
* - proto3_optional = true
|
|
1024
|
+
*/
|
|
1025
|
+
value?: dxos_value.Value;
|
|
1026
|
+
/**
|
|
1027
|
+
* Options:
|
|
1028
|
+
* - proto3_optional = true
|
|
1029
|
+
*/
|
|
1030
|
+
stats?: dxos_value.Stats;
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* Defined in:
|
|
1035
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1036
|
+
*/
|
|
1037
|
+
export interface ControlMetricsRequest {
|
|
1038
|
+
/**
|
|
1039
|
+
* Options:
|
|
1040
|
+
* - proto3_optional = true
|
|
1041
|
+
*/
|
|
1042
|
+
reset?: boolean;
|
|
1043
|
+
/**
|
|
1044
|
+
* Options:
|
|
1045
|
+
* - proto3_optional = true
|
|
1046
|
+
*/
|
|
1047
|
+
record?: boolean;
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* Defined in:
|
|
1051
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1052
|
+
*/
|
|
1053
|
+
export interface ControlMetricsResponse {
|
|
1054
|
+
/**
|
|
1055
|
+
* Options:
|
|
1056
|
+
* - proto3_optional = true
|
|
1057
|
+
*/
|
|
1058
|
+
recording?: boolean;
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* Defined in:
|
|
1062
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1063
|
+
*/
|
|
1064
|
+
export interface QueryMetricsRequest {
|
|
1065
|
+
/**
|
|
1066
|
+
* Options:
|
|
1067
|
+
* - proto3_optional = true
|
|
1068
|
+
*/
|
|
1069
|
+
interval?: number;
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* Defined in:
|
|
1073
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1074
|
+
*/
|
|
1075
|
+
export interface QueryMetricsResponse {
|
|
1076
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1077
|
+
metrics: Metrics;
|
|
1078
|
+
}
|
|
1079
|
+
/**
|
|
1080
|
+
* Defined in:
|
|
1081
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1082
|
+
*/
|
|
1083
|
+
export declare enum LogLevel {
|
|
1084
|
+
NONE = 0,
|
|
1085
|
+
TRACE = 5,
|
|
1086
|
+
DEBUG = 10,
|
|
1087
|
+
INFO = 11,
|
|
1088
|
+
WARN = 12,
|
|
1089
|
+
ERROR = 13
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* Defined in:
|
|
1093
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1094
|
+
*/
|
|
1095
|
+
export interface QueryLogsRequest {
|
|
1096
|
+
filters?: QueryLogsRequest.Filter[];
|
|
1097
|
+
/**
|
|
1098
|
+
* Options:
|
|
1099
|
+
* - proto3_optional = true
|
|
1100
|
+
*/
|
|
1101
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
1102
|
+
}
|
|
1103
|
+
export declare namespace QueryLogsRequest {
|
|
1104
|
+
/**
|
|
1105
|
+
* Defined in:
|
|
1106
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1107
|
+
*/
|
|
1108
|
+
enum MatchingOptions {
|
|
1109
|
+
NONE = 0,
|
|
1110
|
+
INCLUSIVE = 1,
|
|
1111
|
+
EXPLICIT = 2
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Defined in:
|
|
1115
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1116
|
+
*/
|
|
1117
|
+
interface Filter {
|
|
1118
|
+
level: LogLevel;
|
|
1119
|
+
/**
|
|
1120
|
+
* Options:
|
|
1121
|
+
* - proto3_optional = true
|
|
1122
|
+
*/
|
|
1123
|
+
pattern?: string;
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
/**
|
|
1127
|
+
* Defined in:
|
|
1128
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1129
|
+
*/
|
|
1130
|
+
export interface LogEntry {
|
|
1131
|
+
level: LogLevel;
|
|
1132
|
+
message: string;
|
|
1133
|
+
/**
|
|
1134
|
+
* Options:
|
|
1135
|
+
* - proto3_optional = true
|
|
1136
|
+
*/
|
|
1137
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Options:
|
|
1140
|
+
* - proto3_optional = true
|
|
1141
|
+
*/
|
|
1142
|
+
meta?: LogEntry.Meta;
|
|
1143
|
+
/**
|
|
1144
|
+
* Options:
|
|
1145
|
+
* - proto3_optional = true
|
|
1146
|
+
*/
|
|
1147
|
+
error?: dxos_error.Error;
|
|
1148
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1149
|
+
}
|
|
1150
|
+
export declare namespace LogEntry {
|
|
1151
|
+
/**
|
|
1152
|
+
* Defined in:
|
|
1153
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1154
|
+
*/
|
|
1155
|
+
interface Meta {
|
|
1156
|
+
file: string;
|
|
1157
|
+
line: number;
|
|
1158
|
+
/**
|
|
1159
|
+
* Options:
|
|
1160
|
+
* - proto3_optional = true
|
|
1161
|
+
*/
|
|
1162
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1163
|
+
/**
|
|
1164
|
+
* Options:
|
|
1165
|
+
* - proto3_optional = true
|
|
1166
|
+
*/
|
|
1167
|
+
resourceId?: number;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
/**
|
|
1171
|
+
* Defined in:
|
|
1172
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1173
|
+
*/
|
|
1174
|
+
export interface LoggingService {
|
|
1175
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1176
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1177
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1178
|
+
}
|
|
1176
1179
|
//# sourceMappingURL=services.d.ts.map
|