@skmtc/core 0.0.800 → 0.0.802

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 (219) hide show
  1. package/esm/context/CoreContext.d.ts +0 -3
  2. package/esm/context/CoreContext.d.ts.map +1 -1
  3. package/esm/context/CoreContext.js +12 -17
  4. package/esm/context/GenerateContext.d.ts +14 -2
  5. package/esm/context/GenerateContext.d.ts.map +1 -1
  6. package/esm/context/RenderContext.d.ts +151 -2
  7. package/esm/context/RenderContext.d.ts.map +1 -1
  8. package/esm/context/RenderContext.js +185 -11
  9. package/esm/context/types.d.ts +30 -0
  10. package/esm/context/types.d.ts.map +1 -1
  11. package/esm/dsl/model/ModelBase.d.ts +1 -1
  12. package/esm/dsl/model/ModelBase.d.ts.map +1 -1
  13. package/esm/dsl/model/ModelDriver.d.ts +62 -0
  14. package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
  15. package/esm/dsl/model/ModelDriver.js +63 -1
  16. package/esm/dsl/model/toModelBase.d.ts +66 -0
  17. package/esm/dsl/model/toModelBase.d.ts.map +1 -1
  18. package/esm/dsl/model/toModelBase.js +46 -0
  19. package/esm/dsl/model/toModelEntry.d.ts +63 -0
  20. package/esm/dsl/model/toModelEntry.d.ts.map +1 -1
  21. package/esm/dsl/model/toModelEntry.js +63 -0
  22. package/esm/dsl/operation/OperationBase.d.ts +3 -3
  23. package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
  24. package/esm/dsl/operation/OperationDriver.d.ts +48 -0
  25. package/esm/dsl/operation/OperationDriver.d.ts.map +1 -1
  26. package/esm/dsl/operation/OperationDriver.js +49 -1
  27. package/esm/helpers/isEmpty.d.ts +1 -1
  28. package/esm/helpers/isEmpty.d.ts.map +1 -1
  29. package/esm/helpers/tracer.d.ts +1 -1
  30. package/esm/helpers/tracer.d.ts.map +1 -1
  31. package/esm/helpers/tracer.js +1 -1
  32. package/esm/mod.d.ts +51 -0
  33. package/esm/mod.d.ts.map +1 -1
  34. package/esm/mod.js +51 -0
  35. package/esm/oas/array/array-types.d.ts +20 -11
  36. package/esm/oas/array/array-types.d.ts.map +1 -1
  37. package/esm/oas/array/array-types.js +10 -0
  38. package/esm/oas/array/toArray.d.ts +111 -0
  39. package/esm/oas/array/toArray.d.ts.map +1 -1
  40. package/esm/oas/array/toArray.js +115 -3
  41. package/esm/oas/boolean/boolean-types.d.ts +1 -7
  42. package/esm/oas/boolean/boolean-types.d.ts.map +1 -1
  43. package/esm/oas/components/components-types.d.ts +19 -0
  44. package/esm/oas/components/components-types.d.ts.map +1 -0
  45. package/esm/oas/components/components-types.js +21 -0
  46. package/esm/oas/contact/contact-types.d.ts +9 -0
  47. package/esm/oas/contact/contact-types.d.ts.map +1 -0
  48. package/esm/oas/contact/contact-types.js +7 -0
  49. package/esm/oas/discriminator/discriminator-types.d.ts +1 -5
  50. package/esm/oas/discriminator/discriminator-types.d.ts.map +1 -1
  51. package/esm/oas/document/document-types.d.ts +16 -0
  52. package/esm/oas/document/document-types.d.ts.map +1 -0
  53. package/esm/oas/document/document-types.js +18 -0
  54. package/esm/oas/example/example-types.d.ts +1 -6
  55. package/esm/oas/example/example-types.d.ts.map +1 -1
  56. package/esm/oas/header/header-types.d.ts +50 -0
  57. package/esm/oas/header/header-types.d.ts.map +1 -0
  58. package/esm/oas/header/header-types.js +30 -0
  59. package/esm/oas/info/info-types.d.ts +14 -0
  60. package/esm/oas/info/info-types.d.ts.map +1 -0
  61. package/esm/oas/info/info-types.js +13 -0
  62. package/esm/oas/integer/integer-types.d.ts +3 -17
  63. package/esm/oas/integer/integer-types.d.ts.map +1 -1
  64. package/esm/oas/license/license-types.d.ts +9 -0
  65. package/esm/oas/license/license-types.d.ts.map +1 -0
  66. package/esm/oas/license/license-types.js +7 -0
  67. package/esm/oas/mediaType/mediaType-types.d.ts +1 -11
  68. package/esm/oas/mediaType/mediaType-types.d.ts.map +1 -1
  69. package/esm/oas/number/number-types.d.ts +2 -16
  70. package/esm/oas/number/number-types.d.ts.map +1 -1
  71. package/esm/oas/operation/operation-types.d.ts +22 -0
  72. package/esm/oas/operation/operation-types.d.ts.map +1 -0
  73. package/esm/oas/operation/operation-types.js +35 -0
  74. package/esm/oas/parameter/parameter-types.d.ts +3 -58
  75. package/esm/oas/parameter/parameter-types.d.ts.map +1 -1
  76. package/esm/oas/pathItem/pathItem-types.d.ts +12 -0
  77. package/esm/oas/pathItem/pathItem-types.d.ts.map +1 -0
  78. package/esm/oas/pathItem/pathItem-types.js +12 -0
  79. package/esm/oas/requestBody/requestBody-types.d.ts +10 -0
  80. package/esm/oas/requestBody/requestBody-types.d.ts.map +1 -0
  81. package/esm/oas/requestBody/requestBody-types.js +9 -0
  82. package/esm/oas/response/response-types.d.ts +12 -0
  83. package/esm/oas/response/response-types.d.ts.map +1 -0
  84. package/esm/oas/response/response-types.js +11 -0
  85. package/esm/oas/schema/toSchemasV3.js +2 -2
  86. package/esm/oas/server/toServerV3.d.ts.map +1 -1
  87. package/esm/oas/string/string-types.d.ts +2 -29
  88. package/esm/oas/string/string-types.d.ts.map +1 -1
  89. package/esm/oas/string/toString.d.ts +125 -1
  90. package/esm/oas/string/toString.d.ts.map +1 -1
  91. package/esm/oas/string/toString.js +119 -0
  92. package/esm/oas/tag/tag-types.d.ts +8 -0
  93. package/esm/oas/tag/tag-types.d.ts.map +1 -0
  94. package/esm/oas/tag/tag-types.js +8 -0
  95. package/esm/oas/union/union-types.d.ts +1 -12
  96. package/esm/oas/union/union-types.d.ts.map +1 -1
  97. package/esm/oas/unknown/unknown-types.d.ts +1 -7
  98. package/esm/oas/unknown/unknown-types.d.ts.map +1 -1
  99. package/esm/types/Preview.d.ts +37 -0
  100. package/esm/types/Preview.d.ts.map +1 -1
  101. package/esm/types/Preview.js +37 -0
  102. package/esm/types/Settings.d.ts +35 -0
  103. package/esm/types/Settings.d.ts.map +1 -1
  104. package/esm/types/Settings.js +27 -0
  105. package/esm/typescript/FunctionParameter.d.ts +4 -4
  106. package/esm/typescript/FunctionParameter.d.ts.map +1 -1
  107. package/esm/typescript/List.d.ts +40 -2
  108. package/esm/typescript/List.d.ts.map +1 -1
  109. package/esm/typescript/List.js +32 -0
  110. package/package.json +1 -1
  111. package/script/context/CoreContext.d.ts +0 -3
  112. package/script/context/CoreContext.d.ts.map +1 -1
  113. package/script/context/CoreContext.js +12 -17
  114. package/script/context/GenerateContext.d.ts +14 -2
  115. package/script/context/GenerateContext.d.ts.map +1 -1
  116. package/script/context/RenderContext.d.ts +151 -2
  117. package/script/context/RenderContext.d.ts.map +1 -1
  118. package/script/context/RenderContext.js +185 -11
  119. package/script/context/types.d.ts +30 -0
  120. package/script/context/types.d.ts.map +1 -1
  121. package/script/dsl/model/ModelBase.d.ts +1 -1
  122. package/script/dsl/model/ModelBase.d.ts.map +1 -1
  123. package/script/dsl/model/ModelDriver.d.ts +62 -0
  124. package/script/dsl/model/ModelDriver.d.ts.map +1 -1
  125. package/script/dsl/model/ModelDriver.js +63 -1
  126. package/script/dsl/model/toModelBase.d.ts +66 -0
  127. package/script/dsl/model/toModelBase.d.ts.map +1 -1
  128. package/script/dsl/model/toModelBase.js +46 -0
  129. package/script/dsl/model/toModelEntry.d.ts +63 -0
  130. package/script/dsl/model/toModelEntry.d.ts.map +1 -1
  131. package/script/dsl/model/toModelEntry.js +63 -0
  132. package/script/dsl/operation/OperationBase.d.ts +3 -3
  133. package/script/dsl/operation/OperationBase.d.ts.map +1 -1
  134. package/script/dsl/operation/OperationDriver.d.ts +48 -0
  135. package/script/dsl/operation/OperationDriver.d.ts.map +1 -1
  136. package/script/dsl/operation/OperationDriver.js +49 -1
  137. package/script/helpers/isEmpty.d.ts +1 -1
  138. package/script/helpers/isEmpty.d.ts.map +1 -1
  139. package/script/helpers/tracer.d.ts +1 -1
  140. package/script/helpers/tracer.d.ts.map +1 -1
  141. package/script/helpers/tracer.js +1 -1
  142. package/script/mod.d.ts +51 -0
  143. package/script/mod.d.ts.map +1 -1
  144. package/script/mod.js +51 -0
  145. package/script/oas/array/array-types.d.ts +20 -11
  146. package/script/oas/array/array-types.d.ts.map +1 -1
  147. package/script/oas/array/array-types.js +11 -1
  148. package/script/oas/array/toArray.d.ts +111 -0
  149. package/script/oas/array/toArray.d.ts.map +1 -1
  150. package/script/oas/array/toArray.js +114 -2
  151. package/script/oas/boolean/boolean-types.d.ts +1 -7
  152. package/script/oas/boolean/boolean-types.d.ts.map +1 -1
  153. package/script/oas/components/components-types.d.ts +19 -0
  154. package/script/oas/components/components-types.d.ts.map +1 -0
  155. package/script/oas/components/components-types.js +57 -0
  156. package/script/oas/contact/contact-types.d.ts +9 -0
  157. package/script/oas/contact/contact-types.d.ts.map +1 -0
  158. package/script/oas/contact/contact-types.js +43 -0
  159. package/script/oas/discriminator/discriminator-types.d.ts +1 -5
  160. package/script/oas/discriminator/discriminator-types.d.ts.map +1 -1
  161. package/script/oas/document/document-types.d.ts +16 -0
  162. package/script/oas/document/document-types.d.ts.map +1 -0
  163. package/script/oas/document/document-types.js +54 -0
  164. package/script/oas/example/example-types.d.ts +1 -6
  165. package/script/oas/example/example-types.d.ts.map +1 -1
  166. package/script/oas/header/header-types.d.ts +50 -0
  167. package/script/oas/header/header-types.d.ts.map +1 -0
  168. package/script/oas/header/header-types.js +66 -0
  169. package/script/oas/info/info-types.d.ts +14 -0
  170. package/script/oas/info/info-types.d.ts.map +1 -0
  171. package/script/oas/info/info-types.js +49 -0
  172. package/script/oas/integer/integer-types.d.ts +3 -17
  173. package/script/oas/integer/integer-types.d.ts.map +1 -1
  174. package/script/oas/license/license-types.d.ts +9 -0
  175. package/script/oas/license/license-types.d.ts.map +1 -0
  176. package/script/oas/license/license-types.js +43 -0
  177. package/script/oas/mediaType/mediaType-types.d.ts +1 -11
  178. package/script/oas/mediaType/mediaType-types.d.ts.map +1 -1
  179. package/script/oas/number/number-types.d.ts +2 -16
  180. package/script/oas/number/number-types.d.ts.map +1 -1
  181. package/script/oas/operation/operation-types.d.ts +22 -0
  182. package/script/oas/operation/operation-types.d.ts.map +1 -0
  183. package/script/oas/operation/operation-types.js +71 -0
  184. package/script/oas/parameter/parameter-types.d.ts +3 -58
  185. package/script/oas/parameter/parameter-types.d.ts.map +1 -1
  186. package/script/oas/pathItem/pathItem-types.d.ts +12 -0
  187. package/script/oas/pathItem/pathItem-types.d.ts.map +1 -0
  188. package/script/oas/pathItem/pathItem-types.js +48 -0
  189. package/script/oas/requestBody/requestBody-types.d.ts +10 -0
  190. package/script/oas/requestBody/requestBody-types.d.ts.map +1 -0
  191. package/script/oas/requestBody/requestBody-types.js +45 -0
  192. package/script/oas/response/response-types.d.ts +12 -0
  193. package/script/oas/response/response-types.d.ts.map +1 -0
  194. package/script/oas/response/response-types.js +47 -0
  195. package/script/oas/schema/toSchemasV3.js +2 -2
  196. package/script/oas/server/toServerV3.d.ts.map +1 -1
  197. package/script/oas/string/string-types.d.ts +2 -29
  198. package/script/oas/string/string-types.d.ts.map +1 -1
  199. package/script/oas/string/toString.d.ts +125 -1
  200. package/script/oas/string/toString.d.ts.map +1 -1
  201. package/script/oas/string/toString.js +119 -0
  202. package/script/oas/tag/tag-types.d.ts +8 -0
  203. package/script/oas/tag/tag-types.d.ts.map +1 -0
  204. package/script/oas/tag/tag-types.js +44 -0
  205. package/script/oas/union/union-types.d.ts +1 -12
  206. package/script/oas/union/union-types.d.ts.map +1 -1
  207. package/script/oas/unknown/unknown-types.d.ts +1 -7
  208. package/script/oas/unknown/unknown-types.d.ts.map +1 -1
  209. package/script/types/Preview.d.ts +37 -0
  210. package/script/types/Preview.d.ts.map +1 -1
  211. package/script/types/Preview.js +37 -0
  212. package/script/types/Settings.d.ts +35 -0
  213. package/script/types/Settings.d.ts.map +1 -1
  214. package/script/types/Settings.js +27 -0
  215. package/script/typescript/FunctionParameter.d.ts +4 -4
  216. package/script/typescript/FunctionParameter.d.ts.map +1 -1
  217. package/script/typescript/List.d.ts +40 -2
  218. package/script/typescript/List.d.ts.map +1 -1
  219. package/script/typescript/List.js +32 -0
@@ -1,11 +1,75 @@
1
1
  import type { OpenAPIV3 } from 'openapi-types';
2
2
  import type { ParseContext } from '../../context/ParseContext.js';
3
3
  import { OasString } from './String.js';
4
+ /**
5
+ * Arguments for transforming an OpenAPI string schema into OAS representation.
6
+ */
4
7
  type ToStringArgs = {
8
+ /** The OpenAPI v3 schema object to transform (must be type 'string') */
5
9
  value: OpenAPIV3.SchemaObject;
10
+ /** Parse context providing utilities and tracing capabilities */
6
11
  context: ParseContext;
7
12
  };
8
- export declare const toString: ({ context, value }: ToStringArgs) => OasString<boolean | undefined>;
13
+ /**
14
+ * Transforms an OpenAPI v3 string schema object into an internal OAS string representation.
15
+ *
16
+ * This function processes OpenAPI string schemas by extracting and parsing nullable values,
17
+ * examples, enumerations, and default values. It handles the complete transformation from
18
+ * raw OpenAPI JSON to the SKMTC internal string representation with proper validation
19
+ * of string formats and constraints.
20
+ *
21
+ * The transformation follows a pipeline approach:
22
+ * 1. Parse nullable flag and extract base value
23
+ * 2. Parse example values with nullable support
24
+ * 3. Parse enumeration constraints
25
+ * 4. Parse default values
26
+ * 5. Create final OasString instance with format validation
27
+ *
28
+ * @param args - Transformation arguments
29
+ * @param args.context - Parse context providing utilities and tracing
30
+ * @param args.value - The OpenAPI v3 string schema object to transform
31
+ * @returns Transformed OAS string object with parsed properties
32
+ *
33
+ * @example Basic string transformation
34
+ * ```typescript
35
+ * import { toString } from '@skmtc/core';
36
+ *
37
+ * const openApiString = {
38
+ * type: 'string',
39
+ * format: 'email',
40
+ * maxLength: 255,
41
+ * pattern: '^[\\w.-]+@[\\w.-]+\\.[a-zA-Z]{2,}$'
42
+ * };
43
+ *
44
+ * const oasString = toString({
45
+ * context: parseContext,
46
+ * value: openApiString
47
+ * });
48
+ *
49
+ * console.log(oasString.format); // 'email'
50
+ * console.log(oasString.maxLength); // 255
51
+ * ```
52
+ *
53
+ * @example String with nullable and enums
54
+ * ```typescript
55
+ * const statusString = {
56
+ * type: 'string',
57
+ * nullable: true,
58
+ * enum: ['active', 'inactive', 'pending', null],
59
+ * default: 'active',
60
+ * example: 'pending'
61
+ * };
62
+ *
63
+ * const oasString = toString({
64
+ * context: parseContext,
65
+ * value: statusString
66
+ * });
67
+ *
68
+ * console.log(oasString.nullable); // true
69
+ * console.log(oasString.enums); // ['active', 'inactive', 'pending', null]
70
+ * ```
71
+ */
72
+ export declare const toString: ({ context, value }: ToStringArgs) => OasString;
9
73
  type ToParsedStringArgs<Nullable extends boolean | undefined> = {
10
74
  value: Omit<OpenAPIV3.SchemaObject, 'nullable' | 'example' | 'enums' | 'default'>;
11
75
  context: ParseContext;
@@ -14,6 +78,66 @@ type ToParsedStringArgs<Nullable extends boolean | undefined> = {
14
78
  enums: Nullable extends true ? (string | null)[] | undefined : string[] | undefined;
15
79
  defaultValue: Nullable extends true ? string | null | undefined : string | undefined;
16
80
  };
81
+ /**
82
+ * Creates an OAS string instance from pre-parsed string schema components.
83
+ *
84
+ * This function is the final step in the string transformation pipeline, taking
85
+ * already-parsed nullable, example, enum, and default values and combining them
86
+ * with the remaining string properties to create the complete OasString instance.
87
+ *
88
+ * The function handles format validation against known OpenAPI string formats,
89
+ * length constraints parsing, pattern validation, and specification extension
90
+ * processing. It logs warnings for unrecognized formats while still preserving
91
+ * them in the output.
92
+ *
93
+ * @template Nullable - Boolean type indicating if the string can be null
94
+ * @param args - Pre-parsed string components
95
+ * @param args.context - Parse context for tracing and issue logging
96
+ * @param args.nullable - Parsed nullable flag
97
+ * @param args.example - Parsed example value (type-safe with nullable)
98
+ * @param args.enums - Parsed enumeration constraints (type-safe with nullable)
99
+ * @param args.defaultValue - Parsed default value (type-safe with nullable)
100
+ * @param args.value - OpenAPI string object without parsed fields
101
+ * @returns Complete OAS string instance with all properties and validation
102
+ *
103
+ * @example Date-time string with validation
104
+ * ```typescript
105
+ * const dateTimeString = toParsedString({
106
+ * context: parseContext,
107
+ * nullable: false,
108
+ * example: '2023-12-25T10:00:00Z',
109
+ * enums: undefined,
110
+ * defaultValue: undefined,
111
+ * value: {
112
+ * type: 'string',
113
+ * format: 'date-time',
114
+ * title: 'Event Date',
115
+ * description: 'When the event occurs'
116
+ * }
117
+ * });
118
+ *
119
+ * console.log(dateTimeString.format); // 'date-time'
120
+ * ```
121
+ *
122
+ * @example String with custom format (generates warning)
123
+ * ```typescript
124
+ * const customFormatString = toParsedString({
125
+ * context: parseContext,
126
+ * nullable: false,
127
+ * example: 'ABC123',
128
+ * enums: undefined,
129
+ * defaultValue: undefined,
130
+ * value: {
131
+ * type: 'string',
132
+ * format: 'custom-id', // Unknown format, will log warning
133
+ * pattern: '^[A-Z]{3}[0-9]{3}$'
134
+ * }
135
+ * });
136
+ *
137
+ * // Logs: "Unexpected format: custom-id"
138
+ * console.log(customFormatString.format); // 'custom-id' (still preserved)
139
+ * ```
140
+ */
17
141
  export declare const toParsedString: <Nullable extends boolean | undefined>({ context, nullable, example, enums, defaultValue, value }: ToParsedStringArgs<Nullable>) => OasString<Nullable>;
18
142
  export {};
19
143
  //# sourceMappingURL=toString.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toString.d.ts","sourceRoot":"","sources":["../../../src/oas/string/toString.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAQvC,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,SAAS,CAAC,YAAY,CAAA;IAC7B,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,oBAAoB,YAAY,mCAmCxD,CAAA;AAED,KAAK,kBAAkB,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,IAAI;IAC9D,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC,CAAA;IACjF,OAAO,E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S,CAAC,CAAA;IACjF,OAAO,EAAE,YAAY,CAAA;IACrB,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IAC/E,KAAK,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,GAAG,SAAS,CAAA;IACnF,YAAY,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;CACrF,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,SAAS,OAAO,GAAG,SAAS,EAAE,4DAOlE,kBAAkB,CAAC,QAAQ,CAAC,KAAG,SAAS,CAAC,QAAQ,CA0CnD,CAAA"}
@@ -6,6 +6,65 @@ import { parseNullable } from '../_helpers/parseNullable.js';
6
6
  import { parseExample } from '../_helpers/parseExample.js';
7
7
  import { parseEnum } from '../_helpers/parseEnum.js';
8
8
  import { parseDefault } from '../_helpers/parseDefault.js';
9
+ /**
10
+ * Transforms an OpenAPI v3 string schema object into an internal OAS string representation.
11
+ *
12
+ * This function processes OpenAPI string schemas by extracting and parsing nullable values,
13
+ * examples, enumerations, and default values. It handles the complete transformation from
14
+ * raw OpenAPI JSON to the SKMTC internal string representation with proper validation
15
+ * of string formats and constraints.
16
+ *
17
+ * The transformation follows a pipeline approach:
18
+ * 1. Parse nullable flag and extract base value
19
+ * 2. Parse example values with nullable support
20
+ * 3. Parse enumeration constraints
21
+ * 4. Parse default values
22
+ * 5. Create final OasString instance with format validation
23
+ *
24
+ * @param args - Transformation arguments
25
+ * @param args.context - Parse context providing utilities and tracing
26
+ * @param args.value - The OpenAPI v3 string schema object to transform
27
+ * @returns Transformed OAS string object with parsed properties
28
+ *
29
+ * @example Basic string transformation
30
+ * ```typescript
31
+ * import { toString } from '@skmtc/core';
32
+ *
33
+ * const openApiString = {
34
+ * type: 'string',
35
+ * format: 'email',
36
+ * maxLength: 255,
37
+ * pattern: '^[\\w.-]+@[\\w.-]+\\.[a-zA-Z]{2,}$'
38
+ * };
39
+ *
40
+ * const oasString = toString({
41
+ * context: parseContext,
42
+ * value: openApiString
43
+ * });
44
+ *
45
+ * console.log(oasString.format); // 'email'
46
+ * console.log(oasString.maxLength); // 255
47
+ * ```
48
+ *
49
+ * @example String with nullable and enums
50
+ * ```typescript
51
+ * const statusString = {
52
+ * type: 'string',
53
+ * nullable: true,
54
+ * enum: ['active', 'inactive', 'pending', null],
55
+ * default: 'active',
56
+ * example: 'pending'
57
+ * };
58
+ *
59
+ * const oasString = toString({
60
+ * context: parseContext,
61
+ * value: statusString
62
+ * });
63
+ *
64
+ * console.log(oasString.nullable); // true
65
+ * console.log(oasString.enums); // ['active', 'inactive', 'pending', null]
66
+ * ```
67
+ */
9
68
  export const toString = ({ context, value }) => {
10
69
  const { nullable, value: valueWithoutNullable } = parseNullable({
11
70
  value,
@@ -38,6 +97,66 @@ export const toString = ({ context, value }) => {
38
97
  value: valueWithoutDefault
39
98
  });
40
99
  };
100
+ /**
101
+ * Creates an OAS string instance from pre-parsed string schema components.
102
+ *
103
+ * This function is the final step in the string transformation pipeline, taking
104
+ * already-parsed nullable, example, enum, and default values and combining them
105
+ * with the remaining string properties to create the complete OasString instance.
106
+ *
107
+ * The function handles format validation against known OpenAPI string formats,
108
+ * length constraints parsing, pattern validation, and specification extension
109
+ * processing. It logs warnings for unrecognized formats while still preserving
110
+ * them in the output.
111
+ *
112
+ * @template Nullable - Boolean type indicating if the string can be null
113
+ * @param args - Pre-parsed string components
114
+ * @param args.context - Parse context for tracing and issue logging
115
+ * @param args.nullable - Parsed nullable flag
116
+ * @param args.example - Parsed example value (type-safe with nullable)
117
+ * @param args.enums - Parsed enumeration constraints (type-safe with nullable)
118
+ * @param args.defaultValue - Parsed default value (type-safe with nullable)
119
+ * @param args.value - OpenAPI string object without parsed fields
120
+ * @returns Complete OAS string instance with all properties and validation
121
+ *
122
+ * @example Date-time string with validation
123
+ * ```typescript
124
+ * const dateTimeString = toParsedString({
125
+ * context: parseContext,
126
+ * nullable: false,
127
+ * example: '2023-12-25T10:00:00Z',
128
+ * enums: undefined,
129
+ * defaultValue: undefined,
130
+ * value: {
131
+ * type: 'string',
132
+ * format: 'date-time',
133
+ * title: 'Event Date',
134
+ * description: 'When the event occurs'
135
+ * }
136
+ * });
137
+ *
138
+ * console.log(dateTimeString.format); // 'date-time'
139
+ * ```
140
+ *
141
+ * @example String with custom format (generates warning)
142
+ * ```typescript
143
+ * const customFormatString = toParsedString({
144
+ * context: parseContext,
145
+ * nullable: false,
146
+ * example: 'ABC123',
147
+ * enums: undefined,
148
+ * defaultValue: undefined,
149
+ * value: {
150
+ * type: 'string',
151
+ * format: 'custom-id', // Unknown format, will log warning
152
+ * pattern: '^[A-Z]{3}[0-9]{3}$'
153
+ * }
154
+ * });
155
+ *
156
+ * // Logs: "Unexpected format: custom-id"
157
+ * console.log(customFormatString.format); // 'custom-id' (still preserved)
158
+ * ```
159
+ */
41
160
  export const toParsedString = ({ context, nullable, example, enums, defaultValue, value }) => {
42
161
  const { type: _type, title, description, format, maxLength, minLength, pattern, ...skipped } = v.parse(oasStringData, value);
43
162
  const extensionFields = toSpecificationExtensionsV3({
@@ -0,0 +1,8 @@
1
+ import * as v from 'valibot';
2
+ export type OasTagData = {
3
+ oasType: 'tag';
4
+ name: string;
5
+ description?: string;
6
+ };
7
+ export declare const oasTagData: v.GenericSchema<OasTagData>;
8
+ //# sourceMappingURL=tag-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-types.d.ts","sourceRoot":"","sources":["../../../src/oas/tag/tag-types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,KAAK,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,CAKjD,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { markdown } from '../markdown/markdown-types.js';
2
+ import * as v from 'valibot';
3
+ export const oasTagData = v.object({
4
+ oasType: v.literal('tag'),
5
+ name: v.string(),
6
+ description: v.optional(markdown)
7
+ // externalDocs: externalDocs.optional()
8
+ });
@@ -30,16 +30,5 @@ export type OasUnionData = {
30
30
  * discriminator properties. Uses lazy evaluation to handle recursive
31
31
  * schema references in union members.
32
32
  */
33
- export declare const oasUnionData: v.ObjectSchema<{
34
- readonly oasType: v.LiteralSchema<"schema", undefined>;
35
- readonly type: v.LiteralSchema<"union", undefined>;
36
- readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
37
- readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
38
- readonly members: v.LazySchema<v.ArraySchema<v.UnionSchema<[v.GenericSchema<OasSchemaData>, v.GenericSchema<OasSchemaRefData>], undefined>, undefined>>;
39
- readonly discriminator: v.OptionalSchema<v.ObjectSchema<{
40
- readonly oasType: v.LiteralSchema<"discriminator", undefined>;
41
- readonly propertyName: v.StringSchema<undefined>;
42
- readonly mapping: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
43
- }, undefined>, undefined>;
44
- }, undefined>;
33
+ export declare const oasUnionData: v.GenericSchema<OasUnionData>;
45
34
  //# sourceMappingURL=union-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"union-types.d.ts","sourceRoot":"","sources":["../../../src/oas/union/union-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,KAA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DAA2D;IAC3D,aAAa,CAAC,EAAE,oBAAoB,CAAA;CACrC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,CAAC,CAAC,aAAa,CAAC,YAAY,CAOrD,CAAA"}
@@ -5,13 +5,7 @@ import * as v from 'valibot';
5
5
  * Validates unknown/unspecified schemas used as fallbacks when
6
6
  * schema types cannot be determined or for flexible data handling.
7
7
  */
8
- export declare const oasUnknownData: v.ObjectSchema<{
9
- readonly oasType: v.LiteralSchema<"schema", undefined>;
10
- readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
11
- readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
12
- readonly default: v.OptionalSchema<v.UnknownSchema, undefined>;
13
- readonly type: v.LiteralSchema<"unknown", undefined>;
14
- }, undefined>;
8
+ export declare const oasUnknownData: v.GenericSchema<OasUnknownData>;
15
9
  /**
16
10
  * Data type for OpenAPI unknown schema objects.
17
11
  *
@@ -1 +1 @@
1
- {"version":3,"file":"unknown-types.d.ts","sourceRoot":"","sources":["../../../src/oas/unknown/unknown-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;GAKG;AACH,eAAO,MAAM,cAAc;;;;;;aAMzB,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,kDAAkD;IAClD,OAAO,EAAE,QAAQ,CAAA;IACjB,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gCAAgC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yCAAyC;IACzC,IAAI,EAAE,SAAS,CAAA;CAChB,CAAA"}
1
+ {"version":3,"file":"unknown-types.d.ts","sourceRoot":"","sources":["../../../src/oas/unknown/unknown-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,CAAC,CAAC,aAAa,CAAC,cAAc,CAMzD,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,kDAAkD;IAClD,OAAO,EAAE,QAAQ,CAAA;IACjB,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gCAAgC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yCAAyC;IACzC,IAAI,EAAE,SAAS,CAAA;CAChB,CAAA"}
@@ -33,6 +33,12 @@ export type Mapping = {
33
33
  module: MappingModule;
34
34
  source: OperationSource | ModelSource;
35
35
  };
36
+ /**
37
+ * Valibot schema for validating operation source objects.
38
+ *
39
+ * Validates operation source structures including type, generator ID,
40
+ * operation path, and HTTP method information.
41
+ */
36
42
  export declare const operationSource: v.ObjectSchema<{
37
43
  readonly type: v.LiteralSchema<'operation', undefined>;
38
44
  readonly generatorId: v.StringSchema<undefined>;
@@ -48,14 +54,45 @@ export declare const operationSource: v.ObjectSchema<{
48
54
  v.LiteralSchema<'trace', undefined>
49
55
  ], undefined>;
50
56
  }, undefined>;
57
+ /**
58
+ * Valibot schema for validating model source objects.
59
+ *
60
+ * Validates model source structures including type, generator ID,
61
+ * and reference name information.
62
+ */
51
63
  export declare const modelSource: v.ObjectSchema<{
52
64
  readonly type: v.LiteralSchema<'model', undefined>;
53
65
  readonly generatorId: v.StringSchema<undefined>;
54
66
  readonly refName: v.StringSchema<undefined>;
55
67
  }, undefined>;
68
+ /**
69
+ * Valibot schema for validating preview group values.
70
+ *
71
+ * Validates preview group categories for UI organization.
72
+ */
56
73
  export declare const previewGroup: v.GenericSchema<PreviewGroup>;
74
+ /**
75
+ * Valibot schema for validating preview module objects.
76
+ *
77
+ * Validates preview module structures including group, title, and description.
78
+ */
57
79
  export declare const previewModule: v.GenericSchema<PreviewModule>;
80
+ /**
81
+ * Valibot schema for validating mapping module objects.
82
+ *
83
+ * Validates mapping module structures for file relationship tracking.
84
+ */
58
85
  export declare const mappingModule: v.GenericSchema<MappingModule>;
86
+ /**
87
+ * Valibot schema for validating preview objects.
88
+ *
89
+ * Validates complete preview structures including module and source information.
90
+ */
59
91
  export declare const preview: v.GenericSchema<Preview>;
92
+ /**
93
+ * Valibot schema for validating mapping objects.
94
+ *
95
+ * Validates complete mapping structures including module and source information.
96
+ */
60
97
  export declare const mapping: v.GenericSchema<Mapping>;
61
98
  //# sourceMappingURL=Preview.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../src/types/Preview.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAU,KAAK,MAAM,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,WAAW,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAExD,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,YAAY,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,YAAY,CAAA;IACnB,QAAQ,EAAE,OAAO,GAAG,WAAW,CAAA;IAC/B,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pC,EACD,SAAS,CACV,CAAA;CACF,EACD,SAAS,CAMT,CAAA;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,YAAY,CACtC;IACE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;IAClD,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,CAAA;IAC/C,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,CAAA;CAC5C,EACD,SAAS,CAKT,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,CAAC,CAAC,aAAa,CAAC,YAAY,CAA6C,CAAA;AAEpG;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,aAAa,CAAC,aAAa,CAIvD,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,aAAa,CAAC,aAAa,CAMvD,CAAA;AAKF;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,CAG3C,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,CAG3C,CAAA"}
@@ -1,23 +1,50 @@
1
1
  import "../_dnt.polyfills.js";
2
2
  import { method } from './Method.js';
3
3
  import * as v from 'valibot';
4
+ /**
5
+ * Valibot schema for validating operation source objects.
6
+ *
7
+ * Validates operation source structures including type, generator ID,
8
+ * operation path, and HTTP method information.
9
+ */
4
10
  export const operationSource = v.object({
5
11
  type: v.literal('operation'),
6
12
  generatorId: v.string(),
7
13
  operationPath: v.string(),
8
14
  operationMethod: method
9
15
  });
16
+ /**
17
+ * Valibot schema for validating model source objects.
18
+ *
19
+ * Validates model source structures including type, generator ID,
20
+ * and reference name information.
21
+ */
10
22
  export const modelSource = v.object({
11
23
  type: v.literal('model'),
12
24
  generatorId: v.string(),
13
25
  refName: v.string()
14
26
  });
27
+ /**
28
+ * Valibot schema for validating preview group values.
29
+ *
30
+ * Validates preview group categories for UI organization.
31
+ */
15
32
  export const previewGroup = v.picklist(['forms', 'tables', 'inputs']);
33
+ /**
34
+ * Valibot schema for validating preview module objects.
35
+ *
36
+ * Validates preview module structures including group, title, and description.
37
+ */
16
38
  export const previewModule = v.object({
17
39
  name: v.string(),
18
40
  exportPath: v.string(),
19
41
  group: previewGroup
20
42
  });
43
+ /**
44
+ * Valibot schema for validating mapping module objects.
45
+ *
46
+ * Validates mapping module structures for file relationship tracking.
47
+ */
21
48
  export const mappingModule = v.object({
22
49
  name: v.string(),
23
50
  exportPath: v.string(),
@@ -26,10 +53,20 @@ export const mappingModule = v.object({
26
53
  schema: v.string()
27
54
  });
28
55
  const source = v.variant('type', [operationSource, modelSource]);
56
+ /**
57
+ * Valibot schema for validating preview objects.
58
+ *
59
+ * Validates complete preview structures including module and source information.
60
+ */
29
61
  export const preview = v.object({
30
62
  module: previewModule,
31
63
  source: source
32
64
  });
65
+ /**
66
+ * Valibot schema for validating mapping objects.
67
+ *
68
+ * Validates complete mapping structures including module and source information.
69
+ */
33
70
  export const mapping = v.object({
34
71
  module: mappingModule,
35
72
  source: source
@@ -32,9 +32,30 @@ export type ModulePackage = {
32
32
  /** Optional module name for package.json or imports */
33
33
  moduleName?: string;
34
34
  };
35
+ /**
36
+ * Valibot schema for validating skip paths configuration.
37
+ *
38
+ * Validates path-to-methods mappings for skipping specific operations.
39
+ */
35
40
  export declare const skipPaths: v.GenericSchema<SkipPaths>;
41
+ /**
42
+ * Valibot schema for validating skip operations configuration.
43
+ *
44
+ * Validates generator-to-skip-paths mappings for skipping operations by generator.
45
+ */
36
46
  export declare const skipOperations: v.GenericSchema<SkipOperations>;
47
+ /**
48
+ * Valibot schema for validating skip models configuration.
49
+ *
50
+ * Validates generator-to-model-names mappings for skipping specific models.
51
+ */
37
52
  export declare const skipModels: v.GenericSchema<SkipModels>;
53
+ /**
54
+ * Valibot schema for validating client settings configuration.
55
+ *
56
+ * Validates the complete client settings structure including base paths,
57
+ * packages, skip configurations, and enrichments.
58
+ */
38
59
  export declare const clientSettings: v.GenericSchema<ClientSettings>;
39
60
  /**
40
61
  * Configuration for skipping specific HTTP methods on API paths.
@@ -150,9 +171,23 @@ export type ClientSettings = {
150
171
  /** Array of skip configurations to exclude content */
151
172
  skip?: Skip[];
152
173
  };
174
+ /**
175
+ * Configuration for SKMTC client with optional project identification.
176
+ *
177
+ * Extends client settings with an optional project key for multi-project
178
+ * environments or organizational contexts.
179
+ */
153
180
  export type SkmtcClientConfig = {
181
+ /** Optional project identifier for organizational contexts */
154
182
  projectKey?: string;
183
+ /** Client settings for customizing generation behavior */
155
184
  settings: ClientSettings;
156
185
  };
186
+ /**
187
+ * Valibot schema for validating SKMTC client configuration.
188
+ *
189
+ * Validates the complete client configuration including project key
190
+ * and client settings structure.
191
+ */
157
192
  export declare const skmtcClientConfig: v.GenericSchema<SkmtcClientConfig>;
158
193
  //# sourceMappingURL=Settings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../src/types/Settings.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAwB,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAClF,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAU,KAAK,MAAM,EAAE,MAAM,aAAa,CAAA;AAEjD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,aAAa,CAAC,aAAa,CAGvD,CAAA;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAA;IAChB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,SAAS,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAA;IAC1B,kDAAkD;IAClD,WAAW,CAAC,EAAE,oBAAoB,CAAA;IAClC,sDAAsD;IACtD,IAAI,CAAC,EAAE,IAAI,EAAE,CAAA;CACd,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,0DAA0D;IAC1D,QAAQ,EAAE,cAAc,CAAA;CACzB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,aAAa,CAAC,iBAAiB,CAG/D,CAAA"}
@@ -9,16 +9,43 @@ export const modulePackage = v.object({
9
9
  rootPath: v.string(),
10
10
  moduleName: v.optional(v.string())
11
11
  });
12
+ /**
13
+ * Valibot schema for validating skip paths configuration.
14
+ *
15
+ * Validates path-to-methods mappings for skipping specific operations.
16
+ */
12
17
  export const skipPaths = v.record(v.string(), v.array(method));
18
+ /**
19
+ * Valibot schema for validating skip operations configuration.
20
+ *
21
+ * Validates generator-to-skip-paths mappings for skipping operations by generator.
22
+ */
13
23
  export const skipOperations = v.record(v.string(), skipPaths);
24
+ /**
25
+ * Valibot schema for validating skip models configuration.
26
+ *
27
+ * Validates generator-to-model-names mappings for skipping specific models.
28
+ */
14
29
  export const skipModels = v.record(v.string(), v.array(v.string()));
15
30
  const skip = v.union([skipOperations, skipModels, v.string()]);
31
+ /**
32
+ * Valibot schema for validating client settings configuration.
33
+ *
34
+ * Validates the complete client settings structure including base paths,
35
+ * packages, skip configurations, and enrichments.
36
+ */
16
37
  export const clientSettings = v.object({
17
38
  basePath: v.optional(v.string()),
18
39
  packages: v.optional(v.array(modulePackage)),
19
40
  enrichments: v.optional(generatorEnrichments),
20
41
  skip: v.optional(v.array(skip))
21
42
  });
43
+ /**
44
+ * Valibot schema for validating SKMTC client configuration.
45
+ *
46
+ * Validates the complete client configuration including project key
47
+ * and client settings structure.
48
+ */
22
49
  export const skmtcClientConfig = v.object({
23
50
  projectKey: v.optional(v.string()),
24
51
  settings: clientSettings
@@ -19,17 +19,17 @@ type FunctionParameterArgs = {
19
19
  /**
20
20
  * Union type representing the different parameter configurations.
21
21
  */
22
- type ParameterProperties = VoidParameter | DestructuredParameter | RegularParameter;
22
+ export type ParameterProperties = VoidParameter | DestructuredParameter | RegularParameter;
23
23
  /**
24
24
  * Represents a void parameter (no parameters).
25
25
  */
26
- type VoidParameter = {
26
+ export type VoidParameter = {
27
27
  type: 'void';
28
28
  };
29
29
  /**
30
30
  * Represents a destructured object parameter.
31
31
  */
32
- type DestructuredParameter = {
32
+ export type DestructuredParameter = {
33
33
  type: 'destructured';
34
34
  typeDefinition: Definition<TypeSystemObject>;
35
35
  required: true;
@@ -37,7 +37,7 @@ type DestructuredParameter = {
37
37
  /**
38
38
  * Represents a regular named parameter.
39
39
  */
40
- type RegularParameter = {
40
+ export type RegularParameter = {
41
41
  type: 'regular';
42
42
  name: string;
43
43
  typeDefinition: Definition<TypeSystemValue>;
@@ -1 +1 @@
1
- {"version":3,"file":"FunctionParameter.d.ts","sourceRoot":"","sources":["../../src/typescript/FunctionParameter.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,IAAI,EAAwB,MAAM,WAAW,CAAA;AAItD;;GAEG;AACH,KAAK,qBAAqB,GAAG;IAC3B,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,cAAc,EAAE,UAAU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