@skmtc/core 0.48.0 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/esm/context/CoreContext.d.ts +1 -1
  2. package/esm/context/CoreContext.js +6 -2
  3. package/esm/context/GenerateContext.d.ts +1 -1
  4. package/esm/context/GenerateContext.js +1 -1
  5. package/esm/context/ParseContext.d.ts +4 -4
  6. package/esm/context/ParseContext.js +6 -6
  7. package/esm/context/generateTypes.d.ts +4 -4
  8. package/esm/context/tryParseAt.d.ts +1 -1
  9. package/esm/context/tryParseAt.js +1 -1
  10. package/esm/enrichments/EnrichmentAudit.d.ts +1 -1
  11. package/esm/enrichments/EnrichmentWarning.d.ts +1 -1
  12. package/esm/enrichments/findUnknownKeys.d.ts +1 -1
  13. package/esm/enrichments/findUnknownKeys.js +1 -1
  14. package/esm/enrichments/parseEnrichmentUmbrella.d.ts +1 -1
  15. package/esm/enrichments/parseEnrichmentUmbrella.js +1 -1
  16. package/esm/enrichments/parseEnrichmentValue.d.ts +2 -2
  17. package/esm/enrichments/parseEnrichmentValue.js +2 -2
  18. package/esm/enrichments/readEnrichments.d.ts +4 -4
  19. package/esm/enrichments/readEnrichments.js +4 -4
  20. package/esm/enrichments/validateConfig.d.ts +1 -1
  21. package/esm/helpers/applyGeneratedSuffix.d.ts +1 -1
  22. package/esm/helpers/applyGeneratedSuffix.js +1 -1
  23. package/esm/helpers/normalizeWorkspacePath.d.ts +1 -1
  24. package/esm/helpers/normalizeWorkspacePath.js +1 -1
  25. package/esm/oas/array/Array.d.ts +2 -2
  26. package/esm/oas/array/Array.js +2 -2
  27. package/esm/oas/boolean/Boolean.d.ts +2 -2
  28. package/esm/oas/boolean/Boolean.js +2 -2
  29. package/esm/oas/integer/Integer.d.ts +2 -2
  30. package/esm/oas/integer/Integer.js +2 -2
  31. package/esm/oas/intersection/Intersection.d.ts +3 -3
  32. package/esm/oas/intersection/Intersection.js +3 -3
  33. package/esm/oas/number/Number.d.ts +2 -2
  34. package/esm/oas/number/Number.js +2 -2
  35. package/esm/oas/object/Object.d.ts +2 -2
  36. package/esm/oas/object/Object.js +2 -2
  37. package/esm/oas/operation/Operation.d.ts +1 -1
  38. package/esm/oas/operation/Operation.js +1 -1
  39. package/esm/oas/operation/toEffectiveParameters.d.ts +2 -2
  40. package/esm/oas/operation/toEffectiveParameters.js +2 -2
  41. package/esm/oas/ref/DanglingRefError.d.ts +1 -1
  42. package/esm/oas/ref/DanglingRefError.js +1 -1
  43. package/esm/oas/ref/Ref.d.ts +2 -2
  44. package/esm/oas/ref/Ref.js +2 -2
  45. package/esm/oas/string/String.d.ts +2 -2
  46. package/esm/oas/string/String.js +2 -2
  47. package/esm/oas/union/Union.d.ts +3 -3
  48. package/esm/oas/union/Union.js +3 -3
  49. package/esm/oas/unknown/Unknown.d.ts +2 -2
  50. package/esm/oas/unknown/Unknown.js +2 -2
  51. package/esm/parse/allOfSystem.d.ts +4 -4
  52. package/esm/parse/allOfSystem.js +2 -2
  53. package/esm/parse/anyOfSystem.d.ts +5 -5
  54. package/esm/parse/anyOfSystem.js +4 -4
  55. package/esm/parse/keptRefs.d.ts +2 -2
  56. package/esm/parse/v3-0/_merge-all-of/merge-union.d.ts +1 -1
  57. package/esm/parse/v3-0/_merge-all-of/merge-union.js +3 -3
  58. package/esm/parse/v3-0/_merge-all-of/merge.js +2 -2
  59. package/esm/parse/v3-0/_merge-all-of/types.d.ts +4 -4
  60. package/esm/parse/v3-0/ref/toRefV31.js +1 -1
  61. package/esm/parse/v3-0/schema/toSchemasV3.js +3 -3
  62. package/esm/parse/v3-1/_merge-all-of/merge-union.d.ts +1 -1
  63. package/esm/parse/v3-1/_merge-all-of/merge-union.js +3 -3
  64. package/esm/parse/v3-1/_merge-all-of/merge.js +2 -2
  65. package/esm/parse/v3-1/_merge-all-of/types.d.ts +4 -4
  66. package/esm/parse/v3-1/ref/toRefV31.js +1 -1
  67. package/esm/parse/v3-1/schema/toSchemasV3.js +3 -3
  68. package/esm/parse/v3-2/_merge-all-of/merge-union.d.ts +1 -1
  69. package/esm/parse/v3-2/_merge-all-of/merge-union.js +3 -3
  70. package/esm/parse/v3-2/_merge-all-of/merge.js +2 -2
  71. package/esm/parse/v3-2/_merge-all-of/types.d.ts +4 -4
  72. package/esm/parse/v3-2/ref/toRefV31.js +1 -1
  73. package/esm/parse/v3-2/schema/toSchemasV3.js +3 -3
  74. package/esm/run/toEnrichmentDefaults.d.ts +1 -1
  75. package/esm/run/toEnrichmentDefaults.js +1 -1
  76. package/esm/types/EnrichmentDefaults.d.ts +1 -1
  77. package/esm/types/EnrichmentDefaults.js +1 -1
  78. package/esm/types/Enrichments.d.ts +1 -1
  79. package/esm/types/Manifest.d.ts +1 -1
  80. package/esm/types/ModuleSelect.d.ts +1 -1
  81. package/esm/types/Settings.d.ts +29 -11
  82. package/esm/types/Settings.js +13 -6
  83. package/esm/types/Variant.d.ts +3 -3
  84. package/esm/types/Variant.js +3 -3
  85. package/package.json +1 -1
  86. package/script/context/CoreContext.d.ts +1 -1
  87. package/script/context/CoreContext.js +6 -2
  88. package/script/context/GenerateContext.d.ts +1 -1
  89. package/script/context/GenerateContext.js +1 -1
  90. package/script/context/ParseContext.d.ts +4 -4
  91. package/script/context/ParseContext.js +6 -6
  92. package/script/context/generateTypes.d.ts +4 -4
  93. package/script/context/tryParseAt.d.ts +1 -1
  94. package/script/context/tryParseAt.js +1 -1
  95. package/script/enrichments/EnrichmentAudit.d.ts +1 -1
  96. package/script/enrichments/EnrichmentWarning.d.ts +1 -1
  97. package/script/enrichments/findUnknownKeys.d.ts +1 -1
  98. package/script/enrichments/findUnknownKeys.js +1 -1
  99. package/script/enrichments/parseEnrichmentUmbrella.d.ts +1 -1
  100. package/script/enrichments/parseEnrichmentUmbrella.js +1 -1
  101. package/script/enrichments/parseEnrichmentValue.d.ts +2 -2
  102. package/script/enrichments/parseEnrichmentValue.js +2 -2
  103. package/script/enrichments/readEnrichments.d.ts +4 -4
  104. package/script/enrichments/readEnrichments.js +4 -4
  105. package/script/enrichments/validateConfig.d.ts +1 -1
  106. package/script/helpers/applyGeneratedSuffix.d.ts +1 -1
  107. package/script/helpers/applyGeneratedSuffix.js +1 -1
  108. package/script/helpers/normalizeWorkspacePath.d.ts +1 -1
  109. package/script/helpers/normalizeWorkspacePath.js +1 -1
  110. package/script/oas/array/Array.d.ts +2 -2
  111. package/script/oas/array/Array.js +2 -2
  112. package/script/oas/boolean/Boolean.d.ts +2 -2
  113. package/script/oas/boolean/Boolean.js +2 -2
  114. package/script/oas/integer/Integer.d.ts +2 -2
  115. package/script/oas/integer/Integer.js +2 -2
  116. package/script/oas/intersection/Intersection.d.ts +3 -3
  117. package/script/oas/intersection/Intersection.js +3 -3
  118. package/script/oas/number/Number.d.ts +2 -2
  119. package/script/oas/number/Number.js +2 -2
  120. package/script/oas/object/Object.d.ts +2 -2
  121. package/script/oas/object/Object.js +2 -2
  122. package/script/oas/operation/Operation.d.ts +1 -1
  123. package/script/oas/operation/Operation.js +1 -1
  124. package/script/oas/operation/toEffectiveParameters.d.ts +2 -2
  125. package/script/oas/operation/toEffectiveParameters.js +2 -2
  126. package/script/oas/ref/DanglingRefError.d.ts +1 -1
  127. package/script/oas/ref/DanglingRefError.js +1 -1
  128. package/script/oas/ref/Ref.d.ts +2 -2
  129. package/script/oas/ref/Ref.js +2 -2
  130. package/script/oas/string/String.d.ts +2 -2
  131. package/script/oas/string/String.js +2 -2
  132. package/script/oas/union/Union.d.ts +3 -3
  133. package/script/oas/union/Union.js +3 -3
  134. package/script/oas/unknown/Unknown.d.ts +2 -2
  135. package/script/oas/unknown/Unknown.js +2 -2
  136. package/script/parse/allOfSystem.d.ts +4 -4
  137. package/script/parse/allOfSystem.js +2 -2
  138. package/script/parse/anyOfSystem.d.ts +5 -5
  139. package/script/parse/anyOfSystem.js +4 -4
  140. package/script/parse/keptRefs.d.ts +2 -2
  141. package/script/parse/v3-0/_merge-all-of/merge-union.d.ts +1 -1
  142. package/script/parse/v3-0/_merge-all-of/merge-union.js +3 -3
  143. package/script/parse/v3-0/_merge-all-of/merge.js +2 -2
  144. package/script/parse/v3-0/_merge-all-of/types.d.ts +4 -4
  145. package/script/parse/v3-0/ref/toRefV31.js +1 -1
  146. package/script/parse/v3-0/schema/toSchemasV3.js +3 -3
  147. package/script/parse/v3-1/_merge-all-of/merge-union.d.ts +1 -1
  148. package/script/parse/v3-1/_merge-all-of/merge-union.js +3 -3
  149. package/script/parse/v3-1/_merge-all-of/merge.js +2 -2
  150. package/script/parse/v3-1/_merge-all-of/types.d.ts +4 -4
  151. package/script/parse/v3-1/ref/toRefV31.js +1 -1
  152. package/script/parse/v3-1/schema/toSchemasV3.js +3 -3
  153. package/script/parse/v3-2/_merge-all-of/merge-union.d.ts +1 -1
  154. package/script/parse/v3-2/_merge-all-of/merge-union.js +3 -3
  155. package/script/parse/v3-2/_merge-all-of/merge.js +2 -2
  156. package/script/parse/v3-2/_merge-all-of/types.d.ts +4 -4
  157. package/script/parse/v3-2/ref/toRefV31.js +1 -1
  158. package/script/parse/v3-2/schema/toSchemasV3.js +3 -3
  159. package/script/run/toEnrichmentDefaults.d.ts +1 -1
  160. package/script/run/toEnrichmentDefaults.js +1 -1
  161. package/script/types/EnrichmentDefaults.d.ts +1 -1
  162. package/script/types/EnrichmentDefaults.js +1 -1
  163. package/script/types/Enrichments.d.ts +1 -1
  164. package/script/types/Manifest.d.ts +1 -1
  165. package/script/types/ModuleSelect.d.ts +1 -1
  166. package/script/types/Settings.d.ts +29 -11
  167. package/script/types/Settings.js +14 -7
  168. package/script/types/Variant.d.ts +3 -3
  169. package/script/types/Variant.js +3 -3
@@ -40,7 +40,7 @@ const EnrichmentWarning_js_1 = require("./EnrichmentWarning.js");
40
40
  * `value` parsed through a generator's enrichment schema. Enrichments are
41
41
  * typed configuration, so a value that does not match throws, and the run
42
42
  * fails. The message lists every value that does not match, at its place in
43
- * `client.json`, so the user can fix them all in one pass.
43
+ * `skmtc.config.json`, so the user can fix them all in one pass.
44
44
  */
45
45
  const parseEnrichmentValue = ({ schema, value, generatorId, toRoutingPath }) => {
46
46
  const result = v.safeParse(schema, value);
@@ -55,7 +55,7 @@ const parseEnrichmentValue = ({ schema, value, generatorId, toRoutingPath }) =>
55
55
  const header = generatorId === undefined
56
56
  ? 'Stack enrichments do not match the schema a generator reads them with.'
57
57
  : `Enrichments for '${generatorId}' do not match its enrichment schema.`;
58
- throw new Error([`${header} Fix them in client.json (settings.enrichments):`, ...lines].join('\n'));
58
+ throw new Error([`${header} Fix them in skmtc.config.json (settings.enrichments):`, ...lines].join('\n'));
59
59
  };
60
60
  exports.parseEnrichmentValue = parseEnrichmentValue;
61
61
  /** What to do about one value: a scope the generator does not read takes no value at all. */
@@ -2,7 +2,7 @@
2
2
  * @fileoverview Typed readers for the run-constant enrichment scopes.
3
3
  *
4
4
  * Three enrichment scopes share one storage namespace
5
- * (`client.json#settings.enrichments`), distinguished only by where they
5
+ * (`skmtc.config.json#settings.enrichments`), distinguished only by where they
6
6
  * sit and how often they vary:
7
7
  *
8
8
  * - **subject** — `[id][subject][variant]`, resolved *per item* by the
@@ -36,7 +36,7 @@ type EnrichmentReadContext = {
36
36
  /**
37
37
  * Read this generator's **generator-scoped** enrichment — the
38
38
  * run-constant leaf at
39
- * `client.json#settings.enrichments[generatorId]._generator`, validated
39
+ * `skmtc.config.json#settings.enrichments[generatorId]._generator`, validated
40
40
  * through the generator's own schema (typically declared as
41
41
  * `toGeneratorEnrichmentSchema` on its entry, and reused here).
42
42
  *
@@ -47,13 +47,13 @@ type EnrichmentReadContext = {
47
47
  * config passes `v.optional(v.object({...}))`.
48
48
  *
49
49
  * @throws on a malformed block, naming each wrong value's place in
50
- * `client.json`. The item is recorded as `error`, and the run fails once
50
+ * `skmtc.config.json`. The item is recorded as `error`, and the run fails once
51
51
  * every generator has run, exactly as for a bad subject leaf.
52
52
  */
53
53
  export declare const toGeneratorEnrichment: <EnrichmentType>(context: EnrichmentReadContext, generatorId: string, schema: v.GenericSchema<EnrichmentType>) => EnrichmentType;
54
54
  /**
55
55
  * Read the **stack-scoped** enrichment — the run-constant leaf at
56
- * `client.json#settings.enrichments._stack`, validated through the
56
+ * `skmtc.config.json#settings.enrichments._stack`, validated through the
57
57
  * caller's schema.
58
58
  *
59
59
  * The stack leaf is a single bag shared by every generator in the
@@ -3,7 +3,7 @@
3
3
  * @fileoverview Typed readers for the run-constant enrichment scopes.
4
4
  *
5
5
  * Three enrichment scopes share one storage namespace
6
- * (`client.json#settings.enrichments`), distinguished only by where they
6
+ * (`skmtc.config.json#settings.enrichments`), distinguished only by where they
7
7
  * sit and how often they vary:
8
8
  *
9
9
  * - **subject** — `[id][subject][variant]`, resolved *per item* by the
@@ -31,7 +31,7 @@ const parseEnrichmentValue_js_1 = require("./parseEnrichmentValue.js");
31
31
  /**
32
32
  * Read this generator's **generator-scoped** enrichment — the
33
33
  * run-constant leaf at
34
- * `client.json#settings.enrichments[generatorId]._generator`, validated
34
+ * `skmtc.config.json#settings.enrichments[generatorId]._generator`, validated
35
35
  * through the generator's own schema (typically declared as
36
36
  * `toGeneratorEnrichmentSchema` on its entry, and reused here).
37
37
  *
@@ -42,7 +42,7 @@ const parseEnrichmentValue_js_1 = require("./parseEnrichmentValue.js");
42
42
  * config passes `v.optional(v.object({...}))`.
43
43
  *
44
44
  * @throws on a malformed block, naming each wrong value's place in
45
- * `client.json`. The item is recorded as `error`, and the run fails once
45
+ * `skmtc.config.json`. The item is recorded as `error`, and the run fails once
46
46
  * every generator has run, exactly as for a bad subject leaf.
47
47
  */
48
48
  const toGeneratorEnrichment = (context, generatorId, schema) => (0, parseEnrichmentValue_js_1.parseEnrichmentValue)({
@@ -54,7 +54,7 @@ const toGeneratorEnrichment = (context, generatorId, schema) => (0, parseEnrichm
54
54
  exports.toGeneratorEnrichment = toGeneratorEnrichment;
55
55
  /**
56
56
  * Read the **stack-scoped** enrichment — the run-constant leaf at
57
- * `client.json#settings.enrichments._stack`, validated through the
57
+ * `skmtc.config.json#settings.enrichments._stack`, validated through the
58
58
  * caller's schema.
59
59
  *
60
60
  * The stack leaf is a single bag shared by every generator in the
@@ -9,7 +9,7 @@ export type EnrichmentValidationScope = 'subject' | 'generator' | 'stack';
9
9
  * One enrichment value that fails its generator's Valibot enrichment
10
10
  * schema — the authoritative validation verdict. Produced by
11
11
  * {@link validateConfig}; the routing fields locate the offending leaf in
12
- * `client.json#settings.enrichments`:
12
+ * `skmtc.config.json#settings.enrichments`:
13
13
  *
14
14
  * - **operation subject** — `subject` = path, `method` = HTTP method
15
15
  * - **model subject** — `subject` = refName (no `method`)
@@ -3,7 +3,7 @@
3
3
  * engine when a projection's `toExportPath` result is stored into
4
4
  * `ContentSettings` (see `GenerateContext.to*ContentSettings`).
5
5
  * Consumers override it per project via
6
- * `client.json#settings.generatedSuffix`; setting it to `''` disables
6
+ * `skmtc.config.json#settings.generatedSuffix`; setting it to `''` disables
7
7
  * injection entirely.
8
8
  */
9
9
  export declare const DEFAULT_GENERATED_SUFFIX = ".generated";
@@ -7,7 +7,7 @@ const extname_js_1 = require("../deps/jsr.io/@std/path/1.1.6/posix/extname.js");
7
7
  * engine when a projection's `toExportPath` result is stored into
8
8
  * `ContentSettings` (see `GenerateContext.to*ContentSettings`).
9
9
  * Consumers override it per project via
10
- * `client.json#settings.generatedSuffix`; setting it to `''` disables
10
+ * `skmtc.config.json#settings.generatedSuffix`; setting it to `''` disables
11
11
  * injection entirely.
12
12
  */
13
13
  exports.DEFAULT_GENERATED_SUFFIX = '.generated';
@@ -27,7 +27,7 @@ export type NormalizeWorkspacePathOptions = {
27
27
  export declare const hasParentSegment: (path: string) => boolean;
28
28
  /**
29
29
  * Whether a path is absolute on either host: a POSIX root, a Windows drive
30
- * (`C:\`, `C:/`) or a UNC share. Checked on every host, so a client.json
30
+ * (`C:\`, `C:/`) or a UNC share. Checked on every host, so a skmtc.config.json
31
31
  * written on Windows is rejected the same way on Linux.
32
32
  */
33
33
  export declare const isAbsolutePath: (path: string) => boolean;
@@ -15,7 +15,7 @@ const hasParentSegment = (path) => path.split(/[/\\]/).some(segment => segment =
15
15
  exports.hasParentSegment = hasParentSegment;
16
16
  /**
17
17
  * Whether a path is absolute on either host: a POSIX root, a Windows drive
18
- * (`C:\`, `C:/`) or a UNC share. Checked on every host, so a client.json
18
+ * (`C:\`, `C:/`) or a UNC share. Checked on every host, so a skmtc.config.json
19
19
  * written on Windows is rejected the same way on Linux.
20
20
  */
21
21
  const isAbsolutePath = (path) => (0, is_absolute_js_1.isAbsolute)(path.replaceAll('\\', '/')) || (0, is_absolute_js_2.isAbsolute)(path);
@@ -111,8 +111,8 @@ export declare class OasArray<Nullable extends boolean | undefined = boolean | u
111
111
  */
112
112
  deprecated: boolean | undefined;
113
113
  /**
114
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
115
- * `system.not: unknown`: the document says "not something", and core does
114
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
115
+ * `parse.not: unknown`: the document says "not something", and core does
116
116
  * not read what. `undefined` otherwise.
117
117
  */
118
118
  not: OasUnknown | undefined;
@@ -157,8 +157,8 @@ class OasArray extends OasBase_js_1.OasBase {
157
157
  value: void 0
158
158
  });
159
159
  /**
160
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
161
- * `system.not: unknown`: the document says "not something", and core does
160
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
161
+ * `parse.not: unknown`: the document says "not something", and core does
162
162
  * not read what. `undefined` otherwise.
163
163
  */
164
164
  Object.defineProperty(this, "not", {
@@ -84,8 +84,8 @@ export declare class OasBoolean<Nullable extends boolean | undefined = boolean |
84
84
  * instance (via the {@link OasBase} base).
85
85
  */
86
86
  /**
87
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
88
- * `system.not: unknown`: the document says "not something", and core does
87
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
88
+ * `parse.not: unknown`: the document says "not something", and core does
89
89
  * not read what. `undefined` otherwise.
90
90
  */
91
91
  not: OasUnknown | undefined;
@@ -118,8 +118,8 @@ class OasBoolean extends OasBase_js_1.OasBase {
118
118
  * instance (via the {@link OasBase} base).
119
119
  */
120
120
  /**
121
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
122
- * `system.not: unknown`: the document says "not something", and core does
121
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
122
+ * `parse.not: unknown`: the document says "not something", and core does
123
123
  * not read what. `undefined` otherwise.
124
124
  */
125
125
  Object.defineProperty(this, "not", {
@@ -118,8 +118,8 @@ export declare class OasInteger<Nullable extends boolean | undefined = boolean |
118
118
  */
119
119
  deprecated: boolean | undefined;
120
120
  /**
121
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
122
- * `system.not: unknown`: the document says "not something", and core does
121
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
122
+ * `parse.not: unknown`: the document says "not something", and core does
123
123
  * not read what. `undefined` otherwise.
124
124
  */
125
125
  not: OasUnknown | undefined;
@@ -170,8 +170,8 @@ class OasInteger extends OasBase_js_1.OasBase {
170
170
  value: void 0
171
171
  });
172
172
  /**
173
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
174
- * `system.not: unknown`: the document says "not something", and core does
173
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
174
+ * `parse.not: unknown`: the document says "not something", and core does
175
175
  * not read what. `undefined` otherwise.
176
176
  */
177
177
  Object.defineProperty(this, "not", {
@@ -37,7 +37,7 @@ export type IntersectionFields = {
37
37
  * An `allOf` that keeps at least one reference: a value matches every member.
38
38
  *
39
39
  * Core merges the members of an `allOf` into one schema. A reference that
40
- * `client.json` `system.intersections` keeps is not merged: the schema is an
40
+ * `skmtc.config.json` `parse.intersections` keeps is not merged: the schema is an
41
41
  * `OasIntersection` of the kept references, and at most one other member, which
42
42
  * the other members of the `allOf` merge into. By default those are the
43
43
  * references that close a cycle.
@@ -83,8 +83,8 @@ export declare class OasIntersection extends OasBase {
83
83
  /** The default value. */
84
84
  default?: unknown;
85
85
  /**
86
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
87
- * `system.not: unknown`. `undefined` otherwise.
86
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
87
+ * `parse.not: unknown`. `undefined` otherwise.
88
88
  */
89
89
  not: OasUnknown | undefined;
90
90
  constructor(fields: IntersectionFields, context?: ParseContextType);
@@ -16,7 +16,7 @@ const DanglingRefError_js_1 = require("../ref/DanglingRefError.js");
16
16
  * An `allOf` that keeps at least one reference: a value matches every member.
17
17
  *
18
18
  * Core merges the members of an `allOf` into one schema. A reference that
19
- * `client.json` `system.intersections` keeps is not merged: the schema is an
19
+ * `skmtc.config.json` `parse.intersections` keeps is not merged: the schema is an
20
20
  * `OasIntersection` of the kept references, and at most one other member, which
21
21
  * the other members of the `allOf` merge into. By default those are the
22
22
  * references that close a cycle.
@@ -129,8 +129,8 @@ class OasIntersection extends OasBase_js_1.OasBase {
129
129
  value: void 0
130
130
  });
131
131
  /**
132
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
133
- * `system.not: unknown`. `undefined` otherwise.
132
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
133
+ * `parse.not: unknown`. `undefined` otherwise.
134
134
  */
135
135
  Object.defineProperty(this, "not", {
136
136
  enumerable: true,
@@ -118,8 +118,8 @@ export declare class OasNumber<Nullable extends boolean | undefined = boolean |
118
118
  */
119
119
  deprecated: boolean | undefined;
120
120
  /**
121
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
122
- * `system.not: unknown`: the document says "not something", and core does
121
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
122
+ * `parse.not: unknown`: the document says "not something", and core does
123
123
  * not read what. `undefined` otherwise.
124
124
  */
125
125
  not: OasUnknown | undefined;
@@ -170,8 +170,8 @@ class OasNumber extends OasBase_js_1.OasBase {
170
170
  value: void 0
171
171
  });
172
172
  /**
173
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
174
- * `system.not: unknown`: the document says "not something", and core does
173
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
174
+ * `parse.not: unknown`: the document says "not something", and core does
175
175
  * not read what. `undefined` otherwise.
176
176
  */
177
177
  Object.defineProperty(this, "not", {
@@ -224,8 +224,8 @@ export declare class OasObject<Nullable extends boolean | undefined = boolean |
224
224
  * ```
225
225
  */
226
226
  /**
227
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
228
- * `system.not: unknown`: the document says "not something", and core does
227
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
228
+ * `parse.not: unknown`: the document says "not something", and core does
229
229
  * not read what. `undefined` otherwise.
230
230
  */
231
231
  not: OasUnknown | undefined;
@@ -263,8 +263,8 @@ class OasObject extends OasBase_js_1.OasBase {
263
263
  * ```
264
264
  */
265
265
  /**
266
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
267
- * `system.not: unknown`: the document says "not something", and core does
266
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
267
+ * `parse.not: unknown`: the document says "not something", and core does
268
268
  * not read what. `undefined` otherwise.
269
269
  */
270
270
  Object.defineProperty(this, "not", {
@@ -153,7 +153,7 @@ export declare class OasOperation extends OasBase {
153
153
  * The path item's come first.
154
154
  *
155
155
  * References stay references, so a caller can resolve each one on its own.
156
- * A reference that names nothing (kept when `system.danglingRefs` lists
156
+ * A reference that names nothing (kept when `parse.danglingRefs` lists
157
157
  * `parameter`) keeps its place, and resolving it throws `DanglingRefError`.
158
158
  * {@link OasOperation.toParams} resolves them all.
159
159
  *
@@ -229,7 +229,7 @@ class OasOperation extends OasBase_js_1.OasBase {
229
229
  * The path item's come first.
230
230
  *
231
231
  * References stay references, so a caller can resolve each one on its own.
232
- * A reference that names nothing (kept when `system.danglingRefs` lists
232
+ * A reference that names nothing (kept when `parse.danglingRefs` lists
233
233
  * `parameter`) keeps its place, and resolving it throws `DanglingRefError`.
234
234
  * {@link OasOperation.toParams} resolves them all.
235
235
  *
@@ -12,14 +12,14 @@ type ToEffectiveParametersArgs = {
12
12
  * them: the path item's first, then its own. An own parameter with the same
13
13
  * name and location replaces the path item's. References stay references.
14
14
  *
15
- * A reference that names nothing (kept when `system.danglingRefs` lists
15
+ * A reference that names nothing (kept when `parse.danglingRefs` lists
16
16
  * `parameter`) has no name or location. It keeps its place, and only the
17
17
  * same `$ref` replaces it.
18
18
  */
19
19
  export declare const toEffectiveParameters: ({ own, shared }: ToEffectiveParametersArgs) => Parameter[];
20
20
  /**
21
21
  * True for a parameter `$ref` that names nothing in the document, which the
22
- * parser keeps when `system.danglingRefs` lists `parameter`.
22
+ * parser keeps when `parse.danglingRefs` lists `parameter`.
23
23
  */
24
24
  export declare const namesNothing: (parameter: Parameter) => boolean;
25
25
  export {};
@@ -7,7 +7,7 @@ const DanglingRefError_js_1 = require("../ref/DanglingRefError.js");
7
7
  * them: the path item's first, then its own. An own parameter with the same
8
8
  * name and location replaces the path item's. References stay references.
9
9
  *
10
- * A reference that names nothing (kept when `system.danglingRefs` lists
10
+ * A reference that names nothing (kept when `parse.danglingRefs` lists
11
11
  * `parameter`) has no name or location. It keeps its place, and only the
12
12
  * same `$ref` replaces it.
13
13
  */
@@ -18,7 +18,7 @@ const toEffectiveParameters = ({ own = [], shared = [] }) => {
18
18
  exports.toEffectiveParameters = toEffectiveParameters;
19
19
  /**
20
20
  * True for a parameter `$ref` that names nothing in the document, which the
21
- * parser keeps when `system.danglingRefs` lists `parameter`.
21
+ * parser keeps when `parse.danglingRefs` lists `parameter`.
22
22
  */
23
23
  const namesNothing = (parameter) => {
24
24
  if (!parameter.isRef()) {
@@ -18,7 +18,7 @@ type DanglingRefErrorOptions = {
18
18
  * component.
19
19
  *
20
20
  * By default the parser removes what holds such a reference, so a generator
21
- * never meets one. When `client.json` `system.danglingRefs` lists the
21
+ * never meets one. When `skmtc.config.json` `parse.danglingRefs` lists the
22
22
  * reference's kind, it stays, and a generator that resolves it can catch
23
23
  * this error and render something else in its place. Test for it with
24
24
  * {@link DanglingRefError.is}, not `instanceof`.
@@ -10,7 +10,7 @@ require("../../_dnt.polyfills.js");
10
10
  * component.
11
11
  *
12
12
  * By default the parser removes what holds such a reference, so a generator
13
- * never meets one. When `client.json` `system.danglingRefs` lists the
13
+ * never meets one. When `skmtc.config.json` `parse.danglingRefs` lists the
14
14
  * reference's kind, it stays, and a generator that resolves it can catch
15
15
  * this error and render something else in its place. Test for it with
16
16
  * {@link DanglingRefError.is}, not `instanceof`.
@@ -241,7 +241,7 @@ export declare class OasRef<T extends OasRefData['refType']> extends OasBase {
241
241
  * @returns The resolved component
242
242
  * @throws {DanglingRefError} when a reference on the chain names nothing,
243
243
  * or the chain loops ({@link toLoop}), so it never reaches a component.
244
- * The parser keeps either one only when `system.danglingRefs` lists its kind.
244
+ * The parser keeps either one only when `parse.danglingRefs` lists its kind.
245
245
  * @throws Error when a reference on the chain names a component of another
246
246
  * kind (see {@link resolveOnce})
247
247
  */
@@ -264,7 +264,7 @@ export declare class OasRef<T extends OasRefData['refType']> extends OasBase {
264
264
  *
265
265
  * @returns Either the resolved component or another reference in the chain
266
266
  * @throws {DanglingRefError} when the reference names nothing in the
267
- * document (kept when `client.json` `system.danglingRefs` lists its kind),
267
+ * document (kept when `skmtc.config.json` `parse.danglingRefs` lists its kind),
268
268
  * including a `$ref` with no name, such as `#/components/schemas/`
269
269
  * @throws Error when it names a component of another kind, such as a
270
270
  * `requestBody` ref to `#/components/schemas/…`
@@ -441,7 +441,7 @@ class OasRef extends OasBase_js_1.OasBase {
441
441
  * @returns The resolved component
442
442
  * @throws {DanglingRefError} when a reference on the chain names nothing,
443
443
  * or the chain loops ({@link toLoop}), so it never reaches a component.
444
- * The parser keeps either one only when `system.danglingRefs` lists its kind.
444
+ * The parser keeps either one only when `parse.danglingRefs` lists its kind.
445
445
  * @throws Error when a reference on the chain names a component of another
446
446
  * kind (see {@link resolveOnce})
447
447
  */
@@ -468,7 +468,7 @@ class OasRef extends OasBase_js_1.OasBase {
468
468
  *
469
469
  * @returns Either the resolved component or another reference in the chain
470
470
  * @throws {DanglingRefError} when the reference names nothing in the
471
- * document (kept when `client.json` `system.danglingRefs` lists its kind),
471
+ * document (kept when `skmtc.config.json` `parse.danglingRefs` lists its kind),
472
472
  * including a `$ref` with no name, such as `#/components/schemas/`
473
473
  * @throws Error when it names a component of another kind, such as a
474
474
  * `requestBody` ref to `#/components/schemas/…`
@@ -104,8 +104,8 @@ export declare class OasString<Nullable extends boolean | undefined = boolean |
104
104
  */
105
105
  deprecated: boolean | undefined;
106
106
  /**
107
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
108
- * `system.not: unknown`: the document says "not something", and core does
107
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
108
+ * `parse.not: unknown`: the document says "not something", and core does
109
109
  * not read what. `undefined` otherwise.
110
110
  */
111
111
  not: OasUnknown | undefined;
@@ -150,8 +150,8 @@ class OasString extends OasBase_js_1.OasBase {
150
150
  value: void 0
151
151
  });
152
152
  /**
153
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
154
- * `system.not: unknown`: the document says "not something", and core does
153
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
154
+ * `parse.not: unknown`: the document says "not something", and core does
155
155
  * not read what. `undefined` otherwise.
156
156
  */
157
157
  Object.defineProperty(this, "not", {
@@ -188,8 +188,8 @@ export declare class OasUnion extends OasBase {
188
188
  */
189
189
  default?: unknown;
190
190
  /**
191
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
192
- * `system.not: unknown`: the document says "not something", and core does
191
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
192
+ * `parse.not: unknown`: the document says "not something", and core does
193
193
  * not read what. `undefined` otherwise.
194
194
  */
195
195
  not: OasUnknown | undefined;
@@ -217,7 +217,7 @@ export declare class OasUnion extends OasBase {
217
217
  * property, and that allows only string literals for it. No value may
218
218
  * belong to two members. A member that is a union, or anything other than
219
219
  * an object, makes it `false`, as does a reference on the way that names
220
- * nothing in the document (kept when `system.danglingRefs` lists `schema`).
220
+ * nothing in the document (kept when `parse.danglingRefs` lists `schema`).
221
221
  *
222
222
  * It reads the schemas only. A generator may refuse more: one that leaves
223
223
  * out `readOnly` properties cannot discriminate on one.
@@ -219,8 +219,8 @@ class OasUnion extends OasBase_js_1.OasBase {
219
219
  value: void 0
220
220
  });
221
221
  /**
222
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
223
- * `system.not: unknown`: the document says "not something", and core does
222
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
223
+ * `parse.not: unknown`: the document says "not something", and core does
224
224
  * not read what. `undefined` otherwise.
225
225
  */
226
226
  Object.defineProperty(this, "not", {
@@ -288,7 +288,7 @@ class OasUnion extends OasBase_js_1.OasBase {
288
288
  * property, and that allows only string literals for it. No value may
289
289
  * belong to two members. A member that is a union, or anything other than
290
290
  * an object, makes it `false`, as does a reference on the way that names
291
- * nothing in the document (kept when `system.danglingRefs` lists `schema`).
291
+ * nothing in the document (kept when `parse.danglingRefs` lists `schema`).
292
292
  *
293
293
  * It reads the schemas only. A generator may refuse more: one that leaves
294
294
  * out `readOnly` properties cannot discriminate on one.
@@ -44,8 +44,8 @@ export declare class OasUnknown extends OasBase {
44
44
  /** Whether the unknown type is nullable */
45
45
  nullable: boolean | undefined;
46
46
  /**
47
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
48
- * `system.not: unknown`: the document says "not something", and core does
47
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
48
+ * `parse.not: unknown`: the document says "not something", and core does
49
49
  * not read what. `undefined` otherwise.
50
50
  */
51
51
  not: OasUnknown | undefined;
@@ -74,8 +74,8 @@ class OasUnknown extends OasBase_js_1.OasBase {
74
74
  value: void 0
75
75
  });
76
76
  /**
77
- * The schema's `not`, kept as an `OasUnknown` under `client.json`
78
- * `system.not: unknown`: the document says "not something", and core does
77
+ * The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
78
+ * `parse.not: unknown`: the document says "not something", and core does
79
79
  * not read what. `undefined` otherwise.
80
80
  */
81
81
  Object.defineProperty(this, "not", {
@@ -1,16 +1,16 @@
1
1
  import type { ParseContextType } from '../context/parseTypes.js';
2
2
  import type { KeptRefs } from './keptRefs.js';
3
3
  import type { StackTrail } from '../context/StackTrail.js';
4
- /** What the `allOf` merge reads of `client.json#settings.system`, and what it reports back. */
4
+ /** What the `allOf` merge reads of `skmtc.config.json#settings.parse`, and what it reports back. */
5
5
  type AllOfSystem = {
6
6
  allOf: 'strict' | 'latestWins';
7
7
  not: 'strict' | 'unknown';
8
8
  anyOf: 'union' | 'unknown';
9
9
  /** The keywords a later member replaced under `latestWins`. */
10
10
  replaced: Set<string>;
11
- /** The keywords the merge read as any value: `anyOf` under `system.anyOf: unknown`. */
11
+ /** The keywords the merge read as any value: `anyOf` under `parse.anyOf: unknown`. */
12
12
  unknown: Set<string>;
13
- /** The refs that stay refs (`system.intersections`). */
13
+ /** The refs that stay refs (`parse.intersections`). */
14
14
  keptRefs: KeptRefs | undefined;
15
15
  };
16
16
  /**
@@ -28,7 +28,7 @@ type LogAllOfContradictionsArgs = {
28
28
  };
29
29
  /**
30
30
  * One warning for a schema whose `allOf` members contradicted, naming the
31
- * keywords the later member kept (`system.allOf: latestWins`). Nothing when
31
+ * keywords the later member kept (`parse.allOf: latestWins`). Nothing when
32
32
  * no keyword was replaced.
33
33
  */
34
34
  export declare const logAllOfContradictions: ({ system, stackTrail, parent, context }: LogAllOfContradictionsArgs) => void;
@@ -18,7 +18,7 @@ const toAllOfSystem = (context) => ({
18
18
  exports.toAllOfSystem = toAllOfSystem;
19
19
  /**
20
20
  * One warning for a schema whose `allOf` members contradicted, naming the
21
- * keywords the later member kept (`system.allOf: latestWins`). Nothing when
21
+ * keywords the later member kept (`parse.allOf: latestWins`). Nothing when
22
22
  * no keyword was replaced.
23
23
  */
24
24
  const logAllOfContradictions = ({ system, stackTrail, parent, context }) => {
@@ -27,7 +27,7 @@ const logAllOfContradictions = ({ system, stackTrail, parent, context }) => {
27
27
  }
28
28
  context.logIssueNoKey({
29
29
  level: 'warning',
30
- message: `The allOf members contradict on ${[...system.replaced].join(', ')}; the later member's values are kept (system.allOf is latestWins).`,
30
+ message: `The allOf members contradict on ${[...system.replaced].join(', ')}; the later member's values are kept (parse.allOf is latestWins).`,
31
31
  parent,
32
32
  stackTrail,
33
33
  type: 'ALLOF_CONTRADICTION'
@@ -9,12 +9,12 @@ type GetRefFn = (ref: OpenAPIV3.ReferenceObject) => OpenAPIV3.SchemaObject;
9
9
  type IsUnknownAnyOfArgs = {
10
10
  /** The `anyOf` members, as the document writes them. */
11
11
  members: readonly (OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject)[];
12
- /** `client.json` `system.anyOf`. A test's mock context may have none. */
12
+ /** `skmtc.config.json` `parse.anyOf`. A test's mock context may have none. */
13
13
  setting: 'union' | 'unknown' | undefined;
14
14
  getRef: GetRefFn;
15
15
  };
16
16
  /**
17
- * Whether `system.anyOf: unknown` reads an `anyOf` as any value, as
17
+ * Whether `parse.anyOf: unknown` reads an `anyOf` as any value, as
18
18
  * Cloudflare's `cf` reads it: when it has two or more members, not counting a
19
19
  * `null` one, and one of them is not a single value.
20
20
  *
@@ -27,13 +27,13 @@ export declare const isUnknownAnyOf: ({ members, setting, getRef }: IsUnknownAny
27
27
  /** Arguments for {@link withoutUnknownAnyOf}. */
28
28
  type WithoutUnknownAnyOfArgs = {
29
29
  schema: OpenAPIV3.SchemaObject;
30
- /** `client.json` `system.anyOf`. */
30
+ /** `skmtc.config.json` `parse.anyOf`. */
31
31
  setting: 'union' | 'unknown' | undefined;
32
32
  getRef: GetRefFn;
33
33
  };
34
34
  /**
35
35
  * `schema` with its other keywords and without an `anyOf` that
36
- * `system.anyOf: unknown` reads as any value ({@link isUnknownAnyOf}), so the
36
+ * `parse.anyOf: unknown` reads as any value ({@link isUnknownAnyOf}), so the
37
37
  * properties next to the `anyOf` stay. A `null` member makes it nullable. Any
38
38
  * other schema is returned as it is.
39
39
  */
@@ -63,6 +63,6 @@ type LogMergedUnknownAnyOfArgs = LogUnknownAnyOfArgs & {
63
63
  };
64
64
  /** One warning for a schema whose merge read an `anyOf` as any value. Nothing when it read none. */
65
65
  export declare const logMergedUnknownAnyOf: ({ system, stackTrail, parent, context }: LogMergedUnknownAnyOfArgs) => void;
66
- /** One warning for a schema whose `anyOf` was read as any value (`system.anyOf: unknown`). */
66
+ /** One warning for a schema whose `anyOf` was read as any value (`parse.anyOf: unknown`). */
67
67
  export declare const logUnknownAnyOf: ({ stackTrail, parent, context }: LogUnknownAnyOfArgs) => void;
68
68
  export {};