@stryke/capnp 0.9.0 → 0.9.2
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/bin/capnpc.cjs +7 -7
- package/bin/capnpc.js +7 -7
- package/dist/{chunk-XQV7WBWM.cjs → chunk-D6FULEGG.cjs} +6 -6
- package/dist/{chunk-SYR4C2FT.js → chunk-ZNJBAJ7V.js} +6 -6
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/rpc.cjs +2 -2
- package/dist/rpc.js +1 -1
- package/dts/index.d.cts +4307 -0
- package/dts/index.d.ts +1 -87
- package/package.json +7 -7
- package/schemas/{chunk-BQI46ZE5.js → chunk-HYTZMYFO.js} +5 -5
- package/schemas/{chunk-GX6VRR3G.cjs → chunk-IAY5S3C6.cjs} +5 -5
- package/schemas/persistent.cjs +20 -20
- package/schemas/persistent.js +1 -1
- package/schemas/rpc-twoparty.cjs +32 -32
- package/schemas/rpc-twoparty.js +1 -1
- package/schemas/rpc.cjs +495 -495
- package/schemas/rpc.js +1 -1
- package/schemas/schema.cjs +675 -675
- package/schemas/schema.js +1 -1
package/dts/index.d.ts
CHANGED
|
@@ -2857,94 +2857,8 @@ declare class PointerAllocationResult {
|
|
|
2857
2857
|
readonly offsetWords: number;
|
|
2858
2858
|
constructor(pointer: Pointer, offsetWords: number);
|
|
2859
2859
|
}
|
|
2860
|
-
export type utils_PointerAllocationResult = PointerAllocationResult;
|
|
2861
|
-
declare const utils_PointerAllocationResult: typeof PointerAllocationResult;
|
|
2862
|
-
declare const utils_add: typeof add;
|
|
2863
|
-
declare const utils_adopt: typeof adopt;
|
|
2864
|
-
declare const utils_checkDataBounds: typeof checkDataBounds;
|
|
2865
|
-
declare const utils_checkPointerBounds: typeof checkPointerBounds;
|
|
2866
|
-
declare const utils_copyFrom: typeof copyFrom;
|
|
2867
|
-
declare const utils_copyFromInterface: typeof copyFromInterface;
|
|
2868
|
-
declare const utils_copyFromList: typeof copyFromList;
|
|
2869
|
-
declare const utils_copyFromStruct: typeof copyFromStruct;
|
|
2870
|
-
declare const utils_disown: typeof disown;
|
|
2871
|
-
declare const utils_dump: typeof dump$1;
|
|
2872
|
-
declare const utils_erase: typeof erase;
|
|
2873
|
-
declare const utils_erasePointer: typeof erasePointer;
|
|
2874
|
-
declare const utils_followFar: typeof followFar;
|
|
2875
|
-
declare const utils_followFars: typeof followFars;
|
|
2876
|
-
declare const utils_getAs: typeof getAs;
|
|
2877
|
-
declare const utils_getBit: typeof getBit;
|
|
2878
|
-
declare const utils_getCapabilityId: typeof getCapabilityId;
|
|
2879
|
-
declare const utils_getContent: typeof getContent;
|
|
2880
|
-
declare const utils_getData: typeof getData;
|
|
2881
|
-
declare const utils_getDataSection: typeof getDataSection;
|
|
2882
|
-
declare const utils_getFarSegmentId: typeof getFarSegmentId;
|
|
2883
|
-
declare const utils_getFloat32: typeof getFloat32;
|
|
2884
|
-
declare const utils_getFloat64: typeof getFloat64;
|
|
2885
|
-
declare const utils_getInt16: typeof getInt16;
|
|
2886
|
-
declare const utils_getInt32: typeof getInt32;
|
|
2887
|
-
declare const utils_getInt64: typeof getInt64;
|
|
2888
|
-
declare const utils_getInt8: typeof getInt8;
|
|
2889
|
-
declare const utils_getInterfaceClientOrNull: typeof getInterfaceClientOrNull;
|
|
2890
|
-
declare const utils_getInterfaceClientOrNullAt: typeof getInterfaceClientOrNullAt;
|
|
2891
|
-
declare const utils_getInterfacePointer: typeof getInterfacePointer;
|
|
2892
|
-
declare const utils_getList: typeof getList;
|
|
2893
|
-
declare const utils_getListByteLength: typeof getListByteLength;
|
|
2894
|
-
declare const utils_getListElementByteLength: typeof getListElementByteLength;
|
|
2895
|
-
declare const utils_getListElementSize: typeof getListElementSize;
|
|
2896
|
-
declare const utils_getListLength: typeof getListLength;
|
|
2897
|
-
declare const utils_getOffsetWords: typeof getOffsetWords;
|
|
2898
|
-
declare const utils_getPointer: typeof getPointer;
|
|
2899
|
-
declare const utils_getPointerAs: typeof getPointerAs;
|
|
2900
|
-
declare const utils_getPointerSection: typeof getPointerSection;
|
|
2901
|
-
declare const utils_getPointerType: typeof getPointerType;
|
|
2902
|
-
declare const utils_getSize: typeof getSize;
|
|
2903
|
-
declare const utils_getStruct: typeof getStruct;
|
|
2904
|
-
declare const utils_getStructDataWords: typeof getStructDataWords;
|
|
2905
|
-
declare const utils_getStructPointerLength: typeof getStructPointerLength;
|
|
2906
|
-
declare const utils_getStructSize: typeof getStructSize;
|
|
2907
|
-
declare const utils_getTargetCompositeListSize: typeof getTargetCompositeListSize;
|
|
2908
|
-
declare const utils_getTargetCompositeListTag: typeof getTargetCompositeListTag;
|
|
2909
|
-
declare const utils_getTargetListElementSize: typeof getTargetListElementSize;
|
|
2910
|
-
declare const utils_getTargetListLength: typeof getTargetListLength;
|
|
2911
|
-
declare const utils_getTargetPointerType: typeof getTargetPointerType;
|
|
2912
|
-
declare const utils_getTargetStructSize: typeof getTargetStructSize;
|
|
2913
|
-
declare const utils_getText: typeof getText;
|
|
2914
|
-
declare const utils_getUint16: typeof getUint16;
|
|
2915
|
-
declare const utils_getUint32: typeof getUint32;
|
|
2916
|
-
declare const utils_getUint64: typeof getUint64;
|
|
2917
|
-
declare const utils_getUint8: typeof getUint8;
|
|
2918
|
-
declare const utils_initData: typeof initData;
|
|
2919
|
-
declare const utils_initList: typeof initList;
|
|
2920
|
-
declare const utils_initPointer: typeof initPointer;
|
|
2921
|
-
declare const utils_initStruct: typeof initStruct;
|
|
2922
|
-
declare const utils_initStructAt: typeof initStructAt;
|
|
2923
|
-
declare const utils_isDoubleFar: typeof isDoubleFar;
|
|
2924
|
-
declare const utils_isNull: typeof isNull;
|
|
2925
|
-
declare const utils_relocateTo: typeof relocateTo;
|
|
2926
|
-
declare const utils_resize: typeof resize;
|
|
2927
|
-
declare const utils_setBit: typeof setBit;
|
|
2928
|
-
declare const utils_setFarPointer: typeof setFarPointer;
|
|
2929
|
-
declare const utils_setFloat32: typeof setFloat32;
|
|
2930
|
-
declare const utils_setFloat64: typeof setFloat64;
|
|
2931
|
-
declare const utils_setInt16: typeof setInt16;
|
|
2932
|
-
declare const utils_setInt32: typeof setInt32;
|
|
2933
|
-
declare const utils_setInt64: typeof setInt64;
|
|
2934
|
-
declare const utils_setInt8: typeof setInt8;
|
|
2935
|
-
declare const utils_setInterfacePointer: typeof setInterfacePointer;
|
|
2936
|
-
declare const utils_setListPointer: typeof setListPointer;
|
|
2937
|
-
declare const utils_setStructPointer: typeof setStructPointer;
|
|
2938
|
-
declare const utils_setText: typeof setText;
|
|
2939
|
-
declare const utils_setUint16: typeof setUint16;
|
|
2940
|
-
declare const utils_setUint32: typeof setUint32;
|
|
2941
|
-
declare const utils_setUint64: typeof setUint64;
|
|
2942
|
-
declare const utils_setUint8: typeof setUint8;
|
|
2943
|
-
declare const utils_testWhich: typeof testWhich;
|
|
2944
|
-
declare const utils_trackPointerAllocation: typeof trackPointerAllocation;
|
|
2945
|
-
declare const utils_validate: typeof validate;
|
|
2946
2860
|
export declare namespace utils {
|
|
2947
|
-
export {
|
|
2861
|
+
export { PointerAllocationResult, add, adopt, checkDataBounds, checkPointerBounds, copyFrom, copyFromInterface, copyFromList, copyFromStruct, disown, dump$1, erase, erasePointer, followFar, followFars, getAs, getBit, getCapabilityId, getContent, getData, getDataSection, getFarSegmentId, getFloat32, getFloat64, getInt16, getInt32, getInt64, getInt8, getInterfaceClientOrNull, getInterfaceClientOrNullAt, getInterfacePointer, getList, getListByteLength, getListElementByteLength, getListElementSize, getListLength, getOffsetWords, getPointer, getPointerAs, getPointerSection, getPointerType, getSize, getStruct, getStructDataWords, getStructPointerLength, getStructSize, getTargetCompositeListSize, getTargetCompositeListTag, getTargetListElementSize, getTargetListLength, getTargetPointerType, getTargetStructSize, getText, getUint16, getUint32, getUint64, getUint8, initData, initList, initPointer, initStruct, initStructAt, isDoubleFar, isNull, relocateTo, resize, setBit, setFarPointer, setFloat32, setFloat64, setInt16, setInt32, setInt64, setInt8, setInterfacePointer, setListPointer, setStructPointer, setText, setUint16, setUint32, setUint64, setUint8, testWhich, trackPointerAllocation, validate };
|
|
2948
2862
|
}
|
|
2949
2863
|
export declare const AnyPointerList: ListCtor<Pointer>;
|
|
2950
2864
|
export declare class BoolList extends List<boolean> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/capnp",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package to assist in running the Cap'n Proto compiler and creating Cap'n Proto serialization protocol schemas.",
|
|
6
6
|
"repository": {
|
|
@@ -47,20 +47,20 @@
|
|
|
47
47
|
"module": "./dist/index.js",
|
|
48
48
|
"exports": {
|
|
49
49
|
".": {
|
|
50
|
-
"import": { "types": "./
|
|
50
|
+
"import": { "types": "./dts/index.d.ts", "default": "./dist/index.js" },
|
|
51
51
|
"require": {
|
|
52
|
-
"types": "./
|
|
52
|
+
"types": "./dts/index.d.cts",
|
|
53
53
|
"default": "./dist/index.cjs"
|
|
54
54
|
},
|
|
55
|
-
"default": { "types": "./
|
|
55
|
+
"default": { "types": "./dts/index.d.ts", "default": "./dist/index.js" }
|
|
56
56
|
},
|
|
57
57
|
"./index": {
|
|
58
|
-
"import": { "types": "./
|
|
58
|
+
"import": { "types": "./dts/index.d.ts", "default": "./dist/index.js" },
|
|
59
59
|
"require": {
|
|
60
|
-
"types": "./
|
|
60
|
+
"types": "./dts/index.d.cts",
|
|
61
61
|
"default": "./dist/index.cjs"
|
|
62
62
|
},
|
|
63
|
-
"default": { "types": "./
|
|
63
|
+
"default": { "types": "./dts/index.d.ts", "default": "./dist/index.js" }
|
|
64
64
|
},
|
|
65
65
|
"./compile": {
|
|
66
66
|
"import": {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__name
|
|
3
3
|
} from "./chunk-SHUYVCID.js";
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
5
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs
|
|
6
6
|
var ListElementSize = /* @__PURE__ */ ((ListElementSize2) => {
|
|
7
7
|
ListElementSize2[ListElementSize2["VOID"] = 0] = "VOID";
|
|
8
8
|
ListElementSize2[ListElementSize2["BIT"] = 1] = "BIT";
|
|
@@ -2076,7 +2076,7 @@ function checkDataBounds(byteOffset, byteLength, s) {
|
|
|
2076
2076
|
}
|
|
2077
2077
|
__name(checkDataBounds, "checkDataBounds");
|
|
2078
2078
|
|
|
2079
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2079
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs
|
|
2080
2080
|
function CompositeList(CompositeClass) {
|
|
2081
2081
|
return class extends List {
|
|
2082
2082
|
static _capnp = {
|
|
@@ -2156,7 +2156,7 @@ function getBitMask(value, bitOffset) {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
__name(getBitMask, "getBitMask");
|
|
2158
2158
|
|
|
2159
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2159
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.GpvEvMIK.mjs
|
|
2160
2160
|
var ArenaKind = /* @__PURE__ */ ((ArenaKind2) => {
|
|
2161
2161
|
ArenaKind2[ArenaKind2["SINGLE_SEGMENT"] = 0] = "SINGLE_SEGMENT";
|
|
2162
2162
|
ArenaKind2[ArenaKind2["MULTI_SEGMENT"] = 1] = "MULTI_SEGMENT";
|
|
@@ -3153,7 +3153,7 @@ function copy(m) {
|
|
|
3153
3153
|
}
|
|
3154
3154
|
__name(copy, "copy");
|
|
3155
3155
|
|
|
3156
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
3156
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.UAt3nLGq.mjs
|
|
3157
3157
|
var Interface = class extends Pointer {
|
|
3158
3158
|
static {
|
|
3159
3159
|
__name(this, "Interface");
|
|
@@ -3692,7 +3692,7 @@ var Server = class {
|
|
|
3692
3692
|
}
|
|
3693
3693
|
};
|
|
3694
3694
|
|
|
3695
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
3695
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.8.3/node_modules/capnp-es/dist/index.mjs
|
|
3696
3696
|
var Void = class extends Struct {
|
|
3697
3697
|
static {
|
|
3698
3698
|
__name(this, "Void");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
5
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs
|
|
6
6
|
var ListElementSize = /* @__PURE__ */ ((ListElementSize2) => {
|
|
7
7
|
ListElementSize2[ListElementSize2["VOID"] = 0] = "VOID";
|
|
8
8
|
ListElementSize2[ListElementSize2["BIT"] = 1] = "BIT";
|
|
@@ -2076,7 +2076,7 @@ function checkDataBounds(byteOffset, byteLength, s) {
|
|
|
2076
2076
|
}
|
|
2077
2077
|
_chunkUSNT2KNTcjs.__name.call(void 0, checkDataBounds, "checkDataBounds");
|
|
2078
2078
|
|
|
2079
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2079
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs
|
|
2080
2080
|
function CompositeList(CompositeClass) {
|
|
2081
2081
|
return (_class5 = class extends List {
|
|
2082
2082
|
static __initStatic5() {this._capnp = {
|
|
@@ -2156,7 +2156,7 @@ function getBitMask(value, bitOffset) {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
_chunkUSNT2KNTcjs.__name.call(void 0, getBitMask, "getBitMask");
|
|
2158
2158
|
|
|
2159
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2159
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.GpvEvMIK.mjs
|
|
2160
2160
|
var ArenaKind = /* @__PURE__ */ ((ArenaKind2) => {
|
|
2161
2161
|
ArenaKind2[ArenaKind2["SINGLE_SEGMENT"] = 0] = "SINGLE_SEGMENT";
|
|
2162
2162
|
ArenaKind2[ArenaKind2["MULTI_SEGMENT"] = 1] = "MULTI_SEGMENT";
|
|
@@ -3153,7 +3153,7 @@ function copy(m) {
|
|
|
3153
3153
|
}
|
|
3154
3154
|
_chunkUSNT2KNTcjs.__name.call(void 0, copy, "copy");
|
|
3155
3155
|
|
|
3156
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
3156
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.UAt3nLGq.mjs
|
|
3157
3157
|
var Interface = (_class11 = class extends Pointer {
|
|
3158
3158
|
static {
|
|
3159
3159
|
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Interface");
|
|
@@ -3692,7 +3692,7 @@ var Server = class {
|
|
|
3692
3692
|
}
|
|
3693
3693
|
};
|
|
3694
3694
|
|
|
3695
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
3695
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.8.3/node_modules/capnp-es/dist/index.mjs
|
|
3696
3696
|
var Void = (_class15 = class extends Struct {
|
|
3697
3697
|
static {
|
|
3698
3698
|
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Void");
|
package/schemas/persistent.cjs
CHANGED
|
@@ -6,27 +6,27 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkIAY5S3C6cjs = require('./chunk-IAY5S3C6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
|
|
13
13
|
|
|
14
14
|
// schemas/persistent.ts
|
|
15
15
|
var _capnpFileId = BigInt("0xb8630836983feed7");
|
|
16
|
-
var Persistent_SaveParams = (_class = class extends
|
|
16
|
+
var Persistent_SaveParams = (_class = class extends _chunkIAY5S3C6cjs.Struct {
|
|
17
17
|
static {
|
|
18
18
|
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent_SaveParams");
|
|
19
19
|
}
|
|
20
20
|
static __initStatic() {this._capnp = {
|
|
21
21
|
displayName: "SaveParams",
|
|
22
22
|
id: "f76fba59183073a5",
|
|
23
|
-
size: new (0,
|
|
23
|
+
size: new (0, _chunkIAY5S3C6cjs.ObjectSize)(0, 1)
|
|
24
24
|
}}
|
|
25
25
|
_adoptSealFor(value) {
|
|
26
|
-
|
|
26
|
+
_chunkIAY5S3C6cjs.utils.adopt(value, _chunkIAY5S3C6cjs.utils.getPointer(0, this));
|
|
27
27
|
}
|
|
28
28
|
_disownSealFor() {
|
|
29
|
-
return
|
|
29
|
+
return _chunkIAY5S3C6cjs.utils.disown(this.sealFor);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Seal the SturdyRef so that it can only be restored by the specified Owner. This is meant
|
|
@@ -38,41 +38,41 @@ var Persistent_SaveParams = (_class = class extends _chunkGX6VRR3Gcjs.Struct {
|
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
40
|
get sealFor() {
|
|
41
|
-
return
|
|
41
|
+
return _chunkIAY5S3C6cjs.utils.getPointer(0, this);
|
|
42
42
|
}
|
|
43
43
|
_hasSealFor() {
|
|
44
|
-
return !
|
|
44
|
+
return !_chunkIAY5S3C6cjs.utils.isNull(_chunkIAY5S3C6cjs.utils.getPointer(0, this));
|
|
45
45
|
}
|
|
46
46
|
set sealFor(value) {
|
|
47
|
-
|
|
47
|
+
_chunkIAY5S3C6cjs.utils.copyFrom(value, _chunkIAY5S3C6cjs.utils.getPointer(0, this));
|
|
48
48
|
}
|
|
49
49
|
toString() {
|
|
50
50
|
return "Persistent_SaveParams_" + super.toString();
|
|
51
51
|
}
|
|
52
52
|
}, _class.__initStatic(), _class);
|
|
53
|
-
var Persistent_SaveResults = (_class2 = class extends
|
|
53
|
+
var Persistent_SaveResults = (_class2 = class extends _chunkIAY5S3C6cjs.Struct {
|
|
54
54
|
static {
|
|
55
55
|
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent_SaveResults");
|
|
56
56
|
}
|
|
57
57
|
static __initStatic2() {this._capnp = {
|
|
58
58
|
displayName: "SaveResults",
|
|
59
59
|
id: "b76848c18c40efbf",
|
|
60
|
-
size: new (0,
|
|
60
|
+
size: new (0, _chunkIAY5S3C6cjs.ObjectSize)(0, 1)
|
|
61
61
|
}}
|
|
62
62
|
_adoptSturdyRef(value) {
|
|
63
|
-
|
|
63
|
+
_chunkIAY5S3C6cjs.utils.adopt(value, _chunkIAY5S3C6cjs.utils.getPointer(0, this));
|
|
64
64
|
}
|
|
65
65
|
_disownSturdyRef() {
|
|
66
|
-
return
|
|
66
|
+
return _chunkIAY5S3C6cjs.utils.disown(this.sturdyRef);
|
|
67
67
|
}
|
|
68
68
|
get sturdyRef() {
|
|
69
|
-
return
|
|
69
|
+
return _chunkIAY5S3C6cjs.utils.getPointer(0, this);
|
|
70
70
|
}
|
|
71
71
|
_hasSturdyRef() {
|
|
72
|
-
return !
|
|
72
|
+
return !_chunkIAY5S3C6cjs.utils.isNull(_chunkIAY5S3C6cjs.utils.getPointer(0, this));
|
|
73
73
|
}
|
|
74
74
|
set sturdyRef(value) {
|
|
75
|
-
|
|
75
|
+
_chunkIAY5S3C6cjs.utils.copyFrom(value, _chunkIAY5S3C6cjs.utils.getPointer(0, this));
|
|
76
76
|
}
|
|
77
77
|
toString() {
|
|
78
78
|
return "Persistent_SaveResults_" + super.toString();
|
|
@@ -120,12 +120,12 @@ var Persistent$Client = (_class3 = class _Persistent$Client {
|
|
|
120
120
|
method: _Persistent$Client.methods[0],
|
|
121
121
|
paramsFunc
|
|
122
122
|
});
|
|
123
|
-
const pipeline = new (0,
|
|
123
|
+
const pipeline = new (0, _chunkIAY5S3C6cjs.Pipeline)(Persistent_SaveResults, answer);
|
|
124
124
|
return new Persistent_SaveResults$Promise(pipeline);
|
|
125
125
|
}
|
|
126
126
|
}, _class3.__initStatic3(), _class3.__initStatic4(), _class3);
|
|
127
|
-
|
|
128
|
-
var Persistent$Server = class extends
|
|
127
|
+
_chunkIAY5S3C6cjs.Registry.register(Persistent$Client.interfaceId, Persistent$Client);
|
|
128
|
+
var Persistent$Server = class extends _chunkIAY5S3C6cjs.Server {
|
|
129
129
|
static {
|
|
130
130
|
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent$Server");
|
|
131
131
|
}
|
|
@@ -143,7 +143,7 @@ var Persistent$Server = class extends _chunkGX6VRR3Gcjs.Server {
|
|
|
143
143
|
return new Persistent$Client(this);
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
|
-
var Persistent = (_class4 = class extends
|
|
146
|
+
var Persistent = (_class4 = class extends _chunkIAY5S3C6cjs.Interface {
|
|
147
147
|
static {
|
|
148
148
|
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent");
|
|
149
149
|
}
|
|
@@ -154,7 +154,7 @@ var Persistent = (_class4 = class extends _chunkGX6VRR3Gcjs.Interface {
|
|
|
154
154
|
static __initStatic9() {this._capnp = {
|
|
155
155
|
displayName: "Persistent",
|
|
156
156
|
id: "c8cb212fcd9f5691",
|
|
157
|
-
size: new (0,
|
|
157
|
+
size: new (0, _chunkIAY5S3C6cjs.ObjectSize)(0, 0)
|
|
158
158
|
}}
|
|
159
159
|
toString() {
|
|
160
160
|
return "Persistent_" + super.toString();
|
package/schemas/persistent.js
CHANGED
package/schemas/rpc-twoparty.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkIAY5S3C6cjs = require('./chunk-IAY5S3C6.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
|
|
@@ -31,82 +31,82 @@ var Side = {
|
|
|
31
31
|
*/
|
|
32
32
|
CLIENT: 1
|
|
33
33
|
};
|
|
34
|
-
var VatId = (_class = class extends
|
|
34
|
+
var VatId = (_class = class extends _chunkIAY5S3C6cjs.Struct {
|
|
35
35
|
static {
|
|
36
36
|
_chunkUSNT2KNTcjs.__name.call(void 0, this, "VatId");
|
|
37
37
|
}
|
|
38
38
|
static __initStatic() {this._capnp = {
|
|
39
39
|
displayName: "VatId",
|
|
40
40
|
id: "d20b909fee733a8e",
|
|
41
|
-
size: new (0,
|
|
41
|
+
size: new (0, _chunkIAY5S3C6cjs.ObjectSize)(8, 0)
|
|
42
42
|
}}
|
|
43
43
|
get side() {
|
|
44
|
-
return
|
|
44
|
+
return _chunkIAY5S3C6cjs.utils.getUint16(0, this);
|
|
45
45
|
}
|
|
46
46
|
set side(value) {
|
|
47
|
-
|
|
47
|
+
_chunkIAY5S3C6cjs.utils.setUint16(0, value, this);
|
|
48
48
|
}
|
|
49
49
|
toString() {
|
|
50
50
|
return "VatId_" + super.toString();
|
|
51
51
|
}
|
|
52
52
|
}, _class.__initStatic(), _class);
|
|
53
|
-
var ProvisionId = (_class2 = class extends
|
|
53
|
+
var ProvisionId = (_class2 = class extends _chunkIAY5S3C6cjs.Struct {
|
|
54
54
|
static {
|
|
55
55
|
_chunkUSNT2KNTcjs.__name.call(void 0, this, "ProvisionId");
|
|
56
56
|
}
|
|
57
57
|
static __initStatic2() {this._capnp = {
|
|
58
58
|
displayName: "ProvisionId",
|
|
59
59
|
id: "b88d09a9c5f39817",
|
|
60
|
-
size: new (0,
|
|
60
|
+
size: new (0, _chunkIAY5S3C6cjs.ObjectSize)(8, 0)
|
|
61
61
|
}}
|
|
62
62
|
/**
|
|
63
63
|
* The ID from `JoinKeyPart`.
|
|
64
64
|
*
|
|
65
65
|
*/
|
|
66
66
|
get joinId() {
|
|
67
|
-
return
|
|
67
|
+
return _chunkIAY5S3C6cjs.utils.getUint32(0, this);
|
|
68
68
|
}
|
|
69
69
|
set joinId(value) {
|
|
70
|
-
|
|
70
|
+
_chunkIAY5S3C6cjs.utils.setUint32(0, value, this);
|
|
71
71
|
}
|
|
72
72
|
toString() {
|
|
73
73
|
return "ProvisionId_" + super.toString();
|
|
74
74
|
}
|
|
75
75
|
}, _class2.__initStatic2(), _class2);
|
|
76
|
-
var RecipientId = (_class3 = class extends
|
|
76
|
+
var RecipientId = (_class3 = class extends _chunkIAY5S3C6cjs.Struct {
|
|
77
77
|
static {
|
|
78
78
|
_chunkUSNT2KNTcjs.__name.call(void 0, this, "RecipientId");
|
|
79
79
|
}
|
|
80
80
|
static __initStatic3() {this._capnp = {
|
|
81
81
|
displayName: "RecipientId",
|
|
82
82
|
id: "89f389b6fd4082c1",
|
|
83
|
-
size: new (0,
|
|
83
|
+
size: new (0, _chunkIAY5S3C6cjs.ObjectSize)(0, 0)
|
|
84
84
|
}}
|
|
85
85
|
toString() {
|
|
86
86
|
return "RecipientId_" + super.toString();
|
|
87
87
|
}
|
|
88
88
|
}, _class3.__initStatic3(), _class3);
|
|
89
|
-
var ThirdPartyCapId = (_class4 = class extends
|
|
89
|
+
var ThirdPartyCapId = (_class4 = class extends _chunkIAY5S3C6cjs.Struct {
|
|
90
90
|
static {
|
|
91
91
|
_chunkUSNT2KNTcjs.__name.call(void 0, this, "ThirdPartyCapId");
|
|
92
92
|
}
|
|
93
93
|
static __initStatic4() {this._capnp = {
|
|
94
94
|
displayName: "ThirdPartyCapId",
|
|
95
95
|
id: "b47f4979672cb59d",
|
|
96
|
-
size: new (0,
|
|
96
|
+
size: new (0, _chunkIAY5S3C6cjs.ObjectSize)(0, 0)
|
|
97
97
|
}}
|
|
98
98
|
toString() {
|
|
99
99
|
return "ThirdPartyCapId_" + super.toString();
|
|
100
100
|
}
|
|
101
101
|
}, _class4.__initStatic4(), _class4);
|
|
102
|
-
var JoinKeyPart = (_class5 = class extends
|
|
102
|
+
var JoinKeyPart = (_class5 = class extends _chunkIAY5S3C6cjs.Struct {
|
|
103
103
|
static {
|
|
104
104
|
_chunkUSNT2KNTcjs.__name.call(void 0, this, "JoinKeyPart");
|
|
105
105
|
}
|
|
106
106
|
static __initStatic5() {this._capnp = {
|
|
107
107
|
displayName: "JoinKeyPart",
|
|
108
108
|
id: "95b29059097fca83",
|
|
109
|
-
size: new (0,
|
|
109
|
+
size: new (0, _chunkIAY5S3C6cjs.ObjectSize)(8, 0)
|
|
110
110
|
}}
|
|
111
111
|
/**
|
|
112
112
|
* A number identifying this join, chosen by the sender. May be reused once `Finish` messages are
|
|
@@ -114,53 +114,53 @@ var JoinKeyPart = (_class5 = class extends _chunkGX6VRR3Gcjs.Struct {
|
|
|
114
114
|
*
|
|
115
115
|
*/
|
|
116
116
|
get joinId() {
|
|
117
|
-
return
|
|
117
|
+
return _chunkIAY5S3C6cjs.utils.getUint32(0, this);
|
|
118
118
|
}
|
|
119
119
|
set joinId(value) {
|
|
120
|
-
|
|
120
|
+
_chunkIAY5S3C6cjs.utils.setUint32(0, value, this);
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
123
|
* The number of capabilities to be joined.
|
|
124
124
|
*
|
|
125
125
|
*/
|
|
126
126
|
get partCount() {
|
|
127
|
-
return
|
|
127
|
+
return _chunkIAY5S3C6cjs.utils.getUint16(4, this);
|
|
128
128
|
}
|
|
129
129
|
set partCount(value) {
|
|
130
|
-
|
|
130
|
+
_chunkIAY5S3C6cjs.utils.setUint16(4, value, this);
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
133
|
* Which part this request targets -- a number in the range [0, partCount).
|
|
134
134
|
*
|
|
135
135
|
*/
|
|
136
136
|
get partNum() {
|
|
137
|
-
return
|
|
137
|
+
return _chunkIAY5S3C6cjs.utils.getUint16(6, this);
|
|
138
138
|
}
|
|
139
139
|
set partNum(value) {
|
|
140
|
-
|
|
140
|
+
_chunkIAY5S3C6cjs.utils.setUint16(6, value, this);
|
|
141
141
|
}
|
|
142
142
|
toString() {
|
|
143
143
|
return "JoinKeyPart_" + super.toString();
|
|
144
144
|
}
|
|
145
145
|
}, _class5.__initStatic5(), _class5);
|
|
146
|
-
var JoinResult = (_class6 = class extends
|
|
146
|
+
var JoinResult = (_class6 = class extends _chunkIAY5S3C6cjs.Struct {
|
|
147
147
|
static {
|
|
148
148
|
_chunkUSNT2KNTcjs.__name.call(void 0, this, "JoinResult");
|
|
149
149
|
}
|
|
150
150
|
static __initStatic6() {this._capnp = {
|
|
151
151
|
displayName: "JoinResult",
|
|
152
152
|
id: "9d263a3630b7ebee",
|
|
153
|
-
size: new (0,
|
|
153
|
+
size: new (0, _chunkIAY5S3C6cjs.ObjectSize)(8, 1)
|
|
154
154
|
}}
|
|
155
155
|
/**
|
|
156
156
|
* Matches `JoinKeyPart`.
|
|
157
157
|
*
|
|
158
158
|
*/
|
|
159
159
|
get joinId() {
|
|
160
|
-
return
|
|
160
|
+
return _chunkIAY5S3C6cjs.utils.getUint32(0, this);
|
|
161
161
|
}
|
|
162
162
|
set joinId(value) {
|
|
163
|
-
|
|
163
|
+
_chunkIAY5S3C6cjs.utils.setUint32(0, value, this);
|
|
164
164
|
}
|
|
165
165
|
/**
|
|
166
166
|
* All JoinResults in the set will have the same value for `succeeded`. The receiver actually
|
|
@@ -169,29 +169,29 @@ var JoinResult = (_class6 = class extends _chunkGX6VRR3Gcjs.Struct {
|
|
|
169
169
|
*
|
|
170
170
|
*/
|
|
171
171
|
get succeeded() {
|
|
172
|
-
return
|
|
172
|
+
return _chunkIAY5S3C6cjs.utils.getBit(32, this);
|
|
173
173
|
}
|
|
174
174
|
set succeeded(value) {
|
|
175
|
-
|
|
175
|
+
_chunkIAY5S3C6cjs.utils.setBit(32, value, this);
|
|
176
176
|
}
|
|
177
177
|
_adoptCap(value) {
|
|
178
|
-
|
|
178
|
+
_chunkIAY5S3C6cjs.utils.adopt(value, _chunkIAY5S3C6cjs.utils.getPointer(0, this));
|
|
179
179
|
}
|
|
180
180
|
_disownCap() {
|
|
181
|
-
return
|
|
181
|
+
return _chunkIAY5S3C6cjs.utils.disown(this.cap);
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
184
|
* One of the JoinResults will have a non-null `cap` which is the joined capability.
|
|
185
185
|
*
|
|
186
186
|
*/
|
|
187
187
|
get cap() {
|
|
188
|
-
return
|
|
188
|
+
return _chunkIAY5S3C6cjs.utils.getPointer(0, this);
|
|
189
189
|
}
|
|
190
190
|
_hasCap() {
|
|
191
|
-
return !
|
|
191
|
+
return !_chunkIAY5S3C6cjs.utils.isNull(_chunkIAY5S3C6cjs.utils.getPointer(0, this));
|
|
192
192
|
}
|
|
193
193
|
set cap(value) {
|
|
194
|
-
|
|
194
|
+
_chunkIAY5S3C6cjs.utils.copyFrom(value, _chunkIAY5S3C6cjs.utils.getPointer(0, this));
|
|
195
195
|
}
|
|
196
196
|
toString() {
|
|
197
197
|
return "JoinResult_" + super.toString();
|