@webpieces/openapi-generator 0.4.938 → 0.4.940
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/README.md +47 -1
- package/package.json +3 -3
- package/src/cli/OpenApiCli.js +2 -2
- package/src/cli/OpenApiCli.js.map +1 -1
- package/src/emit/ArtifactWriter.js +9 -0
- package/src/emit/ArtifactWriter.js.map +1 -1
- package/src/generate/DocLinkGuard.d.ts +46 -0
- package/src/generate/DocLinkGuard.js +109 -0
- package/src/generate/DocLinkGuard.js.map +1 -0
- package/src/generate/DocumentSelection.d.ts +14 -0
- package/src/generate/DocumentSelection.js +22 -4
- package/src/generate/DocumentSelection.js.map +1 -1
- package/src/generate/InlinedWrappers.d.ts +34 -0
- package/src/generate/InlinedWrappers.js +148 -0
- package/src/generate/InlinedWrappers.js.map +1 -0
- package/src/generate/OpenApiGenerator.d.ts +16 -0
- package/src/generate/OpenApiGenerator.js +63 -8
- package/src/generate/OpenApiGenerator.js.map +1 -1
- package/src/generate/OperationRenderer.d.ts +23 -6
- package/src/generate/OperationRenderer.js +27 -12
- package/src/generate/OperationRenderer.js.map +1 -1
- package/src/generate/SchemaRenderer.d.ts +31 -1
- package/src/generate/SchemaRenderer.js +48 -5
- package/src/generate/SchemaRenderer.js.map +1 -1
- package/src/index.d.ts +2 -1
- package/src/index.js +3 -2
- package/src/index.js.map +1 -1
- package/src/manifest/ManifestLoader.js +6 -6
- package/src/manifest/ManifestLoader.js.map +1 -1
- package/src/manifest/OpenApiManifest.d.ts +1 -17
- package/src/manifest/OpenApiManifest.js +1 -18
- package/src/manifest/OpenApiManifest.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenApiManifest.js","sourceRoot":"","sources":["../../../../../../packages/docs/openapi-generator/src/manifest/OpenApiManifest.ts"],"names":[],"mappings":";;;AAgCA;;;GAGG;AACU,QAAA,2BAA2B,GAAG,GAAG,CAAC;AAE/C;;;;;;GAMG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A+B;IACxC;;;OAGG;IACM,QAA6B;QAP7B,UAAK,GAAL,KAAK,CAAQ;QACb,eAAU,GAAV,UAAU,CAAQ;QAClB,gBAAW,GAAX,WAAW,CAAoB;QAK/B,aAAQ,GAAR,QAAQ,CAAqB;IACvC,CAAC;CACP;AAXD,kDAWC;AAED,MAAa,eAAe;IAEX;IAKA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IAhBb,YACa,KAAa;IACtB;;;OAGG;IACM,OAAe,EACf,OAAe,EACf,OAA+B;IACxC,uFAAuF;IAC9E,eAAmC,EACnC,IAAyB,EACzB,mBAAsC,EACtC,MAA+B,EAC/B,eAA+C,EAC/C,WAAuC,EACvC,YAA8B;QAf9B,UAAK,GAAL,KAAK,CAAQ;QAKb,YAAO,GAAP,OAAO,CAAQ;QACf,YAAO,GAAP,OAAO,CAAQ;QACf,YAAO,GAAP,OAAO,CAAwB;QAE/B,oBAAe,GAAf,eAAe,CAAoB;QACnC,SAAI,GAAJ,IAAI,CAAqB;QACzB,wBAAmB,GAAnB,mBAAmB,CAAmB;QACtC,WAAM,GAAN,MAAM,CAAyB;QAC/B,oBAAe,GAAf,eAAe,CAAgC;QAC/C,gBAAW,GAAX,WAAW,CAA4B;QACvC,iBAAY,GAAZ,YAAY,CAAkB;IACxC,CAAC;CACP;AAnBD,0CAmBC;AAED;;;;;;;;GAQG;AACH,MAAa,kBAAkB;IAEd;IAEA;IACA;IAJb,YACa,KAAa;IACtB,gGAAgG;IACvF,OAA0B,EAC1B,WAAuC;QAHvC,UAAK,GAAL,KAAK,CAAQ;QAEb,YAAO,GAAP,OAAO,CAAmB;QAC1B,gBAAW,GAAX,WAAW,CAA4B;IACjD,CAAC;CACP;AAPD,gDAOC","sourcesContent":["/**\n * `openapi.manifest.json`, as CLASSES.\n *\n * ## What is allowed in here, and what is not\n *\n * The manifest carries exactly what is **not a property of the code**, and nothing else. Every field\n * below is a product decision, a deployment fact, or a NAME pointing at something the code owns:\n *\n * - `title`, `summary`, `version` — product decisions. `summary` is the API's one-line pitch (#1296),\n * published as `info.summary`; REQUIRED, one line, at most 200 characters — the Claude Connectors\n * Directory's one-liner limit, so the same text can be pasted there.\n * - `servers[]` — a deployment fact.\n * - `descriptionFile` — a teaching decision.\n * - `apis[]` — which contracts, in the order the published sidebar shows them.\n * - `securitySchemeNames[]` — the published scheme KEYS only. Everything else about the schemes, and\n * the AND-ed `security` requirement, is DERIVED from the contract's own `apiKey(...)`. A\n * `components.securitySchemes` block here would be a second copy of header names the running\n * server never reads, and nothing could contradict it.\n * - `errors` — the document-wide failure contract, with the BODY read from a real TS type so the\n * published shape cannot drift from the one on the wire.\n * - `responseHeaders[]` — declared by `contextKey` naming an exported ContextKey, never by a literal.\n * - `operationIds` — the published operationId spelling (#1270); optional, `contract_method` when omitted (#1283).\n *\n * Anything a renderer could read off the source instead belongs in the source.\n *\n * ## The ORDER of `apis[]` is published navigation\n *\n * It is rendered into `tags[]` in that order, and a docs theme builds its sidebar from `tags[]`.\n * Alphabetising this array is not a cleanup; it reorders partner-facing navigation.\n */\nimport { SchemaNameEntry } from '@webpieces/api-doc-model';\n\n/**\n * The longest manifest `summary` (#1296): the Claude Connectors Directory's limit for a server's\n * one-line description, so the line published as `info.summary` can be pasted there unchanged.\n */\nexport const MANIFEST_SUMMARY_MAX_LENGTH = 200;\n\n/**\n * How every operation's `operationId` is spelled (#1270). OPTIONAL in a contract manifest, defaulting\n * to {@link CONTRACT_METHOD} (#1283) — the spelling every earlier release published, and the only one\n * unique by construction. `operationId` is what openapi-generator, Kiota, NSwag and friends name the\n * METHOD in every client a partner generates, so changing the spelling renames every method in every\n * partner's SDK; {@link METHOD} is the opt-in for a document that already published bare names.\n */\nexport enum OperationIdStyle {\n /** `OrdersApi_fetchOrders` — unique by construction across contracts. */\n CONTRACT_METHOD = 'contract_method',\n /**\n * `fetchOrders` — the bare method name. Two operations of one document sharing it is a HARD\n * FAILURE naming both, so the id is still unique.\n */\n METHOD = 'method',\n}\n\nexport class ServerEntry {\n constructor(\n readonly url: string,\n readonly description: string | undefined,\n ) {}\n}\n\n/** One contract file the generator reads. */\nexport class ApiEntry {\n constructor(\n /** Path to the contract `.ts`, relative to the manifest's own directory. */\n readonly entry: string,\n /** The tag every operation of this contract carries — and one `tags[]` entry, in order. */\n readonly tag: string,\n /**\n * `webhook` moves the contract into the top-level `webhooks:` block: these are calls WE\n * make to a partner's server, not routes on ours.\n *\n * DECLARED, never sniffed from a `*WebhookApi` filename. A name convention would hide a\n * partner-visible decision inside a rename, and a rename is the one edit nobody reviews for\n * contract impact.\n */\n readonly kind: string | undefined,\n ) {}\n\n isWebhook(): boolean {\n return this.kind === 'webhook';\n }\n}\n\n/** One status code of the document-wide failure contract. */\nexport class ErrorResponseEntry {\n constructor(\n readonly status: string,\n readonly description: string,\n /**\n * `true`: this failure can only happen to an AUTHENTICATED operation (a 401 for a bad\n * credential), so it is left OFF every operation whose resolved auth is public\n * (`@WpAuthPublic`) — a public endpoint cannot fail authentication. Omitted means `false`:\n * the response is listed on every operation.\n */\n readonly requiresAuth: boolean,\n ) {}\n}\n\n/**\n * The document-wide failure contract.\n *\n * Document-wide and not per-operation on purpose: per-operation codes would be a second hand-written\n * list to keep in step with the handlers, and stating them once tells a partner the truth — any\n * operation can fail these ways.\n */\nexport class ErrorsEntry {\n constructor(\n /** The `.ts` file declaring the error body, relative to the manifest. */\n readonly entry: string,\n /** The exported TYPE name of the body. Read with the compiler, so it cannot drift. */\n readonly type: string,\n readonly responses: readonly ErrorResponseEntry[],\n ) {}\n}\n\n/**\n * One response header every operation carries — on its success response AND on every failure the\n * document declares for it (#1270): a correlation id matters most on the response that FAILED, and\n * the server stamps it on every response, so declaring it on the 200 alone under-documents the wire.\n *\n * `contextKey` names an exported `ContextKey` in `entry` — the export's name, or a dotted path into\n * one (`OneTabletKey.TX_ID`) — and the generator reads the header name off that key's own\n * `ContextKey.trusted(...)` / `ContextKey.untrusted(...)` definition: its `responseHeader`, which is\n * what the server's response choke point actually writes (#1249). A literal here would be a copy of\n * the header name that a rename leaves silently stale — and JSON cannot import, so naming the key is\n * the only way for this file to point at the one definition. Failing to resolve it is a HARD\n * FAILURE for the same reason.\n */\nexport class ResponseHeaderEntry {\n constructor(\n readonly entry: string,\n readonly contextKey: string,\n readonly description: string | undefined,\n /**\n * Rendered verbatim as the OpenAPI header object's `required`. Omitted means the document\n * does not state it, which OpenAPI reads as `false`.\n */\n readonly required: boolean | undefined,\n ) {}\n}\n\nexport class OpenApiManifest {\n constructor(\n readonly title: string,\n /**\n * The API's one-line summary (#1296) — OpenAPI 3.1 `info.summary`. REQUIRED: one line, at most\n * {@link MANIFEST_SUMMARY_MAX_LENGTH} characters.\n */\n readonly summary: string,\n readonly version: string,\n readonly servers: readonly ServerEntry[],\n /** A markdown preamble, relative to the manifest. Rendered into `info.description`. */\n readonly descriptionFile: string | undefined,\n readonly apis: readonly ApiEntry[],\n readonly securitySchemeNames: readonly string[],\n readonly errors: ErrorsEntry | undefined,\n readonly responseHeaders: readonly ResponseHeaderEntry[],\n readonly schemaNames: readonly SchemaNameEntry[],\n readonly operationIds: OperationIdStyle,\n ) {}\n}\n\n/**\n * A DTO library's `openapi.manifest.json` — `\"kind\": \"components\"` (#1058).\n *\n * It names the library's ENTRY FILES instead of contracts: the document it produces is\n * components-only — `openapi`, `info` and `components.schemas`, no paths — holding every type the\n * library exports and declares, which contract documents `$ref` instead of copying. There is no\n * `version` here: a library document's `info.version` IS the package version, read from its\n * `package.json`, so the two cannot disagree.\n */\nexport class ComponentsManifest {\n constructor(\n readonly title: string,\n /** The library's entry files (usually `src/index.ts`), relative to the manifest's directory. */\n readonly entries: readonly string[],\n readonly schemaNames: readonly SchemaNameEntry[],\n ) {}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"OpenApiManifest.js","sourceRoot":"","sources":["../../../../../../packages/docs/openapi-generator/src/manifest/OpenApiManifest.ts"],"names":[],"mappings":";;;AAgCA;;;GAGG;AACU,QAAA,2BAA2B,GAAG,GA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,QAAQ,CAAqB;IACvC,CAAC;CACP;AAXD,kDAWC;AAED,MAAa,eAAe;IAEX;IAKA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IAhBb,YACa,KAAa;IACtB;;;OAGG;IACM,OAAe,EACf,OAAe,EACf,OAA+B;IACxC,uFAAuF;IAC9E,eAAmC,EACnC,IAAyB,EACzB,mBAAsC,EACtC,MAA+B,EAC/B,eAA+C,EAC/C,WAAuC,EACvC,YAA8B;QAf9B,UAAK,GAAL,KAAK,CAAQ;QAKb,YAAO,GAAP,OAAO,CAAQ;QACf,YAAO,GAAP,OAAO,CAAQ;QACf,YAAO,GAAP,OAAO,CAAwB;QAE/B,oBAAe,GAAf,eAAe,CAAoB;QACnC,SAAI,GAAJ,IAAI,CAAqB;QACzB,wBAAmB,GAAnB,mBAAmB,CAAmB;QACtC,WAAM,GAAN,MAAM,CAAyB;QAC/B,oBAAe,GAAf,eAAe,CAAgC;QAC/C,gBAAW,GAAX,WAAW,CAA4B;QACvC,iBAAY,GAAZ,YAAY,CAAkB;IACxC,CAAC;CACP;AAnBD,0CAmBC;AAED;;;;;;;;GAQG;AACH,MAAa,kBAAkB;IAEd;IAEA;IACA;IAJb,YACa,KAAa;IACtB,gGAAgG;IACvF,OAA0B,EAC1B,WAAuC;QAHvC,UAAK,GAAL,KAAK,CAAQ;QAEb,YAAO,GAAP,OAAO,CAAmB;QAC1B,gBAAW,GAAX,WAAW,CAA4B;IACjD,CAAC;CACP;AAPD,gDAOC","sourcesContent":["/**\n * `openapi.manifest.json`, as CLASSES.\n *\n * ## What is allowed in here, and what is not\n *\n * The manifest carries exactly what is **not a property of the code**, and nothing else. Every field\n * below is a product decision, a deployment fact, or a NAME pointing at something the code owns:\n *\n * - `title`, `summary`, `version` — product decisions. `summary` is the API's one-line pitch (#1296),\n * published as `info.summary`; REQUIRED, one line, at most 200 characters — the Claude Connectors\n * Directory's one-liner limit, so the same text can be pasted there.\n * - `servers[]` — a deployment fact.\n * - `descriptionFile` — a teaching decision.\n * - `apis[]` — which contracts, in the order the published sidebar shows them.\n * - `securitySchemeNames[]` — the published scheme KEYS only. Everything else about the schemes, and\n * the AND-ed `security` requirement, is DERIVED from the contract's own `apiKey(...)`. A\n * `components.securitySchemes` block here would be a second copy of header names the running\n * server never reads, and nothing could contradict it.\n * - `errors` — the document-wide failure contract, with the BODY read from a real TS type so the\n * published shape cannot drift from the one on the wire.\n * - `responseHeaders[]` — declared by `contextKey` naming an exported ContextKey, never by a literal.\n * - `operationIds` — the published operationId spelling (#1270); optional, `contract_method` when omitted (#1283).\n *\n * Anything a renderer could read off the source instead belongs in the source.\n *\n * ## The ORDER of `apis[]` is published navigation\n *\n * It is rendered into `tags[]` in that order, and a docs theme builds its sidebar from `tags[]`.\n * Alphabetising this array is not a cleanup; it reorders partner-facing navigation.\n */\nimport { OperationIdStyle, SchemaNameEntry } from '@webpieces/api-doc-model';\n\n/**\n * The longest manifest `summary` (#1296): the Claude Connectors Directory's limit for a server's\n * one-line description, so the line published as `info.summary` can be pasted there unchanged.\n */\nexport const MANIFEST_SUMMARY_MAX_LENGTH = 200;\n\nexport class ServerEntry {\n constructor(\n readonly url: string,\n readonly description: string | undefined,\n ) {}\n}\n\n/** One contract file the generator reads. */\nexport class ApiEntry {\n constructor(\n /** Path to the contract `.ts`, relative to the manifest's own directory. */\n readonly entry: string,\n /** The tag every operation of this contract carries — and one `tags[]` entry, in order. */\n readonly tag: string,\n /**\n * `webhook` moves the contract into the top-level `webhooks:` block: these are calls WE\n * make to a partner's server, not routes on ours.\n *\n * DECLARED, never sniffed from a `*WebhookApi` filename. A name convention would hide a\n * partner-visible decision inside a rename, and a rename is the one edit nobody reviews for\n * contract impact.\n */\n readonly kind: string | undefined,\n ) {}\n\n isWebhook(): boolean {\n return this.kind === 'webhook';\n }\n}\n\n/** One status code of the document-wide failure contract. */\nexport class ErrorResponseEntry {\n constructor(\n readonly status: string,\n readonly description: string,\n /**\n * `true`: this failure can only happen to an AUTHENTICATED operation (a 401 for a bad\n * credential), so it is left OFF every operation whose resolved auth is public\n * (`@WpAuthPublic`) — a public endpoint cannot fail authentication. Omitted means `false`:\n * the response is listed on every operation.\n */\n readonly requiresAuth: boolean,\n ) {}\n}\n\n/**\n * The document-wide failure contract.\n *\n * Document-wide and not per-operation on purpose: per-operation codes would be a second hand-written\n * list to keep in step with the handlers, and stating them once tells a partner the truth — any\n * operation can fail these ways.\n */\nexport class ErrorsEntry {\n constructor(\n /** The `.ts` file declaring the error body, relative to the manifest. */\n readonly entry: string,\n /** The exported TYPE name of the body. Read with the compiler, so it cannot drift. */\n readonly type: string,\n readonly responses: readonly ErrorResponseEntry[],\n ) {}\n}\n\n/**\n * One response header every operation carries — on its success response AND on every failure the\n * document declares for it (#1270): a correlation id matters most on the response that FAILED, and\n * the server stamps it on every response, so declaring it on the 200 alone under-documents the wire.\n *\n * `contextKey` names an exported `ContextKey` in `entry` — the export's name, or a dotted path into\n * one (`OneTabletKey.TX_ID`) — and the generator reads the header name off that key's own\n * `ContextKey.trusted(...)` / `ContextKey.untrusted(...)` definition: its `responseHeader`, which is\n * what the server's response choke point actually writes (#1249). A literal here would be a copy of\n * the header name that a rename leaves silently stale — and JSON cannot import, so naming the key is\n * the only way for this file to point at the one definition. Failing to resolve it is a HARD\n * FAILURE for the same reason.\n */\nexport class ResponseHeaderEntry {\n constructor(\n readonly entry: string,\n readonly contextKey: string,\n readonly description: string | undefined,\n /**\n * Rendered verbatim as the OpenAPI header object's `required`. Omitted means the document\n * does not state it, which OpenAPI reads as `false`.\n */\n readonly required: boolean | undefined,\n ) {}\n}\n\nexport class OpenApiManifest {\n constructor(\n readonly title: string,\n /**\n * The API's one-line summary (#1296) — OpenAPI 3.1 `info.summary`. REQUIRED: one line, at most\n * {@link MANIFEST_SUMMARY_MAX_LENGTH} characters.\n */\n readonly summary: string,\n readonly version: string,\n readonly servers: readonly ServerEntry[],\n /** A markdown preamble, relative to the manifest. Rendered into `info.description`. */\n readonly descriptionFile: string | undefined,\n readonly apis: readonly ApiEntry[],\n readonly securitySchemeNames: readonly string[],\n readonly errors: ErrorsEntry | undefined,\n readonly responseHeaders: readonly ResponseHeaderEntry[],\n readonly schemaNames: readonly SchemaNameEntry[],\n readonly operationIds: OperationIdStyle,\n ) {}\n}\n\n/**\n * A DTO library's `openapi.manifest.json` — `\"kind\": \"components\"` (#1058).\n *\n * It names the library's ENTRY FILES instead of contracts: the document it produces is\n * components-only — `openapi`, `info` and `components.schemas`, no paths — holding every type the\n * library exports and declares, which contract documents `$ref` instead of copying. There is no\n * `version` here: a library document's `info.version` IS the package version, read from its\n * `package.json`, so the two cannot disagree.\n */\nexport class ComponentsManifest {\n constructor(\n readonly title: string,\n /** The library's entry files (usually `src/index.ts`), relative to the manifest's directory. */\n readonly entries: readonly string[],\n readonly schemaNames: readonly SchemaNameEntry[],\n ) {}\n}\n"]}
|