@power-plant/core 0.0.4 → 0.0.5

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 (207) hide show
  1. package/dist/context-BGSa-2fY.mjs +2 -0
  2. package/dist/context-BGSa-2fY.mjs.map +1 -0
  3. package/dist/context-Bcrz4kGb.cjs +1 -0
  4. package/dist/create-0IEoomGw.cjs +1 -0
  5. package/dist/create-CYRTmdJO.mjs +2 -0
  6. package/dist/create-CYRTmdJO.mjs.map +1 -0
  7. package/dist/create-D_u2Zj81.cjs +1 -0
  8. package/dist/create-DcfhZUHw.mjs +2 -0
  9. package/dist/create-DcfhZUHw.mjs.map +1 -0
  10. package/dist/create-MFKW4s0V.cjs +1 -0
  11. package/dist/create-cqJljXdZ.mjs +2 -0
  12. package/dist/create-cqJljXdZ.mjs.map +1 -0
  13. package/dist/define-B5baoppv.d.cts +14 -0
  14. package/dist/define-B5baoppv.d.cts.map +1 -0
  15. package/dist/define-BNsSORkE.d.cts +13 -0
  16. package/dist/define-BNsSORkE.d.cts.map +1 -0
  17. package/dist/define-B__DotaM.cjs +1 -0
  18. package/dist/define-BpCv3wD0.d.mts +38 -0
  19. package/dist/define-BpCv3wD0.d.mts.map +1 -0
  20. package/dist/define-Bviec8Ry.d.cts +38 -0
  21. package/dist/define-Bviec8Ry.d.cts.map +1 -0
  22. package/dist/define-C5_Sx-Eg.mjs +2 -0
  23. package/dist/define-C5_Sx-Eg.mjs.map +1 -0
  24. package/dist/define-C_GLY1-q.cjs +1 -0
  25. package/dist/define-Cjl-0yK0.d.mts +13 -0
  26. package/dist/define-Cjl-0yK0.d.mts.map +1 -0
  27. package/dist/define-DE0RBdIR.mjs +2 -0
  28. package/dist/define-DE0RBdIR.mjs.map +1 -0
  29. package/dist/define-DQQxZK9L.d.mts +14 -0
  30. package/dist/define-DQQxZK9L.d.mts.map +1 -0
  31. package/dist/define-DVggP_03.cjs +1 -0
  32. package/dist/define-DY1s6sGY.mjs +2 -0
  33. package/dist/define-DY1s6sGY.mjs.map +1 -0
  34. package/dist/define-OeGEPyv1.d.cts +45 -0
  35. package/dist/define-OeGEPyv1.d.cts.map +1 -0
  36. package/dist/define-hhs2D0Hq.d.mts +45 -0
  37. package/dist/define-hhs2D0Hq.d.mts.map +1 -0
  38. package/dist/generator/index.cjs +1 -1
  39. package/dist/generator/index.d.cts +29 -2
  40. package/dist/generator/index.d.cts.map +1 -0
  41. package/dist/generator/index.d.mts +29 -2
  42. package/dist/generator/index.d.mts.map +1 -0
  43. package/dist/generator/index.mjs +2 -1
  44. package/dist/generator/index.mjs.map +1 -0
  45. package/dist/generator-9GSAWmOj.d.mts +126 -0
  46. package/dist/generator-9GSAWmOj.d.mts.map +1 -0
  47. package/dist/generator-D9KikId4.d.cts +126 -0
  48. package/dist/generator-D9KikId4.d.cts.map +1 -0
  49. package/dist/helpers-8tc33xyp.mjs +2 -0
  50. package/dist/helpers-8tc33xyp.mjs.map +1 -0
  51. package/dist/helpers-BWqqSR02.cjs +1 -0
  52. package/dist/helpers-BcTg0l_X.cjs +1 -0
  53. package/dist/helpers-Botqc1jf.cjs +1 -0
  54. package/dist/helpers-Cfl4NsE5.mjs +2 -0
  55. package/dist/helpers-Cfl4NsE5.mjs.map +1 -0
  56. package/dist/helpers-DwNCh4F3.mjs +2 -0
  57. package/dist/helpers-DwNCh4F3.mjs.map +1 -0
  58. package/dist/index.cjs +1 -1
  59. package/dist/index.d.cts +101 -12
  60. package/dist/index.d.cts.map +1 -0
  61. package/dist/index.d.mts +101 -12
  62. package/dist/index.d.mts.map +1 -0
  63. package/dist/index.mjs +1 -1
  64. package/dist/input/index.cjs +1 -0
  65. package/dist/input/index.d.cts +35 -0
  66. package/dist/input/index.d.cts.map +1 -0
  67. package/dist/input/index.d.mts +35 -0
  68. package/dist/input/index.d.mts.map +1 -0
  69. package/dist/input/index.mjs +1 -0
  70. package/dist/input-C3yGEfI-.d.mts +58 -0
  71. package/dist/input-C3yGEfI-.d.mts.map +1 -0
  72. package/dist/input-Osyk3YIo.d.cts +58 -0
  73. package/dist/input-Osyk3YIo.d.cts.map +1 -0
  74. package/dist/output/index.cjs +1 -0
  75. package/dist/output/index.d.cts +35 -0
  76. package/dist/output/index.d.cts.map +1 -0
  77. package/dist/output/index.d.mts +35 -0
  78. package/dist/output/index.d.mts.map +1 -0
  79. package/dist/output/index.mjs +1 -0
  80. package/dist/schema/index.cjs +1 -1
  81. package/dist/schema/index.d.cts +33 -4
  82. package/dist/schema/index.d.cts.map +1 -0
  83. package/dist/schema/index.d.mts +33 -4
  84. package/dist/schema/index.d.mts.map +1 -0
  85. package/dist/schema/index.mjs +1 -1
  86. package/dist/{schema-xFkmOyE6.d.cts → schema-DvnNqFd4.d.cts} +10 -35
  87. package/dist/schema-DvnNqFd4.d.cts.map +1 -0
  88. package/dist/{schema-xFkmOyE6.d.mts → schema-DvnNqFd4.d.mts} +10 -35
  89. package/dist/schema-DvnNqFd4.d.mts.map +1 -0
  90. package/package.json +28 -188
  91. package/dist/create-23iLtMb_.cjs +0 -1
  92. package/dist/create-BR4IeVl4.mjs +0 -2
  93. package/dist/create-BR4IeVl4.mjs.map +0 -1
  94. package/dist/create-BqRl9d7m.d.cts +0 -19
  95. package/dist/create-BqRl9d7m.d.cts.map +0 -1
  96. package/dist/create-C-rR8nuY.d.mts +0 -23
  97. package/dist/create-C-rR8nuY.d.mts.map +0 -1
  98. package/dist/create-Cz9qVT4m.d.cts +0 -23
  99. package/dist/create-Cz9qVT4m.d.cts.map +0 -1
  100. package/dist/create-DAGPeYVI.d.cts +0 -25
  101. package/dist/create-DAGPeYVI.d.cts.map +0 -1
  102. package/dist/create-DEe398aQ.d.mts +0 -25
  103. package/dist/create-DEe398aQ.d.mts.map +0 -1
  104. package/dist/create-DUt-efk7.d.cts +0 -25
  105. package/dist/create-DUt-efk7.d.cts.map +0 -1
  106. package/dist/create-DcCu_zM3.d.mts +0 -19
  107. package/dist/create-DcCu_zM3.d.mts.map +0 -1
  108. package/dist/create-Qxy2mq7r.d.mts +0 -25
  109. package/dist/create-Qxy2mq7r.d.mts.map +0 -1
  110. package/dist/define-BPfeEA9Z.d.cts +0 -14
  111. package/dist/define-BPfeEA9Z.d.cts.map +0 -1
  112. package/dist/define-CQZ042K5.d.mts +0 -14
  113. package/dist/define-CQZ042K5.d.mts.map +0 -1
  114. package/dist/define-Dw8JgVQ1.d.mts +0 -38
  115. package/dist/define-Dw8JgVQ1.d.mts.map +0 -1
  116. package/dist/define-aWeW6VVo.d.cts +0 -38
  117. package/dist/define-aWeW6VVo.d.cts.map +0 -1
  118. package/dist/generator/create.cjs +0 -1
  119. package/dist/generator/create.d.cts +0 -2
  120. package/dist/generator/create.d.mts +0 -2
  121. package/dist/generator/create.mjs +0 -2
  122. package/dist/generator/create.mjs.map +0 -1
  123. package/dist/generator/helpers.cjs +0 -1
  124. package/dist/generator/helpers.d.cts +0 -6
  125. package/dist/generator/helpers.d.cts.map +0 -1
  126. package/dist/generator/helpers.d.mts +0 -6
  127. package/dist/generator/helpers.d.mts.map +0 -1
  128. package/dist/generator/helpers.mjs +0 -2
  129. package/dist/generator/helpers.mjs.map +0 -1
  130. package/dist/generator-BGkKE8HQ.d.mts +0 -61
  131. package/dist/generator-BGkKE8HQ.d.mts.map +0 -1
  132. package/dist/generator-Dq0PL5w6.d.cts +0 -61
  133. package/dist/generator-Dq0PL5w6.d.cts.map +0 -1
  134. package/dist/helpers-BqnQPaP5.d.cts +0 -13
  135. package/dist/helpers-BqnQPaP5.d.cts.map +0 -1
  136. package/dist/helpers-CgXgqnVu.d.mts +0 -13
  137. package/dist/helpers-CgXgqnVu.d.mts.map +0 -1
  138. package/dist/index-BVVgDSdq.d.cts +0 -1
  139. package/dist/index-BVVgDSdq.d.mts +0 -1
  140. package/dist/schema/create.cjs +0 -1
  141. package/dist/schema/create.d.cts +0 -2
  142. package/dist/schema/create.d.mts +0 -2
  143. package/dist/schema/create.mjs +0 -1
  144. package/dist/schema/define.cjs +0 -1
  145. package/dist/schema/define.d.cts +0 -2
  146. package/dist/schema/define.d.mts +0 -2
  147. package/dist/schema/define.mjs +0 -2
  148. package/dist/schema/define.mjs.map +0 -1
  149. package/dist/schema/helpers.cjs +0 -1
  150. package/dist/schema/helpers.d.cts +0 -2
  151. package/dist/schema/helpers.d.mts +0 -2
  152. package/dist/schema/helpers.mjs +0 -2
  153. package/dist/schema/helpers.mjs.map +0 -1
  154. package/dist/schema-xFkmOyE6.d.cts.map +0 -1
  155. package/dist/schema-xFkmOyE6.d.mts.map +0 -1
  156. package/dist/sink/create.cjs +0 -1
  157. package/dist/sink/create.d.cts +0 -2
  158. package/dist/sink/create.d.mts +0 -2
  159. package/dist/sink/create.mjs +0 -2
  160. package/dist/sink/create.mjs.map +0 -1
  161. package/dist/sink/define.cjs +0 -1
  162. package/dist/sink/define.d.cts +0 -37
  163. package/dist/sink/define.d.cts.map +0 -1
  164. package/dist/sink/define.d.mts +0 -37
  165. package/dist/sink/define.d.mts.map +0 -1
  166. package/dist/sink/define.mjs +0 -2
  167. package/dist/sink/define.mjs.map +0 -1
  168. package/dist/sink/helpers.cjs +0 -1
  169. package/dist/sink/helpers.d.cts +0 -13
  170. package/dist/sink/helpers.d.cts.map +0 -1
  171. package/dist/sink/helpers.d.mts +0 -13
  172. package/dist/sink/helpers.d.mts.map +0 -1
  173. package/dist/sink/helpers.mjs +0 -2
  174. package/dist/sink/helpers.mjs.map +0 -1
  175. package/dist/sink/index.cjs +0 -1
  176. package/dist/sink/index.d.cts +0 -2
  177. package/dist/sink/index.d.mts +0 -2
  178. package/dist/sink/index.mjs +0 -1
  179. package/dist/sink-CHQncb8H.d.mts +0 -58
  180. package/dist/sink-CHQncb8H.d.mts.map +0 -1
  181. package/dist/sink-DHpx94GM.d.cts +0 -58
  182. package/dist/sink-DHpx94GM.d.cts.map +0 -1
  183. package/dist/source/create.cjs +0 -1
  184. package/dist/source/create.d.cts +0 -2
  185. package/dist/source/create.d.mts +0 -2
  186. package/dist/source/create.mjs +0 -2
  187. package/dist/source/create.mjs.map +0 -1
  188. package/dist/source/define.cjs +0 -1
  189. package/dist/source/define.d.cts +0 -2
  190. package/dist/source/define.d.mts +0 -2
  191. package/dist/source/define.mjs +0 -2
  192. package/dist/source/define.mjs.map +0 -1
  193. package/dist/source/helpers.cjs +0 -1
  194. package/dist/source/helpers.d.cts +0 -13
  195. package/dist/source/helpers.d.cts.map +0 -1
  196. package/dist/source/helpers.d.mts +0 -13
  197. package/dist/source/helpers.d.mts.map +0 -1
  198. package/dist/source/helpers.mjs +0 -2
  199. package/dist/source/helpers.mjs.map +0 -1
  200. package/dist/source/index.cjs +0 -1
  201. package/dist/source/index.d.cts +0 -3
  202. package/dist/source/index.d.mts +0 -3
  203. package/dist/source/index.mjs +0 -1
  204. package/dist/source-BiOs3_-8.d.mts +0 -57
  205. package/dist/source-BiOs3_-8.d.mts.map +0 -1
  206. package/dist/source-txi0ZuzR.d.cts +0 -57
  207. package/dist/source-txi0ZuzR.d.cts.map +0 -1
@@ -0,0 +1,58 @@
1
+ import { c as Meta, l as MetaConfig, r as SchemaConfigObject, s as SchemaOf } from "./schema-DvnNqFd4.cjs";
2
+ import { SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
3
+ import { InferLoadOptions, LoadReference } from "@stryke/resolve/types";
4
+ import { MaybePromise } from "@stryke/types/base";
5
+
6
+ //#region src/types/input.d.ts
7
+ type InputFunction<TSpec, TOptions extends object> = (options: TOptions) => MaybePromise<TSpec>;
8
+ interface InputMetaConfig<TSpec, TOptions extends object> extends MetaConfig<TSpec, TOptions> {
9
+ /**
10
+ * A string that describes how the specification will be extracted/generated. This property can provide context about the input of the specification, such as whether it is derived from a file, a database, an API, or any other input. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
11
+ */
12
+ input?: string;
13
+ }
14
+ interface InputMeta<TSpec, TOptions extends object> extends Meta<TSpec, TOptions> {
15
+ /**
16
+ * A string that describes how the specification will be extracted/generated. This property can provide context about the input of the specification, such as whether it is derived from a file, a database, an API, or any other input. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
17
+ */
18
+ input?: string;
19
+ }
20
+ interface InputConfigObject<TSpec, TOptions extends object> {
21
+ /**
22
+ * The schema that defines the structure of the specification input for the generator. This schema is used to validate the input specification and ensure that it conforms to the expected format before being processed by the generator.
23
+ */
24
+ schema?: SchemaSourceConfig<TSpec> | SchemaEnvelopeOf<TSpec> | SchemaConfigObject<TSpec, TOptions>;
25
+ /**
26
+ * The input implementation, either as a callable function, a static value, or a file reference.
27
+ */
28
+ input: TSpec | InputFunction<TSpec, TOptions> | LoadReference;
29
+ /**
30
+ * Optional metadata that provides contextual information for the input.
31
+ */
32
+ meta?: InputMetaConfig<TSpec, TOptions>;
33
+ }
34
+ type InputConfig<TSpec, TOptions extends object> = LoadReference | TSpec | InputFunction<TSpec, TOptions> | InputConfigObject<TSpec, TOptions>;
35
+ type InferCreateInputOptions<T extends InputConfig<any, any>> = T extends LoadReference ? InferLoadOptions<T> : {};
36
+ interface Input<TSpec, TOptions extends object> {
37
+ /**
38
+ * The schema that defines the structure of the specification input for the generator. This schema is used to validate the input specification and ensure that it conforms to the expected format before being processed by the generator.
39
+ */
40
+ schema: SchemaOf<TSpec, TOptions>;
41
+ /**
42
+ * Optional metadata that provides contextual information for the input.
43
+ */
44
+ meta?: InputMeta<TSpec, TOptions>;
45
+ /**
46
+ * The input of the generator, which can be used to specify where the generator retrieves its input data from. This can be defined as a function that takes the specification and returns a value, or it can be a static value.
47
+ *
48
+ * @remarks
49
+ * The `input` property can be either a static value of type `TSpec` or a function that takes the specification object and returns a value of type `TSpec` or a promise that resolves to `TSpec`. This allows for flexibility in how the generator retrieves its input data, enabling both synchronous and asynchronous data retrieval based on the specification.
50
+ *
51
+ * @param options - The options object that can be used to influence the generation process.
52
+ * @returns A value or a promise that resolves to a value, which will be used as the input data for the generator.
53
+ */
54
+ input: TSpec | InputFunction<TSpec, TOptions>;
55
+ }
56
+ //#endregion
57
+ export { InputFunction as a, InputConfigObject as i, Input as n, InputMeta as o, InputConfig as r, InputMetaConfig as s, InferCreateInputOptions as t };
58
+ //# sourceMappingURL=input-Osyk3YIo.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-Osyk3YIo.d.cts","names":[],"sources":["../src/types/input.ts"],"mappings":";;;;;;KAwBY,aAAA,oCACV,OAAA,EAAS,QAAA,KACN,YAAA,CAAa,KAAA;AAAA,UAED,eAAA,yCAGP,UAAA,CAAW,KAAA,EAAO,QAAA;EAPH;;;EAWvB,KAAA;AAAA;AAAA,UAGe,SAAA,yCAAkD,IAAA,CACjE,KAAA,EACA,QAAA;EAde;;;EAmBf,KAAA;AAAA;AAAA,UAGe,iBAAA;EAtBC;;AAAK;EA0BrB,MAAA,GACI,kBAAA,CAAmB,KAAA,IACnB,gBAAA,CAAiB,KAAA,IACjB,kBAAA,CAAmB,KAAA,EAAO,QAAA;EA3BA;;;EAgC9B,KAAA,EAAO,KAAA,GAAQ,aAAA,CAAc,KAAA,EAAO,QAAA,IAAY,aAAA;EA7BxC;;;EAkCR,IAAA,GAAO,eAAA,CAAgB,KAAA,EAAO,QAAA;AAAA;AAAA,KAGpB,WAAA,mCACR,aAAA,GACA,KAAA,GACA,aAAA,CAAc,KAAA,EAAO,QAAA,IACrB,iBAAA,CAAkB,KAAA,EAAO,QAAA;AAAA,KAEjB,uBAAA,WAAkC,WAAA,cAC5C,CAAA,SAAU,aAAA,GACN,gBAAA,CAAiB,CAAA;AAAA,UAIN,KAAA;EA7Cf;;AAAK;EAiDL,MAAA,EAAQ,QAAA,CAAS,KAAA,EAAO,QAAA;EA9CA;;;EAmDxB,IAAA,GAAO,SAAA,CAAU,KAAA,EAAO,QAAA;EAnDyC;;;;;;;;;EA8DjE,KAAA,EAAO,KAAA,GAAQ,aAAA,CAAc,KAAA,EAAO,QAAA;AAAA"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../helpers-BWqqSR02.cjs"),t=require("../define-C_GLY1-q.cjs"),n=require("../create-MFKW4s0V.cjs");exports.createOutput=n.t,exports.defineOutput=t.t,exports.extractOutputMeta=n.n,exports.isOutputConfigObject=e.t;
@@ -0,0 +1,35 @@
1
+ import { c as OutputConfig, d as OutputMeta, f as OutputMetaConfig, l as OutputConfigObject, o as InferCreateOutputOptions, s as Output } from "../generator-D9KikId4.cjs";
2
+ import { s as SchemaOf } from "../schema-DvnNqFd4.cjs";
3
+ import { t as defineOutput } from "../define-OeGEPyv1.cjs";
4
+ import { ExtractedSchemaEnvelope } from "@power-plant/schema";
5
+
6
+ //#region src/output/create.d.ts
7
+ /**
8
+ * Extracts and normalizes {@link OutputMeta | output metadata} from a given {@link OutputMetaConfig}. This function ensures that the metadata is in a consistent format, converting version numbers to strings and filtering out any invalid or empty tags.
9
+ *
10
+ * @param schema - The schema that the specification is expected to conform to.
11
+ * @param config - The output metadata config to extract and normalize.
12
+ * @returns The normalized output metadata.
13
+ */
14
+ declare function extractOutputMeta<TSpec, TOptions extends object>(schema: ExtractedSchemaEnvelope<TSpec> | SchemaOf<TSpec, TOptions>, config?: OutputMetaConfig<TSpec, TOptions>): OutputMeta<TSpec, TOptions>;
15
+ /**
16
+ * Normalizes any accepted output config into a concrete output descriptor.
17
+ *
18
+ * @param schema - The schema that the output config is expected to conform to.
19
+ * @param config - The output config to normalize.
20
+ * @param options - Optional options for resolving the output config.
21
+ * @returns A promise that resolves to a normalized output descriptor.
22
+ */
23
+ declare function createOutput<TSpec, TOptions extends object, TReturns = void>(schema: SchemaOf<TSpec, TOptions>, config: OutputConfig<TSpec, TOptions, TReturns>, options?: InferCreateOutputOptions<typeof config>): Promise<Output<TSpec, TOptions, TReturns>>;
24
+ //#endregion
25
+ //#region src/output/helpers.d.ts
26
+ /**
27
+ * Checks if the provided input is a {@link OutputConfigObject}.
28
+ *
29
+ * @param config - The input to check.
30
+ * @returns True if the input is a {@link OutputConfigObject}, false otherwise.
31
+ */
32
+ declare function isOutputConfigObject<TSpec, TOptions extends object, TReturns = void>(config: unknown): config is OutputConfigObject<TSpec, TOptions, TReturns>;
33
+ //#endregion
34
+ export { createOutput, defineOutput, extractOutputMeta, isOutputConfigObject };
35
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/output/create.ts","../../src/output/helpers.ts"],"mappings":";;;;;;;;;AA2CA;;;;iBAAgB,iBAAA,iCACd,MAAA,EAAQ,uBAAA,CAAwB,KAAA,IAAS,QAAA,CAAS,KAAA,EAAO,QAAA,GACzD,MAAA,GAAS,gBAAA,CAAiB,KAAA,EAAO,QAAA,IAChC,UAAA,CAAW,KAAA,EAAO,QAAA;;;;;;;;;iBAoCC,YAAA,kDAKpB,MAAA,EAAQ,QAAA,CAAS,KAAA,EAAO,QAAA,GACxB,MAAA,EAAQ,YAAA,CAAa,KAAA,EAAO,QAAA,EAAU,QAAA,GACtC,OAAA,GAAS,wBAAA,QAAgC,MAAA,IACxC,OAAA,CAAQ,MAAA,CAAO,KAAA,EAAO,QAAA,EAAU,QAAA;;;;;;;;AA/CnC;iBChBgB,oBAAA,kDAId,MAAA,YAAkB,MAAA,IAAU,kBAAA,CAAmB,KAAA,EAAO,QAAA,EAAU,QAAA"}
@@ -0,0 +1,35 @@
1
+ import { c as OutputConfig, d as OutputMeta, f as OutputMetaConfig, l as OutputConfigObject, o as InferCreateOutputOptions, s as Output } from "../generator-9GSAWmOj.mjs";
2
+ import { s as SchemaOf } from "../schema-DvnNqFd4.mjs";
3
+ import { t as defineOutput } from "../define-hhs2D0Hq.mjs";
4
+ import { ExtractedSchemaEnvelope } from "@power-plant/schema";
5
+
6
+ //#region src/output/create.d.ts
7
+ /**
8
+ * Extracts and normalizes {@link OutputMeta | output metadata} from a given {@link OutputMetaConfig}. This function ensures that the metadata is in a consistent format, converting version numbers to strings and filtering out any invalid or empty tags.
9
+ *
10
+ * @param schema - The schema that the specification is expected to conform to.
11
+ * @param config - The output metadata config to extract and normalize.
12
+ * @returns The normalized output metadata.
13
+ */
14
+ declare function extractOutputMeta<TSpec, TOptions extends object>(schema: ExtractedSchemaEnvelope<TSpec> | SchemaOf<TSpec, TOptions>, config?: OutputMetaConfig<TSpec, TOptions>): OutputMeta<TSpec, TOptions>;
15
+ /**
16
+ * Normalizes any accepted output config into a concrete output descriptor.
17
+ *
18
+ * @param schema - The schema that the output config is expected to conform to.
19
+ * @param config - The output config to normalize.
20
+ * @param options - Optional options for resolving the output config.
21
+ * @returns A promise that resolves to a normalized output descriptor.
22
+ */
23
+ declare function createOutput<TSpec, TOptions extends object, TReturns = void>(schema: SchemaOf<TSpec, TOptions>, config: OutputConfig<TSpec, TOptions, TReturns>, options?: InferCreateOutputOptions<typeof config>): Promise<Output<TSpec, TOptions, TReturns>>;
24
+ //#endregion
25
+ //#region src/output/helpers.d.ts
26
+ /**
27
+ * Checks if the provided input is a {@link OutputConfigObject}.
28
+ *
29
+ * @param config - The input to check.
30
+ * @returns True if the input is a {@link OutputConfigObject}, false otherwise.
31
+ */
32
+ declare function isOutputConfigObject<TSpec, TOptions extends object, TReturns = void>(config: unknown): config is OutputConfigObject<TSpec, TOptions, TReturns>;
33
+ //#endregion
34
+ export { createOutput, defineOutput, extractOutputMeta, isOutputConfigObject };
35
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/output/create.ts","../../src/output/helpers.ts"],"mappings":""}
@@ -0,0 +1 @@
1
+ import{t as e}from"../helpers-8tc33xyp.mjs";import{t}from"../define-C5_Sx-Eg.mjs";import{n,t as r}from"../create-cqJljXdZ.mjs";export{r as createOutput,t as defineOutput,n as extractOutputMeta,e as isOutputConfigObject};
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../create-23iLtMb_.cjs"),t=require("./helpers.cjs"),n=require("./define.cjs");exports.createSchema=e.t,exports.defineSchema=n.defineSchema,exports.extractSchemaMeta=e.n,exports.isSchemaInputObject=t.isSchemaInputObject;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../helpers-Botqc1jf.cjs"),t=require("../define-B__DotaM.cjs"),n=require("../create-D_u2Zj81.cjs");exports.createSchema=n.t,exports.defineSchema=t.t,exports.extractSchemaMeta=n.n,exports.isSchemaConfigObject=e.t;
@@ -1,4 +1,33 @@
1
- import { n as extractSchemaMeta, t as createSchema } from "../create-Cz9qVT4m.cjs";
2
- import { t as defineSchema } from "../define-BPfeEA9Z.cjs";
3
- import { t as isSchemaInputObject } from "../helpers-BqnQPaP5.cjs";
4
- export { createSchema, defineSchema, extractSchemaMeta, isSchemaInputObject };
1
+ import { a as SchemaMetaConfig, i as SchemaMeta, r as SchemaConfigObject, s as SchemaOf, t as InferCreateSchemaOptions } from "../schema-DvnNqFd4.cjs";
2
+ import { t as defineSchema } from "../define-B5baoppv.cjs";
3
+ import { ExtractedSchemaEnvelope, SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
4
+
5
+ //#region src/schema/create.d.ts
6
+ /**
7
+ * Extracts and normalizes {@link SchemaMeta | schema metadata} from a given {@link SchemaMetaConfig}. This function ensures that the metadata is in a consistent format, converting version numbers to strings and filtering out any invalid or empty tags.
8
+ *
9
+ * @param schema - The schema from which to extract metadata.
10
+ * @param input - The schema metadata input to extract and normalize.
11
+ * @returns The normalized schema metadata.
12
+ */
13
+ declare function extractSchemaMeta<TSpec, TOptions extends object>(schema: ExtractedSchemaEnvelope<TSpec>, input?: SchemaMetaConfig<TSpec, TOptions>): SchemaMeta<TSpec, TOptions>;
14
+ /**
15
+ * Normalizes any accepted schema input into a concrete schema descriptor.
16
+ *
17
+ * @param input - The schema input to normalize.
18
+ * @param options - Optional options for resolving the schema input.
19
+ * @returns A promise that resolves to a normalized schema descriptor.
20
+ */
21
+ declare function createSchema<TSpec, TOptions extends object>(input: SchemaSourceConfig<TSpec> | SchemaEnvelopeOf<TSpec> | SchemaConfigObject<TSpec, TOptions>, options?: InferCreateSchemaOptions<typeof input>): Promise<SchemaOf<TSpec, TOptions>>;
22
+ //#endregion
23
+ //#region src/schema/helpers.d.ts
24
+ /**
25
+ * Checks if the provided configuration is a {@link SchemaConfigObject}.
26
+ *
27
+ * @param config - The configuration to check.
28
+ * @returns True if the configuration is a {@link SchemaConfigObject}, false otherwise.
29
+ */
30
+ declare function isSchemaConfigObject<TSpec, TOptions extends object>(config: unknown): config is SchemaConfigObject<TSpec, TOptions>;
31
+ //#endregion
32
+ export { createSchema, defineSchema, extractSchemaMeta, isSchemaConfigObject };
33
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/schema/create.ts","../../src/schema/helpers.ts"],"mappings":";;;;;;;;AA8CA;;;;iBAAgB,iBAAA,iCACd,MAAA,EAAQ,uBAAA,CAAwB,KAAA,GAChC,KAAA,GAAQ,gBAAA,CAAiB,KAAA,EAAO,QAAA,IAC/B,UAAA,CAAW,KAAA,EAAO,QAAA;;;;;;;;iBAoCC,YAAA,iCACpB,KAAA,EACI,kBAAA,CAAmB,KAAA,IACnB,gBAAA,CAAiB,KAAA,IACjB,kBAAA,CAAmB,KAAA,EAAO,QAAA,GAC9B,OAAA,GAAS,wBAAA,QAAgC,KAAA,IACxC,OAAA,CAAQ,QAAA,CAAS,KAAA,EAAO,QAAA;;;;;;;AA7C3B;;iBCnBgB,oBAAA,iCACd,MAAA,YACC,MAAA,IAAU,kBAAA,CAAmB,KAAA,EAAO,QAAA"}
@@ -1,4 +1,33 @@
1
- import { n as extractSchemaMeta, t as createSchema } from "../create-C-rR8nuY.mjs";
2
- import { t as defineSchema } from "../define-CQZ042K5.mjs";
3
- import { t as isSchemaInputObject } from "../helpers-CgXgqnVu.mjs";
4
- export { createSchema, defineSchema, extractSchemaMeta, isSchemaInputObject };
1
+ import { a as SchemaMetaConfig, i as SchemaMeta, r as SchemaConfigObject, s as SchemaOf, t as InferCreateSchemaOptions } from "../schema-DvnNqFd4.mjs";
2
+ import { t as defineSchema } from "../define-DQQxZK9L.mjs";
3
+ import { ExtractedSchemaEnvelope, SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
4
+
5
+ //#region src/schema/create.d.ts
6
+ /**
7
+ * Extracts and normalizes {@link SchemaMeta | schema metadata} from a given {@link SchemaMetaConfig}. This function ensures that the metadata is in a consistent format, converting version numbers to strings and filtering out any invalid or empty tags.
8
+ *
9
+ * @param schema - The schema from which to extract metadata.
10
+ * @param input - The schema metadata input to extract and normalize.
11
+ * @returns The normalized schema metadata.
12
+ */
13
+ declare function extractSchemaMeta<TSpec, TOptions extends object>(schema: ExtractedSchemaEnvelope<TSpec>, input?: SchemaMetaConfig<TSpec, TOptions>): SchemaMeta<TSpec, TOptions>;
14
+ /**
15
+ * Normalizes any accepted schema input into a concrete schema descriptor.
16
+ *
17
+ * @param input - The schema input to normalize.
18
+ * @param options - Optional options for resolving the schema input.
19
+ * @returns A promise that resolves to a normalized schema descriptor.
20
+ */
21
+ declare function createSchema<TSpec, TOptions extends object>(input: SchemaSourceConfig<TSpec> | SchemaEnvelopeOf<TSpec> | SchemaConfigObject<TSpec, TOptions>, options?: InferCreateSchemaOptions<typeof input>): Promise<SchemaOf<TSpec, TOptions>>;
22
+ //#endregion
23
+ //#region src/schema/helpers.d.ts
24
+ /**
25
+ * Checks if the provided configuration is a {@link SchemaConfigObject}.
26
+ *
27
+ * @param config - The configuration to check.
28
+ * @returns True if the configuration is a {@link SchemaConfigObject}, false otherwise.
29
+ */
30
+ declare function isSchemaConfigObject<TSpec, TOptions extends object>(config: unknown): config is SchemaConfigObject<TSpec, TOptions>;
31
+ //#endregion
32
+ export { createSchema, defineSchema, extractSchemaMeta, isSchemaConfigObject };
33
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/schema/create.ts","../../src/schema/helpers.ts"],"mappings":""}
@@ -1 +1 @@
1
- import{n as e,t}from"../create-BR4IeVl4.mjs";import{isSchemaInputObject as n}from"./helpers.mjs";import{defineSchema as r}from"./define.mjs";export{t as createSchema,r as defineSchema,e as extractSchemaMeta,n as isSchemaInputObject};
1
+ import{t as e}from"../helpers-DwNCh4F3.mjs";import{t}from"../define-DE0RBdIR.mjs";import{n,t as r}from"../create-DcfhZUHw.mjs";export{r as createSchema,t as defineSchema,n as extractSchemaMeta,e as isSchemaConfigObject};
@@ -1,31 +1,6 @@
1
- import { InferExtractOptions, SchemaEnvelopeOf, SchemaSourceInput } from "@power-plant/schema";
1
+ import { InferExtractOptions, SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
2
+ import { MaybePromise } from "@stryke/types/base";
2
3
 
3
- //#region ../../../node_modules/.pnpm/@stryke+types@0.12.21/node_modules/@stryke/types/dist/base.d.mts
4
- /**
5
- * Matches a value that is either of type `T` or a promise that resolves to `T`.
6
- *
7
- * @example
8
- * ```ts
9
- * type Result = MaybePromise<string>;
10
- * // string | Promise<string>
11
- * ```
12
- */
13
- type MaybePromise<T> = T | Promise<T>;
14
- /**
15
- * Matches a reducer function that takes the current state and an action, returning the next state.
16
- *
17
- * @remarks
18
- * This is the function signature used in state management libraries like Redux.
19
- *
20
- * @example
21
- * ```ts
22
- * type CounterReducer = ReducerFunction<number, { type: 'increment' | 'decrement' }>;
23
- * const reducer: CounterReducer = (state, action) => {
24
- * return action.type === 'increment' ? state + 1 : state - 1;
25
- * };
26
- * ```
27
- */
28
- //#endregion
29
4
  //#region src/types/meta.d.ts
30
5
  type MetaValue<TSpec, TOptions extends object, TValue = any> = TValue | ((spec: TSpec, options: TOptions) => MaybePromise<TValue>);
31
6
  type MetaDeprecated = true | string | {
@@ -37,7 +12,7 @@ type MetaLink = string | {
37
12
  href: string;
38
13
  description?: string;
39
14
  };
40
- interface MetaInput<TSpec, TOptions extends object> {
15
+ interface MetaConfig<TSpec, TOptions extends object> {
41
16
  /**
42
17
  * A name for the schema, which can be used to identify or reference the schema in documentation, tooling, or other contexts. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
43
18
  *
@@ -153,7 +128,7 @@ type SchemaMetaExample<TSpec> = TSpec | {
153
128
  description?: string;
154
129
  value: TSpec;
155
130
  };
156
- interface SchemaMetaInput<TSpec, TOptions extends object = any> extends MetaInput<TSpec, TOptions> {
131
+ interface SchemaMetaConfig<TSpec, TOptions extends object = any> extends MetaConfig<TSpec, TOptions> {
157
132
  /**
158
133
  * Examples of valid data for the schema. This can be a single example or an array of examples.
159
134
  */
@@ -172,17 +147,17 @@ interface SchemaMeta<TSpec, TOptions extends object = any> extends Meta<TSpec, T
172
147
  /**
173
148
  * Schema input wrapper that attaches optional contextual metadata.
174
149
  */
175
- interface SchemaInputObject<TSpec, TOptions extends object = any> {
150
+ interface SchemaConfigObject<TSpec, TOptions extends object = any> {
176
151
  /**
177
152
  * The schema that defines the structure of the specification input for the generator. This schema is used to validate the input specification and ensure that it conforms to the expected format before being processed by the generator.
178
153
  */
179
- schema: SchemaSourceInput<TSpec> | SchemaEnvelopeOf<TSpec>;
154
+ schema: SchemaSourceConfig<TSpec> | SchemaEnvelopeOf<TSpec>;
180
155
  /**
181
156
  * Optional metadata that provides contextual information for the schema.
182
157
  */
183
- meta?: SchemaMetaInput<TSpec, TOptions>;
158
+ meta?: SchemaMetaConfig<TSpec, TOptions>;
184
159
  }
185
- type InferCreateSchemaOptions<T extends SchemaSourceInput<any> | SchemaEnvelopeOf<any> | SchemaInputObject<any, any>> = T extends SchemaSourceInput<any> | SchemaEnvelopeOf<any> ? InferExtractOptions<T> : {};
160
+ type InferCreateSchemaOptions<T extends SchemaSourceConfig<any> | SchemaEnvelopeOf<any> | SchemaConfigObject<any, any>> = T extends SchemaSourceConfig<any> | SchemaEnvelopeOf<any> ? InferExtractOptions<T> : {};
186
161
  /**
187
162
  * A schema extracted from a source input, normalized to JSON Schema.
188
163
  */
@@ -201,5 +176,5 @@ interface Schema<TSpec, TOptions extends object = any> extends SchemaEnvelopeOf<
201
176
  */
202
177
  type SchemaOf<TSpec, TOptions extends object = any> = Schema<TSpec, TOptions>;
203
178
  //#endregion
204
- export { SchemaMetaExample as a, Meta as c, MetaLink as d, MetaValue as f, SchemaMeta as i, MetaDeprecated as l, Schema as n, SchemaMetaInput as o, MaybePromise as p, SchemaInputObject as r, SchemaOf as s, InferCreateSchemaOptions as t, MetaInput as u };
205
- //# sourceMappingURL=schema-xFkmOyE6.d.cts.map
179
+ export { SchemaMetaConfig as a, Meta as c, MetaLink as d, MetaValue as f, SchemaMeta as i, MetaConfig as l, Schema as n, SchemaMetaExample as o, SchemaConfigObject as r, SchemaOf as s, InferCreateSchemaOptions as t, MetaDeprecated as u };
180
+ //# sourceMappingURL=schema-DvnNqFd4.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-DvnNqFd4.d.cts","names":[],"sources":["../src/types/meta.ts","../src/types/schema.ts"],"mappings":";;;;KAoBY,SAAA,iDACV,MAAA,KAAW,IAAA,EAAM,KAAA,EAAO,OAAA,EAAS,QAAA,KAAa,YAAA,CAAa,MAAA;AAAA,KAEjD,cAAA;EACQ,OAAA;EAAkB,KAAA;EAAgB,WAAA;AAAA;AAAA,KAE1C,QAAA;EAAsB,IAAA;EAAc,WAAW;AAAA;AAAA,UAE1C,UAAA;EAP2C;;;;;;EAc1D,IAAA,GAAO,SAAA,CAAU,KAAA,EAAO,QAAA;EAdb;;;;;;AAAsD;AAEnE;EAsBE,OAAA,GAAU,SAAA,CAAU,KAAA,EAAO,QAAA,WAAmB,IAAA;;;;EAK9C,WAAA,GAAc,SAAA,CAAU,KAAA,EAAO,QAAA;EA1BqB;;AAAW;AAEjE;;;EAgCE,KAAA,GAAQ,SAAA,CAAU,KAAA,EAAO,QAAA;EAhCgC;AAE3D;;EAmCE,KAAA,GAAQ,SAAA,CAAU,KAAA,EAAO,QAAA;EA5BR;;;;;;EAoCjB,UAAA,GAAa,SAAA,CAAU,KAAA,EAAO,QAAA,EAAU,cAAA;EArBhB;;;;;;EA6BxB,IAAA,GAAO,SAAA,CAAU,KAAA,EAAO,QAAA;EAhBC;;;EAqBzB,KAAA,GAAQ,SAAA,CAAU,KAAA,EAAO,QAAA,EAAU,QAAA;AAAA;AAAA,UAGpB,IAAA;EARE;;;;;;EAejB,EAAA,EAAI,SAAA,CAAU,KAAA,EAAO,QAAA;EAVJ;;;;;;EAkBjB,IAAA,EAAM,SAAA,CAAU,KAAA,EAAO,QAAA;EAnEC;;;;;;;;EA6ExB,OAAA,EAAS,SAAA,CAAU,KAAA,EAAO,QAAA,WAAmB,IAAA;EA9Dd;;;EAmE/B,WAAA,EAAa,SAAA,CAAU,KAAA,EAAO,QAAA;EA3DL;;;;;;EAmEzB,KAAA,EAAO,SAAA,CAAU,KAAA,EAAO,QAAA;EAtDD;;;EA2DvB,KAAA,GAAQ,SAAA,CAAU,KAAA,EAAO,QAAA;EAnDlB;;;;;;EA2DP,UAAA,GAAa,SAAA,CAAU,KAAA,EAAO,QAAA,EAAU,cAAA;EAtDL;;AAAQ;AAG7C;;;EA2DE,IAAA,GAAO,SAAA,CAAU,KAAA,EAAO,QAAA;EApDH;;;EAyDrB,KAAA,EAAO,SAAA,CAAU,KAAA,EAAO,QAAA,EAAU,QAAA;AAAA;;;KC9HxB,iBAAA,UACV,KAAA;EAAU,IAAA;EAAe,WAAA;EAAsB,KAAA,EAAO,KAAK;AAAA;AAAA,UAE5C,gBAAA,+CAGP,UAAA,CAAW,KAAA,EAAO,QAAA;EDVT;;;ECcjB,QAAA,GACI,iBAAA,CAAkB,KAAA,IAClB,SAAA,CAAU,KAAA,EAAO,QAAA,EAAU,iBAAA,CAAkB,KAAA;EDhBS;;;ECqB1D,IAAA,GAAO,SAAA,CAAU,KAAA,EAAO,QAAA;AAAA;AAAA,UAGT,UAAA,+CAAyD,IAAA,CACxE,KAAA,EACA,QAAA;ED1BiB;;;EC+BjB,QAAA,EAAU,SAAA,CAAU,KAAA,EAAO,QAAA,EAAU,iBAAA,CAAkB,KAAA;AAAA;;;AD/BU;UCqClD,kBAAA;EDnCS;;;ECuCxB,MAAA,EAAQ,kBAAA,CAAmB,KAAA,IAAS,gBAAA,CAAiB,KAAA;EDtCjB;;;EC2CpC,IAAA,GAAO,gBAAA,CAAiB,KAAA,EAAO,QAAA;AAAA;AAAA,KAGrB,wBAAA,WAEN,kBAAA,QACA,gBAAA,QACA,kBAAA,cACF,CAAA,SAAU,kBAAA,QAA0B,gBAAA,QACpC,mBAAA,CAAoB,CAAA;;;ADlDmC;UCyD1C,MAAA,+CAGP,gBAAA,CAAiB,KAAA;ED1DA;;;EC8DzB,IAAA,EAAM,UAAA,CAAW,KAAA,EAAO,QAAA;AAAA;;;;;;;;KAUd,QAAA,yCAAiD,MAAA,CAC3D,KAAA,EACA,QAAA"}
@@ -1,31 +1,6 @@
1
- import { InferExtractOptions, SchemaEnvelopeOf, SchemaSourceInput } from "@power-plant/schema";
1
+ import { InferExtractOptions, SchemaEnvelopeOf, SchemaSourceConfig } from "@power-plant/schema";
2
+ import { MaybePromise } from "@stryke/types/base";
2
3
 
3
- //#region ../../../node_modules/.pnpm/@stryke+types@0.12.21/node_modules/@stryke/types/dist/base.d.mts
4
- /**
5
- * Matches a value that is either of type `T` or a promise that resolves to `T`.
6
- *
7
- * @example
8
- * ```ts
9
- * type Result = MaybePromise<string>;
10
- * // string | Promise<string>
11
- * ```
12
- */
13
- type MaybePromise<T> = T | Promise<T>;
14
- /**
15
- * Matches a reducer function that takes the current state and an action, returning the next state.
16
- *
17
- * @remarks
18
- * This is the function signature used in state management libraries like Redux.
19
- *
20
- * @example
21
- * ```ts
22
- * type CounterReducer = ReducerFunction<number, { type: 'increment' | 'decrement' }>;
23
- * const reducer: CounterReducer = (state, action) => {
24
- * return action.type === 'increment' ? state + 1 : state - 1;
25
- * };
26
- * ```
27
- */
28
- //#endregion
29
4
  //#region src/types/meta.d.ts
30
5
  type MetaValue<TSpec, TOptions extends object, TValue = any> = TValue | ((spec: TSpec, options: TOptions) => MaybePromise<TValue>);
31
6
  type MetaDeprecated = true | string | {
@@ -37,7 +12,7 @@ type MetaLink = string | {
37
12
  href: string;
38
13
  description?: string;
39
14
  };
40
- interface MetaInput<TSpec, TOptions extends object> {
15
+ interface MetaConfig<TSpec, TOptions extends object> {
41
16
  /**
42
17
  * A name for the schema, which can be used to identify or reference the schema in documentation, tooling, or other contexts. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
43
18
  *
@@ -153,7 +128,7 @@ type SchemaMetaExample<TSpec> = TSpec | {
153
128
  description?: string;
154
129
  value: TSpec;
155
130
  };
156
- interface SchemaMetaInput<TSpec, TOptions extends object = any> extends MetaInput<TSpec, TOptions> {
131
+ interface SchemaMetaConfig<TSpec, TOptions extends object = any> extends MetaConfig<TSpec, TOptions> {
157
132
  /**
158
133
  * Examples of valid data for the schema. This can be a single example or an array of examples.
159
134
  */
@@ -172,17 +147,17 @@ interface SchemaMeta<TSpec, TOptions extends object = any> extends Meta<TSpec, T
172
147
  /**
173
148
  * Schema input wrapper that attaches optional contextual metadata.
174
149
  */
175
- interface SchemaInputObject<TSpec, TOptions extends object = any> {
150
+ interface SchemaConfigObject<TSpec, TOptions extends object = any> {
176
151
  /**
177
152
  * The schema that defines the structure of the specification input for the generator. This schema is used to validate the input specification and ensure that it conforms to the expected format before being processed by the generator.
178
153
  */
179
- schema: SchemaSourceInput<TSpec> | SchemaEnvelopeOf<TSpec>;
154
+ schema: SchemaSourceConfig<TSpec> | SchemaEnvelopeOf<TSpec>;
180
155
  /**
181
156
  * Optional metadata that provides contextual information for the schema.
182
157
  */
183
- meta?: SchemaMetaInput<TSpec, TOptions>;
158
+ meta?: SchemaMetaConfig<TSpec, TOptions>;
184
159
  }
185
- type InferCreateSchemaOptions<T extends SchemaSourceInput<any> | SchemaEnvelopeOf<any> | SchemaInputObject<any, any>> = T extends SchemaSourceInput<any> | SchemaEnvelopeOf<any> ? InferExtractOptions<T> : {};
160
+ type InferCreateSchemaOptions<T extends SchemaSourceConfig<any> | SchemaEnvelopeOf<any> | SchemaConfigObject<any, any>> = T extends SchemaSourceConfig<any> | SchemaEnvelopeOf<any> ? InferExtractOptions<T> : {};
186
161
  /**
187
162
  * A schema extracted from a source input, normalized to JSON Schema.
188
163
  */
@@ -201,5 +176,5 @@ interface Schema<TSpec, TOptions extends object = any> extends SchemaEnvelopeOf<
201
176
  */
202
177
  type SchemaOf<TSpec, TOptions extends object = any> = Schema<TSpec, TOptions>;
203
178
  //#endregion
204
- export { SchemaMetaExample as a, Meta as c, MetaLink as d, MetaValue as f, SchemaMeta as i, MetaDeprecated as l, Schema as n, SchemaMetaInput as o, MaybePromise as p, SchemaInputObject as r, SchemaOf as s, InferCreateSchemaOptions as t, MetaInput as u };
205
- //# sourceMappingURL=schema-xFkmOyE6.d.mts.map
179
+ export { SchemaMetaConfig as a, Meta as c, MetaLink as d, MetaValue as f, SchemaMeta as i, MetaConfig as l, Schema as n, SchemaMetaExample as o, SchemaConfigObject as r, SchemaOf as s, InferCreateSchemaOptions as t, MetaDeprecated as u };
180
+ //# sourceMappingURL=schema-DvnNqFd4.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-DvnNqFd4.d.mts","names":[],"sources":["../src/types/meta.ts","../src/types/schema.ts"],"mappings":""}