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