@stryke/capnp 0.9.13 → 0.10.0

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.
@@ -6,27 +6,27 @@
6
6
 
7
7
 
8
8
 
9
- var _chunk3Y2DQ67Zcjs = require('./chunk-3Y2DQ67Z.cjs');
9
+ var _chunkZGPCLBI4cjs = require('./chunk-ZGPCLBI4.cjs');
10
10
 
11
11
 
12
12
  var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
13
13
 
14
14
  // schemas/persistent.ts
15
15
  var _capnpFileId = BigInt("0xb8630836983feed7");
16
- var Persistent_SaveParams = (_class = class extends _chunk3Y2DQ67Zcjs.Struct {
16
+ var Persistent_SaveParams = (_class = class extends _chunkZGPCLBI4cjs.Struct {
17
17
  static {
18
18
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent_SaveParams");
19
19
  }
20
20
  static __initStatic() {this._capnp = {
21
21
  displayName: "SaveParams",
22
22
  id: "f76fba59183073a5",
23
- size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(0, 1)
23
+ size: new (0, _chunkZGPCLBI4cjs.ObjectSize)(0, 1)
24
24
  }}
25
25
  _adoptSealFor(value) {
26
- _chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
26
+ _chunkZGPCLBI4cjs.utils.adopt(value, _chunkZGPCLBI4cjs.utils.getPointer(0, this));
27
27
  }
28
28
  _disownSealFor() {
29
- return _chunk3Y2DQ67Zcjs.utils.disown(this.sealFor);
29
+ return _chunkZGPCLBI4cjs.utils.disown(this.sealFor);
30
30
  }
31
31
  /**
32
32
  * Seal the SturdyRef so that it can only be restored by the specified Owner. This is meant
@@ -38,41 +38,41 @@ var Persistent_SaveParams = (_class = class extends _chunk3Y2DQ67Zcjs.Struct {
38
38
  *
39
39
  */
40
40
  get sealFor() {
41
- return _chunk3Y2DQ67Zcjs.utils.getPointer(0, this);
41
+ return _chunkZGPCLBI4cjs.utils.getPointer(0, this);
42
42
  }
43
43
  _hasSealFor() {
44
- return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
44
+ return !_chunkZGPCLBI4cjs.utils.isNull(_chunkZGPCLBI4cjs.utils.getPointer(0, this));
45
45
  }
46
46
  set sealFor(value) {
47
- _chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
47
+ _chunkZGPCLBI4cjs.utils.copyFrom(value, _chunkZGPCLBI4cjs.utils.getPointer(0, this));
48
48
  }
49
49
  toString() {
50
50
  return "Persistent_SaveParams_" + super.toString();
51
51
  }
52
52
  }, _class.__initStatic(), _class);
53
- var Persistent_SaveResults = (_class2 = class extends _chunk3Y2DQ67Zcjs.Struct {
53
+ var Persistent_SaveResults = (_class2 = class extends _chunkZGPCLBI4cjs.Struct {
54
54
  static {
55
55
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent_SaveResults");
56
56
  }
57
57
  static __initStatic2() {this._capnp = {
58
58
  displayName: "SaveResults",
59
59
  id: "b76848c18c40efbf",
60
- size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(0, 1)
60
+ size: new (0, _chunkZGPCLBI4cjs.ObjectSize)(0, 1)
61
61
  }}
62
62
  _adoptSturdyRef(value) {
63
- _chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
63
+ _chunkZGPCLBI4cjs.utils.adopt(value, _chunkZGPCLBI4cjs.utils.getPointer(0, this));
64
64
  }
65
65
  _disownSturdyRef() {
66
- return _chunk3Y2DQ67Zcjs.utils.disown(this.sturdyRef);
66
+ return _chunkZGPCLBI4cjs.utils.disown(this.sturdyRef);
67
67
  }
68
68
  get sturdyRef() {
69
- return _chunk3Y2DQ67Zcjs.utils.getPointer(0, this);
69
+ return _chunkZGPCLBI4cjs.utils.getPointer(0, this);
70
70
  }
71
71
  _hasSturdyRef() {
72
- return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
72
+ return !_chunkZGPCLBI4cjs.utils.isNull(_chunkZGPCLBI4cjs.utils.getPointer(0, this));
73
73
  }
74
74
  set sturdyRef(value) {
75
- _chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
75
+ _chunkZGPCLBI4cjs.utils.copyFrom(value, _chunkZGPCLBI4cjs.utils.getPointer(0, this));
76
76
  }
77
77
  toString() {
78
78
  return "Persistent_SaveResults_" + super.toString();
@@ -120,12 +120,12 @@ var Persistent$Client = (_class3 = class _Persistent$Client {
120
120
  method: _Persistent$Client.methods[0],
121
121
  paramsFunc
122
122
  });
123
- const pipeline = new (0, _chunk3Y2DQ67Zcjs.Pipeline)(Persistent_SaveResults, answer);
123
+ const pipeline = new (0, _chunkZGPCLBI4cjs.Pipeline)(Persistent_SaveResults, answer);
124
124
  return new Persistent_SaveResults$Promise(pipeline);
125
125
  }
126
126
  }, _class3.__initStatic3(), _class3.__initStatic4(), _class3);
127
- _chunk3Y2DQ67Zcjs.Registry.register(Persistent$Client.interfaceId, Persistent$Client);
128
- var Persistent$Server = class extends _chunk3Y2DQ67Zcjs.Server {
127
+ _chunkZGPCLBI4cjs.Registry.register(Persistent$Client.interfaceId, Persistent$Client);
128
+ var Persistent$Server = class extends _chunkZGPCLBI4cjs.Server {
129
129
  static {
130
130
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent$Server");
131
131
  }
@@ -143,7 +143,7 @@ var Persistent$Server = class extends _chunk3Y2DQ67Zcjs.Server {
143
143
  return new Persistent$Client(this);
144
144
  }
145
145
  };
146
- var Persistent = (_class4 = class extends _chunk3Y2DQ67Zcjs.Interface {
146
+ var Persistent = (_class4 = class extends _chunkZGPCLBI4cjs.Interface {
147
147
  static {
148
148
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent");
149
149
  }
@@ -154,7 +154,7 @@ var Persistent = (_class4 = class extends _chunk3Y2DQ67Zcjs.Interface {
154
154
  static __initStatic9() {this._capnp = {
155
155
  displayName: "Persistent",
156
156
  id: "c8cb212fcd9f5691",
157
- size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(0, 0)
157
+ size: new (0, _chunkZGPCLBI4cjs.ObjectSize)(0, 0)
158
158
  }}
159
159
  toString() {
160
160
  return "Persistent_" + super.toString();
@@ -6,7 +6,7 @@ import {
6
6
  Server,
7
7
  Struct,
8
8
  utils
9
- } from "./chunk-SCCB7KM2.js";
9
+ } from "./chunk-3CJYH45H.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-SHUYVCID.js";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk3Y2DQ67Zcjs = require('./chunk-3Y2DQ67Z.cjs');
5
+ var _chunkZGPCLBI4cjs = require('./chunk-ZGPCLBI4.cjs');
6
6
 
7
7
 
8
8
  var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
@@ -31,82 +31,82 @@ var Side = {
31
31
  */
32
32
  CLIENT: 1
33
33
  };
34
- var VatId = (_class = class extends _chunk3Y2DQ67Zcjs.Struct {
34
+ var VatId = (_class = class extends _chunkZGPCLBI4cjs.Struct {
35
35
  static {
36
36
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "VatId");
37
37
  }
38
38
  static __initStatic() {this._capnp = {
39
39
  displayName: "VatId",
40
40
  id: "d20b909fee733a8e",
41
- size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(8, 0)
41
+ size: new (0, _chunkZGPCLBI4cjs.ObjectSize)(8, 0)
42
42
  }}
43
43
  get side() {
44
- return _chunk3Y2DQ67Zcjs.utils.getUint16(0, this);
44
+ return _chunkZGPCLBI4cjs.utils.getUint16(0, this);
45
45
  }
46
46
  set side(value) {
47
- _chunk3Y2DQ67Zcjs.utils.setUint16(0, value, this);
47
+ _chunkZGPCLBI4cjs.utils.setUint16(0, value, this);
48
48
  }
49
49
  toString() {
50
50
  return "VatId_" + super.toString();
51
51
  }
52
52
  }, _class.__initStatic(), _class);
53
- var ProvisionId = (_class2 = class extends _chunk3Y2DQ67Zcjs.Struct {
53
+ var ProvisionId = (_class2 = class extends _chunkZGPCLBI4cjs.Struct {
54
54
  static {
55
55
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "ProvisionId");
56
56
  }
57
57
  static __initStatic2() {this._capnp = {
58
58
  displayName: "ProvisionId",
59
59
  id: "b88d09a9c5f39817",
60
- size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(8, 0)
60
+ size: new (0, _chunkZGPCLBI4cjs.ObjectSize)(8, 0)
61
61
  }}
62
62
  /**
63
63
  * The ID from `JoinKeyPart`.
64
64
  *
65
65
  */
66
66
  get joinId() {
67
- return _chunk3Y2DQ67Zcjs.utils.getUint32(0, this);
67
+ return _chunkZGPCLBI4cjs.utils.getUint32(0, this);
68
68
  }
69
69
  set joinId(value) {
70
- _chunk3Y2DQ67Zcjs.utils.setUint32(0, value, this);
70
+ _chunkZGPCLBI4cjs.utils.setUint32(0, value, this);
71
71
  }
72
72
  toString() {
73
73
  return "ProvisionId_" + super.toString();
74
74
  }
75
75
  }, _class2.__initStatic2(), _class2);
76
- var RecipientId = (_class3 = class extends _chunk3Y2DQ67Zcjs.Struct {
76
+ var RecipientId = (_class3 = class extends _chunkZGPCLBI4cjs.Struct {
77
77
  static {
78
78
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "RecipientId");
79
79
  }
80
80
  static __initStatic3() {this._capnp = {
81
81
  displayName: "RecipientId",
82
82
  id: "89f389b6fd4082c1",
83
- size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(0, 0)
83
+ size: new (0, _chunkZGPCLBI4cjs.ObjectSize)(0, 0)
84
84
  }}
85
85
  toString() {
86
86
  return "RecipientId_" + super.toString();
87
87
  }
88
88
  }, _class3.__initStatic3(), _class3);
89
- var ThirdPartyCapId = (_class4 = class extends _chunk3Y2DQ67Zcjs.Struct {
89
+ var ThirdPartyCapId = (_class4 = class extends _chunkZGPCLBI4cjs.Struct {
90
90
  static {
91
91
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "ThirdPartyCapId");
92
92
  }
93
93
  static __initStatic4() {this._capnp = {
94
94
  displayName: "ThirdPartyCapId",
95
95
  id: "b47f4979672cb59d",
96
- size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(0, 0)
96
+ size: new (0, _chunkZGPCLBI4cjs.ObjectSize)(0, 0)
97
97
  }}
98
98
  toString() {
99
99
  return "ThirdPartyCapId_" + super.toString();
100
100
  }
101
101
  }, _class4.__initStatic4(), _class4);
102
- var JoinKeyPart = (_class5 = class extends _chunk3Y2DQ67Zcjs.Struct {
102
+ var JoinKeyPart = (_class5 = class extends _chunkZGPCLBI4cjs.Struct {
103
103
  static {
104
104
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "JoinKeyPart");
105
105
  }
106
106
  static __initStatic5() {this._capnp = {
107
107
  displayName: "JoinKeyPart",
108
108
  id: "95b29059097fca83",
109
- size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(8, 0)
109
+ size: new (0, _chunkZGPCLBI4cjs.ObjectSize)(8, 0)
110
110
  }}
111
111
  /**
112
112
  * A number identifying this join, chosen by the sender. May be reused once `Finish` messages are
@@ -114,53 +114,53 @@ var JoinKeyPart = (_class5 = class extends _chunk3Y2DQ67Zcjs.Struct {
114
114
  *
115
115
  */
116
116
  get joinId() {
117
- return _chunk3Y2DQ67Zcjs.utils.getUint32(0, this);
117
+ return _chunkZGPCLBI4cjs.utils.getUint32(0, this);
118
118
  }
119
119
  set joinId(value) {
120
- _chunk3Y2DQ67Zcjs.utils.setUint32(0, value, this);
120
+ _chunkZGPCLBI4cjs.utils.setUint32(0, value, this);
121
121
  }
122
122
  /**
123
123
  * The number of capabilities to be joined.
124
124
  *
125
125
  */
126
126
  get partCount() {
127
- return _chunk3Y2DQ67Zcjs.utils.getUint16(4, this);
127
+ return _chunkZGPCLBI4cjs.utils.getUint16(4, this);
128
128
  }
129
129
  set partCount(value) {
130
- _chunk3Y2DQ67Zcjs.utils.setUint16(4, value, this);
130
+ _chunkZGPCLBI4cjs.utils.setUint16(4, value, this);
131
131
  }
132
132
  /**
133
133
  * Which part this request targets -- a number in the range [0, partCount).
134
134
  *
135
135
  */
136
136
  get partNum() {
137
- return _chunk3Y2DQ67Zcjs.utils.getUint16(6, this);
137
+ return _chunkZGPCLBI4cjs.utils.getUint16(6, this);
138
138
  }
139
139
  set partNum(value) {
140
- _chunk3Y2DQ67Zcjs.utils.setUint16(6, value, this);
140
+ _chunkZGPCLBI4cjs.utils.setUint16(6, value, this);
141
141
  }
142
142
  toString() {
143
143
  return "JoinKeyPart_" + super.toString();
144
144
  }
145
145
  }, _class5.__initStatic5(), _class5);
146
- var JoinResult = (_class6 = class extends _chunk3Y2DQ67Zcjs.Struct {
146
+ var JoinResult = (_class6 = class extends _chunkZGPCLBI4cjs.Struct {
147
147
  static {
148
148
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "JoinResult");
149
149
  }
150
150
  static __initStatic6() {this._capnp = {
151
151
  displayName: "JoinResult",
152
152
  id: "9d263a3630b7ebee",
153
- size: new (0, _chunk3Y2DQ67Zcjs.ObjectSize)(8, 1)
153
+ size: new (0, _chunkZGPCLBI4cjs.ObjectSize)(8, 1)
154
154
  }}
155
155
  /**
156
156
  * Matches `JoinKeyPart`.
157
157
  *
158
158
  */
159
159
  get joinId() {
160
- return _chunk3Y2DQ67Zcjs.utils.getUint32(0, this);
160
+ return _chunkZGPCLBI4cjs.utils.getUint32(0, this);
161
161
  }
162
162
  set joinId(value) {
163
- _chunk3Y2DQ67Zcjs.utils.setUint32(0, value, this);
163
+ _chunkZGPCLBI4cjs.utils.setUint32(0, value, this);
164
164
  }
165
165
  /**
166
166
  * All JoinResults in the set will have the same value for `succeeded`. The receiver actually
@@ -169,29 +169,29 @@ var JoinResult = (_class6 = class extends _chunk3Y2DQ67Zcjs.Struct {
169
169
  *
170
170
  */
171
171
  get succeeded() {
172
- return _chunk3Y2DQ67Zcjs.utils.getBit(32, this);
172
+ return _chunkZGPCLBI4cjs.utils.getBit(32, this);
173
173
  }
174
174
  set succeeded(value) {
175
- _chunk3Y2DQ67Zcjs.utils.setBit(32, value, this);
175
+ _chunkZGPCLBI4cjs.utils.setBit(32, value, this);
176
176
  }
177
177
  _adoptCap(value) {
178
- _chunk3Y2DQ67Zcjs.utils.adopt(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
178
+ _chunkZGPCLBI4cjs.utils.adopt(value, _chunkZGPCLBI4cjs.utils.getPointer(0, this));
179
179
  }
180
180
  _disownCap() {
181
- return _chunk3Y2DQ67Zcjs.utils.disown(this.cap);
181
+ return _chunkZGPCLBI4cjs.utils.disown(this.cap);
182
182
  }
183
183
  /**
184
184
  * One of the JoinResults will have a non-null `cap` which is the joined capability.
185
185
  *
186
186
  */
187
187
  get cap() {
188
- return _chunk3Y2DQ67Zcjs.utils.getPointer(0, this);
188
+ return _chunkZGPCLBI4cjs.utils.getPointer(0, this);
189
189
  }
190
190
  _hasCap() {
191
- return !_chunk3Y2DQ67Zcjs.utils.isNull(_chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
191
+ return !_chunkZGPCLBI4cjs.utils.isNull(_chunkZGPCLBI4cjs.utils.getPointer(0, this));
192
192
  }
193
193
  set cap(value) {
194
- _chunk3Y2DQ67Zcjs.utils.copyFrom(value, _chunk3Y2DQ67Zcjs.utils.getPointer(0, this));
194
+ _chunkZGPCLBI4cjs.utils.copyFrom(value, _chunkZGPCLBI4cjs.utils.getPointer(0, this));
195
195
  }
196
196
  toString() {
197
197
  return "JoinResult_" + super.toString();
@@ -2,7 +2,7 @@ import {
2
2
  ObjectSize,
3
3
  Struct,
4
4
  utils
5
- } from "./chunk-SCCB7KM2.js";
5
+ } from "./chunk-3CJYH45H.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-SHUYVCID.js";