@stryke/capnp 0.10.2 → 0.10.3
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 -1
- package/bin/capnpc.js +7 -1
- package/dist/{chunk-55455L4M.cjs → chunk-I7MRPN6I.cjs} +8 -2
- package/dist/{chunk-3ZOLKZQQ.cjs → chunk-L3LVFSZK.cjs} +18 -2
- package/dist/{chunk-GWW6WBAL.js → chunk-SW7GJVYC.js} +7 -1
- package/dist/{chunk-3IOIINHW.js → chunk-XU7T5EQG.js} +17 -1
- package/dist/compile.cjs +3 -3
- package/dist/compile.js +2 -2
- package/dist/helpers.cjs +2 -2
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +2 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dts/index.d.cts +1 -1
- package/dts/index.d.ts +1 -1
- package/package.json +2 -2
- package/schemas/{chunk-BM2HWFSD.cjs → chunk-ERVRKJ2S.cjs} +12 -10
- package/schemas/{chunk-TAKPBFYZ.js → chunk-OKQBZPI3.js} +12 -10
- 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/schemas/rpc-twoparty.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkERVRKJ2Scjs = require('./chunk-ERVRKJ2S.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 _chunkERVRKJ2Scjs.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, _chunkERVRKJ2Scjs.ObjectSize)(8, 0)
|
|
42
42
|
}}
|
|
43
43
|
get side() {
|
|
44
|
-
return
|
|
44
|
+
return _chunkERVRKJ2Scjs.utils.getUint16(0, this);
|
|
45
45
|
}
|
|
46
46
|
set side(value) {
|
|
47
|
-
|
|
47
|
+
_chunkERVRKJ2Scjs.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 _chunkERVRKJ2Scjs.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, _chunkERVRKJ2Scjs.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 _chunkERVRKJ2Scjs.utils.getUint32(0, this);
|
|
68
68
|
}
|
|
69
69
|
set joinId(value) {
|
|
70
|
-
|
|
70
|
+
_chunkERVRKJ2Scjs.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 _chunkERVRKJ2Scjs.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, _chunkERVRKJ2Scjs.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 _chunkERVRKJ2Scjs.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, _chunkERVRKJ2Scjs.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 _chunkERVRKJ2Scjs.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, _chunkERVRKJ2Scjs.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 _chunkBM2HWFSDcjs.Struct {
|
|
|
114
114
|
*
|
|
115
115
|
*/
|
|
116
116
|
get joinId() {
|
|
117
|
-
return
|
|
117
|
+
return _chunkERVRKJ2Scjs.utils.getUint32(0, this);
|
|
118
118
|
}
|
|
119
119
|
set joinId(value) {
|
|
120
|
-
|
|
120
|
+
_chunkERVRKJ2Scjs.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 _chunkERVRKJ2Scjs.utils.getUint16(4, this);
|
|
128
128
|
}
|
|
129
129
|
set partCount(value) {
|
|
130
|
-
|
|
130
|
+
_chunkERVRKJ2Scjs.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 _chunkERVRKJ2Scjs.utils.getUint16(6, this);
|
|
138
138
|
}
|
|
139
139
|
set partNum(value) {
|
|
140
|
-
|
|
140
|
+
_chunkERVRKJ2Scjs.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 _chunkERVRKJ2Scjs.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, _chunkERVRKJ2Scjs.ObjectSize)(8, 1)
|
|
154
154
|
}}
|
|
155
155
|
/**
|
|
156
156
|
* Matches `JoinKeyPart`.
|
|
157
157
|
*
|
|
158
158
|
*/
|
|
159
159
|
get joinId() {
|
|
160
|
-
return
|
|
160
|
+
return _chunkERVRKJ2Scjs.utils.getUint32(0, this);
|
|
161
161
|
}
|
|
162
162
|
set joinId(value) {
|
|
163
|
-
|
|
163
|
+
_chunkERVRKJ2Scjs.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 _chunkBM2HWFSDcjs.Struct {
|
|
|
169
169
|
*
|
|
170
170
|
*/
|
|
171
171
|
get succeeded() {
|
|
172
|
-
return
|
|
172
|
+
return _chunkERVRKJ2Scjs.utils.getBit(32, this);
|
|
173
173
|
}
|
|
174
174
|
set succeeded(value) {
|
|
175
|
-
|
|
175
|
+
_chunkERVRKJ2Scjs.utils.setBit(32, value, this);
|
|
176
176
|
}
|
|
177
177
|
_adoptCap(value) {
|
|
178
|
-
|
|
178
|
+
_chunkERVRKJ2Scjs.utils.adopt(value, _chunkERVRKJ2Scjs.utils.getPointer(0, this));
|
|
179
179
|
}
|
|
180
180
|
_disownCap() {
|
|
181
|
-
return
|
|
181
|
+
return _chunkERVRKJ2Scjs.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 _chunkERVRKJ2Scjs.utils.getPointer(0, this);
|
|
189
189
|
}
|
|
190
190
|
_hasCap() {
|
|
191
|
-
return !
|
|
191
|
+
return !_chunkERVRKJ2Scjs.utils.isNull(_chunkERVRKJ2Scjs.utils.getPointer(0, this));
|
|
192
192
|
}
|
|
193
193
|
set cap(value) {
|
|
194
|
-
|
|
194
|
+
_chunkERVRKJ2Scjs.utils.copyFrom(value, _chunkERVRKJ2Scjs.utils.getPointer(0, this));
|
|
195
195
|
}
|
|
196
196
|
toString() {
|
|
197
197
|
return "JoinResult_" + super.toString();
|