From 4e87195739f2a5d9a05451b48773c8afdc680765 Mon Sep 17 00:00:00 2001 From: akiyamn Date: Sun, 24 Sep 2023 23:22:21 +1000 Subject: Initial commit (by create-cloudflare CLI) --- .../capnp-ts/src/std/rpc-twoparty.capnp.js | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 node_modules/capnp-ts/src/std/rpc-twoparty.capnp.js (limited to 'node_modules/capnp-ts/src/std/rpc-twoparty.capnp.js') diff --git a/node_modules/capnp-ts/src/std/rpc-twoparty.capnp.js b/node_modules/capnp-ts/src/std/rpc-twoparty.capnp.js new file mode 100644 index 0000000..4ed0b3a --- /dev/null +++ b/node_modules/capnp-ts/src/std/rpc-twoparty.capnp.js @@ -0,0 +1,64 @@ +"use strict"; +/** + * This file is generated by hand in order to bootstrap compiler development. It is intended to be an exact match to + * compiled output. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.JoinResult = exports.JoinKeyPart = exports.ThirdPartyCapId = exports.RecipientId = exports.ProvisionId = exports.VatId = exports.Side = exports._capnpFileId = void 0; +const index_1 = require("../index"); +exports._capnpFileId = "a184c7885cdaf2a1"; +var Side; +(function (Side) { + Side[Side["SERVER"] = 0] = "SERVER"; + Side[Side["CLIENT"] = 1] = "CLIENT"; +})(Side = exports.Side || (exports.Side = {})); +class VatId extends index_1.Struct { + getSide() { return index_1.Struct.getUint16(0, this); } + setSide(value) { index_1.Struct.setUint16(0, value, this); } + toString() { return "VatId_" + super.toString(); } +} +exports.VatId = VatId; +VatId._capnp = { displayName: "VatId", id: "d20b909fee733a8e", size: new index_1.ObjectSize(8, 0) }; +class ProvisionId extends index_1.Struct { + getJoinId() { return index_1.Struct.getUint32(0, this); } + setJoinId(value) { index_1.Struct.setUint32(0, value, this); } + toString() { return "ProvisionId_" + super.toString(); } +} +exports.ProvisionId = ProvisionId; +ProvisionId._capnp = { displayName: "ProvisionId", id: "b88d09a9c5f39817", size: new index_1.ObjectSize(8, 0) }; +class RecipientId extends index_1.Struct { + toString() { return "RecipientId_" + super.toString(); } +} +exports.RecipientId = RecipientId; +RecipientId._capnp = { displayName: "RecipientId", id: "89f389b6fd4082c1", size: new index_1.ObjectSize(0, 0) }; +class ThirdPartyCapId extends index_1.Struct { + toString() { return "ThirdPartyCapId_" + super.toString(); } +} +exports.ThirdPartyCapId = ThirdPartyCapId; +ThirdPartyCapId._capnp = { displayName: "ThirdPartyCapId", id: "b47f4979672cb59d", size: new index_1.ObjectSize(0, 0) }; +class JoinKeyPart extends index_1.Struct { + getJoinId() { return index_1.Struct.getUint32(0, this); } + setJoinId(value) { index_1.Struct.setUint32(0, value, this); } + getPartCount() { return index_1.Struct.getUint16(4, this); } + setPartCount(value) { index_1.Struct.setUint16(4, value, this); } + getPartNum() { return index_1.Struct.getUint16(6, this); } + setPartNum(value) { index_1.Struct.setUint16(6, value, this); } + toString() { return "JoinKeyPart_" + super.toString(); } +} +exports.JoinKeyPart = JoinKeyPart; +JoinKeyPart._capnp = { displayName: "JoinKeyPart", id: "95b29059097fca83", size: new index_1.ObjectSize(8, 0) }; +class JoinResult extends index_1.Struct { + getJoinId() { return index_1.Struct.getUint32(0, this); } + setJoinId(value) { index_1.Struct.setUint32(0, value, this); } + getSucceeded() { return index_1.Struct.getBit(32, this); } + setSucceeded(value) { index_1.Struct.setBit(32, value, this); } + adoptCap(value) { index_1.Struct.adopt(value, index_1.Struct.getPointer(0, this)); } + disownCap() { return index_1.Struct.disown(this.getCap()); } + getCap() { return index_1.Struct.getPointer(0, this); } + hasCap() { return !index_1.Struct.isNull(index_1.Struct.getPointer(0, this)); } + setCap(value) { index_1.Struct.copyFrom(value, index_1.Struct.getPointer(0, this)); } + toString() { return "JoinResult_" + super.toString(); } +} +exports.JoinResult = JoinResult; +JoinResult._capnp = { displayName: "JoinResult", id: "9d263a3630b7ebee", size: new index_1.ObjectSize(8, 1) }; +//# sourceMappingURL=rpc-twoparty.capnp.js.map \ No newline at end of file -- cgit v1.2.3