@dxos/protocols 0.5.3-main.8ffbbae → 0.5.3-main.97757f4
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/encoding.js.map +1 -1
- package/dist/cjs/src/errors/helpers.d.ts +3 -1
- package/dist/cjs/src/errors/helpers.d.ts.map +1 -1
- package/dist/cjs/src/errors/helpers.js.map +1 -1
- package/dist/cjs/src/indexing.d.ts +19 -3
- package/dist/cjs/src/indexing.d.ts.map +1 -1
- package/dist/cjs/src/indexing.js +42 -5
- package/dist/cjs/src/indexing.js.map +1 -1
- package/dist/cjs/src/indexing.test.d.ts +2 -0
- package/dist/cjs/src/indexing.test.d.ts.map +1 -0
- package/dist/cjs/src/indexing.test.js +31 -0
- package/dist/cjs/src/indexing.test.js.map +1 -0
- package/dist/cjs/src/proto/gen/dxos/agent/functions.d.ts +10 -2
- package/dist/cjs/src/proto/gen/dxos/agent/functions.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +175 -175
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +25 -25
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts +4 -4
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +1 -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/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/errors/encoding.js.map +1 -1
- package/dist/esm/src/errors/helpers.d.ts +3 -1
- package/dist/esm/src/errors/helpers.d.ts.map +1 -1
- package/dist/esm/src/errors/helpers.js.map +1 -1
- package/dist/esm/src/indexing.d.ts +19 -3
- package/dist/esm/src/indexing.d.ts.map +1 -1
- package/dist/esm/src/indexing.js +41 -4
- package/dist/esm/src/indexing.js.map +1 -1
- package/dist/esm/src/indexing.test.d.ts +2 -0
- package/dist/esm/src/indexing.test.d.ts.map +1 -0
- package/dist/esm/src/indexing.test.js +29 -0
- package/dist/esm/src/indexing.test.js.map +1 -0
- package/dist/esm/src/proto/gen/dxos/agent/functions.d.ts +10 -2
- package/dist/esm/src/proto/gen/dxos/agent/functions.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +175 -175
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +24 -24
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.d.ts +4 -4
- package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +1 -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/package.json +5 -5
- package/src/indexing.test.ts +36 -0
- package/src/indexing.ts +44 -5
- package/src/proto/dxos/agent/functions.proto +7 -2
- package/src/proto/gen/dxos/agent/functions.ts +10 -2
- package/src/proto/gen/dxos/client/services.ts +175 -175
- package/src/proto/gen/google/protobuf.ts +4 -4
- package/src/proto/gen/index.ts +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encoding.js","sourceRoot":"","sources":["../../../../src/errors/encoding.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,uCAA6C;AAGtC,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAwB,EAAE;IAC5D,IAAI,OAAO,GAAG,KAAK,QAAQ,KAAI,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,CAAA,EAAE;
|
|
1
|
+
{"version":3,"file":"encoding.js","sourceRoot":"","sources":["../../../../src/errors/encoding.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,uCAA6C;AAGtC,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAwB,EAAE;IAC5D,IAAI,OAAO,GAAG,KAAK,QAAQ,KAAI,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,CAAA,EAAE,CAAC;QAC5C,OAAO;YACL,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,KAAK,EAAE,GAAG,CAAC,KAAK;SACjB,CAAC;IACJ,CAAC;SAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QACnC,OAAO;YACL,OAAO,EAAE,GAAG;SACb,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;SAC7B,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAjBW,QAAA,WAAW,eAiBtB;AAMK,MAAM,WAAW,GAAG,CAAC,GAAyB,EAAE,EAAE,WAAW,KAAoB,EAAE,EAAE,EAAE;;IAC5F,MAAM,KAAK,GAAG,IAAA,0BAAgB,EAAC,GAAG,CAAC,CAAC;IACpC,IAAI,WAAW,EAAE,CAAC;QAChB,KAAK,CAAC,KAAK,GAAG,CAAC,MAAA,GAAG,CAAC,KAAK,mCAAI,GAAG,KAAK,CAAC,OAAO,IAAI,CAAC,GAAG,WAAW,CAAC;IAClE,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;IAC1B,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AATW,QAAA,WAAW,eAStB"}
|
|
@@ -4,6 +4,8 @@ export declare const registerError: (code: string, make: (message?: string, cont
|
|
|
4
4
|
export declare const registerErrorNoArgs: (code: string, Constructor: {
|
|
5
5
|
new (): Error;
|
|
6
6
|
}) => void;
|
|
7
|
-
export declare const registerErrorMessageContext: (code: string, Constructor:
|
|
7
|
+
export declare const registerErrorMessageContext: (code: string, Constructor: {
|
|
8
|
+
new (message?: string, context?: any): Error;
|
|
9
|
+
}) => void;
|
|
8
10
|
export declare const errorFromCode: (code?: string, message?: string, context?: any) => Error;
|
|
9
11
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/errors/helpers.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,KAAK,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE7E,eAAO,MAAM,gBAAgB,UAAW,oBAAoB,UAG3D,CAAC;AAIF,eAAO,MAAM,aAAa,SAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/errors/helpers.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,KAAK,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE7E,eAAO,MAAM,gBAAgB,UAAW,oBAAoB,UAG3D,CAAC;AAIF,eAAO,MAAM,aAAa,SAAU,MAAM,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,KAAK,SAG3F,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,MAAM,eAAe;IAAE,QAAQ,KAAK,CAAA;CAAE,SAE/E,CAAC;AAEF,eAAO,MAAM,2BAA2B,SAChC,MAAM,eACC;IAAE,KAAK,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,KAAK,CAAA;CAAE,SAG9D,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,MAAM,YAAY,MAAM,YAAY,GAAG,UAM3E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/errors/helpers.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,+CAA4C;AAE5C,+CAA4C;AAGrC,MAAM,gBAAgB,GAAG,CAAC,KAA2B,EAAE,EAAE;IAC9D,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACzC,OAAO,IAAA,qBAAa,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC,CAAC;AAHW,QAAA,gBAAgB,oBAG3B;AAEF,MAAM,aAAa,GAAG,IAAI,GAAG,EAAsD,CAAC;AAE7E,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,IAAgD,EAAE,EAAE;IAC9F,IAAA,qBAAS,EAAC,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,kCAAkC,IAAI,EAAE,CAAC,CAAC;IAC9E,aAAa,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAChC,CAAC,CAAC;AAHW,QAAA,aAAa,iBAGxB;AAEK,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,WAA8B,EAAE,EAAE;IAClF,IAAA,qBAAa,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC;AAC/C,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAEK,MAAM,2BAA2B,GAAG,CACzC,IAAY,EACZ,WAA6D,EAC7D,EAAE;IACF,IAAA,qBAAa,EAAC,IAAI,EAAE,CAAC,OAAgB,EAAE,OAAgB,EAAE,EAAE,CAAC,IAAI,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AACjG,CAAC,CAAC;AALW,QAAA,2BAA2B,+BAKtC;AAEK,MAAM,aAAa,GAAG,CAAC,IAAa,EAAE,OAAgB,EAAE,OAAa,EAAE,EAAE;IAC9E,IAAI,IAAI,IAAI,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/errors/helpers.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,+CAA4C;AAE5C,+CAA4C;AAGrC,MAAM,gBAAgB,GAAG,CAAC,KAA2B,EAAE,EAAE;IAC9D,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACzC,OAAO,IAAA,qBAAa,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC,CAAC;AAHW,QAAA,gBAAgB,oBAG3B;AAEF,MAAM,aAAa,GAAG,IAAI,GAAG,EAAsD,CAAC;AAE7E,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,IAAgD,EAAE,EAAE;IAC9F,IAAA,qBAAS,EAAC,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,kCAAkC,IAAI,EAAE,CAAC,CAAC;IAC9E,aAAa,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAChC,CAAC,CAAC;AAHW,QAAA,aAAa,iBAGxB;AAEK,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,WAA8B,EAAE,EAAE;IAClF,IAAA,qBAAa,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC;AAC/C,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAEK,MAAM,2BAA2B,GAAG,CACzC,IAAY,EACZ,WAA6D,EAC7D,EAAE;IACF,IAAA,qBAAa,EAAC,IAAI,EAAE,CAAC,OAAgB,EAAE,OAAgB,EAAE,EAAE,CAAC,IAAI,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AACjG,CAAC,CAAC;AALW,QAAA,2BAA2B,+BAKtC;AAEK,MAAM,aAAa,GAAG,CAAC,IAAa,EAAE,OAAgB,EAAE,OAAa,EAAE,EAAE;IAC9E,IAAI,IAAI,IAAI,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QACpC,OAAO,aAAa,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;SAAM,CAAC;QACN,OAAO,IAAI,yBAAW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;AACH,CAAC,CAAC;AANW,QAAA,aAAa,iBAMxB"}
|
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
export type ObjectPointerDecoded = {
|
|
2
|
+
spaceKey: string | undefined;
|
|
2
3
|
documentId: string;
|
|
3
4
|
objectId: string;
|
|
4
5
|
};
|
|
5
6
|
/**
|
|
6
|
-
* Encoded object pointer:
|
|
7
|
+
* Encoded object pointer: `#01|${spaceKey}|${documentId}|${objectId}`.
|
|
8
|
+
* Old format without spaceKey: `${documentId}|${objectId}`.
|
|
9
|
+
* The spaceKey is optional and was added in the later version.
|
|
10
|
+
* Space key is encoded in the front to allow prefix iteration.
|
|
7
11
|
*/
|
|
8
12
|
export type ObjectPointerEncoded = string;
|
|
9
|
-
export declare
|
|
10
|
-
|
|
13
|
+
export declare enum ObjectPointerVersion {
|
|
14
|
+
/**
|
|
15
|
+
* `${documentId}|${objectId}`
|
|
16
|
+
*/
|
|
17
|
+
V0 = 0,
|
|
18
|
+
/**
|
|
19
|
+
* `#01|${spaceKey}|${documentId}|${objectId}`
|
|
20
|
+
*/
|
|
21
|
+
V1 = 1
|
|
22
|
+
}
|
|
23
|
+
export declare const objectPointerCodec: {
|
|
24
|
+
encode: ({ spaceKey, documentId, objectId }: ObjectPointerDecoded) => ObjectPointerEncoded;
|
|
11
25
|
decode: (id: ObjectPointerEncoded) => ObjectPointerDecoded;
|
|
26
|
+
getVersion: (id: ObjectPointerEncoded) => ObjectPointerVersion;
|
|
27
|
+
convertV1ToV0: (id: ObjectPointerEncoded) => ObjectPointerEncoded;
|
|
12
28
|
};
|
|
13
29
|
//# sourceMappingURL=indexing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexing.d.ts","sourceRoot":"","sources":["../../../src/indexing.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"indexing.d.ts","sourceRoot":"","sources":["../../../src/indexing.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAI1C,oBAAY,oBAAoB;IAC9B;;OAEG;IACH,EAAE,IAAI;IACN;;OAEG;IACH,EAAE,IAAI;CACP;AAED,eAAO,MAAM,kBAAkB;iDACgB,oBAAoB,KAAG,oBAAoB;iBAO3E,oBAAoB,KAAG,oBAAoB;qBASvC,oBAAoB,KAAG,oBAAoB;wBAOxC,oBAAoB,KAAG,oBAAoB;CAIhE,CAAC"}
|
package/dist/cjs/src/indexing.js
CHANGED
|
@@ -3,12 +3,49 @@
|
|
|
3
3
|
// Copyright 2024 DXOS.org
|
|
4
4
|
//
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
exports.objectPointerCodec = exports.ObjectPointerVersion = void 0;
|
|
7
|
+
const V1_PREFIX = '#01';
|
|
8
|
+
var ObjectPointerVersion;
|
|
9
|
+
(function (ObjectPointerVersion) {
|
|
10
|
+
/**
|
|
11
|
+
* `${documentId}|${objectId}`
|
|
12
|
+
*/
|
|
13
|
+
ObjectPointerVersion[ObjectPointerVersion["V0"] = 0] = "V0";
|
|
14
|
+
/**
|
|
15
|
+
* `#01|${spaceKey}|${documentId}|${objectId}`
|
|
16
|
+
*/
|
|
17
|
+
ObjectPointerVersion[ObjectPointerVersion["V1"] = 1] = "V1";
|
|
18
|
+
})(ObjectPointerVersion || (exports.ObjectPointerVersion = ObjectPointerVersion = {}));
|
|
19
|
+
exports.objectPointerCodec = {
|
|
20
|
+
encode: ({ spaceKey, documentId, objectId }) => {
|
|
21
|
+
if (spaceKey === undefined) {
|
|
22
|
+
return `${documentId}|${objectId}`;
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
return `${V1_PREFIX}|${spaceKey}|${documentId}|${objectId}`;
|
|
26
|
+
}
|
|
27
|
+
},
|
|
9
28
|
decode: (id) => {
|
|
10
|
-
|
|
11
|
-
|
|
29
|
+
if (id.startsWith(V1_PREFIX)) {
|
|
30
|
+
const [_, spaceKey, documentId, objectId] = id.split('|');
|
|
31
|
+
return { spaceKey, documentId, objectId };
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
const [documentId, objectId] = id.split('|');
|
|
35
|
+
return { spaceKey: undefined, documentId, objectId };
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
getVersion: (id) => {
|
|
39
|
+
if (id.startsWith(V1_PREFIX)) {
|
|
40
|
+
return ObjectPointerVersion.V1;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
return ObjectPointerVersion.V0;
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
convertV1ToV0: (id) => {
|
|
47
|
+
const { documentId, objectId } = exports.objectPointerCodec.decode(id);
|
|
48
|
+
return exports.objectPointerCodec.encode({ documentId, objectId, spaceKey: undefined });
|
|
12
49
|
},
|
|
13
50
|
};
|
|
14
51
|
//# sourceMappingURL=indexing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexing.js","sourceRoot":"","sources":["../../../src/indexing.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;
|
|
1
|
+
{"version":3,"file":"indexing.js","sourceRoot":"","sources":["../../../src/indexing.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAgBF,MAAM,SAAS,GAAG,KAAK,CAAC;AAExB,IAAY,oBASX;AATD,WAAY,oBAAoB;IAC9B;;OAEG;IACH,2DAAM,CAAA;IACN;;OAEG;IACH,2DAAM,CAAA;AACR,CAAC,EATW,oBAAoB,oCAApB,oBAAoB,QAS/B;AAEY,QAAA,kBAAkB,GAAG;IAChC,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAwB,EAAwB,EAAE;QACzF,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,OAAO,GAAG,UAAU,IAAI,QAAQ,EAAE,CAAC;QACrC,CAAC;aAAM,CAAC;YACN,OAAO,GAAG,SAAS,IAAI,QAAQ,IAAI,UAAU,IAAI,QAAQ,EAAE,CAAC;QAC9D,CAAC;IACH,CAAC;IACD,MAAM,EAAE,CAAC,EAAwB,EAAwB,EAAE;QACzD,IAAI,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YAC7B,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC1D,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;QAC5C,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC7C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;QACvD,CAAC;IACH,CAAC;IACD,UAAU,EAAE,CAAC,EAAwB,EAAwB,EAAE;QAC7D,IAAI,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YAC7B,OAAO,oBAAoB,CAAC,EAAE,CAAC;QACjC,CAAC;aAAM,CAAC;YACN,OAAO,oBAAoB,CAAC,EAAE,CAAC;QACjC,CAAC;IACH,CAAC;IACD,aAAa,EAAE,CAAC,EAAwB,EAAwB,EAAE;QAChE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,0BAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC/D,OAAO,0BAAkB,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;IAClF,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexing.test.d.ts","sourceRoot":"","sources":["../../../src/indexing.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const chai_1 = require("chai");
|
|
7
|
+
const test_1 = require("@dxos/test");
|
|
8
|
+
const indexing_1 = require("./indexing");
|
|
9
|
+
(0, test_1.describe)('Indexing object pointer codec', () => {
|
|
10
|
+
(0, test_1.test)('getVersion', async () => {
|
|
11
|
+
(0, chai_1.expect)(indexing_1.objectPointerCodec.getVersion('aaaa|bbbb')).to.eq(indexing_1.ObjectPointerVersion.V0);
|
|
12
|
+
(0, chai_1.expect)(indexing_1.objectPointerCodec.getVersion('#01|ssss|aaaa|bbbb')).to.eq(indexing_1.ObjectPointerVersion.V1);
|
|
13
|
+
});
|
|
14
|
+
(0, test_1.test)('v0', async () => {
|
|
15
|
+
(0, chai_1.expect)(indexing_1.objectPointerCodec.encode({ spaceKey: undefined, documentId: 'aaaa', objectId: 'bbbb' })).to.eq('aaaa|bbbb');
|
|
16
|
+
(0, chai_1.expect)(indexing_1.objectPointerCodec.decode('aaaa|bbbb')).to.eql({
|
|
17
|
+
spaceKey: undefined,
|
|
18
|
+
documentId: 'aaaa',
|
|
19
|
+
objectId: 'bbbb',
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
(0, test_1.test)('v1', async () => {
|
|
23
|
+
(0, chai_1.expect)(indexing_1.objectPointerCodec.encode({ spaceKey: 'ssss', documentId: 'aaaa', objectId: 'bbbb' })).to.eq('#01|ssss|aaaa|bbbb');
|
|
24
|
+
(0, chai_1.expect)(indexing_1.objectPointerCodec.decode('#01|ssss|aaaa|bbbb')).to.eql({
|
|
25
|
+
spaceKey: 'ssss',
|
|
26
|
+
documentId: 'aaaa',
|
|
27
|
+
objectId: 'bbbb',
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=indexing.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexing.test.js","sourceRoot":"","sources":["../../../src/indexing.test.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,+BAA8B;AAE9B,qCAA4C;AAE5C,yCAAsE;AAEtE,IAAA,eAAQ,EAAC,+BAA+B,EAAE,GAAG,EAAE;IAC7C,IAAA,WAAI,EAAC,YAAY,EAAE,KAAK,IAAI,EAAE;QAC5B,IAAA,aAAM,EAAC,6BAAkB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+BAAoB,CAAC,EAAE,CAAC,CAAC;QAClF,IAAA,aAAM,EAAC,6BAAkB,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+BAAoB,CAAC,EAAE,CAAC,CAAC;IAC7F,CAAC,CAAC,CAAC;IAEH,IAAA,WAAI,EAAC,IAAI,EAAE,KAAK,IAAI,EAAE;QACpB,IAAA,aAAM,EAAC,6BAAkB,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QACpH,IAAA,aAAM,EAAC,6BAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC;YACpD,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,MAAM;YAClB,QAAQ,EAAE,MAAM;SACjB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAA,WAAI,EAAC,IAAI,EAAE,KAAK,IAAI,EAAE;QACpB,IAAA,aAAM,EAAC,6BAAkB,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CACjG,oBAAoB,CACrB,CAAC;QACF,IAAA,aAAM,EAAC,6BAAkB,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC;YAC7D,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE,MAAM;YAClB,QAAQ,EAAE,MAAM;SACjB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -21,7 +21,7 @@ export interface FunctionsConfig {
|
|
|
21
21
|
*/
|
|
22
22
|
export interface Function {
|
|
23
23
|
id: string;
|
|
24
|
-
|
|
24
|
+
route: string;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Defined in:
|
|
@@ -29,7 +29,6 @@ export interface Function {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface RegisterRequest {
|
|
31
31
|
endpoint: string;
|
|
32
|
-
functions?: Function[];
|
|
33
32
|
}
|
|
34
33
|
/**
|
|
35
34
|
* Defined in:
|
|
@@ -39,6 +38,14 @@ export interface RegisterResponse {
|
|
|
39
38
|
registrationId: string;
|
|
40
39
|
endpoint: string;
|
|
41
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Defined in:
|
|
43
|
+
* {@link file://./../../../dxos/agent/functions.proto}
|
|
44
|
+
*/
|
|
45
|
+
export interface UpdateRegistrationRequest {
|
|
46
|
+
registrationId: string;
|
|
47
|
+
functions?: Function[];
|
|
48
|
+
}
|
|
42
49
|
/**
|
|
43
50
|
* Defined in:
|
|
44
51
|
* {@link file://./../../../dxos/agent/functions.proto}
|
|
@@ -52,6 +59,7 @@ export interface UnregisterRequest {
|
|
|
52
59
|
*/
|
|
53
60
|
export interface FunctionRegistryService {
|
|
54
61
|
register: (request: RegisterRequest, options?: RequestOptions) => Promise<RegisterResponse>;
|
|
62
|
+
updateRegistration: (request: UpdateRegistrationRequest, options?: RequestOptions) => Promise<void>;
|
|
55
63
|
unregister: (request: UnregisterRequest, options?: RequestOptions) => Promise<void>;
|
|
56
64
|
}
|
|
57
65
|
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../../../../src/proto/gen/dxos/agent/functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,cAAc,EAAE,MAAM,sBAAsB,CAAC;AA+DnE;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AACD;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../../../../src/proto/gen/dxos/agent/functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,cAAc,EAAE,MAAM,sBAAsB,CAAC;AA+DnE;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AACD;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACjB;AACD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,QAAQ,EAAE,MAAM,CAAC;CACpB;AACD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CACpB;AACD;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC1B;AACD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B,cAAc,EAAE,MAAM,CAAC;CAC1B;AACD;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,QAAQ,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC5F,kBAAkB,EAAE,CAAC,OAAO,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpG,UAAU,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACvF"}
|
|
@@ -9,6 +9,181 @@ import * as dxos_mesh_presence from "../mesh/presence";
|
|
|
9
9
|
import * as dxos_mesh_signal from "../mesh/signal";
|
|
10
10
|
import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
|
|
11
11
|
import * as dxos_value from "../value";
|
|
12
|
+
/**
|
|
13
|
+
* Defined in:
|
|
14
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
15
|
+
*/
|
|
16
|
+
export interface Metrics {
|
|
17
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
18
|
+
values?: Metrics.KeyPair[];
|
|
19
|
+
}
|
|
20
|
+
export declare namespace Metrics {
|
|
21
|
+
/**
|
|
22
|
+
* Defined in:
|
|
23
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
24
|
+
*/
|
|
25
|
+
interface KeyPair {
|
|
26
|
+
/**
|
|
27
|
+
* Options:
|
|
28
|
+
* - proto3_optional = true
|
|
29
|
+
*/
|
|
30
|
+
key?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Options:
|
|
33
|
+
* - proto3_optional = true
|
|
34
|
+
*/
|
|
35
|
+
value?: dxos_value.Value;
|
|
36
|
+
/**
|
|
37
|
+
* Options:
|
|
38
|
+
* - proto3_optional = true
|
|
39
|
+
*/
|
|
40
|
+
stats?: dxos_value.Stats;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Defined in:
|
|
45
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
46
|
+
*/
|
|
47
|
+
export interface ControlMetricsRequest {
|
|
48
|
+
/**
|
|
49
|
+
* Options:
|
|
50
|
+
* - proto3_optional = true
|
|
51
|
+
*/
|
|
52
|
+
reset?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Options:
|
|
55
|
+
* - proto3_optional = true
|
|
56
|
+
*/
|
|
57
|
+
record?: boolean;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Defined in:
|
|
61
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
62
|
+
*/
|
|
63
|
+
export interface ControlMetricsResponse {
|
|
64
|
+
/**
|
|
65
|
+
* Options:
|
|
66
|
+
* - proto3_optional = true
|
|
67
|
+
*/
|
|
68
|
+
recording?: boolean;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Defined in:
|
|
72
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
73
|
+
*/
|
|
74
|
+
export interface QueryMetricsRequest {
|
|
75
|
+
/**
|
|
76
|
+
* Options:
|
|
77
|
+
* - proto3_optional = true
|
|
78
|
+
*/
|
|
79
|
+
interval?: number;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Defined in:
|
|
83
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
84
|
+
*/
|
|
85
|
+
export interface QueryMetricsResponse {
|
|
86
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
87
|
+
metrics: Metrics;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Defined in:
|
|
91
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
92
|
+
*/
|
|
93
|
+
export declare enum LogLevel {
|
|
94
|
+
TRACE = 5,
|
|
95
|
+
DEBUG = 10,
|
|
96
|
+
INFO = 11,
|
|
97
|
+
WARN = 12,
|
|
98
|
+
ERROR = 13
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Defined in:
|
|
102
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
103
|
+
*/
|
|
104
|
+
export interface QueryLogsRequest {
|
|
105
|
+
filters?: QueryLogsRequest.Filter[];
|
|
106
|
+
/**
|
|
107
|
+
* Options:
|
|
108
|
+
* - proto3_optional = true
|
|
109
|
+
*/
|
|
110
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
111
|
+
}
|
|
112
|
+
export declare namespace QueryLogsRequest {
|
|
113
|
+
/**
|
|
114
|
+
* Defined in:
|
|
115
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
116
|
+
*/
|
|
117
|
+
enum MatchingOptions {
|
|
118
|
+
INCLUSIVE = 1,
|
|
119
|
+
EXPLICIT = 2
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Defined in:
|
|
123
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
124
|
+
*/
|
|
125
|
+
interface Filter {
|
|
126
|
+
level: LogLevel;
|
|
127
|
+
/**
|
|
128
|
+
* Options:
|
|
129
|
+
* - proto3_optional = true
|
|
130
|
+
*/
|
|
131
|
+
pattern?: string;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Defined in:
|
|
136
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
137
|
+
*/
|
|
138
|
+
export interface LogEntry {
|
|
139
|
+
level: LogLevel;
|
|
140
|
+
message: string;
|
|
141
|
+
/**
|
|
142
|
+
* Options:
|
|
143
|
+
* - proto3_optional = true
|
|
144
|
+
*/
|
|
145
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
146
|
+
/**
|
|
147
|
+
* Options:
|
|
148
|
+
* - proto3_optional = true
|
|
149
|
+
*/
|
|
150
|
+
meta?: LogEntry.Meta;
|
|
151
|
+
/**
|
|
152
|
+
* Options:
|
|
153
|
+
* - proto3_optional = true
|
|
154
|
+
*/
|
|
155
|
+
error?: dxos_error.Error;
|
|
156
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
157
|
+
}
|
|
158
|
+
export declare namespace LogEntry {
|
|
159
|
+
/**
|
|
160
|
+
* Defined in:
|
|
161
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
162
|
+
*/
|
|
163
|
+
interface Meta {
|
|
164
|
+
file: string;
|
|
165
|
+
line: number;
|
|
166
|
+
/**
|
|
167
|
+
* Options:
|
|
168
|
+
* - proto3_optional = true
|
|
169
|
+
*/
|
|
170
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
171
|
+
/**
|
|
172
|
+
* Options:
|
|
173
|
+
* - proto3_optional = true
|
|
174
|
+
*/
|
|
175
|
+
resourceId?: number;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Defined in:
|
|
180
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
181
|
+
*/
|
|
182
|
+
export interface LoggingService {
|
|
183
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
184
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
185
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
186
|
+
}
|
|
12
187
|
/**
|
|
13
188
|
* Defined in:
|
|
14
189
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -915,179 +1090,4 @@ export interface NetworkService {
|
|
|
915
1090
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
916
1091
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
917
1092
|
}
|
|
918
|
-
/**
|
|
919
|
-
* Defined in:
|
|
920
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
921
|
-
*/
|
|
922
|
-
export interface Metrics {
|
|
923
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
924
|
-
values?: Metrics.KeyPair[];
|
|
925
|
-
}
|
|
926
|
-
export declare namespace Metrics {
|
|
927
|
-
/**
|
|
928
|
-
* Defined in:
|
|
929
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
930
|
-
*/
|
|
931
|
-
interface KeyPair {
|
|
932
|
-
/**
|
|
933
|
-
* Options:
|
|
934
|
-
* - proto3_optional = true
|
|
935
|
-
*/
|
|
936
|
-
key?: string;
|
|
937
|
-
/**
|
|
938
|
-
* Options:
|
|
939
|
-
* - proto3_optional = true
|
|
940
|
-
*/
|
|
941
|
-
value?: dxos_value.Value;
|
|
942
|
-
/**
|
|
943
|
-
* Options:
|
|
944
|
-
* - proto3_optional = true
|
|
945
|
-
*/
|
|
946
|
-
stats?: dxos_value.Stats;
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
/**
|
|
950
|
-
* Defined in:
|
|
951
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
952
|
-
*/
|
|
953
|
-
export interface ControlMetricsRequest {
|
|
954
|
-
/**
|
|
955
|
-
* Options:
|
|
956
|
-
* - proto3_optional = true
|
|
957
|
-
*/
|
|
958
|
-
reset?: boolean;
|
|
959
|
-
/**
|
|
960
|
-
* Options:
|
|
961
|
-
* - proto3_optional = true
|
|
962
|
-
*/
|
|
963
|
-
record?: boolean;
|
|
964
|
-
}
|
|
965
|
-
/**
|
|
966
|
-
* Defined in:
|
|
967
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
968
|
-
*/
|
|
969
|
-
export interface ControlMetricsResponse {
|
|
970
|
-
/**
|
|
971
|
-
* Options:
|
|
972
|
-
* - proto3_optional = true
|
|
973
|
-
*/
|
|
974
|
-
recording?: boolean;
|
|
975
|
-
}
|
|
976
|
-
/**
|
|
977
|
-
* Defined in:
|
|
978
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
979
|
-
*/
|
|
980
|
-
export interface QueryMetricsRequest {
|
|
981
|
-
/**
|
|
982
|
-
* Options:
|
|
983
|
-
* - proto3_optional = true
|
|
984
|
-
*/
|
|
985
|
-
interval?: number;
|
|
986
|
-
}
|
|
987
|
-
/**
|
|
988
|
-
* Defined in:
|
|
989
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
990
|
-
*/
|
|
991
|
-
export interface QueryMetricsResponse {
|
|
992
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
993
|
-
metrics: Metrics;
|
|
994
|
-
}
|
|
995
|
-
/**
|
|
996
|
-
* Defined in:
|
|
997
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
998
|
-
*/
|
|
999
|
-
export declare enum LogLevel {
|
|
1000
|
-
TRACE = 5,
|
|
1001
|
-
DEBUG = 10,
|
|
1002
|
-
INFO = 11,
|
|
1003
|
-
WARN = 12,
|
|
1004
|
-
ERROR = 13
|
|
1005
|
-
}
|
|
1006
|
-
/**
|
|
1007
|
-
* Defined in:
|
|
1008
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1009
|
-
*/
|
|
1010
|
-
export interface QueryLogsRequest {
|
|
1011
|
-
filters?: QueryLogsRequest.Filter[];
|
|
1012
|
-
/**
|
|
1013
|
-
* Options:
|
|
1014
|
-
* - proto3_optional = true
|
|
1015
|
-
*/
|
|
1016
|
-
options?: QueryLogsRequest.MatchingOptions;
|
|
1017
|
-
}
|
|
1018
|
-
export declare namespace QueryLogsRequest {
|
|
1019
|
-
/**
|
|
1020
|
-
* Defined in:
|
|
1021
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1022
|
-
*/
|
|
1023
|
-
enum MatchingOptions {
|
|
1024
|
-
INCLUSIVE = 1,
|
|
1025
|
-
EXPLICIT = 2
|
|
1026
|
-
}
|
|
1027
|
-
/**
|
|
1028
|
-
* Defined in:
|
|
1029
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1030
|
-
*/
|
|
1031
|
-
interface Filter {
|
|
1032
|
-
level: LogLevel;
|
|
1033
|
-
/**
|
|
1034
|
-
* Options:
|
|
1035
|
-
* - proto3_optional = true
|
|
1036
|
-
*/
|
|
1037
|
-
pattern?: string;
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
/**
|
|
1041
|
-
* Defined in:
|
|
1042
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1043
|
-
*/
|
|
1044
|
-
export interface LogEntry {
|
|
1045
|
-
level: LogLevel;
|
|
1046
|
-
message: string;
|
|
1047
|
-
/**
|
|
1048
|
-
* Options:
|
|
1049
|
-
* - proto3_optional = true
|
|
1050
|
-
*/
|
|
1051
|
-
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1052
|
-
/**
|
|
1053
|
-
* Options:
|
|
1054
|
-
* - proto3_optional = true
|
|
1055
|
-
*/
|
|
1056
|
-
meta?: LogEntry.Meta;
|
|
1057
|
-
/**
|
|
1058
|
-
* Options:
|
|
1059
|
-
* - proto3_optional = true
|
|
1060
|
-
*/
|
|
1061
|
-
error?: dxos_error.Error;
|
|
1062
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1063
|
-
}
|
|
1064
|
-
export declare namespace LogEntry {
|
|
1065
|
-
/**
|
|
1066
|
-
* Defined in:
|
|
1067
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1068
|
-
*/
|
|
1069
|
-
interface Meta {
|
|
1070
|
-
file: string;
|
|
1071
|
-
line: number;
|
|
1072
|
-
/**
|
|
1073
|
-
* Options:
|
|
1074
|
-
* - proto3_optional = true
|
|
1075
|
-
*/
|
|
1076
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1077
|
-
/**
|
|
1078
|
-
* Options:
|
|
1079
|
-
* - proto3_optional = true
|
|
1080
|
-
*/
|
|
1081
|
-
resourceId?: number;
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
/**
|
|
1085
|
-
* Defined in:
|
|
1086
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1087
|
-
*/
|
|
1088
|
-
export interface LoggingService {
|
|
1089
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1090
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1091
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1092
|
-
}
|
|
1093
1093
|
//# sourceMappingURL=services.d.ts.map
|