@stryke/capnp 0.12.96 → 0.12.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/capnpc.cjs +405 -304
- package/bin/capnpc.d.cts +909 -4
- package/bin/capnpc.d.cts.map +1 -1
- package/bin/capnpc.d.mts +909 -4
- package/bin/capnpc.d.mts.map +1 -1
- package/bin/capnpc.mjs +368 -268
- package/bin/capnpc.mjs.map +1 -1
- package/dist/capnp-es.BHkXHvyK-B3-d8RNu.d.mts +2991 -0
- package/dist/capnp-es.BHkXHvyK-B3-d8RNu.d.mts.map +1 -0
- package/dist/capnp-es.BHkXHvyK-CQWXOqvU.d.cts +2991 -0
- package/dist/capnp-es.BHkXHvyK-CQWXOqvU.d.cts.map +1 -0
- package/dist/{capnp-es.GpvEvMIK-C4q8I6qy.mjs → capnp-es.GpvEvMIK-CH8kq1KS.mjs} +13 -6
- package/dist/{capnp-es.GpvEvMIK-C4q8I6qy.mjs.map → capnp-es.GpvEvMIK-CH8kq1KS.mjs.map} +1 -1
- package/dist/{capnp-es.GpvEvMIK-BcYm5JyH.cjs → capnp-es.GpvEvMIK-CZ5ZimCD.cjs} +12 -5
- package/dist/{compile-Cx88xgqJ.mjs → compile-D_BOc0dD.mjs} +109 -15
- package/dist/compile-D_BOc0dD.mjs.map +1 -0
- package/dist/{compile-SmxAaHxW.cjs → compile-Yq1zhccM.cjs} +113 -19
- package/dist/compile.cjs +2 -2
- package/dist/compile.d.cts +38 -3
- package/dist/compile.d.cts.map +1 -0
- package/dist/compile.d.mts +38 -3
- package/dist/compile.d.mts.map +1 -0
- package/dist/compile.mjs +1 -2
- package/dist/{dist-BlvFBzSi.mjs → dist-DQ7xmzRT.mjs} +385 -16
- package/dist/dist-DQ7xmzRT.mjs.map +1 -0
- package/dist/{dist-YywzZL3Q.cjs → dist-VMGxvENY.cjs} +381 -12
- package/dist/{helpers-BoYAadSB.mjs → helpers-2TldkyGG.mjs} +136 -137
- package/dist/helpers-2TldkyGG.mjs.map +1 -0
- package/dist/{helpers-gxlsFdP8.cjs → helpers-Dn4nWOb7.cjs} +164 -165
- package/dist/helpers.cjs +2 -1
- package/dist/helpers.d.cts +1 -2
- package/dist/helpers.d.cts.map +1 -1
- package/dist/helpers.d.mts +1 -2
- package/dist/helpers.d.mts.map +1 -1
- package/dist/helpers.mjs +1 -1
- package/dist/index-63Za7yNc.d.cts +736 -0
- package/dist/index-63Za7yNc.d.cts.map +1 -0
- package/dist/index-LYXu6eWz.d.mts +736 -0
- package/dist/index-LYXu6eWz.d.mts.map +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +5 -4
- package/dist/index.d.mts +5 -4
- package/dist/index.mjs +4 -5
- package/dist/rpc-helpers.cjs +4 -3
- package/dist/rpc-helpers.d.cts +3 -4
- package/dist/rpc-helpers.d.cts.map +1 -1
- package/dist/rpc-helpers.d.mts +3 -4
- package/dist/rpc-helpers.d.mts.map +1 -1
- package/dist/rpc-helpers.mjs +2 -2
- package/dist/types-BjCOVfgj.d.cts +1506 -0
- package/dist/types-BjCOVfgj.d.cts.map +1 -0
- package/dist/types-CVzMn-TI.d.mts +1506 -0
- package/dist/types-CVzMn-TI.d.mts.map +1 -0
- package/dist/types.cjs +8 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +7 -2
- package/dist/types.mjs.map +1 -0
- package/package.json +5 -5
- package/schemas/cpp.cjs +1 -0
- package/schemas/cpp.d.cts.map +1 -1
- package/schemas/cpp.d.mts.map +1 -1
- package/schemas/index-BB47pUzp.d.cts +742 -0
- package/schemas/index-BB47pUzp.d.cts.map +1 -0
- package/schemas/index-DprjZUdT.d.mts +742 -0
- package/schemas/index-DprjZUdT.d.mts.map +1 -0
- package/schemas/persistent.cjs +2 -1
- package/schemas/persistent.d.cts +48 -21
- package/schemas/persistent.d.cts.map +1 -1
- package/schemas/persistent.d.mts +48 -21
- package/schemas/persistent.d.mts.map +1 -1
- package/schemas/persistent.mjs +1 -1
- package/schemas/persistent.mjs.map +1 -1
- package/schemas/rpc-twoparty.cjs +20 -1
- package/schemas/rpc-twoparty.d.cts +17 -17
- package/schemas/rpc-twoparty.d.cts.map +1 -1
- package/schemas/rpc-twoparty.d.mts +17 -17
- package/schemas/rpc-twoparty.d.mts.map +1 -1
- package/schemas/rpc-twoparty.mjs +19 -1
- package/schemas/rpc-twoparty.mjs.map +1 -1
- package/schemas/rpc.cjs +371 -1
- package/schemas/rpc.d.cts +141 -141
- package/schemas/rpc.d.cts.map +1 -1
- package/schemas/rpc.d.mts +141 -141
- package/schemas/rpc.d.mts.map +1 -1
- package/schemas/rpc.mjs +370 -1
- package/schemas/rpc.mjs.map +1 -1
- package/schemas/schema.cjs +96 -1
- package/schemas/schema.d.cts +286 -228
- package/schemas/schema.d.cts.map +1 -1
- package/schemas/schema.d.mts +286 -228
- package/schemas/schema.d.mts.map +1 -1
- package/schemas/schema.mjs +95 -1
- package/schemas/schema.mjs.map +1 -1
- package/schemas/{src-2eLj6yCr.cjs → src-B6FhDNiV.cjs} +19 -12
- package/schemas/{src-s2pCu2mc.mjs → src-B97sIXSw.mjs} +19 -13
- package/schemas/src-B97sIXSw.mjs.map +1 -0
- package/schemas/ts.cjs +1 -0
- package/schemas/ts.d.cts.map +1 -1
- package/schemas/ts.d.mts.map +1 -1
- package/dist/compile-Cx88xgqJ.mjs.map +0 -1
- package/dist/compile-DccxA7WZ.d.cts +0 -40
- package/dist/compile-DccxA7WZ.d.cts.map +0 -1
- package/dist/compile-UkKIpqrK.d.mts +0 -40
- package/dist/compile-UkKIpqrK.d.mts.map +0 -1
- package/dist/dist-BlvFBzSi.mjs.map +0 -1
- package/dist/helpers-BoYAadSB.mjs.map +0 -1
- package/dist/types-Cuj2daUE.mjs +0 -8
- package/dist/types-Cuj2daUE.mjs.map +0 -1
- package/dist/types-D03SjfBL.d.mts +0 -55
- package/dist/types-D03SjfBL.d.mts.map +0 -1
- package/dist/types-D52qMMoK.d.cts +0 -55
- package/dist/types-D52qMMoK.d.cts.map +0 -1
- package/dist/types-DHrjS-69.cjs +0 -13
- package/schemas/index-BAJMwFip.d.mts +0 -96
- package/schemas/index-BAJMwFip.d.mts.map +0 -1
- package/schemas/index-b7dam4EA.d.cts +0 -96
- package/schemas/index-b7dam4EA.d.cts.map +0 -1
- package/schemas/src-s2pCu2mc.mjs.map +0 -1
package/schemas/schema.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_src = require('./src-B6FhDNiV.cjs');
|
|
2
3
|
|
|
3
4
|
//#region schemas/schema.ts
|
|
4
5
|
const _capnpFileId = BigInt("0xa93fc509624c72d9");
|
|
@@ -499,10 +500,38 @@ var Node_Annotation = class extends require_src.Struct {
|
|
|
499
500
|
};
|
|
500
501
|
const Node_Which = {
|
|
501
502
|
FILE: 0,
|
|
503
|
+
/**
|
|
504
|
+
* Name to present to humans to identify this Node. You should not attempt to parse this. Its
|
|
505
|
+
* format could change. It is not guaranteed to be unique.
|
|
506
|
+
*
|
|
507
|
+
* (On Zooko's triangle, this is the node's nickname.)
|
|
508
|
+
*
|
|
509
|
+
*/
|
|
502
510
|
STRUCT: 1,
|
|
511
|
+
/**
|
|
512
|
+
* If you want a shorter version of `displayName` (just naming this node, without its surrounding
|
|
513
|
+
* scope), chop off this many characters from the beginning of `displayName`.
|
|
514
|
+
*
|
|
515
|
+
*/
|
|
503
516
|
ENUM: 2,
|
|
517
|
+
/**
|
|
518
|
+
* ID of the lexical parent node. Typically, the scope node will have a NestedNode pointing back
|
|
519
|
+
* at this node, but robust code should avoid relying on this (and, in fact, group nodes are not
|
|
520
|
+
* listed in the outer struct's nestedNodes, since they are listed in the fields). `scopeId` is
|
|
521
|
+
* zero if the node has no parent, which is normally only the case with files, but should be
|
|
522
|
+
* allowed for any kind of node (in order to make runtime type generation easier).
|
|
523
|
+
*
|
|
524
|
+
*/
|
|
504
525
|
INTERFACE: 3,
|
|
526
|
+
/**
|
|
527
|
+
* List of nodes nested within this node, along with the names under which they were declared.
|
|
528
|
+
*
|
|
529
|
+
*/
|
|
505
530
|
CONST: 4,
|
|
531
|
+
/**
|
|
532
|
+
* Annotations applied to this node.
|
|
533
|
+
*
|
|
534
|
+
*/
|
|
506
535
|
ANNOTATION: 5
|
|
507
536
|
};
|
|
508
537
|
var Node = class Node extends require_src.Struct {
|
|
@@ -828,6 +857,13 @@ var Field_Group = class extends require_src.Struct {
|
|
|
828
857
|
};
|
|
829
858
|
const Field_Ordinal_Which = {
|
|
830
859
|
IMPLICIT: 0,
|
|
860
|
+
/**
|
|
861
|
+
* The original ordinal number given to the field. You probably should NOT use this; if you need
|
|
862
|
+
* a numeric identifier for a field, use its position within the field array for its scope.
|
|
863
|
+
* The ordinal is given here mainly just so that the original schema text can be reproduced given
|
|
864
|
+
* the compiled version -- i.e. so that `capnp compile -ocapnp` can do its job.
|
|
865
|
+
*
|
|
866
|
+
*/
|
|
831
867
|
EXPLICIT: 1
|
|
832
868
|
};
|
|
833
869
|
var Field_Ordinal = class extends require_src.Struct {
|
|
@@ -871,6 +907,15 @@ var Field_Ordinal = class extends require_src.Struct {
|
|
|
871
907
|
};
|
|
872
908
|
const Field_Which = {
|
|
873
909
|
SLOT: 0,
|
|
910
|
+
/**
|
|
911
|
+
* Indicates where this member appeared in the code, relative to other members.
|
|
912
|
+
* Code ordering may have semantic relevance -- programmers tend to place related fields
|
|
913
|
+
* together. So, using code ordering makes sense in human-readable formats where ordering is
|
|
914
|
+
* otherwise irrelevant, like JSON. The values of codeOrder are tightly-packed, so the maximum
|
|
915
|
+
* value is count(members) - 1. Fields that are members of a union are only ordered relative to
|
|
916
|
+
* the other members of that union, so the maximum value there is count(union.members).
|
|
917
|
+
*
|
|
918
|
+
*/
|
|
874
919
|
GROUP: 1
|
|
875
920
|
};
|
|
876
921
|
/**
|
|
@@ -1346,9 +1391,25 @@ var Type_Interface = class extends require_src.Struct {
|
|
|
1346
1391
|
}
|
|
1347
1392
|
};
|
|
1348
1393
|
const Type_AnyPointer_Unconstrained_Which = {
|
|
1394
|
+
/**
|
|
1395
|
+
* truly AnyPointer
|
|
1396
|
+
*
|
|
1397
|
+
*/
|
|
1349
1398
|
ANY_KIND: 0,
|
|
1399
|
+
/**
|
|
1400
|
+
* AnyStruct
|
|
1401
|
+
*
|
|
1402
|
+
*/
|
|
1350
1403
|
STRUCT: 1,
|
|
1404
|
+
/**
|
|
1405
|
+
* AnyList
|
|
1406
|
+
*
|
|
1407
|
+
*/
|
|
1351
1408
|
LIST: 2,
|
|
1409
|
+
/**
|
|
1410
|
+
* Capability
|
|
1411
|
+
*
|
|
1412
|
+
*/
|
|
1352
1413
|
CAPABILITY: 3
|
|
1353
1414
|
};
|
|
1354
1415
|
/**
|
|
@@ -1457,8 +1518,25 @@ var Type_AnyPointer_ImplicitMethodParameter = class extends require_src.Struct {
|
|
|
1457
1518
|
}
|
|
1458
1519
|
};
|
|
1459
1520
|
const Type_AnyPointer_Which = {
|
|
1521
|
+
/**
|
|
1522
|
+
* A regular AnyPointer.
|
|
1523
|
+
*
|
|
1524
|
+
* The name "unconstrained" means as opposed to constraining it to match a type parameter.
|
|
1525
|
+
* In retrospect this name is probably a poor choice given that it may still be constrained
|
|
1526
|
+
* to be a struct, list, or capability.
|
|
1527
|
+
*
|
|
1528
|
+
*/
|
|
1460
1529
|
UNCONSTRAINED: 0,
|
|
1530
|
+
/**
|
|
1531
|
+
* This is actually a reference to a type parameter defined within this scope.
|
|
1532
|
+
*
|
|
1533
|
+
*/
|
|
1461
1534
|
PARAMETER: 1,
|
|
1535
|
+
/**
|
|
1536
|
+
* This is actually a reference to an implicit (generic) parameter of a method. The only
|
|
1537
|
+
* legal context for this type to appear is inside Method.paramBrand or Method.resultBrand.
|
|
1538
|
+
*
|
|
1539
|
+
*/
|
|
1462
1540
|
IMPLICIT_METHOD_PARAMETER: 2
|
|
1463
1541
|
};
|
|
1464
1542
|
var Type_AnyPointer = class extends require_src.Struct {
|
|
@@ -1748,7 +1826,15 @@ var Type = class extends require_src.Struct {
|
|
|
1748
1826
|
}
|
|
1749
1827
|
};
|
|
1750
1828
|
const Brand_Scope_Which = {
|
|
1829
|
+
/**
|
|
1830
|
+
* ID of the scope to which these params apply.
|
|
1831
|
+
*
|
|
1832
|
+
*/
|
|
1751
1833
|
BIND: 0,
|
|
1834
|
+
/**
|
|
1835
|
+
* List of parameter bindings.
|
|
1836
|
+
*
|
|
1837
|
+
*/
|
|
1752
1838
|
INHERIT: 1
|
|
1753
1839
|
};
|
|
1754
1840
|
var Brand_Scope = class Brand_Scope extends require_src.Struct {
|
|
@@ -1922,6 +2008,11 @@ const Value_Which = {
|
|
|
1922
2008
|
LIST: 14,
|
|
1923
2009
|
ENUM: 15,
|
|
1924
2010
|
STRUCT: 16,
|
|
2011
|
+
/**
|
|
2012
|
+
* The only interface value that can be represented statically is "null", whose methods always
|
|
2013
|
+
* throw exceptions.
|
|
2014
|
+
*
|
|
2015
|
+
*/
|
|
1925
2016
|
INTERFACE: 17,
|
|
1926
2017
|
ANY_POINTER: 18
|
|
1927
2018
|
};
|
|
@@ -2272,6 +2363,10 @@ var Annotation = class extends require_src.Struct {
|
|
|
2272
2363
|
}
|
|
2273
2364
|
};
|
|
2274
2365
|
const ElementSize = {
|
|
2366
|
+
/**
|
|
2367
|
+
* aka "void", but that's a keyword.
|
|
2368
|
+
*
|
|
2369
|
+
*/
|
|
2275
2370
|
EMPTY: 0,
|
|
2276
2371
|
BIT: 1,
|
|
2277
2372
|
BYTE: 2,
|