@dxos/protocols 0.5.9-main.ea1d25b → 0.5.9-next.728078d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/errors/errors.d.ts +3 -3
- package/dist/cjs/src/errors/errors.d.ts.map +1 -1
- package/dist/cjs/src/errors/errors.js.map +1 -1
- package/dist/cjs/src/index.d.ts +1 -0
- package/dist/cjs/src/index.d.ts.map +1 -1
- package/dist/cjs/src/index.js +1 -0
- package/dist/cjs/src/index.js.map +1 -1
- package/dist/cjs/src/profile-archive.d.ts +19 -0
- package/dist/cjs/src/profile-archive.d.ts.map +1 -0
- package/dist/cjs/src/profile-archive.js +12 -0
- package/dist/cjs/src/profile-archive.js.map +1 -0
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +193 -178
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +27 -25
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/config.d.ts +7 -0
- package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts +31 -31
- package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/model/document.d.ts +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts +9 -0
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +2 -0
- package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.js +1 -1
- package/dist/cjs/src/proto/gen/index.js.map +1 -1
- package/dist/cjs/src/testing.d.ts +2 -2
- package/dist/cjs/src/testing.d.ts.map +1 -1
- package/dist/cjs/src/testing.js.map +1 -1
- package/dist/cjs/src/types.d.ts +2 -3
- package/dist/cjs/src/types.d.ts.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/errors/errors.d.ts +3 -3
- package/dist/esm/src/errors/errors.d.ts.map +1 -1
- package/dist/esm/src/errors/errors.js +1 -1
- package/dist/esm/src/errors/errors.js.map +1 -1
- package/dist/esm/src/index.d.ts +1 -0
- package/dist/esm/src/index.d.ts.map +1 -1
- package/dist/esm/src/index.js +1 -0
- package/dist/esm/src/index.js.map +1 -1
- package/dist/esm/src/profile-archive.d.ts +19 -0
- package/dist/esm/src/profile-archive.d.ts.map +1 -0
- package/dist/esm/src/profile-archive.js +9 -0
- package/dist/esm/src/profile-archive.js.map +1 -0
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +193 -178
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +26 -24
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/config.d.ts +7 -0
- package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts +31 -31
- package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/model/document.d.ts +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts +9 -0
- package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +2 -0
- package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.js +1 -1
- package/dist/esm/src/proto/gen/index.js.map +1 -1
- package/dist/esm/src/testing.d.ts +2 -2
- package/dist/esm/src/testing.d.ts.map +1 -1
- package/dist/esm/src/testing.js.map +1 -1
- package/dist/esm/src/types.d.ts +2 -3
- package/dist/esm/src/types.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/errors/errors.ts +3 -3
- package/src/index.ts +1 -0
- package/src/profile-archive.ts +24 -0
- package/src/proto/dxos/client/services.proto +12 -1
- package/src/proto/dxos/config.proto +2 -0
- package/src/proto/dxos/echo/model/document.proto +6 -7
- package/src/proto/dxos/halo/credentials.proto +5 -0
- package/src/proto/gen/dxos/client/services.ts +193 -178
- package/src/proto/gen/dxos/config.ts +7 -0
- package/src/proto/gen/dxos/devtools/host.ts +31 -31
- package/src/proto/gen/dxos/echo/model/document.ts +1 -1
- package/src/proto/gen/dxos/halo/credentials.ts +9 -0
- package/src/proto/gen/index.ts +3 -1
- package/src/testing.ts +2 -2
- package/src/types.ts +3 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA+DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA+DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA6iB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,g42GAAg42G,CAAC,CAAC,CAAC;AACz72G,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Timeframe } from '@dxos/timeframe';
|
|
2
2
|
import type { FeedMessage } from './proto/gen/dxos/echo/feed';
|
|
3
|
-
import { type
|
|
4
|
-
export declare const createTestItemMutation: (objectId:
|
|
3
|
+
import { type ObjectId } from './types';
|
|
4
|
+
export declare const createTestItemMutation: (objectId: ObjectId, key: string, value: string, timeframe?: Timeframe) => FeedMessage;
|
|
5
5
|
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../src/testing.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../src/testing.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAOxC,eAAO,MAAM,sBAAsB,aACvB,QAAQ,OACb,MAAM,SACJ,MAAM,4BAEZ,WAsBD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../src/testing.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAIjC,EAAE;AACF,WAAW;AACX,EAAE;AAEF,kEAAkE;AAClE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,
|
|
1
|
+
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../src/testing.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAIjC,EAAE;AACF,WAAW;AACX,EAAE;AAEF,kEAAkE;AAClE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,QAAkB,EAClB,GAAW,EACX,KAAa,EACb,SAAS,GAAG,IAAI,SAAS,EAAE,EACd,EAAE,CAAC,CAAC;IACjB,SAAS;IACT,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,OAAO,EAAE;oBACP;wBACE,QAAQ;wBACR,SAAS,EAAE;4BACT;gCACE,KAAK,EAAE;oCACL,OAAO,EAAE,qBAAqB;oCAC9B,OAAO,EAAE,MAAM;oCACf,KAAK,EAAE,MAAM,CAAC,eAAe,CAAC,uCAAuC,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;iCAC9F;6BACF;yBACF;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
|
package/dist/esm/src/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type TypedProtoMessage } from '@dxos/codec-protobuf';
|
|
|
2
2
|
import { type PublicKey } from '@dxos/keys';
|
|
3
3
|
import { type Timeframe } from '@dxos/timeframe';
|
|
4
4
|
import { type TYPES } from './proto';
|
|
5
|
-
import { type
|
|
5
|
+
import { type CredentialsMessage, type FeedMessage } from './proto/gen/dxos/echo/feed';
|
|
6
6
|
import { type EchoObjectBatch } from './proto/gen/dxos/echo/object';
|
|
7
7
|
export type TypedMessage = TypedProtoMessage<TYPES>;
|
|
8
8
|
export type FeedMeta = {
|
|
@@ -29,6 +29,5 @@ export interface IEchoStream {
|
|
|
29
29
|
meta: MutationMetaWithTimeframe;
|
|
30
30
|
batch: EchoObjectBatch;
|
|
31
31
|
}
|
|
32
|
-
export type
|
|
33
|
-
export type ItemType = string;
|
|
32
|
+
export type ObjectId = string;
|
|
34
33
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAGpE,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAGpD,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,SAAS,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IACzB,OAAO,EAAE,SAAS,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;AAEtD,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,SAAS,EAAE,SAAS,CAAC;CACtB;AAGD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAGD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,yBAAyB,CAAC;IAChC,KAAK,EAAE,eAAe,CAAC;CACxB;AAGD,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protocols",
|
|
3
|
-
"version": "0.5.9-
|
|
3
|
+
"version": "0.5.9-next.728078d",
|
|
4
4
|
"description": "Protobuf definitions for DXOS protocols.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"src"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@dxos/codec-protobuf": "0.5.9-
|
|
37
|
-
"@dxos/invariant": "0.5.9-
|
|
38
|
-
"@dxos/keys": "0.5.9-
|
|
39
|
-
"@dxos/timeframe": "0.5.9-
|
|
36
|
+
"@dxos/codec-protobuf": "0.5.9-next.728078d",
|
|
37
|
+
"@dxos/invariant": "0.5.9-next.728078d",
|
|
38
|
+
"@dxos/keys": "0.5.9-next.728078d",
|
|
39
|
+
"@dxos/timeframe": "0.5.9-next.728078d"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
package/src/errors/errors.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import { PublicKey } from '@dxos/keys';
|
|
6
6
|
|
|
7
|
-
import { ApiError, DatabaseError, SystemError
|
|
7
|
+
import { ApiError, BaseError, DatabaseError, SystemError } from './base-errors';
|
|
8
8
|
import { registerError, registerErrorMessageContext, registerErrorNoArgs } from './helpers';
|
|
9
|
-
import type {
|
|
9
|
+
import type { ObjectId } from '../types';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Thrown when request was terminated because the RPC endpoint has been closed.
|
|
@@ -180,7 +180,7 @@ registerError('SPACE_NOT_FOUND', (_, context) => {
|
|
|
180
180
|
});
|
|
181
181
|
|
|
182
182
|
export class EntityNotFoundError extends DatabaseError {
|
|
183
|
-
constructor(entityId:
|
|
183
|
+
constructor(entityId: ObjectId) {
|
|
184
184
|
super('ITEM_NOT_FOUND', 'Item not found.', { entityId });
|
|
185
185
|
}
|
|
186
186
|
}
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2024 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Saved in a CBOR encoded file, with `.dxprofile` extension.
|
|
7
|
+
*/
|
|
8
|
+
export type ProfileArchive = {
|
|
9
|
+
storage: ProfileArchiveEntry[];
|
|
10
|
+
meta: {
|
|
11
|
+
timestamp: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type ProfileArchiveEntry = {
|
|
16
|
+
type: ProfileArchiveEntryType;
|
|
17
|
+
key: string | Uint8Array;
|
|
18
|
+
value: string | Uint8Array;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export enum ProfileArchiveEntryType {
|
|
22
|
+
FILE = 1,
|
|
23
|
+
KEY_VALUE = 2,
|
|
24
|
+
}
|
|
@@ -241,6 +241,9 @@ enum SpaceState {
|
|
|
241
241
|
|
|
242
242
|
/// Space errored.
|
|
243
243
|
ERROR = 5;
|
|
244
|
+
|
|
245
|
+
/// Data migration is required.
|
|
246
|
+
REQUIRES_MIGRATION = 8;
|
|
244
247
|
}
|
|
245
248
|
|
|
246
249
|
// TODO(burdon): Rename SpaceInfo?
|
|
@@ -361,6 +364,9 @@ message CreateEpochRequest {
|
|
|
361
364
|
|
|
362
365
|
/// Replace the current automerge root with a new one specified by the user.
|
|
363
366
|
REPLACE_AUTOMERGE_ROOT = 4;
|
|
367
|
+
|
|
368
|
+
/// Upgrade references data strucutre
|
|
369
|
+
MIGRATE_REFERENCES_TO_DXN = 5;
|
|
364
370
|
}
|
|
365
371
|
|
|
366
372
|
dxos.keys.PublicKey space_key = 1;
|
|
@@ -371,6 +377,11 @@ message CreateEpochRequest {
|
|
|
371
377
|
optional string automerge_root_url = 3;
|
|
372
378
|
}
|
|
373
379
|
|
|
380
|
+
message CreateEpochResponse {
|
|
381
|
+
/// Credential of the new epoch.
|
|
382
|
+
optional dxos.halo.credentials.Credential epoch_credential = 1;
|
|
383
|
+
}
|
|
384
|
+
|
|
374
385
|
message UpdateMemberRoleRequest {
|
|
375
386
|
dxos.keys.PublicKey space_key = 1;
|
|
376
387
|
dxos.keys.PublicKey member_key = 2;
|
|
@@ -394,7 +405,7 @@ service SpacesService {
|
|
|
394
405
|
/// Query credentials from the space control feed.
|
|
395
406
|
rpc QueryCredentials(QueryCredentialsRequest) returns (stream dxos.halo.credentials.Credential);
|
|
396
407
|
|
|
397
|
-
rpc CreateEpoch(CreateEpochRequest) returns (
|
|
408
|
+
rpc CreateEpoch(CreateEpochRequest) returns (CreateEpochResponse);
|
|
398
409
|
}
|
|
399
410
|
|
|
400
411
|
//
|
|
@@ -138,6 +138,8 @@ message Runtime {
|
|
|
138
138
|
/// Connect to and serve client services to a remote proxy.
|
|
139
139
|
optional string devtools_proxy = 7;
|
|
140
140
|
|
|
141
|
+
/// Spaces will stay in SpaceState.CLOSED until explicitly opened. Speeds up client-services initialization.
|
|
142
|
+
optional bool lazy_space_open = 9;
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
message App {
|
|
@@ -61,8 +61,7 @@ message KeyValueObject {
|
|
|
61
61
|
* Reference to an Item.
|
|
62
62
|
*/
|
|
63
63
|
message Reference {
|
|
64
|
-
|
|
65
|
-
string itemId = 1;
|
|
64
|
+
string object_id = 1;
|
|
66
65
|
|
|
67
66
|
/// "space", or "protobuf"
|
|
68
67
|
optional string protocol = 2;
|
|
@@ -111,10 +110,10 @@ message Query {
|
|
|
111
110
|
*/
|
|
112
111
|
message ObjectSnapshot {
|
|
113
112
|
optional string type = 1;
|
|
114
|
-
optional Reference type_ref
|
|
113
|
+
optional Reference type_ref = 4;
|
|
115
114
|
|
|
116
115
|
Value root = 2;
|
|
117
|
-
optional Value meta
|
|
116
|
+
optional Value meta = 3;
|
|
118
117
|
}
|
|
119
118
|
|
|
120
119
|
/**
|
|
@@ -146,12 +145,12 @@ message YJS {
|
|
|
146
145
|
* Set of mutations.
|
|
147
146
|
*/
|
|
148
147
|
message ObjectMutationSet {
|
|
149
|
-
//
|
|
148
|
+
// deprecated
|
|
150
149
|
optional string type = 1;
|
|
151
150
|
optional Reference type_ref = 4;
|
|
152
151
|
|
|
153
|
-
repeated ObjectMutation mutations
|
|
152
|
+
repeated ObjectMutation mutations = 2;
|
|
154
153
|
|
|
155
154
|
// Mutations for the `meta` keyspace.
|
|
156
|
-
repeated ObjectMutation meta_mutations
|
|
155
|
+
repeated ObjectMutation meta_mutations = 3;
|
|
157
156
|
}
|
|
@@ -181,6 +181,11 @@ message DeviceProfile {
|
|
|
181
181
|
DeviceProfileDocument profile = 1;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
+
/// [ASSERTION]: Sets default space for identity.
|
|
185
|
+
message DefaultSpace {
|
|
186
|
+
string space_id = 1;
|
|
187
|
+
}
|
|
188
|
+
|
|
184
189
|
// [ASSERTION]: Identity is authorized to access a KUBE.
|
|
185
190
|
message KubeAccess {
|
|
186
191
|
dxos.keys.PublicKey kube_key = 1;
|
|
@@ -61,6 +61,181 @@ import * as dxos_value from "../value";
|
|
|
61
61
|
import * as example_testing_data from "../../example/testing/data";
|
|
62
62
|
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
63
63
|
import * as google_protobuf from "../../google/protobuf";
|
|
64
|
+
/**
|
|
65
|
+
* Defined in:
|
|
66
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
67
|
+
*/
|
|
68
|
+
export interface Metrics {
|
|
69
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
70
|
+
values?: Metrics.KeyPair[];
|
|
71
|
+
}
|
|
72
|
+
export namespace Metrics {
|
|
73
|
+
/**
|
|
74
|
+
* Defined in:
|
|
75
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
76
|
+
*/
|
|
77
|
+
export interface KeyPair {
|
|
78
|
+
/**
|
|
79
|
+
* Options:
|
|
80
|
+
* - proto3_optional = true
|
|
81
|
+
*/
|
|
82
|
+
key?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Options:
|
|
85
|
+
* - proto3_optional = true
|
|
86
|
+
*/
|
|
87
|
+
value?: dxos_value.Value;
|
|
88
|
+
/**
|
|
89
|
+
* Options:
|
|
90
|
+
* - proto3_optional = true
|
|
91
|
+
*/
|
|
92
|
+
stats?: dxos_value.Stats;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Defined in:
|
|
97
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
98
|
+
*/
|
|
99
|
+
export interface ControlMetricsRequest {
|
|
100
|
+
/**
|
|
101
|
+
* Options:
|
|
102
|
+
* - proto3_optional = true
|
|
103
|
+
*/
|
|
104
|
+
reset?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Options:
|
|
107
|
+
* - proto3_optional = true
|
|
108
|
+
*/
|
|
109
|
+
record?: boolean;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Defined in:
|
|
113
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
114
|
+
*/
|
|
115
|
+
export interface ControlMetricsResponse {
|
|
116
|
+
/**
|
|
117
|
+
* Options:
|
|
118
|
+
* - proto3_optional = true
|
|
119
|
+
*/
|
|
120
|
+
recording?: boolean;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Defined in:
|
|
124
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
125
|
+
*/
|
|
126
|
+
export interface QueryMetricsRequest {
|
|
127
|
+
/**
|
|
128
|
+
* Options:
|
|
129
|
+
* - proto3_optional = true
|
|
130
|
+
*/
|
|
131
|
+
interval?: number;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Defined in:
|
|
135
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
136
|
+
*/
|
|
137
|
+
export interface QueryMetricsResponse {
|
|
138
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
139
|
+
metrics: Metrics;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Defined in:
|
|
143
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
144
|
+
*/
|
|
145
|
+
export enum LogLevel {
|
|
146
|
+
TRACE = 5,
|
|
147
|
+
DEBUG = 10,
|
|
148
|
+
INFO = 11,
|
|
149
|
+
WARN = 12,
|
|
150
|
+
ERROR = 13
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Defined in:
|
|
154
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
155
|
+
*/
|
|
156
|
+
export interface QueryLogsRequest {
|
|
157
|
+
filters?: QueryLogsRequest.Filter[];
|
|
158
|
+
/**
|
|
159
|
+
* Options:
|
|
160
|
+
* - proto3_optional = true
|
|
161
|
+
*/
|
|
162
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
163
|
+
}
|
|
164
|
+
export namespace QueryLogsRequest {
|
|
165
|
+
/**
|
|
166
|
+
* Defined in:
|
|
167
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
168
|
+
*/
|
|
169
|
+
export enum MatchingOptions {
|
|
170
|
+
INCLUSIVE = 1,
|
|
171
|
+
EXPLICIT = 2
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Defined in:
|
|
175
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
176
|
+
*/
|
|
177
|
+
export interface Filter {
|
|
178
|
+
level: LogLevel;
|
|
179
|
+
/**
|
|
180
|
+
* Options:
|
|
181
|
+
* - proto3_optional = true
|
|
182
|
+
*/
|
|
183
|
+
pattern?: string;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Defined in:
|
|
188
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
189
|
+
*/
|
|
190
|
+
export interface LogEntry {
|
|
191
|
+
level: LogLevel;
|
|
192
|
+
message: string;
|
|
193
|
+
/**
|
|
194
|
+
* Options:
|
|
195
|
+
* - proto3_optional = true
|
|
196
|
+
*/
|
|
197
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
198
|
+
/**
|
|
199
|
+
* Options:
|
|
200
|
+
* - proto3_optional = true
|
|
201
|
+
*/
|
|
202
|
+
meta?: LogEntry.Meta;
|
|
203
|
+
/**
|
|
204
|
+
* Options:
|
|
205
|
+
* - proto3_optional = true
|
|
206
|
+
*/
|
|
207
|
+
error?: dxos_error.Error;
|
|
208
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
209
|
+
}
|
|
210
|
+
export namespace LogEntry {
|
|
211
|
+
/**
|
|
212
|
+
* Defined in:
|
|
213
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
214
|
+
*/
|
|
215
|
+
export interface Meta {
|
|
216
|
+
file: string;
|
|
217
|
+
line: number;
|
|
218
|
+
/**
|
|
219
|
+
* Options:
|
|
220
|
+
* - proto3_optional = true
|
|
221
|
+
*/
|
|
222
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
223
|
+
/**
|
|
224
|
+
* Options:
|
|
225
|
+
* - proto3_optional = true
|
|
226
|
+
*/
|
|
227
|
+
resourceId?: number;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Defined in:
|
|
232
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
233
|
+
*/
|
|
234
|
+
export interface LoggingService {
|
|
235
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
236
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
237
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
238
|
+
}
|
|
64
239
|
/**
|
|
65
240
|
* Defined in:
|
|
66
241
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -384,7 +559,8 @@ export enum SpaceState {
|
|
|
384
559
|
CONTROL_ONLY = 7,
|
|
385
560
|
INITIALIZING = 4,
|
|
386
561
|
READY = 3,
|
|
387
|
-
ERROR = 5
|
|
562
|
+
ERROR = 5,
|
|
563
|
+
REQUIRES_MIGRATION = 8
|
|
388
564
|
}
|
|
389
565
|
/**
|
|
390
566
|
* Defined in:
|
|
@@ -640,9 +816,23 @@ export namespace CreateEpochRequest {
|
|
|
640
816
|
INIT_AUTOMERGE = 1,
|
|
641
817
|
PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
|
|
642
818
|
FRAGMENT_AUTOMERGE_ROOT = 3,
|
|
643
|
-
REPLACE_AUTOMERGE_ROOT = 4
|
|
819
|
+
REPLACE_AUTOMERGE_ROOT = 4,
|
|
820
|
+
MIGRATE_REFERENCES_TO_DXN = 5
|
|
644
821
|
}
|
|
645
822
|
}
|
|
823
|
+
/**
|
|
824
|
+
* Defined in:
|
|
825
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
826
|
+
*/
|
|
827
|
+
export interface CreateEpochResponse {
|
|
828
|
+
/**
|
|
829
|
+
* Credential of the new epoch.
|
|
830
|
+
*
|
|
831
|
+
* Options:
|
|
832
|
+
* - proto3_optional = true
|
|
833
|
+
*/
|
|
834
|
+
epochCredential?: dxos_halo_credentials.Credential;
|
|
835
|
+
}
|
|
646
836
|
/**
|
|
647
837
|
* Defined in:
|
|
648
838
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -677,7 +867,7 @@ export interface SpacesService {
|
|
|
677
867
|
* Query credentials from the space control feed.
|
|
678
868
|
*/
|
|
679
869
|
queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
|
|
680
|
-
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<
|
|
870
|
+
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
681
871
|
}
|
|
682
872
|
/**
|
|
683
873
|
* Represents the invitation state passed between client and service.
|
|
@@ -976,178 +1166,3 @@ export interface NetworkService {
|
|
|
976
1166
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
977
1167
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
978
1168
|
}
|
|
979
|
-
/**
|
|
980
|
-
* Defined in:
|
|
981
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
982
|
-
*/
|
|
983
|
-
export interface Metrics {
|
|
984
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
985
|
-
values?: Metrics.KeyPair[];
|
|
986
|
-
}
|
|
987
|
-
export namespace Metrics {
|
|
988
|
-
/**
|
|
989
|
-
* Defined in:
|
|
990
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
991
|
-
*/
|
|
992
|
-
export interface KeyPair {
|
|
993
|
-
/**
|
|
994
|
-
* Options:
|
|
995
|
-
* - proto3_optional = true
|
|
996
|
-
*/
|
|
997
|
-
key?: string;
|
|
998
|
-
/**
|
|
999
|
-
* Options:
|
|
1000
|
-
* - proto3_optional = true
|
|
1001
|
-
*/
|
|
1002
|
-
value?: dxos_value.Value;
|
|
1003
|
-
/**
|
|
1004
|
-
* Options:
|
|
1005
|
-
* - proto3_optional = true
|
|
1006
|
-
*/
|
|
1007
|
-
stats?: dxos_value.Stats;
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
/**
|
|
1011
|
-
* Defined in:
|
|
1012
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1013
|
-
*/
|
|
1014
|
-
export interface ControlMetricsRequest {
|
|
1015
|
-
/**
|
|
1016
|
-
* Options:
|
|
1017
|
-
* - proto3_optional = true
|
|
1018
|
-
*/
|
|
1019
|
-
reset?: boolean;
|
|
1020
|
-
/**
|
|
1021
|
-
* Options:
|
|
1022
|
-
* - proto3_optional = true
|
|
1023
|
-
*/
|
|
1024
|
-
record?: boolean;
|
|
1025
|
-
}
|
|
1026
|
-
/**
|
|
1027
|
-
* Defined in:
|
|
1028
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1029
|
-
*/
|
|
1030
|
-
export interface ControlMetricsResponse {
|
|
1031
|
-
/**
|
|
1032
|
-
* Options:
|
|
1033
|
-
* - proto3_optional = true
|
|
1034
|
-
*/
|
|
1035
|
-
recording?: boolean;
|
|
1036
|
-
}
|
|
1037
|
-
/**
|
|
1038
|
-
* Defined in:
|
|
1039
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1040
|
-
*/
|
|
1041
|
-
export interface QueryMetricsRequest {
|
|
1042
|
-
/**
|
|
1043
|
-
* Options:
|
|
1044
|
-
* - proto3_optional = true
|
|
1045
|
-
*/
|
|
1046
|
-
interval?: number;
|
|
1047
|
-
}
|
|
1048
|
-
/**
|
|
1049
|
-
* Defined in:
|
|
1050
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1051
|
-
*/
|
|
1052
|
-
export interface QueryMetricsResponse {
|
|
1053
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1054
|
-
metrics: Metrics;
|
|
1055
|
-
}
|
|
1056
|
-
/**
|
|
1057
|
-
* Defined in:
|
|
1058
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1059
|
-
*/
|
|
1060
|
-
export enum LogLevel {
|
|
1061
|
-
TRACE = 5,
|
|
1062
|
-
DEBUG = 10,
|
|
1063
|
-
INFO = 11,
|
|
1064
|
-
WARN = 12,
|
|
1065
|
-
ERROR = 13
|
|
1066
|
-
}
|
|
1067
|
-
/**
|
|
1068
|
-
* Defined in:
|
|
1069
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1070
|
-
*/
|
|
1071
|
-
export interface QueryLogsRequest {
|
|
1072
|
-
filters?: QueryLogsRequest.Filter[];
|
|
1073
|
-
/**
|
|
1074
|
-
* Options:
|
|
1075
|
-
* - proto3_optional = true
|
|
1076
|
-
*/
|
|
1077
|
-
options?: QueryLogsRequest.MatchingOptions;
|
|
1078
|
-
}
|
|
1079
|
-
export namespace QueryLogsRequest {
|
|
1080
|
-
/**
|
|
1081
|
-
* Defined in:
|
|
1082
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1083
|
-
*/
|
|
1084
|
-
export enum MatchingOptions {
|
|
1085
|
-
INCLUSIVE = 1,
|
|
1086
|
-
EXPLICIT = 2
|
|
1087
|
-
}
|
|
1088
|
-
/**
|
|
1089
|
-
* Defined in:
|
|
1090
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1091
|
-
*/
|
|
1092
|
-
export interface Filter {
|
|
1093
|
-
level: LogLevel;
|
|
1094
|
-
/**
|
|
1095
|
-
* Options:
|
|
1096
|
-
* - proto3_optional = true
|
|
1097
|
-
*/
|
|
1098
|
-
pattern?: string;
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
/**
|
|
1102
|
-
* Defined in:
|
|
1103
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1104
|
-
*/
|
|
1105
|
-
export interface LogEntry {
|
|
1106
|
-
level: LogLevel;
|
|
1107
|
-
message: string;
|
|
1108
|
-
/**
|
|
1109
|
-
* Options:
|
|
1110
|
-
* - proto3_optional = true
|
|
1111
|
-
*/
|
|
1112
|
-
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1113
|
-
/**
|
|
1114
|
-
* Options:
|
|
1115
|
-
* - proto3_optional = true
|
|
1116
|
-
*/
|
|
1117
|
-
meta?: LogEntry.Meta;
|
|
1118
|
-
/**
|
|
1119
|
-
* Options:
|
|
1120
|
-
* - proto3_optional = true
|
|
1121
|
-
*/
|
|
1122
|
-
error?: dxos_error.Error;
|
|
1123
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1124
|
-
}
|
|
1125
|
-
export namespace LogEntry {
|
|
1126
|
-
/**
|
|
1127
|
-
* Defined in:
|
|
1128
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1129
|
-
*/
|
|
1130
|
-
export interface Meta {
|
|
1131
|
-
file: string;
|
|
1132
|
-
line: number;
|
|
1133
|
-
/**
|
|
1134
|
-
* Options:
|
|
1135
|
-
* - proto3_optional = true
|
|
1136
|
-
*/
|
|
1137
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1138
|
-
/**
|
|
1139
|
-
* Options:
|
|
1140
|
-
* - proto3_optional = true
|
|
1141
|
-
*/
|
|
1142
|
-
resourceId?: number;
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
/**
|
|
1146
|
-
* Defined in:
|
|
1147
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1148
|
-
*/
|
|
1149
|
-
export interface LoggingService {
|
|
1150
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1151
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1152
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1153
|
-
}
|
|
@@ -304,6 +304,13 @@ export namespace Runtime {
|
|
|
304
304
|
* - proto3_optional = true
|
|
305
305
|
*/
|
|
306
306
|
devtoolsProxy?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Spaces will stay in SpaceState.CLOSED until explicitly opened. Speeds up client-services initialization.
|
|
309
|
+
*
|
|
310
|
+
* Options:
|
|
311
|
+
* - proto3_optional = true
|
|
312
|
+
*/
|
|
313
|
+
lazySpaceOpen?: boolean;
|
|
307
314
|
}
|
|
308
315
|
export namespace Client {
|
|
309
316
|
/**
|