@stryke/capnp 0.12.44 → 0.12.46

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.
Files changed (97) hide show
  1. package/bin/capnpc.mjs.map +1 -1
  2. package/dist/_virtual/rolldown_runtime.cjs +1 -0
  3. package/dist/_virtual/rolldown_runtime.mjs +1 -0
  4. package/dist/compile.cjs +1 -1
  5. package/dist/compile.d.cts +40 -3
  6. package/dist/compile.d.cts.map +1 -0
  7. package/dist/compile.d.mts +40 -3
  8. package/dist/compile.d.mts.map +1 -0
  9. package/dist/compile.mjs +2 -1
  10. package/dist/compile.mjs.map +1 -0
  11. package/dist/helpers.cjs +1 -1
  12. package/dist/helpers.d.cts +1 -1
  13. package/dist/helpers.d.mts +1 -1
  14. package/dist/helpers.mjs +2 -1
  15. package/dist/helpers.mjs.map +1 -0
  16. package/dist/index.cjs +1 -1
  17. package/dist/index.d.cts +2 -2
  18. package/dist/index.d.mts +2 -2
  19. package/dist/index.mjs +1 -1
  20. package/dist/packages/convert/src/to-array.cjs +1 -0
  21. package/dist/packages/convert/src/to-array.mjs +2 -0
  22. package/dist/packages/convert/src/to-array.mjs.map +1 -0
  23. package/dist/rpc-helpers.cjs +1 -1
  24. package/dist/rpc-helpers.mjs +1 -1
  25. package/dist/rpc-helpers.mjs.map +1 -1
  26. package/dist/types.cjs +1 -1
  27. package/dist/types.d.cts +55 -2
  28. package/dist/types.d.cts.map +1 -0
  29. package/dist/types.d.mts +55 -2
  30. package/dist/types.d.mts.map +1 -0
  31. package/dist/types.mjs +2 -1
  32. package/dist/types.mjs.map +1 -0
  33. package/package.json +26 -11
  34. package/schemas/_virtual/rolldown_runtime.cjs +1 -0
  35. package/schemas/_virtual/rolldown_runtime.mjs +1 -0
  36. package/schemas/packages/capnp/src/compile.cjs +1 -0
  37. package/{dist/compile-DccxA7WZ.d.cts → schemas/packages/capnp/src/compile.d.mts} +4 -4
  38. package/{dist/compile-DccxA7WZ.d.cts.map → schemas/packages/capnp/src/compile.d.mts.map} +1 -1
  39. package/schemas/packages/capnp/src/compile.mjs +1 -0
  40. package/schemas/packages/capnp/src/helpers.cjs +1 -0
  41. package/schemas/packages/capnp/src/helpers.mjs +1 -0
  42. package/schemas/packages/capnp/src/index.cjs +1 -0
  43. package/schemas/packages/capnp/src/index.d.mts +13 -0
  44. package/schemas/packages/capnp/src/index.d.mts.map +1 -0
  45. package/schemas/packages/capnp/src/index.mjs +1 -0
  46. package/{dist/types-D03SjfBL.d.mts → schemas/packages/capnp/src/types.d.mts} +2 -2
  47. package/{dist/types-D03SjfBL.d.mts.map → schemas/packages/capnp/src/types.d.mts.map} +1 -1
  48. package/schemas/persistent.cjs +1 -1
  49. package/schemas/persistent.d.cts +1 -1
  50. package/schemas/persistent.d.mts +1 -1
  51. package/schemas/persistent.mjs +1 -1
  52. package/schemas/persistent.mjs.map +1 -1
  53. package/schemas/rpc-twoparty.cjs +1 -1
  54. package/schemas/rpc-twoparty.d.cts +1 -1
  55. package/schemas/rpc-twoparty.d.mts +1 -1
  56. package/schemas/rpc-twoparty.mjs +1 -1
  57. package/schemas/rpc-twoparty.mjs.map +1 -1
  58. package/schemas/rpc.cjs +1 -1
  59. package/schemas/rpc.d.cts +1 -1
  60. package/schemas/rpc.d.mts +1 -1
  61. package/schemas/rpc.mjs +1 -1
  62. package/schemas/rpc.mjs.map +1 -1
  63. package/schemas/schema.cjs +1 -1
  64. package/schemas/schema.d.cts +1 -1
  65. package/schemas/schema.d.mts +1 -1
  66. package/schemas/schema.mjs +1 -1
  67. package/schemas/schema.mjs.map +1 -1
  68. package/{dist/compile-UkKIpqrK.d.mts → schemas/src/compile.d.cts} +4 -4
  69. package/schemas/src/compile.d.cts.map +1 -0
  70. package/schemas/src/index.d.cts +13 -0
  71. package/schemas/src/index.d.cts.map +1 -0
  72. package/{dist/types-D52qMMoK.d.cts → schemas/src/types.d.cts} +2 -2
  73. package/schemas/src/types.d.cts.map +1 -0
  74. package/dist/capnp-es.GpvEvMIK-BsgDzeBH.mjs +0 -12
  75. package/dist/capnp-es.GpvEvMIK-BsgDzeBH.mjs.map +0 -1
  76. package/dist/capnp-es.GpvEvMIK-xNDcbmgx.cjs +0 -11
  77. package/dist/compile-ChbJ-p6B.cjs +0 -169
  78. package/dist/compile-DJUj4hs3.mjs +0 -163
  79. package/dist/compile-DJUj4hs3.mjs.map +0 -1
  80. package/dist/compile-UkKIpqrK.d.mts.map +0 -1
  81. package/dist/dist-C1gSYYrg.cjs +0 -1
  82. package/dist/dist-CK47iMja.mjs +0 -2
  83. package/dist/dist-CK47iMja.mjs.map +0 -1
  84. package/dist/helpers-BoKbpcuO.mjs +0 -27
  85. package/dist/helpers-BoKbpcuO.mjs.map +0 -1
  86. package/dist/helpers-DSMRKdw1.cjs +0 -26
  87. package/dist/types-BujoAx-K.mjs +0 -2
  88. package/dist/types-BujoAx-K.mjs.map +0 -1
  89. package/dist/types-D52qMMoK.d.cts.map +0 -1
  90. package/dist/types-D6FuBB1k.cjs +0 -1
  91. package/schemas/index-BAJMwFip.d.mts +0 -96
  92. package/schemas/index-BAJMwFip.d.mts.map +0 -1
  93. package/schemas/index-b7dam4EA.d.cts +0 -96
  94. package/schemas/index-b7dam4EA.d.cts.map +0 -1
  95. package/schemas/src-CGrmR2BO.cjs +0 -11
  96. package/schemas/src-DqIy7I3p.mjs +0 -12
  97. package/schemas/src-DqIy7I3p.mjs.map +0 -1
@@ -0,0 +1,13 @@
1
+ import { __export, __reExport } from "../../../_virtual/rolldown_runtime.mjs";
2
+ import { CapnpcCLIOptions, CapnpcOptions, CapnpcResolvedOptions, CapnpcResult, CodeGeneratorContext, CodeGeneratorFileContext } from "./types.mjs";
3
+ import { capnpc, compile } from "./compile.mjs";
4
+ export * from "capnp-es";
5
+
6
+ //#region src/index.d.ts
7
+ declare namespace index_d_exports {
8
+ export { CapnpcCLIOptions, CapnpcOptions, CapnpcResolvedOptions, CapnpcResult, CodeGeneratorContext, CodeGeneratorFileContext, capnpc, compile };
9
+ }
10
+ import * as import_capnp_es from "capnp-es";
11
+ //#endregion
12
+ export { import_capnp_es as index_d_exports };
13
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../../../../src/index.ts"],"sourcesContent":[],"mappings":""}
@@ -0,0 +1 @@
1
+ import{Data as e,ErrorClient as t,List as n,ListElementSize as r,ObjectSize as i,Orphan as a,Pointer as o,PointerType as s,Struct as c,Text as l,clientOrNull as u}from"../../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs";import{CompositeList as d,getBitMask as f,getUint16Mask as p,getUint8Mask as m}from"../../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs";import{Message as h,readRawPointer as g}from"../../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/shared/capnp-es.GpvEvMIK.mjs";import"./compile.mjs";import{Deferred as _,Interface as v,Pipeline as y,Registry as b,Server as x,copyCall as S,isDataCall as C,placeParams as w}from"../../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/shared/capnp-es.UAt3nLGq.mjs";import{PointerList as T,Void as E,utils as D}from"../../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/index.mjs";export{};
@@ -51,5 +51,5 @@ interface CapnpcResult {
51
51
  files: Map<string, string>;
52
52
  }
53
53
  //#endregion
54
- export { CodeGeneratorContext as a, CapnpcResult as i, CapnpcOptions as n, CodeGeneratorFileContext as o, CapnpcResolvedOptions as r, CapnpcCLIOptions as t };
55
- //# sourceMappingURL=types-D03SjfBL.d.mts.map
54
+ export { CapnpcCLIOptions, CapnpcOptions, CapnpcResolvedOptions, CapnpcResult, CodeGeneratorContext, CodeGeneratorFileContext };
55
+ //# sourceMappingURL=types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-D03SjfBL.d.mts","names":[],"sources":["../../src/types.ts"],"sourcesContent":[],"mappings":";;;;UA4BiB,wBAAA;kBAEC;EAFD,SAAA,OAAA,EAGG,yCAHqB,EAAA;EAEvB,aAAA,EAID,KAJC,CAAA,CAAA,MAAA,EAIc,KAJd,CAAA,CAAA;EACE,gBAAA,EAIA,GAJA,CAAA,MAAA,CAAA;EAGY,0BAAA,EAEF,GAFE,CAAA,MAAA,CAAA;EAAf,MAAA,EAAA,MAAA;EACG,SAAA,CAAA,EAAA,MAAA,EAAA;EACU,WAAA,EAAA,GAAA;EAAG,QAAA,EAAA,GAAA,GAAA,MAAA;AASjC;AAIiB,cAJJ,oBAAA,CAIoB;EAgBrB,KAAA,EAnBH,wBAmBgB,EAAA;;AAAG,UAhBX,gBAAA,CAgBW;EAIV,IAAA,CAAA,EAAA,OAAA;EAIC,EAAA,CAAA,EAAA,OAAA;EAAiB,GAAA,CAAA,EAAA,OAAA;EAKxB,KAAA,CAAA,EAAA,OAAA;EACV,MAAA,CAAA,EAAA,MAAA;EADkC,MAAA,CAAA,EAAA,MAAA;EAWpB,UAAA,CAAA,EAAA,MAAA;EAAL,QAAA,CAAA,EAAA,MAAA;EAAT,cAAA,CAAA,EAAA,OAAA;EAIY,gBAAA,CAAA,EAAA,OAAA;EAAiB,WAAA,CAAA,EAAA,MAAA;EAGd,aAAA,CAAA,EAAY,MAAA;;;KA/BjB,aAAA,GAAgB,KAAK;;;YAIf;;;aAIC;;;KAKP,qBAAA,GAAwB,KAClC,4HAUA,SAAS,KAAK;;;;YAIF;;UAGG,YAAA;OACV;SACE"}
1
+ {"version":3,"file":"types.d.mts","names":[],"sources":["../../../../../src/types.ts"],"sourcesContent":[],"mappings":";;;;UA4BiB,wBAAA;kBAEC;EAFD,SAAA,OAAA,EAGG,yCAHqB,EAAA;EAEvB,aAAA,EAID,KAJC,CAAA,CAAA,MAAA,EAIc,KAJd,CAAA,CAAA;EACE,gBAAA,EAIA,GAJA,CAAA,MAAA,CAAA;EAGY,0BAAA,EAEF,GAFE,CAAA,MAAA,CAAA;EAAf,MAAA,EAAA,MAAA;EACG,SAAA,CAAA,EAAA,MAAA,EAAA;EACU,WAAA,EAAA,GAAA;EAAG,QAAA,EAAA,GAAA,GAAA,MAAA;AASjC;AAIiB,cAJJ,oBAAA,CAIoB;EAgBrB,KAAA,EAnBH,wBAmBgB,EAAA;;AAAG,UAhBX,gBAAA,CAgBW;EAIV,IAAA,CAAA,EAAA,OAAA;EAIC,EAAA,CAAA,EAAA,OAAA;EAAiB,GAAA,CAAA,EAAA,OAAA;EAKxB,KAAA,CAAA,EAAA,OAAA;EACV,MAAA,CAAA,EAAA,MAAA;EADkC,MAAA,CAAA,EAAA,MAAA;EAWpB,UAAA,CAAA,EAAA,MAAA;EAAL,QAAA,CAAA,EAAA,MAAA;EAAT,cAAA,CAAA,EAAA,OAAA;EAIY,gBAAA,CAAA,EAAA,OAAA;EAAiB,WAAA,CAAA,EAAA,MAAA;EAGd,aAAA,CAAA,EAAY,MAAA;;;KA/BjB,aAAA,GAAgB,KAAK;;;YAIf;;;aAIC;;;KAKP,qBAAA,GAAwB,KAClC,4HAUA,SAAS,KAAK;;;;YAIF;;UAGG,YAAA;OACV;SACE"}
@@ -1 +1 @@
1
- const e=require(`./src-CGrmR2BO.cjs`),t=BigInt(`0xb8630836983feed7`);var n=class extends e.d{static _capnp={displayName:`SaveParams`,id:`f76fba59183073a5`,size:new e.u(0,1)};_adoptSealFor(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownSealFor(){return e.t.disown(this.sealFor)}get sealFor(){return e.t.getPointer(0,this)}_hasSealFor(){return!e.t.isNull(e.t.getPointer(0,this))}set sealFor(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Persistent_SaveParams_`+super.toString()}},r=class extends e.d{static _capnp={displayName:`SaveResults`,id:`b76848c18c40efbf`,size:new e.u(0,1)};_adoptSturdyRef(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownSturdyRef(){return e.t.disown(this.sturdyRef)}get sturdyRef(){return e.t.getPointer(0,this)}_hasSturdyRef(){return!e.t.isNull(e.t.getPointer(0,this))}set sturdyRef(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Persistent_SaveResults_`+super.toString()}},i=class{pipeline;constructor(e){this.pipeline=e}async promise(){return await this.pipeline.struct()}},a=class t{client;static interfaceId=BigInt(`0xc8cb212fcd9f5691`);constructor(e){this.client=e}static methods=[{ParamsClass:n,ResultsClass:r,interfaceId:t.interfaceId,methodId:0,interfaceName:`packages/capnp/schemas/persistent.capnp:Persistent`,methodName:`save`}];save(n){let a=this.client.call({method:t.methods[0],paramsFunc:n});return new i(new e.r(r,a))}};e.i.register(a.interfaceId,a);var o=class extends e.a{target;constructor(e){super(e,[{...a.methods[0],impl:e.save}]),this.target=e}client(){return new a(this)}},s=class extends e.n{static SaveParams=n;static SaveResults=r;static Client=a;static Server=o;static _capnp={displayName:`Persistent`,id:`c8cb212fcd9f5691`,size:new e.u(0,0)};toString(){return`Persistent_`+super.toString()}};exports.Persistent=s,exports.Persistent$Client=a,exports.Persistent$Server=o,exports.Persistent_SaveParams=n,exports.Persistent_SaveResults=r,exports.Persistent_SaveResults$Promise=i,exports._capnpFileId=t;
1
+ const e=require(`./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.cjs`),t=require(`./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/shared/capnp-es.UAt3nLGq.cjs`),n=require(`./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/index.cjs`);require(`./packages/capnp/src/index.cjs`);const r=BigInt(`0xb8630836983feed7`);var i=class extends e.Struct{static _capnp={displayName:`SaveParams`,id:`f76fba59183073a5`,size:new e.ObjectSize(0,1)};_adoptSealFor(e){n.utils.adopt(e,n.utils.getPointer(0,this))}_disownSealFor(){return n.utils.disown(this.sealFor)}get sealFor(){return n.utils.getPointer(0,this)}_hasSealFor(){return!n.utils.isNull(n.utils.getPointer(0,this))}set sealFor(e){n.utils.copyFrom(e,n.utils.getPointer(0,this))}toString(){return`Persistent_SaveParams_`+super.toString()}},a=class extends e.Struct{static _capnp={displayName:`SaveResults`,id:`b76848c18c40efbf`,size:new e.ObjectSize(0,1)};_adoptSturdyRef(e){n.utils.adopt(e,n.utils.getPointer(0,this))}_disownSturdyRef(){return n.utils.disown(this.sturdyRef)}get sturdyRef(){return n.utils.getPointer(0,this)}_hasSturdyRef(){return!n.utils.isNull(n.utils.getPointer(0,this))}set sturdyRef(e){n.utils.copyFrom(e,n.utils.getPointer(0,this))}toString(){return`Persistent_SaveResults_`+super.toString()}},o=class{pipeline;constructor(e){this.pipeline=e}async promise(){return await this.pipeline.struct()}},s=class e{client;static interfaceId=BigInt(`0xc8cb212fcd9f5691`);constructor(e){this.client=e}static methods=[{ParamsClass:i,ResultsClass:a,interfaceId:e.interfaceId,methodId:0,interfaceName:`packages/capnp/schemas/persistent.capnp:Persistent`,methodName:`save`}];save(n){let r=this.client.call({method:e.methods[0],paramsFunc:n});return new o(new t.Pipeline(a,r))}};t.Registry.register(s.interfaceId,s);var c=class extends t.Server{target;constructor(e){super(e,[{...s.methods[0],impl:e.save}]),this.target=e}client(){return new s(this)}},l=class extends t.Interface{static SaveParams=i;static SaveResults=a;static Client=s;static Server=c;static _capnp={displayName:`Persistent`,id:`c8cb212fcd9f5691`,size:new e.ObjectSize(0,0)};toString(){return`Persistent_`+super.toString()}};exports.Persistent=l,exports.Persistent$Client=s,exports.Persistent$Server=c,exports.Persistent_SaveParams=i,exports.Persistent_SaveResults=a,exports.Persistent_SaveResults$Promise=o,exports._capnpFileId=r;
@@ -1,4 +1,4 @@
1
- import { t as index_d_exports } from "./index-b7dam4EA.cjs";
1
+ import { index_d_exports } from "./src/index.cjs";
2
2
 
3
3
  //#region schemas/persistent.d.ts
4
4
  declare const _capnpFileId: bigint;
@@ -1,4 +1,4 @@
1
- import { t as index_d_exports } from "./index-BAJMwFip.mjs";
1
+ import { index_d_exports } from "./packages/capnp/src/index.mjs";
2
2
 
3
3
  //#region schemas/persistent.d.ts
4
4
  declare const _capnpFileId: bigint;
@@ -1,2 +1,2 @@
1
- import{a as e,d as t,i as n,n as r,r as i,t as a,u as o}from"./src-DqIy7I3p.mjs";const s=BigInt(`0xb8630836983feed7`);var c=class extends t{static _capnp={displayName:`SaveParams`,id:`f76fba59183073a5`,size:new o(0,1)};_adoptSealFor(e){a.adopt(e,a.getPointer(0,this))}_disownSealFor(){return a.disown(this.sealFor)}get sealFor(){return a.getPointer(0,this)}_hasSealFor(){return!a.isNull(a.getPointer(0,this))}set sealFor(e){a.copyFrom(e,a.getPointer(0,this))}toString(){return`Persistent_SaveParams_`+super.toString()}},l=class extends t{static _capnp={displayName:`SaveResults`,id:`b76848c18c40efbf`,size:new o(0,1)};_adoptSturdyRef(e){a.adopt(e,a.getPointer(0,this))}_disownSturdyRef(){return a.disown(this.sturdyRef)}get sturdyRef(){return a.getPointer(0,this)}_hasSturdyRef(){return!a.isNull(a.getPointer(0,this))}set sturdyRef(e){a.copyFrom(e,a.getPointer(0,this))}toString(){return`Persistent_SaveResults_`+super.toString()}},u=class{pipeline;constructor(e){this.pipeline=e}async promise(){return await this.pipeline.struct()}},d=class e{client;static interfaceId=BigInt(`0xc8cb212fcd9f5691`);constructor(e){this.client=e}static methods=[{ParamsClass:c,ResultsClass:l,interfaceId:e.interfaceId,methodId:0,interfaceName:`packages/capnp/schemas/persistent.capnp:Persistent`,methodName:`save`}];save(t){return new u(new i(l,this.client.call({method:e.methods[0],paramsFunc:t})))}};n.register(d.interfaceId,d);var f=class extends e{target;constructor(e){super(e,[{...d.methods[0],impl:e.save}]),this.target=e}client(){return new d(this)}},p=class extends r{static SaveParams=c;static SaveResults=l;static Client=d;static Server=f;static _capnp={displayName:`Persistent`,id:`c8cb212fcd9f5691`,size:new o(0,0)};toString(){return`Persistent_`+super.toString()}};export{p as Persistent,d as Persistent$Client,f as Persistent$Server,c as Persistent_SaveParams,l as Persistent_SaveResults,u as Persistent_SaveResults$Promise,s as _capnpFileId};
1
+ import{ObjectSize as e,Struct as t}from"./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs";import{Interface as n,Pipeline as r,Registry as i,Server as a}from"./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/shared/capnp-es.UAt3nLGq.mjs";import{utils as o}from"./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/index.mjs";import"./packages/capnp/src/index.mjs";const s=BigInt(`0xb8630836983feed7`);var c=class extends t{static _capnp={displayName:`SaveParams`,id:`f76fba59183073a5`,size:new e(0,1)};_adoptSealFor(e){o.adopt(e,o.getPointer(0,this))}_disownSealFor(){return o.disown(this.sealFor)}get sealFor(){return o.getPointer(0,this)}_hasSealFor(){return!o.isNull(o.getPointer(0,this))}set sealFor(e){o.copyFrom(e,o.getPointer(0,this))}toString(){return`Persistent_SaveParams_`+super.toString()}},l=class extends t{static _capnp={displayName:`SaveResults`,id:`b76848c18c40efbf`,size:new e(0,1)};_adoptSturdyRef(e){o.adopt(e,o.getPointer(0,this))}_disownSturdyRef(){return o.disown(this.sturdyRef)}get sturdyRef(){return o.getPointer(0,this)}_hasSturdyRef(){return!o.isNull(o.getPointer(0,this))}set sturdyRef(e){o.copyFrom(e,o.getPointer(0,this))}toString(){return`Persistent_SaveResults_`+super.toString()}},u=class{pipeline;constructor(e){this.pipeline=e}async promise(){return await this.pipeline.struct()}},d=class e{client;static interfaceId=BigInt(`0xc8cb212fcd9f5691`);constructor(e){this.client=e}static methods=[{ParamsClass:c,ResultsClass:l,interfaceId:e.interfaceId,methodId:0,interfaceName:`packages/capnp/schemas/persistent.capnp:Persistent`,methodName:`save`}];save(t){return new u(new r(l,this.client.call({method:e.methods[0],paramsFunc:t})))}};i.register(d.interfaceId,d);var f=class extends a{target;constructor(e){super(e,[{...d.methods[0],impl:e.save}]),this.target=e}client(){return new d(this)}},p=class extends n{static SaveParams=c;static SaveResults=l;static Client=d;static Server=f;static _capnp={displayName:`Persistent`,id:`c8cb212fcd9f5691`,size:new e(0,0)};toString(){return`Persistent_`+super.toString()}};export{p as Persistent,d as Persistent$Client,f as Persistent$Server,c as Persistent_SaveParams,l as Persistent_SaveResults,u as Persistent_SaveResults$Promise,s as _capnpFileId};
2
2
  //# sourceMappingURL=persistent.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"persistent.mjs","names":["$.Struct","$.ObjectSize","$.Pipeline","$.Server","$.Interface"],"sources":["../../schemas/persistent.ts"],"sourcesContent":["/* eslint-disable */\n// biome-ignore lint: disable\n// Generated by storm-capnpc\n// Note: Do not edit this file manually - it will be overwritten automatically\nimport * as $ from \"@stryke/capnp\";\nexport const _capnpFileId = BigInt(\"0xb8630836983feed7\");\nexport class Persistent_SaveParams extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"SaveParams\",\n id: \"f76fba59183073a5\",\n size: new $.ObjectSize(0, 1),\n };\n _adoptSealFor(value: $.Orphan<$.Pointer>): void {\n $.utils.adopt(value, $.utils.getPointer(0, this));\n }\n _disownSealFor(): $.Orphan<$.Pointer> {\n return $.utils.disown(this.sealFor);\n }\n /**\n* Seal the SturdyRef so that it can only be restored by the specified Owner. This is meant\n* to mitigate damage when a SturdyRef is leaked. See comments above.\n*\n* Leaving this value null may or may not be allowed; it is up to the realm to decide. If a\n* realm does allow a null owner, this should indicate that anyone is allowed to restore the\n* ref.\n*\n*/\n get sealFor(): $.Pointer {\n return $.utils.getPointer(0, this);\n }\n _hasSealFor(): boolean {\n return !$.utils.isNull($.utils.getPointer(0, this));\n }\n set sealFor(value: $.Pointer) {\n $.utils.copyFrom(value, $.utils.getPointer(0, this));\n }\n public override toString(): string { return \"Persistent_SaveParams_\" + super.toString(); }\n}\nexport class Persistent_SaveResults extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"SaveResults\",\n id: \"b76848c18c40efbf\",\n size: new $.ObjectSize(0, 1),\n };\n _adoptSturdyRef(value: $.Orphan<$.Pointer>): void {\n $.utils.adopt(value, $.utils.getPointer(0, this));\n }\n _disownSturdyRef(): $.Orphan<$.Pointer> {\n return $.utils.disown(this.sturdyRef);\n }\n get sturdyRef(): $.Pointer {\n return $.utils.getPointer(0, this);\n }\n _hasSturdyRef(): boolean {\n return !$.utils.isNull($.utils.getPointer(0, this));\n }\n set sturdyRef(value: $.Pointer) {\n $.utils.copyFrom(value, $.utils.getPointer(0, this));\n }\n public override toString(): string { return \"Persistent_SaveResults_\" + super.toString(); }\n}\nexport class Persistent_SaveResults$Promise {\n pipeline: $.Pipeline<any, any, Persistent_SaveResults>;\n constructor(pipeline: $.Pipeline<any, any, Persistent_SaveResults>) {\n this.pipeline = pipeline;\n }\n async promise(): Promise<Persistent_SaveResults> {\n return await this.pipeline.struct();\n }\n}\nexport class Persistent$Client {\n client: $.Client;\n static readonly interfaceId: bigint = BigInt(\"0xc8cb212fcd9f5691\");\n constructor(client: $.Client) {\n this.client = client;\n }\n static readonly methods: [\n $.Method<Persistent_SaveParams, Persistent_SaveResults>\n ] = [\n {\n ParamsClass: Persistent_SaveParams,\n ResultsClass: Persistent_SaveResults,\n interfaceId: Persistent$Client.interfaceId,\n methodId: 0,\n interfaceName: \"packages/capnp/schemas/persistent.capnp:Persistent\",\n methodName: \"save\"\n }\n ];\n /**\n* Save a capability persistently so that it can be restored by a future connection. Not all\n* capabilities can be saved -- application interfaces should define which capabilities support\n* this and which do not.\n*\n*/\n save(paramsFunc?: (params: Persistent_SaveParams) => void): Persistent_SaveResults$Promise {\n const answer = this.client.call({\n method: Persistent$Client.methods[0],\n paramsFunc: paramsFunc\n });\n const pipeline = new $.Pipeline(Persistent_SaveResults, answer);\n return new Persistent_SaveResults$Promise(pipeline);\n }\n}\n$.Registry.register(Persistent$Client.interfaceId, Persistent$Client);\nexport interface Persistent$Server$Target {\n save(params: Persistent_SaveParams, results: Persistent_SaveResults): Promise<void>;\n}\nexport class Persistent$Server extends $.Server {\n public override readonly target: Persistent$Server$Target;\n constructor(target: Persistent$Server$Target) {\n super(target, [\n {\n ...Persistent$Client.methods[0],\n impl: target.save\n }\n ]);\n this.target = target;\n }\n client(): Persistent$Client {\n return new Persistent$Client(this);\n }\n}\n/**\n* Interface implemented by capabilities that outlive a single connection. A client may save()\n* the capability, producing a SturdyRef. The SturdyRef can be stored to disk, then later used to\n* obtain a new reference to the capability on a future connection.\n*\n* The exact format of SturdyRef depends on the \"realm\" in which the SturdyRef appears. A \"realm\"\n* is an abstract space in which all SturdyRefs have the same format and refer to the same set of\n* resources. Every vat is in exactly one realm. All capability clients within that vat must\n* produce SturdyRefs of the format appropriate for the realm.\n*\n* Similarly, every VatNetwork also resides in a particular realm. Usually, a vat's \"realm\"\n* corresponds to the realm of its main VatNetwork. However, a Vat can in fact communicate over\n* a VatNetwork in a different realm -- in this case, all SturdyRefs need to be transformed when\n* coming or going through said VatNetwork. The RPC system has hooks for registering\n* transformation callbacks for this purpose.\n*\n* Since the format of SturdyRef is realm-dependent, it is not defined here. An application should\n* choose an appropriate realm for itself as part of its design. Note that under Sandstorm, every\n* application exists in its own realm and is therefore free to define its own SturdyRef format;\n* the Sandstorm platform handles translating between realms.\n*\n* Note that whether a capability is persistent is often orthogonal to its type. In these cases,\n* the capability's interface should NOT inherit `Persistent`; instead, just perform a cast at\n* runtime. It's not type-safe, but trying to be type-safe in these cases will likely lead to\n* tears. In cases where a particular interface only makes sense on persistent capabilities, it\n* still should not explicitly inherit Persistent because the `SturdyRef` and `Owner` types will\n* vary between realms (they may even be different at the call site than they are on the\n* implementation). Instead, mark persistent interfaces with the $persistent annotation (defined\n* below).\n*\n* Sealing\n* -------\n*\n* As an added security measure, SturdyRefs may be \"sealed\" to a particular owner, such that\n* if the SturdyRef itself leaks to a third party, that party cannot actually restore it because\n* they are not the owner. To restore a sealed capability, you must first prove to its host that\n* you are the rightful owner. The precise mechanism for this authentication is defined by the\n* realm.\n*\n* Sealing is a defense-in-depth mechanism meant to mitigate damage in the case of catastrophic\n* attacks. For example, say an attacker temporarily gains read access to a database full of\n* SturdyRefs: it would be unfortunate if it were then necessary to revoke every single reference\n* in the database to prevent the attacker from using them.\n*\n* In general, an \"owner\" is a course-grained identity. Because capability-based security is still\n* the primary mechanism of security, it is not necessary nor desirable to have a separate \"owner\"\n* identity for every single process or object; that is exactly what capabilities are supposed to\n* avoid! Instead, it makes sense for an \"owner\" to literally identify the owner of the machines\n* where the capability is stored. If untrusted third parties are able to run arbitrary code on\n* said machines, then the sandbox for that code should be designed using Distributed Confinement\n* such that the third-party code never sees the bits of the SturdyRefs and cannot directly\n* exercise the owner's power to restore refs. See:\n*\n* http://www.erights.org/elib/capability/dist-confine.html\n*\n* Resist the urge to represent an Owner as a simple public key. The whole point of sealing is to\n* defend against leaked-storage attacks. Such attacks can easily result in the owner's private\n* key being stolen as well. A better solution is for `Owner` to contain a simple globally unique\n* identifier for the owner, and for everyone to separately maintain a mapping of owner IDs to\n* public keys. If an owner's private key is compromised, then humans will need to communicate\n* and agree on a replacement public key, then update the mapping.\n*\n* As a concrete example, an `Owner` could simply contain a domain name, and restoring a SturdyRef\n* would require signing a request using the domain's private key. Authenticating this key could\n* be accomplished through certificate authorities or web-of-trust techniques.\n*\n*/\nexport class Persistent extends $.Interface {\n static readonly SaveParams = Persistent_SaveParams;\n static readonly SaveResults = Persistent_SaveResults;\n static readonly Client = Persistent$Client;\n static readonly Server = Persistent$Server;\n public static override readonly _capnp = {\n displayName: \"Persistent\",\n id: \"c8cb212fcd9f5691\",\n size: new $.ObjectSize(0, 0),\n };\n public override toString(): string { return \"Persistent_\" + super.toString(); }\n}\n"],"mappings":"iFAKA,MAAa,EAAe,OAAO,qBAAqB,CACxD,IAAa,EAAb,cAA2CA,CAAS,CAClD,OAAgC,OAAS,CACvC,YAAa,aACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CACD,cAAc,EAAkC,CAC9C,EAAQ,MAAM,EAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAEnD,gBAAsC,CACpC,OAAA,EAAe,OAAO,KAAK,QAAQ,CAWrC,IAAI,SAAqB,CACvB,OAAA,EAAe,WAAW,EAAG,KAAK,CAEpC,aAAuB,CACrB,MAAO,CAAA,EAAS,OAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAErD,IAAI,QAAQ,EAAkB,CAC5B,EAAQ,SAAS,EAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAEtD,UAAmC,CAAE,MAAO,yBAA2B,MAAM,UAAU,GAE5E,EAAb,cAA4CD,CAAS,CACnD,OAAgC,OAAS,CACvC,YAAa,cACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CACD,gBAAgB,EAAkC,CAChD,EAAQ,MAAM,EAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAEnD,kBAAwC,CACtC,OAAA,EAAe,OAAO,KAAK,UAAU,CAEvC,IAAI,WAAuB,CACzB,OAAA,EAAe,WAAW,EAAG,KAAK,CAEpC,eAAyB,CACvB,MAAO,CAAA,EAAS,OAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAErD,IAAI,UAAU,EAAkB,CAC9B,EAAQ,SAAS,EAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAEtD,UAAmC,CAAE,MAAO,0BAA4B,MAAM,UAAU,GAE7E,EAAb,KAA4C,CAC1C,SACA,YAAY,EAAwD,CAClE,KAAK,SAAW,EAElB,MAAM,SAA2C,CAC/C,OAAO,MAAM,KAAK,SAAS,QAAQ,GAG1B,EAAb,MAAa,CAAkB,CAC7B,OACA,OAAgB,YAAsB,OAAO,qBAAqB,CAClE,YAAY,EAAkB,CAC5B,KAAK,OAAS,EAEhB,OAAgB,QAEZ,CACF,CACE,YAAa,EACb,aAAc,EACd,YAAa,EAAkB,YAC/B,SAAU,EACV,cAAe,qDACf,WAAY,OACb,CACF,CAOD,KAAK,EAAsF,CAMzF,OAAO,IAAI,EADM,IAAIC,EAAW,EAJjB,KAAK,OAAO,KAAK,CAC9B,OAAQ,EAAkB,QAAQ,GACtB,aACb,CAAC,CAC6D,CACZ,KAG5C,SAAS,EAAkB,YAAa,EAAkB,CAIrE,IAAa,EAAb,cAAuCC,CAAS,CAC9C,OACA,YAAY,EAAkC,CAC5C,MAAM,EAAQ,CACZ,CACE,GAAG,EAAkB,QAAQ,GAC7B,KAAM,EAAO,KACd,CACF,CAAC,CACF,KAAK,OAAS,EAEhB,QAA4B,CAC1B,OAAO,IAAI,EAAkB,KAAK,GAsEzB,EAAb,cAAgCC,CAAY,CAC1C,OAAgB,WAAa,EAC7B,OAAgB,YAAc,EAC9B,OAAgB,OAAS,EACzB,OAAgB,OAAS,EACzB,OAAgC,OAAS,CACvC,YAAa,aACb,GAAI,mBACJ,KAAM,IAAIH,EAAa,EAAG,EAAE,CAC7B,CACD,UAAmC,CAAE,MAAO,cAAgB,MAAM,UAAU"}
1
+ {"version":3,"file":"persistent.mjs","names":["$.Struct","$.ObjectSize","$.Pipeline","$.Server","$.Interface"],"sources":["../../schemas/persistent.ts"],"sourcesContent":["/* eslint-disable */\n// biome-ignore lint: disable\n// Generated by storm-capnpc\n// Note: Do not edit this file manually - it will be overwritten automatically\nimport * as $ from \"@stryke/capnp\";\nexport const _capnpFileId = BigInt(\"0xb8630836983feed7\");\nexport class Persistent_SaveParams extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"SaveParams\",\n id: \"f76fba59183073a5\",\n size: new $.ObjectSize(0, 1),\n };\n _adoptSealFor(value: $.Orphan<$.Pointer>): void {\n $.utils.adopt(value, $.utils.getPointer(0, this));\n }\n _disownSealFor(): $.Orphan<$.Pointer> {\n return $.utils.disown(this.sealFor);\n }\n /**\n* Seal the SturdyRef so that it can only be restored by the specified Owner. This is meant\n* to mitigate damage when a SturdyRef is leaked. See comments above.\n*\n* Leaving this value null may or may not be allowed; it is up to the realm to decide. If a\n* realm does allow a null owner, this should indicate that anyone is allowed to restore the\n* ref.\n*\n*/\n get sealFor(): $.Pointer {\n return $.utils.getPointer(0, this);\n }\n _hasSealFor(): boolean {\n return !$.utils.isNull($.utils.getPointer(0, this));\n }\n set sealFor(value: $.Pointer) {\n $.utils.copyFrom(value, $.utils.getPointer(0, this));\n }\n public override toString(): string { return \"Persistent_SaveParams_\" + super.toString(); }\n}\nexport class Persistent_SaveResults extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"SaveResults\",\n id: \"b76848c18c40efbf\",\n size: new $.ObjectSize(0, 1),\n };\n _adoptSturdyRef(value: $.Orphan<$.Pointer>): void {\n $.utils.adopt(value, $.utils.getPointer(0, this));\n }\n _disownSturdyRef(): $.Orphan<$.Pointer> {\n return $.utils.disown(this.sturdyRef);\n }\n get sturdyRef(): $.Pointer {\n return $.utils.getPointer(0, this);\n }\n _hasSturdyRef(): boolean {\n return !$.utils.isNull($.utils.getPointer(0, this));\n }\n set sturdyRef(value: $.Pointer) {\n $.utils.copyFrom(value, $.utils.getPointer(0, this));\n }\n public override toString(): string { return \"Persistent_SaveResults_\" + super.toString(); }\n}\nexport class Persistent_SaveResults$Promise {\n pipeline: $.Pipeline<any, any, Persistent_SaveResults>;\n constructor(pipeline: $.Pipeline<any, any, Persistent_SaveResults>) {\n this.pipeline = pipeline;\n }\n async promise(): Promise<Persistent_SaveResults> {\n return await this.pipeline.struct();\n }\n}\nexport class Persistent$Client {\n client: $.Client;\n static readonly interfaceId: bigint = BigInt(\"0xc8cb212fcd9f5691\");\n constructor(client: $.Client) {\n this.client = client;\n }\n static readonly methods: [\n $.Method<Persistent_SaveParams, Persistent_SaveResults>\n ] = [\n {\n ParamsClass: Persistent_SaveParams,\n ResultsClass: Persistent_SaveResults,\n interfaceId: Persistent$Client.interfaceId,\n methodId: 0,\n interfaceName: \"packages/capnp/schemas/persistent.capnp:Persistent\",\n methodName: \"save\"\n }\n ];\n /**\n* Save a capability persistently so that it can be restored by a future connection. Not all\n* capabilities can be saved -- application interfaces should define which capabilities support\n* this and which do not.\n*\n*/\n save(paramsFunc?: (params: Persistent_SaveParams) => void): Persistent_SaveResults$Promise {\n const answer = this.client.call({\n method: Persistent$Client.methods[0],\n paramsFunc: paramsFunc\n });\n const pipeline = new $.Pipeline(Persistent_SaveResults, answer);\n return new Persistent_SaveResults$Promise(pipeline);\n }\n}\n$.Registry.register(Persistent$Client.interfaceId, Persistent$Client);\nexport interface Persistent$Server$Target {\n save(params: Persistent_SaveParams, results: Persistent_SaveResults): Promise<void>;\n}\nexport class Persistent$Server extends $.Server {\n public override readonly target: Persistent$Server$Target;\n constructor(target: Persistent$Server$Target) {\n super(target, [\n {\n ...Persistent$Client.methods[0],\n impl: target.save\n }\n ]);\n this.target = target;\n }\n client(): Persistent$Client {\n return new Persistent$Client(this);\n }\n}\n/**\n* Interface implemented by capabilities that outlive a single connection. A client may save()\n* the capability, producing a SturdyRef. The SturdyRef can be stored to disk, then later used to\n* obtain a new reference to the capability on a future connection.\n*\n* The exact format of SturdyRef depends on the \"realm\" in which the SturdyRef appears. A \"realm\"\n* is an abstract space in which all SturdyRefs have the same format and refer to the same set of\n* resources. Every vat is in exactly one realm. All capability clients within that vat must\n* produce SturdyRefs of the format appropriate for the realm.\n*\n* Similarly, every VatNetwork also resides in a particular realm. Usually, a vat's \"realm\"\n* corresponds to the realm of its main VatNetwork. However, a Vat can in fact communicate over\n* a VatNetwork in a different realm -- in this case, all SturdyRefs need to be transformed when\n* coming or going through said VatNetwork. The RPC system has hooks for registering\n* transformation callbacks for this purpose.\n*\n* Since the format of SturdyRef is realm-dependent, it is not defined here. An application should\n* choose an appropriate realm for itself as part of its design. Note that under Sandstorm, every\n* application exists in its own realm and is therefore free to define its own SturdyRef format;\n* the Sandstorm platform handles translating between realms.\n*\n* Note that whether a capability is persistent is often orthogonal to its type. In these cases,\n* the capability's interface should NOT inherit `Persistent`; instead, just perform a cast at\n* runtime. It's not type-safe, but trying to be type-safe in these cases will likely lead to\n* tears. In cases where a particular interface only makes sense on persistent capabilities, it\n* still should not explicitly inherit Persistent because the `SturdyRef` and `Owner` types will\n* vary between realms (they may even be different at the call site than they are on the\n* implementation). Instead, mark persistent interfaces with the $persistent annotation (defined\n* below).\n*\n* Sealing\n* -------\n*\n* As an added security measure, SturdyRefs may be \"sealed\" to a particular owner, such that\n* if the SturdyRef itself leaks to a third party, that party cannot actually restore it because\n* they are not the owner. To restore a sealed capability, you must first prove to its host that\n* you are the rightful owner. The precise mechanism for this authentication is defined by the\n* realm.\n*\n* Sealing is a defense-in-depth mechanism meant to mitigate damage in the case of catastrophic\n* attacks. For example, say an attacker temporarily gains read access to a database full of\n* SturdyRefs: it would be unfortunate if it were then necessary to revoke every single reference\n* in the database to prevent the attacker from using them.\n*\n* In general, an \"owner\" is a course-grained identity. Because capability-based security is still\n* the primary mechanism of security, it is not necessary nor desirable to have a separate \"owner\"\n* identity for every single process or object; that is exactly what capabilities are supposed to\n* avoid! Instead, it makes sense for an \"owner\" to literally identify the owner of the machines\n* where the capability is stored. If untrusted third parties are able to run arbitrary code on\n* said machines, then the sandbox for that code should be designed using Distributed Confinement\n* such that the third-party code never sees the bits of the SturdyRefs and cannot directly\n* exercise the owner's power to restore refs. See:\n*\n* http://www.erights.org/elib/capability/dist-confine.html\n*\n* Resist the urge to represent an Owner as a simple public key. The whole point of sealing is to\n* defend against leaked-storage attacks. Such attacks can easily result in the owner's private\n* key being stolen as well. A better solution is for `Owner` to contain a simple globally unique\n* identifier for the owner, and for everyone to separately maintain a mapping of owner IDs to\n* public keys. If an owner's private key is compromised, then humans will need to communicate\n* and agree on a replacement public key, then update the mapping.\n*\n* As a concrete example, an `Owner` could simply contain a domain name, and restoring a SturdyRef\n* would require signing a request using the domain's private key. Authenticating this key could\n* be accomplished through certificate authorities or web-of-trust techniques.\n*\n*/\nexport class Persistent extends $.Interface {\n static readonly SaveParams = Persistent_SaveParams;\n static readonly SaveResults = Persistent_SaveResults;\n static readonly Client = Persistent$Client;\n static readonly Server = Persistent$Server;\n public static override readonly _capnp = {\n displayName: \"Persistent\",\n id: \"c8cb212fcd9f5691\",\n size: new $.ObjectSize(0, 0),\n };\n public override toString(): string { return \"Persistent_\" + super.toString(); }\n}\n"],"mappings":"usBAKA,MAAa,EAAe,OAAO,qBAAqB,CACxD,IAAa,EAAb,cAA2CA,CAAS,CAClD,OAAgC,OAAS,CACvC,YAAa,aACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CACD,cAAc,EAAkC,CAC9C,EAAQ,MAAM,EAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAEnD,gBAAsC,CACpC,OAAA,EAAe,OAAO,KAAK,QAAQ,CAWrC,IAAI,SAAqB,CACvB,OAAA,EAAe,WAAW,EAAG,KAAK,CAEpC,aAAuB,CACrB,MAAO,CAAA,EAAS,OAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAErD,IAAI,QAAQ,EAAkB,CAC5B,EAAQ,SAAS,EAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAEtD,UAAmC,CAAE,MAAO,yBAA2B,MAAM,UAAU,GAE5E,EAAb,cAA4CD,CAAS,CACnD,OAAgC,OAAS,CACvC,YAAa,cACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CACD,gBAAgB,EAAkC,CAChD,EAAQ,MAAM,EAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAEnD,kBAAwC,CACtC,OAAA,EAAe,OAAO,KAAK,UAAU,CAEvC,IAAI,WAAuB,CACzB,OAAA,EAAe,WAAW,EAAG,KAAK,CAEpC,eAAyB,CACvB,MAAO,CAAA,EAAS,OAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAErD,IAAI,UAAU,EAAkB,CAC9B,EAAQ,SAAS,EAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAEtD,UAAmC,CAAE,MAAO,0BAA4B,MAAM,UAAU,GAE7E,EAAb,KAA4C,CAC1C,SACA,YAAY,EAAwD,CAClE,KAAK,SAAW,EAElB,MAAM,SAA2C,CAC/C,OAAO,MAAM,KAAK,SAAS,QAAQ,GAG1B,EAAb,MAAa,CAAkB,CAC7B,OACA,OAAgB,YAAsB,OAAO,qBAAqB,CAClE,YAAY,EAAkB,CAC5B,KAAK,OAAS,EAEhB,OAAgB,QAEZ,CACF,CACE,YAAa,EACb,aAAc,EACd,YAAa,EAAkB,YAC/B,SAAU,EACV,cAAe,qDACf,WAAY,OACb,CACF,CAOD,KAAK,EAAsF,CAMzF,OAAO,IAAI,EADM,IAAIC,EAAW,EAJjB,KAAK,OAAO,KAAK,CAC9B,OAAQ,EAAkB,QAAQ,GACtB,aACb,CAAC,CAC6D,CACZ,KAG5C,SAAS,EAAkB,YAAa,EAAkB,CAIrE,IAAa,EAAb,cAAuCC,CAAS,CAC9C,OACA,YAAY,EAAkC,CAC5C,MAAM,EAAQ,CACZ,CACE,GAAG,EAAkB,QAAQ,GAC7B,KAAM,EAAO,KACd,CACF,CAAC,CACF,KAAK,OAAS,EAEhB,QAA4B,CAC1B,OAAO,IAAI,EAAkB,KAAK,GAsEzB,EAAb,cAAgCC,CAAY,CAC1C,OAAgB,WAAa,EAC7B,OAAgB,YAAc,EAC9B,OAAgB,OAAS,EACzB,OAAgB,OAAS,EACzB,OAAgC,OAAS,CACvC,YAAa,aACb,GAAI,mBACJ,KAAM,IAAIH,EAAa,EAAG,EAAE,CAC7B,CACD,UAAmC,CAAE,MAAO,cAAgB,MAAM,UAAU"}
@@ -1 +1 @@
1
- const e=require(`./src-CGrmR2BO.cjs`),t=BigInt(`0xa184c7885cdaf2a1`),n={SERVER:0,CLIENT:1};var r=class extends e.d{static _capnp={displayName:`VatId`,id:`d20b909fee733a8e`,size:new e.u(8,0)};get side(){return e.t.getUint16(0,this)}set side(t){e.t.setUint16(0,t,this)}toString(){return`VatId_`+super.toString()}},i=class extends e.d{static _capnp={displayName:`ProvisionId`,id:`b88d09a9c5f39817`,size:new e.u(8,0)};get joinId(){return e.t.getUint32(0,this)}set joinId(t){e.t.setUint32(0,t,this)}toString(){return`ProvisionId_`+super.toString()}},a=class extends e.d{static _capnp={displayName:`RecipientId`,id:`89f389b6fd4082c1`,size:new e.u(0,0)};toString(){return`RecipientId_`+super.toString()}},o=class extends e.d{static _capnp={displayName:`ThirdPartyCapId`,id:`b47f4979672cb59d`,size:new e.u(0,0)};toString(){return`ThirdPartyCapId_`+super.toString()}},s=class extends e.d{static _capnp={displayName:`JoinKeyPart`,id:`95b29059097fca83`,size:new e.u(8,0)};get joinId(){return e.t.getUint32(0,this)}set joinId(t){e.t.setUint32(0,t,this)}get partCount(){return e.t.getUint16(4,this)}set partCount(t){e.t.setUint16(4,t,this)}get partNum(){return e.t.getUint16(6,this)}set partNum(t){e.t.setUint16(6,t,this)}toString(){return`JoinKeyPart_`+super.toString()}},c=class extends e.d{static _capnp={displayName:`JoinResult`,id:`9d263a3630b7ebee`,size:new e.u(8,1)};get joinId(){return e.t.getUint32(0,this)}set joinId(t){e.t.setUint32(0,t,this)}get succeeded(){return e.t.getBit(32,this)}set succeeded(t){e.t.setBit(32,t,this)}_adoptCap(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownCap(){return e.t.disown(this.cap)}get cap(){return e.t.getPointer(0,this)}_hasCap(){return!e.t.isNull(e.t.getPointer(0,this))}set cap(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`JoinResult_`+super.toString()}};exports.JoinKeyPart=s,exports.JoinResult=c,exports.ProvisionId=i,exports.RecipientId=a,exports.Side=n,exports.ThirdPartyCapId=o,exports.VatId=r,exports._capnpFileId=t;
1
+ const e=require(`./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.cjs`),t=require(`./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/index.cjs`);require(`./packages/capnp/src/index.cjs`);const n=BigInt(`0xa184c7885cdaf2a1`),r={SERVER:0,CLIENT:1};var i=class extends e.Struct{static _capnp={displayName:`VatId`,id:`d20b909fee733a8e`,size:new e.ObjectSize(8,0)};get side(){return t.utils.getUint16(0,this)}set side(e){t.utils.setUint16(0,e,this)}toString(){return`VatId_`+super.toString()}},a=class extends e.Struct{static _capnp={displayName:`ProvisionId`,id:`b88d09a9c5f39817`,size:new e.ObjectSize(8,0)};get joinId(){return t.utils.getUint32(0,this)}set joinId(e){t.utils.setUint32(0,e,this)}toString(){return`ProvisionId_`+super.toString()}},o=class extends e.Struct{static _capnp={displayName:`RecipientId`,id:`89f389b6fd4082c1`,size:new e.ObjectSize(0,0)};toString(){return`RecipientId_`+super.toString()}},s=class extends e.Struct{static _capnp={displayName:`ThirdPartyCapId`,id:`b47f4979672cb59d`,size:new e.ObjectSize(0,0)};toString(){return`ThirdPartyCapId_`+super.toString()}},c=class extends e.Struct{static _capnp={displayName:`JoinKeyPart`,id:`95b29059097fca83`,size:new e.ObjectSize(8,0)};get joinId(){return t.utils.getUint32(0,this)}set joinId(e){t.utils.setUint32(0,e,this)}get partCount(){return t.utils.getUint16(4,this)}set partCount(e){t.utils.setUint16(4,e,this)}get partNum(){return t.utils.getUint16(6,this)}set partNum(e){t.utils.setUint16(6,e,this)}toString(){return`JoinKeyPart_`+super.toString()}},l=class extends e.Struct{static _capnp={displayName:`JoinResult`,id:`9d263a3630b7ebee`,size:new e.ObjectSize(8,1)};get joinId(){return t.utils.getUint32(0,this)}set joinId(e){t.utils.setUint32(0,e,this)}get succeeded(){return t.utils.getBit(32,this)}set succeeded(e){t.utils.setBit(32,e,this)}_adoptCap(e){t.utils.adopt(e,t.utils.getPointer(0,this))}_disownCap(){return t.utils.disown(this.cap)}get cap(){return t.utils.getPointer(0,this)}_hasCap(){return!t.utils.isNull(t.utils.getPointer(0,this))}set cap(e){t.utils.copyFrom(e,t.utils.getPointer(0,this))}toString(){return`JoinResult_`+super.toString()}};exports.JoinKeyPart=c,exports.JoinResult=l,exports.ProvisionId=a,exports.RecipientId=o,exports.Side=r,exports.ThirdPartyCapId=s,exports.VatId=i,exports._capnpFileId=n;
@@ -1,4 +1,4 @@
1
- import { t as index_d_exports } from "./index-b7dam4EA.cjs";
1
+ import { index_d_exports } from "./src/index.cjs";
2
2
 
3
3
  //#region schemas/rpc-twoparty.d.ts
4
4
  declare const _capnpFileId: bigint;
@@ -1,4 +1,4 @@
1
- import { t as index_d_exports } from "./index-BAJMwFip.mjs";
1
+ import { index_d_exports } from "./packages/capnp/src/index.mjs";
2
2
 
3
3
  //#region schemas/rpc-twoparty.d.ts
4
4
  declare const _capnpFileId: bigint;
@@ -1,2 +1,2 @@
1
- import{d as e,t,u as n}from"./src-DqIy7I3p.mjs";const r=BigInt(`0xa184c7885cdaf2a1`),i={SERVER:0,CLIENT:1};var a=class extends e{static _capnp={displayName:`VatId`,id:`d20b909fee733a8e`,size:new n(8,0)};get side(){return t.getUint16(0,this)}set side(e){t.setUint16(0,e,this)}toString(){return`VatId_`+super.toString()}},o=class extends e{static _capnp={displayName:`ProvisionId`,id:`b88d09a9c5f39817`,size:new n(8,0)};get joinId(){return t.getUint32(0,this)}set joinId(e){t.setUint32(0,e,this)}toString(){return`ProvisionId_`+super.toString()}},s=class extends e{static _capnp={displayName:`RecipientId`,id:`89f389b6fd4082c1`,size:new n(0,0)};toString(){return`RecipientId_`+super.toString()}},c=class extends e{static _capnp={displayName:`ThirdPartyCapId`,id:`b47f4979672cb59d`,size:new n(0,0)};toString(){return`ThirdPartyCapId_`+super.toString()}},l=class extends e{static _capnp={displayName:`JoinKeyPart`,id:`95b29059097fca83`,size:new n(8,0)};get joinId(){return t.getUint32(0,this)}set joinId(e){t.setUint32(0,e,this)}get partCount(){return t.getUint16(4,this)}set partCount(e){t.setUint16(4,e,this)}get partNum(){return t.getUint16(6,this)}set partNum(e){t.setUint16(6,e,this)}toString(){return`JoinKeyPart_`+super.toString()}},u=class extends e{static _capnp={displayName:`JoinResult`,id:`9d263a3630b7ebee`,size:new n(8,1)};get joinId(){return t.getUint32(0,this)}set joinId(e){t.setUint32(0,e,this)}get succeeded(){return t.getBit(32,this)}set succeeded(e){t.setBit(32,e,this)}_adoptCap(e){t.adopt(e,t.getPointer(0,this))}_disownCap(){return t.disown(this.cap)}get cap(){return t.getPointer(0,this)}_hasCap(){return!t.isNull(t.getPointer(0,this))}set cap(e){t.copyFrom(e,t.getPointer(0,this))}toString(){return`JoinResult_`+super.toString()}};export{l as JoinKeyPart,u as JoinResult,o as ProvisionId,s as RecipientId,i as Side,c as ThirdPartyCapId,a as VatId,r as _capnpFileId};
1
+ import{ObjectSize as e,Struct as t}from"./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs";import{utils as n}from"./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/index.mjs";import"./packages/capnp/src/index.mjs";const r=BigInt(`0xa184c7885cdaf2a1`),i={SERVER:0,CLIENT:1};var a=class extends t{static _capnp={displayName:`VatId`,id:`d20b909fee733a8e`,size:new e(8,0)};get side(){return n.getUint16(0,this)}set side(e){n.setUint16(0,e,this)}toString(){return`VatId_`+super.toString()}},o=class extends t{static _capnp={displayName:`ProvisionId`,id:`b88d09a9c5f39817`,size:new e(8,0)};get joinId(){return n.getUint32(0,this)}set joinId(e){n.setUint32(0,e,this)}toString(){return`ProvisionId_`+super.toString()}},s=class extends t{static _capnp={displayName:`RecipientId`,id:`89f389b6fd4082c1`,size:new e(0,0)};toString(){return`RecipientId_`+super.toString()}},c=class extends t{static _capnp={displayName:`ThirdPartyCapId`,id:`b47f4979672cb59d`,size:new e(0,0)};toString(){return`ThirdPartyCapId_`+super.toString()}},l=class extends t{static _capnp={displayName:`JoinKeyPart`,id:`95b29059097fca83`,size:new e(8,0)};get joinId(){return n.getUint32(0,this)}set joinId(e){n.setUint32(0,e,this)}get partCount(){return n.getUint16(4,this)}set partCount(e){n.setUint16(4,e,this)}get partNum(){return n.getUint16(6,this)}set partNum(e){n.setUint16(6,e,this)}toString(){return`JoinKeyPart_`+super.toString()}},u=class extends t{static _capnp={displayName:`JoinResult`,id:`9d263a3630b7ebee`,size:new e(8,1)};get joinId(){return n.getUint32(0,this)}set joinId(e){n.setUint32(0,e,this)}get succeeded(){return n.getBit(32,this)}set succeeded(e){n.setBit(32,e,this)}_adoptCap(e){n.adopt(e,n.getPointer(0,this))}_disownCap(){return n.disown(this.cap)}get cap(){return n.getPointer(0,this)}_hasCap(){return!n.isNull(n.getPointer(0,this))}set cap(e){n.copyFrom(e,n.getPointer(0,this))}toString(){return`JoinResult_`+super.toString()}};export{l as JoinKeyPart,u as JoinResult,o as ProvisionId,s as RecipientId,i as Side,c as ThirdPartyCapId,a as VatId,r as _capnpFileId};
2
2
  //# sourceMappingURL=rpc-twoparty.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rpc-twoparty.mjs","names":["$.Struct","$.ObjectSize"],"sources":["../../schemas/rpc-twoparty.ts"],"sourcesContent":["/* eslint-disable */\n// biome-ignore lint: disable\n// Generated by storm-capnpc\n// Note: Do not edit this file manually - it will be overwritten automatically\nimport * as $ from \"@stryke/capnp\";\nexport const _capnpFileId = BigInt(\"0xa184c7885cdaf2a1\");\nexport const Side = {\n /**\n* The object lives on the \"server\" or \"supervisor\" end of the connection. Only the\n* server/supervisor knows how to interpret the ref; to the client, it is opaque.\n*\n* Note that containers intending to implement strong confinement should rewrite SturdyRefs\n* received from the external network before passing them on to the confined app. The confined\n* app thus does not ever receive the raw bits of the SturdyRef (which it could perhaps\n* maliciously leak), but instead receives only a thing that it can pass back to the container\n* later to restore the ref. See:\n* http://www.erights.org/elib/capability/dist-confine.html\n*\n*/\n SERVER: 0,\n /**\n* The object lives on the \"client\" or \"confined app\" end of the connection. Only the client\n* knows how to interpret the ref; to the server/supervisor, it is opaque. Most clients do not\n* actually know how to persist capabilities at all, so use of this is unusual.\n*\n*/\n CLIENT: 1\n} as const;\nexport type Side = (typeof Side)[keyof typeof Side];\nexport class VatId extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"VatId\",\n id: \"d20b909fee733a8e\",\n size: new $.ObjectSize(8, 0),\n };\n get side(): Side {\n return $.utils.getUint16(0, this) as Side;\n }\n set side(value: Side) {\n $.utils.setUint16(0, value, this);\n }\n public override toString(): string { return \"VatId_\" + super.toString(); }\n}\n/**\n* Only used for joins, since three-way introductions never happen on a two-party network.\n*\n*/\nexport class ProvisionId extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"ProvisionId\",\n id: \"b88d09a9c5f39817\",\n size: new $.ObjectSize(8, 0),\n };\n /**\n* The ID from `JoinKeyPart`.\n*\n*/\n get joinId(): number {\n return $.utils.getUint32(0, this);\n }\n set joinId(value: number) {\n $.utils.setUint32(0, value, this);\n }\n public override toString(): string { return \"ProvisionId_\" + super.toString(); }\n}\n/**\n* Never used, because there are only two parties.\n*\n*/\nexport class RecipientId extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"RecipientId\",\n id: \"89f389b6fd4082c1\",\n size: new $.ObjectSize(0, 0),\n };\n public override toString(): string { return \"RecipientId_\" + super.toString(); }\n}\n/**\n* Never used, because there is no third party.\n*\n*/\nexport class ThirdPartyCapId extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"ThirdPartyCapId\",\n id: \"b47f4979672cb59d\",\n size: new $.ObjectSize(0, 0),\n };\n public override toString(): string { return \"ThirdPartyCapId_\" + super.toString(); }\n}\n/**\n* Joins in the two-party case are simplified by a few observations.\n*\n* First, on a two-party network, a Join only ever makes sense if the receiving end is also\n* connected to other networks. A vat which is not connected to any other network can safely\n* reject all joins.\n*\n* Second, since a two-party connection bisects the network -- there can be no other connections\n* between the networks at either end of the connection -- if one part of a join crosses the\n* connection, then _all_ parts must cross it. Therefore, a vat which is receiving a Join request\n* off some other network which needs to be forwarded across the two-party connection can\n* collect all the parts on its end and only forward them across the two-party connection when all\n* have been received.\n*\n* For example, imagine that Alice and Bob are vats connected over a two-party connection, and\n* each is also connected to other networks. At some point, Alice receives one part of a Join\n* request off her network. The request is addressed to a capability that Alice received from\n* Bob and is proxying to her other network. Alice goes ahead and responds to the Join part as\n* if she hosted the capability locally (this is important so that if not all the Join parts end\n* up at Alice, the original sender can detect the failed Join without hanging). As other parts\n* trickle in, Alice verifies that each part is addressed to a capability from Bob and continues\n* to respond to each one. Once the complete set of join parts is received, Alice checks if they\n* were all for the exact same capability. If so, she doesn't need to send anything to Bob at\n* all. Otherwise, she collects the set of capabilities (from Bob) to which the join parts were\n* addressed and essentially initiates a _new_ Join request on those capabilities to Bob. Alice\n* does not forward the Join parts she received herself, but essentially forwards the Join as a\n* whole.\n*\n* On Bob's end, since he knows that Alice will always send all parts of a Join together, he\n* simply waits until he's received them all, then performs a join on the respective capabilities\n* as if it had been requested locally.\n*\n*/\nexport class JoinKeyPart extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"JoinKeyPart\",\n id: \"95b29059097fca83\",\n size: new $.ObjectSize(8, 0),\n };\n /**\n* A number identifying this join, chosen by the sender. May be reused once `Finish` messages are\n* sent corresponding to all of the `Join` messages.\n*\n*/\n get joinId(): number {\n return $.utils.getUint32(0, this);\n }\n set joinId(value: number) {\n $.utils.setUint32(0, value, this);\n }\n /**\n* The number of capabilities to be joined.\n*\n*/\n get partCount(): number {\n return $.utils.getUint16(4, this);\n }\n set partCount(value: number) {\n $.utils.setUint16(4, value, this);\n }\n /**\n* Which part this request targets -- a number in the range [0, partCount).\n*\n*/\n get partNum(): number {\n return $.utils.getUint16(6, this);\n }\n set partNum(value: number) {\n $.utils.setUint16(6, value, this);\n }\n public override toString(): string { return \"JoinKeyPart_\" + super.toString(); }\n}\nexport class JoinResult extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"JoinResult\",\n id: \"9d263a3630b7ebee\",\n size: new $.ObjectSize(8, 1),\n };\n /**\n* Matches `JoinKeyPart`.\n*\n*/\n get joinId(): number {\n return $.utils.getUint32(0, this);\n }\n set joinId(value: number) {\n $.utils.setUint32(0, value, this);\n }\n /**\n* All JoinResults in the set will have the same value for `succeeded`. The receiver actually\n* implements the join by waiting for all the `JoinKeyParts` and then performing its own join on\n* them, then going back and answering all the join requests afterwards.\n*\n*/\n get succeeded(): boolean {\n return $.utils.getBit(32, this);\n }\n set succeeded(value: boolean) {\n $.utils.setBit(32, value, this);\n }\n _adoptCap(value: $.Orphan<$.Pointer>): void {\n $.utils.adopt(value, $.utils.getPointer(0, this));\n }\n _disownCap(): $.Orphan<$.Pointer> {\n return $.utils.disown(this.cap);\n }\n /**\n* One of the JoinResults will have a non-null `cap` which is the joined capability.\n*\n*/\n get cap(): $.Pointer {\n return $.utils.getPointer(0, this);\n }\n _hasCap(): boolean {\n return !$.utils.isNull($.utils.getPointer(0, this));\n }\n set cap(value: $.Pointer) {\n $.utils.copyFrom(value, $.utils.getPointer(0, this));\n }\n public override toString(): string { return \"JoinResult_\" + super.toString(); }\n}\n"],"mappings":"gDAKA,MAAa,EAAe,OAAO,qBAAqB,CAC3C,EAAO,CAalB,OAAQ,EAOR,OAAQ,EACT,CAED,IAAa,EAAb,cAA2BA,CAAS,CAClC,OAAgC,OAAS,CACvC,YAAa,QACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CACD,IAAI,MAAa,CACf,OAAA,EAAe,UAAU,EAAG,KAAK,CAEnC,IAAI,KAAK,EAAa,CACpB,EAAQ,UAAU,EAAG,EAAO,KAAK,CAEnC,UAAmC,CAAE,MAAO,SAAW,MAAM,UAAU,GAM5D,EAAb,cAAiCD,CAAS,CACxC,OAAgC,OAAS,CACvC,YAAa,cACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CAKD,IAAI,QAAiB,CACnB,OAAA,EAAe,UAAU,EAAG,KAAK,CAEnC,IAAI,OAAO,EAAe,CACxB,EAAQ,UAAU,EAAG,EAAO,KAAK,CAEnC,UAAmC,CAAE,MAAO,eAAiB,MAAM,UAAU,GAMlE,EAAb,cAAiCD,CAAS,CACxC,OAAgC,OAAS,CACvC,YAAa,cACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CACD,UAAmC,CAAE,MAAO,eAAiB,MAAM,UAAU,GAMlE,EAAb,cAAqCD,CAAS,CAC5C,OAAgC,OAAS,CACvC,YAAa,kBACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CACD,UAAmC,CAAE,MAAO,mBAAqB,MAAM,UAAU,GAmCtE,EAAb,cAAiCD,CAAS,CACxC,OAAgC,OAAS,CACvC,YAAa,cACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CAMD,IAAI,QAAiB,CACnB,OAAA,EAAe,UAAU,EAAG,KAAK,CAEnC,IAAI,OAAO,EAAe,CACxB,EAAQ,UAAU,EAAG,EAAO,KAAK,CAMnC,IAAI,WAAoB,CACtB,OAAA,EAAe,UAAU,EAAG,KAAK,CAEnC,IAAI,UAAU,EAAe,CAC3B,EAAQ,UAAU,EAAG,EAAO,KAAK,CAMnC,IAAI,SAAkB,CACpB,OAAA,EAAe,UAAU,EAAG,KAAK,CAEnC,IAAI,QAAQ,EAAe,CACzB,EAAQ,UAAU,EAAG,EAAO,KAAK,CAEnC,UAAmC,CAAE,MAAO,eAAiB,MAAM,UAAU,GAElE,EAAb,cAAgCD,CAAS,CACvC,OAAgC,OAAS,CACvC,YAAa,aACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CAKD,IAAI,QAAiB,CACnB,OAAA,EAAe,UAAU,EAAG,KAAK,CAEnC,IAAI,OAAO,EAAe,CACxB,EAAQ,UAAU,EAAG,EAAO,KAAK,CAQnC,IAAI,WAAqB,CACvB,OAAA,EAAe,OAAO,GAAI,KAAK,CAEjC,IAAI,UAAU,EAAgB,CAC5B,EAAQ,OAAO,GAAI,EAAO,KAAK,CAEjC,UAAU,EAAkC,CAC1C,EAAQ,MAAM,EAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAEnD,YAAkC,CAChC,OAAA,EAAe,OAAO,KAAK,IAAI,CAMjC,IAAI,KAAiB,CACnB,OAAA,EAAe,WAAW,EAAG,KAAK,CAEpC,SAAmB,CACjB,MAAO,CAAA,EAAS,OAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAErD,IAAI,IAAI,EAAkB,CACxB,EAAQ,SAAS,EAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAEtD,UAAmC,CAAE,MAAO,cAAgB,MAAM,UAAU"}
1
+ {"version":3,"file":"rpc-twoparty.mjs","names":["$.Struct","$.ObjectSize"],"sources":["../../schemas/rpc-twoparty.ts"],"sourcesContent":["/* eslint-disable */\n// biome-ignore lint: disable\n// Generated by storm-capnpc\n// Note: Do not edit this file manually - it will be overwritten automatically\nimport * as $ from \"@stryke/capnp\";\nexport const _capnpFileId = BigInt(\"0xa184c7885cdaf2a1\");\nexport const Side = {\n /**\n* The object lives on the \"server\" or \"supervisor\" end of the connection. Only the\n* server/supervisor knows how to interpret the ref; to the client, it is opaque.\n*\n* Note that containers intending to implement strong confinement should rewrite SturdyRefs\n* received from the external network before passing them on to the confined app. The confined\n* app thus does not ever receive the raw bits of the SturdyRef (which it could perhaps\n* maliciously leak), but instead receives only a thing that it can pass back to the container\n* later to restore the ref. See:\n* http://www.erights.org/elib/capability/dist-confine.html\n*\n*/\n SERVER: 0,\n /**\n* The object lives on the \"client\" or \"confined app\" end of the connection. Only the client\n* knows how to interpret the ref; to the server/supervisor, it is opaque. Most clients do not\n* actually know how to persist capabilities at all, so use of this is unusual.\n*\n*/\n CLIENT: 1\n} as const;\nexport type Side = (typeof Side)[keyof typeof Side];\nexport class VatId extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"VatId\",\n id: \"d20b909fee733a8e\",\n size: new $.ObjectSize(8, 0),\n };\n get side(): Side {\n return $.utils.getUint16(0, this) as Side;\n }\n set side(value: Side) {\n $.utils.setUint16(0, value, this);\n }\n public override toString(): string { return \"VatId_\" + super.toString(); }\n}\n/**\n* Only used for joins, since three-way introductions never happen on a two-party network.\n*\n*/\nexport class ProvisionId extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"ProvisionId\",\n id: \"b88d09a9c5f39817\",\n size: new $.ObjectSize(8, 0),\n };\n /**\n* The ID from `JoinKeyPart`.\n*\n*/\n get joinId(): number {\n return $.utils.getUint32(0, this);\n }\n set joinId(value: number) {\n $.utils.setUint32(0, value, this);\n }\n public override toString(): string { return \"ProvisionId_\" + super.toString(); }\n}\n/**\n* Never used, because there are only two parties.\n*\n*/\nexport class RecipientId extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"RecipientId\",\n id: \"89f389b6fd4082c1\",\n size: new $.ObjectSize(0, 0),\n };\n public override toString(): string { return \"RecipientId_\" + super.toString(); }\n}\n/**\n* Never used, because there is no third party.\n*\n*/\nexport class ThirdPartyCapId extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"ThirdPartyCapId\",\n id: \"b47f4979672cb59d\",\n size: new $.ObjectSize(0, 0),\n };\n public override toString(): string { return \"ThirdPartyCapId_\" + super.toString(); }\n}\n/**\n* Joins in the two-party case are simplified by a few observations.\n*\n* First, on a two-party network, a Join only ever makes sense if the receiving end is also\n* connected to other networks. A vat which is not connected to any other network can safely\n* reject all joins.\n*\n* Second, since a two-party connection bisects the network -- there can be no other connections\n* between the networks at either end of the connection -- if one part of a join crosses the\n* connection, then _all_ parts must cross it. Therefore, a vat which is receiving a Join request\n* off some other network which needs to be forwarded across the two-party connection can\n* collect all the parts on its end and only forward them across the two-party connection when all\n* have been received.\n*\n* For example, imagine that Alice and Bob are vats connected over a two-party connection, and\n* each is also connected to other networks. At some point, Alice receives one part of a Join\n* request off her network. The request is addressed to a capability that Alice received from\n* Bob and is proxying to her other network. Alice goes ahead and responds to the Join part as\n* if she hosted the capability locally (this is important so that if not all the Join parts end\n* up at Alice, the original sender can detect the failed Join without hanging). As other parts\n* trickle in, Alice verifies that each part is addressed to a capability from Bob and continues\n* to respond to each one. Once the complete set of join parts is received, Alice checks if they\n* were all for the exact same capability. If so, she doesn't need to send anything to Bob at\n* all. Otherwise, she collects the set of capabilities (from Bob) to which the join parts were\n* addressed and essentially initiates a _new_ Join request on those capabilities to Bob. Alice\n* does not forward the Join parts she received herself, but essentially forwards the Join as a\n* whole.\n*\n* On Bob's end, since he knows that Alice will always send all parts of a Join together, he\n* simply waits until he's received them all, then performs a join on the respective capabilities\n* as if it had been requested locally.\n*\n*/\nexport class JoinKeyPart extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"JoinKeyPart\",\n id: \"95b29059097fca83\",\n size: new $.ObjectSize(8, 0),\n };\n /**\n* A number identifying this join, chosen by the sender. May be reused once `Finish` messages are\n* sent corresponding to all of the `Join` messages.\n*\n*/\n get joinId(): number {\n return $.utils.getUint32(0, this);\n }\n set joinId(value: number) {\n $.utils.setUint32(0, value, this);\n }\n /**\n* The number of capabilities to be joined.\n*\n*/\n get partCount(): number {\n return $.utils.getUint16(4, this);\n }\n set partCount(value: number) {\n $.utils.setUint16(4, value, this);\n }\n /**\n* Which part this request targets -- a number in the range [0, partCount).\n*\n*/\n get partNum(): number {\n return $.utils.getUint16(6, this);\n }\n set partNum(value: number) {\n $.utils.setUint16(6, value, this);\n }\n public override toString(): string { return \"JoinKeyPart_\" + super.toString(); }\n}\nexport class JoinResult extends $.Struct {\n public static override readonly _capnp = {\n displayName: \"JoinResult\",\n id: \"9d263a3630b7ebee\",\n size: new $.ObjectSize(8, 1),\n };\n /**\n* Matches `JoinKeyPart`.\n*\n*/\n get joinId(): number {\n return $.utils.getUint32(0, this);\n }\n set joinId(value: number) {\n $.utils.setUint32(0, value, this);\n }\n /**\n* All JoinResults in the set will have the same value for `succeeded`. The receiver actually\n* implements the join by waiting for all the `JoinKeyParts` and then performing its own join on\n* them, then going back and answering all the join requests afterwards.\n*\n*/\n get succeeded(): boolean {\n return $.utils.getBit(32, this);\n }\n set succeeded(value: boolean) {\n $.utils.setBit(32, value, this);\n }\n _adoptCap(value: $.Orphan<$.Pointer>): void {\n $.utils.adopt(value, $.utils.getPointer(0, this));\n }\n _disownCap(): $.Orphan<$.Pointer> {\n return $.utils.disown(this.cap);\n }\n /**\n* One of the JoinResults will have a non-null `cap` which is the joined capability.\n*\n*/\n get cap(): $.Pointer {\n return $.utils.getPointer(0, this);\n }\n _hasCap(): boolean {\n return !$.utils.isNull($.utils.getPointer(0, this));\n }\n set cap(value: $.Pointer) {\n $.utils.copyFrom(value, $.utils.getPointer(0, this));\n }\n public override toString(): string { return \"JoinResult_\" + super.toString(); }\n}\n"],"mappings":"ycAKA,MAAa,EAAe,OAAO,qBAAqB,CAC3C,EAAO,CAalB,OAAQ,EAOR,OAAQ,EACT,CAED,IAAa,EAAb,cAA2BA,CAAS,CAClC,OAAgC,OAAS,CACvC,YAAa,QACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CACD,IAAI,MAAa,CACf,OAAA,EAAe,UAAU,EAAG,KAAK,CAEnC,IAAI,KAAK,EAAa,CACpB,EAAQ,UAAU,EAAG,EAAO,KAAK,CAEnC,UAAmC,CAAE,MAAO,SAAW,MAAM,UAAU,GAM5D,EAAb,cAAiCD,CAAS,CACxC,OAAgC,OAAS,CACvC,YAAa,cACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CAKD,IAAI,QAAiB,CACnB,OAAA,EAAe,UAAU,EAAG,KAAK,CAEnC,IAAI,OAAO,EAAe,CACxB,EAAQ,UAAU,EAAG,EAAO,KAAK,CAEnC,UAAmC,CAAE,MAAO,eAAiB,MAAM,UAAU,GAMlE,EAAb,cAAiCD,CAAS,CACxC,OAAgC,OAAS,CACvC,YAAa,cACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CACD,UAAmC,CAAE,MAAO,eAAiB,MAAM,UAAU,GAMlE,EAAb,cAAqCD,CAAS,CAC5C,OAAgC,OAAS,CACvC,YAAa,kBACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CACD,UAAmC,CAAE,MAAO,mBAAqB,MAAM,UAAU,GAmCtE,EAAb,cAAiCD,CAAS,CACxC,OAAgC,OAAS,CACvC,YAAa,cACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CAMD,IAAI,QAAiB,CACnB,OAAA,EAAe,UAAU,EAAG,KAAK,CAEnC,IAAI,OAAO,EAAe,CACxB,EAAQ,UAAU,EAAG,EAAO,KAAK,CAMnC,IAAI,WAAoB,CACtB,OAAA,EAAe,UAAU,EAAG,KAAK,CAEnC,IAAI,UAAU,EAAe,CAC3B,EAAQ,UAAU,EAAG,EAAO,KAAK,CAMnC,IAAI,SAAkB,CACpB,OAAA,EAAe,UAAU,EAAG,KAAK,CAEnC,IAAI,QAAQ,EAAe,CACzB,EAAQ,UAAU,EAAG,EAAO,KAAK,CAEnC,UAAmC,CAAE,MAAO,eAAiB,MAAM,UAAU,GAElE,EAAb,cAAgCD,CAAS,CACvC,OAAgC,OAAS,CACvC,YAAa,aACb,GAAI,mBACJ,KAAM,IAAIC,EAAa,EAAG,EAAE,CAC7B,CAKD,IAAI,QAAiB,CACnB,OAAA,EAAe,UAAU,EAAG,KAAK,CAEnC,IAAI,OAAO,EAAe,CACxB,EAAQ,UAAU,EAAG,EAAO,KAAK,CAQnC,IAAI,WAAqB,CACvB,OAAA,EAAe,OAAO,GAAI,KAAK,CAEjC,IAAI,UAAU,EAAgB,CAC5B,EAAQ,OAAO,GAAI,EAAO,KAAK,CAEjC,UAAU,EAAkC,CAC1C,EAAQ,MAAM,EAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAEnD,YAAkC,CAChC,OAAA,EAAe,OAAO,KAAK,IAAI,CAMjC,IAAI,KAAiB,CACnB,OAAA,EAAe,WAAW,EAAG,KAAK,CAEpC,SAAmB,CACjB,MAAO,CAAA,EAAS,OAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAErD,IAAI,IAAI,EAAkB,CACxB,EAAQ,SAAS,EAAA,EAAe,WAAW,EAAG,KAAK,CAAC,CAEtD,UAAmC,CAAE,MAAO,cAAgB,MAAM,UAAU"}
package/schemas/rpc.cjs CHANGED
@@ -1 +1 @@
1
- const e=require(`./src-CGrmR2BO.cjs`),t=BigInt(`0xb312981b2552a250`),n={UNIMPLEMENTED:0,ABORT:1,BOOTSTRAP:8,CALL:2,RETURN:3,FINISH:4,RESOLVE:5,RELEASE:6,DISEMBARGO:13,OBSOLETE_SAVE:7,OBSOLETE_DELETE:9,PROVIDE:10,ACCEPT:11,JOIN:12};var r=class t extends e.d{static UNIMPLEMENTED=n.UNIMPLEMENTED;static ABORT=n.ABORT;static BOOTSTRAP=n.BOOTSTRAP;static CALL=n.CALL;static RETURN=n.RETURN;static FINISH=n.FINISH;static RESOLVE=n.RESOLVE;static RELEASE=n.RELEASE;static DISEMBARGO=n.DISEMBARGO;static OBSOLETE_SAVE=n.OBSOLETE_SAVE;static OBSOLETE_DELETE=n.OBSOLETE_DELETE;static PROVIDE=n.PROVIDE;static ACCEPT=n.ACCEPT;static JOIN=n.JOIN;static _capnp={displayName:`Message`,id:`91b79f1f808db032`,size:new e.u(8,1)};_adoptUnimplemented(t){e.t.setUint16(0,0,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownUnimplemented(){return e.t.disown(this.unimplemented)}get unimplemented(){return e.t.testWhich(`unimplemented`,e.t.getUint16(0,this),0,this),e.t.getStruct(0,t,this)}_hasUnimplemented(){return!e.t.isNull(e.t.getPointer(0,this))}_initUnimplemented(){return e.t.setUint16(0,0,this),e.t.initStructAt(0,t,this)}get _isUnimplemented(){return e.t.getUint16(0,this)===0}set unimplemented(t){e.t.setUint16(0,0,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptAbort(t){e.t.setUint16(0,1,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownAbort(){return e.t.disown(this.abort)}get abort(){return e.t.testWhich(`abort`,e.t.getUint16(0,this),1,this),e.t.getStruct(0,A,this)}_hasAbort(){return!e.t.isNull(e.t.getPointer(0,this))}_initAbort(){return e.t.setUint16(0,1,this),e.t.initStructAt(0,A,this)}get _isAbort(){return e.t.getUint16(0,this)===1}set abort(t){e.t.setUint16(0,1,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptBootstrap(t){e.t.setUint16(0,8,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownBootstrap(){return e.t.disown(this.bootstrap)}get bootstrap(){return e.t.testWhich(`bootstrap`,e.t.getUint16(0,this),8,this),e.t.getStruct(0,i,this)}_hasBootstrap(){return!e.t.isNull(e.t.getPointer(0,this))}_initBootstrap(){return e.t.setUint16(0,8,this),e.t.initStructAt(0,i,this)}get _isBootstrap(){return e.t.getUint16(0,this)===8}set bootstrap(t){e.t.setUint16(0,8,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptCall(t){e.t.setUint16(0,2,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownCall(){return e.t.disown(this.call)}get call(){return e.t.testWhich(`call`,e.t.getUint16(0,this),2,this),e.t.getStruct(0,s,this)}_hasCall(){return!e.t.isNull(e.t.getPointer(0,this))}_initCall(){return e.t.setUint16(0,2,this),e.t.initStructAt(0,s,this)}get _isCall(){return e.t.getUint16(0,this)===2}set call(t){e.t.setUint16(0,2,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptReturn(t){e.t.setUint16(0,3,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownReturn(){return e.t.disown(this.return)}get return(){return e.t.testWhich(`return`,e.t.getUint16(0,this),3,this),e.t.getStruct(0,l,this)}_hasReturn(){return!e.t.isNull(e.t.getPointer(0,this))}_initReturn(){return e.t.setUint16(0,3,this),e.t.initStructAt(0,l,this)}get _isReturn(){return e.t.getUint16(0,this)===3}set return(t){e.t.setUint16(0,3,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptFinish(t){e.t.setUint16(0,4,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownFinish(){return e.t.disown(this.finish)}get finish(){return e.t.testWhich(`finish`,e.t.getUint16(0,this),4,this),e.t.getStruct(0,u,this)}_hasFinish(){return!e.t.isNull(e.t.getPointer(0,this))}_initFinish(){return e.t.setUint16(0,4,this),e.t.initStructAt(0,u,this)}get _isFinish(){return e.t.getUint16(0,this)===4}set finish(t){e.t.setUint16(0,4,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptResolve(t){e.t.setUint16(0,5,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownResolve(){return e.t.disown(this.resolve)}get resolve(){return e.t.testWhich(`resolve`,e.t.getUint16(0,this),5,this),e.t.getStruct(0,f,this)}_hasResolve(){return!e.t.isNull(e.t.getPointer(0,this))}_initResolve(){return e.t.setUint16(0,5,this),e.t.initStructAt(0,f,this)}get _isResolve(){return e.t.getUint16(0,this)===5}set resolve(t){e.t.setUint16(0,5,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptRelease(t){e.t.setUint16(0,6,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownRelease(){return e.t.disown(this.release)}get release(){return e.t.testWhich(`release`,e.t.getUint16(0,this),6,this),e.t.getStruct(0,p,this)}_hasRelease(){return!e.t.isNull(e.t.getPointer(0,this))}_initRelease(){return e.t.setUint16(0,6,this),e.t.initStructAt(0,p,this)}get _isRelease(){return e.t.getUint16(0,this)===6}set release(t){e.t.setUint16(0,6,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptDisembargo(t){e.t.setUint16(0,13,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownDisembargo(){return e.t.disown(this.disembargo)}get disembargo(){return e.t.testWhich(`disembargo`,e.t.getUint16(0,this),13,this),e.t.getStruct(0,g,this)}_hasDisembargo(){return!e.t.isNull(e.t.getPointer(0,this))}_initDisembargo(){return e.t.setUint16(0,13,this),e.t.initStructAt(0,g,this)}get _isDisembargo(){return e.t.getUint16(0,this)===13}set disembargo(t){e.t.setUint16(0,13,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptObsoleteSave(t){e.t.setUint16(0,7,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownObsoleteSave(){return e.t.disown(this.obsoleteSave)}get obsoleteSave(){return e.t.testWhich(`obsoleteSave`,e.t.getUint16(0,this),7,this),e.t.getPointer(0,this)}_hasObsoleteSave(){return!e.t.isNull(e.t.getPointer(0,this))}get _isObsoleteSave(){return e.t.getUint16(0,this)===7}set obsoleteSave(t){e.t.setUint16(0,7,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptObsoleteDelete(t){e.t.setUint16(0,9,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownObsoleteDelete(){return e.t.disown(this.obsoleteDelete)}get obsoleteDelete(){return e.t.testWhich(`obsoleteDelete`,e.t.getUint16(0,this),9,this),e.t.getPointer(0,this)}_hasObsoleteDelete(){return!e.t.isNull(e.t.getPointer(0,this))}get _isObsoleteDelete(){return e.t.getUint16(0,this)===9}set obsoleteDelete(t){e.t.setUint16(0,9,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptProvide(t){e.t.setUint16(0,10,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownProvide(){return e.t.disown(this.provide)}get provide(){return e.t.testWhich(`provide`,e.t.getUint16(0,this),10,this),e.t.getStruct(0,_,this)}_hasProvide(){return!e.t.isNull(e.t.getPointer(0,this))}_initProvide(){return e.t.setUint16(0,10,this),e.t.initStructAt(0,_,this)}get _isProvide(){return e.t.getUint16(0,this)===10}set provide(t){e.t.setUint16(0,10,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptAccept(t){e.t.setUint16(0,11,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownAccept(){return e.t.disown(this.accept)}get accept(){return e.t.testWhich(`accept`,e.t.getUint16(0,this),11,this),e.t.getStruct(0,v,this)}_hasAccept(){return!e.t.isNull(e.t.getPointer(0,this))}_initAccept(){return e.t.setUint16(0,11,this),e.t.initStructAt(0,v,this)}get _isAccept(){return e.t.getUint16(0,this)===11}set accept(t){e.t.setUint16(0,11,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptJoin(t){e.t.setUint16(0,12,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownJoin(){return e.t.disown(this.join)}get join(){return e.t.testWhich(`join`,e.t.getUint16(0,this),12,this),e.t.getStruct(0,y,this)}_hasJoin(){return!e.t.isNull(e.t.getPointer(0,this))}_initJoin(){return e.t.setUint16(0,12,this),e.t.initStructAt(0,y,this)}get _isJoin(){return e.t.getUint16(0,this)===12}set join(t){e.t.setUint16(0,12,this),e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Message_`+super.toString()}which(){return e.t.getUint16(0,this)}},i=class extends e.d{static _capnp={displayName:`Bootstrap`,id:`e94ccf8031176ec4`,size:new e.u(8,1)};get questionId(){return e.t.getUint32(0,this)}set questionId(t){e.t.setUint32(0,t,this)}_adoptDeprecatedObjectId(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownDeprecatedObjectId(){return e.t.disown(this.deprecatedObjectId)}get deprecatedObjectId(){return e.t.getPointer(0,this)}_hasDeprecatedObjectId(){return!e.t.isNull(e.t.getPointer(0,this))}set deprecatedObjectId(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Bootstrap_`+super.toString()}};const a={CALLER:0,YOURSELF:1,THIRD_PARTY:2};var o=class extends e.d{static CALLER=a.CALLER;static YOURSELF=a.YOURSELF;static THIRD_PARTY=a.THIRD_PARTY;static _capnp={displayName:`sendResultsTo`,id:`dae8b0f61aab5f99`,size:new e.u(24,3)};get _isCaller(){return e.t.getUint16(6,this)===0}set caller(t){e.t.setUint16(6,0,this)}get _isYourself(){return e.t.getUint16(6,this)===1}set yourself(t){e.t.setUint16(6,1,this)}_adoptThirdParty(t){e.t.setUint16(6,2,this),e.t.adopt(t,e.t.getPointer(2,this))}_disownThirdParty(){return e.t.disown(this.thirdParty)}get thirdParty(){return e.t.testWhich(`thirdParty`,e.t.getUint16(6,this),2,this),e.t.getPointer(2,this)}_hasThirdParty(){return!e.t.isNull(e.t.getPointer(2,this))}get _isThirdParty(){return e.t.getUint16(6,this)===2}set thirdParty(t){e.t.setUint16(6,2,this),e.t.copyFrom(t,e.t.getPointer(2,this))}toString(){return`Call_SendResultsTo_`+super.toString()}which(){return e.t.getUint16(6,this)}},s=class t extends e.d{static _capnp={displayName:`Call`,id:`836a53ce789d4cd4`,size:new e.u(24,3),defaultAllowThirdPartyTailCall:e.s(!1,0),defaultNoPromisePipelining:e.s(!1,1),defaultOnlyPromisePipeline:e.s(!1,2)};get questionId(){return e.t.getUint32(0,this)}set questionId(t){e.t.setUint32(0,t,this)}_adoptTarget(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownTarget(){return e.t.disown(this.target)}get target(){return e.t.getStruct(0,x,this)}_hasTarget(){return!e.t.isNull(e.t.getPointer(0,this))}_initTarget(){return e.t.initStructAt(0,x,this)}set target(t){e.t.copyFrom(t,e.t.getPointer(0,this))}get interfaceId(){return e.t.getUint64(8,this)}set interfaceId(t){e.t.setUint64(8,t,this)}get methodId(){return e.t.getUint16(4,this)}set methodId(t){e.t.setUint16(4,t,this)}get allowThirdPartyTailCall(){return e.t.getBit(128,this,t._capnp.defaultAllowThirdPartyTailCall)}set allowThirdPartyTailCall(n){e.t.setBit(128,n,this,t._capnp.defaultAllowThirdPartyTailCall)}get noPromisePipelining(){return e.t.getBit(129,this,t._capnp.defaultNoPromisePipelining)}set noPromisePipelining(n){e.t.setBit(129,n,this,t._capnp.defaultNoPromisePipelining)}get onlyPromisePipeline(){return e.t.getBit(130,this,t._capnp.defaultOnlyPromisePipeline)}set onlyPromisePipeline(n){e.t.setBit(130,n,this,t._capnp.defaultOnlyPromisePipeline)}_adoptParams(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownParams(){return e.t.disown(this.params)}get params(){return e.t.getStruct(1,S,this)}_hasParams(){return!e.t.isNull(e.t.getPointer(1,this))}_initParams(){return e.t.initStructAt(1,S,this)}set params(t){e.t.copyFrom(t,e.t.getPointer(1,this))}get sendResultsTo(){return e.t.getAs(o,this)}_initSendResultsTo(){return e.t.getAs(o,this)}toString(){return`Call_`+super.toString()}};const c={RESULTS:0,EXCEPTION:1,CANCELED:2,RESULTS_SENT_ELSEWHERE:3,TAKE_FROM_OTHER_QUESTION:4,ACCEPT_FROM_THIRD_PARTY:5};var l=class t extends e.d{static RESULTS=c.RESULTS;static EXCEPTION=c.EXCEPTION;static CANCELED=c.CANCELED;static RESULTS_SENT_ELSEWHERE=c.RESULTS_SENT_ELSEWHERE;static TAKE_FROM_OTHER_QUESTION=c.TAKE_FROM_OTHER_QUESTION;static ACCEPT_FROM_THIRD_PARTY=c.ACCEPT_FROM_THIRD_PARTY;static _capnp={displayName:`Return`,id:`9e19b28d3db3573a`,size:new e.u(16,1),defaultReleaseParamCaps:e.s(!0,0),defaultNoFinishNeeded:e.s(!1,1)};get answerId(){return e.t.getUint32(0,this)}set answerId(t){e.t.setUint32(0,t,this)}get releaseParamCaps(){return e.t.getBit(32,this,t._capnp.defaultReleaseParamCaps)}set releaseParamCaps(n){e.t.setBit(32,n,this,t._capnp.defaultReleaseParamCaps)}get noFinishNeeded(){return e.t.getBit(33,this,t._capnp.defaultNoFinishNeeded)}set noFinishNeeded(n){e.t.setBit(33,n,this,t._capnp.defaultNoFinishNeeded)}_adoptResults(t){e.t.setUint16(6,0,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownResults(){return e.t.disown(this.results)}get results(){return e.t.testWhich(`results`,e.t.getUint16(6,this),0,this),e.t.getStruct(0,S,this)}_hasResults(){return!e.t.isNull(e.t.getPointer(0,this))}_initResults(){return e.t.setUint16(6,0,this),e.t.initStructAt(0,S,this)}get _isResults(){return e.t.getUint16(6,this)===0}set results(t){e.t.setUint16(6,0,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptException(t){e.t.setUint16(6,1,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownException(){return e.t.disown(this.exception)}get exception(){return e.t.testWhich(`exception`,e.t.getUint16(6,this),1,this),e.t.getStruct(0,A,this)}_hasException(){return!e.t.isNull(e.t.getPointer(0,this))}_initException(){return e.t.setUint16(6,1,this),e.t.initStructAt(0,A,this)}get _isException(){return e.t.getUint16(6,this)===1}set exception(t){e.t.setUint16(6,1,this),e.t.copyFrom(t,e.t.getPointer(0,this))}get _isCanceled(){return e.t.getUint16(6,this)===2}set canceled(t){e.t.setUint16(6,2,this)}get _isResultsSentElsewhere(){return e.t.getUint16(6,this)===3}set resultsSentElsewhere(t){e.t.setUint16(6,3,this)}get takeFromOtherQuestion(){return e.t.testWhich(`takeFromOtherQuestion`,e.t.getUint16(6,this),4,this),e.t.getUint32(8,this)}get _isTakeFromOtherQuestion(){return e.t.getUint16(6,this)===4}set takeFromOtherQuestion(t){e.t.setUint16(6,4,this),e.t.setUint32(8,t,this)}_adoptAcceptFromThirdParty(t){e.t.setUint16(6,5,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownAcceptFromThirdParty(){return e.t.disown(this.acceptFromThirdParty)}get acceptFromThirdParty(){return e.t.testWhich(`acceptFromThirdParty`,e.t.getUint16(6,this),5,this),e.t.getPointer(0,this)}_hasAcceptFromThirdParty(){return!e.t.isNull(e.t.getPointer(0,this))}get _isAcceptFromThirdParty(){return e.t.getUint16(6,this)===5}set acceptFromThirdParty(t){e.t.setUint16(6,5,this),e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Return_`+super.toString()}which(){return e.t.getUint16(6,this)}},u=class t extends e.d{static _capnp={displayName:`Finish`,id:`d37d2eb2c2f80e63`,size:new e.u(8,0),defaultReleaseResultCaps:e.s(!0,0),defaultRequireEarlyCancellationWorkaround:e.s(!0,1)};get questionId(){return e.t.getUint32(0,this)}set questionId(t){e.t.setUint32(0,t,this)}get releaseResultCaps(){return e.t.getBit(32,this,t._capnp.defaultReleaseResultCaps)}set releaseResultCaps(n){e.t.setBit(32,n,this,t._capnp.defaultReleaseResultCaps)}get requireEarlyCancellationWorkaround(){return e.t.getBit(33,this,t._capnp.defaultRequireEarlyCancellationWorkaround)}set requireEarlyCancellationWorkaround(n){e.t.setBit(33,n,this,t._capnp.defaultRequireEarlyCancellationWorkaround)}toString(){return`Finish_`+super.toString()}};const d={CAP:0,EXCEPTION:1};var f=class extends e.d{static CAP=d.CAP;static EXCEPTION=d.EXCEPTION;static _capnp={displayName:`Resolve`,id:`bbc29655fa89086e`,size:new e.u(8,1)};get promiseId(){return e.t.getUint32(0,this)}set promiseId(t){e.t.setUint32(0,t,this)}_adoptCap(t){e.t.setUint16(4,0,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownCap(){return e.t.disown(this.cap)}get cap(){return e.t.testWhich(`cap`,e.t.getUint16(4,this),0,this),e.t.getStruct(0,w,this)}_hasCap(){return!e.t.isNull(e.t.getPointer(0,this))}_initCap(){return e.t.setUint16(4,0,this),e.t.initStructAt(0,w,this)}get _isCap(){return e.t.getUint16(4,this)===0}set cap(t){e.t.setUint16(4,0,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptException(t){e.t.setUint16(4,1,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownException(){return e.t.disown(this.exception)}get exception(){return e.t.testWhich(`exception`,e.t.getUint16(4,this),1,this),e.t.getStruct(0,A,this)}_hasException(){return!e.t.isNull(e.t.getPointer(0,this))}_initException(){return e.t.setUint16(4,1,this),e.t.initStructAt(0,A,this)}get _isException(){return e.t.getUint16(4,this)===1}set exception(t){e.t.setUint16(4,1,this),e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Resolve_`+super.toString()}which(){return e.t.getUint16(4,this)}},p=class extends e.d{static _capnp={displayName:`Release`,id:`ad1a6c0d7dd07497`,size:new e.u(8,0)};get id(){return e.t.getUint32(0,this)}set id(t){e.t.setUint32(0,t,this)}get referenceCount(){return e.t.getUint32(4,this)}set referenceCount(t){e.t.setUint32(4,t,this)}toString(){return`Release_`+super.toString()}};const m={SENDER_LOOPBACK:0,RECEIVER_LOOPBACK:1,ACCEPT:2,PROVIDE:3};var h=class extends e.d{static SENDER_LOOPBACK=m.SENDER_LOOPBACK;static RECEIVER_LOOPBACK=m.RECEIVER_LOOPBACK;static ACCEPT=m.ACCEPT;static PROVIDE=m.PROVIDE;static _capnp={displayName:`context`,id:`d562b4df655bdd4d`,size:new e.u(8,1)};get senderLoopback(){return e.t.testWhich(`senderLoopback`,e.t.getUint16(4,this),0,this),e.t.getUint32(0,this)}get _isSenderLoopback(){return e.t.getUint16(4,this)===0}set senderLoopback(t){e.t.setUint16(4,0,this),e.t.setUint32(0,t,this)}get receiverLoopback(){return e.t.testWhich(`receiverLoopback`,e.t.getUint16(4,this),1,this),e.t.getUint32(0,this)}get _isReceiverLoopback(){return e.t.getUint16(4,this)===1}set receiverLoopback(t){e.t.setUint16(4,1,this),e.t.setUint32(0,t,this)}get _isAccept(){return e.t.getUint16(4,this)===2}set accept(t){e.t.setUint16(4,2,this)}get provide(){return e.t.testWhich(`provide`,e.t.getUint16(4,this),3,this),e.t.getUint32(0,this)}get _isProvide(){return e.t.getUint16(4,this)===3}set provide(t){e.t.setUint16(4,3,this),e.t.setUint32(0,t,this)}toString(){return`Disembargo_Context_`+super.toString()}which(){return e.t.getUint16(4,this)}},g=class extends e.d{static _capnp={displayName:`Disembargo`,id:`f964368b0fbd3711`,size:new e.u(8,1)};_adoptTarget(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownTarget(){return e.t.disown(this.target)}get target(){return e.t.getStruct(0,x,this)}_hasTarget(){return!e.t.isNull(e.t.getPointer(0,this))}_initTarget(){return e.t.initStructAt(0,x,this)}set target(t){e.t.copyFrom(t,e.t.getPointer(0,this))}get context(){return e.t.getAs(h,this)}_initContext(){return e.t.getAs(h,this)}toString(){return`Disembargo_`+super.toString()}},_=class extends e.d{static _capnp={displayName:`Provide`,id:`9c6a046bfbc1ac5a`,size:new e.u(8,2)};get questionId(){return e.t.getUint32(0,this)}set questionId(t){e.t.setUint32(0,t,this)}_adoptTarget(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownTarget(){return e.t.disown(this.target)}get target(){return e.t.getStruct(0,x,this)}_hasTarget(){return!e.t.isNull(e.t.getPointer(0,this))}_initTarget(){return e.t.initStructAt(0,x,this)}set target(t){e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptRecipient(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownRecipient(){return e.t.disown(this.recipient)}get recipient(){return e.t.getPointer(1,this)}_hasRecipient(){return!e.t.isNull(e.t.getPointer(1,this))}set recipient(t){e.t.copyFrom(t,e.t.getPointer(1,this))}toString(){return`Provide_`+super.toString()}},v=class extends e.d{static _capnp={displayName:`Accept`,id:`d4c9b56290554016`,size:new e.u(8,1)};get questionId(){return e.t.getUint32(0,this)}set questionId(t){e.t.setUint32(0,t,this)}_adoptProvision(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownProvision(){return e.t.disown(this.provision)}get provision(){return e.t.getPointer(0,this)}_hasProvision(){return!e.t.isNull(e.t.getPointer(0,this))}set provision(t){e.t.copyFrom(t,e.t.getPointer(0,this))}get embargo(){return e.t.getBit(32,this)}set embargo(t){e.t.setBit(32,t,this)}toString(){return`Accept_`+super.toString()}},y=class extends e.d{static _capnp={displayName:`Join`,id:`fbe1980490e001af`,size:new e.u(8,2)};get questionId(){return e.t.getUint32(0,this)}set questionId(t){e.t.setUint32(0,t,this)}_adoptTarget(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownTarget(){return e.t.disown(this.target)}get target(){return e.t.getStruct(0,x,this)}_hasTarget(){return!e.t.isNull(e.t.getPointer(0,this))}_initTarget(){return e.t.initStructAt(0,x,this)}set target(t){e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptKeyPart(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownKeyPart(){return e.t.disown(this.keyPart)}get keyPart(){return e.t.getPointer(1,this)}_hasKeyPart(){return!e.t.isNull(e.t.getPointer(1,this))}set keyPart(t){e.t.copyFrom(t,e.t.getPointer(1,this))}toString(){return`Join_`+super.toString()}};const b={IMPORTED_CAP:0,PROMISED_ANSWER:1};var x=class extends e.d{static IMPORTED_CAP=b.IMPORTED_CAP;static PROMISED_ANSWER=b.PROMISED_ANSWER;static _capnp={displayName:`MessageTarget`,id:`95bc14545813fbc1`,size:new e.u(8,1)};get importedCap(){return e.t.testWhich(`importedCap`,e.t.getUint16(4,this),0,this),e.t.getUint32(0,this)}get _isImportedCap(){return e.t.getUint16(4,this)===0}set importedCap(t){e.t.setUint16(4,0,this),e.t.setUint32(0,t,this)}_adoptPromisedAnswer(t){e.t.setUint16(4,1,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownPromisedAnswer(){return e.t.disown(this.promisedAnswer)}get promisedAnswer(){return e.t.testWhich(`promisedAnswer`,e.t.getUint16(4,this),1,this),e.t.getStruct(0,D,this)}_hasPromisedAnswer(){return!e.t.isNull(e.t.getPointer(0,this))}_initPromisedAnswer(){return e.t.setUint16(4,1,this),e.t.initStructAt(0,D,this)}get _isPromisedAnswer(){return e.t.getUint16(4,this)===1}set promisedAnswer(t){e.t.setUint16(4,1,this),e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`MessageTarget_`+super.toString()}which(){return e.t.getUint16(4,this)}},S=class t extends e.d{static _capnp={displayName:`Payload`,id:`9a0e61223d96743b`,size:new e.u(0,2)};static _CapTable;_adoptContent(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownContent(){return e.t.disown(this.content)}get content(){return e.t.getPointer(0,this)}_hasContent(){return!e.t.isNull(e.t.getPointer(0,this))}set content(t){e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptCapTable(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownCapTable(){return e.t.disown(this.capTable)}get capTable(){return e.t.getList(1,t._CapTable,this)}_hasCapTable(){return!e.t.isNull(e.t.getPointer(1,this))}_initCapTable(n){return e.t.initList(1,t._CapTable,n,this)}set capTable(t){e.t.copyFrom(t,e.t.getPointer(1,this))}toString(){return`Payload_`+super.toString()}};const C={NONE:0,SENDER_HOSTED:1,SENDER_PROMISE:2,RECEIVER_HOSTED:3,RECEIVER_ANSWER:4,THIRD_PARTY_HOSTED:5};var w=class t extends e.d{static NONE=C.NONE;static SENDER_HOSTED=C.SENDER_HOSTED;static SENDER_PROMISE=C.SENDER_PROMISE;static RECEIVER_HOSTED=C.RECEIVER_HOSTED;static RECEIVER_ANSWER=C.RECEIVER_ANSWER;static THIRD_PARTY_HOSTED=C.THIRD_PARTY_HOSTED;static _capnp={displayName:`CapDescriptor`,id:`8523ddc40b86b8b0`,size:new e.u(8,1),defaultAttachedFd:e.l(255)};get _isNone(){return e.t.getUint16(0,this)===0}set none(t){e.t.setUint16(0,0,this)}get senderHosted(){return e.t.testWhich(`senderHosted`,e.t.getUint16(0,this),1,this),e.t.getUint32(4,this)}get _isSenderHosted(){return e.t.getUint16(0,this)===1}set senderHosted(t){e.t.setUint16(0,1,this),e.t.setUint32(4,t,this)}get senderPromise(){return e.t.testWhich(`senderPromise`,e.t.getUint16(0,this),2,this),e.t.getUint32(4,this)}get _isSenderPromise(){return e.t.getUint16(0,this)===2}set senderPromise(t){e.t.setUint16(0,2,this),e.t.setUint32(4,t,this)}get receiverHosted(){return e.t.testWhich(`receiverHosted`,e.t.getUint16(0,this),3,this),e.t.getUint32(4,this)}get _isReceiverHosted(){return e.t.getUint16(0,this)===3}set receiverHosted(t){e.t.setUint16(0,3,this),e.t.setUint32(4,t,this)}_adoptReceiverAnswer(t){e.t.setUint16(0,4,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownReceiverAnswer(){return e.t.disown(this.receiverAnswer)}get receiverAnswer(){return e.t.testWhich(`receiverAnswer`,e.t.getUint16(0,this),4,this),e.t.getStruct(0,D,this)}_hasReceiverAnswer(){return!e.t.isNull(e.t.getPointer(0,this))}_initReceiverAnswer(){return e.t.setUint16(0,4,this),e.t.initStructAt(0,D,this)}get _isReceiverAnswer(){return e.t.getUint16(0,this)===4}set receiverAnswer(t){e.t.setUint16(0,4,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptThirdPartyHosted(t){e.t.setUint16(0,5,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownThirdPartyHosted(){return e.t.disown(this.thirdPartyHosted)}get thirdPartyHosted(){return e.t.testWhich(`thirdPartyHosted`,e.t.getUint16(0,this),5,this),e.t.getStruct(0,O,this)}_hasThirdPartyHosted(){return!e.t.isNull(e.t.getPointer(0,this))}_initThirdPartyHosted(){return e.t.setUint16(0,5,this),e.t.initStructAt(0,O,this)}get _isThirdPartyHosted(){return e.t.getUint16(0,this)===5}set thirdPartyHosted(t){e.t.setUint16(0,5,this),e.t.copyFrom(t,e.t.getPointer(0,this))}get attachedFd(){return e.t.getUint8(2,this,t._capnp.defaultAttachedFd)}set attachedFd(n){e.t.setUint8(2,n,this,t._capnp.defaultAttachedFd)}toString(){return`CapDescriptor_`+super.toString()}which(){return e.t.getUint16(0,this)}};const T={NOOP:0,GET_POINTER_FIELD:1};var E=class extends e.d{static NOOP=T.NOOP;static GET_POINTER_FIELD=T.GET_POINTER_FIELD;static _capnp={displayName:`Op`,id:`f316944415569081`,size:new e.u(8,0)};get _isNoop(){return e.t.getUint16(0,this)===0}set noop(t){e.t.setUint16(0,0,this)}get getPointerField(){return e.t.testWhich(`getPointerField`,e.t.getUint16(0,this),1,this),e.t.getUint16(2,this)}get _isGetPointerField(){return e.t.getUint16(0,this)===1}set getPointerField(t){e.t.setUint16(0,1,this),e.t.setUint16(2,t,this)}toString(){return`PromisedAnswer_Op_`+super.toString()}which(){return e.t.getUint16(0,this)}},D=class t extends e.d{static Op=E;static _capnp={displayName:`PromisedAnswer`,id:`d800b1d6cd6f1ca0`,size:new e.u(8,1)};static _Transform;get questionId(){return e.t.getUint32(0,this)}set questionId(t){e.t.setUint32(0,t,this)}_adoptTransform(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownTransform(){return e.t.disown(this.transform)}get transform(){return e.t.getList(0,t._Transform,this)}_hasTransform(){return!e.t.isNull(e.t.getPointer(0,this))}_initTransform(n){return e.t.initList(0,t._Transform,n,this)}set transform(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`PromisedAnswer_`+super.toString()}},O=class extends e.d{static _capnp={displayName:`ThirdPartyCapDescriptor`,id:`d37007fde1f0027d`,size:new e.u(8,1)};_adoptId(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownId(){return e.t.disown(this.id)}get id(){return e.t.getPointer(0,this)}_hasId(){return!e.t.isNull(e.t.getPointer(0,this))}set id(t){e.t.copyFrom(t,e.t.getPointer(0,this))}get vineId(){return e.t.getUint32(0,this)}set vineId(t){e.t.setUint32(0,t,this)}toString(){return`ThirdPartyCapDescriptor_`+super.toString()}};const k={FAILED:0,OVERLOADED:1,DISCONNECTED:2,UNIMPLEMENTED:3};var A=class extends e.d{static Type=k;static _capnp={displayName:`Exception`,id:`d625b7063acf691a`,size:new e.u(8,2)};get reason(){return e.t.getText(0,this)}set reason(t){e.t.setText(0,t,this)}get type(){return e.t.getUint16(4,this)}set type(t){e.t.setUint16(4,t,this)}get obsoleteIsCallersFault(){return e.t.getBit(0,this)}set obsoleteIsCallersFault(t){e.t.setBit(0,t,this)}get obsoleteDurability(){return e.t.getUint16(2,this)}set obsoleteDurability(t){e.t.setUint16(2,t,this)}get trace(){return e.t.getText(1,this)}set trace(t){e.t.setText(1,t,this)}toString(){return`Exception_`+super.toString()}};S._CapTable=e.o(w),D._Transform=e.o(E),exports.Accept=v,exports.Bootstrap=i,exports.Call=s,exports.Call_SendResultsTo=o,exports.Call_SendResultsTo_Which=a,exports.CapDescriptor=w,exports.CapDescriptor_Which=C,exports.Disembargo=g,exports.Disembargo_Context=h,exports.Disembargo_Context_Which=m,exports.Exception=A,exports.Exception_Type=k,exports.Finish=u,exports.Join=y,exports.Message=r,exports.MessageTarget=x,exports.MessageTarget_Which=b,exports.Message_Which=n,exports.Payload=S,exports.PromisedAnswer=D,exports.PromisedAnswer_Op=E,exports.PromisedAnswer_Op_Which=T,exports.Provide=_,exports.Release=p,exports.Resolve=f,exports.Resolve_Which=d,exports.Return=l,exports.Return_Which=c,exports.ThirdPartyCapDescriptor=O,exports._capnpFileId=t;
1
+ const e=require(`./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.cjs`),t=require(`./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.cjs`),n=require(`./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/index.cjs`);require(`./packages/capnp/src/index.cjs`);const r=BigInt(`0xb312981b2552a250`),i={UNIMPLEMENTED:0,ABORT:1,BOOTSTRAP:8,CALL:2,RETURN:3,FINISH:4,RESOLVE:5,RELEASE:6,DISEMBARGO:13,OBSOLETE_SAVE:7,OBSOLETE_DELETE:9,PROVIDE:10,ACCEPT:11,JOIN:12};var a=class t extends e.Struct{static UNIMPLEMENTED=i.UNIMPLEMENTED;static ABORT=i.ABORT;static BOOTSTRAP=i.BOOTSTRAP;static CALL=i.CALL;static RETURN=i.RETURN;static FINISH=i.FINISH;static RESOLVE=i.RESOLVE;static RELEASE=i.RELEASE;static DISEMBARGO=i.DISEMBARGO;static OBSOLETE_SAVE=i.OBSOLETE_SAVE;static OBSOLETE_DELETE=i.OBSOLETE_DELETE;static PROVIDE=i.PROVIDE;static ACCEPT=i.ACCEPT;static JOIN=i.JOIN;static _capnp={displayName:`Message`,id:`91b79f1f808db032`,size:new e.ObjectSize(8,1)};_adoptUnimplemented(e){n.utils.setUint16(0,0,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownUnimplemented(){return n.utils.disown(this.unimplemented)}get unimplemented(){return n.utils.testWhich(`unimplemented`,n.utils.getUint16(0,this),0,this),n.utils.getStruct(0,t,this)}_hasUnimplemented(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initUnimplemented(){return n.utils.setUint16(0,0,this),n.utils.initStructAt(0,t,this)}get _isUnimplemented(){return n.utils.getUint16(0,this)===0}set unimplemented(e){n.utils.setUint16(0,0,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptAbort(e){n.utils.setUint16(0,1,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownAbort(){return n.utils.disown(this.abort)}get abort(){return n.utils.testWhich(`abort`,n.utils.getUint16(0,this),1,this),n.utils.getStruct(0,M,this)}_hasAbort(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initAbort(){return n.utils.setUint16(0,1,this),n.utils.initStructAt(0,M,this)}get _isAbort(){return n.utils.getUint16(0,this)===1}set abort(e){n.utils.setUint16(0,1,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptBootstrap(e){n.utils.setUint16(0,8,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownBootstrap(){return n.utils.disown(this.bootstrap)}get bootstrap(){return n.utils.testWhich(`bootstrap`,n.utils.getUint16(0,this),8,this),n.utils.getStruct(0,o,this)}_hasBootstrap(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initBootstrap(){return n.utils.setUint16(0,8,this),n.utils.initStructAt(0,o,this)}get _isBootstrap(){return n.utils.getUint16(0,this)===8}set bootstrap(e){n.utils.setUint16(0,8,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptCall(e){n.utils.setUint16(0,2,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownCall(){return n.utils.disown(this.call)}get call(){return n.utils.testWhich(`call`,n.utils.getUint16(0,this),2,this),n.utils.getStruct(0,l,this)}_hasCall(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initCall(){return n.utils.setUint16(0,2,this),n.utils.initStructAt(0,l,this)}get _isCall(){return n.utils.getUint16(0,this)===2}set call(e){n.utils.setUint16(0,2,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptReturn(e){n.utils.setUint16(0,3,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownReturn(){return n.utils.disown(this.return)}get return(){return n.utils.testWhich(`return`,n.utils.getUint16(0,this),3,this),n.utils.getStruct(0,d,this)}_hasReturn(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initReturn(){return n.utils.setUint16(0,3,this),n.utils.initStructAt(0,d,this)}get _isReturn(){return n.utils.getUint16(0,this)===3}set return(e){n.utils.setUint16(0,3,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptFinish(e){n.utils.setUint16(0,4,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownFinish(){return n.utils.disown(this.finish)}get finish(){return n.utils.testWhich(`finish`,n.utils.getUint16(0,this),4,this),n.utils.getStruct(0,f,this)}_hasFinish(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initFinish(){return n.utils.setUint16(0,4,this),n.utils.initStructAt(0,f,this)}get _isFinish(){return n.utils.getUint16(0,this)===4}set finish(e){n.utils.setUint16(0,4,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptResolve(e){n.utils.setUint16(0,5,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownResolve(){return n.utils.disown(this.resolve)}get resolve(){return n.utils.testWhich(`resolve`,n.utils.getUint16(0,this),5,this),n.utils.getStruct(0,m,this)}_hasResolve(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initResolve(){return n.utils.setUint16(0,5,this),n.utils.initStructAt(0,m,this)}get _isResolve(){return n.utils.getUint16(0,this)===5}set resolve(e){n.utils.setUint16(0,5,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptRelease(e){n.utils.setUint16(0,6,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownRelease(){return n.utils.disown(this.release)}get release(){return n.utils.testWhich(`release`,n.utils.getUint16(0,this),6,this),n.utils.getStruct(0,h,this)}_hasRelease(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initRelease(){return n.utils.setUint16(0,6,this),n.utils.initStructAt(0,h,this)}get _isRelease(){return n.utils.getUint16(0,this)===6}set release(e){n.utils.setUint16(0,6,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptDisembargo(e){n.utils.setUint16(0,13,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownDisembargo(){return n.utils.disown(this.disembargo)}get disembargo(){return n.utils.testWhich(`disembargo`,n.utils.getUint16(0,this),13,this),n.utils.getStruct(0,v,this)}_hasDisembargo(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initDisembargo(){return n.utils.setUint16(0,13,this),n.utils.initStructAt(0,v,this)}get _isDisembargo(){return n.utils.getUint16(0,this)===13}set disembargo(e){n.utils.setUint16(0,13,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptObsoleteSave(e){n.utils.setUint16(0,7,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownObsoleteSave(){return n.utils.disown(this.obsoleteSave)}get obsoleteSave(){return n.utils.testWhich(`obsoleteSave`,n.utils.getUint16(0,this),7,this),n.utils.getPointer(0,this)}_hasObsoleteSave(){return!n.utils.isNull(n.utils.getPointer(0,this))}get _isObsoleteSave(){return n.utils.getUint16(0,this)===7}set obsoleteSave(e){n.utils.setUint16(0,7,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptObsoleteDelete(e){n.utils.setUint16(0,9,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownObsoleteDelete(){return n.utils.disown(this.obsoleteDelete)}get obsoleteDelete(){return n.utils.testWhich(`obsoleteDelete`,n.utils.getUint16(0,this),9,this),n.utils.getPointer(0,this)}_hasObsoleteDelete(){return!n.utils.isNull(n.utils.getPointer(0,this))}get _isObsoleteDelete(){return n.utils.getUint16(0,this)===9}set obsoleteDelete(e){n.utils.setUint16(0,9,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptProvide(e){n.utils.setUint16(0,10,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownProvide(){return n.utils.disown(this.provide)}get provide(){return n.utils.testWhich(`provide`,n.utils.getUint16(0,this),10,this),n.utils.getStruct(0,y,this)}_hasProvide(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initProvide(){return n.utils.setUint16(0,10,this),n.utils.initStructAt(0,y,this)}get _isProvide(){return n.utils.getUint16(0,this)===10}set provide(e){n.utils.setUint16(0,10,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptAccept(e){n.utils.setUint16(0,11,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownAccept(){return n.utils.disown(this.accept)}get accept(){return n.utils.testWhich(`accept`,n.utils.getUint16(0,this),11,this),n.utils.getStruct(0,b,this)}_hasAccept(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initAccept(){return n.utils.setUint16(0,11,this),n.utils.initStructAt(0,b,this)}get _isAccept(){return n.utils.getUint16(0,this)===11}set accept(e){n.utils.setUint16(0,11,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptJoin(e){n.utils.setUint16(0,12,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownJoin(){return n.utils.disown(this.join)}get join(){return n.utils.testWhich(`join`,n.utils.getUint16(0,this),12,this),n.utils.getStruct(0,x,this)}_hasJoin(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initJoin(){return n.utils.setUint16(0,12,this),n.utils.initStructAt(0,x,this)}get _isJoin(){return n.utils.getUint16(0,this)===12}set join(e){n.utils.setUint16(0,12,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}toString(){return`Message_`+super.toString()}which(){return n.utils.getUint16(0,this)}},o=class extends e.Struct{static _capnp={displayName:`Bootstrap`,id:`e94ccf8031176ec4`,size:new e.ObjectSize(8,1)};get questionId(){return n.utils.getUint32(0,this)}set questionId(e){n.utils.setUint32(0,e,this)}_adoptDeprecatedObjectId(e){n.utils.adopt(e,n.utils.getPointer(0,this))}_disownDeprecatedObjectId(){return n.utils.disown(this.deprecatedObjectId)}get deprecatedObjectId(){return n.utils.getPointer(0,this)}_hasDeprecatedObjectId(){return!n.utils.isNull(n.utils.getPointer(0,this))}set deprecatedObjectId(e){n.utils.copyFrom(e,n.utils.getPointer(0,this))}toString(){return`Bootstrap_`+super.toString()}};const s={CALLER:0,YOURSELF:1,THIRD_PARTY:2};var c=class extends e.Struct{static CALLER=s.CALLER;static YOURSELF=s.YOURSELF;static THIRD_PARTY=s.THIRD_PARTY;static _capnp={displayName:`sendResultsTo`,id:`dae8b0f61aab5f99`,size:new e.ObjectSize(24,3)};get _isCaller(){return n.utils.getUint16(6,this)===0}set caller(e){n.utils.setUint16(6,0,this)}get _isYourself(){return n.utils.getUint16(6,this)===1}set yourself(e){n.utils.setUint16(6,1,this)}_adoptThirdParty(e){n.utils.setUint16(6,2,this),n.utils.adopt(e,n.utils.getPointer(2,this))}_disownThirdParty(){return n.utils.disown(this.thirdParty)}get thirdParty(){return n.utils.testWhich(`thirdParty`,n.utils.getUint16(6,this),2,this),n.utils.getPointer(2,this)}_hasThirdParty(){return!n.utils.isNull(n.utils.getPointer(2,this))}get _isThirdParty(){return n.utils.getUint16(6,this)===2}set thirdParty(e){n.utils.setUint16(6,2,this),n.utils.copyFrom(e,n.utils.getPointer(2,this))}toString(){return`Call_SendResultsTo_`+super.toString()}which(){return n.utils.getUint16(6,this)}},l=class r extends e.Struct{static _capnp={displayName:`Call`,id:`836a53ce789d4cd4`,size:new e.ObjectSize(24,3),defaultAllowThirdPartyTailCall:t.getBitMask(!1,0),defaultNoPromisePipelining:t.getBitMask(!1,1),defaultOnlyPromisePipeline:t.getBitMask(!1,2)};get questionId(){return n.utils.getUint32(0,this)}set questionId(e){n.utils.setUint32(0,e,this)}_adoptTarget(e){n.utils.adopt(e,n.utils.getPointer(0,this))}_disownTarget(){return n.utils.disown(this.target)}get target(){return n.utils.getStruct(0,C,this)}_hasTarget(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initTarget(){return n.utils.initStructAt(0,C,this)}set target(e){n.utils.copyFrom(e,n.utils.getPointer(0,this))}get interfaceId(){return n.utils.getUint64(8,this)}set interfaceId(e){n.utils.setUint64(8,e,this)}get methodId(){return n.utils.getUint16(4,this)}set methodId(e){n.utils.setUint16(4,e,this)}get allowThirdPartyTailCall(){return n.utils.getBit(128,this,r._capnp.defaultAllowThirdPartyTailCall)}set allowThirdPartyTailCall(e){n.utils.setBit(128,e,this,r._capnp.defaultAllowThirdPartyTailCall)}get noPromisePipelining(){return n.utils.getBit(129,this,r._capnp.defaultNoPromisePipelining)}set noPromisePipelining(e){n.utils.setBit(129,e,this,r._capnp.defaultNoPromisePipelining)}get onlyPromisePipeline(){return n.utils.getBit(130,this,r._capnp.defaultOnlyPromisePipeline)}set onlyPromisePipeline(e){n.utils.setBit(130,e,this,r._capnp.defaultOnlyPromisePipeline)}_adoptParams(e){n.utils.adopt(e,n.utils.getPointer(1,this))}_disownParams(){return n.utils.disown(this.params)}get params(){return n.utils.getStruct(1,w,this)}_hasParams(){return!n.utils.isNull(n.utils.getPointer(1,this))}_initParams(){return n.utils.initStructAt(1,w,this)}set params(e){n.utils.copyFrom(e,n.utils.getPointer(1,this))}get sendResultsTo(){return n.utils.getAs(c,this)}_initSendResultsTo(){return n.utils.getAs(c,this)}toString(){return`Call_`+super.toString()}};const u={RESULTS:0,EXCEPTION:1,CANCELED:2,RESULTS_SENT_ELSEWHERE:3,TAKE_FROM_OTHER_QUESTION:4,ACCEPT_FROM_THIRD_PARTY:5};var d=class r extends e.Struct{static RESULTS=u.RESULTS;static EXCEPTION=u.EXCEPTION;static CANCELED=u.CANCELED;static RESULTS_SENT_ELSEWHERE=u.RESULTS_SENT_ELSEWHERE;static TAKE_FROM_OTHER_QUESTION=u.TAKE_FROM_OTHER_QUESTION;static ACCEPT_FROM_THIRD_PARTY=u.ACCEPT_FROM_THIRD_PARTY;static _capnp={displayName:`Return`,id:`9e19b28d3db3573a`,size:new e.ObjectSize(16,1),defaultReleaseParamCaps:t.getBitMask(!0,0),defaultNoFinishNeeded:t.getBitMask(!1,1)};get answerId(){return n.utils.getUint32(0,this)}set answerId(e){n.utils.setUint32(0,e,this)}get releaseParamCaps(){return n.utils.getBit(32,this,r._capnp.defaultReleaseParamCaps)}set releaseParamCaps(e){n.utils.setBit(32,e,this,r._capnp.defaultReleaseParamCaps)}get noFinishNeeded(){return n.utils.getBit(33,this,r._capnp.defaultNoFinishNeeded)}set noFinishNeeded(e){n.utils.setBit(33,e,this,r._capnp.defaultNoFinishNeeded)}_adoptResults(e){n.utils.setUint16(6,0,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownResults(){return n.utils.disown(this.results)}get results(){return n.utils.testWhich(`results`,n.utils.getUint16(6,this),0,this),n.utils.getStruct(0,w,this)}_hasResults(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initResults(){return n.utils.setUint16(6,0,this),n.utils.initStructAt(0,w,this)}get _isResults(){return n.utils.getUint16(6,this)===0}set results(e){n.utils.setUint16(6,0,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptException(e){n.utils.setUint16(6,1,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownException(){return n.utils.disown(this.exception)}get exception(){return n.utils.testWhich(`exception`,n.utils.getUint16(6,this),1,this),n.utils.getStruct(0,M,this)}_hasException(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initException(){return n.utils.setUint16(6,1,this),n.utils.initStructAt(0,M,this)}get _isException(){return n.utils.getUint16(6,this)===1}set exception(e){n.utils.setUint16(6,1,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}get _isCanceled(){return n.utils.getUint16(6,this)===2}set canceled(e){n.utils.setUint16(6,2,this)}get _isResultsSentElsewhere(){return n.utils.getUint16(6,this)===3}set resultsSentElsewhere(e){n.utils.setUint16(6,3,this)}get takeFromOtherQuestion(){return n.utils.testWhich(`takeFromOtherQuestion`,n.utils.getUint16(6,this),4,this),n.utils.getUint32(8,this)}get _isTakeFromOtherQuestion(){return n.utils.getUint16(6,this)===4}set takeFromOtherQuestion(e){n.utils.setUint16(6,4,this),n.utils.setUint32(8,e,this)}_adoptAcceptFromThirdParty(e){n.utils.setUint16(6,5,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownAcceptFromThirdParty(){return n.utils.disown(this.acceptFromThirdParty)}get acceptFromThirdParty(){return n.utils.testWhich(`acceptFromThirdParty`,n.utils.getUint16(6,this),5,this),n.utils.getPointer(0,this)}_hasAcceptFromThirdParty(){return!n.utils.isNull(n.utils.getPointer(0,this))}get _isAcceptFromThirdParty(){return n.utils.getUint16(6,this)===5}set acceptFromThirdParty(e){n.utils.setUint16(6,5,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}toString(){return`Return_`+super.toString()}which(){return n.utils.getUint16(6,this)}},f=class r extends e.Struct{static _capnp={displayName:`Finish`,id:`d37d2eb2c2f80e63`,size:new e.ObjectSize(8,0),defaultReleaseResultCaps:t.getBitMask(!0,0),defaultRequireEarlyCancellationWorkaround:t.getBitMask(!0,1)};get questionId(){return n.utils.getUint32(0,this)}set questionId(e){n.utils.setUint32(0,e,this)}get releaseResultCaps(){return n.utils.getBit(32,this,r._capnp.defaultReleaseResultCaps)}set releaseResultCaps(e){n.utils.setBit(32,e,this,r._capnp.defaultReleaseResultCaps)}get requireEarlyCancellationWorkaround(){return n.utils.getBit(33,this,r._capnp.defaultRequireEarlyCancellationWorkaround)}set requireEarlyCancellationWorkaround(e){n.utils.setBit(33,e,this,r._capnp.defaultRequireEarlyCancellationWorkaround)}toString(){return`Finish_`+super.toString()}};const p={CAP:0,EXCEPTION:1};var m=class extends e.Struct{static CAP=p.CAP;static EXCEPTION=p.EXCEPTION;static _capnp={displayName:`Resolve`,id:`bbc29655fa89086e`,size:new e.ObjectSize(8,1)};get promiseId(){return n.utils.getUint32(0,this)}set promiseId(e){n.utils.setUint32(0,e,this)}_adoptCap(e){n.utils.setUint16(4,0,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownCap(){return n.utils.disown(this.cap)}get cap(){return n.utils.testWhich(`cap`,n.utils.getUint16(4,this),0,this),n.utils.getStruct(0,E,this)}_hasCap(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initCap(){return n.utils.setUint16(4,0,this),n.utils.initStructAt(0,E,this)}get _isCap(){return n.utils.getUint16(4,this)===0}set cap(e){n.utils.setUint16(4,0,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptException(e){n.utils.setUint16(4,1,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownException(){return n.utils.disown(this.exception)}get exception(){return n.utils.testWhich(`exception`,n.utils.getUint16(4,this),1,this),n.utils.getStruct(0,M,this)}_hasException(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initException(){return n.utils.setUint16(4,1,this),n.utils.initStructAt(0,M,this)}get _isException(){return n.utils.getUint16(4,this)===1}set exception(e){n.utils.setUint16(4,1,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}toString(){return`Resolve_`+super.toString()}which(){return n.utils.getUint16(4,this)}},h=class extends e.Struct{static _capnp={displayName:`Release`,id:`ad1a6c0d7dd07497`,size:new e.ObjectSize(8,0)};get id(){return n.utils.getUint32(0,this)}set id(e){n.utils.setUint32(0,e,this)}get referenceCount(){return n.utils.getUint32(4,this)}set referenceCount(e){n.utils.setUint32(4,e,this)}toString(){return`Release_`+super.toString()}};const g={SENDER_LOOPBACK:0,RECEIVER_LOOPBACK:1,ACCEPT:2,PROVIDE:3};var _=class extends e.Struct{static SENDER_LOOPBACK=g.SENDER_LOOPBACK;static RECEIVER_LOOPBACK=g.RECEIVER_LOOPBACK;static ACCEPT=g.ACCEPT;static PROVIDE=g.PROVIDE;static _capnp={displayName:`context`,id:`d562b4df655bdd4d`,size:new e.ObjectSize(8,1)};get senderLoopback(){return n.utils.testWhich(`senderLoopback`,n.utils.getUint16(4,this),0,this),n.utils.getUint32(0,this)}get _isSenderLoopback(){return n.utils.getUint16(4,this)===0}set senderLoopback(e){n.utils.setUint16(4,0,this),n.utils.setUint32(0,e,this)}get receiverLoopback(){return n.utils.testWhich(`receiverLoopback`,n.utils.getUint16(4,this),1,this),n.utils.getUint32(0,this)}get _isReceiverLoopback(){return n.utils.getUint16(4,this)===1}set receiverLoopback(e){n.utils.setUint16(4,1,this),n.utils.setUint32(0,e,this)}get _isAccept(){return n.utils.getUint16(4,this)===2}set accept(e){n.utils.setUint16(4,2,this)}get provide(){return n.utils.testWhich(`provide`,n.utils.getUint16(4,this),3,this),n.utils.getUint32(0,this)}get _isProvide(){return n.utils.getUint16(4,this)===3}set provide(e){n.utils.setUint16(4,3,this),n.utils.setUint32(0,e,this)}toString(){return`Disembargo_Context_`+super.toString()}which(){return n.utils.getUint16(4,this)}},v=class extends e.Struct{static _capnp={displayName:`Disembargo`,id:`f964368b0fbd3711`,size:new e.ObjectSize(8,1)};_adoptTarget(e){n.utils.adopt(e,n.utils.getPointer(0,this))}_disownTarget(){return n.utils.disown(this.target)}get target(){return n.utils.getStruct(0,C,this)}_hasTarget(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initTarget(){return n.utils.initStructAt(0,C,this)}set target(e){n.utils.copyFrom(e,n.utils.getPointer(0,this))}get context(){return n.utils.getAs(_,this)}_initContext(){return n.utils.getAs(_,this)}toString(){return`Disembargo_`+super.toString()}},y=class extends e.Struct{static _capnp={displayName:`Provide`,id:`9c6a046bfbc1ac5a`,size:new e.ObjectSize(8,2)};get questionId(){return n.utils.getUint32(0,this)}set questionId(e){n.utils.setUint32(0,e,this)}_adoptTarget(e){n.utils.adopt(e,n.utils.getPointer(0,this))}_disownTarget(){return n.utils.disown(this.target)}get target(){return n.utils.getStruct(0,C,this)}_hasTarget(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initTarget(){return n.utils.initStructAt(0,C,this)}set target(e){n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptRecipient(e){n.utils.adopt(e,n.utils.getPointer(1,this))}_disownRecipient(){return n.utils.disown(this.recipient)}get recipient(){return n.utils.getPointer(1,this)}_hasRecipient(){return!n.utils.isNull(n.utils.getPointer(1,this))}set recipient(e){n.utils.copyFrom(e,n.utils.getPointer(1,this))}toString(){return`Provide_`+super.toString()}},b=class extends e.Struct{static _capnp={displayName:`Accept`,id:`d4c9b56290554016`,size:new e.ObjectSize(8,1)};get questionId(){return n.utils.getUint32(0,this)}set questionId(e){n.utils.setUint32(0,e,this)}_adoptProvision(e){n.utils.adopt(e,n.utils.getPointer(0,this))}_disownProvision(){return n.utils.disown(this.provision)}get provision(){return n.utils.getPointer(0,this)}_hasProvision(){return!n.utils.isNull(n.utils.getPointer(0,this))}set provision(e){n.utils.copyFrom(e,n.utils.getPointer(0,this))}get embargo(){return n.utils.getBit(32,this)}set embargo(e){n.utils.setBit(32,e,this)}toString(){return`Accept_`+super.toString()}},x=class extends e.Struct{static _capnp={displayName:`Join`,id:`fbe1980490e001af`,size:new e.ObjectSize(8,2)};get questionId(){return n.utils.getUint32(0,this)}set questionId(e){n.utils.setUint32(0,e,this)}_adoptTarget(e){n.utils.adopt(e,n.utils.getPointer(0,this))}_disownTarget(){return n.utils.disown(this.target)}get target(){return n.utils.getStruct(0,C,this)}_hasTarget(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initTarget(){return n.utils.initStructAt(0,C,this)}set target(e){n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptKeyPart(e){n.utils.adopt(e,n.utils.getPointer(1,this))}_disownKeyPart(){return n.utils.disown(this.keyPart)}get keyPart(){return n.utils.getPointer(1,this)}_hasKeyPart(){return!n.utils.isNull(n.utils.getPointer(1,this))}set keyPart(e){n.utils.copyFrom(e,n.utils.getPointer(1,this))}toString(){return`Join_`+super.toString()}};const S={IMPORTED_CAP:0,PROMISED_ANSWER:1};var C=class extends e.Struct{static IMPORTED_CAP=S.IMPORTED_CAP;static PROMISED_ANSWER=S.PROMISED_ANSWER;static _capnp={displayName:`MessageTarget`,id:`95bc14545813fbc1`,size:new e.ObjectSize(8,1)};get importedCap(){return n.utils.testWhich(`importedCap`,n.utils.getUint16(4,this),0,this),n.utils.getUint32(0,this)}get _isImportedCap(){return n.utils.getUint16(4,this)===0}set importedCap(e){n.utils.setUint16(4,0,this),n.utils.setUint32(0,e,this)}_adoptPromisedAnswer(e){n.utils.setUint16(4,1,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownPromisedAnswer(){return n.utils.disown(this.promisedAnswer)}get promisedAnswer(){return n.utils.testWhich(`promisedAnswer`,n.utils.getUint16(4,this),1,this),n.utils.getStruct(0,k,this)}_hasPromisedAnswer(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initPromisedAnswer(){return n.utils.setUint16(4,1,this),n.utils.initStructAt(0,k,this)}get _isPromisedAnswer(){return n.utils.getUint16(4,this)===1}set promisedAnswer(e){n.utils.setUint16(4,1,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}toString(){return`MessageTarget_`+super.toString()}which(){return n.utils.getUint16(4,this)}},w=class t extends e.Struct{static _capnp={displayName:`Payload`,id:`9a0e61223d96743b`,size:new e.ObjectSize(0,2)};static _CapTable;_adoptContent(e){n.utils.adopt(e,n.utils.getPointer(0,this))}_disownContent(){return n.utils.disown(this.content)}get content(){return n.utils.getPointer(0,this)}_hasContent(){return!n.utils.isNull(n.utils.getPointer(0,this))}set content(e){n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptCapTable(e){n.utils.adopt(e,n.utils.getPointer(1,this))}_disownCapTable(){return n.utils.disown(this.capTable)}get capTable(){return n.utils.getList(1,t._CapTable,this)}_hasCapTable(){return!n.utils.isNull(n.utils.getPointer(1,this))}_initCapTable(e){return n.utils.initList(1,t._CapTable,e,this)}set capTable(e){n.utils.copyFrom(e,n.utils.getPointer(1,this))}toString(){return`Payload_`+super.toString()}};const T={NONE:0,SENDER_HOSTED:1,SENDER_PROMISE:2,RECEIVER_HOSTED:3,RECEIVER_ANSWER:4,THIRD_PARTY_HOSTED:5};var E=class r extends e.Struct{static NONE=T.NONE;static SENDER_HOSTED=T.SENDER_HOSTED;static SENDER_PROMISE=T.SENDER_PROMISE;static RECEIVER_HOSTED=T.RECEIVER_HOSTED;static RECEIVER_ANSWER=T.RECEIVER_ANSWER;static THIRD_PARTY_HOSTED=T.THIRD_PARTY_HOSTED;static _capnp={displayName:`CapDescriptor`,id:`8523ddc40b86b8b0`,size:new e.ObjectSize(8,1),defaultAttachedFd:t.getUint8Mask(255)};get _isNone(){return n.utils.getUint16(0,this)===0}set none(e){n.utils.setUint16(0,0,this)}get senderHosted(){return n.utils.testWhich(`senderHosted`,n.utils.getUint16(0,this),1,this),n.utils.getUint32(4,this)}get _isSenderHosted(){return n.utils.getUint16(0,this)===1}set senderHosted(e){n.utils.setUint16(0,1,this),n.utils.setUint32(4,e,this)}get senderPromise(){return n.utils.testWhich(`senderPromise`,n.utils.getUint16(0,this),2,this),n.utils.getUint32(4,this)}get _isSenderPromise(){return n.utils.getUint16(0,this)===2}set senderPromise(e){n.utils.setUint16(0,2,this),n.utils.setUint32(4,e,this)}get receiverHosted(){return n.utils.testWhich(`receiverHosted`,n.utils.getUint16(0,this),3,this),n.utils.getUint32(4,this)}get _isReceiverHosted(){return n.utils.getUint16(0,this)===3}set receiverHosted(e){n.utils.setUint16(0,3,this),n.utils.setUint32(4,e,this)}_adoptReceiverAnswer(e){n.utils.setUint16(0,4,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownReceiverAnswer(){return n.utils.disown(this.receiverAnswer)}get receiverAnswer(){return n.utils.testWhich(`receiverAnswer`,n.utils.getUint16(0,this),4,this),n.utils.getStruct(0,k,this)}_hasReceiverAnswer(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initReceiverAnswer(){return n.utils.setUint16(0,4,this),n.utils.initStructAt(0,k,this)}get _isReceiverAnswer(){return n.utils.getUint16(0,this)===4}set receiverAnswer(e){n.utils.setUint16(0,4,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}_adoptThirdPartyHosted(e){n.utils.setUint16(0,5,this),n.utils.adopt(e,n.utils.getPointer(0,this))}_disownThirdPartyHosted(){return n.utils.disown(this.thirdPartyHosted)}get thirdPartyHosted(){return n.utils.testWhich(`thirdPartyHosted`,n.utils.getUint16(0,this),5,this),n.utils.getStruct(0,A,this)}_hasThirdPartyHosted(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initThirdPartyHosted(){return n.utils.setUint16(0,5,this),n.utils.initStructAt(0,A,this)}get _isThirdPartyHosted(){return n.utils.getUint16(0,this)===5}set thirdPartyHosted(e){n.utils.setUint16(0,5,this),n.utils.copyFrom(e,n.utils.getPointer(0,this))}get attachedFd(){return n.utils.getUint8(2,this,r._capnp.defaultAttachedFd)}set attachedFd(e){n.utils.setUint8(2,e,this,r._capnp.defaultAttachedFd)}toString(){return`CapDescriptor_`+super.toString()}which(){return n.utils.getUint16(0,this)}};const D={NOOP:0,GET_POINTER_FIELD:1};var O=class extends e.Struct{static NOOP=D.NOOP;static GET_POINTER_FIELD=D.GET_POINTER_FIELD;static _capnp={displayName:`Op`,id:`f316944415569081`,size:new e.ObjectSize(8,0)};get _isNoop(){return n.utils.getUint16(0,this)===0}set noop(e){n.utils.setUint16(0,0,this)}get getPointerField(){return n.utils.testWhich(`getPointerField`,n.utils.getUint16(0,this),1,this),n.utils.getUint16(2,this)}get _isGetPointerField(){return n.utils.getUint16(0,this)===1}set getPointerField(e){n.utils.setUint16(0,1,this),n.utils.setUint16(2,e,this)}toString(){return`PromisedAnswer_Op_`+super.toString()}which(){return n.utils.getUint16(0,this)}},k=class t extends e.Struct{static Op=O;static _capnp={displayName:`PromisedAnswer`,id:`d800b1d6cd6f1ca0`,size:new e.ObjectSize(8,1)};static _Transform;get questionId(){return n.utils.getUint32(0,this)}set questionId(e){n.utils.setUint32(0,e,this)}_adoptTransform(e){n.utils.adopt(e,n.utils.getPointer(0,this))}_disownTransform(){return n.utils.disown(this.transform)}get transform(){return n.utils.getList(0,t._Transform,this)}_hasTransform(){return!n.utils.isNull(n.utils.getPointer(0,this))}_initTransform(e){return n.utils.initList(0,t._Transform,e,this)}set transform(e){n.utils.copyFrom(e,n.utils.getPointer(0,this))}toString(){return`PromisedAnswer_`+super.toString()}},A=class extends e.Struct{static _capnp={displayName:`ThirdPartyCapDescriptor`,id:`d37007fde1f0027d`,size:new e.ObjectSize(8,1)};_adoptId(e){n.utils.adopt(e,n.utils.getPointer(0,this))}_disownId(){return n.utils.disown(this.id)}get id(){return n.utils.getPointer(0,this)}_hasId(){return!n.utils.isNull(n.utils.getPointer(0,this))}set id(e){n.utils.copyFrom(e,n.utils.getPointer(0,this))}get vineId(){return n.utils.getUint32(0,this)}set vineId(e){n.utils.setUint32(0,e,this)}toString(){return`ThirdPartyCapDescriptor_`+super.toString()}};const j={FAILED:0,OVERLOADED:1,DISCONNECTED:2,UNIMPLEMENTED:3};var M=class extends e.Struct{static Type=j;static _capnp={displayName:`Exception`,id:`d625b7063acf691a`,size:new e.ObjectSize(8,2)};get reason(){return n.utils.getText(0,this)}set reason(e){n.utils.setText(0,e,this)}get type(){return n.utils.getUint16(4,this)}set type(e){n.utils.setUint16(4,e,this)}get obsoleteIsCallersFault(){return n.utils.getBit(0,this)}set obsoleteIsCallersFault(e){n.utils.setBit(0,e,this)}get obsoleteDurability(){return n.utils.getUint16(2,this)}set obsoleteDurability(e){n.utils.setUint16(2,e,this)}get trace(){return n.utils.getText(1,this)}set trace(e){n.utils.setText(1,e,this)}toString(){return`Exception_`+super.toString()}};w._CapTable=t.CompositeList(E),k._Transform=t.CompositeList(O),exports.Accept=b,exports.Bootstrap=o,exports.Call=l,exports.Call_SendResultsTo=c,exports.Call_SendResultsTo_Which=s,exports.CapDescriptor=E,exports.CapDescriptor_Which=T,exports.Disembargo=v,exports.Disembargo_Context=_,exports.Disembargo_Context_Which=g,exports.Exception=M,exports.Exception_Type=j,exports.Finish=f,exports.Join=x,exports.Message=a,exports.MessageTarget=C,exports.MessageTarget_Which=S,exports.Message_Which=i,exports.Payload=w,exports.PromisedAnswer=k,exports.PromisedAnswer_Op=O,exports.PromisedAnswer_Op_Which=D,exports.Provide=y,exports.Release=h,exports.Resolve=m,exports.Resolve_Which=p,exports.Return=d,exports.Return_Which=u,exports.ThirdPartyCapDescriptor=A,exports._capnpFileId=r;
package/schemas/rpc.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as index_d_exports } from "./index-b7dam4EA.cjs";
1
+ import { index_d_exports } from "./src/index.cjs";
2
2
 
3
3
  //#region schemas/rpc.d.ts
4
4
  declare const _capnpFileId: bigint;
package/schemas/rpc.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as index_d_exports } from "./index-BAJMwFip.mjs";
1
+ import { index_d_exports } from "./packages/capnp/src/index.mjs";
2
2
 
3
3
  //#region schemas/rpc.d.ts
4
4
  declare const _capnpFileId: bigint;
package/schemas/rpc.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{d as e,l as t,o as n,s as r,t as i,u as a}from"./src-DqIy7I3p.mjs";const o=BigInt(`0xb312981b2552a250`),s={UNIMPLEMENTED:0,ABORT:1,BOOTSTRAP:8,CALL:2,RETURN:3,FINISH:4,RESOLVE:5,RELEASE:6,DISEMBARGO:13,OBSOLETE_SAVE:7,OBSOLETE_DELETE:9,PROVIDE:10,ACCEPT:11,JOIN:12};var c=class t extends e{static UNIMPLEMENTED=s.UNIMPLEMENTED;static ABORT=s.ABORT;static BOOTSTRAP=s.BOOTSTRAP;static CALL=s.CALL;static RETURN=s.RETURN;static FINISH=s.FINISH;static RESOLVE=s.RESOLVE;static RELEASE=s.RELEASE;static DISEMBARGO=s.DISEMBARGO;static OBSOLETE_SAVE=s.OBSOLETE_SAVE;static OBSOLETE_DELETE=s.OBSOLETE_DELETE;static PROVIDE=s.PROVIDE;static ACCEPT=s.ACCEPT;static JOIN=s.JOIN;static _capnp={displayName:`Message`,id:`91b79f1f808db032`,size:new a(8,1)};_adoptUnimplemented(e){i.setUint16(0,0,this),i.adopt(e,i.getPointer(0,this))}_disownUnimplemented(){return i.disown(this.unimplemented)}get unimplemented(){return i.testWhich(`unimplemented`,i.getUint16(0,this),0,this),i.getStruct(0,t,this)}_hasUnimplemented(){return!i.isNull(i.getPointer(0,this))}_initUnimplemented(){return i.setUint16(0,0,this),i.initStructAt(0,t,this)}get _isUnimplemented(){return i.getUint16(0,this)===0}set unimplemented(e){i.setUint16(0,0,this),i.copyFrom(e,i.getPointer(0,this))}_adoptAbort(e){i.setUint16(0,1,this),i.adopt(e,i.getPointer(0,this))}_disownAbort(){return i.disown(this.abort)}get abort(){return i.testWhich(`abort`,i.getUint16(0,this),1,this),i.getStruct(0,F,this)}_hasAbort(){return!i.isNull(i.getPointer(0,this))}_initAbort(){return i.setUint16(0,1,this),i.initStructAt(0,F,this)}get _isAbort(){return i.getUint16(0,this)===1}set abort(e){i.setUint16(0,1,this),i.copyFrom(e,i.getPointer(0,this))}_adoptBootstrap(e){i.setUint16(0,8,this),i.adopt(e,i.getPointer(0,this))}_disownBootstrap(){return i.disown(this.bootstrap)}get bootstrap(){return i.testWhich(`bootstrap`,i.getUint16(0,this),8,this),i.getStruct(0,l,this)}_hasBootstrap(){return!i.isNull(i.getPointer(0,this))}_initBootstrap(){return i.setUint16(0,8,this),i.initStructAt(0,l,this)}get _isBootstrap(){return i.getUint16(0,this)===8}set bootstrap(e){i.setUint16(0,8,this),i.copyFrom(e,i.getPointer(0,this))}_adoptCall(e){i.setUint16(0,2,this),i.adopt(e,i.getPointer(0,this))}_disownCall(){return i.disown(this.call)}get call(){return i.testWhich(`call`,i.getUint16(0,this),2,this),i.getStruct(0,f,this)}_hasCall(){return!i.isNull(i.getPointer(0,this))}_initCall(){return i.setUint16(0,2,this),i.initStructAt(0,f,this)}get _isCall(){return i.getUint16(0,this)===2}set call(e){i.setUint16(0,2,this),i.copyFrom(e,i.getPointer(0,this))}_adoptReturn(e){i.setUint16(0,3,this),i.adopt(e,i.getPointer(0,this))}_disownReturn(){return i.disown(this.return)}get return(){return i.testWhich(`return`,i.getUint16(0,this),3,this),i.getStruct(0,m,this)}_hasReturn(){return!i.isNull(i.getPointer(0,this))}_initReturn(){return i.setUint16(0,3,this),i.initStructAt(0,m,this)}get _isReturn(){return i.getUint16(0,this)===3}set return(e){i.setUint16(0,3,this),i.copyFrom(e,i.getPointer(0,this))}_adoptFinish(e){i.setUint16(0,4,this),i.adopt(e,i.getPointer(0,this))}_disownFinish(){return i.disown(this.finish)}get finish(){return i.testWhich(`finish`,i.getUint16(0,this),4,this),i.getStruct(0,h,this)}_hasFinish(){return!i.isNull(i.getPointer(0,this))}_initFinish(){return i.setUint16(0,4,this),i.initStructAt(0,h,this)}get _isFinish(){return i.getUint16(0,this)===4}set finish(e){i.setUint16(0,4,this),i.copyFrom(e,i.getPointer(0,this))}_adoptResolve(e){i.setUint16(0,5,this),i.adopt(e,i.getPointer(0,this))}_disownResolve(){return i.disown(this.resolve)}get resolve(){return i.testWhich(`resolve`,i.getUint16(0,this),5,this),i.getStruct(0,_,this)}_hasResolve(){return!i.isNull(i.getPointer(0,this))}_initResolve(){return i.setUint16(0,5,this),i.initStructAt(0,_,this)}get _isResolve(){return i.getUint16(0,this)===5}set resolve(e){i.setUint16(0,5,this),i.copyFrom(e,i.getPointer(0,this))}_adoptRelease(e){i.setUint16(0,6,this),i.adopt(e,i.getPointer(0,this))}_disownRelease(){return i.disown(this.release)}get release(){return i.testWhich(`release`,i.getUint16(0,this),6,this),i.getStruct(0,v,this)}_hasRelease(){return!i.isNull(i.getPointer(0,this))}_initRelease(){return i.setUint16(0,6,this),i.initStructAt(0,v,this)}get _isRelease(){return i.getUint16(0,this)===6}set release(e){i.setUint16(0,6,this),i.copyFrom(e,i.getPointer(0,this))}_adoptDisembargo(e){i.setUint16(0,13,this),i.adopt(e,i.getPointer(0,this))}_disownDisembargo(){return i.disown(this.disembargo)}get disembargo(){return i.testWhich(`disembargo`,i.getUint16(0,this),13,this),i.getStruct(0,x,this)}_hasDisembargo(){return!i.isNull(i.getPointer(0,this))}_initDisembargo(){return i.setUint16(0,13,this),i.initStructAt(0,x,this)}get _isDisembargo(){return i.getUint16(0,this)===13}set disembargo(e){i.setUint16(0,13,this),i.copyFrom(e,i.getPointer(0,this))}_adoptObsoleteSave(e){i.setUint16(0,7,this),i.adopt(e,i.getPointer(0,this))}_disownObsoleteSave(){return i.disown(this.obsoleteSave)}get obsoleteSave(){return i.testWhich(`obsoleteSave`,i.getUint16(0,this),7,this),i.getPointer(0,this)}_hasObsoleteSave(){return!i.isNull(i.getPointer(0,this))}get _isObsoleteSave(){return i.getUint16(0,this)===7}set obsoleteSave(e){i.setUint16(0,7,this),i.copyFrom(e,i.getPointer(0,this))}_adoptObsoleteDelete(e){i.setUint16(0,9,this),i.adopt(e,i.getPointer(0,this))}_disownObsoleteDelete(){return i.disown(this.obsoleteDelete)}get obsoleteDelete(){return i.testWhich(`obsoleteDelete`,i.getUint16(0,this),9,this),i.getPointer(0,this)}_hasObsoleteDelete(){return!i.isNull(i.getPointer(0,this))}get _isObsoleteDelete(){return i.getUint16(0,this)===9}set obsoleteDelete(e){i.setUint16(0,9,this),i.copyFrom(e,i.getPointer(0,this))}_adoptProvide(e){i.setUint16(0,10,this),i.adopt(e,i.getPointer(0,this))}_disownProvide(){return i.disown(this.provide)}get provide(){return i.testWhich(`provide`,i.getUint16(0,this),10,this),i.getStruct(0,S,this)}_hasProvide(){return!i.isNull(i.getPointer(0,this))}_initProvide(){return i.setUint16(0,10,this),i.initStructAt(0,S,this)}get _isProvide(){return i.getUint16(0,this)===10}set provide(e){i.setUint16(0,10,this),i.copyFrom(e,i.getPointer(0,this))}_adoptAccept(e){i.setUint16(0,11,this),i.adopt(e,i.getPointer(0,this))}_disownAccept(){return i.disown(this.accept)}get accept(){return i.testWhich(`accept`,i.getUint16(0,this),11,this),i.getStruct(0,C,this)}_hasAccept(){return!i.isNull(i.getPointer(0,this))}_initAccept(){return i.setUint16(0,11,this),i.initStructAt(0,C,this)}get _isAccept(){return i.getUint16(0,this)===11}set accept(e){i.setUint16(0,11,this),i.copyFrom(e,i.getPointer(0,this))}_adoptJoin(e){i.setUint16(0,12,this),i.adopt(e,i.getPointer(0,this))}_disownJoin(){return i.disown(this.join)}get join(){return i.testWhich(`join`,i.getUint16(0,this),12,this),i.getStruct(0,w,this)}_hasJoin(){return!i.isNull(i.getPointer(0,this))}_initJoin(){return i.setUint16(0,12,this),i.initStructAt(0,w,this)}get _isJoin(){return i.getUint16(0,this)===12}set join(e){i.setUint16(0,12,this),i.copyFrom(e,i.getPointer(0,this))}toString(){return`Message_`+super.toString()}which(){return i.getUint16(0,this)}},l=class extends e{static _capnp={displayName:`Bootstrap`,id:`e94ccf8031176ec4`,size:new a(8,1)};get questionId(){return i.getUint32(0,this)}set questionId(e){i.setUint32(0,e,this)}_adoptDeprecatedObjectId(e){i.adopt(e,i.getPointer(0,this))}_disownDeprecatedObjectId(){return i.disown(this.deprecatedObjectId)}get deprecatedObjectId(){return i.getPointer(0,this)}_hasDeprecatedObjectId(){return!i.isNull(i.getPointer(0,this))}set deprecatedObjectId(e){i.copyFrom(e,i.getPointer(0,this))}toString(){return`Bootstrap_`+super.toString()}};const u={CALLER:0,YOURSELF:1,THIRD_PARTY:2};var d=class extends e{static CALLER=u.CALLER;static YOURSELF=u.YOURSELF;static THIRD_PARTY=u.THIRD_PARTY;static _capnp={displayName:`sendResultsTo`,id:`dae8b0f61aab5f99`,size:new a(24,3)};get _isCaller(){return i.getUint16(6,this)===0}set caller(e){i.setUint16(6,0,this)}get _isYourself(){return i.getUint16(6,this)===1}set yourself(e){i.setUint16(6,1,this)}_adoptThirdParty(e){i.setUint16(6,2,this),i.adopt(e,i.getPointer(2,this))}_disownThirdParty(){return i.disown(this.thirdParty)}get thirdParty(){return i.testWhich(`thirdParty`,i.getUint16(6,this),2,this),i.getPointer(2,this)}_hasThirdParty(){return!i.isNull(i.getPointer(2,this))}get _isThirdParty(){return i.getUint16(6,this)===2}set thirdParty(e){i.setUint16(6,2,this),i.copyFrom(e,i.getPointer(2,this))}toString(){return`Call_SendResultsTo_`+super.toString()}which(){return i.getUint16(6,this)}},f=class t extends e{static _capnp={displayName:`Call`,id:`836a53ce789d4cd4`,size:new a(24,3),defaultAllowThirdPartyTailCall:r(!1,0),defaultNoPromisePipelining:r(!1,1),defaultOnlyPromisePipeline:r(!1,2)};get questionId(){return i.getUint32(0,this)}set questionId(e){i.setUint32(0,e,this)}_adoptTarget(e){i.adopt(e,i.getPointer(0,this))}_disownTarget(){return i.disown(this.target)}get target(){return i.getStruct(0,E,this)}_hasTarget(){return!i.isNull(i.getPointer(0,this))}_initTarget(){return i.initStructAt(0,E,this)}set target(e){i.copyFrom(e,i.getPointer(0,this))}get interfaceId(){return i.getUint64(8,this)}set interfaceId(e){i.setUint64(8,e,this)}get methodId(){return i.getUint16(4,this)}set methodId(e){i.setUint16(4,e,this)}get allowThirdPartyTailCall(){return i.getBit(128,this,t._capnp.defaultAllowThirdPartyTailCall)}set allowThirdPartyTailCall(e){i.setBit(128,e,this,t._capnp.defaultAllowThirdPartyTailCall)}get noPromisePipelining(){return i.getBit(129,this,t._capnp.defaultNoPromisePipelining)}set noPromisePipelining(e){i.setBit(129,e,this,t._capnp.defaultNoPromisePipelining)}get onlyPromisePipeline(){return i.getBit(130,this,t._capnp.defaultOnlyPromisePipeline)}set onlyPromisePipeline(e){i.setBit(130,e,this,t._capnp.defaultOnlyPromisePipeline)}_adoptParams(e){i.adopt(e,i.getPointer(1,this))}_disownParams(){return i.disown(this.params)}get params(){return i.getStruct(1,D,this)}_hasParams(){return!i.isNull(i.getPointer(1,this))}_initParams(){return i.initStructAt(1,D,this)}set params(e){i.copyFrom(e,i.getPointer(1,this))}get sendResultsTo(){return i.getAs(d,this)}_initSendResultsTo(){return i.getAs(d,this)}toString(){return`Call_`+super.toString()}};const p={RESULTS:0,EXCEPTION:1,CANCELED:2,RESULTS_SENT_ELSEWHERE:3,TAKE_FROM_OTHER_QUESTION:4,ACCEPT_FROM_THIRD_PARTY:5};var m=class t extends e{static RESULTS=p.RESULTS;static EXCEPTION=p.EXCEPTION;static CANCELED=p.CANCELED;static RESULTS_SENT_ELSEWHERE=p.RESULTS_SENT_ELSEWHERE;static TAKE_FROM_OTHER_QUESTION=p.TAKE_FROM_OTHER_QUESTION;static ACCEPT_FROM_THIRD_PARTY=p.ACCEPT_FROM_THIRD_PARTY;static _capnp={displayName:`Return`,id:`9e19b28d3db3573a`,size:new a(16,1),defaultReleaseParamCaps:r(!0,0),defaultNoFinishNeeded:r(!1,1)};get answerId(){return i.getUint32(0,this)}set answerId(e){i.setUint32(0,e,this)}get releaseParamCaps(){return i.getBit(32,this,t._capnp.defaultReleaseParamCaps)}set releaseParamCaps(e){i.setBit(32,e,this,t._capnp.defaultReleaseParamCaps)}get noFinishNeeded(){return i.getBit(33,this,t._capnp.defaultNoFinishNeeded)}set noFinishNeeded(e){i.setBit(33,e,this,t._capnp.defaultNoFinishNeeded)}_adoptResults(e){i.setUint16(6,0,this),i.adopt(e,i.getPointer(0,this))}_disownResults(){return i.disown(this.results)}get results(){return i.testWhich(`results`,i.getUint16(6,this),0,this),i.getStruct(0,D,this)}_hasResults(){return!i.isNull(i.getPointer(0,this))}_initResults(){return i.setUint16(6,0,this),i.initStructAt(0,D,this)}get _isResults(){return i.getUint16(6,this)===0}set results(e){i.setUint16(6,0,this),i.copyFrom(e,i.getPointer(0,this))}_adoptException(e){i.setUint16(6,1,this),i.adopt(e,i.getPointer(0,this))}_disownException(){return i.disown(this.exception)}get exception(){return i.testWhich(`exception`,i.getUint16(6,this),1,this),i.getStruct(0,F,this)}_hasException(){return!i.isNull(i.getPointer(0,this))}_initException(){return i.setUint16(6,1,this),i.initStructAt(0,F,this)}get _isException(){return i.getUint16(6,this)===1}set exception(e){i.setUint16(6,1,this),i.copyFrom(e,i.getPointer(0,this))}get _isCanceled(){return i.getUint16(6,this)===2}set canceled(e){i.setUint16(6,2,this)}get _isResultsSentElsewhere(){return i.getUint16(6,this)===3}set resultsSentElsewhere(e){i.setUint16(6,3,this)}get takeFromOtherQuestion(){return i.testWhich(`takeFromOtherQuestion`,i.getUint16(6,this),4,this),i.getUint32(8,this)}get _isTakeFromOtherQuestion(){return i.getUint16(6,this)===4}set takeFromOtherQuestion(e){i.setUint16(6,4,this),i.setUint32(8,e,this)}_adoptAcceptFromThirdParty(e){i.setUint16(6,5,this),i.adopt(e,i.getPointer(0,this))}_disownAcceptFromThirdParty(){return i.disown(this.acceptFromThirdParty)}get acceptFromThirdParty(){return i.testWhich(`acceptFromThirdParty`,i.getUint16(6,this),5,this),i.getPointer(0,this)}_hasAcceptFromThirdParty(){return!i.isNull(i.getPointer(0,this))}get _isAcceptFromThirdParty(){return i.getUint16(6,this)===5}set acceptFromThirdParty(e){i.setUint16(6,5,this),i.copyFrom(e,i.getPointer(0,this))}toString(){return`Return_`+super.toString()}which(){return i.getUint16(6,this)}},h=class t extends e{static _capnp={displayName:`Finish`,id:`d37d2eb2c2f80e63`,size:new a(8,0),defaultReleaseResultCaps:r(!0,0),defaultRequireEarlyCancellationWorkaround:r(!0,1)};get questionId(){return i.getUint32(0,this)}set questionId(e){i.setUint32(0,e,this)}get releaseResultCaps(){return i.getBit(32,this,t._capnp.defaultReleaseResultCaps)}set releaseResultCaps(e){i.setBit(32,e,this,t._capnp.defaultReleaseResultCaps)}get requireEarlyCancellationWorkaround(){return i.getBit(33,this,t._capnp.defaultRequireEarlyCancellationWorkaround)}set requireEarlyCancellationWorkaround(e){i.setBit(33,e,this,t._capnp.defaultRequireEarlyCancellationWorkaround)}toString(){return`Finish_`+super.toString()}};const g={CAP:0,EXCEPTION:1};var _=class extends e{static CAP=g.CAP;static EXCEPTION=g.EXCEPTION;static _capnp={displayName:`Resolve`,id:`bbc29655fa89086e`,size:new a(8,1)};get promiseId(){return i.getUint32(0,this)}set promiseId(e){i.setUint32(0,e,this)}_adoptCap(e){i.setUint16(4,0,this),i.adopt(e,i.getPointer(0,this))}_disownCap(){return i.disown(this.cap)}get cap(){return i.testWhich(`cap`,i.getUint16(4,this),0,this),i.getStruct(0,k,this)}_hasCap(){return!i.isNull(i.getPointer(0,this))}_initCap(){return i.setUint16(4,0,this),i.initStructAt(0,k,this)}get _isCap(){return i.getUint16(4,this)===0}set cap(e){i.setUint16(4,0,this),i.copyFrom(e,i.getPointer(0,this))}_adoptException(e){i.setUint16(4,1,this),i.adopt(e,i.getPointer(0,this))}_disownException(){return i.disown(this.exception)}get exception(){return i.testWhich(`exception`,i.getUint16(4,this),1,this),i.getStruct(0,F,this)}_hasException(){return!i.isNull(i.getPointer(0,this))}_initException(){return i.setUint16(4,1,this),i.initStructAt(0,F,this)}get _isException(){return i.getUint16(4,this)===1}set exception(e){i.setUint16(4,1,this),i.copyFrom(e,i.getPointer(0,this))}toString(){return`Resolve_`+super.toString()}which(){return i.getUint16(4,this)}},v=class extends e{static _capnp={displayName:`Release`,id:`ad1a6c0d7dd07497`,size:new a(8,0)};get id(){return i.getUint32(0,this)}set id(e){i.setUint32(0,e,this)}get referenceCount(){return i.getUint32(4,this)}set referenceCount(e){i.setUint32(4,e,this)}toString(){return`Release_`+super.toString()}};const y={SENDER_LOOPBACK:0,RECEIVER_LOOPBACK:1,ACCEPT:2,PROVIDE:3};var b=class extends e{static SENDER_LOOPBACK=y.SENDER_LOOPBACK;static RECEIVER_LOOPBACK=y.RECEIVER_LOOPBACK;static ACCEPT=y.ACCEPT;static PROVIDE=y.PROVIDE;static _capnp={displayName:`context`,id:`d562b4df655bdd4d`,size:new a(8,1)};get senderLoopback(){return i.testWhich(`senderLoopback`,i.getUint16(4,this),0,this),i.getUint32(0,this)}get _isSenderLoopback(){return i.getUint16(4,this)===0}set senderLoopback(e){i.setUint16(4,0,this),i.setUint32(0,e,this)}get receiverLoopback(){return i.testWhich(`receiverLoopback`,i.getUint16(4,this),1,this),i.getUint32(0,this)}get _isReceiverLoopback(){return i.getUint16(4,this)===1}set receiverLoopback(e){i.setUint16(4,1,this),i.setUint32(0,e,this)}get _isAccept(){return i.getUint16(4,this)===2}set accept(e){i.setUint16(4,2,this)}get provide(){return i.testWhich(`provide`,i.getUint16(4,this),3,this),i.getUint32(0,this)}get _isProvide(){return i.getUint16(4,this)===3}set provide(e){i.setUint16(4,3,this),i.setUint32(0,e,this)}toString(){return`Disembargo_Context_`+super.toString()}which(){return i.getUint16(4,this)}},x=class extends e{static _capnp={displayName:`Disembargo`,id:`f964368b0fbd3711`,size:new a(8,1)};_adoptTarget(e){i.adopt(e,i.getPointer(0,this))}_disownTarget(){return i.disown(this.target)}get target(){return i.getStruct(0,E,this)}_hasTarget(){return!i.isNull(i.getPointer(0,this))}_initTarget(){return i.initStructAt(0,E,this)}set target(e){i.copyFrom(e,i.getPointer(0,this))}get context(){return i.getAs(b,this)}_initContext(){return i.getAs(b,this)}toString(){return`Disembargo_`+super.toString()}},S=class extends e{static _capnp={displayName:`Provide`,id:`9c6a046bfbc1ac5a`,size:new a(8,2)};get questionId(){return i.getUint32(0,this)}set questionId(e){i.setUint32(0,e,this)}_adoptTarget(e){i.adopt(e,i.getPointer(0,this))}_disownTarget(){return i.disown(this.target)}get target(){return i.getStruct(0,E,this)}_hasTarget(){return!i.isNull(i.getPointer(0,this))}_initTarget(){return i.initStructAt(0,E,this)}set target(e){i.copyFrom(e,i.getPointer(0,this))}_adoptRecipient(e){i.adopt(e,i.getPointer(1,this))}_disownRecipient(){return i.disown(this.recipient)}get recipient(){return i.getPointer(1,this)}_hasRecipient(){return!i.isNull(i.getPointer(1,this))}set recipient(e){i.copyFrom(e,i.getPointer(1,this))}toString(){return`Provide_`+super.toString()}},C=class extends e{static _capnp={displayName:`Accept`,id:`d4c9b56290554016`,size:new a(8,1)};get questionId(){return i.getUint32(0,this)}set questionId(e){i.setUint32(0,e,this)}_adoptProvision(e){i.adopt(e,i.getPointer(0,this))}_disownProvision(){return i.disown(this.provision)}get provision(){return i.getPointer(0,this)}_hasProvision(){return!i.isNull(i.getPointer(0,this))}set provision(e){i.copyFrom(e,i.getPointer(0,this))}get embargo(){return i.getBit(32,this)}set embargo(e){i.setBit(32,e,this)}toString(){return`Accept_`+super.toString()}},w=class extends e{static _capnp={displayName:`Join`,id:`fbe1980490e001af`,size:new a(8,2)};get questionId(){return i.getUint32(0,this)}set questionId(e){i.setUint32(0,e,this)}_adoptTarget(e){i.adopt(e,i.getPointer(0,this))}_disownTarget(){return i.disown(this.target)}get target(){return i.getStruct(0,E,this)}_hasTarget(){return!i.isNull(i.getPointer(0,this))}_initTarget(){return i.initStructAt(0,E,this)}set target(e){i.copyFrom(e,i.getPointer(0,this))}_adoptKeyPart(e){i.adopt(e,i.getPointer(1,this))}_disownKeyPart(){return i.disown(this.keyPart)}get keyPart(){return i.getPointer(1,this)}_hasKeyPart(){return!i.isNull(i.getPointer(1,this))}set keyPart(e){i.copyFrom(e,i.getPointer(1,this))}toString(){return`Join_`+super.toString()}};const T={IMPORTED_CAP:0,PROMISED_ANSWER:1};var E=class extends e{static IMPORTED_CAP=T.IMPORTED_CAP;static PROMISED_ANSWER=T.PROMISED_ANSWER;static _capnp={displayName:`MessageTarget`,id:`95bc14545813fbc1`,size:new a(8,1)};get importedCap(){return i.testWhich(`importedCap`,i.getUint16(4,this),0,this),i.getUint32(0,this)}get _isImportedCap(){return i.getUint16(4,this)===0}set importedCap(e){i.setUint16(4,0,this),i.setUint32(0,e,this)}_adoptPromisedAnswer(e){i.setUint16(4,1,this),i.adopt(e,i.getPointer(0,this))}_disownPromisedAnswer(){return i.disown(this.promisedAnswer)}get promisedAnswer(){return i.testWhich(`promisedAnswer`,i.getUint16(4,this),1,this),i.getStruct(0,M,this)}_hasPromisedAnswer(){return!i.isNull(i.getPointer(0,this))}_initPromisedAnswer(){return i.setUint16(4,1,this),i.initStructAt(0,M,this)}get _isPromisedAnswer(){return i.getUint16(4,this)===1}set promisedAnswer(e){i.setUint16(4,1,this),i.copyFrom(e,i.getPointer(0,this))}toString(){return`MessageTarget_`+super.toString()}which(){return i.getUint16(4,this)}},D=class t extends e{static _capnp={displayName:`Payload`,id:`9a0e61223d96743b`,size:new a(0,2)};static _CapTable;_adoptContent(e){i.adopt(e,i.getPointer(0,this))}_disownContent(){return i.disown(this.content)}get content(){return i.getPointer(0,this)}_hasContent(){return!i.isNull(i.getPointer(0,this))}set content(e){i.copyFrom(e,i.getPointer(0,this))}_adoptCapTable(e){i.adopt(e,i.getPointer(1,this))}_disownCapTable(){return i.disown(this.capTable)}get capTable(){return i.getList(1,t._CapTable,this)}_hasCapTable(){return!i.isNull(i.getPointer(1,this))}_initCapTable(e){return i.initList(1,t._CapTable,e,this)}set capTable(e){i.copyFrom(e,i.getPointer(1,this))}toString(){return`Payload_`+super.toString()}};const O={NONE:0,SENDER_HOSTED:1,SENDER_PROMISE:2,RECEIVER_HOSTED:3,RECEIVER_ANSWER:4,THIRD_PARTY_HOSTED:5};var k=class n extends e{static NONE=O.NONE;static SENDER_HOSTED=O.SENDER_HOSTED;static SENDER_PROMISE=O.SENDER_PROMISE;static RECEIVER_HOSTED=O.RECEIVER_HOSTED;static RECEIVER_ANSWER=O.RECEIVER_ANSWER;static THIRD_PARTY_HOSTED=O.THIRD_PARTY_HOSTED;static _capnp={displayName:`CapDescriptor`,id:`8523ddc40b86b8b0`,size:new a(8,1),defaultAttachedFd:t(255)};get _isNone(){return i.getUint16(0,this)===0}set none(e){i.setUint16(0,0,this)}get senderHosted(){return i.testWhich(`senderHosted`,i.getUint16(0,this),1,this),i.getUint32(4,this)}get _isSenderHosted(){return i.getUint16(0,this)===1}set senderHosted(e){i.setUint16(0,1,this),i.setUint32(4,e,this)}get senderPromise(){return i.testWhich(`senderPromise`,i.getUint16(0,this),2,this),i.getUint32(4,this)}get _isSenderPromise(){return i.getUint16(0,this)===2}set senderPromise(e){i.setUint16(0,2,this),i.setUint32(4,e,this)}get receiverHosted(){return i.testWhich(`receiverHosted`,i.getUint16(0,this),3,this),i.getUint32(4,this)}get _isReceiverHosted(){return i.getUint16(0,this)===3}set receiverHosted(e){i.setUint16(0,3,this),i.setUint32(4,e,this)}_adoptReceiverAnswer(e){i.setUint16(0,4,this),i.adopt(e,i.getPointer(0,this))}_disownReceiverAnswer(){return i.disown(this.receiverAnswer)}get receiverAnswer(){return i.testWhich(`receiverAnswer`,i.getUint16(0,this),4,this),i.getStruct(0,M,this)}_hasReceiverAnswer(){return!i.isNull(i.getPointer(0,this))}_initReceiverAnswer(){return i.setUint16(0,4,this),i.initStructAt(0,M,this)}get _isReceiverAnswer(){return i.getUint16(0,this)===4}set receiverAnswer(e){i.setUint16(0,4,this),i.copyFrom(e,i.getPointer(0,this))}_adoptThirdPartyHosted(e){i.setUint16(0,5,this),i.adopt(e,i.getPointer(0,this))}_disownThirdPartyHosted(){return i.disown(this.thirdPartyHosted)}get thirdPartyHosted(){return i.testWhich(`thirdPartyHosted`,i.getUint16(0,this),5,this),i.getStruct(0,N,this)}_hasThirdPartyHosted(){return!i.isNull(i.getPointer(0,this))}_initThirdPartyHosted(){return i.setUint16(0,5,this),i.initStructAt(0,N,this)}get _isThirdPartyHosted(){return i.getUint16(0,this)===5}set thirdPartyHosted(e){i.setUint16(0,5,this),i.copyFrom(e,i.getPointer(0,this))}get attachedFd(){return i.getUint8(2,this,n._capnp.defaultAttachedFd)}set attachedFd(e){i.setUint8(2,e,this,n._capnp.defaultAttachedFd)}toString(){return`CapDescriptor_`+super.toString()}which(){return i.getUint16(0,this)}};const A={NOOP:0,GET_POINTER_FIELD:1};var j=class extends e{static NOOP=A.NOOP;static GET_POINTER_FIELD=A.GET_POINTER_FIELD;static _capnp={displayName:`Op`,id:`f316944415569081`,size:new a(8,0)};get _isNoop(){return i.getUint16(0,this)===0}set noop(e){i.setUint16(0,0,this)}get getPointerField(){return i.testWhich(`getPointerField`,i.getUint16(0,this),1,this),i.getUint16(2,this)}get _isGetPointerField(){return i.getUint16(0,this)===1}set getPointerField(e){i.setUint16(0,1,this),i.setUint16(2,e,this)}toString(){return`PromisedAnswer_Op_`+super.toString()}which(){return i.getUint16(0,this)}},M=class t extends e{static Op=j;static _capnp={displayName:`PromisedAnswer`,id:`d800b1d6cd6f1ca0`,size:new a(8,1)};static _Transform;get questionId(){return i.getUint32(0,this)}set questionId(e){i.setUint32(0,e,this)}_adoptTransform(e){i.adopt(e,i.getPointer(0,this))}_disownTransform(){return i.disown(this.transform)}get transform(){return i.getList(0,t._Transform,this)}_hasTransform(){return!i.isNull(i.getPointer(0,this))}_initTransform(e){return i.initList(0,t._Transform,e,this)}set transform(e){i.copyFrom(e,i.getPointer(0,this))}toString(){return`PromisedAnswer_`+super.toString()}},N=class extends e{static _capnp={displayName:`ThirdPartyCapDescriptor`,id:`d37007fde1f0027d`,size:new a(8,1)};_adoptId(e){i.adopt(e,i.getPointer(0,this))}_disownId(){return i.disown(this.id)}get id(){return i.getPointer(0,this)}_hasId(){return!i.isNull(i.getPointer(0,this))}set id(e){i.copyFrom(e,i.getPointer(0,this))}get vineId(){return i.getUint32(0,this)}set vineId(e){i.setUint32(0,e,this)}toString(){return`ThirdPartyCapDescriptor_`+super.toString()}};const P={FAILED:0,OVERLOADED:1,DISCONNECTED:2,UNIMPLEMENTED:3};var F=class extends e{static Type=P;static _capnp={displayName:`Exception`,id:`d625b7063acf691a`,size:new a(8,2)};get reason(){return i.getText(0,this)}set reason(e){i.setText(0,e,this)}get type(){return i.getUint16(4,this)}set type(e){i.setUint16(4,e,this)}get obsoleteIsCallersFault(){return i.getBit(0,this)}set obsoleteIsCallersFault(e){i.setBit(0,e,this)}get obsoleteDurability(){return i.getUint16(2,this)}set obsoleteDurability(e){i.setUint16(2,e,this)}get trace(){return i.getText(1,this)}set trace(e){i.setText(1,e,this)}toString(){return`Exception_`+super.toString()}};D._CapTable=n(k),M._Transform=n(j);export{C as Accept,l as Bootstrap,f as Call,d as Call_SendResultsTo,u as Call_SendResultsTo_Which,k as CapDescriptor,O as CapDescriptor_Which,x as Disembargo,b as Disembargo_Context,y as Disembargo_Context_Which,F as Exception,P as Exception_Type,h as Finish,w as Join,c as Message,E as MessageTarget,T as MessageTarget_Which,s as Message_Which,D as Payload,M as PromisedAnswer,j as PromisedAnswer_Op,A as PromisedAnswer_Op_Which,S as Provide,v as Release,_ as Resolve,g as Resolve_Which,m as Return,p as Return_Which,N as ThirdPartyCapDescriptor,o as _capnpFileId};
1
+ import{ObjectSize as e,Struct as t}from"./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs";import{CompositeList as n,getBitMask as r,getUint8Mask as i}from"./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs";import{utils as a}from"./node_modules/.pnpm/capnp-es@0.0.11_patch_hash_503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.3/node_modules/capnp-es/dist/index.mjs";import"./packages/capnp/src/index.mjs";const o=BigInt(`0xb312981b2552a250`),s={UNIMPLEMENTED:0,ABORT:1,BOOTSTRAP:8,CALL:2,RETURN:3,FINISH:4,RESOLVE:5,RELEASE:6,DISEMBARGO:13,OBSOLETE_SAVE:7,OBSOLETE_DELETE:9,PROVIDE:10,ACCEPT:11,JOIN:12};var c=class n extends t{static UNIMPLEMENTED=s.UNIMPLEMENTED;static ABORT=s.ABORT;static BOOTSTRAP=s.BOOTSTRAP;static CALL=s.CALL;static RETURN=s.RETURN;static FINISH=s.FINISH;static RESOLVE=s.RESOLVE;static RELEASE=s.RELEASE;static DISEMBARGO=s.DISEMBARGO;static OBSOLETE_SAVE=s.OBSOLETE_SAVE;static OBSOLETE_DELETE=s.OBSOLETE_DELETE;static PROVIDE=s.PROVIDE;static ACCEPT=s.ACCEPT;static JOIN=s.JOIN;static _capnp={displayName:`Message`,id:`91b79f1f808db032`,size:new e(8,1)};_adoptUnimplemented(e){a.setUint16(0,0,this),a.adopt(e,a.getPointer(0,this))}_disownUnimplemented(){return a.disown(this.unimplemented)}get unimplemented(){return a.testWhich(`unimplemented`,a.getUint16(0,this),0,this),a.getStruct(0,n,this)}_hasUnimplemented(){return!a.isNull(a.getPointer(0,this))}_initUnimplemented(){return a.setUint16(0,0,this),a.initStructAt(0,n,this)}get _isUnimplemented(){return a.getUint16(0,this)===0}set unimplemented(e){a.setUint16(0,0,this),a.copyFrom(e,a.getPointer(0,this))}_adoptAbort(e){a.setUint16(0,1,this),a.adopt(e,a.getPointer(0,this))}_disownAbort(){return a.disown(this.abort)}get abort(){return a.testWhich(`abort`,a.getUint16(0,this),1,this),a.getStruct(0,F,this)}_hasAbort(){return!a.isNull(a.getPointer(0,this))}_initAbort(){return a.setUint16(0,1,this),a.initStructAt(0,F,this)}get _isAbort(){return a.getUint16(0,this)===1}set abort(e){a.setUint16(0,1,this),a.copyFrom(e,a.getPointer(0,this))}_adoptBootstrap(e){a.setUint16(0,8,this),a.adopt(e,a.getPointer(0,this))}_disownBootstrap(){return a.disown(this.bootstrap)}get bootstrap(){return a.testWhich(`bootstrap`,a.getUint16(0,this),8,this),a.getStruct(0,l,this)}_hasBootstrap(){return!a.isNull(a.getPointer(0,this))}_initBootstrap(){return a.setUint16(0,8,this),a.initStructAt(0,l,this)}get _isBootstrap(){return a.getUint16(0,this)===8}set bootstrap(e){a.setUint16(0,8,this),a.copyFrom(e,a.getPointer(0,this))}_adoptCall(e){a.setUint16(0,2,this),a.adopt(e,a.getPointer(0,this))}_disownCall(){return a.disown(this.call)}get call(){return a.testWhich(`call`,a.getUint16(0,this),2,this),a.getStruct(0,f,this)}_hasCall(){return!a.isNull(a.getPointer(0,this))}_initCall(){return a.setUint16(0,2,this),a.initStructAt(0,f,this)}get _isCall(){return a.getUint16(0,this)===2}set call(e){a.setUint16(0,2,this),a.copyFrom(e,a.getPointer(0,this))}_adoptReturn(e){a.setUint16(0,3,this),a.adopt(e,a.getPointer(0,this))}_disownReturn(){return a.disown(this.return)}get return(){return a.testWhich(`return`,a.getUint16(0,this),3,this),a.getStruct(0,m,this)}_hasReturn(){return!a.isNull(a.getPointer(0,this))}_initReturn(){return a.setUint16(0,3,this),a.initStructAt(0,m,this)}get _isReturn(){return a.getUint16(0,this)===3}set return(e){a.setUint16(0,3,this),a.copyFrom(e,a.getPointer(0,this))}_adoptFinish(e){a.setUint16(0,4,this),a.adopt(e,a.getPointer(0,this))}_disownFinish(){return a.disown(this.finish)}get finish(){return a.testWhich(`finish`,a.getUint16(0,this),4,this),a.getStruct(0,h,this)}_hasFinish(){return!a.isNull(a.getPointer(0,this))}_initFinish(){return a.setUint16(0,4,this),a.initStructAt(0,h,this)}get _isFinish(){return a.getUint16(0,this)===4}set finish(e){a.setUint16(0,4,this),a.copyFrom(e,a.getPointer(0,this))}_adoptResolve(e){a.setUint16(0,5,this),a.adopt(e,a.getPointer(0,this))}_disownResolve(){return a.disown(this.resolve)}get resolve(){return a.testWhich(`resolve`,a.getUint16(0,this),5,this),a.getStruct(0,_,this)}_hasResolve(){return!a.isNull(a.getPointer(0,this))}_initResolve(){return a.setUint16(0,5,this),a.initStructAt(0,_,this)}get _isResolve(){return a.getUint16(0,this)===5}set resolve(e){a.setUint16(0,5,this),a.copyFrom(e,a.getPointer(0,this))}_adoptRelease(e){a.setUint16(0,6,this),a.adopt(e,a.getPointer(0,this))}_disownRelease(){return a.disown(this.release)}get release(){return a.testWhich(`release`,a.getUint16(0,this),6,this),a.getStruct(0,v,this)}_hasRelease(){return!a.isNull(a.getPointer(0,this))}_initRelease(){return a.setUint16(0,6,this),a.initStructAt(0,v,this)}get _isRelease(){return a.getUint16(0,this)===6}set release(e){a.setUint16(0,6,this),a.copyFrom(e,a.getPointer(0,this))}_adoptDisembargo(e){a.setUint16(0,13,this),a.adopt(e,a.getPointer(0,this))}_disownDisembargo(){return a.disown(this.disembargo)}get disembargo(){return a.testWhich(`disembargo`,a.getUint16(0,this),13,this),a.getStruct(0,x,this)}_hasDisembargo(){return!a.isNull(a.getPointer(0,this))}_initDisembargo(){return a.setUint16(0,13,this),a.initStructAt(0,x,this)}get _isDisembargo(){return a.getUint16(0,this)===13}set disembargo(e){a.setUint16(0,13,this),a.copyFrom(e,a.getPointer(0,this))}_adoptObsoleteSave(e){a.setUint16(0,7,this),a.adopt(e,a.getPointer(0,this))}_disownObsoleteSave(){return a.disown(this.obsoleteSave)}get obsoleteSave(){return a.testWhich(`obsoleteSave`,a.getUint16(0,this),7,this),a.getPointer(0,this)}_hasObsoleteSave(){return!a.isNull(a.getPointer(0,this))}get _isObsoleteSave(){return a.getUint16(0,this)===7}set obsoleteSave(e){a.setUint16(0,7,this),a.copyFrom(e,a.getPointer(0,this))}_adoptObsoleteDelete(e){a.setUint16(0,9,this),a.adopt(e,a.getPointer(0,this))}_disownObsoleteDelete(){return a.disown(this.obsoleteDelete)}get obsoleteDelete(){return a.testWhich(`obsoleteDelete`,a.getUint16(0,this),9,this),a.getPointer(0,this)}_hasObsoleteDelete(){return!a.isNull(a.getPointer(0,this))}get _isObsoleteDelete(){return a.getUint16(0,this)===9}set obsoleteDelete(e){a.setUint16(0,9,this),a.copyFrom(e,a.getPointer(0,this))}_adoptProvide(e){a.setUint16(0,10,this),a.adopt(e,a.getPointer(0,this))}_disownProvide(){return a.disown(this.provide)}get provide(){return a.testWhich(`provide`,a.getUint16(0,this),10,this),a.getStruct(0,S,this)}_hasProvide(){return!a.isNull(a.getPointer(0,this))}_initProvide(){return a.setUint16(0,10,this),a.initStructAt(0,S,this)}get _isProvide(){return a.getUint16(0,this)===10}set provide(e){a.setUint16(0,10,this),a.copyFrom(e,a.getPointer(0,this))}_adoptAccept(e){a.setUint16(0,11,this),a.adopt(e,a.getPointer(0,this))}_disownAccept(){return a.disown(this.accept)}get accept(){return a.testWhich(`accept`,a.getUint16(0,this),11,this),a.getStruct(0,C,this)}_hasAccept(){return!a.isNull(a.getPointer(0,this))}_initAccept(){return a.setUint16(0,11,this),a.initStructAt(0,C,this)}get _isAccept(){return a.getUint16(0,this)===11}set accept(e){a.setUint16(0,11,this),a.copyFrom(e,a.getPointer(0,this))}_adoptJoin(e){a.setUint16(0,12,this),a.adopt(e,a.getPointer(0,this))}_disownJoin(){return a.disown(this.join)}get join(){return a.testWhich(`join`,a.getUint16(0,this),12,this),a.getStruct(0,w,this)}_hasJoin(){return!a.isNull(a.getPointer(0,this))}_initJoin(){return a.setUint16(0,12,this),a.initStructAt(0,w,this)}get _isJoin(){return a.getUint16(0,this)===12}set join(e){a.setUint16(0,12,this),a.copyFrom(e,a.getPointer(0,this))}toString(){return`Message_`+super.toString()}which(){return a.getUint16(0,this)}},l=class extends t{static _capnp={displayName:`Bootstrap`,id:`e94ccf8031176ec4`,size:new e(8,1)};get questionId(){return a.getUint32(0,this)}set questionId(e){a.setUint32(0,e,this)}_adoptDeprecatedObjectId(e){a.adopt(e,a.getPointer(0,this))}_disownDeprecatedObjectId(){return a.disown(this.deprecatedObjectId)}get deprecatedObjectId(){return a.getPointer(0,this)}_hasDeprecatedObjectId(){return!a.isNull(a.getPointer(0,this))}set deprecatedObjectId(e){a.copyFrom(e,a.getPointer(0,this))}toString(){return`Bootstrap_`+super.toString()}};const u={CALLER:0,YOURSELF:1,THIRD_PARTY:2};var d=class extends t{static CALLER=u.CALLER;static YOURSELF=u.YOURSELF;static THIRD_PARTY=u.THIRD_PARTY;static _capnp={displayName:`sendResultsTo`,id:`dae8b0f61aab5f99`,size:new e(24,3)};get _isCaller(){return a.getUint16(6,this)===0}set caller(e){a.setUint16(6,0,this)}get _isYourself(){return a.getUint16(6,this)===1}set yourself(e){a.setUint16(6,1,this)}_adoptThirdParty(e){a.setUint16(6,2,this),a.adopt(e,a.getPointer(2,this))}_disownThirdParty(){return a.disown(this.thirdParty)}get thirdParty(){return a.testWhich(`thirdParty`,a.getUint16(6,this),2,this),a.getPointer(2,this)}_hasThirdParty(){return!a.isNull(a.getPointer(2,this))}get _isThirdParty(){return a.getUint16(6,this)===2}set thirdParty(e){a.setUint16(6,2,this),a.copyFrom(e,a.getPointer(2,this))}toString(){return`Call_SendResultsTo_`+super.toString()}which(){return a.getUint16(6,this)}},f=class n extends t{static _capnp={displayName:`Call`,id:`836a53ce789d4cd4`,size:new e(24,3),defaultAllowThirdPartyTailCall:r(!1,0),defaultNoPromisePipelining:r(!1,1),defaultOnlyPromisePipeline:r(!1,2)};get questionId(){return a.getUint32(0,this)}set questionId(e){a.setUint32(0,e,this)}_adoptTarget(e){a.adopt(e,a.getPointer(0,this))}_disownTarget(){return a.disown(this.target)}get target(){return a.getStruct(0,E,this)}_hasTarget(){return!a.isNull(a.getPointer(0,this))}_initTarget(){return a.initStructAt(0,E,this)}set target(e){a.copyFrom(e,a.getPointer(0,this))}get interfaceId(){return a.getUint64(8,this)}set interfaceId(e){a.setUint64(8,e,this)}get methodId(){return a.getUint16(4,this)}set methodId(e){a.setUint16(4,e,this)}get allowThirdPartyTailCall(){return a.getBit(128,this,n._capnp.defaultAllowThirdPartyTailCall)}set allowThirdPartyTailCall(e){a.setBit(128,e,this,n._capnp.defaultAllowThirdPartyTailCall)}get noPromisePipelining(){return a.getBit(129,this,n._capnp.defaultNoPromisePipelining)}set noPromisePipelining(e){a.setBit(129,e,this,n._capnp.defaultNoPromisePipelining)}get onlyPromisePipeline(){return a.getBit(130,this,n._capnp.defaultOnlyPromisePipeline)}set onlyPromisePipeline(e){a.setBit(130,e,this,n._capnp.defaultOnlyPromisePipeline)}_adoptParams(e){a.adopt(e,a.getPointer(1,this))}_disownParams(){return a.disown(this.params)}get params(){return a.getStruct(1,D,this)}_hasParams(){return!a.isNull(a.getPointer(1,this))}_initParams(){return a.initStructAt(1,D,this)}set params(e){a.copyFrom(e,a.getPointer(1,this))}get sendResultsTo(){return a.getAs(d,this)}_initSendResultsTo(){return a.getAs(d,this)}toString(){return`Call_`+super.toString()}};const p={RESULTS:0,EXCEPTION:1,CANCELED:2,RESULTS_SENT_ELSEWHERE:3,TAKE_FROM_OTHER_QUESTION:4,ACCEPT_FROM_THIRD_PARTY:5};var m=class n extends t{static RESULTS=p.RESULTS;static EXCEPTION=p.EXCEPTION;static CANCELED=p.CANCELED;static RESULTS_SENT_ELSEWHERE=p.RESULTS_SENT_ELSEWHERE;static TAKE_FROM_OTHER_QUESTION=p.TAKE_FROM_OTHER_QUESTION;static ACCEPT_FROM_THIRD_PARTY=p.ACCEPT_FROM_THIRD_PARTY;static _capnp={displayName:`Return`,id:`9e19b28d3db3573a`,size:new e(16,1),defaultReleaseParamCaps:r(!0,0),defaultNoFinishNeeded:r(!1,1)};get answerId(){return a.getUint32(0,this)}set answerId(e){a.setUint32(0,e,this)}get releaseParamCaps(){return a.getBit(32,this,n._capnp.defaultReleaseParamCaps)}set releaseParamCaps(e){a.setBit(32,e,this,n._capnp.defaultReleaseParamCaps)}get noFinishNeeded(){return a.getBit(33,this,n._capnp.defaultNoFinishNeeded)}set noFinishNeeded(e){a.setBit(33,e,this,n._capnp.defaultNoFinishNeeded)}_adoptResults(e){a.setUint16(6,0,this),a.adopt(e,a.getPointer(0,this))}_disownResults(){return a.disown(this.results)}get results(){return a.testWhich(`results`,a.getUint16(6,this),0,this),a.getStruct(0,D,this)}_hasResults(){return!a.isNull(a.getPointer(0,this))}_initResults(){return a.setUint16(6,0,this),a.initStructAt(0,D,this)}get _isResults(){return a.getUint16(6,this)===0}set results(e){a.setUint16(6,0,this),a.copyFrom(e,a.getPointer(0,this))}_adoptException(e){a.setUint16(6,1,this),a.adopt(e,a.getPointer(0,this))}_disownException(){return a.disown(this.exception)}get exception(){return a.testWhich(`exception`,a.getUint16(6,this),1,this),a.getStruct(0,F,this)}_hasException(){return!a.isNull(a.getPointer(0,this))}_initException(){return a.setUint16(6,1,this),a.initStructAt(0,F,this)}get _isException(){return a.getUint16(6,this)===1}set exception(e){a.setUint16(6,1,this),a.copyFrom(e,a.getPointer(0,this))}get _isCanceled(){return a.getUint16(6,this)===2}set canceled(e){a.setUint16(6,2,this)}get _isResultsSentElsewhere(){return a.getUint16(6,this)===3}set resultsSentElsewhere(e){a.setUint16(6,3,this)}get takeFromOtherQuestion(){return a.testWhich(`takeFromOtherQuestion`,a.getUint16(6,this),4,this),a.getUint32(8,this)}get _isTakeFromOtherQuestion(){return a.getUint16(6,this)===4}set takeFromOtherQuestion(e){a.setUint16(6,4,this),a.setUint32(8,e,this)}_adoptAcceptFromThirdParty(e){a.setUint16(6,5,this),a.adopt(e,a.getPointer(0,this))}_disownAcceptFromThirdParty(){return a.disown(this.acceptFromThirdParty)}get acceptFromThirdParty(){return a.testWhich(`acceptFromThirdParty`,a.getUint16(6,this),5,this),a.getPointer(0,this)}_hasAcceptFromThirdParty(){return!a.isNull(a.getPointer(0,this))}get _isAcceptFromThirdParty(){return a.getUint16(6,this)===5}set acceptFromThirdParty(e){a.setUint16(6,5,this),a.copyFrom(e,a.getPointer(0,this))}toString(){return`Return_`+super.toString()}which(){return a.getUint16(6,this)}},h=class n extends t{static _capnp={displayName:`Finish`,id:`d37d2eb2c2f80e63`,size:new e(8,0),defaultReleaseResultCaps:r(!0,0),defaultRequireEarlyCancellationWorkaround:r(!0,1)};get questionId(){return a.getUint32(0,this)}set questionId(e){a.setUint32(0,e,this)}get releaseResultCaps(){return a.getBit(32,this,n._capnp.defaultReleaseResultCaps)}set releaseResultCaps(e){a.setBit(32,e,this,n._capnp.defaultReleaseResultCaps)}get requireEarlyCancellationWorkaround(){return a.getBit(33,this,n._capnp.defaultRequireEarlyCancellationWorkaround)}set requireEarlyCancellationWorkaround(e){a.setBit(33,e,this,n._capnp.defaultRequireEarlyCancellationWorkaround)}toString(){return`Finish_`+super.toString()}};const g={CAP:0,EXCEPTION:1};var _=class extends t{static CAP=g.CAP;static EXCEPTION=g.EXCEPTION;static _capnp={displayName:`Resolve`,id:`bbc29655fa89086e`,size:new e(8,1)};get promiseId(){return a.getUint32(0,this)}set promiseId(e){a.setUint32(0,e,this)}_adoptCap(e){a.setUint16(4,0,this),a.adopt(e,a.getPointer(0,this))}_disownCap(){return a.disown(this.cap)}get cap(){return a.testWhich(`cap`,a.getUint16(4,this),0,this),a.getStruct(0,k,this)}_hasCap(){return!a.isNull(a.getPointer(0,this))}_initCap(){return a.setUint16(4,0,this),a.initStructAt(0,k,this)}get _isCap(){return a.getUint16(4,this)===0}set cap(e){a.setUint16(4,0,this),a.copyFrom(e,a.getPointer(0,this))}_adoptException(e){a.setUint16(4,1,this),a.adopt(e,a.getPointer(0,this))}_disownException(){return a.disown(this.exception)}get exception(){return a.testWhich(`exception`,a.getUint16(4,this),1,this),a.getStruct(0,F,this)}_hasException(){return!a.isNull(a.getPointer(0,this))}_initException(){return a.setUint16(4,1,this),a.initStructAt(0,F,this)}get _isException(){return a.getUint16(4,this)===1}set exception(e){a.setUint16(4,1,this),a.copyFrom(e,a.getPointer(0,this))}toString(){return`Resolve_`+super.toString()}which(){return a.getUint16(4,this)}},v=class extends t{static _capnp={displayName:`Release`,id:`ad1a6c0d7dd07497`,size:new e(8,0)};get id(){return a.getUint32(0,this)}set id(e){a.setUint32(0,e,this)}get referenceCount(){return a.getUint32(4,this)}set referenceCount(e){a.setUint32(4,e,this)}toString(){return`Release_`+super.toString()}};const y={SENDER_LOOPBACK:0,RECEIVER_LOOPBACK:1,ACCEPT:2,PROVIDE:3};var b=class extends t{static SENDER_LOOPBACK=y.SENDER_LOOPBACK;static RECEIVER_LOOPBACK=y.RECEIVER_LOOPBACK;static ACCEPT=y.ACCEPT;static PROVIDE=y.PROVIDE;static _capnp={displayName:`context`,id:`d562b4df655bdd4d`,size:new e(8,1)};get senderLoopback(){return a.testWhich(`senderLoopback`,a.getUint16(4,this),0,this),a.getUint32(0,this)}get _isSenderLoopback(){return a.getUint16(4,this)===0}set senderLoopback(e){a.setUint16(4,0,this),a.setUint32(0,e,this)}get receiverLoopback(){return a.testWhich(`receiverLoopback`,a.getUint16(4,this),1,this),a.getUint32(0,this)}get _isReceiverLoopback(){return a.getUint16(4,this)===1}set receiverLoopback(e){a.setUint16(4,1,this),a.setUint32(0,e,this)}get _isAccept(){return a.getUint16(4,this)===2}set accept(e){a.setUint16(4,2,this)}get provide(){return a.testWhich(`provide`,a.getUint16(4,this),3,this),a.getUint32(0,this)}get _isProvide(){return a.getUint16(4,this)===3}set provide(e){a.setUint16(4,3,this),a.setUint32(0,e,this)}toString(){return`Disembargo_Context_`+super.toString()}which(){return a.getUint16(4,this)}},x=class extends t{static _capnp={displayName:`Disembargo`,id:`f964368b0fbd3711`,size:new e(8,1)};_adoptTarget(e){a.adopt(e,a.getPointer(0,this))}_disownTarget(){return a.disown(this.target)}get target(){return a.getStruct(0,E,this)}_hasTarget(){return!a.isNull(a.getPointer(0,this))}_initTarget(){return a.initStructAt(0,E,this)}set target(e){a.copyFrom(e,a.getPointer(0,this))}get context(){return a.getAs(b,this)}_initContext(){return a.getAs(b,this)}toString(){return`Disembargo_`+super.toString()}},S=class extends t{static _capnp={displayName:`Provide`,id:`9c6a046bfbc1ac5a`,size:new e(8,2)};get questionId(){return a.getUint32(0,this)}set questionId(e){a.setUint32(0,e,this)}_adoptTarget(e){a.adopt(e,a.getPointer(0,this))}_disownTarget(){return a.disown(this.target)}get target(){return a.getStruct(0,E,this)}_hasTarget(){return!a.isNull(a.getPointer(0,this))}_initTarget(){return a.initStructAt(0,E,this)}set target(e){a.copyFrom(e,a.getPointer(0,this))}_adoptRecipient(e){a.adopt(e,a.getPointer(1,this))}_disownRecipient(){return a.disown(this.recipient)}get recipient(){return a.getPointer(1,this)}_hasRecipient(){return!a.isNull(a.getPointer(1,this))}set recipient(e){a.copyFrom(e,a.getPointer(1,this))}toString(){return`Provide_`+super.toString()}},C=class extends t{static _capnp={displayName:`Accept`,id:`d4c9b56290554016`,size:new e(8,1)};get questionId(){return a.getUint32(0,this)}set questionId(e){a.setUint32(0,e,this)}_adoptProvision(e){a.adopt(e,a.getPointer(0,this))}_disownProvision(){return a.disown(this.provision)}get provision(){return a.getPointer(0,this)}_hasProvision(){return!a.isNull(a.getPointer(0,this))}set provision(e){a.copyFrom(e,a.getPointer(0,this))}get embargo(){return a.getBit(32,this)}set embargo(e){a.setBit(32,e,this)}toString(){return`Accept_`+super.toString()}},w=class extends t{static _capnp={displayName:`Join`,id:`fbe1980490e001af`,size:new e(8,2)};get questionId(){return a.getUint32(0,this)}set questionId(e){a.setUint32(0,e,this)}_adoptTarget(e){a.adopt(e,a.getPointer(0,this))}_disownTarget(){return a.disown(this.target)}get target(){return a.getStruct(0,E,this)}_hasTarget(){return!a.isNull(a.getPointer(0,this))}_initTarget(){return a.initStructAt(0,E,this)}set target(e){a.copyFrom(e,a.getPointer(0,this))}_adoptKeyPart(e){a.adopt(e,a.getPointer(1,this))}_disownKeyPart(){return a.disown(this.keyPart)}get keyPart(){return a.getPointer(1,this)}_hasKeyPart(){return!a.isNull(a.getPointer(1,this))}set keyPart(e){a.copyFrom(e,a.getPointer(1,this))}toString(){return`Join_`+super.toString()}};const T={IMPORTED_CAP:0,PROMISED_ANSWER:1};var E=class extends t{static IMPORTED_CAP=T.IMPORTED_CAP;static PROMISED_ANSWER=T.PROMISED_ANSWER;static _capnp={displayName:`MessageTarget`,id:`95bc14545813fbc1`,size:new e(8,1)};get importedCap(){return a.testWhich(`importedCap`,a.getUint16(4,this),0,this),a.getUint32(0,this)}get _isImportedCap(){return a.getUint16(4,this)===0}set importedCap(e){a.setUint16(4,0,this),a.setUint32(0,e,this)}_adoptPromisedAnswer(e){a.setUint16(4,1,this),a.adopt(e,a.getPointer(0,this))}_disownPromisedAnswer(){return a.disown(this.promisedAnswer)}get promisedAnswer(){return a.testWhich(`promisedAnswer`,a.getUint16(4,this),1,this),a.getStruct(0,M,this)}_hasPromisedAnswer(){return!a.isNull(a.getPointer(0,this))}_initPromisedAnswer(){return a.setUint16(4,1,this),a.initStructAt(0,M,this)}get _isPromisedAnswer(){return a.getUint16(4,this)===1}set promisedAnswer(e){a.setUint16(4,1,this),a.copyFrom(e,a.getPointer(0,this))}toString(){return`MessageTarget_`+super.toString()}which(){return a.getUint16(4,this)}},D=class n extends t{static _capnp={displayName:`Payload`,id:`9a0e61223d96743b`,size:new e(0,2)};static _CapTable;_adoptContent(e){a.adopt(e,a.getPointer(0,this))}_disownContent(){return a.disown(this.content)}get content(){return a.getPointer(0,this)}_hasContent(){return!a.isNull(a.getPointer(0,this))}set content(e){a.copyFrom(e,a.getPointer(0,this))}_adoptCapTable(e){a.adopt(e,a.getPointer(1,this))}_disownCapTable(){return a.disown(this.capTable)}get capTable(){return a.getList(1,n._CapTable,this)}_hasCapTable(){return!a.isNull(a.getPointer(1,this))}_initCapTable(e){return a.initList(1,n._CapTable,e,this)}set capTable(e){a.copyFrom(e,a.getPointer(1,this))}toString(){return`Payload_`+super.toString()}};const O={NONE:0,SENDER_HOSTED:1,SENDER_PROMISE:2,RECEIVER_HOSTED:3,RECEIVER_ANSWER:4,THIRD_PARTY_HOSTED:5};var k=class n extends t{static NONE=O.NONE;static SENDER_HOSTED=O.SENDER_HOSTED;static SENDER_PROMISE=O.SENDER_PROMISE;static RECEIVER_HOSTED=O.RECEIVER_HOSTED;static RECEIVER_ANSWER=O.RECEIVER_ANSWER;static THIRD_PARTY_HOSTED=O.THIRD_PARTY_HOSTED;static _capnp={displayName:`CapDescriptor`,id:`8523ddc40b86b8b0`,size:new e(8,1),defaultAttachedFd:i(255)};get _isNone(){return a.getUint16(0,this)===0}set none(e){a.setUint16(0,0,this)}get senderHosted(){return a.testWhich(`senderHosted`,a.getUint16(0,this),1,this),a.getUint32(4,this)}get _isSenderHosted(){return a.getUint16(0,this)===1}set senderHosted(e){a.setUint16(0,1,this),a.setUint32(4,e,this)}get senderPromise(){return a.testWhich(`senderPromise`,a.getUint16(0,this),2,this),a.getUint32(4,this)}get _isSenderPromise(){return a.getUint16(0,this)===2}set senderPromise(e){a.setUint16(0,2,this),a.setUint32(4,e,this)}get receiverHosted(){return a.testWhich(`receiverHosted`,a.getUint16(0,this),3,this),a.getUint32(4,this)}get _isReceiverHosted(){return a.getUint16(0,this)===3}set receiverHosted(e){a.setUint16(0,3,this),a.setUint32(4,e,this)}_adoptReceiverAnswer(e){a.setUint16(0,4,this),a.adopt(e,a.getPointer(0,this))}_disownReceiverAnswer(){return a.disown(this.receiverAnswer)}get receiverAnswer(){return a.testWhich(`receiverAnswer`,a.getUint16(0,this),4,this),a.getStruct(0,M,this)}_hasReceiverAnswer(){return!a.isNull(a.getPointer(0,this))}_initReceiverAnswer(){return a.setUint16(0,4,this),a.initStructAt(0,M,this)}get _isReceiverAnswer(){return a.getUint16(0,this)===4}set receiverAnswer(e){a.setUint16(0,4,this),a.copyFrom(e,a.getPointer(0,this))}_adoptThirdPartyHosted(e){a.setUint16(0,5,this),a.adopt(e,a.getPointer(0,this))}_disownThirdPartyHosted(){return a.disown(this.thirdPartyHosted)}get thirdPartyHosted(){return a.testWhich(`thirdPartyHosted`,a.getUint16(0,this),5,this),a.getStruct(0,N,this)}_hasThirdPartyHosted(){return!a.isNull(a.getPointer(0,this))}_initThirdPartyHosted(){return a.setUint16(0,5,this),a.initStructAt(0,N,this)}get _isThirdPartyHosted(){return a.getUint16(0,this)===5}set thirdPartyHosted(e){a.setUint16(0,5,this),a.copyFrom(e,a.getPointer(0,this))}get attachedFd(){return a.getUint8(2,this,n._capnp.defaultAttachedFd)}set attachedFd(e){a.setUint8(2,e,this,n._capnp.defaultAttachedFd)}toString(){return`CapDescriptor_`+super.toString()}which(){return a.getUint16(0,this)}};const A={NOOP:0,GET_POINTER_FIELD:1};var j=class extends t{static NOOP=A.NOOP;static GET_POINTER_FIELD=A.GET_POINTER_FIELD;static _capnp={displayName:`Op`,id:`f316944415569081`,size:new e(8,0)};get _isNoop(){return a.getUint16(0,this)===0}set noop(e){a.setUint16(0,0,this)}get getPointerField(){return a.testWhich(`getPointerField`,a.getUint16(0,this),1,this),a.getUint16(2,this)}get _isGetPointerField(){return a.getUint16(0,this)===1}set getPointerField(e){a.setUint16(0,1,this),a.setUint16(2,e,this)}toString(){return`PromisedAnswer_Op_`+super.toString()}which(){return a.getUint16(0,this)}},M=class n extends t{static Op=j;static _capnp={displayName:`PromisedAnswer`,id:`d800b1d6cd6f1ca0`,size:new e(8,1)};static _Transform;get questionId(){return a.getUint32(0,this)}set questionId(e){a.setUint32(0,e,this)}_adoptTransform(e){a.adopt(e,a.getPointer(0,this))}_disownTransform(){return a.disown(this.transform)}get transform(){return a.getList(0,n._Transform,this)}_hasTransform(){return!a.isNull(a.getPointer(0,this))}_initTransform(e){return a.initList(0,n._Transform,e,this)}set transform(e){a.copyFrom(e,a.getPointer(0,this))}toString(){return`PromisedAnswer_`+super.toString()}},N=class extends t{static _capnp={displayName:`ThirdPartyCapDescriptor`,id:`d37007fde1f0027d`,size:new e(8,1)};_adoptId(e){a.adopt(e,a.getPointer(0,this))}_disownId(){return a.disown(this.id)}get id(){return a.getPointer(0,this)}_hasId(){return!a.isNull(a.getPointer(0,this))}set id(e){a.copyFrom(e,a.getPointer(0,this))}get vineId(){return a.getUint32(0,this)}set vineId(e){a.setUint32(0,e,this)}toString(){return`ThirdPartyCapDescriptor_`+super.toString()}};const P={FAILED:0,OVERLOADED:1,DISCONNECTED:2,UNIMPLEMENTED:3};var F=class extends t{static Type=P;static _capnp={displayName:`Exception`,id:`d625b7063acf691a`,size:new e(8,2)};get reason(){return a.getText(0,this)}set reason(e){a.setText(0,e,this)}get type(){return a.getUint16(4,this)}set type(e){a.setUint16(4,e,this)}get obsoleteIsCallersFault(){return a.getBit(0,this)}set obsoleteIsCallersFault(e){a.setBit(0,e,this)}get obsoleteDurability(){return a.getUint16(2,this)}set obsoleteDurability(e){a.setUint16(2,e,this)}get trace(){return a.getText(1,this)}set trace(e){a.setText(1,e,this)}toString(){return`Exception_`+super.toString()}};D._CapTable=n(k),M._Transform=n(j);export{C as Accept,l as Bootstrap,f as Call,d as Call_SendResultsTo,u as Call_SendResultsTo_Which,k as CapDescriptor,O as CapDescriptor_Which,x as Disembargo,b as Disembargo_Context,y as Disembargo_Context_Which,F as Exception,P as Exception_Type,h as Finish,w as Join,c as Message,E as MessageTarget,T as MessageTarget_Which,s as Message_Which,D as Payload,M as PromisedAnswer,j as PromisedAnswer_Op,A as PromisedAnswer_Op_Which,S as Provide,v as Release,_ as Resolve,g as Resolve_Which,m as Return,p as Return_Which,N as ThirdPartyCapDescriptor,o as _capnpFileId};
2
2
  //# sourceMappingURL=rpc.mjs.map