@codama/spec 1.6.0-rc.2 → 1.6.0-rc.4

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 (98) hide show
  1. package/dist/api.browser.cjs +355 -0
  2. package/dist/api.browser.cjs.map +1 -0
  3. package/dist/api.browser.mjs +315 -0
  4. package/dist/api.browser.mjs.map +1 -0
  5. package/dist/api.node.cjs +355 -0
  6. package/dist/api.node.cjs.map +1 -0
  7. package/dist/api.node.mjs +315 -0
  8. package/dist/api.node.mjs.map +1 -0
  9. package/dist/api.react-native.mjs +315 -0
  10. package/dist/api.react-native.mjs.map +1 -0
  11. package/dist/index.browser.cjs +645 -438
  12. package/dist/index.browser.cjs.map +1 -1
  13. package/dist/index.browser.mjs +645 -438
  14. package/dist/index.browser.mjs.map +1 -1
  15. package/dist/index.node.cjs +645 -438
  16. package/dist/index.node.cjs.map +1 -1
  17. package/dist/index.node.mjs +645 -438
  18. package/dist/index.node.mjs.map +1 -1
  19. package/dist/index.react-native.mjs +645 -438
  20. package/dist/index.react-native.mjs.map +1 -1
  21. package/dist/types/api/attribute.d.ts +2 -2
  22. package/dist/types/api/attribute.d.ts.map +1 -1
  23. package/dist/types/api/defineCategory.d.ts +19 -0
  24. package/dist/types/api/defineCategory.d.ts.map +1 -0
  25. package/dist/types/api/defineEnumeration.d.ts +2 -2
  26. package/dist/types/api/defineEnumeration.d.ts.map +1 -1
  27. package/dist/types/api/defineNestedUnion.d.ts +29 -0
  28. package/dist/types/api/defineNestedUnion.d.ts.map +1 -0
  29. package/dist/types/api/defineNode.d.ts +2 -2
  30. package/dist/types/api/defineNode.d.ts.map +1 -1
  31. package/dist/types/api/defineUnion.d.ts +1 -1
  32. package/dist/types/api/defineUnion.d.ts.map +1 -1
  33. package/dist/types/api/index.d.ts +6 -4
  34. package/dist/types/api/index.d.ts.map +1 -1
  35. package/dist/types/api/primitives.d.ts +8 -4
  36. package/dist/types/api/primitives.d.ts.map +1 -1
  37. package/dist/types/api/public.d.ts +1 -1
  38. package/dist/types/api/public.d.ts.map +1 -1
  39. package/dist/types/api/semanticAliases.d.ts +17 -7
  40. package/dist/types/api/semanticAliases.d.ts.map +1 -1
  41. package/dist/types/api/types.d.ts +78 -21
  42. package/dist/types/api/types.d.ts.map +1 -1
  43. package/dist/types/api/validate.d.ts +5 -3
  44. package/dist/types/api/validate.d.ts.map +1 -1
  45. package/dist/types/v1/enumerations.d.ts.map +1 -1
  46. package/dist/types/v1/index.d.ts.map +1 -1
  47. package/dist/types/v1/nestedUnions.d.ts +9 -0
  48. package/dist/types/v1/nestedUnions.d.ts.map +1 -0
  49. package/dist/types/v1/nodes/AccountNode.d.ts.map +1 -1
  50. package/dist/types/v1/nodes/EventNode.d.ts.map +1 -1
  51. package/dist/types/v1/nodes/InstructionAccountNode.d.ts.map +1 -1
  52. package/dist/types/v1/nodes/InstructionByteDeltaNode.d.ts.map +1 -1
  53. package/dist/types/v1/nodes/InstructionNode.d.ts.map +1 -1
  54. package/dist/types/v1/nodes/InstructionRemainingAccountsNode.d.ts.map +1 -1
  55. package/dist/types/v1/nodes/InstructionStatusNode.d.ts.map +1 -1
  56. package/dist/types/v1/nodes/PdaNode.d.ts.map +1 -1
  57. package/dist/types/v1/nodes/ProgramNode.d.ts.map +1 -1
  58. package/dist/types/v1/nodes/RootNode.d.ts.map +1 -1
  59. package/dist/types/v1/nodes/contextualValueNodes/ConditionalValueNode.d.ts.map +1 -1
  60. package/dist/types/v1/nodes/contextualValueNodes/ContextualValueNode.d.ts.map +1 -1
  61. package/dist/types/v1/nodes/contextualValueNodes/ResolverValueNode.d.ts.map +1 -1
  62. package/dist/types/v1/nodes/linkNodes/InstructionAccountLinkNode.d.ts.map +1 -1
  63. package/dist/types/v1/nodes/linkNodes/InstructionArgumentLinkNode.d.ts.map +1 -1
  64. package/dist/types/v1/nodes/linkNodes/InstructionLinkNode.d.ts.map +1 -1
  65. package/dist/types/v1/nodes/typeNodes/AmountTypeNode.d.ts.map +1 -1
  66. package/dist/types/v1/nodes/typeNodes/ArrayTypeNode.d.ts.map +1 -1
  67. package/dist/types/v1/nodes/typeNodes/BytesTypeNode.d.ts.map +1 -1
  68. package/dist/types/v1/nodes/typeNodes/DateTimeTypeNode.d.ts.map +1 -1
  69. package/dist/types/v1/nodes/typeNodes/EnumEmptyVariantTypeNode.d.ts.map +1 -1
  70. package/dist/types/v1/nodes/typeNodes/EnumStructVariantTypeNode.d.ts.map +1 -1
  71. package/dist/types/v1/nodes/typeNodes/EnumTupleVariantTypeNode.d.ts.map +1 -1
  72. package/dist/types/v1/nodes/typeNodes/HiddenPrefixTypeNode.d.ts.map +1 -1
  73. package/dist/types/v1/nodes/typeNodes/HiddenSuffixTypeNode.d.ts.map +1 -1
  74. package/dist/types/v1/nodes/typeNodes/MapTypeNode.d.ts.map +1 -1
  75. package/dist/types/v1/nodes/typeNodes/OptionTypeNode.d.ts.map +1 -1
  76. package/dist/types/v1/nodes/typeNodes/PostOffsetTypeNode.d.ts.map +1 -1
  77. package/dist/types/v1/nodes/typeNodes/PreOffsetTypeNode.d.ts.map +1 -1
  78. package/dist/types/v1/nodes/typeNodes/RemainderOptionTypeNode.d.ts.map +1 -1
  79. package/dist/types/v1/nodes/typeNodes/SentinelTypeNode.d.ts.map +1 -1
  80. package/dist/types/v1/nodes/typeNodes/SetTypeNode.d.ts.map +1 -1
  81. package/dist/types/v1/nodes/typeNodes/StringTypeNode.d.ts.map +1 -1
  82. package/dist/types/v1/nodes/typeNodes/StructTypeNode.d.ts.map +1 -1
  83. package/dist/types/v1/nodes/typeNodes/ZeroableOptionTypeNode.d.ts.map +1 -1
  84. package/dist/types/v1/nodes/valueNodes/EnumValueNode.d.ts.map +1 -1
  85. package/dist/types/v1/nodes/valueNodes/NumberValueNode.d.ts.map +1 -1
  86. package/dist/v1.browser.cjs +645 -438
  87. package/dist/v1.browser.cjs.map +1 -1
  88. package/dist/v1.browser.mjs +645 -438
  89. package/dist/v1.browser.mjs.map +1 -1
  90. package/dist/v1.node.cjs +645 -438
  91. package/dist/v1.node.cjs.map +1 -1
  92. package/dist/v1.node.mjs +645 -438
  93. package/dist/v1.node.mjs.map +1 -1
  94. package/dist/v1.react-native.mjs +645 -438
  95. package/dist/v1.react-native.mjs.map +1 -1
  96. package/package.json +13 -1
  97. package/dist/types/v1/nestedTypeNodeWrappers.d.ts +0 -10
  98. package/dist/types/v1/nestedTypeNodeWrappers.d.ts.map +0 -1
@@ -6,8 +6,8 @@
6
6
  */
7
7
  import type { AttributeSpec, TypeExpr } from './types';
8
8
  export interface AttributeOptions {
9
- /** Free-form prose description for codegen / docs. */
10
- readonly docs?: string;
9
+ /** Free-form prose paragraphs describing this attribute. */
10
+ readonly docs?: readonly string[];
11
11
  /** When `true`, the attribute may be absent in encoded values. */
12
12
  readonly optional?: boolean;
13
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"attribute.d.ts","sourceRoot":"","sources":["../../../src/api/attribute.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,WAAW,gBAAgB;IAC7B,sDAAsD;IACtD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAE,gBAAqB,GAAG,aAAa,CAOrG;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC7B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,QAAQ,EACd,OAAO,GAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAM,GACjD,aAAa,CAEf"}
1
+ {"version":3,"file":"attribute.d.ts","sourceRoot":"","sources":["../../../src/api/attribute.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,WAAW,gBAAgB;IAC7B,4DAA4D;IAC5D,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,kEAAkE;IAClE,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAE,gBAAqB,GAAG,aAAa,CAOrG;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC7B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,QAAQ,EACd,OAAO,GAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAM,GACjD,aAAa,CAEf"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * `defineCategory(name, options)` — group a coherent set of nodes,
3
+ * unions, enumerations, and nested unions under a single name.
4
+ *
5
+ * Categories double as a filing hint for codegen targets that organise
6
+ * output by category (e.g. the TypeScript node-types generator emits
7
+ * each category into its own subdirectory). Category names are arbitrary
8
+ * strings; the spec doesn't constrain them.
9
+ */
10
+ import type { CategorySpec, EnumerationSpec, NestedUnionSpec, NodeSpec, UnionSpec } from './types';
11
+ export interface DefineCategoryOptions {
12
+ readonly docs?: readonly string[];
13
+ readonly nodes?: readonly NodeSpec[];
14
+ readonly unions?: readonly UnionSpec[];
15
+ readonly enumerations?: readonly EnumerationSpec[];
16
+ readonly nestedUnions?: readonly NestedUnionSpec[];
17
+ }
18
+ export declare function defineCategory(name: string, options?: DefineCategoryOptions): CategorySpec;
19
+ //# sourceMappingURL=defineCategory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defineCategory.d.ts","sourceRoot":"","sources":["../../../src/api/defineCategory.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEnG,MAAM,WAAW,qBAAqB;IAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAC;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;IACvC,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IACnD,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;CACtD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,qBAA0B,GAAG,YAAY,CAS9F"}
@@ -7,12 +7,12 @@
7
7
  */
8
8
  import type { EnumerationSpec, EnumerationVariantSpec } from './types';
9
9
  export interface VariantOptions {
10
- readonly docs?: string;
10
+ readonly docs?: readonly string[];
11
11
  }
12
12
  /** Construct a single enumeration variant. */
13
13
  export declare function variant(name: string, options?: VariantOptions): EnumerationVariantSpec;
14
14
  export interface DefineEnumerationOptions {
15
- readonly docs?: string;
15
+ readonly docs?: readonly string[];
16
16
  readonly variants: readonly EnumerationVariantSpec[];
17
17
  }
18
18
  export declare function defineEnumeration(name: string, options: DefineEnumerationOptions): EnumerationSpec;
@@ -1 +1 @@
1
- {"version":3,"file":"defineEnumeration.d.ts","sourceRoot":"","sources":["../../../src/api/defineEnumeration.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEvE,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,8CAA8C;AAC9C,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,cAAmB,GAAG,sBAAsB,CAK1F;AAED,MAAM,WAAW,wBAAwB;IACrC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,SAAS,sBAAsB,EAAE,CAAC;CACxD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,GAAG,eAAe,CAgBlG"}
1
+ {"version":3,"file":"defineEnumeration.d.ts","sourceRoot":"","sources":["../../../src/api/defineEnumeration.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEvE,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED,8CAA8C;AAC9C,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,cAAmB,GAAG,sBAAsB,CAK1F;AAED,MAAM,WAAW,wBAAwB;IACrC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,SAAS,sBAAsB,EAAE,CAAC;CACxD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,GAAG,eAAe,CAgBlG"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * `defineNestedUnion(name, options)` — declares a recursive type alias,
3
+ * e.g. `NestedTypeNode<T>`.
4
+ *
5
+ * Codegen renders one alternative per wrapper kind, plus the base case:
6
+ *
7
+ * ```ts
8
+ * type Alias<T extends Base> = Wrapper1<Alias<T>> | Wrapper2<Alias<T>> | … | T;
9
+ * ```
10
+ *
11
+ * Use the `nestedUnion(alias, innerKind)` `TypeExpr` helper to reference
12
+ * an instance of this alias from an attribute.
13
+ */
14
+ import type { NestedUnionSpec, TypeExpr } from './types';
15
+ export interface DefineNestedUnionOptions {
16
+ readonly docs?: readonly string[];
17
+ /**
18
+ * The base type the recursion bottoms out in. Codegen renders this
19
+ * as the alias's type-parameter constraint and as the final union arm.
20
+ */
21
+ readonly base: TypeExpr;
22
+ /**
23
+ * Node kinds that act as wrappers in the recursion. Each must be a
24
+ * node whose attribute structure can wrap another `NestedUnion<T>`.
25
+ */
26
+ readonly wrappers: readonly string[];
27
+ }
28
+ export declare function defineNestedUnion(name: string, options: DefineNestedUnionOptions): NestedUnionSpec;
29
+ //# sourceMappingURL=defineNestedUnion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defineNestedUnion.d.ts","sourceRoot":"","sources":["../../../src/api/defineNestedUnion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEzD,MAAM,WAAW,wBAAwB;IACrC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,GAAG,eAAe,CAOlG"}
@@ -15,8 +15,8 @@
15
15
  */
16
16
  import type { AttributeSpec, NodeSpec } from './types';
17
17
  export interface DefineNodeOptions {
18
- /** Free-form prose description for codegen / docs. */
19
- readonly docs?: string;
18
+ /** Free-form prose paragraphs describing this node. */
19
+ readonly docs?: readonly string[];
20
20
  /**
21
21
  * Attributes of the node, in declaration order. Construct each entry
22
22
  * via `attribute(...)` or `optionalAttribute(...)`.
@@ -1 +1 @@
1
- {"version":3,"file":"defineNode.d.ts","sourceRoot":"","sources":["../../../src/api/defineNode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,WAAW,iBAAiB;IAC9B,sDAAsD;IACtD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,SAAS,aAAa,EAAE,CAAC;IAC9C,iEAAiE;IACjE,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;CAC1C;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,QAAQ,CAO7E"}
1
+ {"version":3,"file":"defineNode.d.ts","sourceRoot":"","sources":["../../../src/api/defineNode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,WAAW,iBAAiB;IAC9B,uDAAuD;IACvD,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,SAAS,aAAa,EAAE,CAAC;IAC9C,iEAAiE;IACjE,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;CAC1C;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,QAAQ,CAO7E"}
@@ -16,7 +16,7 @@
16
16
  import type { TypeExpr, UnionSpec } from './types';
17
17
  export type UnionMemberInput = TypeExpr | string;
18
18
  export interface DefineUnionOptions {
19
- readonly docs?: string;
19
+ readonly docs?: readonly string[];
20
20
  readonly members: readonly UnionMemberInput[];
21
21
  }
22
22
  export declare function defineUnion(name: string, options: DefineUnionOptions): UnionSpec;
@@ -1 +1 @@
1
- {"version":3,"file":"defineUnion.d.ts","sourceRoot":"","sources":["../../../src/api/defineUnion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAe,SAAS,EAAE,MAAM,SAAS,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEjD,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;CACjD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,SAAS,CAOhF"}
1
+ {"version":3,"file":"defineUnion.d.ts","sourceRoot":"","sources":["../../../src/api/defineUnion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAe,SAAS,EAAE,MAAM,SAAS,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEjD,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;CACjD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,SAAS,CAOhF"}
@@ -1,12 +1,14 @@
1
1
  /**
2
- * The meta-model API used to declare the encoded Codama spec for each major
3
- * version. Authors of versioned content (`spec/src/v<n>/`) consume this
4
- * module; consumers of the published `@codama/spec` package see only the
5
- * re-exports from `./public`.
2
+ * The meta-model API used to declare the encoded Codama spec for each
3
+ * major version. Authors of versioned content (`spec/src/v<n>/`) consume
4
+ * this module; consumers of the published `@codama/spec` package see
5
+ * only the re-exports from `./public`.
6
6
  */
7
7
  export * from './attribute';
8
8
  export * from './compounds';
9
+ export * from './defineCategory';
9
10
  export * from './defineEnumeration';
11
+ export * from './defineNestedUnion';
10
12
  export * from './defineNode';
11
13
  export * from './defineUnion';
12
14
  export * from './primitives';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,mBAAmB,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,mBAAmB,SAAS,CAAC"}
@@ -51,10 +51,14 @@ export declare function node(name: string): TypeExpr;
51
51
  /** Reference to a named union declared via `defineUnion`. */
52
52
  export declare function union(name: string): TypeExpr;
53
53
  /**
54
- * Reference to a named node, with implicit `NestedTypeNode<…>` wrapping.
55
- * The list of recognised wrapper nodes is supplied per spec major version;
56
- * see `v1/nestedTypeNodeWrappers.ts`.
54
+ * Reference to a named node, wrapped by a named recursive `NestedUnion`
55
+ * alias. `alias` selects which `NestedUnion` declared via
56
+ * `defineNestedUnion` the wrapping uses (e.g. `'NestedTypeNode'`); `name`
57
+ * is the inner node kind.
58
+ *
59
+ * Renderers emit `<alias><<innerInterface>>` and an import for the alias
60
+ * file.
57
61
  */
58
- export declare function nestedTypeNode(name: string): TypeExpr;
62
+ export declare function nestedUnion(alias: string, name: string): TypeExpr;
59
63
  export type { FloatWidth, IntegerWidth, LiteralValue, StringConstraint, TypeExpr };
60
64
  //# sourceMappingURL=primitives.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../../src/api/primitives.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAMlG,0BAA0B;AAC1B,wBAAgB,MAAM,IAAI,QAAQ,CAEjC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,QAAQ,CAE3C;AAED,8DAA8D;AAC9D,wBAAgB,aAAa,IAAI,QAAQ,CAExC;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,IAAI,QAAQ,CAExC;AAQD,eAAO,MAAM,EAAE,QAAO,QAAyB,CAAC;AAChD,eAAO,MAAM,GAAG,QAAO,QAA0B,CAAC;AAClD,eAAO,MAAM,GAAG,QAAO,QAA0B,CAAC;AAClD,eAAO,MAAM,GAAG,QAAO,QAA0B,CAAC;AAClD,eAAO,MAAM,IAAI,QAAO,QAA2B,CAAC;AACpD,eAAO,MAAM,EAAE,QAAO,QAAyB,CAAC;AAChD,eAAO,MAAM,GAAG,QAAO,QAA0B,CAAC;AAClD,eAAO,MAAM,GAAG,QAAO,QAA0B,CAAC;AAClD,eAAO,MAAM,GAAG,QAAO,QAA0B,CAAC;AAClD,eAAO,MAAM,IAAI,QAAO,QAA2B,CAAC;AAQpD,eAAO,MAAM,GAAG,QAAO,QAAwB,CAAC;AAChD,eAAO,MAAM,GAAG,QAAO,QAAwB,CAAC;AAMhD,wBAAgB,OAAO,IAAI,QAAQ,CAElC;AAED,gDAAgD;AAChD,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,QAAQ,CAErD;AAED;;;;;;GAMG;AACH,wBA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AAC;AAClD,eAAO,MAAM,GAAG,QAAO,QAA0B,CAAC;AAClD,eAAO,MAAM,IAAI,QAAO,QAA2B,CAAC;AAMpD,eAAO,MAAM,GAAG,QAAO,QAAwB,CAAC;AAChD,eAAO,MAAM,GAAG,QAAO,QAAwB,CAAC;AAIhD,wBAAgB,OAAO,IAAI,QAAQ,CAElC;AAED,gDAAgD;AAChD,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,QAAQ,CAErD;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,GAAG,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAYhE;AAID,yEAAyE;AACzE,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAElD;AAED,2DAA2D;AAC3D,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAE3C;AAED,6DAA6D;AAC7D,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAE5C;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,QAAQ,CAEjE;AAGD,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC"}
@@ -6,6 +6,6 @@
6
6
  * maintenance. Authoring helpers (`defineNode`, primitives, …) are NOT
7
7
  * included here — they live in `./index.ts` for internal use only.
8
8
  */
9
- export type { AttributeSpec, EnumerationSpec, EnumerationVariantSpec, FloatWidth, IntegerWidth, LiteralValue, NodeSpec, Spec, StringConstraint, TypeExpr, UnionMember, UnionSpec, } from './types';
9
+ export type { AttributeSpec, CategorySpec, EnumerationSpec, EnumerationVariantSpec, FloatWidth, IntegerWidth, LiteralValue, NestedUnionSpec, NodeSpec, Spec, StringConstraint, TypeExpr, UnionMember, UnionSpec, } from './types';
10
10
  export { isChildAttribute } from './validate';
11
11
  //# sourceMappingURL=public.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/api/public.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EACR,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,IAAI,EACJ,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,SAAS,GACZ,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/api/public.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EACR,aAAa,EACb,YAAY,EACZ,eAAe,EACf,sBAAsB,EACtB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,IAAI,EACJ,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,SAAS,GACZ,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
@@ -1,11 +1,16 @@
1
1
  /**
2
- * Author-side semantic aliases over integer primitives. They desugar at call
3
- * time so the encoded spec only ever shows the underlying primitive (e.g.
4
- * `{ kind: "integer", width: "u64" }` for both `u64()` and `byteSize()`).
2
+ * Author-side semantic aliases.
5
3
  *
6
- * Each language's codegen may further specialise rendering for these widths
7
- * (e.g. Rust may render `u64` as `usize` for byte-size fields if it wants).
8
- * Those are codegen policies not spec content.
4
+ * Most aliases desugar at call time so the encoded spec only ever shows
5
+ * the underlying primitive (e.g. `{ kind: "integer", width: "u64" }` for
6
+ * both `u64()` and `byteSize()`). Each language's codegen may further
7
+ * specialise rendering for these widths (e.g. Rust may render `u64` as
8
+ * `usize` for byte-size fields if it wants). Those are codegen policies
9
+ * — not spec content.
10
+ *
11
+ * `docs()` is the exception: it returns its own `'docs'` `TypeExpr` kind
12
+ * so the documentation intent survives in the encoded spec rather than
13
+ * collapsing to `array(string())`.
9
14
  */
10
15
  import type { TypeExpr } from './types';
11
16
  /** Number of bytes; non-negative. Encoded as `u64`. */
@@ -14,6 +19,11 @@ export declare function byteSize(): TypeExpr;
14
19
  export declare function byteOffset(): TypeExpr;
15
20
  /** Count of items in a collection; non-negative. Encoded as `u32`. */
16
21
  export declare function count(): TypeExpr;
17
- /** Documentation for a node — an array of paragraph strings. */
22
+ /**
23
+ * Documentation for a node — semantically a list of paragraph strings,
24
+ * but rendered per language at codegen time (e.g. `Array<string>` in
25
+ * TypeScript, `Vec<String>` in Rust). Returns its own `'docs'` kind so
26
+ * the intent isn't lost in the encoded spec.
27
+ */
18
28
  export declare function docs(): TypeExpr;
19
29
  //# sourceMappingURL=semanticAliases.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"semanticAliases.d.ts","sourceRoot":"","sources":["../../../src/api/semanticAliases.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,uDAAuD;AACvD,wBAAgB,QAAQ,IAAI,QAAQ,CAEnC;AAED,4CAA4C;AAC5C,wBAAgB,UAAU,IAAI,QAAQ,CAErC;AAED,sEAAsE;AACtE,wBAAgB,KAAK,IAAI,QAAQ,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,IAAI,IAAI,QAAQ,CAE/B"}
1
+ {"version":3,"file":"semanticAliases.d.ts","sourceRoot":"","sources":["../../../src/api/semanticAliases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,uDAAuD;AACvD,wBAAgB,QAAQ,IAAI,QAAQ,CAEnC;AAED,4CAA4C;AAC5C,wBAAgB,UAAU,IAAI,QAAQ,CAErC;AAED,sEAAsE;AACtE,wBAAgB,KAAK,IAAI,QAAQ,CAEhC;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,IAAI,QAAQ,CAE/B"}
@@ -3,7 +3,10 @@
3
3
  *
4
4
  * These types are version-agnostic — the same shape describes a Codama v1
5
5
  * spec, a v2 spec, etc. Versioned content (concrete nodes, enumerations,
6
- * unions) lives under `spec/src/v<n>/`.
6
+ * unions, categories) lives under `spec/src/v<n>/`. The first half of
7
+ * this file declares the type-expression vocabulary; the second half
8
+ * declares the spec-content shape (attributes, nodes, unions,
9
+ * enumerations, nested unions, categories).
7
10
  */
8
11
  export type IntegerWidth = 'i8' | 'i16' | 'i32' | 'i64' | 'i128' | 'u8' | 'u16' | 'u32' | 'u64' | 'u128';
9
12
  export type FloatWidth = 'f32' | 'f64';
@@ -21,8 +24,8 @@ export type LiteralValue = boolean | number | string;
21
24
  * Constituents are listed alphabetically by `kind` to satisfy the lint
22
25
  * rule; logical grouping lives in the doc comments below.
23
26
  *
24
- * Leaf primitives: boolean, float, integer, literal, literalUnion, string.
25
- * Named references: enumeration, nestedTypeNode, node, union.
27
+ * Leaf primitives: boolean, docs, float, integer, literal, literalUnion, string.
28
+ * Named references: codamaVersion, enumeration, nestedUnion, node, union.
26
29
  * Compounds: array, tuple.
27
30
  */
28
31
  export type TypeExpr = {
@@ -38,6 +41,16 @@ export type TypeExpr = {
38
41
  */
39
42
  | {
40
43
  readonly kind: 'codamaVersion';
44
+ }
45
+ /**
46
+ * Documentation for a node — semantically a list of paragraph strings,
47
+ * but rendered per language at codegen time (e.g. `Array<string>` in
48
+ * TypeScript, `Vec<String>` in Rust). Carrying the intent as its own
49
+ * kind preserves "this is documentation" through the encoded spec
50
+ * rather than collapsing to `array(string())`.
51
+ */
52
+ | {
53
+ readonly kind: 'docs';
41
54
  } | {
42
55
  readonly kind: 'enumeration';
43
56
  readonly name: string;
@@ -59,8 +72,15 @@ export type TypeExpr = {
59
72
  | {
60
73
  readonly kind: 'literalUnion';
61
74
  readonly values: readonly LiteralValue[];
62
- } | {
63
- readonly kind: 'nestedTypeNode';
75
+ }
76
+ /**
77
+ * A reference to a node, wrapped by a named `NestedUnion` recursive
78
+ * alias. `alias` is the alias name (e.g. `'NestedTypeNode'`) declared
79
+ * via `defineNestedUnion`; `name` is the inner node kind being wrapped.
80
+ */
81
+ | {
82
+ readonly kind: 'nestedUnion';
83
+ readonly alias: string;
64
84
  readonly name: string;
65
85
  } | {
66
86
  readonly kind: 'node';
@@ -81,13 +101,13 @@ export interface AttributeSpec {
81
101
  readonly type: TypeExpr;
82
102
  /** When `true`, the attribute may be absent in encoded values. */
83
103
  readonly optional?: boolean;
84
- /** Free-form prose description for codegen / docs. */
85
- readonly docs?: string;
104
+ /** Free-form prose paragraphs describing this attribute. */
105
+ readonly docs?: readonly string[];
86
106
  }
87
107
  /** A node specification: kind, optional docs, attributes, examples. */
88
108
  export interface NodeSpec {
89
109
  readonly kind: string;
90
- readonly docs?: string;
110
+ readonly docs?: readonly string[];
91
111
  readonly attributes: readonly AttributeSpec[];
92
112
  /** Free-form examples (shape defined per spec major version). */
93
113
  readonly examples: readonly unknown[];
@@ -104,31 +124,68 @@ export type UnionMember = {
104
124
  export interface UnionSpec {
105
125
  readonly name: string;
106
126
  readonly members: readonly UnionMember[];
107
- readonly docs?: string;
127
+ readonly docs?: readonly string[];
108
128
  }
109
129
  /** A single variant of an enumeration. */
110
130
  export interface EnumerationVariantSpec {
111
131
  readonly name: string;
112
- readonly docs?: string;
132
+ readonly docs?: readonly string[];
113
133
  }
114
134
  /** A named enumeration — a closed set of named variants. */
115
135
  export interface EnumerationSpec {
116
136
  readonly name: string;
117
137
  readonly variants: readonly EnumerationVariantSpec[];
118
- readonly docs?: string;
138
+ readonly docs?: readonly string[];
139
+ }
140
+ /**
141
+ * A recursive type alias, e.g. `NestedTypeNode<T>`. Codegen renders one
142
+ * alternative per wrapper kind, plus the base case:
143
+ *
144
+ * ```ts
145
+ * type Alias<T extends Base> = Wrapper1<Alias<T>> | Wrapper2<Alias<T>> | … | T;
146
+ * ```
147
+ *
148
+ * Use the `nestedUnion(alias, innerKind)` `TypeExpr` helper to reference
149
+ * an instance of this alias from an attribute.
150
+ */
151
+ export interface NestedUnionSpec {
152
+ /** The alias name emitted by codegen (e.g. `'NestedTypeNode'`). */
153
+ readonly name: string;
154
+ readonly docs?: readonly string[];
155
+ /**
156
+ * The base type the recursion bottoms out in. Codegen renders this as
157
+ * the alias's type-parameter constraint and as the final union arm.
158
+ */
159
+ readonly base: TypeExpr;
160
+ /**
161
+ * Node kinds that act as wrappers in the recursion. Each must be a
162
+ * node whose attribute structure can wrap another `NestedUnion<T>`.
163
+ */
164
+ readonly wrappers: readonly string[];
165
+ }
166
+ /**
167
+ * A category groups together a coherent set of nodes, unions,
168
+ * enumerations, and nested unions. The category name doubles as a
169
+ * filing hint for codegen targets that organise output by category
170
+ * (e.g. the TypeScript node-types generator emits each category into
171
+ * its own subdirectory).
172
+ *
173
+ * Category names are arbitrary strings; the spec doesn't constrain
174
+ * them. Codegen targets either honour an open category vocabulary or
175
+ * fail loudly on unknown categories — that policy is per-target, not
176
+ * per-spec.
177
+ */
178
+ export interface CategorySpec {
179
+ readonly name: string;
180
+ readonly docs?: readonly string[];
181
+ readonly nodes: readonly NodeSpec[];
182
+ readonly unions: readonly UnionSpec[];
183
+ readonly enumerations: readonly EnumerationSpec[];
184
+ readonly nestedUnions: readonly NestedUnionSpec[];
119
185
  }
120
186
  /** The full Codama spec for a single Codama major version. */
121
187
  export interface Spec {
122
188
  readonly version: string;
123
- readonly enumerations: readonly EnumerationSpec[];
124
- readonly nodes: readonly NodeSpec[];
125
- readonly unions: readonly UnionSpec[];
126
- /**
127
- * The closed list of node kinds that act as wrappers in the recursive
128
- * `NestedTypeNode<T>` construct. Codegen targets render this list as
129
- * the wrapping behaviour for each language. Specific to Codama v1; may
130
- * be removed or reshaped in future Codama majors.
131
- */
132
- readonly nestedTypeNodeWrappers: readonly string[];
189
+ readonly categories: readonly CategorySpec[];
133
190
  }
134
191
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":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C;IACzB,QAAQ,CAAC,UAAU,EAAE,SAAS,YAAY,EAAE,CAAC;CAChD"}
@@ -2,14 +2,16 @@
2
2
  * Self-consistency validation for an assembled spec.
3
3
  *
4
4
  * Returns an array of human-readable error strings. An empty array means
5
- * the spec is internally coherent — every reference resolves, no duplicate
6
- * names, naming conventions hold.
5
+ * the spec is internally coherent — every reference resolves, no
6
+ * duplicate names, naming conventions hold.
7
7
  */
8
8
  import type { Spec, TypeExpr } from './types';
9
9
  export declare function validate(spec: Spec): string[];
10
10
  /**
11
+ * Discriminator helper used by codegen, docs, and visitor-table generators.
12
+ *
11
13
  * A "child" attribute is one whose value contains another node. Specifically,
12
- * any attribute whose type tree includes a `node`, `nestedTypeNode`, or
14
+ * any attribute whose type tree includes a `node`, `nestedUnion`, or
13
15
  * `union` is treated as a child. Optionality (the `optional` flag on the
14
16
  * attribute itself) is orthogonal to this classification.
15
17
  */
@@ -1 +1 @@
1
- {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/api/validate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAI9C,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,CA6E7C;AAiED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAaxD"}
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/api/validate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAA8C,IAAI,EAAE,QAAQ,EAAa,MAAM,SAAS,CAAC;AAIrG,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,CAgG7C;AA6DD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAaxD"}
@@ -1 +1 @@
1
- {"version":3,"file":"enumerations.d.ts","sourceRoot":"","sources":["../../../src/v1/enumerations.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,eAAO,MAAM,UAAU,6BAMrB,CAAC;AAEH,eAAO,MAAM,YAAY,6BAmBvB,CAAC;AAEH,eAAO,MAAM,aAAa,6BAQxB,CAAC;AAEH,eAAO,MAAM,oBAAoB,6BAc/B,CAAC;AAEH,eAAO,MAAM,oBAAoB,6BAU/B,CAAC;AAEH,eAAO,MAAM,uBAAuB,6BAUlC,CAAC;AAEH,eAAO,MAAM,iBAAiB,6BAa5B,CAAC;AAEH,eAAO,MAAM,kBAAkB,6BAgB7B,CAAC;AAEH,eAAO,MAAM,aAAa,6BAMxB,CAAC;AAEH,eAAO,MAAM,gBAAgB,gRAUnB,CAAC"}
1
+ {"version":3,"file":"enumerations.d.ts","sourceRoot":"","sources":["../../../src/v1/enumerations.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,eAAO,MAAM,UAAU,6BAMrB,CAAC;AAEH,eAAO,MAAM,YAAY,6BAmBvB,CAAC;AAEH,eAAO,MAAM,aAAa,6BAQxB,CAAC;AAEH,eAAO,MAAM,oBAAoB,6BAc/B,CAAC;AAEH,eAAO,MAAM,oBAAoB,6BAY/B,CAAC;AAEH,eAAO,MAAM,uBAAuB,6BAUlC,CAAC;AAEH,eAAO,MAAM,iBAAiB,6BAa5B,CAAC;AAEH,eAAO,MAAM,kBAAkB,6BAgB7B,CAAC;AAEH,eAAO,MAAM,aAAa,6BAMxB,CAAC;AAEH,eAAO,MAAM,gBAAgB,gRAUnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAMzE,cAAc,eAAe,CAAC;AAE9B,yCAAyC;AACzC,eAAO,MAAM,YAAY,UAAU,CAAC;AAIpC;;;;;;GAMG;AACH,wBAAgB,OAAO,IAAI,IAAI,CAe9B;AAED,oEAAoE;AACpE,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAE1D;AAED,qEAAqE;AACrE,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAE5D;AAED,2EAA2E;AAC3E,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAExE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAgB,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AA2BvF,cAAc,eAAe,CAAC;AAE9B,yCAAyC;AACzC,eAAO,MAAM,YAAY,UAAU,CAAC;AAuFpC;;;;;;GAMG;AACH,wBAAgB,OAAO,IAAI,IAAI,CAY9B;AAED,oEAAoE;AACpE,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAM1D;AAED,qEAAqE;AACrE,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAM5D;AAED,2EAA2E;AAC3E,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAMxE"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Nested-union recursive aliases declared by the v1 spec.
3
+ *
4
+ * Today there's only one — `NestedTypeNode<T>` — used by attributes like
5
+ * `accountNode.data` (which holds a `structTypeNode` possibly wrapped in
6
+ * size, offset, sentinel, or hidden prefix/suffix modifiers).
7
+ */
8
+ export declare const nestedTypeNode: import(".").NestedUnionSpec;
9
+ //# sourceMappingURL=nestedUnions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nestedUnions.d.ts","sourceRoot":"","sources":["../../../src/v1/nestedUnions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,eAAO,MAAM,cAAc,6BAezB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AccountNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/AccountNode.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,WAAW,uBAsBtB,CAAC"}
1
+ {"version":3,"file":"AccountNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/AccountNode.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,WAAW,uBA2BtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EventNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/EventNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,uBAgBpB,CAAC"}
1
+ {"version":3,"file":"EventNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/EventNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,uBAkBpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"InstructionAccountNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/InstructionAccountNode.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,sBAAsB,uBAsBjC,CAAC"}
1
+ {"version":3,"file":"InstructionAccountNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/InstructionAccountNode.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,sBAAsB,uBA2BjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"InstructionByteDeltaNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/InstructionByteDeltaNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,uBAanC,CAAC"}
1
+ {"version":3,"file":"InstructionByteDeltaNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/InstructionByteDeltaNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,uBAiBnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"InstructionNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/InstructionNode.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,eAAe,uBAqC1B,CAAC"}
1
+ {"version":3,"file":"InstructionNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/InstructionNode.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,eAAe,uBA4C1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"InstructionRemainingAccountsNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/InstructionRemainingAccountsNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gCAAgC,uBAmB3C,CAAC"}
1
+ {"version":3,"file":"InstructionRemainingAccountsNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/InstructionRemainingAccountsNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gCAAgC,uBAsB3C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"InstructionStatusNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/InstructionStatusNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,uBAUhC,CAAC"}
1
+ {"version":3,"file":"InstructionStatusNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/InstructionStatusNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,uBAYhC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PdaNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/PdaNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,uBAgBlB,CAAC"}
1
+ {"version":3,"file":"PdaNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/PdaNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,uBAkBlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProgramNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/ProgramNode.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,WAAW,uBAwCtB,CAAC"}
1
+ {"version":3,"file":"ProgramNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/ProgramNode.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,WAAW,uBA0CtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RootNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/RootNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,uBAgBnB,CAAC"}
1
+ {"version":3,"file":"RootNode.d.ts","sourceRoot":"","sources":["../../../../src/v1/nodes/RootNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,uBAmBnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ConditionalValueNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/contextualValueNodes/ConditionalValueNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,0BAgB/B,CAAC"}
1
+ {"version":3,"file":"ConditionalValueNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/contextualValueNodes/ConditionalValueNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,0BAsB/B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContextualValueNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/contextualValueNodes/ContextualValueNode.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAgBH,eAAO,MAAM,kCAAkC,2BAG7C,CAAC;AAEH,eAAO,MAAM,wBAAwB,2BAGnC,CAAC;AAEH,eAAO,MAAM,kCAAkC,2BAG7C,CAAC;AAEH,eAAO,MAAM,8BAA8B,2BAGzC,CAAC;AAIH,eAAO,MAAM,8BAA8B,2BAGzC,CAAC;AAEH,eAAO,MAAM,uBAAuB,2BAGlC,CAAC;AAEH,eAAO,MAAM,sBAAsB,2BAGjC,CAAC;AAEH,eAAO,MAAM,gBAAgB,2BAG3B,CAAC;AAEH,eAAO,MAAM,sBAAsB,2BAGjC,CAAC"}
1
+ {"version":3,"file":"ContextualValueNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/contextualValueNodes/ContextualValueNode.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAgBH,eAAO,MAAM,kCAAkC,2BAG7C,CAAC;AAEH,eAAO,MAAM,wBAAwB,2BAGnC,CAAC;AAEH,eAAO,MAAM,kCAAkC,2BAG7C,CAAC;AAEH,eAAO,MAAM,8BAA8B,2BAMzC,CAAC;AAIH,eAAO,MAAM,8BAA8B,2BAGzC,CAAC;AAEH,eAAO,MAAM,uBAAuB,2BAGlC,CAAC;AAEH,eAAO,MAAM,sBAAsB,2BAGjC,CAAC;AAEH,eAAO,MAAM,gBAAgB,2BAG3B,CAAC;AAEH,eAAO,MAAM,sBAAsB,2BAGjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ResolverValueNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/contextualValueNodes/ResolverValueNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,0BAa5B,CAAC"}
1
+ {"version":3,"file":"ResolverValueNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/contextualValueNodes/ResolverValueNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,0BAkB5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"InstructionAccountLinkNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/linkNodes/InstructionAccountLinkNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B,0BAUrC,CAAC"}
1
+ {"version":3,"file":"InstructionAccountLinkNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/linkNodes/InstructionAccountLinkNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B,0BAYrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"InstructionArgumentLinkNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/linkNodes/InstructionArgumentLinkNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,0BAUtC,CAAC"}
1
+ {"version":3,"file":"InstructionArgumentLinkNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/linkNodes/InstructionArgumentLinkNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,0BAYtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"InstructionLinkNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/linkNodes/InstructionLinkNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,0BAU9B,CAAC"}
1
+ {"version":3,"file":"InstructionLinkNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/linkNodes/InstructionLinkNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,0BAY9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AmountTypeNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/typeNodes/AmountTypeNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,0BAazB,CAAC"}
1
+ {"version":3,"file":"AmountTypeNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/typeNodes/AmountTypeNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,0BAmBzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ArrayTypeNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/typeNodes/ArrayTypeNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,0BAUxB,CAAC"}
1
+ {"version":3,"file":"ArrayTypeNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/typeNodes/ArrayTypeNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,0BAYxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BytesTypeNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/typeNodes/BytesTypeNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,0BAGxB,CAAC"}
1
+ {"version":3,"file":"BytesTypeNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/typeNodes/BytesTypeNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,0BAKxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DateTimeTypeNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/typeNodes/DateTimeTypeNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,0BAO3B,CAAC"}
1
+ {"version":3,"file":"DateTimeTypeNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/typeNodes/DateTimeTypeNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,0BAS3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EnumEmptyVariantTypeNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/typeNodes/EnumEmptyVariantTypeNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,0BAUnC,CAAC"}
1
+ {"version":3,"file":"EnumEmptyVariantTypeNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/typeNodes/EnumEmptyVariantTypeNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,0BAYnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EnumStructVariantTypeNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/typeNodes/EnumStructVariantTypeNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,0BAapC,CAAC"}
1
+ {"version":3,"file":"EnumStructVariantTypeNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/typeNodes/EnumStructVariantTypeNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,0BAepC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EnumTupleVariantTypeNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/typeNodes/EnumTupleVariantTypeNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,0BAanC,CAAC"}
1
+ {"version":3,"file":"EnumTupleVariantTypeNode.d.ts","sourceRoot":"","sources":["../../../../../src/v1/nodes/typeNodes/EnumTupleVariantTypeNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,0BAenC,CAAC"}