@power-plant/core 0.0.4 → 0.0.6

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 (176) hide show
  1. package/README.md +2 -2
  2. package/dist/config-B6Gr29ZK.d.cts +566 -0
  3. package/dist/config-B6Gr29ZK.d.cts.map +1 -0
  4. package/dist/config-B6Gr29ZK.d.mts +566 -0
  5. package/dist/config-B6Gr29ZK.d.mts.map +1 -0
  6. package/dist/config.cjs +1 -0
  7. package/dist/config.d.cts +34 -0
  8. package/dist/config.d.cts.map +1 -0
  9. package/dist/config.d.mts +34 -0
  10. package/dist/config.d.mts.map +1 -0
  11. package/dist/config.mjs +2 -0
  12. package/dist/config.mjs.map +1 -0
  13. package/dist/context-QCvV8cA9.d.cts +129 -0
  14. package/dist/context-QCvV8cA9.d.cts.map +1 -0
  15. package/dist/context-neyaFruu.d.mts +129 -0
  16. package/dist/context-neyaFruu.d.mts.map +1 -0
  17. package/dist/context.cjs +1 -0
  18. package/dist/context.d.cts +91 -0
  19. package/dist/context.d.cts.map +1 -0
  20. package/dist/context.d.mts +91 -0
  21. package/dist/context.d.mts.map +1 -0
  22. package/dist/context.mjs +2 -0
  23. package/dist/context.mjs.map +1 -0
  24. package/dist/define.cjs +1 -0
  25. package/dist/define.d.cts +82 -0
  26. package/dist/define.d.cts.map +1 -0
  27. package/dist/define.d.mts +82 -0
  28. package/dist/define.d.mts.map +1 -0
  29. package/dist/define.mjs +2 -0
  30. package/dist/index.cjs +1 -1
  31. package/dist/index.d.cts +7 -12
  32. package/dist/index.d.mts +7 -12
  33. package/dist/index.mjs +1 -1
  34. package/dist/type-checks-C3obf_M5.d.cts +53 -0
  35. package/dist/type-checks-C3obf_M5.d.cts.map +1 -0
  36. package/dist/type-checks-Cj1slvLD.d.mts +53 -0
  37. package/dist/type-checks-Cj1slvLD.d.mts.map +1 -0
  38. package/dist/type-checks.cjs +1 -0
  39. package/dist/type-checks.d.cts +2 -0
  40. package/dist/type-checks.d.mts +2 -0
  41. package/dist/type-checks.mjs +2 -0
  42. package/dist/type-checks.mjs.map +1 -0
  43. package/dist/types/__internal.cjs +0 -0
  44. package/dist/types/__internal.d.cts +14 -0
  45. package/dist/types/__internal.d.cts.map +1 -0
  46. package/dist/types/__internal.d.mts +14 -0
  47. package/dist/types/__internal.d.mts.map +1 -0
  48. package/dist/types/__internal.mjs +1 -0
  49. package/package.json +45 -206
  50. package/dist/create-23iLtMb_.cjs +0 -1
  51. package/dist/create-BR4IeVl4.mjs +0 -2
  52. package/dist/create-BR4IeVl4.mjs.map +0 -1
  53. package/dist/create-BqRl9d7m.d.cts +0 -19
  54. package/dist/create-BqRl9d7m.d.cts.map +0 -1
  55. package/dist/create-C-rR8nuY.d.mts +0 -23
  56. package/dist/create-C-rR8nuY.d.mts.map +0 -1
  57. package/dist/create-Cz9qVT4m.d.cts +0 -23
  58. package/dist/create-Cz9qVT4m.d.cts.map +0 -1
  59. package/dist/create-DAGPeYVI.d.cts +0 -25
  60. package/dist/create-DAGPeYVI.d.cts.map +0 -1
  61. package/dist/create-DEe398aQ.d.mts +0 -25
  62. package/dist/create-DEe398aQ.d.mts.map +0 -1
  63. package/dist/create-DUt-efk7.d.cts +0 -25
  64. package/dist/create-DUt-efk7.d.cts.map +0 -1
  65. package/dist/create-DcCu_zM3.d.mts +0 -19
  66. package/dist/create-DcCu_zM3.d.mts.map +0 -1
  67. package/dist/create-Qxy2mq7r.d.mts +0 -25
  68. package/dist/create-Qxy2mq7r.d.mts.map +0 -1
  69. package/dist/define-BPfeEA9Z.d.cts +0 -14
  70. package/dist/define-BPfeEA9Z.d.cts.map +0 -1
  71. package/dist/define-CQZ042K5.d.mts +0 -14
  72. package/dist/define-CQZ042K5.d.mts.map +0 -1
  73. package/dist/define-Dw8JgVQ1.d.mts +0 -38
  74. package/dist/define-Dw8JgVQ1.d.mts.map +0 -1
  75. package/dist/define-aWeW6VVo.d.cts +0 -38
  76. package/dist/define-aWeW6VVo.d.cts.map +0 -1
  77. package/dist/generator/create.cjs +0 -1
  78. package/dist/generator/create.d.cts +0 -2
  79. package/dist/generator/create.d.mts +0 -2
  80. package/dist/generator/create.mjs +0 -2
  81. package/dist/generator/create.mjs.map +0 -1
  82. package/dist/generator/helpers.cjs +0 -1
  83. package/dist/generator/helpers.d.cts +0 -6
  84. package/dist/generator/helpers.d.cts.map +0 -1
  85. package/dist/generator/helpers.d.mts +0 -6
  86. package/dist/generator/helpers.d.mts.map +0 -1
  87. package/dist/generator/helpers.mjs +0 -2
  88. package/dist/generator/helpers.mjs.map +0 -1
  89. package/dist/generator/index.cjs +0 -1
  90. package/dist/generator/index.d.cts +0 -2
  91. package/dist/generator/index.d.mts +0 -2
  92. package/dist/generator/index.mjs +0 -1
  93. package/dist/generator-BGkKE8HQ.d.mts +0 -61
  94. package/dist/generator-BGkKE8HQ.d.mts.map +0 -1
  95. package/dist/generator-Dq0PL5w6.d.cts +0 -61
  96. package/dist/generator-Dq0PL5w6.d.cts.map +0 -1
  97. package/dist/helpers-BqnQPaP5.d.cts +0 -13
  98. package/dist/helpers-BqnQPaP5.d.cts.map +0 -1
  99. package/dist/helpers-CgXgqnVu.d.mts +0 -13
  100. package/dist/helpers-CgXgqnVu.d.mts.map +0 -1
  101. package/dist/index-BVVgDSdq.d.cts +0 -1
  102. package/dist/index-BVVgDSdq.d.mts +0 -1
  103. package/dist/schema/create.cjs +0 -1
  104. package/dist/schema/create.d.cts +0 -2
  105. package/dist/schema/create.d.mts +0 -2
  106. package/dist/schema/create.mjs +0 -1
  107. package/dist/schema/define.cjs +0 -1
  108. package/dist/schema/define.d.cts +0 -2
  109. package/dist/schema/define.d.mts +0 -2
  110. package/dist/schema/define.mjs +0 -2
  111. package/dist/schema/helpers.cjs +0 -1
  112. package/dist/schema/helpers.d.cts +0 -2
  113. package/dist/schema/helpers.d.mts +0 -2
  114. package/dist/schema/helpers.mjs +0 -2
  115. package/dist/schema/helpers.mjs.map +0 -1
  116. package/dist/schema/index.cjs +0 -1
  117. package/dist/schema/index.d.cts +0 -4
  118. package/dist/schema/index.d.mts +0 -4
  119. package/dist/schema/index.mjs +0 -1
  120. package/dist/schema-xFkmOyE6.d.cts +0 -205
  121. package/dist/schema-xFkmOyE6.d.cts.map +0 -1
  122. package/dist/schema-xFkmOyE6.d.mts +0 -205
  123. package/dist/schema-xFkmOyE6.d.mts.map +0 -1
  124. package/dist/sink/create.cjs +0 -1
  125. package/dist/sink/create.d.cts +0 -2
  126. package/dist/sink/create.d.mts +0 -2
  127. package/dist/sink/create.mjs +0 -2
  128. package/dist/sink/create.mjs.map +0 -1
  129. package/dist/sink/define.cjs +0 -1
  130. package/dist/sink/define.d.cts +0 -37
  131. package/dist/sink/define.d.cts.map +0 -1
  132. package/dist/sink/define.d.mts +0 -37
  133. package/dist/sink/define.d.mts.map +0 -1
  134. package/dist/sink/define.mjs +0 -2
  135. package/dist/sink/define.mjs.map +0 -1
  136. package/dist/sink/helpers.cjs +0 -1
  137. package/dist/sink/helpers.d.cts +0 -13
  138. package/dist/sink/helpers.d.cts.map +0 -1
  139. package/dist/sink/helpers.d.mts +0 -13
  140. package/dist/sink/helpers.d.mts.map +0 -1
  141. package/dist/sink/helpers.mjs +0 -2
  142. package/dist/sink/helpers.mjs.map +0 -1
  143. package/dist/sink/index.cjs +0 -1
  144. package/dist/sink/index.d.cts +0 -2
  145. package/dist/sink/index.d.mts +0 -2
  146. package/dist/sink/index.mjs +0 -1
  147. package/dist/sink-CHQncb8H.d.mts +0 -58
  148. package/dist/sink-CHQncb8H.d.mts.map +0 -1
  149. package/dist/sink-DHpx94GM.d.cts +0 -58
  150. package/dist/sink-DHpx94GM.d.cts.map +0 -1
  151. package/dist/source/create.cjs +0 -1
  152. package/dist/source/create.d.cts +0 -2
  153. package/dist/source/create.d.mts +0 -2
  154. package/dist/source/create.mjs +0 -2
  155. package/dist/source/create.mjs.map +0 -1
  156. package/dist/source/define.cjs +0 -1
  157. package/dist/source/define.d.cts +0 -2
  158. package/dist/source/define.d.mts +0 -2
  159. package/dist/source/define.mjs +0 -2
  160. package/dist/source/define.mjs.map +0 -1
  161. package/dist/source/helpers.cjs +0 -1
  162. package/dist/source/helpers.d.cts +0 -13
  163. package/dist/source/helpers.d.cts.map +0 -1
  164. package/dist/source/helpers.d.mts +0 -13
  165. package/dist/source/helpers.d.mts.map +0 -1
  166. package/dist/source/helpers.mjs +0 -2
  167. package/dist/source/helpers.mjs.map +0 -1
  168. package/dist/source/index.cjs +0 -1
  169. package/dist/source/index.d.cts +0 -3
  170. package/dist/source/index.d.mts +0 -3
  171. package/dist/source/index.mjs +0 -1
  172. package/dist/source-BiOs3_-8.d.mts +0 -57
  173. package/dist/source-BiOs3_-8.d.mts.map +0 -1
  174. package/dist/source-txi0ZuzR.d.cts +0 -57
  175. package/dist/source-txi0ZuzR.d.cts.map +0 -1
  176. /package/dist/{schema/define.mjs.map → define.mjs.map} +0 -0
@@ -1,23 +0,0 @@
1
- import { i as SchemaMeta, o as SchemaMetaInput, r as SchemaInputObject, s as SchemaOf, t as InferCreateSchemaOptions } from "./schema-xFkmOyE6.mjs";
2
- import { ExtractedSchemaEnvelope, SchemaEnvelopeOf, SchemaSourceInput } from "@power-plant/schema/types";
3
-
4
- //#region src/schema/create.d.ts
5
- /**
6
- * Extracts and normalizes {@link SchemaMeta | schema metadata} from a given {@link SchemaMetaInput}. This function ensures that the metadata is in a consistent format, converting version numbers to strings and filtering out any invalid or empty tags.
7
- *
8
- * @param schema - The schema from which to extract metadata.
9
- * @param input - The schema metadata input to extract and normalize.
10
- * @returns The normalized schema metadata.
11
- */
12
- declare function extractSchemaMeta<TSpec, TOptions extends object>(schema: ExtractedSchemaEnvelope<TSpec>, input?: SchemaMetaInput<TSpec, TOptions>): SchemaMeta<TSpec, TOptions>;
13
- /**
14
- * Normalizes any accepted schema input into a concrete schema descriptor.
15
- *
16
- * @param input - The schema input to normalize.
17
- * @param options - Optional options for resolving the schema input.
18
- * @returns A promise that resolves to a normalized schema descriptor.
19
- */
20
- declare function createSchema<TSpec, TOptions extends object>(input: SchemaSourceInput<TSpec> | SchemaEnvelopeOf<TSpec> | SchemaInputObject<TSpec, TOptions>, options?: InferCreateSchemaOptions<typeof input>): Promise<SchemaOf<TSpec, TOptions>>;
21
- //#endregion
22
- export { extractSchemaMeta as n, createSchema as t };
23
- //# sourceMappingURL=create-C-rR8nuY.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-C-rR8nuY.d.mts","names":[],"sources":["../src/schema/create.ts"],"mappings":""}
@@ -1,23 +0,0 @@
1
- import { i as SchemaMeta, o as SchemaMetaInput, r as SchemaInputObject, s as SchemaOf, t as InferCreateSchemaOptions } from "./schema-xFkmOyE6.cjs";
2
- import { ExtractedSchemaEnvelope, SchemaEnvelopeOf, SchemaSourceInput } from "@power-plant/schema/types";
3
-
4
- //#region src/schema/create.d.ts
5
- /**
6
- * Extracts and normalizes {@link SchemaMeta | schema metadata} from a given {@link SchemaMetaInput}. This function ensures that the metadata is in a consistent format, converting version numbers to strings and filtering out any invalid or empty tags.
7
- *
8
- * @param schema - The schema from which to extract metadata.
9
- * @param input - The schema metadata input to extract and normalize.
10
- * @returns The normalized schema metadata.
11
- */
12
- declare function extractSchemaMeta<TSpec, TOptions extends object>(schema: ExtractedSchemaEnvelope<TSpec>, input?: SchemaMetaInput<TSpec, TOptions>): SchemaMeta<TSpec, TOptions>;
13
- /**
14
- * Normalizes any accepted schema input into a concrete schema descriptor.
15
- *
16
- * @param input - The schema input to normalize.
17
- * @param options - Optional options for resolving the schema input.
18
- * @returns A promise that resolves to a normalized schema descriptor.
19
- */
20
- declare function createSchema<TSpec, TOptions extends object>(input: SchemaSourceInput<TSpec> | SchemaEnvelopeOf<TSpec> | SchemaInputObject<TSpec, TOptions>, options?: InferCreateSchemaOptions<typeof input>): Promise<SchemaOf<TSpec, TOptions>>;
21
- //#endregion
22
- export { extractSchemaMeta as n, createSchema as t };
23
- //# sourceMappingURL=create-Cz9qVT4m.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-Cz9qVT4m.d.cts","names":[],"sources":["../src/schema/create.ts"],"mappings":";;;;;;AA8CA;;;;;iBAAgB,iBAAA,iCACd,MAAA,EAAQ,uBAAA,CAAwB,KAAA,GAChC,KAAA,GAAQ,eAAA,CAAgB,KAAA,EAAO,QAAA,IAC9B,UAAA,CAAW,KAAA,EAAO,QAAA;;;;;;;;iBAoCC,YAAA,iCACpB,KAAA,EACI,iBAAA,CAAkB,KAAA,IAClB,gBAAA,CAAiB,KAAA,IACjB,iBAAA,CAAkB,KAAA,EAAO,QAAA,GAC7B,OAAA,GAAS,wBAAA,QAAgC,KAAA,IACxC,OAAA,CAAQ,QAAA,CAAS,KAAA,EAAO,QAAA"}
@@ -1,25 +0,0 @@
1
- import { s as SchemaOf } from "./schema-xFkmOyE6.cjs";
2
- import { i as SinkInput, n as Sink, o as SinkMeta, s as SinkMetaInput, t as InferCreateSinkOptions } from "./sink-DHpx94GM.cjs";
3
- import { ExtractedSchemaEnvelope } from "@power-plant/schema/types";
4
-
5
- //#region src/sink/create.d.ts
6
- /**
7
- * Extracts and normalizes {@link SinkMeta | sink metadata} from a given {@link SinkMetaInput}. 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 that the sink input is expected to conform to.
10
- * @param input - The sink metadata input to extract and normalize.
11
- * @returns The normalized sink metadata.
12
- */
13
- declare function extractSinkMeta<TSpec, TOptions extends object>(schema: ExtractedSchemaEnvelope<TSpec> | SchemaOf<TSpec, TOptions>, input?: SinkMetaInput<TSpec, TOptions>): SinkMeta<TSpec, TOptions>;
14
- /**
15
- * Normalizes any accepted sink input into a concrete sink descriptor.
16
- *
17
- * @param schema - The schema that the sink input is expected to conform to.
18
- * @param input - The sink input to normalize.
19
- * @param options - Optional options for resolving the sink input.
20
- * @returns A promise that resolves to a normalized sink descriptor.
21
- */
22
- declare function createSink<TSpec, TOptions extends object, TReturns = void>(schema: SchemaOf<TSpec, TOptions>, input: SinkInput<TSpec, TOptions, TReturns>, options?: InferCreateSinkOptions<typeof input>): Promise<Sink<TSpec, TOptions, TReturns>>;
23
- //#endregion
24
- export { extractSinkMeta as n, createSink as t };
25
- //# sourceMappingURL=create-DAGPeYVI.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-DAGPeYVI.d.cts","names":[],"sources":["../src/sink/create.ts"],"mappings":";;;;;;;AA2CA;;;;;iBAAgB,eAAA,iCACd,MAAA,EAAQ,uBAAA,CAAwB,KAAA,IAAS,QAAA,CAAS,KAAA,EAAO,QAAA,GACzD,KAAA,GAAQ,aAAA,CAAc,KAAA,EAAO,QAAA,IAC5B,QAAA,CAAS,KAAA,EAAO,QAAA;;;;;;;;;iBAoCG,UAAA,kDAKpB,MAAA,EAAQ,QAAA,CAAS,KAAA,EAAO,QAAA,GACxB,KAAA,EAAO,SAAA,CAAU,KAAA,EAAO,QAAA,EAAU,QAAA,GAClC,OAAA,GAAS,sBAAA,QAA8B,KAAA,IACtC,OAAA,CAAQ,IAAA,CAAK,KAAA,EAAO,QAAA,EAAU,QAAA"}
@@ -1,25 +0,0 @@
1
- import { s as SchemaOf } from "./schema-xFkmOyE6.mjs";
2
- import { i as SinkInput, n as Sink, o as SinkMeta, s as SinkMetaInput, t as InferCreateSinkOptions } from "./sink-CHQncb8H.mjs";
3
- import { ExtractedSchemaEnvelope } from "@power-plant/schema/types";
4
-
5
- //#region src/sink/create.d.ts
6
- /**
7
- * Extracts and normalizes {@link SinkMeta | sink metadata} from a given {@link SinkMetaInput}. 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 that the sink input is expected to conform to.
10
- * @param input - The sink metadata input to extract and normalize.
11
- * @returns The normalized sink metadata.
12
- */
13
- declare function extractSinkMeta<TSpec, TOptions extends object>(schema: ExtractedSchemaEnvelope<TSpec> | SchemaOf<TSpec, TOptions>, input?: SinkMetaInput<TSpec, TOptions>): SinkMeta<TSpec, TOptions>;
14
- /**
15
- * Normalizes any accepted sink input into a concrete sink descriptor.
16
- *
17
- * @param schema - The schema that the sink input is expected to conform to.
18
- * @param input - The sink input to normalize.
19
- * @param options - Optional options for resolving the sink input.
20
- * @returns A promise that resolves to a normalized sink descriptor.
21
- */
22
- declare function createSink<TSpec, TOptions extends object, TReturns = void>(schema: SchemaOf<TSpec, TOptions>, input: SinkInput<TSpec, TOptions, TReturns>, options?: InferCreateSinkOptions<typeof input>): Promise<Sink<TSpec, TOptions, TReturns>>;
23
- //#endregion
24
- export { extractSinkMeta as n, createSink as t };
25
- //# sourceMappingURL=create-DEe398aQ.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-DEe398aQ.d.mts","names":[],"sources":["../src/sink/create.ts"],"mappings":""}
@@ -1,25 +0,0 @@
1
- import { s as SchemaOf } from "./schema-xFkmOyE6.cjs";
2
- import { i as SourceInput, n as Source, o as SourceMeta, s as SourceMetaInput, t as InferCreateSourceOptions } from "./source-txi0ZuzR.cjs";
3
- import { ExtractedSchemaEnvelope } from "@power-plant/schema/types";
4
-
5
- //#region src/source/create.d.ts
6
- /**
7
- * Extracts and normalizes {@link SourceMeta | source metadata} from a given {@link SourceMetaInput}. 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 that the source input is expected to conform to.
10
- * @param input - The source metadata input to extract and normalize.
11
- * @returns The normalized source metadata.
12
- */
13
- declare function extractSourceMeta<TSpec, TOptions extends object>(schema: ExtractedSchemaEnvelope<TSpec> | SchemaOf<TSpec, TOptions>, input?: SourceMetaInput<TSpec, TOptions>): SourceMeta<TSpec, TOptions>;
14
- /**
15
- * Normalizes any accepted source input into a concrete source descriptor.
16
- *
17
- * @param schema - The schema that the source input is expected to conform to.
18
- * @param input - The source input to normalize.
19
- * @param options - Optional options for resolving the source input.
20
- * @returns A promise that resolves to a normalized source descriptor.
21
- */
22
- declare function createSource<TSpec, TOptions extends object>(schema: SchemaOf<TSpec, TOptions>, input: SourceInput<TSpec, TOptions>, options?: InferCreateSourceOptions<typeof input>): Promise<Source<TSpec, TOptions>>;
23
- //#endregion
24
- export { extractSourceMeta as n, createSource as t };
25
- //# sourceMappingURL=create-DUt-efk7.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-DUt-efk7.d.cts","names":[],"sources":["../src/source/create.ts"],"mappings":";;;;;;;AA2CA;;;;;iBAAgB,iBAAA,iCACd,MAAA,EAAQ,uBAAA,CAAwB,KAAA,IAAS,QAAA,CAAS,KAAA,EAAO,QAAA,GACzD,KAAA,GAAQ,eAAA,CAAgB,KAAA,EAAO,QAAA,IAC9B,UAAA,CAAW,KAAA,EAAO,QAAA;;;;;;;;;iBAoCC,YAAA,iCACpB,MAAA,EAAQ,QAAA,CAAS,KAAA,EAAO,QAAA,GACxB,KAAA,EAAO,WAAA,CAAY,KAAA,EAAO,QAAA,GAC1B,OAAA,GAAS,wBAAA,QAAgC,KAAA,IACxC,OAAA,CAAQ,MAAA,CAAO,KAAA,EAAO,QAAA"}
@@ -1,19 +0,0 @@
1
- import { a as InferCreateGeneratorOptions, n as GeneratorInput, t as Generator } from "./generator-BGkKE8HQ.mjs";
2
-
3
- //#region src/generator/create.d.ts
4
- /**
5
- * Creates a generator from raw schema/source/sink inputs and resolves all descriptors.
6
- *
7
- * @remarks
8
- * This function is used to create a generator from raw schema, source, and sink inputs. It resolves all descriptors and returns a fully constructed generator that can be used to generate output based on the provided schema and options.
9
- *
10
- * @template TSpec - The type of the specification that the generator will produce.
11
- * @template TOptions - The type of the options that will be passed to the generator during generation.
12
- * @param input - The generator input containing schema, source, sink, and optional meta information.
13
- * @param options - Optional extraction options for schema, source, and sink.
14
- * @returns A promise that resolves to a fully constructed generator.
15
- */
16
- declare function createGenerator<TSpec, TOptions extends object, TReturns = void>(input: GeneratorInput<TSpec, TOptions, TReturns>, options?: InferCreateGeneratorOptions<typeof input>): Promise<Generator<TSpec, TOptions, TReturns>>;
17
- //#endregion
18
- export { createGenerator as t };
19
- //# sourceMappingURL=create-DcCu_zM3.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-DcCu_zM3.d.mts","names":[],"sources":["../src/generator/create.ts"],"mappings":""}
@@ -1,25 +0,0 @@
1
- import { s as SchemaOf } from "./schema-xFkmOyE6.mjs";
2
- import { i as SourceInput, n as Source, o as SourceMeta, s as SourceMetaInput, t as InferCreateSourceOptions } from "./source-BiOs3_-8.mjs";
3
- import { ExtractedSchemaEnvelope } from "@power-plant/schema/types";
4
-
5
- //#region src/source/create.d.ts
6
- /**
7
- * Extracts and normalizes {@link SourceMeta | source metadata} from a given {@link SourceMetaInput}. 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 that the source input is expected to conform to.
10
- * @param input - The source metadata input to extract and normalize.
11
- * @returns The normalized source metadata.
12
- */
13
- declare function extractSourceMeta<TSpec, TOptions extends object>(schema: ExtractedSchemaEnvelope<TSpec> | SchemaOf<TSpec, TOptions>, input?: SourceMetaInput<TSpec, TOptions>): SourceMeta<TSpec, TOptions>;
14
- /**
15
- * Normalizes any accepted source input into a concrete source descriptor.
16
- *
17
- * @param schema - The schema that the source input is expected to conform to.
18
- * @param input - The source input to normalize.
19
- * @param options - Optional options for resolving the source input.
20
- * @returns A promise that resolves to a normalized source descriptor.
21
- */
22
- declare function createSource<TSpec, TOptions extends object>(schema: SchemaOf<TSpec, TOptions>, input: SourceInput<TSpec, TOptions>, options?: InferCreateSourceOptions<typeof input>): Promise<Source<TSpec, TOptions>>;
23
- //#endregion
24
- export { extractSourceMeta as n, createSource as t };
25
- //# sourceMappingURL=create-Qxy2mq7r.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-Qxy2mq7r.d.mts","names":[],"sources":["../src/source/create.ts"],"mappings":""}
@@ -1,14 +0,0 @@
1
- import { r as SchemaInputObject } from "./schema-xFkmOyE6.cjs";
2
- import { SchemaEnvelopeOf, SchemaSourceInput } from "@power-plant/schema/types";
3
-
4
- //#region src/schema/define.d.ts
5
- /**
6
- * Defines a schema input object. If the provided schema is already a schema input object, it will be returned as-is. Otherwise, it will be wrapped in an object with a `schema` property.
7
- *
8
- * @param schema - The schema input to define. This can be either a schema source input, a schema envelope, or a schema input object.
9
- * @returns A schema input object that contains the provided schema. If the input was already a schema input object, it will be returned unchanged.
10
- */
11
- declare function defineSchema<TSpec, TOptions extends object>(schema: SchemaSourceInput<TSpec> | SchemaEnvelopeOf<TSpec> | SchemaInputObject<TSpec, TOptions>): SchemaInputObject<TSpec, TOptions>;
12
- //#endregion
13
- export { defineSchema as t };
14
- //# sourceMappingURL=define-BPfeEA9Z.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"define-BPfeEA9Z.d.cts","names":[],"sources":["../src/schema/define.ts"],"mappings":";;;;;;AA+BA;;;;iBAAgB,YAAA,iCACd,MAAA,EACI,iBAAA,CAAkB,KAAA,IAClB,gBAAA,CAAiB,KAAA,IACjB,iBAAA,CAAkB,KAAA,EAAO,QAAA,IAC5B,iBAAA,CAAkB,KAAA,EAAO,QAAA"}
@@ -1,14 +0,0 @@
1
- import { r as SchemaInputObject } from "./schema-xFkmOyE6.mjs";
2
- import { SchemaEnvelopeOf, SchemaSourceInput } from "@power-plant/schema/types";
3
-
4
- //#region src/schema/define.d.ts
5
- /**
6
- * Defines a schema input object. If the provided schema is already a schema input object, it will be returned as-is. Otherwise, it will be wrapped in an object with a `schema` property.
7
- *
8
- * @param schema - The schema input to define. This can be either a schema source input, a schema envelope, or a schema input object.
9
- * @returns A schema input object that contains the provided schema. If the input was already a schema input object, it will be returned unchanged.
10
- */
11
- declare function defineSchema<TSpec, TOptions extends object>(schema: SchemaSourceInput<TSpec> | SchemaEnvelopeOf<TSpec> | SchemaInputObject<TSpec, TOptions>): SchemaInputObject<TSpec, TOptions>;
12
- //#endregion
13
- export { defineSchema as t };
14
- //# sourceMappingURL=define-CQZ042K5.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"define-CQZ042K5.d.mts","names":[],"sources":["../src/schema/define.ts"],"mappings":""}
@@ -1,38 +0,0 @@
1
- import { a as SourceInputObject, i as SourceInput } from "./source-BiOs3_-8.mjs";
2
-
3
- //#region src/source/define.d.ts
4
- /**
5
- * Defines a source input object. If the provided source is already a source input object, it will be returned as-is. Otherwise, it will be wrapped in an object with a `source` property.
6
- *
7
- * @example
8
- * ```ts
9
- * import { defineSource } from "@power-plant/core";
10
- *
11
- * // Define a source from a source function
12
- * export default defineSource((options) => {
13
- * // Your source logic here
14
- * });
15
- *
16
- * // Define a source from an existing source input object
17
- * export default defineSource({
18
- * meta: {
19
- * name: "My Source",
20
- * version: "1.0.0",
21
- * description: "A source that does something.",
22
- * },
23
- * schema: z.object({
24
- * // Your schema definition here
25
- * }),
26
- * source: (options) => {
27
- * // Your source logic here
28
- * },
29
- * });
30
- * ```
31
- *
32
- * @param source - The source input to define. This can be either a source input object or a source function.
33
- * @returns A source input object that contains the provided source. If the input was already a source input object, it will be returned unchanged.
34
- */
35
- declare function defineSource<TSpec, TOptions extends object>(source: SourceInput<TSpec, TOptions>): SourceInputObject<TSpec, TOptions>;
36
- //#endregion
37
- export { defineSource as t };
38
- //# sourceMappingURL=define-Dw8JgVQ1.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"define-Dw8JgVQ1.d.mts","names":[],"sources":["../src/source/define.ts"],"mappings":""}
@@ -1,38 +0,0 @@
1
- import { a as SourceInputObject, i as SourceInput } from "./source-txi0ZuzR.cjs";
2
-
3
- //#region src/source/define.d.ts
4
- /**
5
- * Defines a source input object. If the provided source is already a source input object, it will be returned as-is. Otherwise, it will be wrapped in an object with a `source` property.
6
- *
7
- * @example
8
- * ```ts
9
- * import { defineSource } from "@power-plant/core";
10
- *
11
- * // Define a source from a source function
12
- * export default defineSource((options) => {
13
- * // Your source logic here
14
- * });
15
- *
16
- * // Define a source from an existing source input object
17
- * export default defineSource({
18
- * meta: {
19
- * name: "My Source",
20
- * version: "1.0.0",
21
- * description: "A source that does something.",
22
- * },
23
- * schema: z.object({
24
- * // Your schema definition here
25
- * }),
26
- * source: (options) => {
27
- * // Your source logic here
28
- * },
29
- * });
30
- * ```
31
- *
32
- * @param source - The source input to define. This can be either a source input object or a source function.
33
- * @returns A source input object that contains the provided source. If the input was already a source input object, it will be returned unchanged.
34
- */
35
- declare function defineSource<TSpec, TOptions extends object>(source: SourceInput<TSpec, TOptions>): SourceInputObject<TSpec, TOptions>;
36
- //#endregion
37
- export { defineSource as t };
38
- //# sourceMappingURL=define-aWeW6VVo.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"define-aWeW6VVo.d.cts","names":[],"sources":["../src/source/define.ts"],"mappings":";;;;;AAoDA;;;;;;;;;;;;;;;;;;;;;AAEoC;;;;;;;;iBAFpB,YAAA,iCACd,MAAA,EAAQ,WAAA,CAAY,KAAA,EAAO,QAAA,IAC1B,iBAAA,CAAkB,KAAA,EAAO,QAAA"}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../create-23iLtMb_.cjs"),t=require("../sink/create.cjs"),n=require("../source/create.cjs"),r=require("./helpers.cjs");let i=require("@stryke/resolve/load"),a=require("@stryke/type-checks/is-function");async function o(o,s={}){let c;c=r.isGeneratorInputObject(o)?o:await(0,i.load)(o,s);let l=await e.t(c.schema,s),[u,d]=await Promise.all([n.createSource(l,c.source,s),t.createSink(l,c.sink,s)]);return{meta:c.meta,schema:l,source:u,sink:d,generate:async e=>{let t=(0,a.isFunction)(u.source)?await u.source(e):u.source,n=typeof c.meta?.description==`function`?c.meta.description(t):c.meta?.description;return n&&console.log(`Generating ${n}...`),d.sink(t,e)}}}exports.createGenerator=o;
@@ -1,2 +0,0 @@
1
- import { t as createGenerator } from "../create-BqRl9d7m.cjs";
2
- export { createGenerator };
@@ -1,2 +0,0 @@
1
- import { t as createGenerator } from "../create-DcCu_zM3.mjs";
2
- export { createGenerator };
@@ -1,2 +0,0 @@
1
- import{t as e}from"../create-BR4IeVl4.mjs";import{createSink as t}from"../sink/create.mjs";import{createSource as n}from"../source/create.mjs";import{isGeneratorInputObject as r}from"./helpers.mjs";import{load as i}from"@stryke/resolve/load";import{isFunction as a}from"@stryke/type-checks/is-function";async function o(o,s={}){let c;c=r(o)?o:await i(o,s);let l=await e(c.schema,s),[u,d]=await Promise.all([n(l,c.source,s),t(l,c.sink,s)]);return{meta:c.meta,schema:l,source:u,sink:d,generate:async e=>{let t=a(u.source)?await u.source(e):u.source,n=typeof c.meta?.description==`function`?c.meta.description(t):c.meta?.description;return n&&console.log(`Generating ${n}...`),d.sink(t,e)}}}export{o as createGenerator};
2
- //# sourceMappingURL=create.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.mjs","names":[],"sources":[],"mappings":""}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@stryke/type-checks/is-set-object");function t(t){return(0,e.isSetObject)(t)&&`schema`in t&&`source`in t&&`sink`in t}exports.isGeneratorInputObject=t;
@@ -1,6 +0,0 @@
1
- import { r as GeneratorInputObject } from "../generator-Dq0PL5w6.cjs";
2
- //#region src/generator/helpers.d.ts
3
- declare function isGeneratorInputObject<TSpec, TOptions extends object, TReturns = void>(input: unknown): input is GeneratorInputObject<TSpec, TOptions, TReturns>;
4
- //#endregion
5
- export { isGeneratorInputObject };
6
- //# sourceMappingURL=helpers.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/generator/helpers.ts"],"mappings":";;iBAqBgB,sBAAA,kDAId,KAAA,YAAiB,KAAA,IAAS,oBAAA,CAAqB,KAAA,EAAO,QAAA,EAAU,QAAA"}
@@ -1,6 +0,0 @@
1
- import { r as GeneratorInputObject } from "../generator-BGkKE8HQ.mjs";
2
- //#region src/generator/helpers.d.ts
3
- declare function isGeneratorInputObject<TSpec, TOptions extends object, TReturns = void>(input: unknown): input is GeneratorInputObject<TSpec, TOptions, TReturns>;
4
- //#endregion
5
- export { isGeneratorInputObject };
6
- //# sourceMappingURL=helpers.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/generator/helpers.ts"],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{isSetObject as e}from"@stryke/type-checks/is-set-object";function t(t){return e(t)&&`schema`in t&&`source`in t&&`sink`in t}export{t as isGeneratorInputObject};
2
- //# sourceMappingURL=helpers.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.mjs","names":[],"sources":[],"mappings":""}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./create.cjs");exports.createGenerator=e.createGenerator;
@@ -1,2 +0,0 @@
1
- import { t as createGenerator } from "../create-BqRl9d7m.cjs";
2
- export { createGenerator };
@@ -1,2 +0,0 @@
1
- import { t as createGenerator } from "../create-DcCu_zM3.mjs";
2
- export { createGenerator };
@@ -1 +0,0 @@
1
- import{createGenerator as e}from"./create.mjs";export{e as createGenerator};
@@ -1,61 +0,0 @@
1
- import { s as SchemaOf } from "./schema-xFkmOyE6.mjs";
2
- import { i as SinkInput, n as Sink } from "./sink-CHQncb8H.mjs";
3
- import { i as SourceInput, n as Source } from "./source-BiOs3_-8.mjs";
4
- import { SchemaInput } from "@power-plant/schema";
5
- import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
6
-
7
- //#region src/types/generator.d.ts
8
- interface GeneratorMeta<TSpec, TOptions extends object> {
9
- /**
10
- * A string description (or a function that returns a string) outlining the purpose or behavior of the generator.
11
- */
12
- description?: string | ((spec: TSpec) => string);
13
- }
14
- interface GeneratorInputObject<TSpec, TOptions extends object, TReturns = void> {
15
- /**
16
- * Optional metadata about the generator, such as a description of the output it produces.
17
- */
18
- meta?: GeneratorMeta<TSpec, TOptions>;
19
- /**
20
- * The schema input that defines the structure of the specification object for this generator.
21
- */
22
- schema: SchemaInput<TSpec>;
23
- /**
24
- * The source input for the generator specification.
25
- */
26
- source: SourceInput<TSpec, TOptions>;
27
- /**
28
- * The sink input that consumes generated output.
29
- */
30
- sink: SinkInput<TSpec, TOptions, TReturns>;
31
- }
32
- type GeneratorInput<TSpec, TOptions extends object, TReturns = void> = LoadInput | GeneratorInputObject<TSpec, TOptions, TReturns>;
33
- type InferCreateGeneratorOptions<T extends GeneratorInput<any, any, any>> = T extends LoadInput ? InferLoadOptions<T> : {};
34
- interface Generator<TSpec, TOptions extends object, TReturns = void> {
35
- /**
36
- * Optional metadata about the generator, such as a description of the output it produces.
37
- */
38
- meta?: GeneratorMeta<TSpec, TOptions>;
39
- /**
40
- * The schema input that defines the structure of the specification object for this generator.
41
- */
42
- schema: SchemaOf<TSpec, TOptions>;
43
- /**
44
- * The source 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.
45
- */
46
- source: Source<TSpec, TOptions>;
47
- /**
48
- * The sink of the generator, which can be used to specify where the generator sends its output data. This can be defined as a function that takes the specification and returns a value, or it can be a static value.
49
- */
50
- sink: Sink<TSpec, TOptions, TReturns>;
51
- /**
52
- * The generate function that executes the generator logic, taking in options and producing output based on the source and sink definitions.
53
- *
54
- * @param options - The options to be passed to the generator, which can be used to influence the generation process.
55
- * @returns A promise that resolves when the generation process is complete.
56
- */
57
- generate: (options: TOptions) => Promise<TReturns>;
58
- }
59
- //#endregion
60
- export { InferCreateGeneratorOptions as a, GeneratorMeta as i, GeneratorInput as n, GeneratorInputObject as r, Generator as t };
61
- //# sourceMappingURL=generator-BGkKE8HQ.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator-BGkKE8HQ.d.mts","names":[],"sources":["../src/types/generator.ts"],"mappings":""}
@@ -1,61 +0,0 @@
1
- import { s as SchemaOf } from "./schema-xFkmOyE6.cjs";
2
- import { i as SinkInput, n as Sink } from "./sink-DHpx94GM.cjs";
3
- import { i as SourceInput, n as Source } from "./source-txi0ZuzR.cjs";
4
- import { SchemaInput } from "@power-plant/schema";
5
- import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
6
-
7
- //#region src/types/generator.d.ts
8
- interface GeneratorMeta<TSpec, TOptions extends object> {
9
- /**
10
- * A string description (or a function that returns a string) outlining the purpose or behavior of the generator.
11
- */
12
- description?: string | ((spec: TSpec) => string);
13
- }
14
- interface GeneratorInputObject<TSpec, TOptions extends object, TReturns = void> {
15
- /**
16
- * Optional metadata about the generator, such as a description of the output it produces.
17
- */
18
- meta?: GeneratorMeta<TSpec, TOptions>;
19
- /**
20
- * The schema input that defines the structure of the specification object for this generator.
21
- */
22
- schema: SchemaInput<TSpec>;
23
- /**
24
- * The source input for the generator specification.
25
- */
26
- source: SourceInput<TSpec, TOptions>;
27
- /**
28
- * The sink input that consumes generated output.
29
- */
30
- sink: SinkInput<TSpec, TOptions, TReturns>;
31
- }
32
- type GeneratorInput<TSpec, TOptions extends object, TReturns = void> = LoadInput | GeneratorInputObject<TSpec, TOptions, TReturns>;
33
- type InferCreateGeneratorOptions<T extends GeneratorInput<any, any, any>> = T extends LoadInput ? InferLoadOptions<T> : {};
34
- interface Generator<TSpec, TOptions extends object, TReturns = void> {
35
- /**
36
- * Optional metadata about the generator, such as a description of the output it produces.
37
- */
38
- meta?: GeneratorMeta<TSpec, TOptions>;
39
- /**
40
- * The schema input that defines the structure of the specification object for this generator.
41
- */
42
- schema: SchemaOf<TSpec, TOptions>;
43
- /**
44
- * The source 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.
45
- */
46
- source: Source<TSpec, TOptions>;
47
- /**
48
- * The sink of the generator, which can be used to specify where the generator sends its output data. This can be defined as a function that takes the specification and returns a value, or it can be a static value.
49
- */
50
- sink: Sink<TSpec, TOptions, TReturns>;
51
- /**
52
- * The generate function that executes the generator logic, taking in options and producing output based on the source and sink definitions.
53
- *
54
- * @param options - The options to be passed to the generator, which can be used to influence the generation process.
55
- * @returns A promise that resolves when the generation process is complete.
56
- */
57
- generate: (options: TOptions) => Promise<TReturns>;
58
- }
59
- //#endregion
60
- export { InferCreateGeneratorOptions as a, GeneratorMeta as i, GeneratorInput as n, GeneratorInputObject as r, Generator as t };
61
- //# sourceMappingURL=generator-Dq0PL5w6.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator-Dq0PL5w6.d.cts","names":[],"sources":["../src/types/generator.ts"],"mappings":";;;;;;;UAyBiB,aAAA;;AAAjB;;EAIE,WAAA,cAAyB,IAAA,EAAM,KAAK;AAAA;AAAA,UAGrB,oBAAA;EAPqB;;;EAepC,IAAA,GAAO,aAAA,CAAc,KAAA,EAAO,QAAA;EAXQ;AAAA;AAGtC;EAaE,MAAA,EAAQ,WAAA,CAAY,KAAA;EAbe;;;EAkBnC,MAAA,EAAQ,WAAA,CAAY,KAAA,EAAO,QAAA;EALP;;;EAUpB,IAAA,EAAM,SAAA,CAAU,KAAA,EAAO,QAAA,EAAU,QAAA;AAAA;AAAA,KAGvB,cAAA,oDACR,SAAA,GACA,oBAAA,CAAqB,KAAA,EAAO,QAAA,EAAU,QAAA;AAAA,KAE9B,2BAAA,WACA,cAAA,mBACR,CAAA,SAAU,SAAA,GACV,gBAAA,CAAiB,CAAA;AAAA,UAIJ,SAAA;EAdT;;;EAkBN,IAAA,GAAO,aAAA,CAAc,KAAA,EAAO,QAAA;EAvC5B;;;EA4CA,MAAA,EAAQ,QAAA,CAAS,KAAA,EAAO,QAAA;EAtCH;;;EA2CrB,MAAA,EAAQ,MAAA,CAAO,KAAA,EAAO,QAAA;EAtCF;;;EA2CpB,IAAA,EAAM,IAAA,CAAK,KAAA,EAAO,QAAA,EAAU,QAAA;EAtCD;;;;;;EA8C3B,QAAA,GAAW,OAAA,EAAS,QAAA,KAAa,OAAA,CAAQ,QAAA;AAAA"}
@@ -1,13 +0,0 @@
1
- import { r as SchemaInputObject } from "./schema-xFkmOyE6.cjs";
2
-
3
- //#region src/schema/helpers.d.ts
4
- /**
5
- * Checks if the provided input is a {@link SchemaInputObject}.
6
- *
7
- * @param input - The input to check.
8
- * @returns True if the input is a {@link SchemaInputObject}, false otherwise.
9
- */
10
- declare function isSchemaInputObject<TSpec, TOptions extends object>(input: unknown): input is SchemaInputObject<TSpec, TOptions>;
11
- //#endregion
12
- export { isSchemaInputObject as t };
13
- //# sourceMappingURL=helpers-BqnQPaP5.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers-BqnQPaP5.d.cts","names":[],"sources":["../src/schema/helpers.ts"],"mappings":";;;;;AA2BA;;;;iBAAgB,mBAAA,iCACd,KAAA,YACC,KAAA,IAAS,iBAAA,CAAkB,KAAA,EAAO,QAAA"}
@@ -1,13 +0,0 @@
1
- import { r as SchemaInputObject } from "./schema-xFkmOyE6.mjs";
2
-
3
- //#region src/schema/helpers.d.ts
4
- /**
5
- * Checks if the provided input is a {@link SchemaInputObject}.
6
- *
7
- * @param input - The input to check.
8
- * @returns True if the input is a {@link SchemaInputObject}, false otherwise.
9
- */
10
- declare function isSchemaInputObject<TSpec, TOptions extends object>(input: unknown): input is SchemaInputObject<TSpec, TOptions>;
11
- //#endregion
12
- export { isSchemaInputObject as t };
13
- //# sourceMappingURL=helpers-CgXgqnVu.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers-CgXgqnVu.d.mts","names":[],"sources":["../src/schema/helpers.ts"],"mappings":""}
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../create-23iLtMb_.cjs");exports.createSchema=e.t,exports.extractSchemaMeta=e.n;
@@ -1,2 +0,0 @@
1
- import { n as extractSchemaMeta, t as createSchema } from "../create-Cz9qVT4m.cjs";
2
- export { createSchema, extractSchemaMeta };
@@ -1,2 +0,0 @@
1
- import { n as extractSchemaMeta, t as createSchema } from "../create-C-rR8nuY.mjs";
2
- export { createSchema, extractSchemaMeta };
@@ -1 +0,0 @@
1
- import{n as e,t}from"../create-BR4IeVl4.mjs";export{t as createSchema,e as extractSchemaMeta};
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./helpers.cjs");function t(t){return e.isSchemaInputObject(t)?t:{schema:t}}exports.defineSchema=t;
@@ -1,2 +0,0 @@
1
- import { t as defineSchema } from "../define-BPfeEA9Z.cjs";
2
- export { defineSchema };
@@ -1,2 +0,0 @@
1
- import { t as defineSchema } from "../define-CQZ042K5.mjs";
2
- export { defineSchema };
@@ -1,2 +0,0 @@
1
- import{isSchemaInputObject as e}from"./helpers.mjs";function t(t){return e(t)?t:{schema:t}}export{t as defineSchema};
2
- //# sourceMappingURL=define.mjs.map
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@stryke/type-checks/is-set-object");function t(t){return(0,e.isSetObject)(t)&&`schema`in t&&t.schema!==void 0}exports.isSchemaInputObject=t;
@@ -1,2 +0,0 @@
1
- import { t as isSchemaInputObject } from "../helpers-BqnQPaP5.cjs";
2
- export { isSchemaInputObject };