@dxos/protocols 0.8.4-main.406dc2a → 0.8.4-main.4a85c3132b
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/README.md +1 -1
- package/dist/src/FeedProtocol.d.ts +528 -0
- package/dist/src/FeedProtocol.d.ts.map +1 -0
- package/dist/src/FeedProtocol.js +237 -0
- package/dist/src/FeedProtocol.js.map +1 -0
- package/dist/src/FunctionProtocol.d.ts +82 -0
- package/dist/src/FunctionProtocol.d.ts.map +1 -0
- package/dist/src/FunctionProtocol.js +4 -0
- package/dist/src/FunctionProtocol.js.map +1 -0
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts +231 -0
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts.map +1 -0
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.js +44 -0
- package/dist/src/buf/proto/gen/dxos/client/queue_pb.js.map +1 -0
- package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts +5 -1
- package/dist/src/buf/proto/gen/dxos/client/services_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/client/services_pb.js +5 -1
- package/dist/src/buf/proto/gen/dxos/client/services_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts +12 -2
- package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/query_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/query_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts +55 -9
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.js +15 -5
- package/dist/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/google_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/google_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts +1 -0
- package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts.map +1 -1
- package/dist/src/buf/proto/gen/dxos/iframe_pb.js.map +1 -1
- package/dist/src/buf/proto/gen/dxos/tracing_pb.js +1 -1
- package/dist/src/buf/proto/gen/dxos/tracing_pb.js.map +1 -1
- package/dist/src/codec.test.js +1 -1
- package/dist/src/edge/EdgeFunctionEnv.d.ts +108 -0
- package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -0
- package/dist/src/edge/EdgeFunctionEnv.js +4 -0
- package/dist/src/edge/EdgeFunctionEnv.js.map +1 -0
- package/dist/src/{edge.d.ts → edge/edge.d.ts} +117 -10
- package/dist/src/edge/edge.d.ts.map +1 -0
- package/dist/src/edge/edge.js +169 -0
- package/dist/src/edge/edge.js.map +1 -0
- package/dist/src/edge/errors.d.ts +29 -0
- package/dist/src/edge/errors.d.ts.map +1 -0
- package/dist/src/edge/errors.js +69 -0
- package/dist/src/edge/errors.js.map +1 -0
- package/dist/src/edge/index.d.ts +4 -0
- package/dist/src/edge/index.d.ts.map +1 -0
- package/dist/src/edge/index.js +7 -0
- package/dist/src/edge/index.js.map +1 -0
- package/dist/src/errors/base-errors.d.ts +86 -8
- package/dist/src/errors/base-errors.d.ts.map +1 -1
- package/dist/src/errors/base-errors.js +4 -20
- package/dist/src/errors/base-errors.js.map +1 -1
- package/dist/src/errors/encoding.d.ts +2 -2
- package/dist/src/errors/encoding.d.ts.map +1 -1
- package/dist/src/errors/encoding.js +1 -1
- package/dist/src/errors/errors.d.ts +619 -42
- package/dist/src/errors/errors.d.ts.map +1 -1
- package/dist/src/errors/errors.js +50 -104
- package/dist/src/errors/errors.js.map +1 -1
- package/dist/src/errors/errors.test.js +2 -2
- package/dist/src/errors/errors.test.js.map +1 -1
- package/dist/src/errors/helpers.d.ts +9 -5
- package/dist/src/errors/helpers.d.ts.map +1 -1
- package/dist/src/errors/helpers.js +3 -3
- package/dist/src/errors/helpers.js.map +1 -1
- package/dist/src/errors/index.d.ts +5 -5
- package/dist/src/errors/index.js +5 -5
- package/dist/src/feed-replication.d.ts.map +1 -1
- package/dist/src/index.d.ts +12 -12
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +11 -11
- package/dist/src/index.js.map +1 -1
- package/dist/src/indexing.test.js +1 -1
- package/dist/src/messenger.d.ts +16 -0
- package/dist/src/messenger.d.ts.map +1 -0
- package/dist/src/messenger.js +4 -0
- package/dist/src/messenger.js.map +1 -0
- package/dist/src/proto/gen/dxos/client/services.d.ts +993 -865
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js +95 -94
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/query.d.ts +17 -1
- package/dist/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/query.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/service.d.ts +34 -8
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts +29 -29
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/src/proto/gen/index.d.ts +9 -0
- package/dist/src/proto/gen/index.d.ts.map +1 -1
- package/dist/src/proto/gen/index.js +1 -1
- package/dist/src/proto/gen/index.js.map +1 -1
- package/dist/src/proto/index.d.ts +2 -2
- package/dist/src/proto/index.js +1 -1
- package/dist/src/proto/types.d.ts +1 -1
- package/dist/src/types.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -15
- package/src/FeedProtocol.ts +320 -0
- package/src/FunctionProtocol.ts +102 -0
- package/src/buf/proto/gen/dxos/agent/dashboard_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/echo-proxy_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/epoch_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/agent/functions_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/bot_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/client/invitation_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/client/logging_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/client/queue_pb.ts +280 -0
- package/src/buf/proto/gen/dxos/client/services_pb.ts +7 -2
- package/src/buf/proto/gen/dxos/config_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/devtools/diagnostics_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/devtools/host_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/devtools/swarm_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/blob_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/feed_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/filter_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/indexing_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/model/document_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/model/messenger_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/model/text_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/object_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/query_pb.ts +16 -4
- package/src/buf/proto/gen/dxos/echo/service_pb.ts +68 -16
- package/src/buf/proto/gen/dxos/echo/snapshot_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/echo/timeframe_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/edge/calls_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/edge/signal_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/error_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/field_options_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/google_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/gravity_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/auth_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/greet_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials/identity_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/keyring_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/keys_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/halo/signed_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/iframe_pb.ts +2 -1
- package/src/buf/proto/gen/dxos/keys_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/bridge_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/broadcast_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/messaging_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/muxer_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/presence_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/protocol_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/replicator_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/signal_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/swarm_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/control_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/registry_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/rpc_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/agentmanager_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/publisher_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/supervisor_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/service/tunnel_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/tracing_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/type_pb.ts +1 -1
- package/src/buf/proto/gen/dxos/value_pb.ts +1 -1
- package/src/buf/proto/gen/example/testing/data_pb.ts +1 -1
- package/src/buf/proto/gen/example/testing/rpc_pb.ts +1 -1
- package/src/codec.test.ts +1 -1
- package/src/edge/EdgeFunctionEnv.ts +187 -0
- package/src/edge/edge.ts +493 -0
- package/src/edge/errors.ts +85 -0
- package/src/edge/index.ts +7 -0
- package/src/errors/base-errors.ts +4 -22
- package/src/errors/encoding.ts +2 -2
- package/src/errors/errors.test.ts +2 -2
- package/src/errors/errors.ts +57 -123
- package/src/errors/helpers.ts +6 -7
- package/src/errors/index.ts +5 -5
- package/src/feed-replication.ts +1 -0
- package/src/index.ts +12 -12
- package/src/indexing.test.ts +1 -1
- package/src/messenger.ts +22 -0
- package/src/proto/dxos/client/queue.proto +78 -0
- package/src/proto/dxos/client/services.proto +1 -0
- package/src/proto/dxos/echo/query.proto +4 -1
- package/src/proto/dxos/echo/service.proto +27 -6
- package/src/proto/dxos/iframe.proto +1 -0
- package/src/proto/gen/dxos/client/services.ts +993 -865
- package/src/proto/gen/dxos/echo/query.ts +17 -1
- package/src/proto/gen/dxos/echo/service.ts +33 -8
- package/src/proto/gen/google/protobuf.ts +29 -29
- package/src/proto/gen/index.ts +10 -1
- package/src/proto/index.ts +2 -2
- package/src/proto/types.ts +1 -1
- package/src/types.ts +2 -2
- package/dist/src/edge-error.d.ts +0 -26
- package/dist/src/edge-error.d.ts.map +0 -1
- package/dist/src/edge-error.js +0 -102
- package/dist/src/edge-error.js.map +0 -1
- package/dist/src/edge.d.ts.map +0 -1
- package/dist/src/edge.js +0 -49
- package/dist/src/edge.js.map +0 -1
- package/dist/src/query.d.ts +0 -5
- package/dist/src/query.d.ts.map +0 -1
- package/dist/src/query.js +0 -8
- package/dist/src/query.js.map +0 -1
- package/dist/src/queue.d.ts +0 -28
- package/dist/src/queue.d.ts.map +0 -1
- package/dist/src/queue.js +0 -8
- package/dist/src/queue.js.map +0 -1
- package/src/edge-error.ts +0 -134
- package/src/edge.ts +0 -279
- package/src/query.ts +0 -8
- package/src/queue.ts +0 -38
|
@@ -67,813 +67,444 @@ import * as example_testing_rpc from "../../example/testing/rpc.js";
|
|
|
67
67
|
import * as google_protobuf from "../../google/protobuf.js";
|
|
68
68
|
/**
|
|
69
69
|
* Defined in:
|
|
70
|
-
* {@link file://./../../../dxos/client/
|
|
70
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
71
71
|
*/
|
|
72
|
-
export
|
|
73
|
-
|
|
72
|
+
export enum SystemStatus {
|
|
73
|
+
INACTIVE = 0,
|
|
74
|
+
ACTIVE = 1
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Defined in:
|
|
78
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
79
|
+
*/
|
|
80
|
+
export interface UpdateStatusRequest {
|
|
81
|
+
status: SystemStatus;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Defined in:
|
|
85
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
86
|
+
*/
|
|
87
|
+
export interface QueryStatusRequest {
|
|
74
88
|
/**
|
|
75
89
|
* Options:
|
|
76
90
|
* - proto3_optional = true
|
|
77
91
|
*/
|
|
78
|
-
|
|
92
|
+
interval?: number;
|
|
79
93
|
}
|
|
80
94
|
/**
|
|
81
|
-
* Runtime state of the space object.
|
|
82
|
-
*
|
|
83
95
|
* Defined in:
|
|
84
|
-
* {@link file://./../../../dxos/client/
|
|
96
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
85
97
|
*/
|
|
86
|
-
export
|
|
87
|
-
|
|
88
|
-
SPACE_INACTIVE = 2,
|
|
89
|
-
SPACE_ACTIVE = 6,
|
|
90
|
-
SPACE_CLOSED = 1,
|
|
91
|
-
SPACE_CONTROL_ONLY = 7,
|
|
92
|
-
SPACE_INITIALIZING = 4,
|
|
93
|
-
SPACE_READY = 3,
|
|
94
|
-
SPACE_ERROR = 5,
|
|
95
|
-
SPACE_REQUIRES_MIGRATION = 8
|
|
98
|
+
export interface QueryStatusResponse {
|
|
99
|
+
status: SystemStatus;
|
|
96
100
|
}
|
|
97
101
|
/**
|
|
98
|
-
* Represents the invitation state passed between client and service.
|
|
99
|
-
*
|
|
100
102
|
* Defined in:
|
|
101
|
-
* {@link file://./../../../dxos/client/
|
|
103
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
102
104
|
*/
|
|
103
|
-
export interface
|
|
104
|
-
/**
|
|
105
|
-
* Local identifier (random).
|
|
106
|
-
*/
|
|
107
|
-
invitationId: string;
|
|
108
|
-
/**
|
|
109
|
-
* Determines the behavior of the invitation.
|
|
110
|
-
*/
|
|
111
|
-
type: Invitation.Type;
|
|
112
|
-
/**
|
|
113
|
-
* Kind of access the invitation will grant.
|
|
114
|
-
*/
|
|
115
|
-
kind: Invitation.Kind;
|
|
116
|
-
/**
|
|
117
|
-
* How the invitation is authenticated.
|
|
118
|
-
*/
|
|
119
|
-
authMethod: Invitation.AuthMethod;
|
|
105
|
+
export interface GetDiagnosticsRequest {
|
|
120
106
|
/**
|
|
121
|
-
*
|
|
107
|
+
* Options:
|
|
108
|
+
* - proto3_optional = true
|
|
122
109
|
*/
|
|
123
|
-
|
|
110
|
+
keys?: GetDiagnosticsRequest.KEY_OPTION;
|
|
111
|
+
}
|
|
112
|
+
export namespace GetDiagnosticsRequest {
|
|
124
113
|
/**
|
|
125
|
-
*
|
|
114
|
+
* Defined in:
|
|
115
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
126
116
|
*/
|
|
127
|
-
|
|
117
|
+
export enum KEY_OPTION {
|
|
118
|
+
NONE = 0,
|
|
119
|
+
TRUNCATE = 1,
|
|
120
|
+
HUMANIZE = 2
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Defined in:
|
|
125
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
126
|
+
*/
|
|
127
|
+
export interface GetDiagnosticsResponse {
|
|
128
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
129
|
+
diagnostics: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Defined in:
|
|
133
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
134
|
+
*/
|
|
135
|
+
export interface Platform {
|
|
136
|
+
type: Platform.PLATFORM_TYPE;
|
|
128
137
|
/**
|
|
129
|
-
*
|
|
138
|
+
* The User-Agent string from a browser
|
|
130
139
|
*
|
|
131
140
|
* Options:
|
|
132
141
|
* - proto3_optional = true
|
|
133
142
|
*/
|
|
134
|
-
|
|
143
|
+
userAgent?: string;
|
|
135
144
|
/**
|
|
136
|
-
*
|
|
145
|
+
* e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
|
|
137
146
|
*
|
|
138
147
|
* Options:
|
|
139
148
|
* - proto3_optional = true
|
|
140
149
|
*/
|
|
141
|
-
|
|
150
|
+
platform?: string;
|
|
142
151
|
/**
|
|
143
|
-
*
|
|
152
|
+
* the Node.JS arch string, e.g. 'arm64', 'x64'
|
|
144
153
|
*
|
|
145
154
|
* Options:
|
|
146
155
|
* - proto3_optional = true
|
|
147
156
|
*/
|
|
148
|
-
|
|
157
|
+
arch?: string;
|
|
149
158
|
/**
|
|
150
|
-
*
|
|
159
|
+
* the node.js version string
|
|
151
160
|
*
|
|
152
161
|
* Options:
|
|
153
162
|
* - proto3_optional = true
|
|
154
163
|
*/
|
|
155
|
-
|
|
164
|
+
runtime?: string;
|
|
156
165
|
/**
|
|
157
|
-
*
|
|
166
|
+
* the number of seconds the client has been up
|
|
158
167
|
*
|
|
159
168
|
* Options:
|
|
160
169
|
* - proto3_optional = true
|
|
161
170
|
*/
|
|
162
|
-
|
|
171
|
+
uptime?: number;
|
|
163
172
|
/**
|
|
164
|
-
*
|
|
173
|
+
* e.g. NodeJS.MemoryUsage, subject to change
|
|
165
174
|
*
|
|
166
175
|
* Options:
|
|
167
176
|
* - proto3_optional = true
|
|
168
177
|
*/
|
|
169
|
-
|
|
178
|
+
memory?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
179
|
+
}
|
|
180
|
+
export namespace Platform {
|
|
170
181
|
/**
|
|
171
|
-
*
|
|
172
|
-
*
|
|
182
|
+
* Defined in:
|
|
183
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
173
184
|
*/
|
|
174
|
-
|
|
185
|
+
export enum PLATFORM_TYPE {
|
|
186
|
+
BROWSER = 0,
|
|
187
|
+
SHARED_WORKER = 1,
|
|
188
|
+
NODE = 2,
|
|
189
|
+
DEDICATED_WORKER = 3
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Defined in:
|
|
194
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
195
|
+
*/
|
|
196
|
+
export interface SystemService {
|
|
175
197
|
/**
|
|
176
|
-
*
|
|
177
|
-
* - proto3_optional = true
|
|
198
|
+
* Get the static config of the client.
|
|
178
199
|
*/
|
|
179
|
-
|
|
200
|
+
getConfig: (request: void, options?: RequestOptions) => Promise<dxos_config.Config>;
|
|
180
201
|
/**
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* Options:
|
|
184
|
-
* - proto3_optional = true
|
|
202
|
+
* Get the diagnostics snapshot.
|
|
185
203
|
*/
|
|
186
|
-
|
|
204
|
+
getDiagnostics: (request: GetDiagnosticsRequest, options?: RequestOptions) => Promise<GetDiagnosticsResponse>;
|
|
187
205
|
/**
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
* Options:
|
|
191
|
-
* - proto3_optional = true
|
|
206
|
+
* Update the status of the client. Used to re-activate an inactive client.
|
|
192
207
|
*/
|
|
193
|
-
|
|
208
|
+
updateStatus: (request: UpdateStatusRequest, options?: RequestOptions) => Promise<void>;
|
|
194
209
|
/**
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
* Options:
|
|
198
|
-
* - proto3_optional = true
|
|
210
|
+
* Stream the status of the client.
|
|
199
211
|
*/
|
|
200
|
-
|
|
212
|
+
queryStatus: (request: QueryStatusRequest, options?: RequestOptions) => Stream<QueryStatusResponse>;
|
|
201
213
|
/**
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
* Options:
|
|
205
|
-
* - proto3_optional = true
|
|
214
|
+
* Reset the client.
|
|
206
215
|
*/
|
|
207
|
-
|
|
216
|
+
reset: (request: void, options?: RequestOptions) => Promise<void>;
|
|
208
217
|
/**
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
* Options:
|
|
212
|
-
* - proto3_optional = true
|
|
218
|
+
* Get platform Information
|
|
213
219
|
*/
|
|
214
|
-
|
|
220
|
+
getPlatform: (request: void, options?: RequestOptions) => Promise<Platform>;
|
|
215
221
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
DELEGATED = 1,
|
|
224
|
-
MULTIUSE = 2
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Defined in:
|
|
228
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
229
|
-
*/
|
|
230
|
-
export enum Kind {
|
|
231
|
-
DEVICE = 0,
|
|
232
|
-
SPACE = 1
|
|
233
|
-
}
|
|
222
|
+
/**
|
|
223
|
+
* Defined in:
|
|
224
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
225
|
+
*/
|
|
226
|
+
export interface Identity {
|
|
227
|
+
did: string;
|
|
228
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
234
229
|
/**
|
|
235
|
-
*
|
|
236
|
-
*
|
|
230
|
+
* Options:
|
|
231
|
+
* - proto3_optional = true
|
|
237
232
|
*/
|
|
238
|
-
|
|
239
|
-
NONE = 0,
|
|
240
|
-
SHARED_SECRET = 1,
|
|
241
|
-
KNOWN_PUBLIC_KEY = 2
|
|
242
|
-
}
|
|
233
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
243
234
|
/**
|
|
244
|
-
*
|
|
245
|
-
*
|
|
235
|
+
* Options:
|
|
236
|
+
* - proto3_optional = true
|
|
246
237
|
*/
|
|
247
|
-
|
|
248
|
-
INIT = 0,
|
|
249
|
-
CONNECTING = 1,
|
|
250
|
-
CONNECTED = 2,
|
|
251
|
-
READY_FOR_AUTHENTICATION = 3,
|
|
252
|
-
AUTHENTICATING = 4,
|
|
253
|
-
SUCCESS = 5,
|
|
254
|
-
CANCELLED = 6,
|
|
255
|
-
TIMEOUT = 7,
|
|
256
|
-
ERROR = 8,
|
|
257
|
-
EXPIRED = 9
|
|
258
|
-
}
|
|
238
|
+
profile?: dxos_halo_credentials.ProfileDocument;
|
|
259
239
|
}
|
|
260
240
|
/**
|
|
261
241
|
* Defined in:
|
|
262
|
-
* {@link file://./../../../dxos/client/
|
|
242
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
263
243
|
*/
|
|
264
|
-
export interface
|
|
265
|
-
|
|
266
|
-
|
|
244
|
+
export interface RequestRecoveryChallengeResponse {
|
|
245
|
+
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
246
|
+
controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
247
|
+
challenge: string;
|
|
267
248
|
}
|
|
268
|
-
|
|
249
|
+
/**
|
|
250
|
+
* Defined in:
|
|
251
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
252
|
+
*/
|
|
253
|
+
export interface RecoverIdentityRequest {
|
|
254
|
+
recoveryCode?: string;
|
|
255
|
+
external?: RecoverIdentityRequest.ExternalSignature;
|
|
256
|
+
token?: string;
|
|
257
|
+
}
|
|
258
|
+
export namespace RecoverIdentityRequest {
|
|
269
259
|
/**
|
|
270
260
|
* Defined in:
|
|
271
|
-
* {@link file://./../../../dxos/client/
|
|
261
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
272
262
|
*/
|
|
273
|
-
export interface
|
|
263
|
+
export interface ExternalSignature {
|
|
264
|
+
lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
265
|
+
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
266
|
+
controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
267
|
+
signature: Uint8Array;
|
|
274
268
|
/**
|
|
275
269
|
* Options:
|
|
276
270
|
* - proto3_optional = true
|
|
277
271
|
*/
|
|
278
|
-
|
|
272
|
+
clientDataJson?: Uint8Array;
|
|
279
273
|
/**
|
|
280
274
|
* Options:
|
|
281
275
|
* - proto3_optional = true
|
|
282
276
|
*/
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Options:
|
|
286
|
-
* - proto3_optional = true
|
|
287
|
-
*/
|
|
288
|
-
stats?: dxos_value.Stats;
|
|
277
|
+
authenticatorData?: Uint8Array;
|
|
289
278
|
}
|
|
290
279
|
}
|
|
291
280
|
/**
|
|
292
281
|
* Defined in:
|
|
293
|
-
* {@link file://./../../../dxos/client/
|
|
282
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
294
283
|
*/
|
|
295
|
-
export interface
|
|
284
|
+
export interface RecoveryCredentialData {
|
|
296
285
|
/**
|
|
297
|
-
*
|
|
298
|
-
* - proto3_optional = true
|
|
286
|
+
* Recovery key used to validate recovery challenge signature.
|
|
299
287
|
*/
|
|
300
|
-
|
|
288
|
+
recoveryKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
301
289
|
/**
|
|
302
|
-
*
|
|
303
|
-
* - proto3_optional = true
|
|
290
|
+
* Public key used to identify the recovery key.
|
|
304
291
|
*/
|
|
305
|
-
|
|
292
|
+
lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
293
|
+
/**
|
|
294
|
+
* Algorithm used to generate the recovery key.
|
|
295
|
+
*/
|
|
296
|
+
algorithm: string;
|
|
306
297
|
}
|
|
307
298
|
/**
|
|
308
299
|
* Defined in:
|
|
309
|
-
* {@link file://./../../../dxos/client/
|
|
300
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
310
301
|
*/
|
|
311
|
-
export interface
|
|
302
|
+
export interface CreateRecoveryCredentialRequest {
|
|
312
303
|
/**
|
|
304
|
+
* If not provided, a new key will be generated.
|
|
305
|
+
*
|
|
313
306
|
* Options:
|
|
314
307
|
* - proto3_optional = true
|
|
315
308
|
*/
|
|
316
|
-
|
|
309
|
+
data?: RecoveryCredentialData;
|
|
317
310
|
}
|
|
318
311
|
/**
|
|
319
312
|
* Defined in:
|
|
320
|
-
* {@link file://./../../../dxos/client/
|
|
313
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
321
314
|
*/
|
|
322
|
-
export interface
|
|
315
|
+
export interface CreateRecoveryCredentialResponse {
|
|
323
316
|
/**
|
|
324
317
|
* Options:
|
|
325
318
|
* - proto3_optional = true
|
|
326
319
|
*/
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
/**
|
|
330
|
-
* Defined in:
|
|
331
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
332
|
-
*/
|
|
333
|
-
export interface QueryMetricsResponse {
|
|
334
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
335
|
-
metrics: Metrics;
|
|
320
|
+
recoveryCode?: string;
|
|
336
321
|
}
|
|
337
322
|
/**
|
|
338
323
|
* Defined in:
|
|
339
|
-
* {@link file://./../../../dxos/client/
|
|
324
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
340
325
|
*/
|
|
341
|
-
export
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
WARN = 13,
|
|
348
|
-
ERROR = 14
|
|
326
|
+
export interface QueryIdentityResponse {
|
|
327
|
+
/**
|
|
328
|
+
* Options:
|
|
329
|
+
* - proto3_optional = true
|
|
330
|
+
*/
|
|
331
|
+
identity?: Identity;
|
|
349
332
|
}
|
|
350
333
|
/**
|
|
351
334
|
* Defined in:
|
|
352
|
-
* {@link file://./../../../dxos/client/
|
|
335
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
353
336
|
*/
|
|
354
|
-
export interface
|
|
355
|
-
|
|
337
|
+
export interface SignPresentationRequest {
|
|
338
|
+
presentation: dxos_halo_credentials.Presentation;
|
|
356
339
|
/**
|
|
357
340
|
* Options:
|
|
358
341
|
* - proto3_optional = true
|
|
359
342
|
*/
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
export namespace QueryLogsRequest {
|
|
363
|
-
/**
|
|
364
|
-
* Defined in:
|
|
365
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
366
|
-
*/
|
|
367
|
-
export enum MatchingOptions {
|
|
368
|
-
NONE = 0,
|
|
369
|
-
INCLUSIVE = 1,
|
|
370
|
-
EXPLICIT = 2
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Defined in:
|
|
374
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
375
|
-
*/
|
|
376
|
-
export interface Filter {
|
|
377
|
-
level: LogLevel;
|
|
378
|
-
/**
|
|
379
|
-
* Options:
|
|
380
|
-
* - proto3_optional = true
|
|
381
|
-
*/
|
|
382
|
-
pattern?: string;
|
|
383
|
-
}
|
|
343
|
+
nonce?: Uint8Array;
|
|
384
344
|
}
|
|
385
345
|
/**
|
|
386
346
|
* Defined in:
|
|
387
|
-
* {@link file://./../../../dxos/client/
|
|
347
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
388
348
|
*/
|
|
389
|
-
export interface
|
|
390
|
-
level: LogLevel;
|
|
391
|
-
message: string;
|
|
349
|
+
export interface CreateIdentityRequest {
|
|
392
350
|
/**
|
|
393
351
|
* Options:
|
|
394
352
|
* - proto3_optional = true
|
|
395
353
|
*/
|
|
396
|
-
|
|
354
|
+
profile?: dxos_halo_credentials.ProfileDocument;
|
|
397
355
|
/**
|
|
398
356
|
* Options:
|
|
399
357
|
* - proto3_optional = true
|
|
400
358
|
*/
|
|
401
|
-
|
|
359
|
+
deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Defined in:
|
|
363
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
364
|
+
*/
|
|
365
|
+
export interface IdentityService {
|
|
366
|
+
createIdentity: (request: CreateIdentityRequest, options?: RequestOptions) => Promise<Identity>;
|
|
367
|
+
requestRecoveryChallenge: (request: void, options?: RequestOptions) => Promise<RequestRecoveryChallengeResponse>;
|
|
368
|
+
recoverIdentity: (request: RecoverIdentityRequest, options?: RequestOptions) => Promise<Identity>;
|
|
369
|
+
createRecoveryCredential: (request: CreateRecoveryCredentialRequest, options?: RequestOptions) => Promise<CreateRecoveryCredentialResponse>;
|
|
370
|
+
queryIdentity: (request: void, options?: RequestOptions) => Stream<QueryIdentityResponse>;
|
|
371
|
+
updateProfile: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
|
|
372
|
+
signPresentation: (request: SignPresentationRequest, options?: RequestOptions) => Promise<dxos_halo_credentials.Presentation>;
|
|
373
|
+
createAuthCredential: (request: void, options?: RequestOptions) => Promise<dxos_halo_credentials.Credential>;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Defined in:
|
|
377
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
378
|
+
*/
|
|
379
|
+
export enum DeviceKind {
|
|
380
|
+
CURRENT = 0,
|
|
381
|
+
TRUSTED = 1
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Defined in:
|
|
385
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
386
|
+
*/
|
|
387
|
+
export interface Device {
|
|
388
|
+
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
389
|
+
kind: DeviceKind;
|
|
402
390
|
/**
|
|
403
391
|
* Options:
|
|
404
392
|
* - proto3_optional = true
|
|
405
393
|
*/
|
|
406
|
-
|
|
407
|
-
|
|
394
|
+
profile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
395
|
+
presence: Device.PresenceState;
|
|
408
396
|
}
|
|
409
|
-
export namespace
|
|
397
|
+
export namespace Device {
|
|
410
398
|
/**
|
|
411
399
|
* Defined in:
|
|
412
|
-
* {@link file://./../../../dxos/client/
|
|
400
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
413
401
|
*/
|
|
414
|
-
export
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
* Options:
|
|
419
|
-
* - proto3_optional = true
|
|
420
|
-
*/
|
|
421
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
422
|
-
/**
|
|
423
|
-
* Options:
|
|
424
|
-
* - proto3_optional = true
|
|
425
|
-
*/
|
|
426
|
-
resourceId?: number;
|
|
402
|
+
export enum PresenceState {
|
|
403
|
+
OFFLINE = 0,
|
|
404
|
+
ONLINE = 1,
|
|
405
|
+
REMOVED = 2
|
|
427
406
|
}
|
|
428
407
|
}
|
|
429
|
-
/**
|
|
430
|
-
* Defined in:
|
|
431
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
432
|
-
*/
|
|
433
|
-
export interface LoggingService {
|
|
434
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
435
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
436
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
437
|
-
}
|
|
438
408
|
/**
|
|
439
409
|
* Defined in:
|
|
440
410
|
* {@link file://./../../../dxos/client/services.proto}
|
|
441
411
|
*/
|
|
442
|
-
export
|
|
443
|
-
|
|
444
|
-
ACTIVE = 1
|
|
412
|
+
export interface QueryDevicesResponse {
|
|
413
|
+
devices?: Device[];
|
|
445
414
|
}
|
|
446
415
|
/**
|
|
447
416
|
* Defined in:
|
|
448
417
|
* {@link file://./../../../dxos/client/services.proto}
|
|
449
418
|
*/
|
|
450
|
-
export interface
|
|
451
|
-
|
|
419
|
+
export interface DevicesService {
|
|
420
|
+
updateDevice: (request: dxos_halo_credentials.DeviceProfileDocument, options?: RequestOptions) => Promise<Device>;
|
|
421
|
+
queryDevices: (request: void, options?: RequestOptions) => Stream<QueryDevicesResponse>;
|
|
452
422
|
}
|
|
453
423
|
/**
|
|
454
424
|
* Defined in:
|
|
455
425
|
* {@link file://./../../../dxos/client/services.proto}
|
|
456
426
|
*/
|
|
457
|
-
export interface
|
|
427
|
+
export interface Contact {
|
|
428
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
458
429
|
/**
|
|
459
430
|
* Options:
|
|
460
431
|
* - proto3_optional = true
|
|
461
432
|
*/
|
|
462
|
-
|
|
433
|
+
profile?: dxos_halo_credentials.ProfileDocument;
|
|
434
|
+
commonSpaces?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
463
435
|
}
|
|
464
436
|
/**
|
|
465
437
|
* Defined in:
|
|
466
438
|
* {@link file://./../../../dxos/client/services.proto}
|
|
467
439
|
*/
|
|
468
|
-
export interface
|
|
469
|
-
|
|
440
|
+
export interface ContactBook {
|
|
441
|
+
contacts?: Contact[];
|
|
470
442
|
}
|
|
471
443
|
/**
|
|
472
444
|
* Defined in:
|
|
473
445
|
* {@link file://./../../../dxos/client/services.proto}
|
|
474
446
|
*/
|
|
475
|
-
export interface
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
* - proto3_optional = true
|
|
479
|
-
*/
|
|
480
|
-
keys?: GetDiagnosticsRequest.KEY_OPTION;
|
|
447
|
+
export interface ContactsService {
|
|
448
|
+
getContacts: (request: void, options?: RequestOptions) => Promise<ContactBook>;
|
|
449
|
+
queryContacts: (request: void, options?: RequestOptions) => Stream<ContactBook>;
|
|
481
450
|
}
|
|
482
|
-
|
|
451
|
+
/**
|
|
452
|
+
* Defined in:
|
|
453
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
454
|
+
*/
|
|
455
|
+
export interface SpaceMember {
|
|
456
|
+
identity: Identity;
|
|
457
|
+
presence: SpaceMember.PresenceState;
|
|
458
|
+
peerStates?: dxos_mesh_presence.PeerState[];
|
|
459
|
+
role: dxos_halo_credentials.SpaceMember.Role;
|
|
460
|
+
}
|
|
461
|
+
export namespace SpaceMember {
|
|
483
462
|
/**
|
|
484
463
|
* Defined in:
|
|
485
464
|
* {@link file://./../../../dxos/client/services.proto}
|
|
486
465
|
*/
|
|
487
|
-
export enum
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
HUMANIZE = 2
|
|
466
|
+
export enum PresenceState {
|
|
467
|
+
OFFLINE = 0,
|
|
468
|
+
ONLINE = 1
|
|
491
469
|
}
|
|
492
470
|
}
|
|
493
471
|
/**
|
|
494
472
|
* Defined in:
|
|
495
473
|
* {@link file://./../../../dxos/client/services.proto}
|
|
496
474
|
*/
|
|
497
|
-
export interface
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* Defined in:
|
|
503
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
504
|
-
*/
|
|
505
|
-
export interface Platform {
|
|
506
|
-
type: Platform.PLATFORM_TYPE;
|
|
475
|
+
export interface Space {
|
|
476
|
+
id: string;
|
|
477
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
478
|
+
state: SpaceState;
|
|
507
479
|
/**
|
|
508
|
-
* The User-Agent string from a browser
|
|
509
|
-
*
|
|
510
480
|
* Options:
|
|
511
481
|
* - proto3_optional = true
|
|
512
482
|
*/
|
|
513
|
-
|
|
483
|
+
pipeline?: Space.PipelineState;
|
|
514
484
|
/**
|
|
515
|
-
* e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
|
|
516
|
-
*
|
|
517
485
|
* Options:
|
|
518
486
|
* - proto3_optional = true
|
|
519
487
|
*/
|
|
520
|
-
|
|
488
|
+
error?: dxos_error.Error;
|
|
521
489
|
/**
|
|
522
|
-
* the Node.JS arch string, e.g. 'arm64', 'x64'
|
|
523
|
-
*
|
|
524
490
|
* Options:
|
|
525
491
|
* - proto3_optional = true
|
|
526
492
|
*/
|
|
527
|
-
|
|
493
|
+
edgeReplication?: dxos_echo_metadata.EdgeReplicationSetting;
|
|
494
|
+
members?: SpaceMember[];
|
|
528
495
|
/**
|
|
529
|
-
* the node.js version string
|
|
530
|
-
*
|
|
531
496
|
* Options:
|
|
532
497
|
* - proto3_optional = true
|
|
533
498
|
*/
|
|
534
|
-
|
|
499
|
+
creator?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
535
500
|
/**
|
|
536
|
-
* the number of seconds the client has been up
|
|
537
|
-
*
|
|
538
501
|
* Options:
|
|
539
502
|
* - proto3_optional = true
|
|
540
503
|
*/
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
* Options:
|
|
546
|
-
* - proto3_optional = true
|
|
547
|
-
*/
|
|
548
|
-
memory?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
549
|
-
}
|
|
550
|
-
export namespace Platform {
|
|
551
|
-
/**
|
|
552
|
-
* Defined in:
|
|
553
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
554
|
-
*/
|
|
555
|
-
export enum PLATFORM_TYPE {
|
|
556
|
-
BROWSER = 0,
|
|
557
|
-
SHARED_WORKER = 1,
|
|
558
|
-
NODE = 2
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
/**
|
|
562
|
-
* Defined in:
|
|
563
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
564
|
-
*/
|
|
565
|
-
export interface SystemService {
|
|
566
|
-
/**
|
|
567
|
-
* Get the static config of the client.
|
|
568
|
-
*/
|
|
569
|
-
getConfig: (request: void, options?: RequestOptions) => Promise<dxos_config.Config>;
|
|
570
|
-
/**
|
|
571
|
-
* Get the diagnostics snapshot.
|
|
572
|
-
*/
|
|
573
|
-
getDiagnostics: (request: GetDiagnosticsRequest, options?: RequestOptions) => Promise<GetDiagnosticsResponse>;
|
|
574
|
-
/**
|
|
575
|
-
* Update the status of the client. Used to re-activate an inactive client.
|
|
576
|
-
*/
|
|
577
|
-
updateStatus: (request: UpdateStatusRequest, options?: RequestOptions) => Promise<void>;
|
|
578
|
-
/**
|
|
579
|
-
* Stream the status of the client.
|
|
580
|
-
*/
|
|
581
|
-
queryStatus: (request: QueryStatusRequest, options?: RequestOptions) => Stream<QueryStatusResponse>;
|
|
582
|
-
/**
|
|
583
|
-
* Reset the client.
|
|
584
|
-
*/
|
|
585
|
-
reset: (request: void, options?: RequestOptions) => Promise<void>;
|
|
586
|
-
/**
|
|
587
|
-
* Get platform Information
|
|
588
|
-
*/
|
|
589
|
-
getPlatform: (request: void, options?: RequestOptions) => Promise<Platform>;
|
|
590
|
-
}
|
|
591
|
-
/**
|
|
592
|
-
* Defined in:
|
|
593
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
594
|
-
*/
|
|
595
|
-
export interface Identity {
|
|
596
|
-
did: string;
|
|
597
|
-
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
598
|
-
/**
|
|
599
|
-
* Options:
|
|
600
|
-
* - proto3_optional = true
|
|
601
|
-
*/
|
|
602
|
-
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
603
|
-
/**
|
|
604
|
-
* Options:
|
|
605
|
-
* - proto3_optional = true
|
|
606
|
-
*/
|
|
607
|
-
profile?: dxos_halo_credentials.ProfileDocument;
|
|
608
|
-
}
|
|
609
|
-
/**
|
|
610
|
-
* Defined in:
|
|
611
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
612
|
-
*/
|
|
613
|
-
export interface RequestRecoveryChallengeResponse {
|
|
614
|
-
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
615
|
-
controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
616
|
-
challenge: string;
|
|
617
|
-
}
|
|
618
|
-
/**
|
|
619
|
-
* Defined in:
|
|
620
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
621
|
-
*/
|
|
622
|
-
export interface RecoverIdentityRequest {
|
|
623
|
-
recoveryCode?: string;
|
|
624
|
-
external?: RecoverIdentityRequest.ExternalSignature;
|
|
625
|
-
token?: string;
|
|
626
|
-
}
|
|
627
|
-
export namespace RecoverIdentityRequest {
|
|
628
|
-
/**
|
|
629
|
-
* Defined in:
|
|
630
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
631
|
-
*/
|
|
632
|
-
export interface ExternalSignature {
|
|
633
|
-
lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
634
|
-
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
635
|
-
controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
636
|
-
signature: Uint8Array;
|
|
637
|
-
/**
|
|
638
|
-
* Options:
|
|
639
|
-
* - proto3_optional = true
|
|
640
|
-
*/
|
|
641
|
-
clientDataJson?: Uint8Array;
|
|
642
|
-
/**
|
|
643
|
-
* Options:
|
|
644
|
-
* - proto3_optional = true
|
|
645
|
-
*/
|
|
646
|
-
authenticatorData?: Uint8Array;
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
/**
|
|
650
|
-
* Defined in:
|
|
651
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
652
|
-
*/
|
|
653
|
-
export interface RecoveryCredentialData {
|
|
654
|
-
/**
|
|
655
|
-
* Recovery key used to validate recovery challenge signature.
|
|
656
|
-
*/
|
|
657
|
-
recoveryKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
658
|
-
/**
|
|
659
|
-
* Public key used to identify the recovery key.
|
|
660
|
-
*/
|
|
661
|
-
lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
662
|
-
/**
|
|
663
|
-
* Algorithm used to generate the recovery key.
|
|
664
|
-
*/
|
|
665
|
-
algorithm: string;
|
|
666
|
-
}
|
|
667
|
-
/**
|
|
668
|
-
* Defined in:
|
|
669
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
670
|
-
*/
|
|
671
|
-
export interface CreateRecoveryCredentialRequest {
|
|
672
|
-
/**
|
|
673
|
-
* If not provided, a new key will be generated.
|
|
674
|
-
*
|
|
675
|
-
* Options:
|
|
676
|
-
* - proto3_optional = true
|
|
677
|
-
*/
|
|
678
|
-
data?: RecoveryCredentialData;
|
|
679
|
-
}
|
|
680
|
-
/**
|
|
681
|
-
* Defined in:
|
|
682
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
683
|
-
*/
|
|
684
|
-
export interface CreateRecoveryCredentialResponse {
|
|
685
|
-
/**
|
|
686
|
-
* Options:
|
|
687
|
-
* - proto3_optional = true
|
|
688
|
-
*/
|
|
689
|
-
recoveryCode?: string;
|
|
690
|
-
}
|
|
691
|
-
/**
|
|
692
|
-
* Defined in:
|
|
693
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
694
|
-
*/
|
|
695
|
-
export interface QueryIdentityResponse {
|
|
696
|
-
/**
|
|
697
|
-
* Options:
|
|
698
|
-
* - proto3_optional = true
|
|
699
|
-
*/
|
|
700
|
-
identity?: Identity;
|
|
701
|
-
}
|
|
702
|
-
/**
|
|
703
|
-
* Defined in:
|
|
704
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
705
|
-
*/
|
|
706
|
-
export interface SignPresentationRequest {
|
|
707
|
-
presentation: dxos_halo_credentials.Presentation;
|
|
708
|
-
/**
|
|
709
|
-
* Options:
|
|
710
|
-
* - proto3_optional = true
|
|
711
|
-
*/
|
|
712
|
-
nonce?: Uint8Array;
|
|
713
|
-
}
|
|
714
|
-
/**
|
|
715
|
-
* Defined in:
|
|
716
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
717
|
-
*/
|
|
718
|
-
export interface CreateIdentityRequest {
|
|
719
|
-
/**
|
|
720
|
-
* Options:
|
|
721
|
-
* - proto3_optional = true
|
|
722
|
-
*/
|
|
723
|
-
profile?: dxos_halo_credentials.ProfileDocument;
|
|
724
|
-
/**
|
|
725
|
-
* Options:
|
|
726
|
-
* - proto3_optional = true
|
|
727
|
-
*/
|
|
728
|
-
deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
729
|
-
}
|
|
730
|
-
/**
|
|
731
|
-
* Defined in:
|
|
732
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
733
|
-
*/
|
|
734
|
-
export interface IdentityService {
|
|
735
|
-
createIdentity: (request: CreateIdentityRequest, options?: RequestOptions) => Promise<Identity>;
|
|
736
|
-
requestRecoveryChallenge: (request: void, options?: RequestOptions) => Promise<RequestRecoveryChallengeResponse>;
|
|
737
|
-
recoverIdentity: (request: RecoverIdentityRequest, options?: RequestOptions) => Promise<Identity>;
|
|
738
|
-
createRecoveryCredential: (request: CreateRecoveryCredentialRequest, options?: RequestOptions) => Promise<CreateRecoveryCredentialResponse>;
|
|
739
|
-
queryIdentity: (request: void, options?: RequestOptions) => Stream<QueryIdentityResponse>;
|
|
740
|
-
updateProfile: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
|
|
741
|
-
signPresentation: (request: SignPresentationRequest, options?: RequestOptions) => Promise<dxos_halo_credentials.Presentation>;
|
|
742
|
-
createAuthCredential: (request: void, options?: RequestOptions) => Promise<dxos_halo_credentials.Credential>;
|
|
743
|
-
}
|
|
744
|
-
/**
|
|
745
|
-
* Defined in:
|
|
746
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
747
|
-
*/
|
|
748
|
-
export enum DeviceKind {
|
|
749
|
-
CURRENT = 0,
|
|
750
|
-
TRUSTED = 1
|
|
751
|
-
}
|
|
752
|
-
/**
|
|
753
|
-
* Defined in:
|
|
754
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
755
|
-
*/
|
|
756
|
-
export interface Device {
|
|
757
|
-
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
758
|
-
kind: DeviceKind;
|
|
759
|
-
/**
|
|
760
|
-
* Options:
|
|
761
|
-
* - proto3_optional = true
|
|
762
|
-
*/
|
|
763
|
-
profile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
764
|
-
presence: Device.PresenceState;
|
|
765
|
-
}
|
|
766
|
-
export namespace Device {
|
|
767
|
-
/**
|
|
768
|
-
* Defined in:
|
|
769
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
770
|
-
*/
|
|
771
|
-
export enum PresenceState {
|
|
772
|
-
OFFLINE = 0,
|
|
773
|
-
ONLINE = 1,
|
|
774
|
-
REMOVED = 2
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
/**
|
|
778
|
-
* Defined in:
|
|
779
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
780
|
-
*/
|
|
781
|
-
export interface QueryDevicesResponse {
|
|
782
|
-
devices?: Device[];
|
|
783
|
-
}
|
|
784
|
-
/**
|
|
785
|
-
* Defined in:
|
|
786
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
787
|
-
*/
|
|
788
|
-
export interface DevicesService {
|
|
789
|
-
updateDevice: (request: dxos_halo_credentials.DeviceProfileDocument, options?: RequestOptions) => Promise<Device>;
|
|
790
|
-
queryDevices: (request: void, options?: RequestOptions) => Stream<QueryDevicesResponse>;
|
|
791
|
-
}
|
|
792
|
-
/**
|
|
793
|
-
* Defined in:
|
|
794
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
795
|
-
*/
|
|
796
|
-
export interface Contact {
|
|
797
|
-
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
798
|
-
/**
|
|
799
|
-
* Options:
|
|
800
|
-
* - proto3_optional = true
|
|
801
|
-
*/
|
|
802
|
-
profile?: dxos_halo_credentials.ProfileDocument;
|
|
803
|
-
commonSpaces?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
804
|
-
}
|
|
805
|
-
/**
|
|
806
|
-
* Defined in:
|
|
807
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
808
|
-
*/
|
|
809
|
-
export interface ContactBook {
|
|
810
|
-
contacts?: Contact[];
|
|
811
|
-
}
|
|
812
|
-
/**
|
|
813
|
-
* Defined in:
|
|
814
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
815
|
-
*/
|
|
816
|
-
export interface ContactsService {
|
|
817
|
-
getContacts: (request: void, options?: RequestOptions) => Promise<ContactBook>;
|
|
818
|
-
queryContacts: (request: void, options?: RequestOptions) => Stream<ContactBook>;
|
|
819
|
-
}
|
|
820
|
-
/**
|
|
821
|
-
* Defined in:
|
|
822
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
823
|
-
*/
|
|
824
|
-
export interface SpaceMember {
|
|
825
|
-
identity: Identity;
|
|
826
|
-
presence: SpaceMember.PresenceState;
|
|
827
|
-
peerStates?: dxos_mesh_presence.PeerState[];
|
|
828
|
-
role: dxos_halo_credentials.SpaceMember.Role;
|
|
829
|
-
}
|
|
830
|
-
export namespace SpaceMember {
|
|
831
|
-
/**
|
|
832
|
-
* Defined in:
|
|
833
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
834
|
-
*/
|
|
835
|
-
export enum PresenceState {
|
|
836
|
-
OFFLINE = 0,
|
|
837
|
-
ONLINE = 1
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
/**
|
|
841
|
-
* Defined in:
|
|
842
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
843
|
-
*/
|
|
844
|
-
export interface Space {
|
|
845
|
-
id: string;
|
|
846
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
847
|
-
state: SpaceState;
|
|
848
|
-
/**
|
|
849
|
-
* Options:
|
|
850
|
-
* - proto3_optional = true
|
|
851
|
-
*/
|
|
852
|
-
pipeline?: Space.PipelineState;
|
|
853
|
-
/**
|
|
854
|
-
* Options:
|
|
855
|
-
* - proto3_optional = true
|
|
856
|
-
*/
|
|
857
|
-
error?: dxos_error.Error;
|
|
858
|
-
/**
|
|
859
|
-
* Options:
|
|
860
|
-
* - proto3_optional = true
|
|
861
|
-
*/
|
|
862
|
-
edgeReplication?: dxos_echo_metadata.EdgeReplicationSetting;
|
|
863
|
-
members?: SpaceMember[];
|
|
864
|
-
/**
|
|
865
|
-
* Options:
|
|
866
|
-
* - proto3_optional = true
|
|
867
|
-
*/
|
|
868
|
-
creator?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
869
|
-
/**
|
|
870
|
-
* Options:
|
|
871
|
-
* - proto3_optional = true
|
|
872
|
-
*/
|
|
873
|
-
cache?: dxos_echo_metadata.SpaceCache;
|
|
874
|
-
metrics: Space.Metrics;
|
|
875
|
-
}
|
|
876
|
-
export namespace Space {
|
|
504
|
+
cache?: dxos_echo_metadata.SpaceCache;
|
|
505
|
+
metrics: Space.Metrics;
|
|
506
|
+
}
|
|
507
|
+
export namespace Space {
|
|
877
508
|
/**
|
|
878
509
|
* Defined in:
|
|
879
510
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -1020,439 +651,936 @@ export namespace Space {
|
|
|
1020
651
|
* Defined in:
|
|
1021
652
|
* {@link file://./../../../dxos/client/services.proto}
|
|
1022
653
|
*/
|
|
1023
|
-
export interface UpdateSpaceRequest {
|
|
1024
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
654
|
+
export interface UpdateSpaceRequest {
|
|
655
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
656
|
+
/**
|
|
657
|
+
* Allowed values: ACTIVE, INACTIVE.
|
|
658
|
+
*
|
|
659
|
+
* Options:
|
|
660
|
+
* - proto3_optional = true
|
|
661
|
+
*/
|
|
662
|
+
state?: SpaceState;
|
|
663
|
+
/**
|
|
664
|
+
* Options:
|
|
665
|
+
* - proto3_optional = true
|
|
666
|
+
*/
|
|
667
|
+
edgeReplication?: dxos_echo_metadata.EdgeReplicationSetting;
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* Defined in:
|
|
671
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
672
|
+
*/
|
|
673
|
+
export interface QuerySpacesResponse {
|
|
674
|
+
spaces?: Space[];
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* Defined in:
|
|
678
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
679
|
+
*/
|
|
680
|
+
export interface PostMessageRequest {
|
|
681
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
682
|
+
channel: string;
|
|
683
|
+
message: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Defined in:
|
|
687
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
688
|
+
*/
|
|
689
|
+
export interface SubscribeMessagesRequest {
|
|
690
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
691
|
+
channel: string;
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* Defined in:
|
|
695
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
696
|
+
*/
|
|
697
|
+
export interface WriteCredentialsRequest {
|
|
698
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
699
|
+
credentials?: dxos_halo_credentials.Credential[];
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* Defined in:
|
|
703
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
704
|
+
*/
|
|
705
|
+
export interface QueryCredentialsRequest {
|
|
706
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
707
|
+
/**
|
|
708
|
+
* Options:
|
|
709
|
+
* - proto3_optional = true
|
|
710
|
+
*/
|
|
711
|
+
noTail?: boolean;
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Defined in:
|
|
715
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
716
|
+
*/
|
|
717
|
+
export interface CreateEpochRequest {
|
|
718
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
719
|
+
/**
|
|
720
|
+
* Options:
|
|
721
|
+
* - proto3_optional = true
|
|
722
|
+
*/
|
|
723
|
+
migration?: CreateEpochRequest.Migration;
|
|
724
|
+
/**
|
|
725
|
+
* For REPLACE_AUTOMERGE_ROOT migration.
|
|
726
|
+
*
|
|
727
|
+
* Options:
|
|
728
|
+
* - proto3_optional = true
|
|
729
|
+
*/
|
|
730
|
+
automergeRootUrl?: string;
|
|
731
|
+
}
|
|
732
|
+
export namespace CreateEpochRequest {
|
|
733
|
+
/**
|
|
734
|
+
* Defined in:
|
|
735
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
736
|
+
*/
|
|
737
|
+
export enum Migration {
|
|
738
|
+
NONE = 0,
|
|
739
|
+
INIT_AUTOMERGE = 1,
|
|
740
|
+
PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
|
|
741
|
+
FRAGMENT_AUTOMERGE_ROOT = 3,
|
|
742
|
+
REPLACE_AUTOMERGE_ROOT = 4,
|
|
743
|
+
MIGRATE_REFERENCES_TO_DXN = 5
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* Defined in:
|
|
748
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
749
|
+
*/
|
|
750
|
+
export interface CreateEpochResponse {
|
|
751
|
+
/**
|
|
752
|
+
* Credential of the new epoch.
|
|
753
|
+
*
|
|
754
|
+
* Options:
|
|
755
|
+
* - proto3_optional = true
|
|
756
|
+
*/
|
|
757
|
+
epochCredential?: dxos_halo_credentials.Credential;
|
|
758
|
+
/**
|
|
759
|
+
* Control pipeline timeframe.
|
|
760
|
+
*
|
|
761
|
+
* Options:
|
|
762
|
+
* - proto3_optional = true
|
|
763
|
+
*/
|
|
764
|
+
controlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* Defined in:
|
|
768
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
769
|
+
*/
|
|
770
|
+
export interface UpdateMemberRoleRequest {
|
|
771
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
772
|
+
memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
773
|
+
newRole: dxos_halo_credentials.SpaceMember.Role;
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* Defined in:
|
|
777
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
778
|
+
*/
|
|
779
|
+
export interface AdmitContactRequest {
|
|
780
|
+
contact: Contact;
|
|
781
|
+
role: dxos_halo_credentials.SpaceMember.Role;
|
|
782
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* Defined in:
|
|
786
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
787
|
+
*/
|
|
788
|
+
export interface ContactAdmission {
|
|
789
|
+
credential: dxos_halo_credentials.Credential;
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* Defined in:
|
|
793
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
794
|
+
*/
|
|
795
|
+
export interface JoinSpaceResponse {
|
|
796
|
+
space: Space;
|
|
797
|
+
}
|
|
798
|
+
/**
|
|
799
|
+
* Defined in:
|
|
800
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
801
|
+
*/
|
|
802
|
+
export interface JoinBySpaceKeyRequest {
|
|
803
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* Defined in:
|
|
807
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
808
|
+
*/
|
|
809
|
+
export interface SpaceArchive {
|
|
810
|
+
filename: string;
|
|
811
|
+
contents: Uint8Array;
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Defined in:
|
|
815
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
816
|
+
*/
|
|
817
|
+
export interface ExportSpaceRequest {
|
|
818
|
+
spaceId: string;
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* Defined in:
|
|
822
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
823
|
+
*/
|
|
824
|
+
export interface ExportSpaceResponse {
|
|
825
|
+
archive: SpaceArchive;
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* Defined in:
|
|
829
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
830
|
+
*/
|
|
831
|
+
export interface ImportSpaceRequest {
|
|
832
|
+
archive: SpaceArchive;
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* Defined in:
|
|
836
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
837
|
+
*/
|
|
838
|
+
export interface ImportSpaceResponse {
|
|
839
|
+
/**
|
|
840
|
+
* the ID of the new space.
|
|
841
|
+
*/
|
|
842
|
+
newSpaceId: string;
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* Defined in:
|
|
846
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
847
|
+
*/
|
|
848
|
+
export interface SpacesService {
|
|
849
|
+
createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
|
|
850
|
+
updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
|
|
851
|
+
querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
|
|
852
|
+
updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
|
|
853
|
+
admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
|
|
854
|
+
joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
|
|
855
|
+
/**
|
|
856
|
+
* Broadcast an ephemeral message to the space swarm.
|
|
857
|
+
*/
|
|
858
|
+
postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
|
|
859
|
+
/**
|
|
860
|
+
* Subscribe to messages from the space swarm.
|
|
861
|
+
*/
|
|
862
|
+
subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
|
|
863
|
+
/**
|
|
864
|
+
* Write credentials to the space control feed.
|
|
865
|
+
*/
|
|
866
|
+
writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
|
|
867
|
+
/**
|
|
868
|
+
* Query credentials from the space control feed.
|
|
869
|
+
*/
|
|
870
|
+
queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
|
|
871
|
+
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
872
|
+
exportSpace: (request: ExportSpaceRequest, options?: RequestOptions) => Promise<ExportSpaceResponse>;
|
|
873
|
+
importSpace: (request: ImportSpaceRequest, options?: RequestOptions) => Promise<ImportSpaceResponse>;
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* Defined in:
|
|
877
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
878
|
+
*/
|
|
879
|
+
export interface AcceptInvitationRequest {
|
|
880
|
+
invitation: Invitation;
|
|
1025
881
|
/**
|
|
1026
|
-
* Allowed values: ACTIVE, INACTIVE.
|
|
1027
|
-
*
|
|
1028
882
|
* Options:
|
|
1029
883
|
* - proto3_optional = true
|
|
1030
884
|
*/
|
|
1031
|
-
|
|
885
|
+
deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Defined in:
|
|
889
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
890
|
+
*/
|
|
891
|
+
export interface AuthenticationRequest {
|
|
892
|
+
invitationId: string;
|
|
893
|
+
authCode: string;
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* Defined in:
|
|
897
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
898
|
+
*/
|
|
899
|
+
export interface CancelInvitationRequest {
|
|
900
|
+
invitationId: string;
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
* Defined in:
|
|
904
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
905
|
+
*/
|
|
906
|
+
export interface InvitationMethod {
|
|
907
|
+
created?: Invitation;
|
|
908
|
+
accepted?: Invitation;
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* Defined in:
|
|
912
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
913
|
+
*/
|
|
914
|
+
export interface QueryInvitationsResponse {
|
|
915
|
+
action: QueryInvitationsResponse.Action;
|
|
916
|
+
type: QueryInvitationsResponse.Type;
|
|
917
|
+
invitations?: Invitation[];
|
|
1032
918
|
/**
|
|
1033
919
|
* Options:
|
|
1034
920
|
* - proto3_optional = true
|
|
1035
921
|
*/
|
|
1036
|
-
|
|
922
|
+
existing?: boolean;
|
|
923
|
+
}
|
|
924
|
+
export namespace QueryInvitationsResponse {
|
|
925
|
+
/**
|
|
926
|
+
* Defined in:
|
|
927
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
928
|
+
*/
|
|
929
|
+
export enum Action {
|
|
930
|
+
ADDED = 0,
|
|
931
|
+
REMOVED = 1,
|
|
932
|
+
SAVED = 2,
|
|
933
|
+
LOAD_COMPLETE = 3
|
|
934
|
+
}
|
|
935
|
+
/**
|
|
936
|
+
* Defined in:
|
|
937
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
938
|
+
*/
|
|
939
|
+
export enum Type {
|
|
940
|
+
CREATED = 0,
|
|
941
|
+
ACCEPTED = 1
|
|
942
|
+
}
|
|
1037
943
|
}
|
|
1038
944
|
/**
|
|
1039
945
|
* Defined in:
|
|
1040
946
|
* {@link file://./../../../dxos/client/services.proto}
|
|
1041
947
|
*/
|
|
1042
|
-
export interface
|
|
1043
|
-
|
|
948
|
+
export interface LoadPersistentInvitationsResponse {
|
|
949
|
+
invitations?: Invitation[];
|
|
1044
950
|
}
|
|
1045
951
|
/**
|
|
1046
952
|
* Defined in:
|
|
1047
953
|
* {@link file://./../../../dxos/client/services.proto}
|
|
1048
954
|
*/
|
|
1049
|
-
export interface
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
955
|
+
export interface InvitationsService {
|
|
956
|
+
createInvitation: (request: Invitation, options?: RequestOptions) => Stream<Invitation>;
|
|
957
|
+
acceptInvitation: (request: AcceptInvitationRequest, options?: RequestOptions) => Stream<Invitation>;
|
|
958
|
+
authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
|
|
959
|
+
cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
|
|
960
|
+
queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
|
|
1053
961
|
}
|
|
1054
962
|
/**
|
|
1055
963
|
* Defined in:
|
|
1056
964
|
* {@link file://./../../../dxos/client/services.proto}
|
|
1057
965
|
*/
|
|
1058
|
-
export
|
|
1059
|
-
|
|
1060
|
-
|
|
966
|
+
export enum ConnectionState {
|
|
967
|
+
OFFLINE = 0,
|
|
968
|
+
ONLINE = 1
|
|
1061
969
|
}
|
|
1062
970
|
/**
|
|
1063
971
|
* Defined in:
|
|
1064
972
|
* {@link file://./../../../dxos/client/services.proto}
|
|
1065
973
|
*/
|
|
1066
|
-
export interface
|
|
1067
|
-
|
|
1068
|
-
|
|
974
|
+
export interface NetworkStatus {
|
|
975
|
+
swarm: ConnectionState;
|
|
976
|
+
signaling?: NetworkStatus.Signal[];
|
|
977
|
+
connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
|
|
978
|
+
}
|
|
979
|
+
export namespace NetworkStatus {
|
|
980
|
+
/**
|
|
981
|
+
* Defined in:
|
|
982
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
983
|
+
*/
|
|
984
|
+
export interface Signal {
|
|
985
|
+
server: string;
|
|
986
|
+
state: dxos_mesh_signal.SignalState;
|
|
987
|
+
}
|
|
1069
988
|
}
|
|
1070
989
|
/**
|
|
1071
990
|
* Defined in:
|
|
1072
991
|
* {@link file://./../../../dxos/client/services.proto}
|
|
1073
992
|
*/
|
|
1074
|
-
export interface
|
|
1075
|
-
|
|
993
|
+
export interface UpdateConfigRequest {
|
|
994
|
+
swarm: ConnectionState;
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* Defined in:
|
|
998
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
999
|
+
*/
|
|
1000
|
+
export interface SubscribeSwarmStateRequest {
|
|
1001
|
+
topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* Defined in:
|
|
1005
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1006
|
+
*/
|
|
1007
|
+
export interface NetworkService {
|
|
1008
|
+
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
1009
|
+
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1010
|
+
joinSwarm: (request: dxos_edge_signal.JoinRequest, options?: RequestOptions) => Promise<void>;
|
|
1011
|
+
leaveSwarm: (request: dxos_edge_signal.LeaveRequest, options?: RequestOptions) => Promise<void>;
|
|
1076
1012
|
/**
|
|
1077
|
-
*
|
|
1078
|
-
* - proto3_optional = true
|
|
1013
|
+
* Query the swarm state without joining it.
|
|
1079
1014
|
*/
|
|
1080
|
-
|
|
1015
|
+
querySwarm: (request: dxos_edge_signal.QueryRequest, options?: RequestOptions) => Promise<dxos_edge_messenger.SwarmResponse>;
|
|
1016
|
+
subscribeSwarmState: (request: SubscribeSwarmStateRequest, options?: RequestOptions) => Stream<dxos_edge_messenger.SwarmResponse>;
|
|
1017
|
+
sendMessage: (request: dxos_edge_signal.Message, options?: RequestOptions) => Promise<void>;
|
|
1018
|
+
subscribeMessages: (request: dxos_edge_messenger.Peer, options?: RequestOptions) => Stream<dxos_edge_signal.Message>;
|
|
1081
1019
|
}
|
|
1082
1020
|
/**
|
|
1083
1021
|
* Defined in:
|
|
1084
1022
|
* {@link file://./../../../dxos/client/services.proto}
|
|
1085
1023
|
*/
|
|
1086
|
-
export interface
|
|
1087
|
-
|
|
1024
|
+
export interface EdgeAgentService {
|
|
1025
|
+
queryEdgeStatus: (request: void, options?: RequestOptions) => Stream<QueryEdgeStatusResponse>;
|
|
1026
|
+
createAgent: (request: void, options?: RequestOptions) => Promise<void>;
|
|
1027
|
+
queryAgentStatus: (request: void, options?: RequestOptions) => Stream<QueryAgentStatusResponse>;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* Defined in:
|
|
1031
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1032
|
+
*/
|
|
1033
|
+
export interface EdgeStatus {
|
|
1034
|
+
state: EdgeStatus.ConnectionState;
|
|
1088
1035
|
/**
|
|
1089
|
-
*
|
|
1090
|
-
* - proto3_optional = true
|
|
1036
|
+
* Latency in ms
|
|
1091
1037
|
*/
|
|
1092
|
-
|
|
1038
|
+
rtt: number;
|
|
1093
1039
|
/**
|
|
1094
|
-
*
|
|
1095
|
-
*
|
|
1096
|
-
* Options:
|
|
1097
|
-
* - proto3_optional = true
|
|
1040
|
+
* How long the connection has been up
|
|
1098
1041
|
*/
|
|
1099
|
-
|
|
1042
|
+
uptime: number;
|
|
1043
|
+
/**
|
|
1044
|
+
* Upload rate in bytes per second
|
|
1045
|
+
*/
|
|
1046
|
+
rateBytesUp: number;
|
|
1047
|
+
/**
|
|
1048
|
+
* Download rate in bytes per second
|
|
1049
|
+
*/
|
|
1050
|
+
rateBytesDown: number;
|
|
1051
|
+
messagesSent: number;
|
|
1052
|
+
messagesReceived: number;
|
|
1100
1053
|
}
|
|
1101
|
-
export namespace
|
|
1054
|
+
export namespace EdgeStatus {
|
|
1102
1055
|
/**
|
|
1103
1056
|
* Defined in:
|
|
1104
1057
|
* {@link file://./../../../dxos/client/services.proto}
|
|
1105
1058
|
*/
|
|
1106
|
-
export enum
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
|
|
1110
|
-
FRAGMENT_AUTOMERGE_ROOT = 3,
|
|
1111
|
-
REPLACE_AUTOMERGE_ROOT = 4,
|
|
1112
|
-
MIGRATE_REFERENCES_TO_DXN = 5
|
|
1059
|
+
export enum ConnectionState {
|
|
1060
|
+
NOT_CONNECTED = 0,
|
|
1061
|
+
CONNECTED = 1
|
|
1113
1062
|
}
|
|
1114
1063
|
}
|
|
1115
1064
|
/**
|
|
1116
1065
|
* Defined in:
|
|
1117
1066
|
* {@link file://./../../../dxos/client/services.proto}
|
|
1118
1067
|
*/
|
|
1119
|
-
export interface
|
|
1068
|
+
export interface QueryEdgeStatusResponse {
|
|
1069
|
+
status: EdgeStatus;
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* Defined in:
|
|
1073
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1074
|
+
*/
|
|
1075
|
+
export interface QueryAgentStatusResponse {
|
|
1076
|
+
status: QueryAgentStatusResponse.AgentStatus;
|
|
1077
|
+
}
|
|
1078
|
+
export namespace QueryAgentStatusResponse {
|
|
1079
|
+
/**
|
|
1080
|
+
* Defined in:
|
|
1081
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1082
|
+
*/
|
|
1083
|
+
export enum AgentStatus {
|
|
1084
|
+
UNKNOWN = 0,
|
|
1085
|
+
ACTIVE = 1,
|
|
1086
|
+
INACTIVE = 2,
|
|
1087
|
+
NOT_FOUND = 3
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
/**
|
|
1091
|
+
* Defined in:
|
|
1092
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
1093
|
+
*/
|
|
1094
|
+
export interface QueueQuery {
|
|
1095
|
+
spaceId: string;
|
|
1096
|
+
/**
|
|
1097
|
+
* Options:
|
|
1098
|
+
* - proto3_optional = true
|
|
1099
|
+
*/
|
|
1100
|
+
queuesNamespace?: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* Queries the whole space if missing.
|
|
1103
|
+
*/
|
|
1104
|
+
queueIds?: string[];
|
|
1105
|
+
/**
|
|
1106
|
+
* Filter items after this cursor. Exclusive.
|
|
1107
|
+
*
|
|
1108
|
+
* Options:
|
|
1109
|
+
* - proto3_optional = true
|
|
1110
|
+
*/
|
|
1111
|
+
after?: string;
|
|
1112
|
+
/**
|
|
1113
|
+
* Filter items before this cursor. Exclusive.
|
|
1114
|
+
*
|
|
1115
|
+
* Options:
|
|
1116
|
+
* - proto3_optional = true
|
|
1117
|
+
*/
|
|
1118
|
+
before?: string;
|
|
1119
|
+
/**
|
|
1120
|
+
* Filter items after this position. Inclusive.
|
|
1121
|
+
*
|
|
1122
|
+
* Options:
|
|
1123
|
+
* - proto3_optional = true
|
|
1124
|
+
*/
|
|
1125
|
+
beginPosition?: string;
|
|
1126
|
+
/**
|
|
1127
|
+
* Filter items before this position. Exclusive.
|
|
1128
|
+
*
|
|
1129
|
+
* Options:
|
|
1130
|
+
* - proto3_optional = true
|
|
1131
|
+
*/
|
|
1132
|
+
endPosition?: string;
|
|
1120
1133
|
/**
|
|
1121
|
-
* Credential of the new epoch.
|
|
1122
|
-
*
|
|
1123
1134
|
* Options:
|
|
1124
1135
|
* - proto3_optional = true
|
|
1125
1136
|
*/
|
|
1126
|
-
|
|
1137
|
+
limit?: number;
|
|
1127
1138
|
/**
|
|
1128
|
-
* Control pipeline timeframe.
|
|
1129
|
-
*
|
|
1130
1139
|
* Options:
|
|
1131
1140
|
* - proto3_optional = true
|
|
1132
1141
|
*/
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
/**
|
|
1136
|
-
* Defined in:
|
|
1137
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1138
|
-
*/
|
|
1139
|
-
export interface UpdateMemberRoleRequest {
|
|
1140
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1141
|
-
memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1142
|
-
newRole: dxos_halo_credentials.SpaceMember.Role;
|
|
1142
|
+
reverse?: boolean;
|
|
1143
|
+
objectIds?: string[];
|
|
1143
1144
|
}
|
|
1144
1145
|
/**
|
|
1145
1146
|
* Defined in:
|
|
1146
|
-
* {@link file://./../../../dxos/client/
|
|
1147
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
1147
1148
|
*/
|
|
1148
|
-
export interface
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1149
|
+
export interface QueueQueryResult {
|
|
1150
|
+
objects?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>[];
|
|
1151
|
+
/**
|
|
1152
|
+
* Cursor to query the next items. Can be passed to `after` in query to keep querying.
|
|
1153
|
+
*/
|
|
1154
|
+
nextCursor: string;
|
|
1155
|
+
prevCursor: string;
|
|
1152
1156
|
}
|
|
1153
1157
|
/**
|
|
1154
1158
|
* Defined in:
|
|
1155
|
-
* {@link file://./../../../dxos/client/
|
|
1159
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
1156
1160
|
*/
|
|
1157
|
-
export interface
|
|
1158
|
-
|
|
1161
|
+
export interface QueryQueueRequest {
|
|
1162
|
+
query: QueueQuery;
|
|
1159
1163
|
}
|
|
1160
1164
|
/**
|
|
1161
1165
|
* Defined in:
|
|
1162
|
-
* {@link file://./../../../dxos/client/
|
|
1166
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
1163
1167
|
*/
|
|
1164
|
-
export interface
|
|
1165
|
-
|
|
1168
|
+
export interface InsertIntoQueueRequest {
|
|
1169
|
+
subspaceTag: string;
|
|
1170
|
+
spaceId: string;
|
|
1171
|
+
queueId: string;
|
|
1172
|
+
objects?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>[];
|
|
1166
1173
|
}
|
|
1167
1174
|
/**
|
|
1168
1175
|
* Defined in:
|
|
1169
|
-
* {@link file://./../../../dxos/client/
|
|
1176
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
1170
1177
|
*/
|
|
1171
|
-
export interface
|
|
1172
|
-
|
|
1178
|
+
export interface DeleteFromQueueRequest {
|
|
1179
|
+
subspaceTag: string;
|
|
1180
|
+
spaceId: string;
|
|
1181
|
+
queueId: string;
|
|
1182
|
+
objectIds?: string[];
|
|
1173
1183
|
}
|
|
1174
1184
|
/**
|
|
1175
1185
|
* Defined in:
|
|
1176
|
-
* {@link file://./../../../dxos/client/
|
|
1186
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
1177
1187
|
*/
|
|
1178
|
-
export interface
|
|
1179
|
-
|
|
1180
|
-
|
|
1188
|
+
export interface SyncQueueRequest {
|
|
1189
|
+
subspaceTag: string;
|
|
1190
|
+
spaceId: string;
|
|
1191
|
+
queueId: string;
|
|
1192
|
+
/**
|
|
1193
|
+
* Whether to push local changes to the server. Defaults to true.
|
|
1194
|
+
*
|
|
1195
|
+
* Options:
|
|
1196
|
+
* - proto3_optional = true
|
|
1197
|
+
*/
|
|
1198
|
+
shouldPush?: boolean;
|
|
1199
|
+
/**
|
|
1200
|
+
* Whether to pull remote changes from the server. Defaults to true.
|
|
1201
|
+
*
|
|
1202
|
+
* Options:
|
|
1203
|
+
* - proto3_optional = true
|
|
1204
|
+
*/
|
|
1205
|
+
shouldPull?: boolean;
|
|
1181
1206
|
}
|
|
1182
1207
|
/**
|
|
1183
1208
|
* Defined in:
|
|
1184
|
-
* {@link file://./../../../dxos/client/
|
|
1209
|
+
* {@link file://./../../../dxos/client/queue.proto}
|
|
1185
1210
|
*/
|
|
1186
|
-
export interface
|
|
1187
|
-
|
|
1211
|
+
export interface QueueService {
|
|
1212
|
+
queryQueue: (request: QueryQueueRequest, options?: RequestOptions) => Promise<QueueQueryResult>;
|
|
1213
|
+
insertIntoQueue: (request: InsertIntoQueueRequest, options?: RequestOptions) => Promise<void>;
|
|
1214
|
+
deleteFromQueue: (request: DeleteFromQueueRequest, options?: RequestOptions) => Promise<void>;
|
|
1215
|
+
syncQueue: (request: SyncQueueRequest, options?: RequestOptions) => Promise<void>;
|
|
1188
1216
|
}
|
|
1189
1217
|
/**
|
|
1190
1218
|
* Defined in:
|
|
1191
|
-
* {@link file://./../../../dxos/client/
|
|
1219
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1192
1220
|
*/
|
|
1193
|
-
export interface
|
|
1194
|
-
|
|
1221
|
+
export interface AdmissionKeypair {
|
|
1222
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1223
|
+
/**
|
|
1224
|
+
* Options:
|
|
1225
|
+
* - proto3_optional = true
|
|
1226
|
+
*/
|
|
1227
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
1195
1228
|
}
|
|
1196
1229
|
/**
|
|
1230
|
+
* Runtime state of the space object.
|
|
1231
|
+
*
|
|
1197
1232
|
* Defined in:
|
|
1198
|
-
* {@link file://./../../../dxos/client/
|
|
1233
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1199
1234
|
*/
|
|
1200
|
-
export
|
|
1201
|
-
|
|
1235
|
+
export enum SpaceState {
|
|
1236
|
+
INVALID = 0,
|
|
1237
|
+
SPACE_INACTIVE = 2,
|
|
1238
|
+
SPACE_ACTIVE = 6,
|
|
1239
|
+
SPACE_CLOSED = 1,
|
|
1240
|
+
SPACE_CONTROL_ONLY = 7,
|
|
1241
|
+
SPACE_INITIALIZING = 4,
|
|
1242
|
+
SPACE_READY = 3,
|
|
1243
|
+
SPACE_ERROR = 5,
|
|
1244
|
+
SPACE_REQUIRES_MIGRATION = 8
|
|
1202
1245
|
}
|
|
1203
1246
|
/**
|
|
1247
|
+
* Represents the invitation state passed between client and service.
|
|
1248
|
+
*
|
|
1204
1249
|
* Defined in:
|
|
1205
|
-
* {@link file://./../../../dxos/client/
|
|
1250
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1206
1251
|
*/
|
|
1207
|
-
export interface
|
|
1252
|
+
export interface Invitation {
|
|
1208
1253
|
/**
|
|
1209
|
-
*
|
|
1254
|
+
* Local identifier (random).
|
|
1210
1255
|
*/
|
|
1211
|
-
|
|
1212
|
-
}
|
|
1213
|
-
/**
|
|
1214
|
-
* Defined in:
|
|
1215
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1216
|
-
*/
|
|
1217
|
-
export interface SpacesService {
|
|
1218
|
-
createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
|
|
1219
|
-
updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
|
|
1220
|
-
querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
|
|
1221
|
-
updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
|
|
1222
|
-
admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
|
|
1223
|
-
joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
|
|
1256
|
+
invitationId: string;
|
|
1224
1257
|
/**
|
|
1225
|
-
*
|
|
1258
|
+
* Determines the behavior of the invitation.
|
|
1226
1259
|
*/
|
|
1227
|
-
|
|
1260
|
+
type: Invitation.Type;
|
|
1228
1261
|
/**
|
|
1229
|
-
*
|
|
1262
|
+
* Kind of access the invitation will grant.
|
|
1230
1263
|
*/
|
|
1231
|
-
|
|
1264
|
+
kind: Invitation.Kind;
|
|
1232
1265
|
/**
|
|
1233
|
-
*
|
|
1266
|
+
* How the invitation is authenticated.
|
|
1234
1267
|
*/
|
|
1235
|
-
|
|
1268
|
+
authMethod: Invitation.AuthMethod;
|
|
1236
1269
|
/**
|
|
1237
|
-
*
|
|
1270
|
+
* Swarm rendezvous (random).
|
|
1238
1271
|
*/
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
/**
|
|
1245
|
-
* Defined in:
|
|
1246
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1247
|
-
*/
|
|
1248
|
-
export interface AcceptInvitationRequest {
|
|
1249
|
-
invitation: Invitation;
|
|
1272
|
+
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1273
|
+
/**
|
|
1274
|
+
* Local state.
|
|
1275
|
+
*/
|
|
1276
|
+
state: Invitation.State;
|
|
1250
1277
|
/**
|
|
1278
|
+
* Timeout for guest to complete invitation once connected (ms).
|
|
1279
|
+
*
|
|
1251
1280
|
* Options:
|
|
1252
1281
|
* - proto3_optional = true
|
|
1253
1282
|
*/
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1283
|
+
timeout?: number;
|
|
1284
|
+
/**
|
|
1285
|
+
* Guest's identity.
|
|
1286
|
+
*
|
|
1287
|
+
* Options:
|
|
1288
|
+
* - proto3_optional = true
|
|
1289
|
+
*/
|
|
1290
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1291
|
+
/**
|
|
1292
|
+
* Space to join (only present if kind is SPACE).
|
|
1293
|
+
*
|
|
1294
|
+
* Options:
|
|
1295
|
+
* - proto3_optional = true
|
|
1296
|
+
*/
|
|
1297
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1298
|
+
/**
|
|
1299
|
+
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
1300
|
+
*
|
|
1301
|
+
* Options:
|
|
1302
|
+
* - proto3_optional = true
|
|
1303
|
+
*/
|
|
1304
|
+
authCode?: string;
|
|
1305
|
+
/**
|
|
1306
|
+
* Path or identifier to navigate to after successful authentication.
|
|
1307
|
+
*
|
|
1308
|
+
* Options:
|
|
1309
|
+
* - proto3_optional = true
|
|
1310
|
+
*/
|
|
1311
|
+
target?: string;
|
|
1312
|
+
/**
|
|
1313
|
+
* Host should resume invitation on startup until timeout.
|
|
1314
|
+
*
|
|
1315
|
+
* Options:
|
|
1316
|
+
* - proto3_optional = true
|
|
1317
|
+
*/
|
|
1318
|
+
persistent?: boolean;
|
|
1319
|
+
/**
|
|
1320
|
+
* Options:
|
|
1321
|
+
* - proto3_optional = true
|
|
1322
|
+
*/
|
|
1323
|
+
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1324
|
+
/**
|
|
1325
|
+
* Options:
|
|
1326
|
+
* - proto3_optional = true
|
|
1327
|
+
*/
|
|
1328
|
+
lifetime?: number;
|
|
1329
|
+
/**
|
|
1330
|
+
* Whether an invitation can be used multiple times.
|
|
1331
|
+
*
|
|
1332
|
+
* Options:
|
|
1333
|
+
* - proto3_optional = true
|
|
1334
|
+
*/
|
|
1335
|
+
multiUse?: boolean;
|
|
1336
|
+
/**
|
|
1337
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
1338
|
+
*
|
|
1339
|
+
* Options:
|
|
1340
|
+
* - proto3_optional = true
|
|
1341
|
+
*/
|
|
1342
|
+
guestKeypair?: AdmissionKeypair;
|
|
1343
|
+
/**
|
|
1344
|
+
* Present on Type.DELEGATED invitations.
|
|
1345
|
+
*
|
|
1346
|
+
* Options:
|
|
1347
|
+
* - proto3_optional = true
|
|
1348
|
+
*/
|
|
1349
|
+
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1350
|
+
/**
|
|
1351
|
+
* Role of the admitted member, defaults to ADMIN.
|
|
1352
|
+
*
|
|
1353
|
+
* Options:
|
|
1354
|
+
* - proto3_optional = true
|
|
1355
|
+
*/
|
|
1356
|
+
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
1287
1357
|
/**
|
|
1358
|
+
* Id of a the space to join (only present if kind is SPACE).
|
|
1359
|
+
*
|
|
1288
1360
|
* Options:
|
|
1289
1361
|
* - proto3_optional = true
|
|
1290
1362
|
*/
|
|
1291
|
-
|
|
1292
|
-
}
|
|
1293
|
-
export namespace
|
|
1363
|
+
spaceId?: string;
|
|
1364
|
+
}
|
|
1365
|
+
export namespace Invitation {
|
|
1366
|
+
/**
|
|
1367
|
+
* Defined in:
|
|
1368
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1369
|
+
*/
|
|
1370
|
+
export enum Type {
|
|
1371
|
+
INTERACTIVE = 0,
|
|
1372
|
+
DELEGATED = 1,
|
|
1373
|
+
MULTIUSE = 2
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* Defined in:
|
|
1377
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1378
|
+
*/
|
|
1379
|
+
export enum Kind {
|
|
1380
|
+
DEVICE = 0,
|
|
1381
|
+
SPACE = 1
|
|
1382
|
+
}
|
|
1294
1383
|
/**
|
|
1295
1384
|
* Defined in:
|
|
1296
|
-
* {@link file://./../../../dxos/client/
|
|
1385
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1297
1386
|
*/
|
|
1298
|
-
export enum
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
LOAD_COMPLETE = 3
|
|
1387
|
+
export enum AuthMethod {
|
|
1388
|
+
NONE = 0,
|
|
1389
|
+
SHARED_SECRET = 1,
|
|
1390
|
+
KNOWN_PUBLIC_KEY = 2
|
|
1303
1391
|
}
|
|
1304
1392
|
/**
|
|
1305
1393
|
* Defined in:
|
|
1306
|
-
* {@link file://./../../../dxos/client/
|
|
1394
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1307
1395
|
*/
|
|
1308
|
-
export enum
|
|
1309
|
-
|
|
1310
|
-
|
|
1396
|
+
export enum State {
|
|
1397
|
+
INIT = 0,
|
|
1398
|
+
CONNECTING = 1,
|
|
1399
|
+
CONNECTED = 2,
|
|
1400
|
+
READY_FOR_AUTHENTICATION = 3,
|
|
1401
|
+
AUTHENTICATING = 4,
|
|
1402
|
+
SUCCESS = 5,
|
|
1403
|
+
CANCELLED = 6,
|
|
1404
|
+
TIMEOUT = 7,
|
|
1405
|
+
ERROR = 8,
|
|
1406
|
+
EXPIRED = 9
|
|
1311
1407
|
}
|
|
1312
1408
|
}
|
|
1313
1409
|
/**
|
|
1314
1410
|
* Defined in:
|
|
1315
|
-
* {@link file://./../../../dxos/client/
|
|
1411
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1316
1412
|
*/
|
|
1317
|
-
export interface
|
|
1318
|
-
|
|
1413
|
+
export interface Metrics {
|
|
1414
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1415
|
+
values?: Metrics.KeyPair[];
|
|
1416
|
+
}
|
|
1417
|
+
export namespace Metrics {
|
|
1418
|
+
/**
|
|
1419
|
+
* Defined in:
|
|
1420
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1421
|
+
*/
|
|
1422
|
+
export interface KeyPair {
|
|
1423
|
+
/**
|
|
1424
|
+
* Options:
|
|
1425
|
+
* - proto3_optional = true
|
|
1426
|
+
*/
|
|
1427
|
+
key?: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* Options:
|
|
1430
|
+
* - proto3_optional = true
|
|
1431
|
+
*/
|
|
1432
|
+
value?: dxos_value.Value;
|
|
1433
|
+
/**
|
|
1434
|
+
* Options:
|
|
1435
|
+
* - proto3_optional = true
|
|
1436
|
+
*/
|
|
1437
|
+
stats?: dxos_value.Stats;
|
|
1438
|
+
}
|
|
1319
1439
|
}
|
|
1320
1440
|
/**
|
|
1321
1441
|
* Defined in:
|
|
1322
|
-
* {@link file://./../../../dxos/client/
|
|
1442
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1323
1443
|
*/
|
|
1324
|
-
export interface
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1444
|
+
export interface ControlMetricsRequest {
|
|
1445
|
+
/**
|
|
1446
|
+
* Options:
|
|
1447
|
+
* - proto3_optional = true
|
|
1448
|
+
*/
|
|
1449
|
+
reset?: boolean;
|
|
1450
|
+
/**
|
|
1451
|
+
* Options:
|
|
1452
|
+
* - proto3_optional = true
|
|
1453
|
+
*/
|
|
1454
|
+
record?: boolean;
|
|
1330
1455
|
}
|
|
1331
1456
|
/**
|
|
1332
1457
|
* Defined in:
|
|
1333
|
-
* {@link file://./../../../dxos/client/
|
|
1458
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1334
1459
|
*/
|
|
1335
|
-
export
|
|
1336
|
-
|
|
1337
|
-
|
|
1460
|
+
export interface ControlMetricsResponse {
|
|
1461
|
+
/**
|
|
1462
|
+
* Options:
|
|
1463
|
+
* - proto3_optional = true
|
|
1464
|
+
*/
|
|
1465
|
+
recording?: boolean;
|
|
1338
1466
|
}
|
|
1339
1467
|
/**
|
|
1340
1468
|
* Defined in:
|
|
1341
|
-
* {@link file://./../../../dxos/client/
|
|
1469
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1342
1470
|
*/
|
|
1343
|
-
export interface
|
|
1344
|
-
swarm: ConnectionState;
|
|
1345
|
-
signaling?: NetworkStatus.Signal[];
|
|
1346
|
-
connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
|
|
1347
|
-
}
|
|
1348
|
-
export namespace NetworkStatus {
|
|
1471
|
+
export interface QueryMetricsRequest {
|
|
1349
1472
|
/**
|
|
1350
|
-
*
|
|
1351
|
-
*
|
|
1473
|
+
* Options:
|
|
1474
|
+
* - proto3_optional = true
|
|
1352
1475
|
*/
|
|
1353
|
-
|
|
1354
|
-
server: string;
|
|
1355
|
-
state: dxos_mesh_signal.SignalState;
|
|
1356
|
-
}
|
|
1476
|
+
interval?: number;
|
|
1357
1477
|
}
|
|
1358
1478
|
/**
|
|
1359
1479
|
* Defined in:
|
|
1360
|
-
* {@link file://./../../../dxos/client/
|
|
1480
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1361
1481
|
*/
|
|
1362
|
-
export interface
|
|
1363
|
-
|
|
1482
|
+
export interface QueryMetricsResponse {
|
|
1483
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1484
|
+
metrics: Metrics;
|
|
1364
1485
|
}
|
|
1365
1486
|
/**
|
|
1366
1487
|
* Defined in:
|
|
1367
|
-
* {@link file://./../../../dxos/client/
|
|
1488
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1368
1489
|
*/
|
|
1369
|
-
export
|
|
1370
|
-
|
|
1490
|
+
export enum LogLevel {
|
|
1491
|
+
NONE = 0,
|
|
1492
|
+
TRACE = 5,
|
|
1493
|
+
DEBUG = 10,
|
|
1494
|
+
VERBOSE = 11,
|
|
1495
|
+
INFO = 12,
|
|
1496
|
+
WARN = 13,
|
|
1497
|
+
ERROR = 14
|
|
1371
1498
|
}
|
|
1372
1499
|
/**
|
|
1373
1500
|
* Defined in:
|
|
1374
|
-
* {@link file://./../../../dxos/client/
|
|
1501
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1375
1502
|
*/
|
|
1376
|
-
export interface
|
|
1377
|
-
|
|
1378
|
-
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1379
|
-
joinSwarm: (request: dxos_edge_signal.JoinRequest, options?: RequestOptions) => Promise<void>;
|
|
1380
|
-
leaveSwarm: (request: dxos_edge_signal.LeaveRequest, options?: RequestOptions) => Promise<void>;
|
|
1503
|
+
export interface QueryLogsRequest {
|
|
1504
|
+
filters?: QueryLogsRequest.Filter[];
|
|
1381
1505
|
/**
|
|
1382
|
-
*
|
|
1506
|
+
* Options:
|
|
1507
|
+
* - proto3_optional = true
|
|
1383
1508
|
*/
|
|
1384
|
-
|
|
1385
|
-
subscribeSwarmState: (request: SubscribeSwarmStateRequest, options?: RequestOptions) => Stream<dxos_edge_messenger.SwarmResponse>;
|
|
1386
|
-
sendMessage: (request: dxos_edge_signal.Message, options?: RequestOptions) => Promise<void>;
|
|
1387
|
-
subscribeMessages: (request: dxos_edge_messenger.Peer, options?: RequestOptions) => Stream<dxos_edge_signal.Message>;
|
|
1509
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
1388
1510
|
}
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1511
|
+
export namespace QueryLogsRequest {
|
|
1512
|
+
/**
|
|
1513
|
+
* Defined in:
|
|
1514
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1515
|
+
*/
|
|
1516
|
+
export enum MatchingOptions {
|
|
1517
|
+
NONE = 0,
|
|
1518
|
+
INCLUSIVE = 1,
|
|
1519
|
+
EXPLICIT = 2
|
|
1520
|
+
}
|
|
1521
|
+
/**
|
|
1522
|
+
* Defined in:
|
|
1523
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1524
|
+
*/
|
|
1525
|
+
export interface Filter {
|
|
1526
|
+
level: LogLevel;
|
|
1527
|
+
/**
|
|
1528
|
+
* Options:
|
|
1529
|
+
* - proto3_optional = true
|
|
1530
|
+
*/
|
|
1531
|
+
pattern?: string;
|
|
1532
|
+
}
|
|
1397
1533
|
}
|
|
1398
1534
|
/**
|
|
1399
1535
|
* Defined in:
|
|
1400
|
-
* {@link file://./../../../dxos/client/
|
|
1536
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1401
1537
|
*/
|
|
1402
|
-
export interface
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
* Latency in ms
|
|
1406
|
-
*/
|
|
1407
|
-
rtt: number;
|
|
1538
|
+
export interface LogEntry {
|
|
1539
|
+
level: LogLevel;
|
|
1540
|
+
message: string;
|
|
1408
1541
|
/**
|
|
1409
|
-
*
|
|
1542
|
+
* Options:
|
|
1543
|
+
* - proto3_optional = true
|
|
1410
1544
|
*/
|
|
1411
|
-
|
|
1545
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1412
1546
|
/**
|
|
1413
|
-
*
|
|
1547
|
+
* Options:
|
|
1548
|
+
* - proto3_optional = true
|
|
1414
1549
|
*/
|
|
1415
|
-
|
|
1550
|
+
meta?: LogEntry.Meta;
|
|
1416
1551
|
/**
|
|
1417
|
-
*
|
|
1552
|
+
* Options:
|
|
1553
|
+
* - proto3_optional = true
|
|
1418
1554
|
*/
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
messagesReceived: number;
|
|
1555
|
+
error?: dxos_error.Error;
|
|
1556
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1422
1557
|
}
|
|
1423
|
-
export namespace
|
|
1558
|
+
export namespace LogEntry {
|
|
1424
1559
|
/**
|
|
1425
1560
|
* Defined in:
|
|
1426
|
-
* {@link file://./../../../dxos/client/
|
|
1561
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1427
1562
|
*/
|
|
1428
|
-
export
|
|
1429
|
-
|
|
1430
|
-
|
|
1563
|
+
export interface Meta {
|
|
1564
|
+
file: string;
|
|
1565
|
+
line: number;
|
|
1566
|
+
/**
|
|
1567
|
+
* Options:
|
|
1568
|
+
* - proto3_optional = true
|
|
1569
|
+
*/
|
|
1570
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1571
|
+
/**
|
|
1572
|
+
* Options:
|
|
1573
|
+
* - proto3_optional = true
|
|
1574
|
+
*/
|
|
1575
|
+
resourceId?: number;
|
|
1431
1576
|
}
|
|
1432
1577
|
}
|
|
1433
1578
|
/**
|
|
1434
1579
|
* Defined in:
|
|
1435
|
-
* {@link file://./../../../dxos/client/
|
|
1436
|
-
*/
|
|
1437
|
-
export interface QueryEdgeStatusResponse {
|
|
1438
|
-
status: EdgeStatus;
|
|
1439
|
-
}
|
|
1440
|
-
/**
|
|
1441
|
-
* Defined in:
|
|
1442
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1580
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1443
1581
|
*/
|
|
1444
|
-
export interface
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
/**
|
|
1449
|
-
* Defined in:
|
|
1450
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1451
|
-
*/
|
|
1452
|
-
export enum AgentStatus {
|
|
1453
|
-
UNKNOWN = 0,
|
|
1454
|
-
ACTIVE = 1,
|
|
1455
|
-
INACTIVE = 2,
|
|
1456
|
-
NOT_FOUND = 3
|
|
1457
|
-
}
|
|
1582
|
+
export interface LoggingService {
|
|
1583
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1584
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1585
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1458
1586
|
}
|