polen 0.11.0-next.23 → 0.11.0-next.25

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 (192) hide show
  1. package/build/api/config/input.d.ts +76 -77
  2. package/build/api/config/input.d.ts.map +1 -1
  3. package/build/api/config/normalized.d.ts +136 -143
  4. package/build/api/config/normalized.d.ts.map +1 -1
  5. package/build/api/config-template/template.d.ts +110 -121
  6. package/build/api/config-template/template.d.ts.map +1 -1
  7. package/build/api/examples/diagnostic/diagnostic.d.ts +0 -23
  8. package/build/api/examples/diagnostic/diagnostic.d.ts.map +1 -1
  9. package/build/api/examples/diagnostic/diagnostic.js +1 -3
  10. package/build/api/examples/diagnostic/diagnostic.js.map +1 -1
  11. package/build/api/examples/scanner.d.ts +27 -1
  12. package/build/api/examples/scanner.d.ts.map +1 -1
  13. package/build/api/examples/scanner.js +19 -17
  14. package/build/api/examples/scanner.js.map +1 -1
  15. package/build/api/examples/schemas/catalog.d.ts +20 -12
  16. package/build/api/examples/schemas/catalog.d.ts.map +1 -1
  17. package/build/api/examples/schemas/example/example.d.ts +17 -11
  18. package/build/api/examples/schemas/example/example.d.ts.map +1 -1
  19. package/build/api/schema/augmentations/$$.d.ts +7 -0
  20. package/build/api/schema/augmentations/$$.d.ts.map +1 -0
  21. package/build/api/schema/augmentations/$$.js +7 -0
  22. package/build/api/schema/augmentations/$$.js.map +1 -0
  23. package/build/api/schema/augmentations/$.d.ts +1 -1
  24. package/build/api/schema/augmentations/$.d.ts.map +1 -1
  25. package/build/api/schema/augmentations/$.js +1 -1
  26. package/build/api/schema/augmentations/$.js.map +1 -1
  27. package/build/api/schema/augmentations/apply.d.ts +29 -0
  28. package/build/api/schema/augmentations/apply.d.ts.map +1 -0
  29. package/build/api/schema/augmentations/apply.js +181 -0
  30. package/build/api/schema/augmentations/apply.js.map +1 -0
  31. package/build/api/schema/augmentations/augmentation.d.ts +31 -0
  32. package/build/api/schema/augmentations/augmentation.d.ts.map +1 -0
  33. package/build/api/schema/augmentations/augmentation.js +22 -0
  34. package/build/api/schema/augmentations/augmentation.js.map +1 -0
  35. package/build/api/schema/augmentations/config.d.ts +24 -0
  36. package/build/api/schema/augmentations/config.d.ts.map +1 -0
  37. package/build/api/schema/augmentations/config.js +9 -0
  38. package/build/api/schema/augmentations/config.js.map +1 -0
  39. package/build/api/schema/augmentations/diagnostics/diagnostic.d.ts +67 -0
  40. package/build/api/schema/augmentations/diagnostics/diagnostic.d.ts.map +1 -0
  41. package/build/api/schema/augmentations/diagnostics/diagnostic.js +13 -0
  42. package/build/api/schema/augmentations/diagnostics/diagnostic.js.map +1 -0
  43. package/build/api/schema/augmentations/diagnostics/duplicate-version.d.ts +45 -0
  44. package/build/api/schema/augmentations/diagnostics/duplicate-version.d.ts.map +1 -0
  45. package/build/api/schema/augmentations/diagnostics/duplicate-version.js +17 -0
  46. package/build/api/schema/augmentations/diagnostics/duplicate-version.js.map +1 -0
  47. package/build/api/schema/augmentations/diagnostics/invalid-path.d.ts +46 -0
  48. package/build/api/schema/augmentations/diagnostics/invalid-path.d.ts.map +1 -0
  49. package/build/api/schema/augmentations/diagnostics/invalid-path.js +18 -0
  50. package/build/api/schema/augmentations/diagnostics/invalid-path.js.map +1 -0
  51. package/build/api/schema/augmentations/diagnostics/version-mismatch.d.ts +46 -0
  52. package/build/api/schema/augmentations/diagnostics/version-mismatch.d.ts.map +1 -0
  53. package/build/api/schema/augmentations/diagnostics/version-mismatch.js +18 -0
  54. package/build/api/schema/augmentations/diagnostics/version-mismatch.js.map +1 -0
  55. package/build/api/schema/augmentations/input.d.ts +145 -0
  56. package/build/api/schema/augmentations/input.d.ts.map +1 -0
  57. package/build/api/schema/augmentations/input.js +191 -0
  58. package/build/api/schema/augmentations/input.js.map +1 -0
  59. package/build/api/schema/augmentations/placement.d.ts +8 -0
  60. package/build/api/schema/augmentations/placement.d.ts.map +1 -0
  61. package/build/api/schema/augmentations/placement.js +7 -0
  62. package/build/api/schema/augmentations/placement.js.map +1 -0
  63. package/build/api/schema/config-schema.d.ts +66 -66
  64. package/build/api/schema/config-schema.d.ts.map +1 -1
  65. package/build/api/schema/config-schema.js +2 -2
  66. package/build/api/schema/config-schema.js.map +1 -1
  67. package/build/api/schema/input-source/load.d.ts +2 -0
  68. package/build/api/schema/input-source/load.d.ts.map +1 -1
  69. package/build/api/schema/input-source/load.js.map +1 -1
  70. package/build/api/schema/input-sources/directory.d.ts +39 -39
  71. package/build/api/schema/input-sources/file.d.ts +39 -39
  72. package/build/api/schema/input-sources/introspection-file.d.ts +39 -39
  73. package/build/api/schema/input-sources/introspection.d.ts +39 -39
  74. package/build/api/schema/input-sources/memory.d.ts +39 -39
  75. package/build/api/schema/input-sources/versioned-directory.d.ts +79 -79
  76. package/build/api/schema/load.d.ts.map +1 -1
  77. package/build/api/schema/load.js +9 -2
  78. package/build/api/schema/load.js.map +1 -1
  79. package/build/lib/catalog/catalog.d.ts +1181 -1181
  80. package/build/lib/catalog/unversioned.d.ts +312 -312
  81. package/build/lib/catalog/versioned.d.ts +634 -634
  82. package/build/lib/change/change.d.ts +238 -238
  83. package/build/lib/document/document.d.ts +14 -8
  84. package/build/lib/document/document.d.ts.map +1 -1
  85. package/build/lib/document/versioned.d.ts +17 -10
  86. package/build/lib/document/versioned.d.ts.map +1 -1
  87. package/build/lib/grafaid/schema/KindMap/_.d.ts +1 -1
  88. package/build/lib/graphql-path/$$.d.ts +7 -13
  89. package/build/lib/graphql-path/$$.d.ts.map +1 -1
  90. package/build/lib/graphql-path/$$.js +7 -13
  91. package/build/lib/graphql-path/$$.js.map +1 -1
  92. package/build/lib/graphql-path/definition.d.ts +104 -94
  93. package/build/lib/graphql-path/definition.d.ts.map +1 -1
  94. package/build/lib/graphql-path/definition.js +126 -125
  95. package/build/lib/graphql-path/definition.js.map +1 -1
  96. package/build/lib/graphql-path/query.d.ts +25 -57
  97. package/build/lib/graphql-path/query.d.ts.map +1 -1
  98. package/build/lib/graphql-path/query.js +15 -93
  99. package/build/lib/graphql-path/query.js.map +1 -1
  100. package/build/lib/graphql-path/schema.d.ts +49 -0
  101. package/build/lib/graphql-path/schema.d.ts.map +1 -0
  102. package/build/lib/graphql-path/schema.js +89 -0
  103. package/build/lib/graphql-path/schema.js.map +1 -0
  104. package/build/lib/graphql-path/types.d.ts +76 -28
  105. package/build/lib/graphql-path/types.d.ts.map +1 -1
  106. package/build/lib/graphql-path/types.js +101 -2
  107. package/build/lib/graphql-path/types.js.map +1 -1
  108. package/build/lib/revision/revision.d.ts +1170 -1170
  109. package/build/lib/schema/schema.d.ts +708 -708
  110. package/build/lib/schema/unversioned.d.ts +1092 -1092
  111. package/build/lib/schema/versioned.d.ts +634 -634
  112. package/build/lib/semver/official-release.d.ts +10 -10
  113. package/build/lib/semver/pre-release.d.ts +10 -10
  114. package/build/lib/semver/semver.d.ts +50 -50
  115. package/build/lib/version-coverage/version-coverage.d.ts +43 -11
  116. package/build/lib/version-coverage/version-coverage.d.ts.map +1 -1
  117. package/build/lib/version-coverage/version-coverage.js +40 -6
  118. package/build/lib/version-coverage/version-coverage.js.map +1 -1
  119. package/build/template/hooks/use-examples.d.ts +1 -1
  120. package/build/template/routes/changelog/ChangelogSidebar.d.ts +2 -2
  121. package/build/template/routes/changelog/ChangelogSidebar.d.ts.map +1 -1
  122. package/build/template/routes/changelog/ChangelogSidebar.js +4 -4
  123. package/build/template/routes/changelog/ChangelogSidebar.js.map +1 -1
  124. package/build/template/routes/examples/_.d.ts +3 -3
  125. package/build/template/routes/examples/_index.d.ts +2 -2
  126. package/build/template/routes/examples/name.d.ts +3 -3
  127. package/build/template/routes/pages.d.ts.map +1 -1
  128. package/build/template/routes/pages.js +5 -1
  129. package/build/template/routes/pages.js.map +1 -1
  130. package/build/template/stores/changelog.d.ts +39 -39
  131. package/build/vite/plugins/examples.d.ts.map +1 -1
  132. package/build/vite/plugins/examples.js +0 -2
  133. package/build/vite/plugins/examples.js.map +1 -1
  134. package/build/vite/plugins/schemas.d.ts.map +1 -1
  135. package/build/vite/plugins/schemas.js +38 -2
  136. package/build/vite/plugins/schemas.js.map +1 -1
  137. package/package.json +1 -1
  138. package/src/api/examples/diagnostic/diagnostic.ts +0 -3
  139. package/src/api/examples/scanner.test.ts +83 -0
  140. package/src/api/examples/scanner.ts +17 -21
  141. package/src/api/schema/augmentations/$$.ts +6 -0
  142. package/src/api/schema/augmentations/$.ts +1 -1
  143. package/src/api/schema/augmentations/apply.test.ts +89 -0
  144. package/src/api/schema/augmentations/apply.ts +277 -0
  145. package/src/api/schema/augmentations/augmentation.ts +24 -0
  146. package/src/api/schema/augmentations/config.ts +11 -0
  147. package/src/api/schema/augmentations/diagnostics/diagnostic.ts +20 -0
  148. package/src/api/schema/augmentations/diagnostics/duplicate-version.ts +20 -0
  149. package/src/api/schema/augmentations/diagnostics/invalid-path.ts +21 -0
  150. package/src/api/schema/augmentations/diagnostics/version-mismatch.ts +21 -0
  151. package/src/api/schema/augmentations/input.test.ts +144 -0
  152. package/src/api/schema/augmentations/input.ts +215 -0
  153. package/src/api/schema/augmentations/placement.ts +11 -0
  154. package/src/api/schema/config-schema.ts +2 -2
  155. package/src/api/schema/input-source/load.ts +2 -0
  156. package/src/api/schema/load.ts +19 -2
  157. package/src/lib/graphql-path/$$.ts +7 -13
  158. package/src/lib/graphql-path/$.test.ts +175 -0
  159. package/src/lib/graphql-path/definition.ts +162 -162
  160. package/src/lib/graphql-path/query.ts +15 -98
  161. package/src/lib/graphql-path/schema.ts +136 -0
  162. package/src/lib/graphql-path/types.ts +108 -28
  163. package/src/lib/version-coverage/version-coverage.ts +48 -6
  164. package/src/template/routes/changelog/ChangelogSidebar.tsx +4 -4
  165. package/src/template/routes/pages.tsx +6 -1
  166. package/src/vite/plugins/examples.ts +0 -2
  167. package/src/vite/plugins/schemas.ts +51 -2
  168. package/build/api/examples/diagnostic/unused-default.d.ts +0 -49
  169. package/build/api/examples/diagnostic/unused-default.d.ts.map +0 -1
  170. package/build/api/examples/diagnostic/unused-default.js +0 -19
  171. package/build/api/examples/diagnostic/unused-default.js.map +0 -1
  172. package/build/api/schema/augmentations/augmentations/description.d.ts +0 -26
  173. package/build/api/schema/augmentations/augmentations/description.d.ts.map +0 -1
  174. package/build/api/schema/augmentations/augmentations/description.js +0 -55
  175. package/build/api/schema/augmentations/augmentations/description.js.map +0 -1
  176. package/build/api/schema/augmentations/schema-augmentation.d.ts +0 -20
  177. package/build/api/schema/augmentations/schema-augmentation.d.ts.map +0 -1
  178. package/build/api/schema/augmentations/schema-augmentation.js +0 -22
  179. package/build/api/schema/augmentations/schema-augmentation.js.map +0 -1
  180. package/build/api/schema/augmentations/target.d.ts +0 -25
  181. package/build/api/schema/augmentations/target.d.ts.map +0 -1
  182. package/build/api/schema/augmentations/target.js +0 -39
  183. package/build/api/schema/augmentations/target.js.map +0 -1
  184. package/build/lib/graphql-path/constructors.d.ts +0 -57
  185. package/build/lib/graphql-path/constructors.d.ts.map +0 -1
  186. package/build/lib/graphql-path/constructors.js +0 -73
  187. package/build/lib/graphql-path/constructors.js.map +0 -1
  188. package/src/api/examples/diagnostic/unused-default.ts +0 -22
  189. package/src/api/schema/augmentations/augmentations/description.ts +0 -69
  190. package/src/api/schema/augmentations/schema-augmentation.ts +0 -32
  191. package/src/api/schema/augmentations/target.ts +0 -61
  192. package/src/lib/graphql-path/constructors.ts +0 -81
@@ -9,7 +9,7 @@ export declare const Catalog: S.Struct<{
9
9
  document: S.Union<[S.TaggedStruct<"DocumentUnversioned", {
10
10
  document: typeof S.String;
11
11
  }>, S.TaggedStruct<"DocumentVersioned", {
12
- versionDocuments: S.HashMap<S.Union<[S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>, S.HashSet<S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>>]>, typeof S.String>;
12
+ versionDocuments: S.HashMap<S.Union<[typeof import("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned, S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>, S.HashSet<S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>>]>, typeof S.String>;
13
13
  }>]>;
14
14
  }>>;
15
15
  /**
@@ -38,7 +38,7 @@ export declare const make: (props: {
38
38
  readonly document: string;
39
39
  } | {
40
40
  readonly _tag: "DocumentVersioned";
41
- readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
41
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
42
42
  };
43
43
  }[];
44
44
  readonly index?: {
@@ -56,7 +56,7 @@ export declare const make: (props: {
56
56
  readonly document: string;
57
57
  } | {
58
58
  readonly _tag: "DocumentVersioned";
59
- readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
59
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
60
60
  };
61
61
  }[];
62
62
  readonly index?: {
@@ -75,7 +75,7 @@ export declare const is: (u: unknown, overrideOptions?: import("effect/SchemaAST
75
75
  readonly document: string;
76
76
  } | {
77
77
  readonly _tag: "DocumentVersioned";
78
- readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
78
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
79
79
  };
80
80
  }[];
81
81
  readonly index?: {
@@ -94,7 +94,9 @@ export declare const decode: (i: {
94
94
  readonly document: string;
95
95
  } | {
96
96
  readonly _tag: "DocumentVersioned";
97
- readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[], string])[];
97
+ readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[] | {
98
+ readonly _tag: "VersionCoverageUnversioned";
99
+ }, string])[];
98
100
  };
99
101
  }[];
100
102
  readonly index?: {
@@ -115,7 +117,7 @@ export declare const decode: (i: {
115
117
  readonly document: string;
116
118
  } | {
117
119
  readonly _tag: "DocumentVersioned";
118
- readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
120
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
119
121
  };
120
122
  }[];
121
123
  readonly index?: {
@@ -134,7 +136,9 @@ export declare const decodeSync: (i: {
134
136
  readonly document: string;
135
137
  } | {
136
138
  readonly _tag: "DocumentVersioned";
137
- readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[], string])[];
139
+ readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[] | {
140
+ readonly _tag: "VersionCoverageUnversioned";
141
+ }, string])[];
138
142
  };
139
143
  }[];
140
144
  readonly index?: {
@@ -155,7 +159,7 @@ export declare const decodeSync: (i: {
155
159
  readonly document: string;
156
160
  } | {
157
161
  readonly _tag: "DocumentVersioned";
158
- readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
162
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
159
163
  };
160
164
  }[];
161
165
  readonly index?: {
@@ -174,7 +178,7 @@ export declare const encode: (a: {
174
178
  readonly document: string;
175
179
  } | {
176
180
  readonly _tag: "DocumentVersioned";
177
- readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
181
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
178
182
  };
179
183
  }[];
180
184
  readonly index?: {
@@ -192,7 +196,9 @@ export declare const encode: (a: {
192
196
  readonly document: string;
193
197
  } | {
194
198
  readonly _tag: "DocumentVersioned";
195
- readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[], string])[];
199
+ readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[] | {
200
+ readonly _tag: "VersionCoverageUnversioned";
201
+ }, string])[];
196
202
  };
197
203
  }[];
198
204
  readonly index?: {
@@ -214,7 +220,7 @@ export declare const encodeSync: (a: {
214
220
  readonly document: string;
215
221
  } | {
216
222
  readonly _tag: "DocumentVersioned";
217
- readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
223
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
218
224
  };
219
225
  }[];
220
226
  readonly index?: {
@@ -232,7 +238,9 @@ export declare const encodeSync: (a: {
232
238
  readonly document: string;
233
239
  } | {
234
240
  readonly _tag: "DocumentVersioned";
235
- readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[], string])[];
241
+ readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[] | {
242
+ readonly _tag: "VersionCoverageUnversioned";
243
+ }, string])[];
236
244
  };
237
245
  }[];
238
246
  readonly index?: {
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../src/api/examples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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAoB,CAAA;AACvC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwB,CAAA;AAC/C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAoB,CAAA;AACvC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwB,CAAA"}
@@ -20,7 +20,7 @@ export declare const Example: S.Struct<{
20
20
  document: S.Union<[S.TaggedStruct<"DocumentUnversioned", {
21
21
  document: typeof S.String;
22
22
  }>, S.TaggedStruct<"DocumentVersioned", {
23
- versionDocuments: S.HashMap<S.Union<[S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof import("../../../../lib/version/integer.js").Integer, typeof import("../../../../lib/version/semver.js").Semver, typeof import("../../../../lib/version/date.js").Date, typeof import("../../../../lib/version/custom.js").Custom]>, never>, S.HashSet<S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof import("../../../../lib/version/integer.js").Integer, typeof import("../../../../lib/version/semver.js").Semver, typeof import("../../../../lib/version/date.js").Date, typeof import("../../../../lib/version/custom.js").Custom]>, never>>]>, typeof S.String>;
23
+ versionDocuments: S.HashMap<S.Union<[typeof import("../../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned, S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof import("../../../../lib/version/integer.js").Integer, typeof import("../../../../lib/version/semver.js").Semver, typeof import("../../../../lib/version/date.js").Date, typeof import("../../../../lib/version/custom.js").Custom]>, never>, S.HashSet<S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof import("../../../../lib/version/integer.js").Integer, typeof import("../../../../lib/version/semver.js").Semver, typeof import("../../../../lib/version/date.js").Date, typeof import("../../../../lib/version/custom.js").Custom]>, never>>]>, typeof S.String>;
24
24
  }>]>;
25
25
  }>;
26
26
  export type Example = S.Schema.Type<typeof Example>;
@@ -32,7 +32,7 @@ export declare const make: (props: {
32
32
  readonly document: string;
33
33
  } | {
34
34
  readonly _tag: "DocumentVersioned";
35
- readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
35
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("../../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
36
36
  };
37
37
  }, options?: S.MakeOptions) => {
38
38
  readonly path: string;
@@ -42,7 +42,7 @@ export declare const make: (props: {
42
42
  readonly document: string;
43
43
  } | {
44
44
  readonly _tag: "DocumentVersioned";
45
- readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
45
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("../../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
46
46
  };
47
47
  };
48
48
  export declare const order: Order.Order<Example>;
@@ -54,7 +54,7 @@ export declare const equivalent: import("effect/Equivalence").Equivalence<{
54
54
  readonly document: string;
55
55
  } | {
56
56
  readonly _tag: "DocumentVersioned";
57
- readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
57
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("../../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
58
58
  };
59
59
  }>;
60
60
  export declare const is: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions | number) => u is {
@@ -65,7 +65,7 @@ export declare const is: (u: unknown, overrideOptions?: import("effect/SchemaAST
65
65
  readonly document: string;
66
66
  } | {
67
67
  readonly _tag: "DocumentVersioned";
68
- readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
68
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("../../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
69
69
  };
70
70
  };
71
71
  export declare const decode: (i: {
@@ -76,7 +76,9 @@ export declare const decode: (i: {
76
76
  readonly document: string;
77
77
  } | {
78
78
  readonly _tag: "DocumentVersioned";
79
- readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[], string])[];
79
+ readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[] | {
80
+ readonly _tag: "VersionCoverageUnversioned";
81
+ }, string])[];
80
82
  };
81
83
  }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
82
84
  readonly path: string;
@@ -86,7 +88,7 @@ export declare const decode: (i: {
86
88
  readonly document: string;
87
89
  } | {
88
90
  readonly _tag: "DocumentVersioned";
89
- readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
91
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("../../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
90
92
  };
91
93
  }, import("effect/ParseResult").ParseError, never>;
92
94
  export declare const decodeSync: (i: {
@@ -97,7 +99,9 @@ export declare const decodeSync: (i: {
97
99
  readonly document: string;
98
100
  } | {
99
101
  readonly _tag: "DocumentVersioned";
100
- readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[], string])[];
102
+ readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[] | {
103
+ readonly _tag: "VersionCoverageUnversioned";
104
+ }, string])[];
101
105
  };
102
106
  }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
103
107
  readonly path: string;
@@ -107,7 +111,7 @@ export declare const decodeSync: (i: {
107
111
  readonly document: string;
108
112
  } | {
109
113
  readonly _tag: "DocumentVersioned";
110
- readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
114
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("../../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
111
115
  };
112
116
  };
113
117
  export declare const encode: (a: {
@@ -118,7 +122,7 @@ export declare const encode: (a: {
118
122
  readonly document: string;
119
123
  } | {
120
124
  readonly _tag: "DocumentVersioned";
121
- readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
125
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("../../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
122
126
  };
123
127
  }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
124
128
  readonly path: string;
@@ -128,7 +132,9 @@ export declare const encode: (a: {
128
132
  readonly document: string;
129
133
  } | {
130
134
  readonly _tag: "DocumentVersioned";
131
- readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[], string])[];
135
+ readonly versionDocuments: readonly (readonly [string | number | readonly (string | number)[] | {
136
+ readonly _tag: "VersionCoverageUnversioned";
137
+ }, string])[];
132
138
  };
133
139
  }, import("effect/ParseResult").ParseError, never>;
134
140
  //# sourceMappingURL=example.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../../../src/api/examples/schemas/example/example.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAM9B;;;GAGG;AACH,eAAO,MAAM,OAAO;IAClB;;OAEG;;IAGH;;;OAGG;;IAGH;;OAEG;;;;;;EAKH,CAAA;AAMF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OA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}
@@ -0,0 +1,7 @@
1
+ export * from './apply.js';
2
+ export * from './augmentation.js';
3
+ export * from './config.js';
4
+ export { Diagnostic } from './diagnostics/diagnostic.js';
5
+ export * from './input.js';
6
+ export * from './placement.js';
7
+ //# sourceMappingURL=$$.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../../src/api/schema/augmentations/$$.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACxD,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,7 @@
1
+ export * from './apply.js';
2
+ export * from './augmentation.js';
3
+ export * from './config.js';
4
+ export { Diagnostic } from './diagnostics/diagnostic.js';
5
+ export * from './input.js';
6
+ export * from './placement.js';
7
+ //# sourceMappingURL=$$.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"$$.js","sourceRoot":"","sources":["../../../../src/api/schema/augmentations/$$.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACxD,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
@@ -1,2 +1,2 @@
1
- export * as Augmentations from './schema-augmentation.js';
1
+ export * as Augmentations from './$$.js';
2
2
  //# sourceMappingURL=$.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../../src/api/schema/augmentations/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAA"}
1
+ {"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../../src/api/schema/augmentations/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,SAAS,CAAA"}
@@ -1,2 +1,2 @@
1
- export * as Augmentations from './schema-augmentation.js';
1
+ export * as Augmentations from './$$.js';
2
2
  //# sourceMappingURL=$.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"$.js","sourceRoot":"","sources":["../../../../src/api/schema/augmentations/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAA"}
1
+ {"version":3,"file":"$.js","sourceRoot":"","sources":["../../../../src/api/schema/augmentations/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,SAAS,CAAA"}
@@ -0,0 +1,29 @@
1
+ import type { Augmentation } from '#api/schema/augmentations/augmentation';
2
+ import type { AugmentationConfig } from '#api/schema/augmentations/config';
3
+ import { Diagnostic } from '#api/schema/augmentations/diagnostics/diagnostic';
4
+ import type { AugmentationInput } from '#api/schema/augmentations/input';
5
+ import type { GrafaidOld } from '#lib/grafaid-old';
6
+ import { Version } from '#lib/version/$';
7
+ /**
8
+ * Apply version-aware augmentations to a schema.
9
+ *
10
+ * @param schema - The GraphQL schema to augment (mutated in place)
11
+ * @param augmentations - The input augmentations (may include version specifications)
12
+ * @param version - The specific version to apply augmentations for (null for unversioned)
13
+ * @returns Diagnostics generated during augmentation application
14
+ */
15
+ export declare const applyAll: (schema: GrafaidOld.Schema.Schema, augmentations: readonly AugmentationInput[], version?: Version.Version | null) => {
16
+ diagnostics: Diagnostic[];
17
+ };
18
+ export declare const apply: (schema: GrafaidOld.Schema.Schema, augmentation: AugmentationConfig) => Diagnostic[];
19
+ /**
20
+ * Apply a version-aware augmentation to a schema.
21
+ *
22
+ * @param schema - The GraphQL schema to augment
23
+ * @param augmentation - The normalized augmentation with version coverage
24
+ * @param version - The specific version to apply augmentations for (null for unversioned)
25
+ * @returns Diagnostics generated during augmentation application
26
+ */
27
+ export declare const applyVersioned: (schema: GrafaidOld.Schema.Schema, augmentation: Augmentation, version: Version.Version | null) => Diagnostic[];
28
+ export declare const mutateDescription: (type: GrafaidOld.Groups.Describable, augmentation: AugmentationConfig) => void;
29
+ //# sourceMappingURL=apply.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../../src/api/schema/augmentations/apply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAC1E,OAAO,EACL,UAAU,EAIX,MAAM,kDAAkD,CAAA;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAExE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAGxC;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,GACnB,QAAQ,UAAU,CAAC,MAAM,CAAC,MAAM,EAChC,eAAe,SAAS,iBAAiB,EAAE,EAC3C,UAAS,OAAO,CAAC,OAAO,GAAG,IAAW,KACrC;IAAE,WAAW,EAAE,UAAU,EAAE,CAAA;CAqC7B,CAAA;AAED,eAAO,MAAM,KAAK,GAChB,QAAQ,UAAU,CAAC,MAAM,CAAC,MAAM,EAChC,cAAc,kBAAkB,KAC/B,UAAU,EA2DZ,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GACzB,QAAQ,UAAU,CAAC,MAAM,CAAC,MAAM,EAChC,cAAc,YAAY,EAC1B,SAAS,OAAO,CAAC,OAAO,GAAG,IAAI,KAC9B,UAAU,EAiHZ,CAAA;AAED,eAAO,MAAM,iBAAiB,GAC5B,MAAM,UAAU,CAAC,MAAM,CAAC,WAAW,EACnC,cAAc,kBAAkB,SAgBjC,CAAA"}
@@ -0,0 +1,181 @@
1
+ import { Diagnostic, makeDiagnosticDuplicateVersion, makeDiagnosticInvalidPath, makeDiagnosticVersionMismatch, } from '#api/schema/augmentations/diagnostics/diagnostic';
2
+ import { normalizeAugmentationInput } from '#api/schema/augmentations/input';
3
+ import { GraphQLPath } from '#lib/graphql-path';
4
+ import { VersionCoverage } from '#lib/version-coverage';
5
+ import { Version } from '#lib/version/$';
6
+ import { Either, HashMap, Match, Option, pipe } from 'effect';
7
+ /**
8
+ * Apply version-aware augmentations to a schema.
9
+ *
10
+ * @param schema - The GraphQL schema to augment (mutated in place)
11
+ * @param augmentations - The input augmentations (may include version specifications)
12
+ * @param version - The specific version to apply augmentations for (null for unversioned)
13
+ * @returns Diagnostics generated during augmentation application
14
+ */
15
+ export const applyAll = (schema, augmentations, version = null) => {
16
+ const diagnostics = [];
17
+ // Track versions to detect duplicates
18
+ const seenVersions = new Map();
19
+ for (const augmentationInput of augmentations) {
20
+ // Check for duplicate versions
21
+ const versionKey = augmentationInput.versions
22
+ ? Object.keys(augmentationInput.versions).sort().join(',')
23
+ : 'unversioned';
24
+ if (seenVersions.has(versionKey) && versionKey !== 'unversioned') {
25
+ const firstInput = seenVersions.get(versionKey);
26
+ diagnostics.push(makeDiagnosticDuplicateVersion({
27
+ message: `Duplicate version '${versionKey}' found in augmentation configuration`,
28
+ version: versionKey,
29
+ firstPath: firstInput.on ?? 'unknown',
30
+ duplicatePath: augmentationInput.on ?? 'unknown',
31
+ }));
32
+ continue;
33
+ }
34
+ seenVersions.set(versionKey, augmentationInput);
35
+ // Transform input to normalized format
36
+ const normalized = normalizeAugmentationInput(augmentationInput);
37
+ if (!normalized) {
38
+ console.warn('Skipping invalid augmentation configuration');
39
+ continue;
40
+ }
41
+ const applyDiagnostics = applyVersioned(schema, normalized, version);
42
+ diagnostics.push(...applyDiagnostics);
43
+ }
44
+ return { diagnostics };
45
+ };
46
+ export const apply = (schema, augmentation) => {
47
+ const diagnostics = [];
48
+ pipe(augmentation.on, Match.value, Match.when(GraphQLPath.Definition.isTypeDefinitionPath, (path) => {
49
+ pipe(GraphQLPath.Schema.locateType(schema, path), Either.match({
50
+ onLeft: (error) => {
51
+ diagnostics.push(makeDiagnosticInvalidPath({
52
+ message: `Type '${error.typeName}' not found in schema`,
53
+ path: error.path,
54
+ version: null,
55
+ error: `Type '${error.typeName}' not found`,
56
+ }));
57
+ },
58
+ onRight: (type) => {
59
+ mutateDescription(type, augmentation);
60
+ },
61
+ }));
62
+ }), Match.when(GraphQLPath.Definition.isFieldDefinitionPath, (path) => {
63
+ pipe(GraphQLPath.Schema.locateField(schema, path), Either.match({
64
+ onLeft: (error) => {
65
+ diagnostics.push(makeDiagnosticInvalidPath({
66
+ message: `Field '${error.fieldName}' not found on type '${error.typeName}'`,
67
+ path: error.path,
68
+ version: null,
69
+ error: `Field '${error.fieldName}' not found on type '${error.typeName}'`,
70
+ }));
71
+ },
72
+ onRight: (field) => {
73
+ mutateDescription(field, augmentation);
74
+ },
75
+ }));
76
+ }), Match.orElse(() => {
77
+ diagnostics.push(makeDiagnosticInvalidPath({
78
+ message: `Unsupported path type for augmentations: ${GraphQLPath.Definition.encodeSync(augmentation.on)}`,
79
+ path: GraphQLPath.Definition.encodeSync(augmentation.on),
80
+ version: null,
81
+ error: 'Unsupported path type for augmentations',
82
+ }));
83
+ }));
84
+ return diagnostics;
85
+ };
86
+ /**
87
+ * Apply a version-aware augmentation to a schema.
88
+ *
89
+ * @param schema - The GraphQL schema to augment
90
+ * @param augmentation - The normalized augmentation with version coverage
91
+ * @param version - The specific version to apply augmentations for (null for unversioned)
92
+ * @returns Diagnostics generated during augmentation application
93
+ */
94
+ export const applyVersioned = (schema, augmentation, version) => {
95
+ const diagnostics = [];
96
+ // Try to find augmentation for this specific version
97
+ let config;
98
+ if (version) {
99
+ // First try exact version match
100
+ const versionCoverage = VersionCoverage.single(version);
101
+ const maybeConfig = HashMap.get(augmentation.versionAugmentations, versionCoverage);
102
+ if (Option.isSome(maybeConfig)) {
103
+ config = maybeConfig.value;
104
+ }
105
+ // If not found, check if any coverage matches this version
106
+ if (!config) {
107
+ for (const [coverage, cfg] of augmentation.versionAugmentations) {
108
+ if (VersionCoverage.matches(coverage, version)) {
109
+ config = cfg;
110
+ break;
111
+ }
112
+ }
113
+ }
114
+ }
115
+ else {
116
+ // For unversioned schemas, only apply unversioned augmentations
117
+ const unversionedCoverage = VersionCoverage.unversioned();
118
+ const maybeConfig = HashMap.get(augmentation.versionAugmentations, unversionedCoverage);
119
+ if (Option.isSome(maybeConfig)) {
120
+ config = maybeConfig.value;
121
+ }
122
+ }
123
+ // Apply the augmentation if found
124
+ if (config) {
125
+ pipe(config.on, Match.value, Match.when(GraphQLPath.Definition.isTypeDefinitionPath, (path) => {
126
+ pipe(GraphQLPath.Schema.locateType(schema, path), Either.match({
127
+ onLeft: (error) => {
128
+ diagnostics.push(makeDiagnosticInvalidPath({
129
+ message: `Type '${error.typeName}' not found in schema`,
130
+ path: error.path,
131
+ version: version,
132
+ error: `Type '${error.typeName}' not found`,
133
+ }));
134
+ },
135
+ onRight: (type) => {
136
+ mutateDescription(type, config);
137
+ },
138
+ }));
139
+ }), Match.when(GraphQLPath.Definition.isFieldDefinitionPath, (path) => {
140
+ pipe(GraphQLPath.Schema.locateField(schema, path), Either.match({
141
+ onLeft: (error) => {
142
+ diagnostics.push(makeDiagnosticInvalidPath({
143
+ message: `Field '${error.fieldName}' not found on type '${error.typeName}'`,
144
+ path: error.path,
145
+ version: version,
146
+ error: `Field '${error.fieldName}' not found on type '${error.typeName}'`,
147
+ }));
148
+ },
149
+ onRight: (field) => {
150
+ mutateDescription(field, config);
151
+ },
152
+ }));
153
+ }), Match.orElse(() => {
154
+ diagnostics.push(makeDiagnosticInvalidPath({
155
+ message: `Unsupported path type for augmentations: ${GraphQLPath.Definition.encodeSync(config.on)}`,
156
+ path: GraphQLPath.Definition.encodeSync(config.on),
157
+ version: version,
158
+ error: 'Unsupported path type for augmentations',
159
+ }));
160
+ }));
161
+ }
162
+ else if (version && HashMap.size(augmentation.versionAugmentations) > 0) {
163
+ // No matching version coverage found - generate version mismatch diagnostic
164
+ // Get first config from HashMap
165
+ const firstEntry = pipe(augmentation.versionAugmentations, HashMap.values, (iter) => Array.from(iter)[0]);
166
+ if (firstEntry) {
167
+ diagnostics.push(makeDiagnosticVersionMismatch({
168
+ message: `No augmentation found for version '${version}' on path '${GraphQLPath.Definition.encodeSync(firstEntry.on)}'`,
169
+ path: GraphQLPath.Definition.encodeSync(firstEntry.on),
170
+ requestedVersion: version,
171
+ availableVersions: pipe(augmentation.versionAugmentations, HashMap.keys, (iter) => Array.from(iter).map(VersionCoverage.toLabel)),
172
+ }));
173
+ }
174
+ }
175
+ return diagnostics;
176
+ };
177
+ export const mutateDescription = (type, augmentation) => {
178
+ const existingDescription = type.description?.trim() ?? '';
179
+ type.description = Match.value(augmentation.placement).pipe(Match.when('before', () => existingDescription ? `${augmentation.content}\n\n${existingDescription}` : augmentation.content), Match.when('after', () => existingDescription ? `${existingDescription}\n\n${augmentation.content}` : augmentation.content), Match.when('over', () => augmentation.content), Match.exhaustive);
180
+ };
181
+ //# sourceMappingURL=apply.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply.js","sourceRoot":"","sources":["../../../../src/api/schema/augmentations/apply.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,8BAA8B,EAC9B,yBAAyB,EACzB,6BAA6B,GAC9B,MAAM,kDAAkD,CAAA;AAEzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,MAAgC,EAChC,aAA2C,EAC3C,UAAkC,IAAI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mB,CAAC,CAAC,CAAC,GAAG,mBAAmB,OAAO,YAAY,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CACvG,EACD,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,EAC9C,KAAK,CAAC,UAAU,CACjB,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { S } from '#lib/kit-temp/effect';
2
+ import { VersionCoverage } from '#lib/version-coverage';
3
+ /**
4
+ * Internal normalized schema for description augmentations.
5
+ * Uses VersionCoverage as keys to support unversioned (all versions) and version-specific augmentations.
6
+ */
7
+ export declare const Augmentation: S.Struct<{
8
+ versionAugmentations: S.HashMap<S.Union<[typeof VersionCoverage.VersionCoverageUnversioned, S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>, S.HashSet<S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>>]>, S.Struct<{
9
+ on: S.Union<[S.transformOrFail<typeof S.String, S.Tuple<[S.TaggedStruct<"TypeSegment", {
10
+ type: typeof S.String;
11
+ }>, S.TaggedStruct<"FieldSegment", {
12
+ field: typeof S.String;
13
+ }>, S.TaggedStruct<"ArgumentSegment", {
14
+ argument: typeof S.String;
15
+ }>]>, never>, S.transformOrFail<typeof S.String, S.Tuple2<S.TaggedStruct<"TypeSegment", {
16
+ type: typeof S.String;
17
+ }>, S.TaggedStruct<"FieldSegment", {
18
+ field: typeof S.String;
19
+ }>>, never>, S.transformOrFail<typeof S.String, S.Tuple<[S.TaggedStruct<"TypeSegment", {
20
+ type: typeof S.String;
21
+ }>]>, never>]>;
22
+ placement: S.Enums<{
23
+ readonly before: "before";
24
+ readonly after: "after";
25
+ readonly over: "over";
26
+ }>;
27
+ content: typeof S.String;
28
+ }>>;
29
+ }>;
30
+ export type Augmentation = S.Schema.Type<typeof Augmentation>;
31
+ //# sourceMappingURL=augmentation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"augmentation.d.ts","sourceRoot":"","sources":["../../../../src/api/schema/augmentations/augmentation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;EAavB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { AugmentationConfig } from '#api/schema/augmentations/config';
2
+ import { S } from '#lib/kit-temp/effect';
3
+ import { VersionCoverage } from '#lib/version-coverage';
4
+ /**
5
+ * Internal normalized schema for description augmentations.
6
+ * Uses VersionCoverage as keys to support unversioned (all versions) and version-specific augmentations.
7
+ */
8
+ export const Augmentation = S.Struct({
9
+ // Map from VersionCoverage to augmentation config
10
+ // Key can be:
11
+ // - VersionCoverageUnversioned: applies to all versions
12
+ // - VersionCoverageOne: applies to a specific version
13
+ // - VersionCoverageSet: applies to a set of versions (future enhancement)
14
+ versionAugmentations: S.HashMap({
15
+ key: VersionCoverage.VersionCoverage,
16
+ value: AugmentationConfig,
17
+ }),
18
+ }).annotations({
19
+ identifier: 'AugmentationNormalized',
20
+ description: 'Internal normalized description augmentation with version coverage support',
21
+ });
22
+ //# sourceMappingURL=augmentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"augmentation.js","sourceRoot":"","sources":["../../../../src/api/schema/augmentations/augmentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AACrE,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,kDAAkD;IAClD,cAAc;IACd,wDAAwD;IACxD,sDAAsD;IACtD,0EAA0E;IAC1E,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC;QAC9B,GAAG,EAAE,eAAe,CAAC,eAAe;QACpC,KAAK,EAAE,kBAAkB;KAC1B,CAAC;CACH,CAAC,CAAC,WAAW,CAAC;IACb,UAAU,EAAE,wBAAwB;IACpC,WAAW,EAAE,4EAA4E;CAC1F,CAAC,CAAA"}