@stryke/capnp 0.12.32 → 0.12.41
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 +18 -9
- package/bin/capnpc.cjs +9 -8304
- package/bin/capnpc.d.cts +4 -2
- package/bin/capnpc.d.cts.map +1 -0
- package/bin/capnpc.d.mts +8 -0
- package/bin/capnpc.d.mts.map +1 -0
- package/bin/capnpc.mjs +11 -0
- package/bin/capnpc.mjs.map +1 -0
- package/dist/compile-DN7i0G3X.d.mts +40 -0
- package/dist/compile-DN7i0G3X.d.mts.map +1 -0
- package/dist/compile-DOMgXQRn.cjs +1 -0
- package/dist/compile-DccxA7WZ.d.cts +40 -0
- package/dist/compile-DccxA7WZ.d.cts.map +1 -0
- package/dist/compile-cQ918Wl_.mjs +2 -0
- package/dist/compile-cQ918Wl_.mjs.map +1 -0
- package/dist/compile.cjs +1 -11
- package/dist/compile.d.cts +3 -39
- package/dist/compile.d.mts +3 -0
- package/dist/compile.mjs +1 -0
- package/dist/dist-BzGdCkHS.cjs +1 -0
- package/dist/dist-CvDcvswe.mjs +2 -0
- package/dist/dist-CvDcvswe.mjs.map +1 -0
- package/dist/helpers-BIiGufva.cjs +6 -0
- package/dist/helpers-BYBeqv2d.mjs +7 -0
- package/dist/helpers-BYBeqv2d.mjs.map +1 -0
- package/dist/helpers.cjs +1 -7
- package/dist/helpers.d.cts +5 -4
- package/dist/helpers.d.cts.map +1 -0
- package/dist/{helpers.d.ts → helpers.d.mts} +5 -4
- package/dist/helpers.d.mts.map +1 -0
- package/dist/helpers.mjs +1 -0
- package/dist/index.cjs +1 -134
- package/dist/index.d.cts +4 -6
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +1 -0
- package/dist/rpc.cjs +1 -139
- package/dist/rpc.d.cts +62 -59
- package/dist/rpc.d.cts.map +1 -0
- package/dist/rpc.d.mts +74 -0
- package/dist/rpc.d.mts.map +1 -0
- package/dist/rpc.mjs +2 -0
- package/dist/rpc.mjs.map +1 -0
- package/dist/types-B2gKzfwi.cjs +1 -0
- package/dist/types-D52qMMoK.d.cts +55 -0
- package/dist/types-D52qMMoK.d.cts.map +1 -0
- package/dist/types-DBd3Wi0H.d.mts +55 -0
- package/dist/types-DBd3Wi0H.d.mts.map +1 -0
- package/dist/types-y_yfxLs5.mjs +2 -0
- package/dist/types-y_yfxLs5.mjs.map +1 -0
- package/dist/types.cjs +1 -7
- package/dist/types.d.cts +2 -53
- package/dist/types.d.mts +2 -0
- package/dist/types.mjs +1 -0
- package/package.json +42 -69
- package/schemas/cpp.cjs +1 -7
- package/schemas/cpp.d.cts +3 -1
- package/schemas/cpp.d.cts.map +1 -0
- package/schemas/cpp.d.mts +5 -0
- package/schemas/cpp.d.mts.map +1 -0
- package/schemas/cpp.mjs +2 -0
- package/schemas/cpp.mjs.map +1 -0
- package/schemas/index-CDymg4xL.d.mts +96 -0
- package/schemas/index-CDymg4xL.d.mts.map +1 -0
- package/schemas/index-b7dam4EA.d.cts +96 -0
- package/schemas/index-b7dam4EA.d.cts.map +1 -0
- package/schemas/persistent.cjs +1 -171
- package/schemas/persistent.d.cts +55 -55
- package/schemas/persistent.d.cts.map +1 -0
- package/schemas/{persistent.d.ts → persistent.d.mts} +55 -55
- package/schemas/persistent.d.mts.map +1 -0
- package/schemas/persistent.mjs +2 -0
- package/schemas/persistent.mjs.map +1 -0
- package/schemas/rpc-twoparty.cjs +1 -209
- package/schemas/rpc-twoparty.d.cts +76 -74
- package/schemas/rpc-twoparty.d.cts.map +1 -0
- package/schemas/{rpc-twoparty.d.ts → rpc-twoparty.d.mts} +76 -74
- package/schemas/rpc-twoparty.d.mts.map +1 -0
- package/schemas/rpc-twoparty.mjs +2 -0
- package/schemas/rpc-twoparty.mjs.map +1 -0
- package/schemas/rpc.cjs +1 -2563
- package/schemas/rpc.d.cts +749 -747
- package/schemas/rpc.d.cts.map +1 -0
- package/schemas/{rpc.d.ts → rpc.d.mts} +749 -747
- package/schemas/rpc.d.mts.map +1 -0
- package/schemas/rpc.mjs +2 -0
- package/schemas/rpc.mjs.map +1 -0
- package/schemas/schema.cjs +1 -2718
- package/schemas/schema.d.cts +984 -982
- package/schemas/schema.d.cts.map +1 -0
- package/schemas/schema.d.mts +1456 -0
- package/schemas/schema.d.mts.map +1 -0
- package/schemas/schema.mjs +2 -0
- package/schemas/schema.mjs.map +1 -0
- package/schemas/src-CtkguuVd.mjs +7 -0
- package/schemas/src-CtkguuVd.mjs.map +1 -0
- package/schemas/src-DqnIPdOg.cjs +6 -0
- package/schemas/ts.cjs +1 -7
- package/schemas/ts.d.cts +3 -1
- package/schemas/ts.d.cts.map +1 -0
- package/schemas/ts.d.mts +5 -0
- package/schemas/ts.d.mts.map +1 -0
- package/schemas/ts.mjs +2 -0
- package/schemas/ts.mjs.map +1 -0
- package/bin/capnpc.d.ts +0 -6
- package/bin/capnpc.js +0 -8273
- package/dist/chunk-CCU32X36.js +0 -15
- package/dist/chunk-GI42NGKQ.js +0 -3305
- package/dist/chunk-H32XGT26.js +0 -4107
- package/dist/chunk-JREA5Q77.js +0 -1082
- package/dist/chunk-KMCJ5MIQ.cjs +0 -3305
- package/dist/chunk-KO6NZLWH.cjs +0 -1082
- package/dist/chunk-LFP6TIPQ.cjs +0 -4760
- package/dist/chunk-NN62B5Z3.cjs +0 -4107
- package/dist/chunk-R2JXWA7Q.cjs +0 -15
- package/dist/chunk-SHUYVCID.js +0 -6
- package/dist/chunk-USNT2KNT.cjs +0 -6
- package/dist/chunk-ZIENMW4V.js +0 -4760
- package/dist/compile.d.ts +0 -39
- package/dist/compile.js +0 -11
- package/dist/helpers.js +0 -7
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -134
- package/dist/rpc.d.ts +0 -71
- package/dist/rpc.js +0 -139
- package/dist/types.d.ts +0 -53
- package/dist/types.js +0 -7
- package/schemas/chunk-RNSYVJGA.cjs +0 -4700
- package/schemas/chunk-SHUYVCID.js +0 -6
- package/schemas/chunk-SW2MRW3B.js +0 -4700
- package/schemas/chunk-USNT2KNT.cjs +0 -6
- package/schemas/cpp.d.ts +0 -3
- package/schemas/cpp.js +0 -7
- package/schemas/persistent.js +0 -171
- package/schemas/rpc-twoparty.js +0 -209
- package/schemas/rpc.js +0 -2563
- package/schemas/schema.d.ts +0 -1454
- package/schemas/schema.js +0 -2718
- package/schemas/ts.d.ts +0 -3
- package/schemas/ts.js +0 -7
package/schemas/cpp.d.ts
DELETED
package/schemas/cpp.js
DELETED
package/schemas/persistent.js
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Interface,
|
|
3
|
-
ObjectSize,
|
|
4
|
-
Pipeline,
|
|
5
|
-
Registry,
|
|
6
|
-
Server,
|
|
7
|
-
Struct,
|
|
8
|
-
utils
|
|
9
|
-
} from "./chunk-SW2MRW3B.js";
|
|
10
|
-
import {
|
|
11
|
-
__name
|
|
12
|
-
} from "./chunk-SHUYVCID.js";
|
|
13
|
-
|
|
14
|
-
// schemas/persistent.ts
|
|
15
|
-
var _capnpFileId = BigInt("0xb8630836983feed7");
|
|
16
|
-
var Persistent_SaveParams = class extends Struct {
|
|
17
|
-
static {
|
|
18
|
-
__name(this, "Persistent_SaveParams");
|
|
19
|
-
}
|
|
20
|
-
static _capnp = {
|
|
21
|
-
displayName: "SaveParams",
|
|
22
|
-
id: "f76fba59183073a5",
|
|
23
|
-
size: new ObjectSize(0, 1)
|
|
24
|
-
};
|
|
25
|
-
_adoptSealFor(value) {
|
|
26
|
-
utils.adopt(value, utils.getPointer(0, this));
|
|
27
|
-
}
|
|
28
|
-
_disownSealFor() {
|
|
29
|
-
return utils.disown(this.sealFor);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Seal the SturdyRef so that it can only be restored by the specified Owner. This is meant
|
|
33
|
-
* to mitigate damage when a SturdyRef is leaked. See comments above.
|
|
34
|
-
*
|
|
35
|
-
* Leaving this value null may or may not be allowed; it is up to the realm to decide. If a
|
|
36
|
-
* realm does allow a null owner, this should indicate that anyone is allowed to restore the
|
|
37
|
-
* ref.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
get sealFor() {
|
|
41
|
-
return utils.getPointer(0, this);
|
|
42
|
-
}
|
|
43
|
-
_hasSealFor() {
|
|
44
|
-
return !utils.isNull(utils.getPointer(0, this));
|
|
45
|
-
}
|
|
46
|
-
set sealFor(value) {
|
|
47
|
-
utils.copyFrom(value, utils.getPointer(0, this));
|
|
48
|
-
}
|
|
49
|
-
toString() {
|
|
50
|
-
return "Persistent_SaveParams_" + super.toString();
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
var Persistent_SaveResults = class extends Struct {
|
|
54
|
-
static {
|
|
55
|
-
__name(this, "Persistent_SaveResults");
|
|
56
|
-
}
|
|
57
|
-
static _capnp = {
|
|
58
|
-
displayName: "SaveResults",
|
|
59
|
-
id: "b76848c18c40efbf",
|
|
60
|
-
size: new ObjectSize(0, 1)
|
|
61
|
-
};
|
|
62
|
-
_adoptSturdyRef(value) {
|
|
63
|
-
utils.adopt(value, utils.getPointer(0, this));
|
|
64
|
-
}
|
|
65
|
-
_disownSturdyRef() {
|
|
66
|
-
return utils.disown(this.sturdyRef);
|
|
67
|
-
}
|
|
68
|
-
get sturdyRef() {
|
|
69
|
-
return utils.getPointer(0, this);
|
|
70
|
-
}
|
|
71
|
-
_hasSturdyRef() {
|
|
72
|
-
return !utils.isNull(utils.getPointer(0, this));
|
|
73
|
-
}
|
|
74
|
-
set sturdyRef(value) {
|
|
75
|
-
utils.copyFrom(value, utils.getPointer(0, this));
|
|
76
|
-
}
|
|
77
|
-
toString() {
|
|
78
|
-
return "Persistent_SaveResults_" + super.toString();
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
var Persistent_SaveResults$Promise = class {
|
|
82
|
-
static {
|
|
83
|
-
__name(this, "Persistent_SaveResults$Promise");
|
|
84
|
-
}
|
|
85
|
-
pipeline;
|
|
86
|
-
constructor(pipeline) {
|
|
87
|
-
this.pipeline = pipeline;
|
|
88
|
-
}
|
|
89
|
-
async promise() {
|
|
90
|
-
return await this.pipeline.struct();
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
var Persistent$Client = class _Persistent$Client {
|
|
94
|
-
static {
|
|
95
|
-
__name(this, "Persistent$Client");
|
|
96
|
-
}
|
|
97
|
-
client;
|
|
98
|
-
static interfaceId = BigInt("0xc8cb212fcd9f5691");
|
|
99
|
-
constructor(client) {
|
|
100
|
-
this.client = client;
|
|
101
|
-
}
|
|
102
|
-
static methods = [
|
|
103
|
-
{
|
|
104
|
-
ParamsClass: Persistent_SaveParams,
|
|
105
|
-
ResultsClass: Persistent_SaveResults,
|
|
106
|
-
interfaceId: _Persistent$Client.interfaceId,
|
|
107
|
-
methodId: 0,
|
|
108
|
-
interfaceName: "packages/capnp/schemas/persistent.capnp:Persistent",
|
|
109
|
-
methodName: "save"
|
|
110
|
-
}
|
|
111
|
-
];
|
|
112
|
-
/**
|
|
113
|
-
* Save a capability persistently so that it can be restored by a future connection. Not all
|
|
114
|
-
* capabilities can be saved -- application interfaces should define which capabilities support
|
|
115
|
-
* this and which do not.
|
|
116
|
-
*
|
|
117
|
-
*/
|
|
118
|
-
save(paramsFunc) {
|
|
119
|
-
const answer = this.client.call({
|
|
120
|
-
method: _Persistent$Client.methods[0],
|
|
121
|
-
paramsFunc
|
|
122
|
-
});
|
|
123
|
-
const pipeline = new Pipeline(Persistent_SaveResults, answer);
|
|
124
|
-
return new Persistent_SaveResults$Promise(pipeline);
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
Registry.register(Persistent$Client.interfaceId, Persistent$Client);
|
|
128
|
-
var Persistent$Server = class extends Server {
|
|
129
|
-
static {
|
|
130
|
-
__name(this, "Persistent$Server");
|
|
131
|
-
}
|
|
132
|
-
target;
|
|
133
|
-
constructor(target) {
|
|
134
|
-
super(target, [
|
|
135
|
-
{
|
|
136
|
-
...Persistent$Client.methods[0],
|
|
137
|
-
impl: target.save
|
|
138
|
-
}
|
|
139
|
-
]);
|
|
140
|
-
this.target = target;
|
|
141
|
-
}
|
|
142
|
-
client() {
|
|
143
|
-
return new Persistent$Client(this);
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
var Persistent = class extends Interface {
|
|
147
|
-
static {
|
|
148
|
-
__name(this, "Persistent");
|
|
149
|
-
}
|
|
150
|
-
static SaveParams = Persistent_SaveParams;
|
|
151
|
-
static SaveResults = Persistent_SaveResults;
|
|
152
|
-
static Client = Persistent$Client;
|
|
153
|
-
static Server = Persistent$Server;
|
|
154
|
-
static _capnp = {
|
|
155
|
-
displayName: "Persistent",
|
|
156
|
-
id: "c8cb212fcd9f5691",
|
|
157
|
-
size: new ObjectSize(0, 0)
|
|
158
|
-
};
|
|
159
|
-
toString() {
|
|
160
|
-
return "Persistent_" + super.toString();
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
export {
|
|
164
|
-
Persistent,
|
|
165
|
-
Persistent$Client,
|
|
166
|
-
Persistent$Server,
|
|
167
|
-
Persistent_SaveParams,
|
|
168
|
-
Persistent_SaveResults,
|
|
169
|
-
Persistent_SaveResults$Promise,
|
|
170
|
-
_capnpFileId
|
|
171
|
-
};
|
package/schemas/rpc-twoparty.js
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ObjectSize,
|
|
3
|
-
Struct,
|
|
4
|
-
utils
|
|
5
|
-
} from "./chunk-SW2MRW3B.js";
|
|
6
|
-
import {
|
|
7
|
-
__name
|
|
8
|
-
} from "./chunk-SHUYVCID.js";
|
|
9
|
-
|
|
10
|
-
// schemas/rpc-twoparty.ts
|
|
11
|
-
var _capnpFileId = BigInt("0xa184c7885cdaf2a1");
|
|
12
|
-
var Side = {
|
|
13
|
-
/**
|
|
14
|
-
* The object lives on the "server" or "supervisor" end of the connection. Only the
|
|
15
|
-
* server/supervisor knows how to interpret the ref; to the client, it is opaque.
|
|
16
|
-
*
|
|
17
|
-
* Note that containers intending to implement strong confinement should rewrite SturdyRefs
|
|
18
|
-
* received from the external network before passing them on to the confined app. The confined
|
|
19
|
-
* app thus does not ever receive the raw bits of the SturdyRef (which it could perhaps
|
|
20
|
-
* maliciously leak), but instead receives only a thing that it can pass back to the container
|
|
21
|
-
* later to restore the ref. See:
|
|
22
|
-
* http://www.erights.org/elib/capability/dist-confine.html
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
SERVER: 0,
|
|
26
|
-
/**
|
|
27
|
-
* The object lives on the "client" or "confined app" end of the connection. Only the client
|
|
28
|
-
* knows how to interpret the ref; to the server/supervisor, it is opaque. Most clients do not
|
|
29
|
-
* actually know how to persist capabilities at all, so use of this is unusual.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
CLIENT: 1
|
|
33
|
-
};
|
|
34
|
-
var VatId = class extends Struct {
|
|
35
|
-
static {
|
|
36
|
-
__name(this, "VatId");
|
|
37
|
-
}
|
|
38
|
-
static _capnp = {
|
|
39
|
-
displayName: "VatId",
|
|
40
|
-
id: "d20b909fee733a8e",
|
|
41
|
-
size: new ObjectSize(8, 0)
|
|
42
|
-
};
|
|
43
|
-
get side() {
|
|
44
|
-
return utils.getUint16(0, this);
|
|
45
|
-
}
|
|
46
|
-
set side(value) {
|
|
47
|
-
utils.setUint16(0, value, this);
|
|
48
|
-
}
|
|
49
|
-
toString() {
|
|
50
|
-
return "VatId_" + super.toString();
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
var ProvisionId = class extends Struct {
|
|
54
|
-
static {
|
|
55
|
-
__name(this, "ProvisionId");
|
|
56
|
-
}
|
|
57
|
-
static _capnp = {
|
|
58
|
-
displayName: "ProvisionId",
|
|
59
|
-
id: "b88d09a9c5f39817",
|
|
60
|
-
size: new ObjectSize(8, 0)
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* The ID from `JoinKeyPart`.
|
|
64
|
-
*
|
|
65
|
-
*/
|
|
66
|
-
get joinId() {
|
|
67
|
-
return utils.getUint32(0, this);
|
|
68
|
-
}
|
|
69
|
-
set joinId(value) {
|
|
70
|
-
utils.setUint32(0, value, this);
|
|
71
|
-
}
|
|
72
|
-
toString() {
|
|
73
|
-
return "ProvisionId_" + super.toString();
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
var RecipientId = class extends Struct {
|
|
77
|
-
static {
|
|
78
|
-
__name(this, "RecipientId");
|
|
79
|
-
}
|
|
80
|
-
static _capnp = {
|
|
81
|
-
displayName: "RecipientId",
|
|
82
|
-
id: "89f389b6fd4082c1",
|
|
83
|
-
size: new ObjectSize(0, 0)
|
|
84
|
-
};
|
|
85
|
-
toString() {
|
|
86
|
-
return "RecipientId_" + super.toString();
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
var ThirdPartyCapId = class extends Struct {
|
|
90
|
-
static {
|
|
91
|
-
__name(this, "ThirdPartyCapId");
|
|
92
|
-
}
|
|
93
|
-
static _capnp = {
|
|
94
|
-
displayName: "ThirdPartyCapId",
|
|
95
|
-
id: "b47f4979672cb59d",
|
|
96
|
-
size: new ObjectSize(0, 0)
|
|
97
|
-
};
|
|
98
|
-
toString() {
|
|
99
|
-
return "ThirdPartyCapId_" + super.toString();
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
var JoinKeyPart = class extends Struct {
|
|
103
|
-
static {
|
|
104
|
-
__name(this, "JoinKeyPart");
|
|
105
|
-
}
|
|
106
|
-
static _capnp = {
|
|
107
|
-
displayName: "JoinKeyPart",
|
|
108
|
-
id: "95b29059097fca83",
|
|
109
|
-
size: new ObjectSize(8, 0)
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* A number identifying this join, chosen by the sender. May be reused once `Finish` messages are
|
|
113
|
-
* sent corresponding to all of the `Join` messages.
|
|
114
|
-
*
|
|
115
|
-
*/
|
|
116
|
-
get joinId() {
|
|
117
|
-
return utils.getUint32(0, this);
|
|
118
|
-
}
|
|
119
|
-
set joinId(value) {
|
|
120
|
-
utils.setUint32(0, value, this);
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* The number of capabilities to be joined.
|
|
124
|
-
*
|
|
125
|
-
*/
|
|
126
|
-
get partCount() {
|
|
127
|
-
return utils.getUint16(4, this);
|
|
128
|
-
}
|
|
129
|
-
set partCount(value) {
|
|
130
|
-
utils.setUint16(4, value, this);
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Which part this request targets -- a number in the range [0, partCount).
|
|
134
|
-
*
|
|
135
|
-
*/
|
|
136
|
-
get partNum() {
|
|
137
|
-
return utils.getUint16(6, this);
|
|
138
|
-
}
|
|
139
|
-
set partNum(value) {
|
|
140
|
-
utils.setUint16(6, value, this);
|
|
141
|
-
}
|
|
142
|
-
toString() {
|
|
143
|
-
return "JoinKeyPart_" + super.toString();
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
var JoinResult = class extends Struct {
|
|
147
|
-
static {
|
|
148
|
-
__name(this, "JoinResult");
|
|
149
|
-
}
|
|
150
|
-
static _capnp = {
|
|
151
|
-
displayName: "JoinResult",
|
|
152
|
-
id: "9d263a3630b7ebee",
|
|
153
|
-
size: new ObjectSize(8, 1)
|
|
154
|
-
};
|
|
155
|
-
/**
|
|
156
|
-
* Matches `JoinKeyPart`.
|
|
157
|
-
*
|
|
158
|
-
*/
|
|
159
|
-
get joinId() {
|
|
160
|
-
return utils.getUint32(0, this);
|
|
161
|
-
}
|
|
162
|
-
set joinId(value) {
|
|
163
|
-
utils.setUint32(0, value, this);
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* All JoinResults in the set will have the same value for `succeeded`. The receiver actually
|
|
167
|
-
* implements the join by waiting for all the `JoinKeyParts` and then performing its own join on
|
|
168
|
-
* them, then going back and answering all the join requests afterwards.
|
|
169
|
-
*
|
|
170
|
-
*/
|
|
171
|
-
get succeeded() {
|
|
172
|
-
return utils.getBit(32, this);
|
|
173
|
-
}
|
|
174
|
-
set succeeded(value) {
|
|
175
|
-
utils.setBit(32, value, this);
|
|
176
|
-
}
|
|
177
|
-
_adoptCap(value) {
|
|
178
|
-
utils.adopt(value, utils.getPointer(0, this));
|
|
179
|
-
}
|
|
180
|
-
_disownCap() {
|
|
181
|
-
return utils.disown(this.cap);
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* One of the JoinResults will have a non-null `cap` which is the joined capability.
|
|
185
|
-
*
|
|
186
|
-
*/
|
|
187
|
-
get cap() {
|
|
188
|
-
return utils.getPointer(0, this);
|
|
189
|
-
}
|
|
190
|
-
_hasCap() {
|
|
191
|
-
return !utils.isNull(utils.getPointer(0, this));
|
|
192
|
-
}
|
|
193
|
-
set cap(value) {
|
|
194
|
-
utils.copyFrom(value, utils.getPointer(0, this));
|
|
195
|
-
}
|
|
196
|
-
toString() {
|
|
197
|
-
return "JoinResult_" + super.toString();
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
export {
|
|
201
|
-
JoinKeyPart,
|
|
202
|
-
JoinResult,
|
|
203
|
-
ProvisionId,
|
|
204
|
-
RecipientId,
|
|
205
|
-
Side,
|
|
206
|
-
ThirdPartyCapId,
|
|
207
|
-
VatId,
|
|
208
|
-
_capnpFileId
|
|
209
|
-
};
|