@stryke/capnp 0.12.33 → 0.12.42
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 +188 -8267
- 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 +221 -0
- package/bin/capnpc.mjs.map +1 -0
- package/dist/capnp-es.GpvEvMIK-BsgDzeBH.mjs +12 -0
- package/dist/capnp-es.GpvEvMIK-BsgDzeBH.mjs.map +1 -0
- package/dist/capnp-es.GpvEvMIK-xNDcbmgx.cjs +11 -0
- package/dist/compile-ChbJ-p6B.cjs +169 -0
- package/dist/compile-DJUj4hs3.mjs +163 -0
- package/dist/compile-DJUj4hs3.mjs.map +1 -0
- package/dist/compile-DccxA7WZ.d.cts +40 -0
- package/dist/compile-DccxA7WZ.d.cts.map +1 -0
- package/dist/compile-UkKIpqrK.d.mts +40 -0
- package/dist/compile-UkKIpqrK.d.mts.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-C1gSYYrg.cjs +1 -0
- package/dist/dist-CK47iMja.mjs +2 -0
- package/dist/dist-CK47iMja.mjs.map +1 -0
- package/dist/helpers-BoKbpcuO.mjs +27 -0
- package/dist/helpers-BoKbpcuO.mjs.map +1 -0
- package/dist/helpers-DSMRKdw1.cjs +26 -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-BujoAx-K.mjs +2 -0
- package/dist/types-BujoAx-K.mjs.map +1 -0
- package/dist/types-D03SjfBL.d.mts +55 -0
- package/dist/types-D03SjfBL.d.mts.map +1 -0
- package/dist/types-D52qMMoK.d.cts +55 -0
- package/dist/types-D52qMMoK.d.cts.map +1 -0
- package/dist/types-D6FuBB1k.cjs +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-BAJMwFip.d.mts +96 -0
- package/schemas/index-BAJMwFip.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-CGrmR2BO.cjs +11 -0
- package/schemas/src-DqIy7I3p.mjs +12 -0
- package/schemas/src-DqIy7I3p.mjs.map +1 -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 -8274
- package/dist/chunk-CCU32X36.js +0 -15
- package/dist/chunk-CR6KAGBK.cjs +0 -1083
- package/dist/chunk-GI42NGKQ.js +0 -3305
- package/dist/chunk-KMCJ5MIQ.cjs +0 -3305
- package/dist/chunk-KZJ47RES.cjs +0 -4107
- package/dist/chunk-LFP6TIPQ.cjs +0 -4760
- package/dist/chunk-PLGAFYIA.js +0 -4107
- package/dist/chunk-R2JXWA7Q.cjs +0 -15
- package/dist/chunk-SHUYVCID.js +0 -6
- package/dist/chunk-UGPSEAIJ.js +0 -1083
- 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/rpc.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as index_d_exports } from "./index-b7dam4EA.cjs";
|
|
2
2
|
|
|
3
|
+
//#region schemas/rpc.d.ts
|
|
3
4
|
declare const _capnpFileId: bigint;
|
|
4
5
|
declare const Message_Which: {
|
|
5
|
-
|
|
6
|
+
/**
|
|
6
7
|
* The sender previously received this message from the peer but didn't understand it or doesn't
|
|
7
8
|
* yet implement the functionality that was requested. So, the sender is echoing the message
|
|
8
9
|
* back. In some cases, the receiver may be able to recover from this by pretending the sender
|
|
@@ -21,8 +22,8 @@ declare const Message_Which: {
|
|
|
21
22
|
* a gray area; different implementations may take different approaches.
|
|
22
23
|
*
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
readonly UNIMPLEMENTED: 0;
|
|
26
|
+
/**
|
|
26
27
|
* Sent when a connection is being aborted due to an unrecoverable error. This could be e.g.
|
|
27
28
|
* because the sender received an invalid or nonsensical message or because the sender had an
|
|
28
29
|
* internal error. The sender will shut down the outgoing half of the connection after `abort`
|
|
@@ -31,98 +32,98 @@ declare const Message_Which: {
|
|
|
31
32
|
* connection is reset).
|
|
32
33
|
*
|
|
33
34
|
*/
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
readonly ABORT: 1;
|
|
36
|
+
/**
|
|
36
37
|
* Request the peer's bootstrap interface.
|
|
37
38
|
*
|
|
38
39
|
*/
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
readonly BOOTSTRAP: 8;
|
|
41
|
+
/**
|
|
41
42
|
* Begin a method call.
|
|
42
43
|
*
|
|
43
44
|
*/
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
readonly CALL: 2;
|
|
46
|
+
/**
|
|
46
47
|
* Complete a method call.
|
|
47
48
|
*
|
|
48
49
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
readonly RETURN: 3;
|
|
51
|
+
/**
|
|
51
52
|
* Release a returned answer / cancel a call.
|
|
52
53
|
*
|
|
53
54
|
*/
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
readonly FINISH: 4;
|
|
56
|
+
/**
|
|
56
57
|
* Resolve a previously-sent promise.
|
|
57
58
|
*
|
|
58
59
|
*/
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
readonly RESOLVE: 5;
|
|
61
|
+
/**
|
|
61
62
|
* Release a capability so that the remote object can be deallocated.
|
|
62
63
|
*
|
|
63
64
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
readonly RELEASE: 6;
|
|
66
|
+
/**
|
|
66
67
|
* Lift an embargo used to enforce E-order over promise resolution.
|
|
67
68
|
*
|
|
68
69
|
*/
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
readonly DISEMBARGO: 13;
|
|
71
|
+
/**
|
|
71
72
|
* Obsolete request to save a capability, resulting in a SturdyRef. This has been replaced
|
|
72
73
|
* by the `Persistent` interface defined in `persistent.capnp`. This operation was never
|
|
73
74
|
* implemented.
|
|
74
75
|
*
|
|
75
76
|
*/
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
readonly OBSOLETE_SAVE: 7;
|
|
78
|
+
/**
|
|
78
79
|
* Obsolete way to delete a SturdyRef. This operation was never implemented.
|
|
79
80
|
*
|
|
80
81
|
*/
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
readonly OBSOLETE_DELETE: 9;
|
|
83
|
+
/**
|
|
83
84
|
* Provide a capability to a third party.
|
|
84
85
|
*
|
|
85
86
|
*/
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
readonly PROVIDE: 10;
|
|
88
|
+
/**
|
|
88
89
|
* Accept a capability provided by a third party.
|
|
89
90
|
*
|
|
90
91
|
*/
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
readonly ACCEPT: 11;
|
|
93
|
+
/**
|
|
93
94
|
* Directly connect to the common root of two or more proxied caps.
|
|
94
95
|
*
|
|
95
96
|
*/
|
|
96
|
-
|
|
97
|
+
readonly JOIN: 12;
|
|
97
98
|
};
|
|
98
99
|
type Message_Which = (typeof Message_Which)[keyof typeof Message_Which];
|
|
99
100
|
/**
|
|
100
101
|
* An RPC connection is a bi-directional stream of Messages.
|
|
101
102
|
*
|
|
102
103
|
*/
|
|
103
|
-
declare class Message extends Struct {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
104
|
+
declare class Message extends index_d_exports.Struct {
|
|
105
|
+
static readonly UNIMPLEMENTED: 0;
|
|
106
|
+
static readonly ABORT: 1;
|
|
107
|
+
static readonly BOOTSTRAP: 8;
|
|
108
|
+
static readonly CALL: 2;
|
|
109
|
+
static readonly RETURN: 3;
|
|
110
|
+
static readonly FINISH: 4;
|
|
111
|
+
static readonly RESOLVE: 5;
|
|
112
|
+
static readonly RELEASE: 6;
|
|
113
|
+
static readonly DISEMBARGO: 13;
|
|
114
|
+
static readonly OBSOLETE_SAVE: 7;
|
|
115
|
+
static readonly OBSOLETE_DELETE: 9;
|
|
116
|
+
static readonly PROVIDE: 10;
|
|
117
|
+
static readonly ACCEPT: 11;
|
|
118
|
+
static readonly JOIN: 12;
|
|
119
|
+
static readonly _capnp: {
|
|
120
|
+
displayName: string;
|
|
121
|
+
id: string;
|
|
122
|
+
size: index_d_exports.ObjectSize;
|
|
123
|
+
};
|
|
124
|
+
_adoptUnimplemented(value: index_d_exports.Orphan<Message>): void;
|
|
125
|
+
_disownUnimplemented(): index_d_exports.Orphan<Message>;
|
|
126
|
+
/**
|
|
126
127
|
* The sender previously received this message from the peer but didn't understand it or doesn't
|
|
127
128
|
* yet implement the functionality that was requested. So, the sender is echoing the message
|
|
128
129
|
* back. In some cases, the receiver may be able to recover from this by pretending the sender
|
|
@@ -141,14 +142,14 @@ declare class Message extends Struct {
|
|
|
141
142
|
* a gray area; different implementations may take different approaches.
|
|
142
143
|
*
|
|
143
144
|
*/
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
145
|
+
get unimplemented(): Message;
|
|
146
|
+
_hasUnimplemented(): boolean;
|
|
147
|
+
_initUnimplemented(): Message;
|
|
148
|
+
get _isUnimplemented(): boolean;
|
|
149
|
+
set unimplemented(value: Message);
|
|
150
|
+
_adoptAbort(value: index_d_exports.Orphan<Exception>): void;
|
|
151
|
+
_disownAbort(): index_d_exports.Orphan<Exception>;
|
|
152
|
+
/**
|
|
152
153
|
* Sent when a connection is being aborted due to an unrecoverable error. This could be e.g.
|
|
153
154
|
* because the sender received an invalid or nonsensical message or because the sender had an
|
|
154
155
|
* internal error. The sender will shut down the outgoing half of the connection after `abort`
|
|
@@ -157,145 +158,145 @@ declare class Message extends Struct {
|
|
|
157
158
|
* connection is reset).
|
|
158
159
|
*
|
|
159
160
|
*/
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
161
|
+
get abort(): Exception;
|
|
162
|
+
_hasAbort(): boolean;
|
|
163
|
+
_initAbort(): Exception;
|
|
164
|
+
get _isAbort(): boolean;
|
|
165
|
+
set abort(value: Exception);
|
|
166
|
+
_adoptBootstrap(value: index_d_exports.Orphan<Bootstrap>): void;
|
|
167
|
+
_disownBootstrap(): index_d_exports.Orphan<Bootstrap>;
|
|
168
|
+
/**
|
|
168
169
|
* Request the peer's bootstrap interface.
|
|
169
170
|
*
|
|
170
171
|
*/
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
172
|
+
get bootstrap(): Bootstrap;
|
|
173
|
+
_hasBootstrap(): boolean;
|
|
174
|
+
_initBootstrap(): Bootstrap;
|
|
175
|
+
get _isBootstrap(): boolean;
|
|
176
|
+
set bootstrap(value: Bootstrap);
|
|
177
|
+
_adoptCall(value: index_d_exports.Orphan<Call>): void;
|
|
178
|
+
_disownCall(): index_d_exports.Orphan<Call>;
|
|
179
|
+
/**
|
|
179
180
|
* Begin a method call.
|
|
180
181
|
*
|
|
181
182
|
*/
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
183
|
+
get call(): Call;
|
|
184
|
+
_hasCall(): boolean;
|
|
185
|
+
_initCall(): Call;
|
|
186
|
+
get _isCall(): boolean;
|
|
187
|
+
set call(value: Call);
|
|
188
|
+
_adoptReturn(value: index_d_exports.Orphan<Return>): void;
|
|
189
|
+
_disownReturn(): index_d_exports.Orphan<Return>;
|
|
190
|
+
/**
|
|
190
191
|
* Complete a method call.
|
|
191
192
|
*
|
|
192
193
|
*/
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
194
|
+
get return(): Return;
|
|
195
|
+
_hasReturn(): boolean;
|
|
196
|
+
_initReturn(): Return;
|
|
197
|
+
get _isReturn(): boolean;
|
|
198
|
+
set return(value: Return);
|
|
199
|
+
_adoptFinish(value: index_d_exports.Orphan<Finish>): void;
|
|
200
|
+
_disownFinish(): index_d_exports.Orphan<Finish>;
|
|
201
|
+
/**
|
|
201
202
|
* Release a returned answer / cancel a call.
|
|
202
203
|
*
|
|
203
204
|
*/
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
205
|
+
get finish(): Finish;
|
|
206
|
+
_hasFinish(): boolean;
|
|
207
|
+
_initFinish(): Finish;
|
|
208
|
+
get _isFinish(): boolean;
|
|
209
|
+
set finish(value: Finish);
|
|
210
|
+
_adoptResolve(value: index_d_exports.Orphan<Resolve>): void;
|
|
211
|
+
_disownResolve(): index_d_exports.Orphan<Resolve>;
|
|
212
|
+
/**
|
|
212
213
|
* Resolve a previously-sent promise.
|
|
213
214
|
*
|
|
214
215
|
*/
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
216
|
+
get resolve(): Resolve;
|
|
217
|
+
_hasResolve(): boolean;
|
|
218
|
+
_initResolve(): Resolve;
|
|
219
|
+
get _isResolve(): boolean;
|
|
220
|
+
set resolve(value: Resolve);
|
|
221
|
+
_adoptRelease(value: index_d_exports.Orphan<Release>): void;
|
|
222
|
+
_disownRelease(): index_d_exports.Orphan<Release>;
|
|
223
|
+
/**
|
|
223
224
|
* Release a capability so that the remote object can be deallocated.
|
|
224
225
|
*
|
|
225
226
|
*/
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
227
|
+
get release(): Release;
|
|
228
|
+
_hasRelease(): boolean;
|
|
229
|
+
_initRelease(): Release;
|
|
230
|
+
get _isRelease(): boolean;
|
|
231
|
+
set release(value: Release);
|
|
232
|
+
_adoptDisembargo(value: index_d_exports.Orphan<Disembargo>): void;
|
|
233
|
+
_disownDisembargo(): index_d_exports.Orphan<Disembargo>;
|
|
234
|
+
/**
|
|
234
235
|
* Lift an embargo used to enforce E-order over promise resolution.
|
|
235
236
|
*
|
|
236
237
|
*/
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
238
|
+
get disembargo(): Disembargo;
|
|
239
|
+
_hasDisembargo(): boolean;
|
|
240
|
+
_initDisembargo(): Disembargo;
|
|
241
|
+
get _isDisembargo(): boolean;
|
|
242
|
+
set disembargo(value: Disembargo);
|
|
243
|
+
_adoptObsoleteSave(value: index_d_exports.Orphan<index_d_exports.Pointer>): void;
|
|
244
|
+
_disownObsoleteSave(): index_d_exports.Orphan<index_d_exports.Pointer>;
|
|
245
|
+
/**
|
|
245
246
|
* Obsolete request to save a capability, resulting in a SturdyRef. This has been replaced
|
|
246
247
|
* by the `Persistent` interface defined in `persistent.capnp`. This operation was never
|
|
247
248
|
* implemented.
|
|
248
249
|
*
|
|
249
250
|
*/
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
251
|
+
get obsoleteSave(): index_d_exports.Pointer;
|
|
252
|
+
_hasObsoleteSave(): boolean;
|
|
253
|
+
get _isObsoleteSave(): boolean;
|
|
254
|
+
set obsoleteSave(value: index_d_exports.Pointer);
|
|
255
|
+
_adoptObsoleteDelete(value: index_d_exports.Orphan<index_d_exports.Pointer>): void;
|
|
256
|
+
_disownObsoleteDelete(): index_d_exports.Orphan<index_d_exports.Pointer>;
|
|
257
|
+
/**
|
|
257
258
|
* Obsolete way to delete a SturdyRef. This operation was never implemented.
|
|
258
259
|
*
|
|
259
260
|
*/
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
261
|
+
get obsoleteDelete(): index_d_exports.Pointer;
|
|
262
|
+
_hasObsoleteDelete(): boolean;
|
|
263
|
+
get _isObsoleteDelete(): boolean;
|
|
264
|
+
set obsoleteDelete(value: index_d_exports.Pointer);
|
|
265
|
+
_adoptProvide(value: index_d_exports.Orphan<Provide>): void;
|
|
266
|
+
_disownProvide(): index_d_exports.Orphan<Provide>;
|
|
267
|
+
/**
|
|
267
268
|
* Provide a capability to a third party.
|
|
268
269
|
*
|
|
269
270
|
*/
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
271
|
+
get provide(): Provide;
|
|
272
|
+
_hasProvide(): boolean;
|
|
273
|
+
_initProvide(): Provide;
|
|
274
|
+
get _isProvide(): boolean;
|
|
275
|
+
set provide(value: Provide);
|
|
276
|
+
_adoptAccept(value: index_d_exports.Orphan<Accept>): void;
|
|
277
|
+
_disownAccept(): index_d_exports.Orphan<Accept>;
|
|
278
|
+
/**
|
|
278
279
|
* Accept a capability provided by a third party.
|
|
279
280
|
*
|
|
280
281
|
*/
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
282
|
+
get accept(): Accept;
|
|
283
|
+
_hasAccept(): boolean;
|
|
284
|
+
_initAccept(): Accept;
|
|
285
|
+
get _isAccept(): boolean;
|
|
286
|
+
set accept(value: Accept);
|
|
287
|
+
_adoptJoin(value: index_d_exports.Orphan<Join>): void;
|
|
288
|
+
_disownJoin(): index_d_exports.Orphan<Join>;
|
|
289
|
+
/**
|
|
289
290
|
* Directly connect to the common root of two or more proxied caps.
|
|
290
291
|
*
|
|
291
292
|
*/
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
293
|
+
get join(): Join;
|
|
294
|
+
_hasJoin(): boolean;
|
|
295
|
+
_initJoin(): Join;
|
|
296
|
+
get _isJoin(): boolean;
|
|
297
|
+
set join(value: Join);
|
|
298
|
+
toString(): string;
|
|
299
|
+
which(): Message_Which;
|
|
299
300
|
}
|
|
300
301
|
/**
|
|
301
302
|
* **(level 0)**
|
|
@@ -329,22 +330,22 @@ declare class Message extends Struct {
|
|
|
329
330
|
* `Return` indicating an exception, or should return a dummy capability with no methods.
|
|
330
331
|
*
|
|
331
332
|
*/
|
|
332
|
-
declare class Bootstrap extends Struct {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
333
|
+
declare class Bootstrap extends index_d_exports.Struct {
|
|
334
|
+
static readonly _capnp: {
|
|
335
|
+
displayName: string;
|
|
336
|
+
id: string;
|
|
337
|
+
size: index_d_exports.ObjectSize;
|
|
338
|
+
};
|
|
339
|
+
/**
|
|
339
340
|
* A new question ID identifying this request, which will eventually receive a Return message
|
|
340
341
|
* containing the restored capability.
|
|
341
342
|
*
|
|
342
343
|
*/
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
344
|
+
get questionId(): number;
|
|
345
|
+
set questionId(value: number);
|
|
346
|
+
_adoptDeprecatedObjectId(value: index_d_exports.Orphan<index_d_exports.Pointer>): void;
|
|
347
|
+
_disownDeprecatedObjectId(): index_d_exports.Orphan<index_d_exports.Pointer>;
|
|
348
|
+
/**
|
|
348
349
|
* ** DEPRECATED **
|
|
349
350
|
*
|
|
350
351
|
* A Vat may export multiple bootstrap interfaces. In this case, `deprecatedObjectId` specifies
|
|
@@ -420,18 +421,18 @@ declare class Bootstrap extends Struct {
|
|
|
420
421
|
* existence of the image in its collection.
|
|
421
422
|
*
|
|
422
423
|
*/
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
424
|
+
get deprecatedObjectId(): index_d_exports.Pointer;
|
|
425
|
+
_hasDeprecatedObjectId(): boolean;
|
|
426
|
+
set deprecatedObjectId(value: index_d_exports.Pointer);
|
|
427
|
+
toString(): string;
|
|
427
428
|
}
|
|
428
429
|
declare const Call_SendResultsTo_Which: {
|
|
429
|
-
|
|
430
|
+
/**
|
|
430
431
|
* Send the return message back to the caller (the usual).
|
|
431
432
|
*
|
|
432
433
|
*/
|
|
433
|
-
|
|
434
|
-
|
|
434
|
+
readonly CALLER: 0;
|
|
435
|
+
/**
|
|
435
436
|
* **(level 1)**
|
|
436
437
|
*
|
|
437
438
|
* Don't actually return the results to the sender. Instead, hold on to them and await
|
|
@@ -470,8 +471,8 @@ declare const Call_SendResultsTo_Which: {
|
|
|
470
471
|
* - Vat B receives the `Finish` for bar() and sends a `Finish` for bar'().
|
|
471
472
|
*
|
|
472
473
|
*/
|
|
473
|
-
|
|
474
|
-
|
|
474
|
+
readonly YOURSELF: 1;
|
|
475
|
+
/**
|
|
475
476
|
* **(level 3)**
|
|
476
477
|
*
|
|
477
478
|
* The call's result should be returned to a different vat. The receiver (the callee) expects
|
|
@@ -485,29 +486,29 @@ declare const Call_SendResultsTo_Which: {
|
|
|
485
486
|
* also sends a `Return` to Vat B with `resultsSentElsewhere`.
|
|
486
487
|
*
|
|
487
488
|
*/
|
|
488
|
-
|
|
489
|
+
readonly THIRD_PARTY: 2;
|
|
489
490
|
};
|
|
490
491
|
type Call_SendResultsTo_Which = (typeof Call_SendResultsTo_Which)[keyof typeof Call_SendResultsTo_Which];
|
|
491
492
|
/**
|
|
492
493
|
* Where should the return message be sent?
|
|
493
494
|
*
|
|
494
495
|
*/
|
|
495
|
-
declare class Call_SendResultsTo extends Struct {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
496
|
+
declare class Call_SendResultsTo extends index_d_exports.Struct {
|
|
497
|
+
static readonly CALLER: 0;
|
|
498
|
+
static readonly YOURSELF: 1;
|
|
499
|
+
static readonly THIRD_PARTY: 2;
|
|
500
|
+
static readonly _capnp: {
|
|
501
|
+
displayName: string;
|
|
502
|
+
id: string;
|
|
503
|
+
size: index_d_exports.ObjectSize;
|
|
504
|
+
};
|
|
505
|
+
get _isCaller(): boolean;
|
|
506
|
+
set caller(_: true);
|
|
507
|
+
get _isYourself(): boolean;
|
|
508
|
+
set yourself(_: true);
|
|
509
|
+
_adoptThirdParty(value: index_d_exports.Orphan<index_d_exports.Pointer>): void;
|
|
510
|
+
_disownThirdParty(): index_d_exports.Orphan<index_d_exports.Pointer>;
|
|
511
|
+
/**
|
|
511
512
|
* **(level 3)**
|
|
512
513
|
*
|
|
513
514
|
* The call's result should be returned to a different vat. The receiver (the callee) expects
|
|
@@ -521,12 +522,12 @@ declare class Call_SendResultsTo extends Struct {
|
|
|
521
522
|
* also sends a `Return` to Vat B with `resultsSentElsewhere`.
|
|
522
523
|
*
|
|
523
524
|
*/
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
525
|
+
get thirdParty(): index_d_exports.Pointer;
|
|
526
|
+
_hasThirdParty(): boolean;
|
|
527
|
+
get _isThirdParty(): boolean;
|
|
528
|
+
set thirdParty(value: index_d_exports.Pointer);
|
|
529
|
+
toString(): string;
|
|
530
|
+
which(): Call_SendResultsTo_Which;
|
|
530
531
|
}
|
|
531
532
|
/**
|
|
532
533
|
* **(level 0)**
|
|
@@ -534,16 +535,16 @@ declare class Call_SendResultsTo extends Struct {
|
|
|
534
535
|
* Message type initiating a method call on a capability.
|
|
535
536
|
*
|
|
536
537
|
*/
|
|
537
|
-
declare class Call extends Struct {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
538
|
+
declare class Call extends index_d_exports.Struct {
|
|
539
|
+
static readonly _capnp: {
|
|
540
|
+
displayName: string;
|
|
541
|
+
id: string;
|
|
542
|
+
size: index_d_exports.ObjectSize;
|
|
543
|
+
defaultAllowThirdPartyTailCall: DataView<ArrayBufferLike>;
|
|
544
|
+
defaultNoPromisePipelining: DataView<ArrayBufferLike>;
|
|
545
|
+
defaultOnlyPromisePipeline: DataView<ArrayBufferLike>;
|
|
546
|
+
};
|
|
547
|
+
/**
|
|
547
548
|
* A number, chosen by the caller, that identifies this call in future messages. This number
|
|
548
549
|
* must be different from all other calls originating from the same end of the connection (but
|
|
549
550
|
* may overlap with question IDs originating from the opposite end). A fine strategy is to use
|
|
@@ -554,39 +555,39 @@ declare class Call extends Struct {
|
|
|
554
555
|
* - A matching Finish has been sent from the caller.
|
|
555
556
|
*
|
|
556
557
|
*/
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
558
|
+
get questionId(): number;
|
|
559
|
+
set questionId(value: number);
|
|
560
|
+
_adoptTarget(value: index_d_exports.Orphan<MessageTarget>): void;
|
|
561
|
+
_disownTarget(): index_d_exports.Orphan<MessageTarget>;
|
|
562
|
+
/**
|
|
562
563
|
* The object that should receive this call.
|
|
563
564
|
*
|
|
564
565
|
*/
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
566
|
+
get target(): MessageTarget;
|
|
567
|
+
_hasTarget(): boolean;
|
|
568
|
+
_initTarget(): MessageTarget;
|
|
569
|
+
set target(value: MessageTarget);
|
|
570
|
+
/**
|
|
570
571
|
* The type ID of the interface being called. Each capability may implement multiple interfaces.
|
|
571
572
|
*
|
|
572
573
|
*/
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
574
|
+
get interfaceId(): bigint;
|
|
575
|
+
set interfaceId(value: bigint);
|
|
576
|
+
/**
|
|
576
577
|
* The ordinal number of the method to call within the requested interface.
|
|
577
578
|
*
|
|
578
579
|
*/
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
580
|
+
get methodId(): number;
|
|
581
|
+
set methodId(value: number);
|
|
582
|
+
/**
|
|
582
583
|
* Indicates whether or not the receiver is allowed to send a `Return` containing
|
|
583
584
|
* `acceptFromThirdParty`. Level 3 implementations should set this true. Otherwise, the callee
|
|
584
585
|
* will have to proxy the return in the case of a tail call to a third-party vat.
|
|
585
586
|
*
|
|
586
587
|
*/
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
588
|
+
get allowThirdPartyTailCall(): boolean;
|
|
589
|
+
set allowThirdPartyTailCall(value: boolean);
|
|
590
|
+
/**
|
|
590
591
|
* If true, the sender promises that it won't make any promise-pipelined calls on the results of
|
|
591
592
|
* this call. If it breaks this promise, the receiver may throw an arbitrary error from such
|
|
592
593
|
* calls.
|
|
@@ -596,9 +597,9 @@ declare class Call extends Struct {
|
|
|
596
597
|
* schema does not specify any return capabilities.
|
|
597
598
|
*
|
|
598
599
|
*/
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
600
|
+
get noPromisePipelining(): boolean;
|
|
601
|
+
set noPromisePipelining(value: boolean);
|
|
602
|
+
/**
|
|
602
603
|
* If true, the sender only plans to use this call to make pipelined calls. The receiver need not
|
|
603
604
|
* send a `Return` message (but is still allowed to do so).
|
|
604
605
|
*
|
|
@@ -614,34 +615,34 @@ declare class Call extends Struct {
|
|
|
614
615
|
* the implementation stops using this hint.
|
|
615
616
|
*
|
|
616
617
|
*/
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
618
|
+
get onlyPromisePipeline(): boolean;
|
|
619
|
+
set onlyPromisePipeline(value: boolean);
|
|
620
|
+
_adoptParams(value: index_d_exports.Orphan<Payload>): void;
|
|
621
|
+
_disownParams(): index_d_exports.Orphan<Payload>;
|
|
622
|
+
/**
|
|
622
623
|
* The call parameters. `params.content` is a struct whose fields correspond to the parameters of
|
|
623
624
|
* the method.
|
|
624
625
|
*
|
|
625
626
|
*/
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
627
|
+
get params(): Payload;
|
|
628
|
+
_hasParams(): boolean;
|
|
629
|
+
_initParams(): Payload;
|
|
630
|
+
set params(value: Payload);
|
|
631
|
+
/**
|
|
631
632
|
* Where should the return message be sent?
|
|
632
633
|
*
|
|
633
634
|
*/
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
635
|
+
get sendResultsTo(): Call_SendResultsTo;
|
|
636
|
+
_initSendResultsTo(): Call_SendResultsTo;
|
|
637
|
+
toString(): string;
|
|
637
638
|
}
|
|
638
639
|
declare const Return_Which: {
|
|
639
|
-
|
|
640
|
+
/**
|
|
640
641
|
* Equal to the QuestionId of the corresponding `Call` message.
|
|
641
642
|
*
|
|
642
643
|
*/
|
|
643
|
-
|
|
644
|
-
|
|
644
|
+
readonly RESULTS: 0;
|
|
645
|
+
/**
|
|
645
646
|
* If true, all capabilities that were in the params should be considered released. The sender
|
|
646
647
|
* must not send separate `Release` messages for them. Level 0 implementations in particular
|
|
647
648
|
* should always set this true. This defaults true because if level 0 implementations forget to
|
|
@@ -652,8 +653,8 @@ declare const Return_Which: {
|
|
|
652
653
|
* CapDescriptor in the original Call message.
|
|
653
654
|
*
|
|
654
655
|
*/
|
|
655
|
-
|
|
656
|
-
|
|
656
|
+
readonly EXCEPTION: 1;
|
|
657
|
+
/**
|
|
657
658
|
* The result.
|
|
658
659
|
*
|
|
659
660
|
* For regular method calls, `results.content` points to the result struct.
|
|
@@ -663,19 +664,19 @@ declare const Return_Which: {
|
|
|
663
664
|
* index 0. A `Finish` is still required in this case.
|
|
664
665
|
*
|
|
665
666
|
*/
|
|
666
|
-
|
|
667
|
-
|
|
667
|
+
readonly CANCELED: 2;
|
|
668
|
+
/**
|
|
668
669
|
* Indicates that the call failed and explains why.
|
|
669
670
|
*
|
|
670
671
|
*/
|
|
671
|
-
|
|
672
|
-
|
|
672
|
+
readonly RESULTS_SENT_ELSEWHERE: 3;
|
|
673
|
+
/**
|
|
673
674
|
* Indicates that the call was canceled due to the caller sending a Finish message
|
|
674
675
|
* before the call had completed.
|
|
675
676
|
*
|
|
676
677
|
*/
|
|
677
|
-
|
|
678
|
-
|
|
678
|
+
readonly TAKE_FROM_OTHER_QUESTION: 4;
|
|
679
|
+
/**
|
|
679
680
|
* This is set when returning from a `Call` that had `sendResultsTo` set to something other
|
|
680
681
|
* than `caller`.
|
|
681
682
|
*
|
|
@@ -684,7 +685,7 @@ declare const Return_Which: {
|
|
|
684
685
|
* this.
|
|
685
686
|
*
|
|
686
687
|
*/
|
|
687
|
-
|
|
688
|
+
readonly ACCEPT_FROM_THIRD_PARTY: 5;
|
|
688
689
|
};
|
|
689
690
|
type Return_Which = (typeof Return_Which)[keyof typeof Return_Which];
|
|
690
691
|
/**
|
|
@@ -693,27 +694,27 @@ type Return_Which = (typeof Return_Which)[keyof typeof Return_Which];
|
|
|
693
694
|
* Message type sent from callee to caller indicating that the call has completed.
|
|
694
695
|
*
|
|
695
696
|
*/
|
|
696
|
-
declare class Return extends Struct {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
697
|
+
declare class Return extends index_d_exports.Struct {
|
|
698
|
+
static readonly RESULTS: 0;
|
|
699
|
+
static readonly EXCEPTION: 1;
|
|
700
|
+
static readonly CANCELED: 2;
|
|
701
|
+
static readonly RESULTS_SENT_ELSEWHERE: 3;
|
|
702
|
+
static readonly TAKE_FROM_OTHER_QUESTION: 4;
|
|
703
|
+
static readonly ACCEPT_FROM_THIRD_PARTY: 5;
|
|
704
|
+
static readonly _capnp: {
|
|
705
|
+
displayName: string;
|
|
706
|
+
id: string;
|
|
707
|
+
size: index_d_exports.ObjectSize;
|
|
708
|
+
defaultReleaseParamCaps: DataView<ArrayBufferLike>;
|
|
709
|
+
defaultNoFinishNeeded: DataView<ArrayBufferLike>;
|
|
710
|
+
};
|
|
711
|
+
/**
|
|
711
712
|
* Equal to the QuestionId of the corresponding `Call` message.
|
|
712
713
|
*
|
|
713
714
|
*/
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
715
|
+
get answerId(): number;
|
|
716
|
+
set answerId(value: number);
|
|
717
|
+
/**
|
|
717
718
|
* If true, all capabilities that were in the params should be considered released. The sender
|
|
718
719
|
* must not send separate `Release` messages for them. Level 0 implementations in particular
|
|
719
720
|
* should always set this true. This defaults true because if level 0 implementations forget to
|
|
@@ -724,9 +725,9 @@ declare class Return extends Struct {
|
|
|
724
725
|
* CapDescriptor in the original Call message.
|
|
725
726
|
*
|
|
726
727
|
*/
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
728
|
+
get releaseParamCaps(): boolean;
|
|
729
|
+
set releaseParamCaps(value: boolean);
|
|
730
|
+
/**
|
|
730
731
|
* If true, the sender does not need the receiver to send a `Finish` message; its answer table
|
|
731
732
|
* entry has already been cleaned up. This implies that the results do not contain any
|
|
732
733
|
* capabilities, since the `Finish` message would normally release those capabilities from
|
|
@@ -734,11 +735,11 @@ declare class Return extends Struct {
|
|
|
734
735
|
* which will be silently ignored by the callee.
|
|
735
736
|
*
|
|
736
737
|
*/
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
738
|
+
get noFinishNeeded(): boolean;
|
|
739
|
+
set noFinishNeeded(value: boolean);
|
|
740
|
+
_adoptResults(value: index_d_exports.Orphan<Payload>): void;
|
|
741
|
+
_disownResults(): index_d_exports.Orphan<Payload>;
|
|
742
|
+
/**
|
|
742
743
|
* The result.
|
|
743
744
|
*
|
|
744
745
|
* For regular method calls, `results.content` points to the result struct.
|
|
@@ -748,38 +749,38 @@ declare class Return extends Struct {
|
|
|
748
749
|
* index 0. A `Finish` is still required in this case.
|
|
749
750
|
*
|
|
750
751
|
*/
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
752
|
+
get results(): Payload;
|
|
753
|
+
_hasResults(): boolean;
|
|
754
|
+
_initResults(): Payload;
|
|
755
|
+
get _isResults(): boolean;
|
|
756
|
+
set results(value: Payload);
|
|
757
|
+
_adoptException(value: index_d_exports.Orphan<Exception>): void;
|
|
758
|
+
_disownException(): index_d_exports.Orphan<Exception>;
|
|
759
|
+
/**
|
|
759
760
|
* Indicates that the call failed and explains why.
|
|
760
761
|
*
|
|
761
762
|
*/
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
763
|
+
get exception(): Exception;
|
|
764
|
+
_hasException(): boolean;
|
|
765
|
+
_initException(): Exception;
|
|
766
|
+
get _isException(): boolean;
|
|
767
|
+
set exception(value: Exception);
|
|
768
|
+
get _isCanceled(): boolean;
|
|
769
|
+
set canceled(_: true);
|
|
770
|
+
get _isResultsSentElsewhere(): boolean;
|
|
771
|
+
set resultsSentElsewhere(_: true);
|
|
772
|
+
/**
|
|
772
773
|
* The sender has also sent (before this message) a `Call` with the given question ID and with
|
|
773
774
|
* `sendResultsTo.yourself` set, and the results of that other call should be used as the
|
|
774
775
|
* results here. `takeFromOtherQuestion` can only used once per question.
|
|
775
776
|
*
|
|
776
777
|
*/
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
778
|
+
get takeFromOtherQuestion(): number;
|
|
779
|
+
get _isTakeFromOtherQuestion(): boolean;
|
|
780
|
+
set takeFromOtherQuestion(value: number);
|
|
781
|
+
_adoptAcceptFromThirdParty(value: index_d_exports.Orphan<index_d_exports.Pointer>): void;
|
|
782
|
+
_disownAcceptFromThirdParty(): index_d_exports.Orphan<index_d_exports.Pointer>;
|
|
783
|
+
/**
|
|
783
784
|
* **(level 3)**
|
|
784
785
|
*
|
|
785
786
|
* The caller should contact a third-party vat to pick up the results. An `Accept` message
|
|
@@ -787,12 +788,12 @@ declare class Return extends Struct {
|
|
|
787
788
|
* It should only be used if the corresponding `Call` had `allowThirdPartyTailCall` set.
|
|
788
789
|
*
|
|
789
790
|
*/
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
791
|
+
get acceptFromThirdParty(): index_d_exports.Pointer;
|
|
792
|
+
_hasAcceptFromThirdParty(): boolean;
|
|
793
|
+
get _isAcceptFromThirdParty(): boolean;
|
|
794
|
+
set acceptFromThirdParty(value: index_d_exports.Pointer);
|
|
795
|
+
toString(): string;
|
|
796
|
+
which(): Return_Which;
|
|
796
797
|
}
|
|
797
798
|
/**
|
|
798
799
|
* **(level 0)**
|
|
@@ -815,21 +816,21 @@ declare class Return extends Struct {
|
|
|
815
816
|
* pipelined calls, although this seems less useful (just saving some bytes on the wire).
|
|
816
817
|
*
|
|
817
818
|
*/
|
|
818
|
-
declare class Finish extends Struct {
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
819
|
+
declare class Finish extends index_d_exports.Struct {
|
|
820
|
+
static readonly _capnp: {
|
|
821
|
+
displayName: string;
|
|
822
|
+
id: string;
|
|
823
|
+
size: index_d_exports.ObjectSize;
|
|
824
|
+
defaultReleaseResultCaps: DataView<ArrayBufferLike>;
|
|
825
|
+
defaultRequireEarlyCancellationWorkaround: DataView<ArrayBufferLike>;
|
|
826
|
+
};
|
|
827
|
+
/**
|
|
827
828
|
* ID of the call whose result is to be released.
|
|
828
829
|
*
|
|
829
830
|
*/
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
831
|
+
get questionId(): number;
|
|
832
|
+
set questionId(value: number);
|
|
833
|
+
/**
|
|
833
834
|
* If true, all capabilities that were in the results should be considered released. The sender
|
|
834
835
|
* must not send separate `Release` messages for them. Level 0 implementations in particular
|
|
835
836
|
* should always set this true. This defaults true because if level 0 implementations forget to
|
|
@@ -837,9 +838,9 @@ declare class Finish extends Struct {
|
|
|
837
838
|
* set it false they'll quickly get errors.
|
|
838
839
|
*
|
|
839
840
|
*/
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
841
|
+
get releaseResultCaps(): boolean;
|
|
842
|
+
set releaseResultCaps(value: boolean);
|
|
843
|
+
/**
|
|
843
844
|
* If true, if the RPC system receives this Finish message before the original call has even been
|
|
844
845
|
* delivered, it should defer cancellation util after delivery. In particular, this gives the
|
|
845
846
|
* destination object a chance to opt out of cancellation, e.g. as controlled by the
|
|
@@ -854,12 +855,12 @@ declare class Finish extends Struct {
|
|
|
854
855
|
* See also comments in handleFinish() in rpc.c++ for more details.
|
|
855
856
|
*
|
|
856
857
|
*/
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
858
|
+
get requireEarlyCancellationWorkaround(): boolean;
|
|
859
|
+
set requireEarlyCancellationWorkaround(value: boolean);
|
|
860
|
+
toString(): string;
|
|
860
861
|
}
|
|
861
862
|
declare const Resolve_Which: {
|
|
862
|
-
|
|
863
|
+
/**
|
|
863
864
|
* The ID of the promise to be resolved.
|
|
864
865
|
*
|
|
865
866
|
* Unlike all other instances of `ExportId` sent from the exporter, the `Resolve` message does
|
|
@@ -882,8 +883,8 @@ declare const Resolve_Which: {
|
|
|
882
883
|
* receiver should simply release the capability to which the promise resolved.
|
|
883
884
|
*
|
|
884
885
|
*/
|
|
885
|
-
|
|
886
|
-
|
|
886
|
+
readonly CAP: 0;
|
|
887
|
+
/**
|
|
887
888
|
* The object to which the promise resolved.
|
|
888
889
|
*
|
|
889
890
|
* The sender promises that from this point forth, until `promiseId` is released, it shall
|
|
@@ -896,7 +897,7 @@ declare const Resolve_Which: {
|
|
|
896
897
|
* if that object is itself a promise.
|
|
897
898
|
*
|
|
898
899
|
*/
|
|
899
|
-
|
|
900
|
+
readonly EXCEPTION: 1;
|
|
900
901
|
};
|
|
901
902
|
type Resolve_Which = (typeof Resolve_Which)[keyof typeof Resolve_Which];
|
|
902
903
|
/**
|
|
@@ -918,15 +919,15 @@ type Resolve_Which = (typeof Resolve_Which)[keyof typeof Resolve_Which];
|
|
|
918
919
|
* below.
|
|
919
920
|
*
|
|
920
921
|
*/
|
|
921
|
-
declare class Resolve extends Struct {
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
922
|
+
declare class Resolve extends index_d_exports.Struct {
|
|
923
|
+
static readonly CAP: 0;
|
|
924
|
+
static readonly EXCEPTION: 1;
|
|
925
|
+
static readonly _capnp: {
|
|
926
|
+
displayName: string;
|
|
927
|
+
id: string;
|
|
928
|
+
size: index_d_exports.ObjectSize;
|
|
929
|
+
};
|
|
930
|
+
/**
|
|
930
931
|
* The ID of the promise to be resolved.
|
|
931
932
|
*
|
|
932
933
|
* Unlike all other instances of `ExportId` sent from the exporter, the `Resolve` message does
|
|
@@ -949,11 +950,11 @@ declare class Resolve extends Struct {
|
|
|
949
950
|
* receiver should simply release the capability to which the promise resolved.
|
|
950
951
|
*
|
|
951
952
|
*/
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
953
|
+
get promiseId(): number;
|
|
954
|
+
set promiseId(value: number);
|
|
955
|
+
_adoptCap(value: index_d_exports.Orphan<CapDescriptor>): void;
|
|
956
|
+
_disownCap(): index_d_exports.Orphan<CapDescriptor>;
|
|
957
|
+
/**
|
|
957
958
|
* The object to which the promise resolved.
|
|
958
959
|
*
|
|
959
960
|
* The sender promises that from this point forth, until `promiseId` is released, it shall
|
|
@@ -966,24 +967,24 @@ declare class Resolve extends Struct {
|
|
|
966
967
|
* if that object is itself a promise.
|
|
967
968
|
*
|
|
968
969
|
*/
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
970
|
+
get cap(): CapDescriptor;
|
|
971
|
+
_hasCap(): boolean;
|
|
972
|
+
_initCap(): CapDescriptor;
|
|
973
|
+
get _isCap(): boolean;
|
|
974
|
+
set cap(value: CapDescriptor);
|
|
975
|
+
_adoptException(value: index_d_exports.Orphan<Exception>): void;
|
|
976
|
+
_disownException(): index_d_exports.Orphan<Exception>;
|
|
977
|
+
/**
|
|
977
978
|
* Indicates that the promise was broken.
|
|
978
979
|
*
|
|
979
980
|
*/
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
981
|
+
get exception(): Exception;
|
|
982
|
+
_hasException(): boolean;
|
|
983
|
+
_initException(): Exception;
|
|
984
|
+
get _isException(): boolean;
|
|
985
|
+
set exception(value: Exception);
|
|
986
|
+
toString(): string;
|
|
987
|
+
which(): Resolve_Which;
|
|
987
988
|
}
|
|
988
989
|
/**
|
|
989
990
|
* **(level 1)**
|
|
@@ -992,29 +993,29 @@ declare class Resolve extends Struct {
|
|
|
992
993
|
* can free resources allocated to it.
|
|
993
994
|
*
|
|
994
995
|
*/
|
|
995
|
-
declare class Release extends Struct {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
996
|
+
declare class Release extends index_d_exports.Struct {
|
|
997
|
+
static readonly _capnp: {
|
|
998
|
+
displayName: string;
|
|
999
|
+
id: string;
|
|
1000
|
+
size: index_d_exports.ObjectSize;
|
|
1001
|
+
};
|
|
1002
|
+
/**
|
|
1002
1003
|
* What to release.
|
|
1003
1004
|
*
|
|
1004
1005
|
*/
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1006
|
+
get id(): number;
|
|
1007
|
+
set id(value: number);
|
|
1008
|
+
/**
|
|
1008
1009
|
* The amount by which to decrement the reference count. The export is only actually released
|
|
1009
1010
|
* when the reference count reaches zero.
|
|
1010
1011
|
*
|
|
1011
1012
|
*/
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1013
|
+
get referenceCount(): number;
|
|
1014
|
+
set referenceCount(value: number);
|
|
1015
|
+
toString(): string;
|
|
1015
1016
|
}
|
|
1016
1017
|
declare const Disembargo_Context_Which: {
|
|
1017
|
-
|
|
1018
|
+
/**
|
|
1018
1019
|
* The sender is requesting a disembargo on a promise that is known to resolve back to a
|
|
1019
1020
|
* capability hosted by the sender. As soon as the receiver has echoed back all pipelined calls
|
|
1020
1021
|
* on this promise, it will deliver the Disembargo back to the sender with `receiverLoopback`
|
|
@@ -1026,14 +1027,14 @@ declare const Disembargo_Context_Which: {
|
|
|
1026
1027
|
* vat. Otherwise, the sender has committed a protocol error and should be disconnected.
|
|
1027
1028
|
*
|
|
1028
1029
|
*/
|
|
1029
|
-
|
|
1030
|
-
|
|
1030
|
+
readonly SENDER_LOOPBACK: 0;
|
|
1031
|
+
/**
|
|
1031
1032
|
* The receiver previously sent a `senderLoopback` Disembargo towards a promise resolving to
|
|
1032
1033
|
* this capability, and that Disembargo is now being echoed back.
|
|
1033
1034
|
*
|
|
1034
1035
|
*/
|
|
1035
|
-
|
|
1036
|
-
|
|
1036
|
+
readonly RECEIVER_LOOPBACK: 1;
|
|
1037
|
+
/**
|
|
1037
1038
|
* **(level 3)**
|
|
1038
1039
|
*
|
|
1039
1040
|
* The sender is requesting a disembargo on a promise that is known to resolve to a third-party
|
|
@@ -1045,8 +1046,8 @@ declare const Disembargo_Context_Which: {
|
|
|
1045
1046
|
* See `Accept.embargo` for an example.
|
|
1046
1047
|
*
|
|
1047
1048
|
*/
|
|
1048
|
-
|
|
1049
|
-
|
|
1049
|
+
readonly ACCEPT: 2;
|
|
1050
|
+
/**
|
|
1050
1051
|
* **(level 3)**
|
|
1051
1052
|
*
|
|
1052
1053
|
* The sender is requesting a disembargo on a capability currently being provided to a third
|
|
@@ -1056,20 +1057,20 @@ declare const Disembargo_Context_Which: {
|
|
|
1056
1057
|
* an example.
|
|
1057
1058
|
*
|
|
1058
1059
|
*/
|
|
1059
|
-
|
|
1060
|
+
readonly PROVIDE: 3;
|
|
1060
1061
|
};
|
|
1061
1062
|
type Disembargo_Context_Which = (typeof Disembargo_Context_Which)[keyof typeof Disembargo_Context_Which];
|
|
1062
|
-
declare class Disembargo_Context extends Struct {
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1063
|
+
declare class Disembargo_Context extends index_d_exports.Struct {
|
|
1064
|
+
static readonly SENDER_LOOPBACK: 0;
|
|
1065
|
+
static readonly RECEIVER_LOOPBACK: 1;
|
|
1066
|
+
static readonly ACCEPT: 2;
|
|
1067
|
+
static readonly PROVIDE: 3;
|
|
1068
|
+
static readonly _capnp: {
|
|
1069
|
+
displayName: string;
|
|
1070
|
+
id: string;
|
|
1071
|
+
size: index_d_exports.ObjectSize;
|
|
1072
|
+
};
|
|
1073
|
+
/**
|
|
1073
1074
|
* The sender is requesting a disembargo on a promise that is known to resolve back to a
|
|
1074
1075
|
* capability hosted by the sender. As soon as the receiver has echoed back all pipelined calls
|
|
1075
1076
|
* on this promise, it will deliver the Disembargo back to the sender with `receiverLoopback`
|
|
@@ -1081,20 +1082,20 @@ declare class Disembargo_Context extends Struct {
|
|
|
1081
1082
|
* vat. Otherwise, the sender has committed a protocol error and should be disconnected.
|
|
1082
1083
|
*
|
|
1083
1084
|
*/
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1085
|
+
get senderLoopback(): number;
|
|
1086
|
+
get _isSenderLoopback(): boolean;
|
|
1087
|
+
set senderLoopback(value: number);
|
|
1088
|
+
/**
|
|
1088
1089
|
* The receiver previously sent a `senderLoopback` Disembargo towards a promise resolving to
|
|
1089
1090
|
* this capability, and that Disembargo is now being echoed back.
|
|
1090
1091
|
*
|
|
1091
1092
|
*/
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1093
|
+
get receiverLoopback(): number;
|
|
1094
|
+
get _isReceiverLoopback(): boolean;
|
|
1095
|
+
set receiverLoopback(value: number);
|
|
1096
|
+
get _isAccept(): boolean;
|
|
1097
|
+
set accept(_: true);
|
|
1098
|
+
/**
|
|
1098
1099
|
* **(level 3)**
|
|
1099
1100
|
*
|
|
1100
1101
|
* The sender is requesting a disembargo on a capability currently being provided to a third
|
|
@@ -1104,11 +1105,11 @@ declare class Disembargo_Context extends Struct {
|
|
|
1104
1105
|
* an example.
|
|
1105
1106
|
*
|
|
1106
1107
|
*/
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1108
|
+
get provide(): number;
|
|
1109
|
+
get _isProvide(): boolean;
|
|
1110
|
+
set provide(value: number);
|
|
1111
|
+
toString(): string;
|
|
1112
|
+
which(): Disembargo_Context_Which;
|
|
1112
1113
|
}
|
|
1113
1114
|
/**
|
|
1114
1115
|
* **(level 1)**
|
|
@@ -1183,25 +1184,25 @@ declare class Disembargo_Context extends Struct {
|
|
|
1183
1184
|
* 1 implementations, not just level 3 implementations.
|
|
1184
1185
|
*
|
|
1185
1186
|
*/
|
|
1186
|
-
declare class Disembargo extends Struct {
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1187
|
+
declare class Disembargo extends index_d_exports.Struct {
|
|
1188
|
+
static readonly _capnp: {
|
|
1189
|
+
displayName: string;
|
|
1190
|
+
id: string;
|
|
1191
|
+
size: index_d_exports.ObjectSize;
|
|
1192
|
+
};
|
|
1193
|
+
_adoptTarget(value: index_d_exports.Orphan<MessageTarget>): void;
|
|
1194
|
+
_disownTarget(): index_d_exports.Orphan<MessageTarget>;
|
|
1195
|
+
/**
|
|
1195
1196
|
* What is to be disembargoed.
|
|
1196
1197
|
*
|
|
1197
1198
|
*/
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1199
|
+
get target(): MessageTarget;
|
|
1200
|
+
_hasTarget(): boolean;
|
|
1201
|
+
_initTarget(): MessageTarget;
|
|
1202
|
+
set target(value: MessageTarget);
|
|
1203
|
+
get context(): Disembargo_Context;
|
|
1204
|
+
_initContext(): Disembargo_Context;
|
|
1205
|
+
toString(): string;
|
|
1205
1206
|
}
|
|
1206
1207
|
/**
|
|
1207
1208
|
* **(level 3)**
|
|
@@ -1214,41 +1215,41 @@ declare class Disembargo extends Struct {
|
|
|
1214
1215
|
* every vat. In Cap'n Proto, we bake this into the core protocol.)
|
|
1215
1216
|
*
|
|
1216
1217
|
*/
|
|
1217
|
-
declare class Provide extends Struct {
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1218
|
+
declare class Provide extends index_d_exports.Struct {
|
|
1219
|
+
static readonly _capnp: {
|
|
1220
|
+
displayName: string;
|
|
1221
|
+
id: string;
|
|
1222
|
+
size: index_d_exports.ObjectSize;
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1224
1225
|
* Question ID to be held open until the recipient has received the capability. A result will be
|
|
1225
1226
|
* returned once the third party has successfully received the capability. The sender must at some
|
|
1226
1227
|
* point send a `Finish` message as with any other call, and that message can be used to cancel the
|
|
1227
1228
|
* whole operation.
|
|
1228
1229
|
*
|
|
1229
1230
|
*/
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1231
|
+
get questionId(): number;
|
|
1232
|
+
set questionId(value: number);
|
|
1233
|
+
_adoptTarget(value: index_d_exports.Orphan<MessageTarget>): void;
|
|
1234
|
+
_disownTarget(): index_d_exports.Orphan<MessageTarget>;
|
|
1235
|
+
/**
|
|
1235
1236
|
* What is to be provided to the third party.
|
|
1236
1237
|
*
|
|
1237
1238
|
*/
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1239
|
+
get target(): MessageTarget;
|
|
1240
|
+
_hasTarget(): boolean;
|
|
1241
|
+
_initTarget(): MessageTarget;
|
|
1242
|
+
set target(value: MessageTarget);
|
|
1243
|
+
_adoptRecipient(value: index_d_exports.Orphan<index_d_exports.Pointer>): void;
|
|
1244
|
+
_disownRecipient(): index_d_exports.Orphan<index_d_exports.Pointer>;
|
|
1245
|
+
/**
|
|
1245
1246
|
* Identity of the third party that is expected to pick up the capability.
|
|
1246
1247
|
*
|
|
1247
1248
|
*/
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1249
|
+
get recipient(): index_d_exports.Pointer;
|
|
1250
|
+
_hasRecipient(): boolean;
|
|
1251
|
+
set recipient(value: index_d_exports.Pointer);
|
|
1252
|
+
toString(): string;
|
|
1252
1253
|
}
|
|
1253
1254
|
/**
|
|
1254
1255
|
* **(level 3)**
|
|
@@ -1259,30 +1260,30 @@ declare class Provide extends Struct {
|
|
|
1259
1260
|
* This message is also used to pick up a redirected return -- see `Return.acceptFromThirdParty`.
|
|
1260
1261
|
*
|
|
1261
1262
|
*/
|
|
1262
|
-
declare class Accept extends Struct {
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1263
|
+
declare class Accept extends index_d_exports.Struct {
|
|
1264
|
+
static readonly _capnp: {
|
|
1265
|
+
displayName: string;
|
|
1266
|
+
id: string;
|
|
1267
|
+
size: index_d_exports.ObjectSize;
|
|
1268
|
+
};
|
|
1269
|
+
/**
|
|
1269
1270
|
* A new question ID identifying this accept message, which will eventually receive a Return
|
|
1270
1271
|
* message containing the provided capability (or the call result in the case of a redirected
|
|
1271
1272
|
* return).
|
|
1272
1273
|
*
|
|
1273
1274
|
*/
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1275
|
+
get questionId(): number;
|
|
1276
|
+
set questionId(value: number);
|
|
1277
|
+
_adoptProvision(value: index_d_exports.Orphan<index_d_exports.Pointer>): void;
|
|
1278
|
+
_disownProvision(): index_d_exports.Orphan<index_d_exports.Pointer>;
|
|
1279
|
+
/**
|
|
1279
1280
|
* Identifies the provided object to be picked up.
|
|
1280
1281
|
*
|
|
1281
1282
|
*/
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1283
|
+
get provision(): index_d_exports.Pointer;
|
|
1284
|
+
_hasProvision(): boolean;
|
|
1285
|
+
set provision(value: index_d_exports.Pointer);
|
|
1286
|
+
/**
|
|
1286
1287
|
* If true, this accept shall be temporarily embargoed. The resulting `Return` will not be sent,
|
|
1287
1288
|
* and any pipelined calls will not be delivered, until the embargo is released. The receiver
|
|
1288
1289
|
* (the capability host) will expect the provider (the vat that sent the `Provide` message) to
|
|
@@ -1317,9 +1318,9 @@ declare class Accept extends Struct {
|
|
|
1317
1318
|
* Vat A, as well as deliver bar().
|
|
1318
1319
|
*
|
|
1319
1320
|
*/
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1321
|
+
get embargo(): boolean;
|
|
1322
|
+
set embargo(value: boolean);
|
|
1323
|
+
toString(): string;
|
|
1323
1324
|
}
|
|
1324
1325
|
/**
|
|
1325
1326
|
* **(level 4)**
|
|
@@ -1361,13 +1362,13 @@ declare class Accept extends Struct {
|
|
|
1361
1362
|
* connection.
|
|
1362
1363
|
*
|
|
1363
1364
|
*/
|
|
1364
|
-
declare class Join extends Struct {
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1365
|
+
declare class Join extends index_d_exports.Struct {
|
|
1366
|
+
static readonly _capnp: {
|
|
1367
|
+
displayName: string;
|
|
1368
|
+
id: string;
|
|
1369
|
+
size: index_d_exports.ObjectSize;
|
|
1370
|
+
};
|
|
1371
|
+
/**
|
|
1371
1372
|
* Question ID used to respond to this Join. (Note that this ID only identifies one part of the
|
|
1372
1373
|
* request for one hop; each part has a different ID and relayed copies of the request have
|
|
1373
1374
|
* (probably) different IDs still.)
|
|
@@ -1385,38 +1386,38 @@ declare class Join extends Struct {
|
|
|
1385
1386
|
* connects. It can then free any resources it had allocated as part of the join.
|
|
1386
1387
|
*
|
|
1387
1388
|
*/
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1389
|
+
get questionId(): number;
|
|
1390
|
+
set questionId(value: number);
|
|
1391
|
+
_adoptTarget(value: index_d_exports.Orphan<MessageTarget>): void;
|
|
1392
|
+
_disownTarget(): index_d_exports.Orphan<MessageTarget>;
|
|
1393
|
+
/**
|
|
1393
1394
|
* The capability to join.
|
|
1394
1395
|
*
|
|
1395
1396
|
*/
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1397
|
+
get target(): MessageTarget;
|
|
1398
|
+
_hasTarget(): boolean;
|
|
1399
|
+
_initTarget(): MessageTarget;
|
|
1400
|
+
set target(value: MessageTarget);
|
|
1401
|
+
_adoptKeyPart(value: index_d_exports.Orphan<index_d_exports.Pointer>): void;
|
|
1402
|
+
_disownKeyPart(): index_d_exports.Orphan<index_d_exports.Pointer>;
|
|
1403
|
+
/**
|
|
1403
1404
|
* A part of the join key. These combine to form the complete join key, which is used to establish
|
|
1404
1405
|
* a direct connection.
|
|
1405
1406
|
*
|
|
1406
1407
|
*/
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1408
|
+
get keyPart(): index_d_exports.Pointer;
|
|
1409
|
+
_hasKeyPart(): boolean;
|
|
1410
|
+
set keyPart(value: index_d_exports.Pointer);
|
|
1411
|
+
toString(): string;
|
|
1411
1412
|
}
|
|
1412
1413
|
declare const MessageTarget_Which: {
|
|
1413
|
-
|
|
1414
|
+
/**
|
|
1414
1415
|
* This message is to a capability or promise previously imported by the caller (exported by
|
|
1415
1416
|
* the receiver).
|
|
1416
1417
|
*
|
|
1417
1418
|
*/
|
|
1418
|
-
|
|
1419
|
-
|
|
1419
|
+
readonly IMPORTED_CAP: 0;
|
|
1420
|
+
/**
|
|
1420
1421
|
* This message is to a capability that is expected to be returned by another call that has not
|
|
1421
1422
|
* yet been completed.
|
|
1422
1423
|
*
|
|
@@ -1424,32 +1425,32 @@ declare const MessageTarget_Which: {
|
|
|
1424
1425
|
* that initial startup doesn't require a round trip.
|
|
1425
1426
|
*
|
|
1426
1427
|
*/
|
|
1427
|
-
|
|
1428
|
+
readonly PROMISED_ANSWER: 1;
|
|
1428
1429
|
};
|
|
1429
1430
|
type MessageTarget_Which = (typeof MessageTarget_Which)[keyof typeof MessageTarget_Which];
|
|
1430
1431
|
/**
|
|
1431
1432
|
* The target of a `Call` or other messages that target a capability.
|
|
1432
1433
|
*
|
|
1433
1434
|
*/
|
|
1434
|
-
declare class MessageTarget extends Struct {
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1435
|
+
declare class MessageTarget extends index_d_exports.Struct {
|
|
1436
|
+
static readonly IMPORTED_CAP: 0;
|
|
1437
|
+
static readonly PROMISED_ANSWER: 1;
|
|
1438
|
+
static readonly _capnp: {
|
|
1439
|
+
displayName: string;
|
|
1440
|
+
id: string;
|
|
1441
|
+
size: index_d_exports.ObjectSize;
|
|
1442
|
+
};
|
|
1443
|
+
/**
|
|
1443
1444
|
* This message is to a capability or promise previously imported by the caller (exported by
|
|
1444
1445
|
* the receiver).
|
|
1445
1446
|
*
|
|
1446
1447
|
*/
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1448
|
+
get importedCap(): number;
|
|
1449
|
+
get _isImportedCap(): boolean;
|
|
1450
|
+
set importedCap(value: number);
|
|
1451
|
+
_adoptPromisedAnswer(value: index_d_exports.Orphan<PromisedAnswer>): void;
|
|
1452
|
+
_disownPromisedAnswer(): index_d_exports.Orphan<PromisedAnswer>;
|
|
1453
|
+
/**
|
|
1453
1454
|
* This message is to a capability that is expected to be returned by another call that has not
|
|
1454
1455
|
* yet been completed.
|
|
1455
1456
|
*
|
|
@@ -1457,49 +1458,49 @@ declare class MessageTarget extends Struct {
|
|
|
1457
1458
|
* that initial startup doesn't require a round trip.
|
|
1458
1459
|
*
|
|
1459
1460
|
*/
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1461
|
+
get promisedAnswer(): PromisedAnswer;
|
|
1462
|
+
_hasPromisedAnswer(): boolean;
|
|
1463
|
+
_initPromisedAnswer(): PromisedAnswer;
|
|
1464
|
+
get _isPromisedAnswer(): boolean;
|
|
1465
|
+
set promisedAnswer(value: PromisedAnswer);
|
|
1466
|
+
toString(): string;
|
|
1467
|
+
which(): MessageTarget_Which;
|
|
1467
1468
|
}
|
|
1468
1469
|
/**
|
|
1469
1470
|
* Represents some data structure that might contain capabilities.
|
|
1470
1471
|
*
|
|
1471
1472
|
*/
|
|
1472
|
-
declare class Payload extends Struct {
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1473
|
+
declare class Payload extends index_d_exports.Struct {
|
|
1474
|
+
static readonly _capnp: {
|
|
1475
|
+
displayName: string;
|
|
1476
|
+
id: string;
|
|
1477
|
+
size: index_d_exports.ObjectSize;
|
|
1478
|
+
};
|
|
1479
|
+
static _CapTable: index_d_exports.ListCtor<CapDescriptor>;
|
|
1480
|
+
_adoptContent(value: index_d_exports.Orphan<index_d_exports.Pointer>): void;
|
|
1481
|
+
_disownContent(): index_d_exports.Orphan<index_d_exports.Pointer>;
|
|
1482
|
+
/**
|
|
1482
1483
|
* Some Cap'n Proto data structure. Capability pointers embedded in this structure index into
|
|
1483
1484
|
* `capTable`.
|
|
1484
1485
|
*
|
|
1485
1486
|
*/
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1487
|
+
get content(): index_d_exports.Pointer;
|
|
1488
|
+
_hasContent(): boolean;
|
|
1489
|
+
set content(value: index_d_exports.Pointer);
|
|
1490
|
+
_adoptCapTable(value: index_d_exports.Orphan<index_d_exports.List<CapDescriptor>>): void;
|
|
1491
|
+
_disownCapTable(): index_d_exports.Orphan<index_d_exports.List<CapDescriptor>>;
|
|
1492
|
+
/**
|
|
1492
1493
|
* Descriptors corresponding to the cap pointers in `content`.
|
|
1493
1494
|
*
|
|
1494
1495
|
*/
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1496
|
+
get capTable(): index_d_exports.List<CapDescriptor>;
|
|
1497
|
+
_hasCapTable(): boolean;
|
|
1498
|
+
_initCapTable(length: number): index_d_exports.List<CapDescriptor>;
|
|
1499
|
+
set capTable(value: index_d_exports.List<CapDescriptor>);
|
|
1500
|
+
toString(): string;
|
|
1500
1501
|
}
|
|
1501
1502
|
declare const CapDescriptor_Which: {
|
|
1502
|
-
|
|
1503
|
+
/**
|
|
1503
1504
|
* There is no capability here. This `CapDescriptor` should not appear in the payload content.
|
|
1504
1505
|
* A `none` CapDescriptor can be generated when an application inserts a capability into a
|
|
1505
1506
|
* message and then later changes its mind and removes it -- rewriting all of the other
|
|
@@ -1508,14 +1509,14 @@ declare const CapDescriptor_Which: {
|
|
|
1508
1509
|
* Hopefully this is unusual.
|
|
1509
1510
|
*
|
|
1510
1511
|
*/
|
|
1511
|
-
|
|
1512
|
-
|
|
1512
|
+
readonly NONE: 0;
|
|
1513
|
+
/**
|
|
1513
1514
|
* The ID of a capability in the sender's export table (receiver's import table). It may be a
|
|
1514
1515
|
* newly allocated table entry, or an existing entry (increments the reference count).
|
|
1515
1516
|
*
|
|
1516
1517
|
*/
|
|
1517
|
-
|
|
1518
|
-
|
|
1518
|
+
readonly SENDER_HOSTED: 1;
|
|
1519
|
+
/**
|
|
1519
1520
|
* A promise that the sender will resolve later. The sender will send exactly one Resolve
|
|
1520
1521
|
* message at a future point in time to replace this promise. Note that even if the same
|
|
1521
1522
|
* `senderPromise` is received multiple times, only one `Resolve` is sent to cover all of
|
|
@@ -1523,19 +1524,19 @@ declare const CapDescriptor_Which: {
|
|
|
1523
1524
|
* `CapDescriptor`) may choose not to send the `Resolve` at all.
|
|
1524
1525
|
*
|
|
1525
1526
|
*/
|
|
1526
|
-
|
|
1527
|
-
|
|
1527
|
+
readonly SENDER_PROMISE: 2;
|
|
1528
|
+
/**
|
|
1528
1529
|
* A capability (or promise) previously exported by the receiver (imported by the sender).
|
|
1529
1530
|
*
|
|
1530
1531
|
*/
|
|
1531
|
-
|
|
1532
|
-
|
|
1532
|
+
readonly RECEIVER_HOSTED: 3;
|
|
1533
|
+
/**
|
|
1533
1534
|
* A capability expected to be returned in the results of a currently-outstanding call posed
|
|
1534
1535
|
* by the sender.
|
|
1535
1536
|
*
|
|
1536
1537
|
*/
|
|
1537
|
-
|
|
1538
|
-
|
|
1538
|
+
readonly RECEIVER_ANSWER: 4;
|
|
1539
|
+
/**
|
|
1539
1540
|
* **(level 3)**
|
|
1540
1541
|
*
|
|
1541
1542
|
* A capability that lives in neither the sender's nor the receiver's vat. The sender needs
|
|
@@ -1545,7 +1546,7 @@ declare const CapDescriptor_Which: {
|
|
|
1545
1546
|
* `vine` instead.
|
|
1546
1547
|
*
|
|
1547
1548
|
*/
|
|
1548
|
-
|
|
1549
|
+
readonly THIRD_PARTY_HOSTED: 5;
|
|
1549
1550
|
};
|
|
1550
1551
|
type CapDescriptor_Which = (typeof CapDescriptor_Which)[keyof typeof CapDescriptor_Which];
|
|
1551
1552
|
/**
|
|
@@ -1566,30 +1567,30 @@ type CapDescriptor_Which = (typeof CapDescriptor_Which)[keyof typeof CapDescript
|
|
|
1566
1567
|
* broken capability, resolving it to an exception.
|
|
1567
1568
|
*
|
|
1568
1569
|
*/
|
|
1569
|
-
declare class CapDescriptor extends Struct {
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1570
|
+
declare class CapDescriptor extends index_d_exports.Struct {
|
|
1571
|
+
static readonly NONE: 0;
|
|
1572
|
+
static readonly SENDER_HOSTED: 1;
|
|
1573
|
+
static readonly SENDER_PROMISE: 2;
|
|
1574
|
+
static readonly RECEIVER_HOSTED: 3;
|
|
1575
|
+
static readonly RECEIVER_ANSWER: 4;
|
|
1576
|
+
static readonly THIRD_PARTY_HOSTED: 5;
|
|
1577
|
+
static readonly _capnp: {
|
|
1578
|
+
displayName: string;
|
|
1579
|
+
id: string;
|
|
1580
|
+
size: index_d_exports.ObjectSize;
|
|
1581
|
+
defaultAttachedFd: DataView<ArrayBufferLike>;
|
|
1582
|
+
};
|
|
1583
|
+
get _isNone(): boolean;
|
|
1584
|
+
set none(_: true);
|
|
1585
|
+
/**
|
|
1585
1586
|
* The ID of a capability in the sender's export table (receiver's import table). It may be a
|
|
1586
1587
|
* newly allocated table entry, or an existing entry (increments the reference count).
|
|
1587
1588
|
*
|
|
1588
1589
|
*/
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1590
|
+
get senderHosted(): number;
|
|
1591
|
+
get _isSenderHosted(): boolean;
|
|
1592
|
+
set senderHosted(value: number);
|
|
1593
|
+
/**
|
|
1593
1594
|
* A promise that the sender will resolve later. The sender will send exactly one Resolve
|
|
1594
1595
|
* message at a future point in time to replace this promise. Note that even if the same
|
|
1595
1596
|
* `senderPromise` is received multiple times, only one `Resolve` is sent to cover all of
|
|
@@ -1597,31 +1598,31 @@ declare class CapDescriptor extends Struct {
|
|
|
1597
1598
|
* `CapDescriptor`) may choose not to send the `Resolve` at all.
|
|
1598
1599
|
*
|
|
1599
1600
|
*/
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1601
|
+
get senderPromise(): number;
|
|
1602
|
+
get _isSenderPromise(): boolean;
|
|
1603
|
+
set senderPromise(value: number);
|
|
1604
|
+
/**
|
|
1604
1605
|
* A capability (or promise) previously exported by the receiver (imported by the sender).
|
|
1605
1606
|
*
|
|
1606
1607
|
*/
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1608
|
+
get receiverHosted(): number;
|
|
1609
|
+
get _isReceiverHosted(): boolean;
|
|
1610
|
+
set receiverHosted(value: number);
|
|
1611
|
+
_adoptReceiverAnswer(value: index_d_exports.Orphan<PromisedAnswer>): void;
|
|
1612
|
+
_disownReceiverAnswer(): index_d_exports.Orphan<PromisedAnswer>;
|
|
1613
|
+
/**
|
|
1613
1614
|
* A capability expected to be returned in the results of a currently-outstanding call posed
|
|
1614
1615
|
* by the sender.
|
|
1615
1616
|
*
|
|
1616
1617
|
*/
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1618
|
+
get receiverAnswer(): PromisedAnswer;
|
|
1619
|
+
_hasReceiverAnswer(): boolean;
|
|
1620
|
+
_initReceiverAnswer(): PromisedAnswer;
|
|
1621
|
+
get _isReceiverAnswer(): boolean;
|
|
1622
|
+
set receiverAnswer(value: PromisedAnswer);
|
|
1623
|
+
_adoptThirdPartyHosted(value: index_d_exports.Orphan<ThirdPartyCapDescriptor>): void;
|
|
1624
|
+
_disownThirdPartyHosted(): index_d_exports.Orphan<ThirdPartyCapDescriptor>;
|
|
1625
|
+
/**
|
|
1625
1626
|
* **(level 3)**
|
|
1626
1627
|
*
|
|
1627
1628
|
* A capability that lives in neither the sender's nor the receiver's vat. The sender needs
|
|
@@ -1631,12 +1632,12 @@ declare class CapDescriptor extends Struct {
|
|
|
1631
1632
|
* `vine` instead.
|
|
1632
1633
|
*
|
|
1633
1634
|
*/
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1635
|
+
get thirdPartyHosted(): ThirdPartyCapDescriptor;
|
|
1636
|
+
_hasThirdPartyHosted(): boolean;
|
|
1637
|
+
_initThirdPartyHosted(): ThirdPartyCapDescriptor;
|
|
1638
|
+
get _isThirdPartyHosted(): boolean;
|
|
1639
|
+
set thirdPartyHosted(value: ThirdPartyCapDescriptor);
|
|
1640
|
+
/**
|
|
1640
1641
|
* If the RPC message in which this CapDescriptor was delivered also had file descriptors
|
|
1641
1642
|
* attached, and `fd` is a valid index into the list of attached file descriptors, then
|
|
1642
1643
|
* that file descriptor should be attached to this capability. If `attachedFd` is out-of-bounds
|
|
@@ -1694,46 +1695,46 @@ declare class CapDescriptor extends Struct {
|
|
|
1694
1695
|
* cannot be sent at once, rather than relying on Linux to do so).
|
|
1695
1696
|
*
|
|
1696
1697
|
*/
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1698
|
+
get attachedFd(): number;
|
|
1699
|
+
set attachedFd(value: number);
|
|
1700
|
+
toString(): string;
|
|
1701
|
+
which(): CapDescriptor_Which;
|
|
1701
1702
|
}
|
|
1702
1703
|
declare const PromisedAnswer_Op_Which: {
|
|
1703
|
-
|
|
1704
|
+
/**
|
|
1704
1705
|
* Does nothing. This member is mostly defined so that we can make `Op` a union even
|
|
1705
1706
|
* though (as of this writing) only one real operation is defined.
|
|
1706
1707
|
*
|
|
1707
1708
|
*/
|
|
1708
|
-
|
|
1709
|
-
|
|
1709
|
+
readonly NOOP: 0;
|
|
1710
|
+
/**
|
|
1710
1711
|
* Get a pointer field within a struct. The number is an index into the pointer section, NOT
|
|
1711
1712
|
* a field ordinal, so that the receiver does not need to understand the schema.
|
|
1712
1713
|
*
|
|
1713
1714
|
*/
|
|
1714
|
-
|
|
1715
|
+
readonly GET_POINTER_FIELD: 1;
|
|
1715
1716
|
};
|
|
1716
1717
|
type PromisedAnswer_Op_Which = (typeof PromisedAnswer_Op_Which)[keyof typeof PromisedAnswer_Op_Which];
|
|
1717
|
-
declare class PromisedAnswer_Op extends Struct {
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1718
|
+
declare class PromisedAnswer_Op extends index_d_exports.Struct {
|
|
1719
|
+
static readonly NOOP: 0;
|
|
1720
|
+
static readonly GET_POINTER_FIELD: 1;
|
|
1721
|
+
static readonly _capnp: {
|
|
1722
|
+
displayName: string;
|
|
1723
|
+
id: string;
|
|
1724
|
+
size: index_d_exports.ObjectSize;
|
|
1725
|
+
};
|
|
1726
|
+
get _isNoop(): boolean;
|
|
1727
|
+
set noop(_: true);
|
|
1728
|
+
/**
|
|
1728
1729
|
* Get a pointer field within a struct. The number is an index into the pointer section, NOT
|
|
1729
1730
|
* a field ordinal, so that the receiver does not need to understand the schema.
|
|
1730
1731
|
*
|
|
1731
1732
|
*/
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1733
|
+
get getPointerField(): number;
|
|
1734
|
+
get _isGetPointerField(): boolean;
|
|
1735
|
+
set getPointerField(value: number);
|
|
1736
|
+
toString(): string;
|
|
1737
|
+
which(): PromisedAnswer_Op_Which;
|
|
1737
1738
|
}
|
|
1738
1739
|
/**
|
|
1739
1740
|
* **(mostly level 1)**
|
|
@@ -1748,34 +1749,34 @@ declare class PromisedAnswer_Op extends Struct {
|
|
|
1748
1749
|
* a raw capability.
|
|
1749
1750
|
*
|
|
1750
1751
|
*/
|
|
1751
|
-
declare class PromisedAnswer extends Struct {
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1752
|
+
declare class PromisedAnswer extends index_d_exports.Struct {
|
|
1753
|
+
static readonly Op: typeof PromisedAnswer_Op;
|
|
1754
|
+
static readonly _capnp: {
|
|
1755
|
+
displayName: string;
|
|
1756
|
+
id: string;
|
|
1757
|
+
size: index_d_exports.ObjectSize;
|
|
1758
|
+
};
|
|
1759
|
+
static _Transform: index_d_exports.ListCtor<PromisedAnswer_Op>;
|
|
1760
|
+
/**
|
|
1760
1761
|
* ID of the question (in the sender's question table / receiver's answer table) whose answer is
|
|
1761
1762
|
* expected to contain the capability.
|
|
1762
1763
|
*
|
|
1763
1764
|
*/
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1765
|
+
get questionId(): number;
|
|
1766
|
+
set questionId(value: number);
|
|
1767
|
+
_adoptTransform(value: index_d_exports.Orphan<index_d_exports.List<PromisedAnswer_Op>>): void;
|
|
1768
|
+
_disownTransform(): index_d_exports.Orphan<index_d_exports.List<PromisedAnswer_Op>>;
|
|
1769
|
+
/**
|
|
1769
1770
|
* Operations / transformations to apply to the result in order to get the capability actually
|
|
1770
1771
|
* being addressed. E.g. if the result is a struct and you want to call a method on a capability
|
|
1771
1772
|
* pointed to by a field of the struct, you need a `getPointerField` op.
|
|
1772
1773
|
*
|
|
1773
1774
|
*/
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1775
|
+
get transform(): index_d_exports.List<PromisedAnswer_Op>;
|
|
1776
|
+
_hasTransform(): boolean;
|
|
1777
|
+
_initTransform(length: number): index_d_exports.List<PromisedAnswer_Op>;
|
|
1778
|
+
set transform(value: index_d_exports.List<PromisedAnswer_Op>);
|
|
1779
|
+
toString(): string;
|
|
1779
1780
|
}
|
|
1780
1781
|
/**
|
|
1781
1782
|
* **(level 3)**
|
|
@@ -1783,22 +1784,22 @@ declare class PromisedAnswer extends Struct {
|
|
|
1783
1784
|
* Identifies a capability in a third-party vat that the sender wants the receiver to pick up.
|
|
1784
1785
|
*
|
|
1785
1786
|
*/
|
|
1786
|
-
declare class ThirdPartyCapDescriptor extends Struct {
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1787
|
+
declare class ThirdPartyCapDescriptor extends index_d_exports.Struct {
|
|
1788
|
+
static readonly _capnp: {
|
|
1789
|
+
displayName: string;
|
|
1790
|
+
id: string;
|
|
1791
|
+
size: index_d_exports.ObjectSize;
|
|
1792
|
+
};
|
|
1793
|
+
_adoptId(value: index_d_exports.Orphan<index_d_exports.Pointer>): void;
|
|
1794
|
+
_disownId(): index_d_exports.Orphan<index_d_exports.Pointer>;
|
|
1795
|
+
/**
|
|
1795
1796
|
* Identifies the third-party host and the specific capability to accept from it.
|
|
1796
1797
|
*
|
|
1797
1798
|
*/
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1799
|
+
get id(): index_d_exports.Pointer;
|
|
1800
|
+
_hasId(): boolean;
|
|
1801
|
+
set id(value: index_d_exports.Pointer);
|
|
1802
|
+
/**
|
|
1802
1803
|
* A proxy for the third-party object exported by the sender. In CapTP terminology this is called
|
|
1803
1804
|
* a "vine", because it is an indirect reference to the third-party object that snakes through the
|
|
1804
1805
|
* sender vat. This serves two purposes:
|
|
@@ -1815,12 +1816,12 @@ declare class ThirdPartyCapDescriptor extends Struct {
|
|
|
1815
1816
|
* it receives either a `Call` or a `Release` message directed at the vine.
|
|
1816
1817
|
*
|
|
1817
1818
|
*/
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1819
|
+
get vineId(): number;
|
|
1820
|
+
set vineId(value: number);
|
|
1821
|
+
toString(): string;
|
|
1821
1822
|
}
|
|
1822
1823
|
declare const Exception_Type: {
|
|
1823
|
-
|
|
1824
|
+
/**
|
|
1824
1825
|
* A generic problem occurred, and it is believed that if the operation were repeated without
|
|
1825
1826
|
* any change in the state of the world, the problem would occur again.
|
|
1826
1827
|
*
|
|
@@ -1828,8 +1829,8 @@ declare const Exception_Type: {
|
|
|
1828
1829
|
* displaying it to the user.
|
|
1829
1830
|
*
|
|
1830
1831
|
*/
|
|
1831
|
-
|
|
1832
|
-
|
|
1832
|
+
readonly FAILED: 0;
|
|
1833
|
+
/**
|
|
1833
1834
|
* The request was rejected due to a temporary lack of resources.
|
|
1834
1835
|
*
|
|
1835
1836
|
* Examples include:
|
|
@@ -1841,8 +1842,8 @@ declare const Exception_Type: {
|
|
|
1841
1842
|
* client should NOT retry again immediately since this would likely exacerbate the problem.
|
|
1842
1843
|
*
|
|
1843
1844
|
*/
|
|
1844
|
-
|
|
1845
|
-
|
|
1845
|
+
readonly OVERLOADED: 1;
|
|
1846
|
+
/**
|
|
1846
1847
|
* The method failed because a connection to some necessary capability was lost.
|
|
1847
1848
|
*
|
|
1848
1849
|
* Examples include:
|
|
@@ -1868,14 +1869,14 @@ declare const Exception_Type: {
|
|
|
1868
1869
|
* is currently unreliable, possibly due to load or other temporary issues.
|
|
1869
1870
|
*
|
|
1870
1871
|
*/
|
|
1871
|
-
|
|
1872
|
-
|
|
1872
|
+
readonly DISCONNECTED: 2;
|
|
1873
|
+
/**
|
|
1873
1874
|
* The server doesn't implement the requested method. If there is some other method that the
|
|
1874
1875
|
* client could call (perhaps an older and/or slower interface), it should try that instead.
|
|
1875
1876
|
* Otherwise, this should be treated like `failed`.
|
|
1876
1877
|
*
|
|
1877
1878
|
*/
|
|
1878
|
-
|
|
1879
|
+
readonly UNIMPLEMENTED: 3;
|
|
1879
1880
|
};
|
|
1880
1881
|
type Exception_Type = (typeof Exception_Type)[keyof typeof Exception_Type];
|
|
1881
1882
|
/**
|
|
@@ -1901,104 +1902,105 @@ type Exception_Type = (typeof Exception_Type)[keyof typeof Exception_Type];
|
|
|
1901
1902
|
* clients are forced by the type system to handle those exceptions) do NOT make sense.
|
|
1902
1903
|
*
|
|
1903
1904
|
*/
|
|
1904
|
-
declare class Exception extends Struct {
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
/**
|
|
1929
|
-
* The method failed because a connection to some necessary capability was lost.
|
|
1930
|
-
*
|
|
1931
|
-
* Examples include:
|
|
1932
|
-
* - The client introduced the server to a third-party capability, the connection to that third
|
|
1933
|
-
* party was subsequently lost, and then the client requested that the server use the dead
|
|
1934
|
-
* capability for something.
|
|
1935
|
-
* - The client previously requested that the server obtain a capability from some third party.
|
|
1936
|
-
* The server returned a capability to an object wrapping the third-party capability. Later,
|
|
1937
|
-
* the server's connection to the third party was lost.
|
|
1938
|
-
* - The capability has been revoked. Revocation does not necessarily mean that the client is
|
|
1939
|
-
* no longer authorized to use the capability; it is often used simply as a way to force the
|
|
1940
|
-
* client to repeat the setup process, perhaps to efficiently move them to a new back-end or
|
|
1941
|
-
* get them to recognize some other change that has occurred.
|
|
1942
|
-
*
|
|
1943
|
-
* A client should normally respond to this error by releasing all capabilities it is currently
|
|
1944
|
-
* holding related to the one it called and then re-creating them by restoring SturdyRefs and/or
|
|
1945
|
-
* repeating the method calls used to create them originally. In other words, disconnect and
|
|
1946
|
-
* start over. This should in turn cause the server to obtain a new copy of the capability that
|
|
1947
|
-
* it lost, thus making everything work.
|
|
1948
|
-
*
|
|
1949
|
-
* If the client receives another `disconnected` error in the process of rebuilding the
|
|
1950
|
-
* capability and retrying the call, it should treat this as an `overloaded` error: the network
|
|
1951
|
-
* is currently unreliable, possibly due to load or other temporary issues.
|
|
1952
|
-
*
|
|
1953
|
-
*/
|
|
1954
|
-
readonly DISCONNECTED: 2;
|
|
1955
|
-
/**
|
|
1956
|
-
* The server doesn't implement the requested method. If there is some other method that the
|
|
1957
|
-
* client could call (perhaps an older and/or slower interface), it should try that instead.
|
|
1958
|
-
* Otherwise, this should be treated like `failed`.
|
|
1959
|
-
*
|
|
1960
|
-
*/
|
|
1961
|
-
readonly UNIMPLEMENTED: 3;
|
|
1962
|
-
};
|
|
1963
|
-
static readonly _capnp: {
|
|
1964
|
-
displayName: string;
|
|
1965
|
-
id: string;
|
|
1966
|
-
size: ObjectSize;
|
|
1967
|
-
};
|
|
1905
|
+
declare class Exception extends index_d_exports.Struct {
|
|
1906
|
+
static readonly Type: {
|
|
1907
|
+
/**
|
|
1908
|
+
* A generic problem occurred, and it is believed that if the operation were repeated without
|
|
1909
|
+
* any change in the state of the world, the problem would occur again.
|
|
1910
|
+
*
|
|
1911
|
+
* A client might respond to this error by logging it for investigation by the developer and/or
|
|
1912
|
+
* displaying it to the user.
|
|
1913
|
+
*
|
|
1914
|
+
*/
|
|
1915
|
+
readonly FAILED: 0;
|
|
1916
|
+
/**
|
|
1917
|
+
* The request was rejected due to a temporary lack of resources.
|
|
1918
|
+
*
|
|
1919
|
+
* Examples include:
|
|
1920
|
+
* - There's not enough CPU time to keep up with incoming requests, so some are rejected.
|
|
1921
|
+
* - The server ran out of RAM or disk space during the request.
|
|
1922
|
+
* - The operation timed out (took significantly longer than it should have).
|
|
1923
|
+
*
|
|
1924
|
+
* A client might respond to this error by scheduling to retry the operation much later. The
|
|
1925
|
+
* client should NOT retry again immediately since this would likely exacerbate the problem.
|
|
1926
|
+
*
|
|
1927
|
+
*/
|
|
1928
|
+
readonly OVERLOADED: 1;
|
|
1968
1929
|
/**
|
|
1930
|
+
* The method failed because a connection to some necessary capability was lost.
|
|
1931
|
+
*
|
|
1932
|
+
* Examples include:
|
|
1933
|
+
* - The client introduced the server to a third-party capability, the connection to that third
|
|
1934
|
+
* party was subsequently lost, and then the client requested that the server use the dead
|
|
1935
|
+
* capability for something.
|
|
1936
|
+
* - The client previously requested that the server obtain a capability from some third party.
|
|
1937
|
+
* The server returned a capability to an object wrapping the third-party capability. Later,
|
|
1938
|
+
* the server's connection to the third party was lost.
|
|
1939
|
+
* - The capability has been revoked. Revocation does not necessarily mean that the client is
|
|
1940
|
+
* no longer authorized to use the capability; it is often used simply as a way to force the
|
|
1941
|
+
* client to repeat the setup process, perhaps to efficiently move them to a new back-end or
|
|
1942
|
+
* get them to recognize some other change that has occurred.
|
|
1943
|
+
*
|
|
1944
|
+
* A client should normally respond to this error by releasing all capabilities it is currently
|
|
1945
|
+
* holding related to the one it called and then re-creating them by restoring SturdyRefs and/or
|
|
1946
|
+
* repeating the method calls used to create them originally. In other words, disconnect and
|
|
1947
|
+
* start over. This should in turn cause the server to obtain a new copy of the capability that
|
|
1948
|
+
* it lost, thus making everything work.
|
|
1949
|
+
*
|
|
1950
|
+
* If the client receives another `disconnected` error in the process of rebuilding the
|
|
1951
|
+
* capability and retrying the call, it should treat this as an `overloaded` error: the network
|
|
1952
|
+
* is currently unreliable, possibly due to load or other temporary issues.
|
|
1953
|
+
*
|
|
1954
|
+
*/
|
|
1955
|
+
readonly DISCONNECTED: 2;
|
|
1956
|
+
/**
|
|
1957
|
+
* The server doesn't implement the requested method. If there is some other method that the
|
|
1958
|
+
* client could call (perhaps an older and/or slower interface), it should try that instead.
|
|
1959
|
+
* Otherwise, this should be treated like `failed`.
|
|
1960
|
+
*
|
|
1961
|
+
*/
|
|
1962
|
+
readonly UNIMPLEMENTED: 3;
|
|
1963
|
+
};
|
|
1964
|
+
static readonly _capnp: {
|
|
1965
|
+
displayName: string;
|
|
1966
|
+
id: string;
|
|
1967
|
+
size: index_d_exports.ObjectSize;
|
|
1968
|
+
};
|
|
1969
|
+
/**
|
|
1969
1970
|
* Human-readable failure description.
|
|
1970
1971
|
*
|
|
1971
1972
|
*/
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1973
|
+
get reason(): string;
|
|
1974
|
+
set reason(value: string);
|
|
1975
|
+
/**
|
|
1975
1976
|
* The type of the error. The purpose of this enum is not to describe the error itself, but
|
|
1976
1977
|
* rather to describe how the client might want to respond to the error.
|
|
1977
1978
|
*
|
|
1978
1979
|
*/
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1980
|
+
get type(): Exception_Type;
|
|
1981
|
+
set type(value: Exception_Type);
|
|
1982
|
+
/**
|
|
1982
1983
|
* OBSOLETE. Ignore.
|
|
1983
1984
|
*
|
|
1984
1985
|
*/
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1986
|
+
get obsoleteIsCallersFault(): boolean;
|
|
1987
|
+
set obsoleteIsCallersFault(value: boolean);
|
|
1988
|
+
/**
|
|
1988
1989
|
* OBSOLETE. See `type` instead.
|
|
1989
1990
|
*
|
|
1990
1991
|
*/
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1992
|
+
get obsoleteDurability(): number;
|
|
1993
|
+
set obsoleteDurability(value: number);
|
|
1994
|
+
/**
|
|
1994
1995
|
* Stack trace text from the remote server. The format is not specified. By default,
|
|
1995
1996
|
* implementations do not provide stack traces; the application must explicitly enable them
|
|
1996
1997
|
* when desired.
|
|
1997
1998
|
*
|
|
1998
1999
|
*/
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2000
|
+
get trace(): string;
|
|
2001
|
+
set trace(value: string);
|
|
2002
|
+
toString(): string;
|
|
2002
2003
|
}
|
|
2003
|
-
|
|
2004
|
+
//#endregion
|
|
2004
2005
|
export { Accept, Bootstrap, Call, Call_SendResultsTo, Call_SendResultsTo_Which, CapDescriptor, CapDescriptor_Which, Disembargo, Disembargo_Context, Disembargo_Context_Which, Exception, Exception_Type, Finish, Join, Message, MessageTarget, MessageTarget_Which, Message_Which, Payload, PromisedAnswer, PromisedAnswer_Op, PromisedAnswer_Op_Which, Provide, Release, Resolve, Resolve_Which, Return, Return_Which, ThirdPartyCapDescriptor, _capnpFileId };
|
|
2006
|
+
//# sourceMappingURL=rpc.d.cts.map
|