@skmtc/core 0.0.797 → 0.0.799

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 (119) hide show
  1. package/esm/context/CoreContext.d.ts +10 -1
  2. package/esm/context/CoreContext.d.ts.map +1 -1
  3. package/esm/context/GenerateContext.d.ts +185 -0
  4. package/esm/context/GenerateContext.d.ts.map +1 -1
  5. package/esm/context/GenerateContext.js +30 -0
  6. package/esm/context/ParseContext.d.ts +6 -0
  7. package/esm/context/ParseContext.d.ts.map +1 -1
  8. package/esm/context/ParseContext.js +6 -0
  9. package/esm/oas/array/array-types.d.ts +23 -0
  10. package/esm/oas/array/array-types.d.ts.map +1 -1
  11. package/esm/oas/array/array-types.js +7 -0
  12. package/esm/oas/boolean/boolean-types.d.ts +25 -1
  13. package/esm/oas/boolean/boolean-types.d.ts.map +1 -1
  14. package/esm/oas/boolean/boolean-types.js +6 -0
  15. package/esm/oas/discriminator/discriminator-types.d.ts +17 -0
  16. package/esm/oas/discriminator/discriminator-types.d.ts.map +1 -1
  17. package/esm/oas/discriminator/discriminator-types.js +7 -0
  18. package/esm/oas/example/toExamplesV3.d.ts +39 -0
  19. package/esm/oas/example/toExamplesV3.d.ts.map +1 -1
  20. package/esm/oas/example/toExamplesV3.js +29 -0
  21. package/esm/oas/integer/integer-types.d.ts +18 -0
  22. package/esm/oas/integer/integer-types.d.ts.map +1 -1
  23. package/esm/oas/integer/integer-types.js +18 -0
  24. package/esm/oas/mediaType/mediaType-types.d.ts +17 -0
  25. package/esm/oas/mediaType/mediaType-types.d.ts.map +1 -1
  26. package/esm/oas/mediaType/mediaType-types.js +6 -0
  27. package/esm/oas/number/number-types.d.ts +12 -0
  28. package/esm/oas/number/number-types.d.ts.map +1 -1
  29. package/esm/oas/number/number-types.js +12 -0
  30. package/esm/oas/object/Object.d.ts +6 -0
  31. package/esm/oas/object/Object.d.ts.map +1 -1
  32. package/esm/oas/object/Object.js +6 -0
  33. package/esm/oas/operation/Operation.d.ts +34 -0
  34. package/esm/oas/operation/Operation.d.ts.map +1 -1
  35. package/esm/oas/operation/Operation.js +14 -0
  36. package/esm/oas/parameter/Parameter.d.ts +3 -0
  37. package/esm/oas/parameter/Parameter.d.ts.map +1 -1
  38. package/esm/oas/parameter/Parameter.js +3 -0
  39. package/esm/oas/ref/ref-types.d.ts +42 -0
  40. package/esm/oas/ref/ref-types.d.ts.map +1 -1
  41. package/esm/oas/ref/ref-types.js +9 -0
  42. package/esm/oas/securitySchemes/security-scheme-types.d.ts +63 -0
  43. package/esm/oas/securitySchemes/security-scheme-types.d.ts.map +1 -1
  44. package/esm/oas/securitySchemes/security-scheme-types.js +15 -0
  45. package/esm/oas/serverVariable/ServerVariable.d.ts +34 -0
  46. package/esm/oas/serverVariable/ServerVariable.d.ts.map +1 -1
  47. package/esm/oas/serverVariable/ServerVariable.js +24 -0
  48. package/esm/oas/string/string-types.d.ts +38 -1
  49. package/esm/oas/string/string-types.d.ts.map +1 -1
  50. package/esm/oas/string/string-types.js +12 -0
  51. package/esm/oas/union/union-types.d.ts +20 -0
  52. package/esm/oas/union/union-types.d.ts.map +1 -1
  53. package/esm/oas/union/union-types.js +7 -0
  54. package/esm/oas/unknown/unknown-types.d.ts +18 -0
  55. package/esm/oas/unknown/unknown-types.d.ts.map +1 -1
  56. package/esm/oas/unknown/unknown-types.js +6 -0
  57. package/esm/types/Results.d.ts +32 -0
  58. package/esm/types/Results.d.ts.map +1 -1
  59. package/esm/types/Results.js +12 -0
  60. package/package.json +1 -1
  61. package/script/context/CoreContext.d.ts +10 -1
  62. package/script/context/CoreContext.d.ts.map +1 -1
  63. package/script/context/GenerateContext.d.ts +185 -0
  64. package/script/context/GenerateContext.d.ts.map +1 -1
  65. package/script/context/GenerateContext.js +30 -0
  66. package/script/context/ParseContext.d.ts +6 -0
  67. package/script/context/ParseContext.d.ts.map +1 -1
  68. package/script/context/ParseContext.js +6 -0
  69. package/script/oas/array/array-types.d.ts +23 -0
  70. package/script/oas/array/array-types.d.ts.map +1 -1
  71. package/script/oas/array/array-types.js +7 -0
  72. package/script/oas/boolean/boolean-types.d.ts +25 -1
  73. package/script/oas/boolean/boolean-types.d.ts.map +1 -1
  74. package/script/oas/boolean/boolean-types.js +6 -0
  75. package/script/oas/discriminator/discriminator-types.d.ts +17 -0
  76. package/script/oas/discriminator/discriminator-types.d.ts.map +1 -1
  77. package/script/oas/discriminator/discriminator-types.js +7 -0
  78. package/script/oas/example/toExamplesV3.d.ts +39 -0
  79. package/script/oas/example/toExamplesV3.d.ts.map +1 -1
  80. package/script/oas/example/toExamplesV3.js +29 -0
  81. package/script/oas/integer/integer-types.d.ts +18 -0
  82. package/script/oas/integer/integer-types.d.ts.map +1 -1
  83. package/script/oas/integer/integer-types.js +18 -0
  84. package/script/oas/mediaType/mediaType-types.d.ts +17 -0
  85. package/script/oas/mediaType/mediaType-types.d.ts.map +1 -1
  86. package/script/oas/mediaType/mediaType-types.js +6 -0
  87. package/script/oas/number/number-types.d.ts +12 -0
  88. package/script/oas/number/number-types.d.ts.map +1 -1
  89. package/script/oas/number/number-types.js +12 -0
  90. package/script/oas/object/Object.d.ts +6 -0
  91. package/script/oas/object/Object.d.ts.map +1 -1
  92. package/script/oas/object/Object.js +6 -0
  93. package/script/oas/operation/Operation.d.ts +34 -0
  94. package/script/oas/operation/Operation.d.ts.map +1 -1
  95. package/script/oas/operation/Operation.js +14 -0
  96. package/script/oas/parameter/Parameter.d.ts +3 -0
  97. package/script/oas/parameter/Parameter.d.ts.map +1 -1
  98. package/script/oas/parameter/Parameter.js +3 -0
  99. package/script/oas/ref/ref-types.d.ts +42 -0
  100. package/script/oas/ref/ref-types.d.ts.map +1 -1
  101. package/script/oas/ref/ref-types.js +9 -0
  102. package/script/oas/securitySchemes/security-scheme-types.d.ts +63 -0
  103. package/script/oas/securitySchemes/security-scheme-types.d.ts.map +1 -1
  104. package/script/oas/securitySchemes/security-scheme-types.js +15 -0
  105. package/script/oas/serverVariable/ServerVariable.d.ts +34 -0
  106. package/script/oas/serverVariable/ServerVariable.d.ts.map +1 -1
  107. package/script/oas/serverVariable/ServerVariable.js +24 -0
  108. package/script/oas/string/string-types.d.ts +38 -1
  109. package/script/oas/string/string-types.d.ts.map +1 -1
  110. package/script/oas/string/string-types.js +12 -0
  111. package/script/oas/union/union-types.d.ts +20 -0
  112. package/script/oas/union/union-types.d.ts.map +1 -1
  113. package/script/oas/union/union-types.js +7 -0
  114. package/script/oas/unknown/unknown-types.d.ts +18 -0
  115. package/script/oas/unknown/unknown-types.d.ts.map +1 -1
  116. package/script/oas/unknown/unknown-types.js +6 -0
  117. package/script/types/Results.d.ts +32 -0
  118. package/script/types/Results.d.ts.map +1 -1
  119. package/script/types/Results.js +12 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../../src/types/Results.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,cAAc,CAAA;AAErF,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,CAAA;AAE9C,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,CAMjD,CAAA;AAEF,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CACpE;AAED,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,aAAa,CAAC,WAAW,CAGpD,CAAA"}
1
+ {"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../../src/types/Results.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,cAAc,CAAA;AAErF;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,CAAA;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,CAMjD,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,+DAA+D;IAC/D,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CACpE;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,aAAa,CAAC,WAAW,CAGpD,CAAA"}
@@ -1,5 +1,11 @@
1
1
  import "../_dnt.polyfills.js";
2
2
  import * as v from 'valibot';
3
+ /**
4
+ * Valibot schema for validating ResultType values.
5
+ *
6
+ * Used for runtime validation of result type values throughout
7
+ * the SKMTC pipeline to ensure type safety and data integrity.
8
+ */
3
9
  export const resultType = v.union([
4
10
  v.literal('success'),
5
11
  v.literal('warning'),
@@ -7,4 +13,10 @@ export const resultType = v.union([
7
13
  v.literal('skipped'),
8
14
  v.literal('notSupported')
9
15
  ]);
16
+ /**
17
+ * Valibot schema for validating ResultsItem structures.
18
+ *
19
+ * Uses lazy evaluation to handle recursive result item validation,
20
+ * supporting nested hierarchical result structures.
21
+ */
10
22
  export const resultsItem = v.record(v.string(), v.lazy(() => v.union([resultsItem, resultType, v.array(v.lazy(() => resultsItem))])));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.797",
3
+ "version": "0.0.799",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/skmtc/skmtc.git"
@@ -326,7 +326,16 @@ export declare class CoreContext {
326
326
  */
327
327
  export type JsonFormatterArgs = {
328
328
  /** The Deno log record containing log level, message, and metadata */
329
- logRecord: log.LogRecord;
329
+ logRecord: {
330
+ /** The log level name */
331
+ levelName: string;
332
+ /** The timestamp when the log was created */
333
+ datetime: Date;
334
+ /** The log message */
335
+ msg: string;
336
+ /** Additional log arguments */
337
+ args: unknown[];
338
+ };
330
339
  /** String representation of the current stack trail position */
331
340
  stackTrail: string;
332
341
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CoreContext.d.ts","sourceRoot":"","sources":["../../src/context/CoreContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,GAAG,MAAM,yCAAyC,CAAA;AAQ9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAEvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,yCAAyC;IACzC,IAAI,EAAE,OAAO,CAAA;IACb,iEAAiE;IACjE,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,4CAA4C;IAC5C,IAAI,EAAE,UAAU,CAAA;IAChB,gEAAgE;IAChE,OAAO,EAAE,eAAe,CAAA;CACzB,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,WAAW,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,EAAE,UAAU,EAAE,EAAE,iBAAiB,GAAG,MAAM,CAQnF"}
@@ -30,76 +30,231 @@ type ConstructorArgs = {
30
30
  captureCurrentResult: (result: ResultType) => void;
31
31
  toGeneratorConfigMap: <EnrichmentType = undefined>() => GeneratorsMapContainer<EnrichmentType>;
32
32
  };
33
+ /**
34
+ * Arguments for picking a specific export from a generator module.
35
+ *
36
+ * Used to select and configure specific exports from generator modules
37
+ * during the artifact generation process.
38
+ */
33
39
  export type PickArgs = {
40
+ /** The name of the export to pick from the generator module */
34
41
  name: string;
42
+ /** The file path where the export should be made available */
35
43
  exportPath: string;
36
44
  };
45
+ /**
46
+ * Arguments for registering a JSON file in the generation context.
47
+ *
48
+ * Used to register JSON configuration files, manifests, or other JSON
49
+ * data that should be included in the generated output artifacts.
50
+ */
37
51
  export type RegisterJsonArgs = {
52
+ /** The destination file path where the JSON should be written */
38
53
  destinationPath: string;
54
+ /** The JSON object to write to the file */
39
55
  json: Record<string, unknown>;
40
56
  };
57
+ /**
58
+ * Arguments for applying package imports to a generated file.
59
+ *
60
+ * Used to configure import statements and dependencies when generating
61
+ * code files that need to reference external packages or modules.
62
+ */
41
63
  export type ApplyPackageImportsArgs = {
64
+ /** The destination file path where imports should be applied */
42
65
  destinationPath: string;
66
+ /** The export path for the module being imported */
43
67
  exportPath: string;
44
68
  };
69
+ /**
70
+ * Base arguments for registering generated content in the generation context.
71
+ *
72
+ * Provides the fundamental configuration options for registering imports,
73
+ * re-exports, and definitions that will be included in generated files.
74
+ */
45
75
  export type BaseRegisterArgs = {
76
+ /** Import statements to include, organized by module path */
46
77
  imports?: Record<string, ImportNameArg[]>;
78
+ /** Re-export statements to include, organized by module path */
47
79
  reExports?: Record<string, Identifier[]>;
80
+ /** Definition objects to include in the generated content */
48
81
  definitions?: (Definition | undefined)[];
49
82
  };
83
+ /**
84
+ * Arguments for registering generated content with a specific destination.
85
+ *
86
+ * Extends BaseRegisterArgs to include a destination path, allowing content
87
+ * to be registered and associated with a specific output file location.
88
+ */
50
89
  export type RegisterArgs = {
90
+ /** Import statements to include, organized by module path */
51
91
  imports?: Record<string, ImportNameArg[]>;
92
+ /** Re-export statements to include, organized by module path */
52
93
  reExports?: Record<string, Identifier[]>;
94
+ /** Definition objects to include in the generated content */
53
95
  definitions?: (Definition | undefined)[];
96
+ /** The destination file path where the content should be registered */
54
97
  destinationPath: string;
55
98
  };
99
+ /**
100
+ * Arguments for creating and registering a definition from a schema.
101
+ *
102
+ * Used to transform OpenAPI schema objects into code definitions and
103
+ * register them in the generation context for output file creation.
104
+ *
105
+ * @template Schema - The schema type extending SchemaType
106
+ */
56
107
  export type CreateAndRegisterDefinition<Schema extends SchemaType> = {
108
+ /** The OpenAPI schema to transform into a definition */
57
109
  schema: Schema;
110
+ /** The identifier for the generated definition */
58
111
  identifier: Identifier;
112
+ /** The destination file path where the definition should be registered */
59
113
  destinationPath: string;
114
+ /** Function to transform the schema into a generated value */
60
115
  schemaToValueFn: SchemaToValueFn;
116
+ /** Optional root reference name for the schema */
61
117
  rootRef?: RefName;
118
+ /** Whether to exclude this definition from exports */
62
119
  noExport?: boolean;
63
120
  };
121
+ /**
122
+ * Arguments for defining and registering a value in the generation context.
123
+ *
124
+ * Used to create definitions from pre-generated values and register them
125
+ * in the generation context for inclusion in output files.
126
+ *
127
+ * @template V - The generated value type extending GeneratedValue
128
+ */
64
129
  export type DefineAndRegisterArgs<V extends GeneratedValue> = {
130
+ /** The identifier for the definition */
65
131
  identifier: Identifier;
132
+ /** The generated value to define */
66
133
  value: V;
134
+ /** The destination file path where the definition should be registered */
67
135
  destinationPath: string;
136
+ /** Whether to exclude this definition from exports */
68
137
  noExport?: boolean;
69
138
  };
139
+ /**
140
+ * Arguments for retrieving operation-specific settings.
141
+ *
142
+ * Used to get generator-specific configuration for a particular
143
+ * OpenAPI operation based on its path and HTTP method.
144
+ */
70
145
  export type GetOperationSettingsArgs = {
146
+ /** The ID of the generator requesting settings */
71
147
  generatorId: string;
148
+ /** The API path for the operation */
72
149
  path: string;
150
+ /** The HTTP method for the operation */
73
151
  method: Method;
74
152
  };
153
+ /**
154
+ * Arguments for adding render dependencies for an operation.
155
+ *
156
+ * Used to specify additional dependencies that should be included
157
+ * when rendering code for a specific OpenAPI operation.
158
+ */
75
159
  export type AddRenderDependencyArgs = {
160
+ /** The ID of the generator adding dependencies */
76
161
  generatorId: string;
162
+ /** The OpenAPI operation requiring dependencies */
77
163
  operation: OasOperation;
164
+ /** Array of dependency names or paths to include */
78
165
  dependencies: string[];
79
166
  };
167
+ /**
168
+ * Arguments for retrieving model-specific settings.
169
+ *
170
+ * Used to get generator-specific configuration for a particular
171
+ * OpenAPI model based on its reference name.
172
+ */
80
173
  export type ToModelSettingsArgs = {
174
+ /** The ID of the generator requesting model settings */
81
175
  generatorId: string;
176
+ /** The reference name of the model */
82
177
  refName: RefName;
83
178
  };
179
+ /**
180
+ * Options for inserting an operation into the generation context.
181
+ *
182
+ * Configures how an OpenAPI operation should be processed and
183
+ * included in the generated code output.
184
+ *
185
+ * @template T - The generation type extending GenerationType
186
+ */
84
187
  export type InsertOperationOptions<T extends GenerationType> = {
188
+ /** Whether to exclude this operation from exports */
85
189
  noExport?: boolean;
190
+ /** The type of generation to apply */
86
191
  generation?: T;
192
+ /** Custom destination path for the operation */
87
193
  destinationPath?: string;
88
194
  };
195
+ /**
196
+ * Arguments for inserting a normalized model into the generation context.
197
+ *
198
+ * Used to process and register OpenAPI schema objects as normalized
199
+ * model definitions with fallback naming when schema names are unavailable.
200
+ *
201
+ * @template Schema - The schema type (OasSchema, OasRef, or OasVoid)
202
+ */
89
203
  export type InsertNormalisedModelArgs<Schema extends OasSchema | OasRef<'schema'> | OasVoid> = {
204
+ /** Fallback name to use if the schema doesn't have a name */
90
205
  fallbackName: string;
206
+ /** The OpenAPI schema to normalize and insert */
91
207
  schema: Schema;
208
+ /** The destination file path for the model */
92
209
  destinationPath: string;
93
210
  };
211
+ /**
212
+ * Options for inserting a normalized model.
213
+ *
214
+ * Configures how a normalized model should be processed and
215
+ * included in the generated code output.
216
+ */
94
217
  export type InsertNormalisedModelOptions = {
218
+ /** Whether to exclude this model from exports */
95
219
  noExport?: boolean;
96
220
  };
221
+ /**
222
+ * Return type for inserting a normalized model.
223
+ *
224
+ * Provides type-safe return values based on the schema type being processed.
225
+ * Returns different Definition types depending on whether the schema is a
226
+ * reference or a concrete schema.
227
+ *
228
+ * @template V - The generated value type
229
+ * @template Schema - The schema type being processed
230
+ */
97
231
  export type InsertNormalisedModelReturn<V extends GeneratedValue, Schema extends OasSchema | OasRef<'schema'> | OasVoid> = Schema extends OasRef<'schema'> ? Definition<V> : Definition<TypeSystemOutput<SchemaToNonRef<Schema>['type']>>;
232
+ /**
233
+ * Options for inserting a model into the generation context.
234
+ *
235
+ * Configures how a model should be processed and included in
236
+ * the generated code output.
237
+ *
238
+ * @template T - The generation type extending GenerationType
239
+ */
98
240
  export type InsertModelOptions<T extends GenerationType> = {
241
+ /** Whether to exclude this model from exports */
99
242
  noExport?: boolean;
243
+ /** The type of generation to apply */
100
244
  generation?: T;
245
+ /** Custom destination path for the model */
101
246
  destinationPath?: string;
102
247
  };
248
+ /**
249
+ * Return type for insert operations in the generation context.
250
+ *
251
+ * Represents the result of inserting content into the generation
252
+ * context, providing type-safe access to the inserted content.
253
+ *
254
+ * @template V - The generated value type
255
+ * @template T - The generation type
256
+ * @template EnrichmentType - The enrichment data type
257
+ */
103
258
  export type InsertReturn<V extends GeneratedValue, T extends GenerationType, EnrichmentType> = Inserted<V, T, EnrichmentType>;
104
259
  type ToOperationSettingsArgs<V, EnrichmentType = undefined> = {
105
260
  operation: OasOperation;
@@ -211,13 +366,25 @@ type GenerateResult = {
211
366
  */
212
367
  export declare class GenerateContext {
213
368
  #private;
369
+ /** The parsed OpenAPI document being processed */
214
370
  oasDocument: OasDocument;
371
+ /** Client settings for customization (optional) */
215
372
  settings: ClientSettings | undefined;
373
+ /** Logger instance for tracking generation progress */
216
374
  logger: log.Logger;
375
+ /** Function to capture processing results at current stack position */
217
376
  captureCurrentResult: (result: ResultType) => void;
377
+ /** Function that returns the generator configuration map */
218
378
  toGeneratorConfigMap: <EnrichmentType = undefined>() => GeneratorsMapContainer<EnrichmentType>;
379
+ /** Stack trail for tracking current processing context */
219
380
  stackTrail: StackTrail;
381
+ /** Tracking model nesting depth to prevent infinite recursion */
220
382
  modelDepth: Record<string, number>;
383
+ /**
384
+ * Creates a new GenerateContext instance for the generation phase.
385
+ *
386
+ * @param args - Constructor arguments including document, settings, and handlers
387
+ */
221
388
  constructor({ oasDocument, settings, logger, captureCurrentResult, stackTrail, toGeneratorConfigMap }: ConstructorArgs);
222
389
  /**
223
390
  * @internal
@@ -316,11 +483,29 @@ type ToOperationSourceArgs = {
316
483
  operation: OasOperation;
317
484
  generatorId: string;
318
485
  };
486
+ /**
487
+ * Creates an OperationSource from an operation and generator ID.
488
+ *
489
+ * Transforms operation and generator information into a source descriptor
490
+ * that can be used for tracking operation origins in the generation pipeline.
491
+ *
492
+ * @param args - Arguments containing operation and generator ID
493
+ * @returns OperationSource descriptor for the operation
494
+ */
319
495
  export declare const toOperationSource: ({ operation, generatorId }: ToOperationSourceArgs) => OperationSource;
320
496
  type ToModelSourceArgs = {
321
497
  refName: RefName;
322
498
  generatorId: string;
323
499
  };
500
+ /**
501
+ * Creates a ModelSource from a reference name and generator ID.
502
+ *
503
+ * Transforms model reference and generator information into a source descriptor
504
+ * that can be used for tracking model origins in the generation pipeline.
505
+ *
506
+ * @param args - Arguments containing reference name and generator ID
507
+ * @returns ModelSource descriptor for the model
508
+ */
324
509
  export declare const toModelSource: ({ refName, generatorId }: ToModelSourceArgs) => ModelSource;
325
510
  export {};
326
511
  //# sourceMappingURL=GenerateContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GenerateContext.d.ts","sourceRoot":"","sources":["../../src/context/GenerateContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAErD,OAAO,E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;;;;GAQG;AACH,eAAO,MAAM,aAAa,GAAI,0BAA0B,iBAAiB,KAAG,WAI1E,CAAA"}
@@ -158,47 +158,59 @@ const ts_pattern_1 = require("ts-pattern");
158
158
  * ```
159
159
  */
160
160
  class GenerateContext {
161
+ /**
162
+ * Creates a new GenerateContext instance for the generation phase.
163
+ *
164
+ * @param args - Constructor arguments including document, settings, and handlers
165
+ */
161
166
  constructor({ oasDocument, settings, logger, captureCurrentResult, stackTrail, toGeneratorConfigMap }) {
162
167
  _GenerateContext_instances.add(this);
163
168
  _GenerateContext_files.set(this, void 0);
164
169
  _GenerateContext_previews.set(this, void 0);
165
170
  _GenerateContext_mappings.set(this, void 0);
171
+ /** The parsed OpenAPI document being processed */
166
172
  Object.defineProperty(this, "oasDocument", {
167
173
  enumerable: true,
168
174
  configurable: true,
169
175
  writable: true,
170
176
  value: void 0
171
177
  });
178
+ /** Client settings for customization (optional) */
172
179
  Object.defineProperty(this, "settings", {
173
180
  enumerable: true,
174
181
  configurable: true,
175
182
  writable: true,
176
183
  value: void 0
177
184
  });
185
+ /** Logger instance for tracking generation progress */
178
186
  Object.defineProperty(this, "logger", {
179
187
  enumerable: true,
180
188
  configurable: true,
181
189
  writable: true,
182
190
  value: void 0
183
191
  });
192
+ /** Function to capture processing results at current stack position */
184
193
  Object.defineProperty(this, "captureCurrentResult", {
185
194
  enumerable: true,
186
195
  configurable: true,
187
196
  writable: true,
188
197
  value: void 0
189
198
  });
199
+ /** Function that returns the generator configuration map */
190
200
  Object.defineProperty(this, "toGeneratorConfigMap", {
191
201
  enumerable: true,
192
202
  configurable: true,
193
203
  writable: true,
194
204
  value: void 0
195
205
  });
206
+ /** Stack trail for tracking current processing context */
196
207
  Object.defineProperty(this, "stackTrail", {
197
208
  enumerable: true,
198
209
  configurable: true,
199
210
  writable: true,
200
211
  value: void 0
201
212
  });
213
+ /** Tracking model nesting depth to prevent infinite recursion */
202
214
  Object.defineProperty(this, "modelDepth", {
203
215
  enumerable: true,
204
216
  configurable: true,
@@ -583,6 +595,15 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
583
595
  __classPrivateFieldGet(this, _GenerateContext_files, "f").set(normalisedPath, newFile);
584
596
  return newFile;
585
597
  };
598
+ /**
599
+ * Creates an OperationSource from an operation and generator ID.
600
+ *
601
+ * Transforms operation and generator information into a source descriptor
602
+ * that can be used for tracking operation origins in the generation pipeline.
603
+ *
604
+ * @param args - Arguments containing operation and generator ID
605
+ * @returns OperationSource descriptor for the operation
606
+ */
586
607
  const toOperationSource = ({ operation, generatorId }) => ({
587
608
  type: 'operation',
588
609
  generatorId,
@@ -590,6 +611,15 @@ const toOperationSource = ({ operation, generatorId }) => ({
590
611
  operationMethod: operation.method
591
612
  });
592
613
  exports.toOperationSource = toOperationSource;
614
+ /**
615
+ * Creates a ModelSource from a reference name and generator ID.
616
+ *
617
+ * Transforms model reference and generator information into a source descriptor
618
+ * that can be used for tracking model origins in the generation pipeline.
619
+ *
620
+ * @param args - Arguments containing reference name and generator ID
621
+ * @returns ModelSource descriptor for the model
622
+ */
593
623
  const toModelSource = ({ refName, generatorId }) => ({
594
624
  type: 'model',
595
625
  generatorId,
@@ -241,11 +241,17 @@ export type ParseIssue = ParseError | ParseWarning;
241
241
  */
242
242
  export declare class ParseContext {
243
243
  #private;
244
+ /** The original OpenAPI v3 document being parsed */
244
245
  documentObject: OpenAPIV3.Document;
246
+ /** Logger instance for tracking parse progress and issues */
245
247
  logger: log.Logger;
248
+ /** The parsed OAS document result */
246
249
  oasDocument: OasDocument;
250
+ /** Stack trail for tracking current parsing context */
247
251
  stackTrail: StackTrail;
252
+ /** Collection of parsing issues encountered during processing */
248
253
  issues: ParseIssue[];
254
+ /** Whether to suppress console output during parsing */
249
255
  silent: boolean;
250
256
  constructor({ documentObject, logger, stackTrail, silent }: ConstructorArgs);
251
257
  parse(): OasDocument;
@@ -1 +1 @@
1
- {"version":3,"file":"ParseContext.d.ts","sourceRoot":"","sources":["../../src/context/ParseContext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G,SAAS;IAQvD,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC;IAIlD,gBAAgB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,oBAAoB;IAYtE,gBAAgB,CAAC,CAAC,EAAE,EAClB,GAAG,EACH,KAAK,EACL,MAAM,EACN,MAAM,EACN,SAAS,EACT,IAAI,EACL,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS;IAgB1C,QAAQ,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY;IAItD,aAAa,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB;CAqB5D;AAED,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,KAAG,SAAS,CAAC,QAMtD,CAAA"}
@@ -162,36 +162,42 @@ const v = __importStar(require("valibot"));
162
162
  */
163
163
  class ParseContext {
164
164
  constructor({ documentObject, logger, stackTrail, silent = true }) {
165
+ /** The original OpenAPI v3 document being parsed */
165
166
  Object.defineProperty(this, "documentObject", {
166
167
  enumerable: true,
167
168
  configurable: true,
168
169
  writable: true,
169
170
  value: void 0
170
171
  });
172
+ /** Logger instance for tracking parse progress and issues */
171
173
  Object.defineProperty(this, "logger", {
172
174
  enumerable: true,
173
175
  configurable: true,
174
176
  writable: true,
175
177
  value: void 0
176
178
  });
179
+ /** The parsed OAS document result */
177
180
  Object.defineProperty(this, "oasDocument", {
178
181
  enumerable: true,
179
182
  configurable: true,
180
183
  writable: true,
181
184
  value: void 0
182
185
  });
186
+ /** Stack trail for tracking current parsing context */
183
187
  Object.defineProperty(this, "stackTrail", {
184
188
  enumerable: true,
185
189
  configurable: true,
186
190
  writable: true,
187
191
  value: void 0
188
192
  });
193
+ /** Collection of parsing issues encountered during processing */
189
194
  Object.defineProperty(this, "issues", {
190
195
  enumerable: true,
191
196
  configurable: true,
192
197
  writable: true,
193
198
  value: void 0
194
199
  });
200
+ /** Whether to suppress console output during parsing */
195
201
  Object.defineProperty(this, "silent", {
196
202
  enumerable: true,
197
203
  configurable: true,
@@ -1,6 +1,13 @@
1
1
  import * as v from 'valibot';
2
2
  import { type OasSchemaData } from '../schema/schema-types.js';
3
3
  import { type OasSchemaRefData } from '../ref/ref-types.js';
4
+ /**
5
+ * Valibot schema for validating OpenAPI array data objects.
6
+ *
7
+ * Validates array schemas including item type definitions, length constraints,
8
+ * uniqueness requirements, and enumeration values. Uses lazy evaluation
9
+ * to handle recursive schema references.
10
+ */
4
11
  export declare const oasArrayData: v.ObjectSchema<{
5
12
  readonly type: v.LiteralSchema<"array", undefined>;
6
13
  readonly items: v.LazySchema<v.UnionSchema<[v.LazySchema<v.GenericSchema<OasSchemaData>>, v.GenericSchema<OasSchemaRefData>], undefined>>;
@@ -12,15 +19,31 @@ export declare const oasArrayData: v.ObjectSchema<{
12
19
  readonly uniqueItems: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
13
20
  readonly enums: v.OptionalSchema<v.ArraySchema<v.UnknownSchema, undefined>, undefined>;
14
21
  }, undefined>;
22
+ /**
23
+ * Data type for OpenAPI array schema objects.
24
+ *
25
+ * Represents array schemas with item type specifications, length constraints,
26
+ * and validation rules. Used throughout the SKMTC pipeline for array type
27
+ * processing and code generation.
28
+ */
15
29
  export type OasArrayData = {
30
+ /** Type identifier (always 'array') */
16
31
  type: 'array';
32
+ /** Schema definition for array items */
17
33
  items: OasSchemaData | OasSchemaRefData;
34
+ /** Human-readable title for the array */
18
35
  title?: string;
36
+ /** Detailed description of the array's purpose */
19
37
  description?: string;
38
+ /** Default value for the array */
20
39
  default?: unknown[];
40
+ /** Maximum number of items allowed */
21
41
  maxItems?: number;
42
+ /** Minimum number of items required */
22
43
  minItems?: number;
44
+ /** Whether all items must be unique */
23
45
  uniqueItems?: boolean;
46
+ /** Array of valid enumeration values */
24
47
  enums?: unknown[];
25
48
  };
26
49
  //# sourceMappingURL=array-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"array-types.d.ts","sourceRoot":"","sources":["../../../src/oas/array/array-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,2BAA2B,CAAA;AAC7E,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,qBAAqB,CAAA;AAE7E,eAAO,MAAM,YAAY;;;;;;;;;;aAUvB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,aAAa,GAAG,gBAAgB,CAAA;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;CAClB,CAAA"}
1
+ {"version":3,"file":"array-types.d.ts","sourceRoot":"","sources":["../../../src/oas/array/array-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,2BAA2B,CAAA;AAC7E,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,qBAAqB,CAAA;AAE7E;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;aAUvB,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,uCAAuC;IACvC,IAAI,EAAE,OAAO,CAAA;IACb,wCAAwC;IACxC,KAAK,EAAE,aAAa,GAAG,gBAAgB,CAAA;IACvC,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kCAAkC;IAClC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,uCAAuC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,wCAAwC;IACxC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;CAClB,CAAA"}
@@ -37,6 +37,13 @@ exports.oasArrayData = void 0;
37
37
  const v = __importStar(require("valibot"));
38
38
  const schema_types_js_1 = require("../schema/schema-types.js");
39
39
  const ref_types_js_1 = require("../ref/ref-types.js");
40
+ /**
41
+ * Valibot schema for validating OpenAPI array data objects.
42
+ *
43
+ * Validates array schemas including item type definitions, length constraints,
44
+ * uniqueness requirements, and enumeration values. Uses lazy evaluation
45
+ * to handle recursive schema references.
46
+ */
40
47
  exports.oasArrayData = v.object({
41
48
  type: v.literal('array'),
42
49
  items: v.lazy(() => v.union([v.lazy(() => schema_types_js_1.oasSchemaData), ref_types_js_1.oasSchemaRefData])),