hono-takibi 0.28.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import { Z as INPUT_EXTENSIONS, m as isInputPath } from "./guard-BH6yBr0M.js";
2
+ import { _ as isInputPath, et as INPUT_EXTENSIONS } from "./guard-BNQ9WfOm.js";
3
3
  import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
4
4
  import * as NodeServices from "@effect/platform-node/NodeServices";
5
5
  import { Console, Effect, FileSystem, Option, Path, Ref, Schema, Stream } from "effect";
6
6
  import { Argument, CliError, Command, Flag } from "effect/cli";
7
7
  // package.json
8
- var version = "0.28.0";
8
+ var version = "0.30.0";
9
9
  var description = "Hono Takibi is a code generator from OpenAPI to @hono/zod-openapi";
10
10
  // src/cli/index.ts
11
11
  const COMMAND_NAME = "hono-takibi";
@@ -39,9 +39,9 @@ function loadConfig(configPath, reload) {
39
39
  function runJobs(config) {
40
40
  return Effect.gen(function* () {
41
41
  const [{ parseOpenAPI }, { FormatOptions }, { cleanSplitOutputs, makeJob, openAPI3, packageRoots }] = yield* Effect.promise(() => Promise.all([
42
- import("./openapi-tYYvoKiU.js").then((n) => n.t),
42
+ import("./openapi-DCo11_TE.js").then((n) => n.t),
43
43
  import("./format-BF7SbaMP.js").then((n) => n.r),
44
- import("./shared-CyBkG8gM.js").then((n) => n.o)
44
+ import("./shared-BBl5tC8y.js").then((n) => n.o)
45
45
  ]));
46
46
  const openAPI = yield* openAPI3(yield* parseOpenAPI(config.input), config.input);
47
47
  const jobs = makeJob(openAPI, config, yield* packageRoots(openAPI, config));
@@ -79,7 +79,7 @@ function reportJobs(config, previous) {
79
79
  onFailure: (error) => Console.error(`❌ ${error.message}`),
80
80
  onSuccess: (report) => Console.log(report)
81
81
  }));
82
- const { outsideSources } = yield* Effect.promise(() => import("./shared-CyBkG8gM.js").then((n) => n.o));
82
+ const { outsideSources } = yield* Effect.promise(() => import("./shared-BBl5tC8y.js").then((n) => n.o));
83
83
  const inputDirectory = path.dirname(path.resolve(config.input));
84
84
  return {
85
85
  inputDirectory,
@@ -207,9 +207,9 @@ function generate(args) {
207
207
  });
208
208
  if (input !== void 0 && output !== void 0) {
209
209
  const [{ parseOpenAPI }, { takibi }, { openAPI3 }] = yield* Effect.promise(() => Promise.all([
210
- import("./openapi-tYYvoKiU.js").then((n) => n.t),
211
- import("./core-D141ZWzp.js").then((n) => n.t),
212
- import("./shared-CyBkG8gM.js").then((n) => n.o)
210
+ import("./openapi-DCo11_TE.js").then((n) => n.t),
211
+ import("./core-C-wH_UxC.js").then((n) => n.t),
212
+ import("./shared-BBl5tC8y.js").then((n) => n.o)
213
213
  ]));
214
214
  const document = yield* openAPI3(yield* parseOpenAPI(input), input);
215
215
  return yield* Console.log(yield* takibi(document, output));
@@ -1,3 +1,3 @@
1
- import { t as OpenAPI } from "../../index-DvZscmYm.js";
1
+ import { t as OpenAPI } from "../../index-DN54hj9W.js";
2
2
  import { Effect } from "effect";
3
3
  export declare function docs(openAPI: OpenAPI, output: string, entry?: string, basePath?: string, curl?: boolean, baseUrl?: string): Effect.Effect<string, import("effect/PlatformError").PlatformError, import("effect/FileSystem").FileSystem>;
@@ -1 +1 @@
1
- export { t as docs } from "../../docs-CDFG1tXT.js";
1
+ export { t as docs } from "../../docs-CDp93aXs.js";
@@ -1,6 +1,6 @@
1
- import { t as OpenAPI } from "../../index-DvZscmYm.js";
1
+ import { t as OpenAPI } from "../../index-DN54hj9W.js";
2
2
  import { n as GenerateError, t as FormatError } from "../../index-sZ1C8djg.js";
3
- import { t as Grouping } from "../../index-8HyUtaew.js";
3
+ import { t as Grouping } from "../../index-nkUsldwj.js";
4
4
  declare const HOOK_CONFIGS: {
5
5
  readonly swr: {
6
6
  readonly packageName: 'swr';
@@ -1 +1 @@
1
- export { t as hooks } from "../../hooks-CKIK30qr.js";
1
+ export { t as hooks } from "../../hooks-JLvbNojU.js";
@@ -1,6 +1,6 @@
1
- import { t as OpenAPI } from "../../index-DvZscmYm.js";
1
+ import { t as OpenAPI } from "../../index-DN54hj9W.js";
2
2
  import { n as GenerateError, t as FormatError } from "../../index-sZ1C8djg.js";
3
- import { t as Grouping } from "../../index-8HyUtaew.js";
3
+ import { t as Grouping } from "../../index-nkUsldwj.js";
4
4
  import { Effect } from "effect";
5
5
  /**
6
6
  * Generates RPC client wrapper functions from OpenAPI specification.
@@ -1,7 +1,7 @@
1
- import { O as isRecord, Y as HTTP_METHODS, b as isOperationLike, v as isOpenAPIPaths } from "../../guard-BH6yBr0M.js";
1
+ import { C as isOperationLike, Q as HTTP_METHODS, j as isRecord, x as isOpenAPIPaths } from "../../guard-BNQ9WfOm.js";
2
2
  import { i as GenerateError } from "../../format-BF7SbaMP.js";
3
- import { _ as routeName, u as makeInferRequestType } from "../../utils-CDLiYepO.js";
4
- import { c as makeGroupClientName, i as parsePathItem, l as operationTags, n as makeOperationDeps, r as operationHasArgs, t as formatPath } from "../../rpc-GDi7a_Ep.js";
3
+ import { _ as routeName, u as makeInferRequestType } from "../../utils-BhQ-YVD3.js";
4
+ import { c as makeGroupClientName, i as parsePathItem, l as operationTags, n as makeOperationDeps, r as operationHasArgs, t as formatPath } from "../../rpc-B7PiQ1sR.js";
5
5
  import { t as emit } from "../../emit-CqkT9T4Q.js";
6
6
  import { Effect } from "effect";
7
7
  import { dirname } from "node:path";
@@ -1,4 +1,4 @@
1
- import { t as OpenAPI } from "../../index-DvZscmYm.js";
1
+ import { t as OpenAPI } from "../../index-DN54hj9W.js";
2
2
  import { t as FormatError } from "../../index-sZ1C8djg.js";
3
3
  import { Effect } from "effect";
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { N as isSchemaArray, S as isParameterArray, d as isHttpMethod, g as isMediaWithSchema, j as isRequestBody, v as isOpenAPIPaths, x as isParameter, y as isOperation, z as isStringRef } from "../../guard-BH6yBr0M.js";
2
- import { d as makeSafeKey, v as statusCodeToNumber, y as toIdentifierPascalCase } from "../../utils-CDLiYepO.js";
1
+ import { H as isStringRef, I as isSchemaArray, P as isRequestBody, S as isOperation, T as isParameterArray, l as isBinaryFile, m as isHttpMethod, w as isParameter, x as isOpenAPIPaths, y as isMediaWithSchema } from "../../guard-BNQ9WfOm.js";
2
+ import { d as makeSafeKey, v as statusCodeToNumber, y as toIdentifierPascalCase } from "../../utils-BhQ-YVD3.js";
3
3
  import { t as emit } from "../../emit-CqkT9T4Q.js";
4
4
  import { Effect } from "effect";
5
5
  import path from "node:path";
@@ -217,8 +217,9 @@ const PRIMITIVE_TYPE_MAP = {
217
217
  null: "null"
218
218
  };
219
219
  function makeSingleTypeString(schema, type, aliases, visited) {
220
- if (type === "string") return schema.format === "binary" ? "File" : "string";
221
- if (type === "number" || type === "integer") return schema.format === "int64" || schema.format === "uint64" || schema.format === "bigint" ? "bigint" : "number";
220
+ if (type === "string") return isBinaryFile(schema) ? "File" : "string";
221
+ if (type === "number") return "number";
222
+ if (type === "integer") return schema.format === "int64" || schema.format === "uint64" || schema.format === "bigint" ? "bigint" : "number";
222
223
  if (type === "array") return makeArrayTypeString(schema, aliases, visited);
223
224
  if (type === "object") return makeObjectTypeString(schema, aliases, visited);
224
225
  return PRIMITIVE_TYPE_MAP[type] ?? "unknown";
@@ -1,13 +1,13 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.js";
2
- import { D as isPathItemRef, E as isPathItemEntry, I as isSecurityArray, L as isSecurityScheme, N as isSchemaArray, P as isSchemaObject, Q as JSON_MEDIA_TYPE, T as isPathItem, U as COMPONENT_NAMES, V as isValidIdent, W as COMPONENT_REF_PREFIX, Y as HTTP_METHODS, a as hasRequestBodyContent, d as isHttpMethod, g as isMediaWithSchema, i as hasNumericConstraint, k as isRefObject, p as isInlineMedia, s as isCallbacks, tt as TEXT_MEDIA_TYPE, v as isOpenAPIPaths, x as isParameter, y as isOperation } from "./guard-BH6yBr0M.js";
2
+ import { A as isPathItemRef, B as isSecurityScheme, I as isSchemaArray, K as COMPONENT_NAMES, L as isSchemaObject, M as isRefObject, O as isPathItem, Q as HTTP_METHODS, S as isOperation, W as isValidIdent, a as hasNumericConstraint, g as isInlineMedia, it as TEXT_MEDIA_TYPE, k as isPathItemEntry, m as isHttpMethod, o as hasRequestBodyContent, q as COMPONENT_REF_PREFIX, tt as JSON_MEDIA_TYPE, u as isCallbacks, w as isParameter, x as isOpenAPIPaths, y as isMediaWithSchema, z as isSecurityArray } from "./guard-BNQ9WfOm.js";
3
3
  import { i as GenerateError, n as fmt } from "./format-BF7SbaMP.js";
4
- import { S as zodToOpenAPISchema, _ as routeName, a as ensureSuffix, b as uncapitalize, c as escapeRegexLiteral, d as makeSafeKey, f as makeStringLiteral, h as renderNamedImport, l as makeBarrel, p as normalizeTypes, r as cyclicNodes, v as statusCodeToNumber, x as uncapitalizeWord, y as toIdentifierPascalCase } from "./utils-CDLiYepO.js";
5
- import { A as resolvePathItem, C as makeCallback, D as makeRouteProperties, E as makeRouteEntries, O as makeWebhookEntries, S as zodToOpenAPI, T as makeRef, _ as descendantsWhere, a as responsesCode, b as parseSource, c as headersCode, d as makeExportConst, f as makeImports, g as declarationOf, h as ast, i as schemasCode, k as resolveParameter, l as makeSplitSchemaFile, m as analyzeCircularSchemas, n as routeCode, o as requestBodiesCode, p as makeModuleSpec, r as componentsCode, s as parametersCode, t as zodOpenAPIHono, u as makeConst, v as identifierNames, w as makePathItem, x as textOf, y as parseModule } from "./openapi-imhqgahL.js";
6
- import { a as entryNames, c as makeGroupClientName, l as operationTags, o as freeName, s as groupNameOf } from "./rpc-GDi7a_Ep.js";
4
+ import { S as zodToOpenAPISchema, _ as routeName, a as ensureSuffix, b as uncapitalize, c as escapeRegexLiteral, d as makeSafeKey, f as makeStringLiteral, h as renderNamedImport, l as makeBarrel, p as normalizeTypes, r as cyclicNodes, v as statusCodeToNumber, x as uncapitalizeWord, y as toIdentifierPascalCase } from "./utils-BhQ-YVD3.js";
5
+ import { A as resolveParameter, C as zodToOpenAPI, D as makeRouteEntries, E as makeRef, O as makeRouteProperties, S as textOf, T as makePathItem, _ as declarationOf, a as responsesCode, b as parseModule, c as headersCode, d as makeConst, f as makeExportConst, g as ast, h as analyzeCircularSchemas, i as schemasCode, j as resolvePathItem, k as makeWebhookEntries, l as makeSplitSchemaFile, m as makeModuleSpec, n as routeCode, o as requestBodiesCode, p as makeImports, r as componentsCode, s as parametersCode, t as zodOpenAPIHono, v as descendantsWhere, w as makeCallback, x as parseSource, y as identifierNames } from "./openapi-Bk4KBGJZ.js";
6
+ import { a as entryNames, c as makeGroupClientName, l as operationTags, o as freeName, s as groupNameOf } from "./rpc-B7PiQ1sR.js";
7
7
  import { i as readdir, n as mkdir, o as writeFile, r as readFile } from "./file-Bip_L0oR.js";
8
8
  import { t as emit } from "./emit-CqkT9T4Q.js";
9
- import { t as hooks } from "./hooks-CKIK30qr.js";
10
- import { t as docs } from "./docs-CDFG1tXT.js";
9
+ import { t as hooks } from "./hooks-JLvbNojU.js";
10
+ import { t as docs } from "./docs-CDp93aXs.js";
11
11
  import { rpc } from "./core/rpc/index.js";
12
12
  import { type } from "./core/type/index.js";
13
13
  import { Effect } from "effect";
@@ -1,5 +1,5 @@
1
- import { $ as MULTIPART_MEDIA_TYPE, N as isSchemaArray, O as isRecord, Y as HTTP_METHODS, k as isRefObject } from "./guard-BH6yBr0M.js";
2
- import { i as decodePercent, s as escapeHtml } from "./utils-CDLiYepO.js";
1
+ import { I as isSchemaArray, M as isRefObject, Q as HTTP_METHODS, j as isRecord, nt as MULTIPART_MEDIA_TYPE } from "./guard-BNQ9WfOm.js";
2
+ import { i as decodePercent, s as escapeHtml } from "./utils-BhQ-YVD3.js";
3
3
  import { n as mkdir, o as writeFile } from "./file-Bip_L0oR.js";
4
4
  import { Effect } from "effect";
5
5
  import path from "node:path";
@@ -175,7 +175,7 @@ function pickMedia(content, doc) {
175
175
  * line break would end the row.
176
176
  */
177
177
  function escapeCell(value) {
178
- return value.replaceAll("|", "\\|").replaceAll(/\r?\n/gu, "<br>");
178
+ return String(value).replaceAll("|", "\\|").replaceAll(/\r?\n/gu, "<br>");
179
179
  }
180
180
  /**
181
181
  * Wraps content in a code fence longer than any backtick run inside it, so the
@@ -300,8 +300,9 @@ function inferType(value) {
300
300
  return "object";
301
301
  }
302
302
  function baseTypeOf(schema, doc, visited) {
303
- if (Array.isArray(schema.type)) return schema.type.join(" | ");
304
- if (schema.type !== void 0) return schema.type;
303
+ if (Array.isArray(schema.type)) return schema.type.map(String).join(" | ");
304
+ if (typeof schema.type === "string") return schema.type;
305
+ if (schema.type !== void 0) return "any";
305
306
  if (isRecord(schema.properties)) return "object";
306
307
  const variants = variantsOf(schema);
307
308
  if (variants.length > 0) return [...new Set(variants.map((variant) => formatSchemaType(variant.schema, doc, visited)))].join(" | ");
@@ -1,4 +1,4 @@
1
- import { t as OpenAPI } from "../../../index-DvZscmYm.js";
1
+ import { t as OpenAPI } from "../../../index-DN54hj9W.js";
2
2
  export declare function zodOpenAPIHono(document: OpenAPI, options?: {
3
3
  readonly readonly?: boolean;
4
4
  readonly exportSchemas?: boolean;
@@ -1 +1 @@
1
- export { t as zodOpenAPIHono } from "../../../openapi-imhqgahL.js";
1
+ export { t as zodOpenAPIHono } from "../../../openapi-Bk4KBGJZ.js";
@@ -126,6 +126,32 @@ function isRefOnly(s) {
126
126
  return s.$ref !== void 0 && Object.keys(s).length === 1;
127
127
  }
128
128
  /**
129
+ * The keywords that say something about a value without constraining it: the JSON Schema
130
+ * 2020-12 §9 annotations, OpenAPI's own (`example`, `externalDocs`, `xml`) and `nullable`,
131
+ * which the caller reads as `null` being allowed. An `allOf` member of these alone describes
132
+ * the intersection and validates nothing: emitted as a schema it is `z.any()`, and
133
+ * `X.and(z.any())` is `any` (#420).
134
+ */
135
+ const ANNOTATION_KEYWORDS = /* @__PURE__ */ new Set([
136
+ "title",
137
+ "description",
138
+ "default",
139
+ "deprecated",
140
+ "readOnly",
141
+ "writeOnly",
142
+ "example",
143
+ "examples",
144
+ "externalDocs",
145
+ "xml",
146
+ "$comment",
147
+ "nullable"
148
+ ]);
149
+ /** Whether a schema carries annotations alone: no type, and no keyword that validates. */
150
+ function isAnnotationOnly(schema) {
151
+ const keys = Object.keys(schema);
152
+ return keys.length > 0 && keys.every((key) => ANNOTATION_KEYWORDS.has(key));
153
+ }
154
+ /**
129
155
  * OpenAPI 3.2 §4.25: `discriminator` "MUST NOT change the validation outcome of the
130
156
  * schema". A branch can therefore be routed by key only when the key alone already
131
157
  * decides it: a bare object head that requires the discriminating property and pins it
@@ -290,6 +316,31 @@ function isUntypedObject(schema) {
290
316
  return schema.type === void 0 && (schema.properties !== void 0 || schema.additionalProperties !== void 0) && TYPELESS_KEYWORDS.every((k) => schema[k] === void 0 || OBJECT_KEYWORDS.has(k));
291
317
  }
292
318
  /**
319
+ * Whether a string is emitted as `z.file()`: `format: binary` on a string, with no content
320
+ * encoding, media type or schema (which make it an encoded string) and no `x-codec` (which
321
+ * replaces the schema). What it hands out is a `File`, not a string: a `pattern` and a string
322
+ * `default` describe the encoded text, not the file (#413).
323
+ */
324
+ function isBinaryFile(schema) {
325
+ const types = Array.isArray(schema.type) ? schema.type : [schema.type];
326
+ return schema.format === "binary" && types.includes("string") && (schema.contentEncoding === void 0 || schema.contentEncoding === "binary") && schema.contentSchema === void 0 && schema["x-codec"] === void 0;
327
+ }
328
+ /**
329
+ * The MIME types a file is restricted to, what `z.file().mime()` takes: its
330
+ * `contentMediaType`, and the ones an `anyOf` of members that each name one carries, which
331
+ * is how `z.toJSONSchema()` writes `.mime([...])`. `undefined` when the schema names none.
332
+ */
333
+ function fileMimeTypes(schema) {
334
+ const own = schema.contentMediaType === void 0 ? [] : [schema.contentMediaType];
335
+ const listed = hasMimeAlternatives(schema) ? schema.anyOf.flatMap((member) => typeof member.contentMediaType === "string" ? [member.contentMediaType] : []) : [];
336
+ const types = [.../* @__PURE__ */ new Set([...own, ...listed])];
337
+ return types.length > 0 ? types : void 0;
338
+ }
339
+ /** Whether a schema's `anyOf` is a list of MIME types alone: `[{contentMediaType}, ...]`. */
340
+ function hasMimeAlternatives(schema) {
341
+ return schema.anyOf !== void 0 && schema.anyOf.length > 0 && schema.anyOf.every((member) => typeof member.contentMediaType === "string" && Object.keys(member).length === 1);
342
+ }
343
+ /**
293
344
  * Whether a `time` takes an offset. `time` is an RFC 3339 full-time, `12:34:56Z` or
294
345
  * `12:34:56+09:00`, and `z.iso.time()` takes neither. `x-isoOffset: false` asks for that.
295
346
  */
@@ -299,9 +350,6 @@ function isOffsetTime(schema) {
299
350
  function hasNumericConstraint(schema) {
300
351
  return schema.minimum !== void 0 || schema.maximum !== void 0 || schema.exclusiveMinimum !== void 0 || schema.exclusiveMaximum !== void 0 || schema.multipleOf !== void 0;
301
352
  }
302
- function hasNotProperty(v) {
303
- return typeof v === "object" && v !== null && "not" in v;
304
- }
305
353
  function isExamplesInput(v) {
306
354
  return typeof v === "object" && v !== null && !Array.isArray(v) && Object.values(v).every((entry) => typeof entry === "object" && entry !== null && !Array.isArray(entry));
307
355
  }
@@ -329,4 +377,4 @@ function hasNoContentResponse(operation) {
329
377
  function isInheritedName(parameter) {
330
378
  return parameter.in !== "path" && parameter.name in Object.prototype;
331
379
  }
332
- export { MULTIPART_MEDIA_TYPE as $, isRefOnly as A, isUntypedObject as B, isParameterObject as C, isPathItemRef as D, isPathItemEntry as E, isSchemaProperty as F, COMPONENT_SUFFIXES as G, ARROW_FUNCTION_PATTERN as H, isSecurityArray as I, HOOK_LIBRARIES as J, FORM_MEDIA_TYPES as K, isSecurityScheme as L, isResponses as M, isSchemaArray as N, isRecord as O, isSchemaObject as P, JSON_MEDIA_TYPE as Q, isSingleSchema as R, isParameterArray as S, isPathItem as T, COMPONENT_NAMES as U, isValidIdent as V, COMPONENT_REF_PREFIX as W, IDENTIFIER_PATTERN as X, HTTP_METHODS as Y, INPUT_EXTENSIONS as Z, isOffsetTime as _, hasRequestBodyContent as a, isOperationLike as b, isDiscriminableBranch as c, isHttpMethod as d, OCTET_STREAM_MEDIA_TYPE as et, isInheritedName as f, isMediaWithSchema as g, isMedia as h, hasNumericConstraint as i, isRequestBody as j, isRefObject as k, isExamplesInput as l, isInputPath as m, hasNoUserChain as n, hasTypelessConstraint as o, isInlineMedia as p, FORM_URLENCODED_MEDIA_TYPE as q, hasNotProperty as r, isCallbacks as s, hasNoContentResponse as t, TEXT_MEDIA_TYPE as tt, isHeader as u, isOpenAPIPaths as v, isParameterRef as w, isParameter as x, isOperation as y, isStringRef as z };
380
+ export { IDENTIFIER_PATTERN as $, isPathItemRef as A, isSecurityScheme as B, isOperationLike as C, isParameterRef as D, isParameterObject as E, isResponses as F, ARROW_FUNCTION_PATTERN as G, isStringRef as H, isSchemaArray as I, COMPONENT_SUFFIXES as J, COMPONENT_NAMES as K, isSchemaObject as L, isRefObject as M, isRefOnly as N, isPathItem as O, isRequestBody as P, HTTP_METHODS as Q, isSchemaProperty as R, isOperation as S, isParameterArray as T, isUntypedObject as U, isSingleSchema as V, isValidIdent as W, FORM_URLENCODED_MEDIA_TYPE as X, FORM_MEDIA_TYPES as Y, HOOK_LIBRARIES as Z, isInputPath as _, hasNumericConstraint as a, isOffsetTime as b, isAnnotationOnly as c, isDiscriminableBranch as d, INPUT_EXTENSIONS as et, isExamplesInput as f, isInlineMedia as g, isInheritedName as h, hasNoUserChain as i, TEXT_MEDIA_TYPE as it, isRecord as j, isPathItemEntry as k, isBinaryFile as l, isHttpMethod as m, hasMimeAlternatives as n, MULTIPART_MEDIA_TYPE as nt, hasRequestBodyContent as o, isHeader as p, COMPONENT_REF_PREFIX as q, hasNoContentResponse as r, OCTET_STREAM_MEDIA_TYPE as rt, hasTypelessConstraint as s, fileMimeTypes as t, JSON_MEDIA_TYPE as tt, isCallbacks as u, isMedia as v, isParameter as w, isOpenAPIPaths as x, isMediaWithSchema as y, isSecurityArray as z };
@@ -1,7 +1,7 @@
1
- import { O as isRecord, Y as HTTP_METHODS, b as isOperationLike, t as hasNoContentResponse, v as isOpenAPIPaths } from "./guard-BH6yBr0M.js";
1
+ import { C as isOperationLike, Q as HTTP_METHODS, j as isRecord, r as hasNoContentResponse, x as isOpenAPIPaths } from "./guard-BNQ9WfOm.js";
2
2
  import { i as GenerateError } from "./format-BF7SbaMP.js";
3
- import { _ as routeName, n as capitalize, y as toIdentifierPascalCase } from "./utils-CDLiYepO.js";
4
- import { c as makeGroupClientName, i as parsePathItem, l as operationTags, n as makeOperationDeps, r as operationHasArgs, t as formatPath } from "./rpc-GDi7a_Ep.js";
3
+ import { _ as routeName, n as capitalize, y as toIdentifierPascalCase } from "./utils-BhQ-YVD3.js";
4
+ import { c as makeGroupClientName, i as parsePathItem, l as operationTags, n as makeOperationDeps, r as operationHasArgs, t as formatPath } from "./rpc-B7PiQ1sR.js";
5
5
  import { t as emit } from "./emit-CqkT9T4Q.js";
6
6
  import { Effect } from "effect";
7
7
  import path from "node:path";
@@ -365,6 +365,7 @@ type Schema$1 = {
365
365
  readonly 'x-enum-message'?: string;
366
366
  readonly 'x-minLength-message'?: string;
367
367
  readonly 'x-maxLength-message'?: string;
368
+ readonly 'x-contentMediaType-message'?: string;
368
369
  readonly 'x-minItems-message'?: string;
369
370
  readonly 'x-maxItems-message'?: string;
370
371
  readonly 'x-minProperties-message'?: string;
@@ -1,5 +1,5 @@
1
1
  import "./index-DqcEtGVl.js";
2
- import "./index-DvZscmYm.js";
2
+ import "./index-DN54hj9W.js";
3
3
  import { Effect } from "effect";
4
4
  /**
5
5
  * The group an operation belongs to. Every operation belongs to one: the resource its path
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { J as HOOK_LIBRARIES, U as COMPONENT_NAMES, X as IDENTIFIER_PATTERN, m as isInputPath } from "./guard-BH6yBr0M.js";
1
+ import { $ as IDENTIFIER_PATTERN, K as COMPONENT_NAMES, Z as HOOK_LIBRARIES, _ as isInputPath } from "./guard-BNQ9WfOm.js";
2
2
  import { Effect, FileSystem, Schema, SchemaIssue, SchemaTransformation } from "effect";
3
3
  import { posix, resolve } from "node:path";
4
4
  import { pathToFileURL } from "node:url";